Search is not available for this dataset
query
stringlengths
7
355k
document
stringlengths
9
341k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (render) { options.render = render options.staticRenderFns = staticRenderFns options._compiled = true } // functional template if (functionalTemplate) { options.functional = true } // scopedId if (scopeId) { options._scopeId = 'data-v-' + scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = shadowMode ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } : injectStyles } if (hook) { if (options.functional) { // for template-only hot-reload because in that case the render fn doesn't // go through the normalizer options._injectStyles = hook // register for functioal component in vue file var originalRender = options.render options.render = function renderWithStyleInjection (h, context) { hook.call(context) return originalRender(h, context) } } else { // inject component registration as beforeCreate hook var existing = options.beforeCreate options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } } return { exports: scriptExports, options: options } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (ctx.isDev && ctx.isClient) {\n config.devtool = \"source-map\";\n // if (isDev && process.isClient) {\n config.plugins.push(\n new StylelintPlugin({\n files: [\"**/*.vue\", \"**/*.scss\"],\n })\n ),\n config.module.rules.push({\n enforce: \"pre\",\n test: /\\.(js|vue)$/,\n loader: \"eslint-loader\",\n exclude: /(node_modules)/,\n options: {\n formatter: require(\"eslint-friendly-formatter\"),\n },\n });\n if (ctx.isDev) {\n config.mode = \"development\";\n }\n }\n for (const rule of config.module.rules) {\n if (rule.use) {\n for (const use of rule.use) {\n if (use.loader === \"sass-loader\") {\n use.options = use.options || {};\n use.options.includePaths = [\n \"node_modules/foundation-sites/scss\",\n \"node_modules/motion-ui/src\",\n ];\n }\n }\n }\n }\n // vue-svg-inline-loader\n const vueRule = config.module.rules.find((rule) =>\n rule.test.test(\".vue\")\n );\n vueRule.use = [\n {\n loader: vueRule.loader,\n options: vueRule.options,\n },\n {\n loader: \"vue-svg-inline-loader\",\n },\n ];\n delete vueRule.loader;\n delete vueRule.options;\n }", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}" ]
[ "0.58472276", "0.5728634", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function Scheduler(ecInstance, api, dataProcessorHandlers, visualHandlers) { this.ecInstance = ecInstance; this.api = api; this.unfinished; // Fix current processors in case that in some rear cases that // processors might be registered after echarts instance created. // Register processors incrementally for a echarts instance is // not supported by this stream architecture. var dataProcessorHandlers = this._dataProcessorHandlers = dataProcessorHandlers.slice(); var visualHandlers = this._visualHandlers = visualHandlers.slice(); this._allHandlers = dataProcessorHandlers.concat(visualHandlers); /** * @private * @type { * [handlerUID: string]: { * seriesTaskMap?: { * [seriesUID: string]: Task * }, * overallTask?: Task * } * } */ this._stageTaskMap = createHashMap(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "started () {}", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "started() {\r\n\r\n\t}", "function SigV4Utils() { }", "static get NOT_READY () {return 0}", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "initialize() {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "function getImplementation( cb ){\n\n }", "heartbeat () {\n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "static final private internal function m106() {}", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "get WSAPlayerX64() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }" ]
[ "0.53492224", "0.48935446", "0.48514137", "0.48082927", "0.47720826", "0.4744996", "0.47347993", "0.47019523", "0.46926585", "0.46926585", "0.46730793", "0.46452278", "0.46379203", "0.46256977", "0.4618543", "0.45818752", "0.45806864", "0.45742333", "0.4568166", "0.45616665", "0.45558366", "0.4549164", "0.45481402", "0.45447382", "0.4537214", "0.4522665", "0.451785", "0.4497493", "0.44942656", "0.4484697", "0.4472648", "0.44683102", "0.4465637", "0.44581723", "0.44557354", "0.4454013", "0.44524705", "0.44436827", "0.44380364", "0.4427005", "0.44242096", "0.44237852", "0.44070554", "0.44050547", "0.44050547", "0.44050547", "0.4404598", "0.4393088", "0.43767613", "0.43684104", "0.43635124", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43511948", "0.43502447", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43443355", "0.43417493", "0.43380377", "0.43350744", "0.43350744", "0.4332956", "0.43327877" ]
0.0
-1
Only some legacy stage handlers (usually in echarts extensions) are pure function. To ensure that they can work normally, they should work in block mode, that is, they should not be started util the previous tasks finished. So they cause the progressive rendering disabled. We try to detect the series type, to narrow down the block range to only the series type they concern, but not all series.
function detectSeriseType(legacyFunc) { seriesType = null; try { // Assume there is no async when calling `eachSeriesByType`. legacyFunc(ecModelMock, apiMock); } catch (e) {} return seriesType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "function isSupportedBlockEl( e ) {\n\n return $.inArray( getTN( e ), blockEls ) !== -1;\n\n }", "function detectSeriseType(legacyFunc) {\n\t seriesType = null;\n\t\n\t try {\n\t // Assume there is no async when calling `eachSeriesByType`.\n\t legacyFunc(ecModelMock, apiMock);\n\t } catch (e) {}\n\t\n\t return seriesType;\n\t }", "function finishAssignment(type, min, max) {\n $('.calendarDesc').css('opacity','0');\n if (blockType == 'actFull') {\n setTimeout(function(){\n $('.calendarDesc').html('<div class=\"z-depth-2 assignDrag center-align\"><p class=\"fixrange range-field\"> <input type=\"range\" id=\"calendaradd\" min=\"'+min+'\" max=\"'+max+'\" /> </p></div>');\n $('#calendarsbmt').html('Submit '+type+' score.<i class=\"material-icons right\">send</i>')\n },200);\n setTimeout(function(){\n $('.calendarDesc').css('opacity','');\n },300);\n stage = stage + 1;\n }\n else if (blockType == 'actEnglish') {\n \n }\n else if (blockType == 'actMath') {\n \n }\n else if (blockType == 'actScience') {\n \n }\n else if (blockType == 'actReading') {\n \n }\n else {\n console.log(\"no support for SAT yet\");\n }\n}", "function inclusionHandler(e, color) {\n const index = parseInt(e.target.getAttribute('parent-chart'));\n const chart = chartData[index];\n\n // Cloning canvas and preparing values for animation of main chart\n const c = document.getElementById(`chart-block--${index}`);\n const params = generateParamsForAnimation(c, index);\n\n // Cloning canvas and preparing values for animation of Small secondary chart\n const smallCanvas = document.getElementById(`secondary-chart-block--${index}`);\n const smallChartParams = generateParamsForAnimation(smallCanvas, index);\n\n e.target.classList.toggle('off');\n if (e.target.classList.contains('off')) {\n e.target.style.backgroundColor = '#fff';\n chart.included.splice(chart.included.indexOf(e.target.getAttribute('name')), 1);\n } else {\n e.target.style.backgroundColor = color;\n chart.included.push(e.target.getAttribute('name'));\n }\n\n const infoBoxContainer = e.target.closest('.chart-block').getElementsByClassName('info-box-container')[0];\n infoBoxContainer.classList.remove('shown');\n\n\n let maxAmongAllLines = defineMaxAmongAllLines(index, chart.leftBorderIndex, chart.rightBorderIndex);\n\n const mainBlockId = params.oldMax === maxAmongAllLines ? `chart-block--${index}` : `virtual-1`;\n const lowBlockId = params.oldMax === maxAmongAllLines ? `secondary-chart-block--${index}` : `virtual-2`;\n\n if (params.oldMax === maxAmongAllLines) {\n drawChart(`chart-block--${index}`, chart, canvasWidth, canvasHeight, true, chart.leftBorderIndex, chart.rightBorderIndex);\n drawChart(`secondary-chart-block--${index}`, chart, canvasWidth, secondaryChartCanvasHeight);\n } else {\n drawChart(`virtual-1`, chart, canvasWidth, canvasHeight, false, chart.leftBorderIndex, chart.rightBorderIndex);\n drawChart(`virtual-2`, chart, canvasWidth, secondaryChartCanvasHeight, false);\n }\n\n // Animation of changing chart\n const blockToAppend = document.getElementsByClassName(`chart-block--${index}`)[0];\n const newC = document.getElementById(mainBlockId);\n params.blockToAppend = blockToAppend;\n params.canvas = newC;\n params.canvasHeight = canvasHeight;\n runAnimationForCanvas(params);\n\n // Animation of changing small secondary chart\n const smallBlockToAppend = document.getElementsByClassName(`secondary-chart-block--${index}`)[0];\n const smallNewC = document.getElementById(lowBlockId);\n smallChartParams.blockToAppend = smallBlockToAppend;\n smallChartParams.canvas = smallNewC;\n smallChartParams.canvasHeight = secondaryChartCanvasHeight;\n runAnimationForCanvas(smallChartParams);\n}", "function detectSeriseType(legacyFunc) {\n Scheduler_seriesType = null;\n\n try {\n // Assume there is no async when calling `eachSeriesByType`.\n legacyFunc(ecModelMock, apiMock);\n } catch (e) {}\n\n return Scheduler_seriesType;\n}", "async function blockSlotRange(recurrence) {\n setIsTempModeOn(true)\n let time1 = UtilsService.changeTimeForDisplay(props.slotToBlock.start, 0)\n let time2 = UtilsService.changeTimeForDisplay(props.slotToBlock.end, 0)\n let startTime = `${props.slotToBlock.date}T${time1}:00Z`\n let endTime = `${props.slotToBlock.date}T${time2}:00Z`\n let tempEvent = {\n id: UtilsService.idGen(),\n name: 'block - block',\n start: startTime,\n end: endTime,\n isTemp: true\n }\n let eventsToDisplayCopy = JSON.parse(JSON.stringify(await eventsToDisplay));\n eventsToDisplayCopy[props.treatment.dailyIdx].push(tempEvent)\n \n let startTimeTs = tempEvent.start.slice(11,16) \n let startTimeTsIdx = timeSlots.findIndex(ts => ts === startTimeTs)\n let endTimeTs = tempEvent.end.slice(11,16)\n let endTimeTsIdx = timeSlots.findIndex(ts => ts === endTimeTs)\n \n for (var i=1; i<props.recurrence.count && props.recurrence.freq === 'DAILY'; i++){\n tempEvent = {...tempEvent}\n startTime = new Date (new Date(startTime).getTime() + (1000 * 60 * 60 * 24))\n startTime = startTime.toISOString()\n endTime = new Date (new Date(endTime).getTime() + (1000 * 60 * 60 * 24))\n endTime = endTime.toISOString()\n tempEvent.id = UtilsService.idGen()\n tempEvent.start = startTime\n tempEvent.end = endTime\n // dailyIdx+i for the next day -- the j is for the ts (where exactly in the next day) => making sure there is not already an event there before pushing temp\n let isCellOccupied = false\n for (var j=startTimeTsIdx; j<endTimeTsIdx; j++) { \n if (!props.tableModel[j][props.treatment.dailyIdx+i]){\n isCellOccupied = true\n console.log(timeSlots[j], 'is not availble at', props.treatment.dailyIdx+i)\n }\n }\n if (!isCellOccupied) { eventsToDisplayCopy[props.treatment.dailyIdx+i].push(tempEvent)}\n }\n let prevEvents = [... await eventsToDisplay]\n setEventsToDisplay(eventsToDisplayCopy)\n const confirmedBlockOrOccDates = await CalendarService.blockSlotRange(props.slotToBlock, 'block', recurrence, props.owner) \n\n if (Array.isArray(confirmedBlockOrOccDates)) {\n setModalSubJect('occupied')\n setOccupiedDates (confirmedBlockOrOccDates)\n setPrevEventsToDisplay (prevEvents)\n setIsTempModeOn(false)\n setOpen(true)\n return\n } \n console.log('confirmed eventId',confirmedBlockOrOccDates.id)\n setEventsToDisplay(async () => {\n return await getWeeklyEvents(selectedDate)\n })\n }", "onBlockSelect(e) {\n const $blockSlide = this.$slideshow.find(`[data-block-id=\"${e.detail.blockId}\"]`);\n\n if ($blockSlide.length === 0) {\n return;\n }\n\n this.swiper.slideToLoop($blockSlide.first().data('swiper-slide-index'));\n this.swiper.autoplay.stop();\n }", "function normalStageBlock(currentId, stage) {\n return require('./templates/normal-stage-block.hbs')({\n currentId: currentId,\n stage: stage,\n stepListing: stepListing(currentId, stage.steps)\n });\n}", "function createStages() {\n stages = [\n [\n [\n {\n relevantWidgets: [],\n isSatisfied: function() {\n return true;\n },\n description: \"\",\n resultFunction: async function() {\n await timeout(2000);\n },\n }\n ]\n ],\n\n [\n [\n {\n relevantWidgets: [stbtButton],\n isSatisfied: function() {\n return isGlowing(stbtButton);\n },\n description: \"Turn on the seatbelt sign, labelled 'STBT'.\",\n resultFunction: function() {\n markInstructionComplete();\n },\n },\n ],\n [\n {\n relevantWidgets: [autoPilotOnButton],\n isSatisfied: function() {\n return !isGlowing(autoPilotOnButton);\n },\n description: \"Turn off the autopilot.\",\n resultFunction: function() {\n toggleGlow(autoPilotNavButton);\n toggleGlow(autoPilotFd2Button);\n markInstructionComplete();\n },\n },\n ]\n ],\n\n [\n [\n {\n relevantWidgets: [vhf1Button],\n isSatisfied: function() {\n return isGlowing(vhf1Button);\n },\n description: \"Change the communications to 'VHF1'.\",\n resultFunction: function() {\n toggleGlow(vhf2Button);\n markInstructionComplete();\n },\n },\n {\n relevantWidgets: [commsSwitchButton],\n activeInit: commsValue1.textContent.trim(),\n stbyCrsInit: commsValue2.textContent.trim(),\n isSatisfied: function() {\n return commsValue1.textContent === this.stbyCrsInit && commsValue2.textContent === this.activeInit;\n },\n description: \"Transfer standby and active communication frequencies.\",\n resultFunction: function () {\n markInstructionComplete();\n },\n },\n ],\n ],\n\n [\n [\n {\n relevantWidgets: [],\n isSatisfied: function() {\n return true;\n },\n description: \"\",\n resultFunction: async function() {\n await timeout(1000);\n toggleGlow(eng2WarningLight);\n await timeout(800);\n toggleGlow(eng1WarningLight);\n await timeout(300);\n },\n },\n {\n relevantWidgets: [deIceButton],\n isSatisfied: function() {\n return isGlowing(deIceButton);\n },\n description: \"The engines are icing up! Turn on 'DE-ICE'.\",\n resultFunction: function() {\n markInstructionComplete();\n setTimeout(function() {\n toggleGlow(eng1WarningLight);\n toggleGlow(eng2WarningLight);\n }, 5000);\n },\n },\n ],\n\n [\n {\n relevantWidgets: [ventButton],\n isSatisfied: function() {\n return !isGlowing(ventButton);\n },\n description: \"Turn off the vents, with the 'VNT' button.\",\n resultFunction: function () {\n markInstructionComplete();\n },\n }\n ]\n ],\n\n [\n [\n {\n relevantWidgets: [],\n isSatisfied: function() {\n return true;\n },\n description: \"\",\n resultFunction: function() {\n flashACP(attButton);\n },\n },\n {\n relevantWidgets: [attButton],\n isSatisfied: function() {\n return isGlowing(attButton);\n },\n description: \"A flight attendant wants to talk to you. Push the 'ATT' button.\",\n resultFunction: async function () {\n markInstructionComplete();\n await timeout(1000);\n },\n },\n {\n relevantWidgets: [],\n isSatisfied: function() {\n return true;\n },\n description: \"The flight attendant says a passenger is having a medical emergency.\",\n resultFunction: async function () {\n await timeout(3000);\n },\n },\n {\n relevantWidgets: [\n transponderValuePos1Add,\n transponderValuePos2Add, transponderValuePos3Add,\n transponderValuePos4Add, transponderValuePos1Subtract, transponderValuePos2Subtract,\n transponderValuePos3Subtract, transponderValuePos4Subtract\n ],\n isSatisfied: function() {\n return transponderNumber.textContent === \"7700\";\n },\n description: \"We should ask for priority landing. Set the transponder to 7700.\",\n resultFunction: function() {\n markAllInstructionsComplete();\n svg.style.setProperty('--severity', \"3\");\n },\n }\n ]\n ]\n ]\n\n for (let i = 0; i < stages.length; i++) {\n shuffleArray(stages[i]);\n }\n\n addWeatherInstruction(0, {}, 0.5);\n addWeatherInstruction(1, {}, 1);\n addWeatherInstruction(2, {[stage2Cloud1.id]: 2, [stage2Cloud2.id]: 2, [stage2Cloud3.id]: 5}, 2);\n addWeatherInstruction(3, {[stage3Cloud1.id]: 2, [stage3Cloud2.id]: 2, [stage3Cloud3.id]: 5}, 3, true);\n addWeatherInstruction(4, {}, 3.5);\n}", "function _default(seriesType) {\n return {\n getTargetSeries: function (ecModel) {\n // Pie and funnel may use diferrent scope\n var paletteScope = {};\n var seiresModelMap = createHashMap();\n ecModel.eachSeriesByType(seriesType, function (seriesModel) {\n seriesModel.__paletteScope = paletteScope;\n seiresModelMap.set(seriesModel.uid, seriesModel);\n });\n return seiresModelMap;\n },\n reset: function (seriesModel, ecModel) {\n var dataAll = seriesModel.getRawData();\n var idxMap = {};\n var data = seriesModel.getData();\n data.each(function (idx) {\n var rawIdx = data.getRawIndex(idx);\n idxMap[rawIdx] = idx;\n });\n dataAll.each(function (rawIdx) {\n var filteredIdx = idxMap[rawIdx]; // If series.itemStyle.normal.color is a function. itemVisual may be encoded\n\n var singleDataColor = filteredIdx != null && data.getItemVisual(filteredIdx, 'color', true);\n var singleDataBorderColor = filteredIdx != null && data.getItemVisual(filteredIdx, 'borderColor', true);\n var itemModel;\n\n if (!singleDataColor || !singleDataBorderColor) {\n // FIXME Performance\n itemModel = dataAll.getItemModel(rawIdx);\n }\n\n if (!singleDataColor) {\n var color = itemModel.get('itemStyle.color') || seriesModel.getColorFromPalette(dataAll.getName(rawIdx) || rawIdx + '', seriesModel.__paletteScope, dataAll.count()); // Legend may use the visual info in data before processed\n\n dataAll.setItemVisual(rawIdx, 'color', color); // Data is not filtered\n\n if (filteredIdx != null) {\n data.setItemVisual(filteredIdx, 'color', color);\n }\n } else {\n // Set data all color for legend\n dataAll.setItemVisual(rawIdx, 'color', singleDataColor);\n }\n\n if (!singleDataBorderColor) {\n var borderColor = itemModel.get('itemStyle.borderColor'); // Legend may use the visual info in data before processed\n\n dataAll.setItemVisual(rawIdx, 'borderColor', borderColor); // Data is not filtered\n\n if (filteredIdx != null) {\n data.setItemVisual(filteredIdx, 'borderColor', borderColor);\n }\n } else {\n // Set data all borderColor for legend\n dataAll.setItemVisual(rawIdx, 'borderColor', singleDataBorderColor);\n }\n });\n }\n };\n}", "handleSelGridToPresetType(toType){\n\tconst rIndex = this.props.UI.selectedRowIndex;\n\tconst Grid_i = this.props.PGTobjArray[rIndex];\n\tconst response = Grid_util.GeneratePresetTypeFromGrid(Grid_i, toType, this.props.UI.lockAngles);\n\n\tthis.props.fn.handleModifySelPGTobj({\n\t line_sets: response.$LSupd\n\t});\n\n\tif(response.changedLockAngles !== undefined){\n\t this.props.fn.handleUIStateChange(\"lockAngles\", response.changedLockAngles);\n\t}\n }", "function newStageBlock() {\n return require('./templates/stage-block.hbs')();\n}", "function onLevel2SeriesClick(e) {\n EnableDisableChartView(true);\n\n if (groupbyChapter) {\n LevelIdentifier = 3;\n $('#divtoplevel2').css(\"display\", \"none\");\n $('#divtoplevel3').css(\"display\", \"block\");\n $('#divlevel3chart').css(\"display\", \"block\");\n $('#divlevel3data').css(\"display\", \"none\");\n $('#divlevel3details').css(\"display\", \"none\");\n Level3Load(e.dataItem.ProgramID, e.dataItem.ProgramName, e.dataItem.ChapterID, e.dataItem.Label);\n }\n else {\n LevelIdentifier = 4;\n $('#divtoplevel2').css(\"display\", \"none\");\n $('#divtoplevel4').css(\"display\", \"block\");\n $('#divlevel4chart').css(\"display\", \"block\");\n $('#divlevel4data').css(\"display\", \"none\");\n Level4Load(e.dataItem.StandardID, e.dataItem.Label);\n }\n}", "processStages(issue) {\n console.log();\n console.log(`Processing stages for ${issue.html_url}`);\n // card events should be in order chronologically\n let currentStage;\n let currentColumn;\n let doneTime;\n let addedTime;\n const tempLabels = {};\n if (issue.events) {\n for (const event of issue.events) {\n let eventDateTime;\n if (event.created_at) {\n eventDateTime = event.created_at;\n }\n //\n // Process Project Stages\n //\n let toStage;\n let toLevel;\n let fromStage;\n let fromLevel = 0;\n if (event.project_card && event.project_card.column_name) {\n if (!addedTime) {\n addedTime = eventDateTime;\n }\n if (issue.project_stage !== 'None' && !event.project_card.stage_name) {\n throw new Error(`stage_name should have been set already for ${event.project_card.column_name}`);\n }\n toStage = event.project_card.stage_name;\n toLevel = stageLevel[toStage];\n currentStage = toStage;\n currentColumn = event.project_card.column_name;\n }\n if (issue.project_stage !== 'None' && event.project_card && event.project_card.previous_column_name) {\n if (!event.project_card.previous_stage_name) {\n throw new Error(`previous_stage_name should have been set already for ${event.project_card.previous_column_name}`);\n }\n fromStage = event.project_card.previous_stage_name;\n fromLevel = stageLevel[fromStage];\n }\n // last occurence of moving to a stage from a lesser stage\n // example: if an item is not blocked but put on hold for 6 months,\n // then the in-progress date will be when it went back in progress\n // moving forward\n if (fromLevel < toLevel) {\n issue[this.stageAtNames[toLevel]] = eventDateTime;\n }\n //moving back, clear the stage at dates up to fromLevel\n else if (fromLevel > toLevel) {\n for (let i = toLevel + 1; i <= fromLevel; i++) {\n delete issue[this.stageAtNames[i]];\n }\n }\n }\n if (addedTime) {\n issue.project_added_at = addedTime;\n console.log(`project_added_at: ${issue.project_added_at}`);\n }\n // current board processing does by column so we already know these\n // asof replays events and it's possible to have the same time and therefore can be out of order.\n // only take that fragility during narrow asof cases.\n // asof clears these\n if (!issue.project_column) {\n issue.project_column = currentColumn;\n }\n if (!issue.project_stage) {\n issue.project_stage = currentStage;\n }\n console.log(`project_stage: ${issue.project_stage}`);\n console.log(`project_column: ${issue.project_column}`);\n }\n }", "function _default(seriesType) {\n return {\n getTargetSeries: function (ecModel) {\n // Pie and funnel may use diferrent scope\n var paletteScope = {};\n var seiresModelMap = createHashMap();\n ecModel.eachSeriesByType(seriesType, function (seriesModel) {\n seriesModel.__paletteScope = paletteScope;\n seiresModelMap.set(seriesModel.uid, seriesModel);\n });\n return seiresModelMap;\n },\n reset: function (seriesModel, ecModel) {\n var dataAll = seriesModel.getRawData();\n var idxMap = {};\n var data = seriesModel.getData();\n data.each(function (idx) {\n var rawIdx = data.getRawIndex(idx);\n idxMap[rawIdx] = idx;\n });\n dataAll.each(function (rawIdx) {\n var filteredIdx = idxMap[rawIdx]; // If series.itemStyle.normal.color is a function. itemVisual may be encoded\n\n var singleDataColor = filteredIdx != null && data.getItemVisual(filteredIdx, 'color', true);\n var singleDataBorderColor = filteredIdx != null && data.getItemVisual(filteredIdx, 'borderColor', true);\n var itemModel;\n\n if (!singleDataColor || !singleDataBorderColor) {\n // FIXME Performance\n itemModel = dataAll.getItemModel(rawIdx);\n }\n\n if (!singleDataColor) {\n var color = itemModel.get('itemStyle.color') || seriesModel.getColorFromPalette(dataAll.getName(rawIdx) || rawIdx + '', seriesModel.__paletteScope, dataAll.count()); // Data is not filtered\n\n if (filteredIdx != null) {\n data.setItemVisual(filteredIdx, 'color', color);\n }\n }\n\n if (!singleDataBorderColor) {\n var borderColor = itemModel.get('itemStyle.borderColor'); // Data is not filtered\n\n if (filteredIdx != null) {\n data.setItemVisual(filteredIdx, 'borderColor', borderColor);\n }\n }\n });\n }\n };\n}", "function _default(seriesType) {\n return {\n getTargetSeries: function (ecModel) {\n // Pie and funnel may use diferrent scope\n var paletteScope = {};\n var seiresModelMap = createHashMap();\n ecModel.eachSeriesByType(seriesType, function (seriesModel) {\n seriesModel.__paletteScope = paletteScope;\n seiresModelMap.set(seriesModel.uid, seriesModel);\n });\n return seiresModelMap;\n },\n reset: function (seriesModel, ecModel) {\n var dataAll = seriesModel.getRawData();\n var idxMap = {};\n var data = seriesModel.getData();\n data.each(function (idx) {\n var rawIdx = data.getRawIndex(idx);\n idxMap[rawIdx] = idx;\n });\n dataAll.each(function (rawIdx) {\n var filteredIdx = idxMap[rawIdx]; // If series.itemStyle.normal.color is a function. itemVisual may be encoded\n\n var singleDataColor = filteredIdx != null && data.getItemVisual(filteredIdx, 'color', true);\n var singleDataBorderColor = filteredIdx != null && data.getItemVisual(filteredIdx, 'borderColor', true);\n var itemModel;\n\n if (!singleDataColor || !singleDataBorderColor) {\n // FIXME Performance\n itemModel = dataAll.getItemModel(rawIdx);\n }\n\n if (!singleDataColor) {\n var color = itemModel.get('itemStyle.color') || seriesModel.getColorFromPalette(dataAll.getName(rawIdx) || rawIdx + '', seriesModel.__paletteScope, dataAll.count()); // Data is not filtered\n\n if (filteredIdx != null) {\n data.setItemVisual(filteredIdx, 'color', color);\n }\n }\n\n if (!singleDataBorderColor) {\n var borderColor = itemModel.get('itemStyle.borderColor'); // Data is not filtered\n\n if (filteredIdx != null) {\n data.setItemVisual(filteredIdx, 'borderColor', borderColor);\n }\n }\n });\n }\n };\n}", "function notBlockUseCase() { console.log('Not an block use case');}", "function _default(seriesType) {\n return {\n getTargetSeries: function (ecModel) {\n // Pie and funnel may use diferrent scope\n var paletteScope = {};\n var seiresModelMap = createHashMap();\n ecModel.eachSeriesByType(seriesType, function (seriesModel) {\n seriesModel.__paletteScope = paletteScope;\n seiresModelMap.set(seriesModel.uid, seriesModel);\n });\n return seiresModelMap;\n },\n reset: function (seriesModel, ecModel) {\n var dataAll = seriesModel.getRawData();\n var idxMap = {};\n var data = seriesModel.getData();\n data.each(function (idx) {\n var rawIdx = data.getRawIndex(idx);\n idxMap[rawIdx] = idx;\n });\n dataAll.each(function (rawIdx) {\n var filteredIdx = idxMap[rawIdx]; // If series.itemStyle.normal.color is a function. itemVisual may be encoded\n\n var singleDataColor = filteredIdx != null && data.getItemVisual(filteredIdx, 'color', true);\n\n if (!singleDataColor) {\n // FIXME Performance\n var itemModel = dataAll.getItemModel(rawIdx);\n var color = itemModel.get('itemStyle.color') || seriesModel.getColorFromPalette(dataAll.getName(rawIdx) || rawIdx + '', seriesModel.__paletteScope, dataAll.count()); // Legend may use the visual info in data before processed\n\n dataAll.setItemVisual(rawIdx, 'color', color); // Data is not filtered\n\n if (filteredIdx != null) {\n data.setItemVisual(filteredIdx, 'color', color);\n }\n } else {\n // Set data all color for legend\n dataAll.setItemVisual(rawIdx, 'color', singleDataColor);\n }\n });\n }\n };\n}", "function _default(seriesType) {\n return {\n getTargetSeries: function (ecModel) {\n // Pie and funnel may use diferrent scope\n var paletteScope = {};\n var seiresModelMap = createHashMap();\n ecModel.eachSeriesByType(seriesType, function (seriesModel) {\n seriesModel.__paletteScope = paletteScope;\n seiresModelMap.set(seriesModel.uid, seriesModel);\n });\n return seiresModelMap;\n },\n reset: function (seriesModel, ecModel) {\n var dataAll = seriesModel.getRawData();\n var idxMap = {};\n var data = seriesModel.getData();\n data.each(function (idx) {\n var rawIdx = data.getRawIndex(idx);\n idxMap[rawIdx] = idx;\n });\n dataAll.each(function (rawIdx) {\n var filteredIdx = idxMap[rawIdx]; // If series.itemStyle.normal.color is a function. itemVisual may be encoded\n\n var singleDataColor = filteredIdx != null && data.getItemVisual(filteredIdx, 'color', true);\n\n if (!singleDataColor) {\n // FIXME Performance\n var itemModel = dataAll.getItemModel(rawIdx);\n var color = itemModel.get('itemStyle.color') || seriesModel.getColorFromPalette(dataAll.getName(rawIdx) || rawIdx + '', seriesModel.__paletteScope, dataAll.count()); // Legend may use the visual info in data before processed\n\n dataAll.setItemVisual(rawIdx, 'color', color); // Data is not filtered\n\n if (filteredIdx != null) {\n data.setItemVisual(filteredIdx, 'color', color);\n }\n } else {\n // Set data all color for legend\n dataAll.setItemVisual(rawIdx, 'color', singleDataColor);\n }\n });\n }\n };\n}", "function _default(seriesType) {\n return {\n getTargetSeries: function (ecModel) {\n // Pie and funnel may use diferrent scope\n var paletteScope = {};\n var seiresModelMap = createHashMap();\n ecModel.eachSeriesByType(seriesType, function (seriesModel) {\n seriesModel.__paletteScope = paletteScope;\n seiresModelMap.set(seriesModel.uid, seriesModel);\n });\n return seiresModelMap;\n },\n reset: function (seriesModel, ecModel) {\n var dataAll = seriesModel.getRawData();\n var idxMap = {};\n var data = seriesModel.getData();\n data.each(function (idx) {\n var rawIdx = data.getRawIndex(idx);\n idxMap[rawIdx] = idx;\n });\n dataAll.each(function (rawIdx) {\n var filteredIdx = idxMap[rawIdx]; // If series.itemStyle.normal.color is a function. itemVisual may be encoded\n\n var singleDataColor = filteredIdx != null && data.getItemVisual(filteredIdx, 'color', true);\n\n if (!singleDataColor) {\n // FIXME Performance\n var itemModel = dataAll.getItemModel(rawIdx);\n var color = itemModel.get('itemStyle.color') || seriesModel.getColorFromPalette(dataAll.getName(rawIdx) || rawIdx + '', seriesModel.__paletteScope, dataAll.count()); // Legend may use the visual info in data before processed\n\n dataAll.setItemVisual(rawIdx, 'color', color); // Data is not filtered\n\n if (filteredIdx != null) {\n data.setItemVisual(filteredIdx, 'color', color);\n }\n } else {\n // Set data all color for legend\n dataAll.setItemVisual(rawIdx, 'color', singleDataColor);\n }\n });\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n reset: function (seriesModel, ecModel) {\n var legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n\n if (!legendModels || !legendModels.length) {\n return;\n }\n\n var data = seriesModel.getData();\n data.filterSelf(function (idx) {\n var name = data.getName(idx); // If in any legend component the status is not selected.\n\n for (var i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(name)) {\n return false;\n }\n }\n\n return true;\n });\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n reset: function (seriesModel, ecModel) {\n var legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n\n if (!legendModels || !legendModels.length) {\n return;\n }\n\n var data = seriesModel.getData();\n data.filterSelf(function (idx) {\n var name = data.getName(idx); // If in any legend component the status is not selected.\n\n for (var i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(name)) {\n return false;\n }\n }\n\n return true;\n });\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n reset: function (seriesModel, ecModel) {\n var legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n\n if (!legendModels || !legendModels.length) {\n return;\n }\n\n var data = seriesModel.getData();\n data.filterSelf(function (idx) {\n var name = data.getName(idx); // If in any legend component the status is not selected.\n\n for (var i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(name)) {\n return false;\n }\n }\n\n return true;\n });\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n reset: function (seriesModel, ecModel) {\n var legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n\n if (!legendModels || !legendModels.length) {\n return;\n }\n\n var data = seriesModel.getData();\n data.filterSelf(function (idx) {\n var name = data.getName(idx); // If in any legend component the status is not selected.\n\n for (var i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(name)) {\n return false;\n }\n }\n\n return true;\n });\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n reset: function (seriesModel, ecModel) {\n var legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n\n if (!legendModels || !legendModels.length) {\n return;\n }\n\n var data = seriesModel.getData();\n data.filterSelf(function (idx) {\n var name = data.getName(idx); // If in any legend component the status is not selected.\n\n for (var i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(name)) {\n return false;\n }\n }\n\n return true;\n });\n }\n };\n}", "isStartableStage(stage) {\n if (this.inFinalStage(stage)) {\n return false;\n }\n let stageOrder = this.process.stages.map(s => s.outgoing_stage);\n let viewedIncomingStageIndex = stageOrder.indexOf(stage.incoming_stage);\n let viewedOutgoingStageIndex = stageOrder.indexOf(stage.outgoing_stage);\n let featureStageIndex = stageOrder.indexOf(this.feature.intent_stage_int);\n return (viewedIncomingStageIndex <= featureStageIndex &&\n viewedOutgoingStageIndex > featureStageIndex);\n }", "function block_fn() {\n setVisibility(\"block\");\n inputType = \"Block\";\n}", "onBlockSelect() {\n // Do something when a section block is selected\n }", "onBlockSelect() {\n // Do something when a section block is selected\n }", "async handleBlocks() {\n await this.api.rpc.chain.subscribeNewHeads(async (header) => {\n if (header.number % 100 == 0) {\n console.log(`Chain is at block: #${header.number}`);\n\n // Unconditionally recalculate validators every 10 minutes\n this.createValidatorList(); // do not await\n\n } else {\n const blockHash = await this.api.rpc.chain.getBlockHash(header.number);\n const block = await this.api.rpc.chain.getBlock(blockHash);\n \n const extrinsics = block['block']['extrinsics'];\n for (let i=0; i<extrinsics.length; i++) {\n const callIndex = extrinsics[i]._raw['method']['callIndex'];\n const c = await this.api.findCall(callIndex);\n //console.log(\"Module called: \", c.section);\n if (c.section == STAKING) {\n console.log(`A ${STAKING} transaction was called`);\n this.createValidatorList(); // do not await\n }\n }\n }\n\n });\n }", "function _default(seriesType, ecModel) {\n // Pie and funnel may use diferrent scope\n var paletteScope = {};\n ecModel.eachRawSeriesByType(seriesType, function (seriesModel) {\n var dataAll = seriesModel.getRawData();\n var idxMap = {};\n\n if (!ecModel.isSeriesFiltered(seriesModel)) {\n var data = seriesModel.getData();\n data.each(function (idx) {\n var rawIdx = data.getRawIndex(idx);\n idxMap[rawIdx] = idx;\n });\n dataAll.each(function (rawIdx) {\n var filteredIdx = idxMap[rawIdx]; // If series.itemStyle.normal.color is a function. itemVisual may be encoded\n\n var singleDataColor = filteredIdx != null && data.getItemVisual(filteredIdx, 'color', true);\n\n if (!singleDataColor) {\n // FIXME Performance\n var itemModel = dataAll.getItemModel(rawIdx);\n var color = itemModel.get('itemStyle.normal.color') || seriesModel.getColorFromPalette(dataAll.getName(rawIdx), paletteScope); // Legend may use the visual info in data before processed\n\n dataAll.setItemVisual(rawIdx, 'color', color); // Data is not filtered\n\n if (filteredIdx != null) {\n data.setItemVisual(filteredIdx, 'color', color);\n }\n } else {\n // Set data all color for legend\n dataAll.setItemVisual(rawIdx, 'color', singleDataColor);\n }\n });\n }\n });\n}", "function _default(seriesType, ecModel) {\n // Pie and funnel may use diferrent scope\n var paletteScope = {};\n ecModel.eachRawSeriesByType(seriesType, function (seriesModel) {\n var dataAll = seriesModel.getRawData();\n var idxMap = {};\n\n if (!ecModel.isSeriesFiltered(seriesModel)) {\n var data = seriesModel.getData();\n data.each(function (idx) {\n var rawIdx = data.getRawIndex(idx);\n idxMap[rawIdx] = idx;\n });\n dataAll.each(function (rawIdx) {\n var filteredIdx = idxMap[rawIdx]; // If series.itemStyle.normal.color is a function. itemVisual may be encoded\n\n var singleDataColor = filteredIdx != null && data.getItemVisual(filteredIdx, 'color', true);\n\n if (!singleDataColor) {\n // FIXME Performance\n var itemModel = dataAll.getItemModel(rawIdx);\n var color = itemModel.get('itemStyle.normal.color') || seriesModel.getColorFromPalette(dataAll.getName(rawIdx), paletteScope); // Legend may use the visual info in data before processed\n\n dataAll.setItemVisual(rawIdx, 'color', color); // Data is not filtered\n\n if (filteredIdx != null) {\n data.setItemVisual(filteredIdx, 'color', color);\n }\n } else {\n // Set data all color for legend\n dataAll.setItemVisual(rawIdx, 'color', singleDataColor);\n }\n });\n }\n });\n}", "function _default(seriesType, ecModel) {\n // Pie and funnel may use diferrent scope\n var paletteScope = {};\n ecModel.eachRawSeriesByType(seriesType, function (seriesModel) {\n var dataAll = seriesModel.getRawData();\n var idxMap = {};\n\n if (!ecModel.isSeriesFiltered(seriesModel)) {\n var data = seriesModel.getData();\n data.each(function (idx) {\n var rawIdx = data.getRawIndex(idx);\n idxMap[rawIdx] = idx;\n });\n dataAll.each(function (rawIdx) {\n var filteredIdx = idxMap[rawIdx]; // If series.itemStyle.normal.color is a function. itemVisual may be encoded\n\n var singleDataColor = filteredIdx != null && data.getItemVisual(filteredIdx, 'color', true);\n\n if (!singleDataColor) {\n // FIXME Performance\n var itemModel = dataAll.getItemModel(rawIdx);\n var color = itemModel.get('itemStyle.normal.color') || seriesModel.getColorFromPalette(dataAll.getName(rawIdx), paletteScope); // Legend may use the visual info in data before processed\n\n dataAll.setItemVisual(rawIdx, 'color', color); // Data is not filtered\n\n if (filteredIdx != null) {\n data.setItemVisual(filteredIdx, 'color', color);\n }\n } else {\n // Set data all color for legend\n dataAll.setItemVisual(rawIdx, 'color', singleDataColor);\n }\n });\n }\n });\n}", "addEnergyChunkSlices() {\n assert && assert( false, 'subtypes should implement their chunk slice creation' );\n }", "onEventDataGenerated(renderData) {\n const me = this,\n record = renderData.event || renderData.eventRecord; // Differs by mode\n\n if (record.isResourceTimeRange) {\n if (me.scheduler.isVertical) {\n renderData.width = me.scheduler.resourceColumnWidth;\n } else {\n renderData.top = 0;\n // Avoid colliding ids by using a prefix\n renderData.id = `${me.scheduler.id}-${me.idPrefix}-${record.id}`;\n }\n\n // Flag that we should fill entire row/col\n renderData.fillSize = true;\n // Needed for caching\n renderData.eventId = `${me.idPrefix}-${record.id}`;\n // Add our own cls\n renderData.wrapperCls[me.rangeCls] = 1;\n renderData.wrapperCls[`b-sch-color-${record.timeRangeColor}`] = record.timeRangeColor;\n // Add label\n renderData.body = document.createDocumentFragment();\n renderData.body.textContent = record.name;\n }\n }", "function handleStageStatus() {\n\tconst status = document.getElementById(\"StageStatus\").value;\n\tvar node = canvas.getPrimarySelection();\n\tif (node instanceof WorkflowStage) {\n\t\tnode.updateUserData({published: status});\n\t}\n}", "function setNonProgressDimensionRage(fieldset) {\n var highDiv = fieldset.find('.dim-range-high').parent();\n var lowDiv = fieldset.find('.dim-range-low').parent();\n highDiv.show();\n lowDiv.show();\n fieldset.find('#progress-buttons-container').hide();\n}", "function OnPipeline_Change( e )\r\n{\r\n try\r\n {\r\n current_offset_feature_type = Alloy.Globals.replaceCharAt( 4 , current_offset_feature_type , $.widgetAppCheckBoxBAEAModeFormsFaultRuptureOffsetFeatureTypePipeline.get_value() ) ;\r\n\r\n Ti.App.fireEvent( 'baea_mode_fault_rupture:offset_feature_type_changed' , { value: current_offset_feature_type } ) ;\r\n }\r\n catch( exception )\r\n {\r\n Alloy.Globals.AlertUserAndLogAsync( L( 'generic_exception_msg' ) + exception.message ) ;\r\n }\r\n}", "function pointsLayout(seriesType, forceStoreInTypedArray) {\n return {\n seriesType: seriesType,\n plan: Object(createRenderPlanner[\"a\" /* default */])(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var useTypedArray = forceStoreInTypedArray || pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = Object(util[\"H\" /* map */])(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n var dimInfo0 = data.getDimensionInfo(dims[0]);\n var dimInfo1 = data.getDimensionInfo(dims[1]);\n var dimIdx0 = dimInfo0 && dimInfo0.index;\n var dimIdx1 = dimInfo1 && dimInfo1.index;\n return dimLen && {\n progress: function (params, data) {\n var segCount = params.end - params.start;\n var points = useTypedArray && createFloat32Array(segCount * dimLen);\n var tmpIn = [];\n var tmpOut = [];\n\n for (var i = params.start, offset = 0; i < params.end; i++) {\n var point = void 0;\n\n if (dimLen === 1) {\n var x = data.getByDimIdx(dimIdx0, i); // NOTE: Make sure the second parameter is null to use default strategy.\n\n point = coordSys.dataToPoint(x, null, tmpOut);\n } else {\n tmpIn[0] = data.getByDimIdx(dimIdx0, i);\n tmpIn[1] = data.getByDimIdx(dimIdx1, i); // Let coordinate system to handle the NaN data.\n\n point = coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (useTypedArray) {\n points[offset++] = point[0];\n points[offset++] = point[1];\n } else {\n data.setItemLayout(i, point.slice());\n }\n }\n\n useTypedArray && data.setLayout('points', points);\n }\n };\n }\n };\n}", "function onSeriesPointClick(point, event) {\n if (isDefined(point)) {\n setTimeout(function () {\n\n var _series = point.series.options;\n var highchart = point.series.chart;\n var chart = _series.ChartProvider;\n var specter = chart.Parent;\n chart = specter.getChart(chart.Name);\n\n // when is the chart object updated? after this function finshes?\n var selectedPoints = highchart.getSelectedPoints();\n chart.Selected = [];\n\n if (selectedPoints.length == 0)\n _series.Clear();\n\n $.each(selectedPoints, function (i, p) {\n var item = {};\n //get Series fields values\n $.each(p.series.options.Fields, function (i, field) {\n item[field] = _series[field] + '';\n });\n //get the point fields values\n $.each(p.Fields, function (i, field) {\n item[field] = p[field] + '';\n });\n\n item[\"$seriesname\"] = p.series.name;\n item[\"$series\"] = p.series.options;\n item[\"$data\"] = $.extend(true, {}, p);\n item[\"Value\"] = p.name;\n chart.Selected.push(item);\n\n //chart.Selected.push({\n // data: $.extend(true,{},p),\n // series: p.series.name//.options//.name\n //});\n });\n //Log(chart.Selected);\n //onClick event is from chart json\n if (isDefined(_series.onClick)) {\n _series.onClick(event);\n }\n event.Source = chart;\n event.Selected = chart.Selected;\n //Log(chart.Selected);\n //charts filter selection for specter\n var filterItem = {\n Name: chart.Name,\n Type: CHART,\n Contents: chart.Selected,\n Source: _series\n };\n\n if (isDefined(_series.DrillItem)) {\n filterItem.DrillItem = _series.DrillItem;\n processDrillItem(_series.DrillItem, event);\n }\n\n var linkedItems = _series.LinkedItems;\n if (isDefined(linkedItems)) {\n $.each(linkedItems, function (i, item) {\n processLinkedItem(item, event);\n });\n }\n\n specter.UpdateFilter(filterItem);\n\n }, 50);\n\n //if (point.state == \"select\")\n //{\n // findAndRemove(chart.Selected, \"Name\", point.name);\n //}\n //else\n //{\n // else { \n // chart.Selected.push({\n // Name: point.name,\n // Point: point//.name\n // });\n // }\n //}\n ////event.Specter = _series.Parent;\n }\n}", "function loadNextStage() {\n if (firstStage) {\n // add a sneaky extra circle in the off chance they find all of the hidden circles :P\n // withheld data is also a bias after all\n createCircle(startColour);\n // so the grey fades in\n $('#circles-area').addClass('fade-bg-colour');\n $('#circles-area').removeClass(startColour);\n $('#circles-area').addClass('grey');\n $('#instruction-text').html(MISSED_CIRCLES_TEXT);\n firstStage = false;\n } else {\n createSlider();\n bgColourSlider[0].noUiSlider.on('update', updateSlider);\n $('#instruction-text').html(SLIDER_TEXT);\n $('.circle').removeClass('glow');\n $('#circles-area').removeClass('grey fade-bg-colour');\n $('#circles-area').addClass(startColour);\n $('#next-stage').addClass('d-none');\n $('#start-again').removeClass('d-none');\n $('#background-colour-slider-container').removeClass('d-none');\n }\n}", "function e(e) {\n return e && \"function\" == typeof e.render;\n }", "myBlockStyleFn(contentBlock) {\n const type = contentBlock.getType();\n if(type === 'code-block') {\n return 'editorCodeBlock';\n }\n if(type === 'blockquote') {\n return 'editorBlockquote';\n }\n }", "drawPoints() {\n var series = this, //state = series.state,\n points = series.points,\n options = series.options,\n chart = series.chart,\n renderer = chart.renderer,\n xPlot,\n yPlot,\n leftPlot,\n rightPlot,\n highPlot,\n lowPlot,\n xWhiskerLow,\n xWhiskerHigh,\n yWhiskerLeft,\n yWhiskerRight,\n whiskerLength = series.options.whiskerLength,\n format = series.options.format;\n\n\n each(points, function(point) {\n\n var graphic = point.graphic,\n verb = graphic ? 'animate' : 'attr';\n\n\n var stemAttr = {},\n whiskersAttr = {},\n color = point.color || series.color;\n\n if (point.plotY !== undefined) {\n\n xPlot = Math.floor(point.xPlot);\n yPlot = Math.floor(point.yPlot);\n leftPlot = Math.floor(point.leftPlot);\n rightPlot = Math.floor(point.rightPlot);\n\n highPlot = Math.floor(point.highPlot);\n lowPlot = Math.floor(point.lowPlot);\n\n xWhiskerLow = Math.floor(yPlot - whiskerLength);\n xWhiskerHigh = Math.floor(yPlot + whiskerLength);\n\n yWhiskerLeft = Math.floor(xPlot - whiskerLength);\n yWhiskerRight = Math.floor(xPlot + whiskerLength);\n\n if (!graphic) {\n point.graphic = graphic = renderer.g('point')\n .add(series.group);\n\n point.stem = renderer.path()\n .addClass('highcharts-boxplot-stem')\n .add(graphic);\n\n if (whiskerLength) {\n point.whiskers = renderer.path()\n .addClass('highcharts-boxplot-whisker')\n .add(graphic);\n }\n\n // Stem attributes\n stemAttr.stroke = point.stemColor || options.stemColor || color;\n stemAttr['stroke-width'] = pick(point.stemWidth, options.stemWidth, options.lineWidth);\n stemAttr.dashstyle = point.stemDashStyle || options.stemDashStyle;\n point.stem.attr(stemAttr);\n\n // Whiskers attributes\n if (whiskerLength) {\n whiskersAttr.stroke = point.whiskerColor || options.whiskerColor || color;\n whiskersAttr['stroke-width'] = pick(point.whiskerWidth, options.whiskerWidth, options.lineWidth);\n point.whiskers.attr(whiskersAttr);\n }\n }\n\n switch (format) {\n case 'x':\n point.stem[verb]({\n d: [\n 'M',\n leftPlot, yPlot,\n 'L',\n rightPlot, yPlot,\n 'z'\n ]});\n\n if (whiskerLength) {\n point.whiskers[verb]({\n d: [\n 'M',\n leftPlot, xWhiskerLow,\n 'L',\n leftPlot, xWhiskerHigh,\n\n 'M',\n rightPlot, xWhiskerLow,\n 'L',\n rightPlot, xWhiskerHigh,\n\n 'z'\n ]\n });\n }\n break;\n\n case 'y':\n point.stem[verb]({\n d: [\n 'M',\n xPlot, lowPlot,\n 'L',\n xPlot, highPlot,\n 'z'\n ]});\n\n if (whiskerLength) {\n point.whiskers[verb]({\n d: [\n 'M',\n yWhiskerLeft, lowPlot,\n 'L',\n yWhiskerRight, lowPlot,\n\n 'M',\n yWhiskerLeft, highPlot,\n 'L',\n yWhiskerRight, highPlot,\n\n 'z'\n ]\n });\n }\n break;\n\n case 'xy':\n default:\n point.stem[verb]({\n d: [\n 'M',\n leftPlot, yPlot,\n 'L',\n rightPlot, yPlot,\n 'M',\n xPlot, lowPlot,\n 'L',\n xPlot, highPlot,\n 'z'\n ]});\n\n if (whiskerLength) {\n point.whiskers[verb]({\n d: [\n 'M',\n leftPlot, xWhiskerLow,\n 'L',\n leftPlot, xWhiskerHigh,\n\n 'M',\n rightPlot, xWhiskerLow,\n 'L',\n rightPlot, xWhiskerHigh,\n\n 'M',\n yWhiskerLeft, lowPlot,\n 'L',\n yWhiskerRight, lowPlot,\n\n 'M',\n yWhiskerLeft, highPlot,\n 'L',\n yWhiskerRight, highPlot,\n\n 'z'\n ]\n });\n }\n break;\n }\n }\n });\n\n }", "isBlock() {\n const parentNode = this.parentNode\n return (parentNode && parentNode.isContainer())\n }", "onInternalEventStoreChange(params) {\n const me = this;\n\n // Too early, bail out\n if (!me._mode) {\n return;\n }\n\n if (me.isVertical) {\n me.currentOrientation.onEventStoreChange(params);\n } else {\n // TODO: Move this to horizontal\n\n const layout = me.currentOrientation,\n // ResourceTimeRanges also calls this fn, using its store as source. It is \"compatible\" with eventStore\n eventStore = params.source,\n { rowManager, resourceStore } = me,\n { action, changes, isCollapse } = params,\n events = params.records || (params.record ? [params.record] : null),\n resources = [];\n\n let rows = new Set(),\n useTransition = false,\n len,\n i;\n\n if (!me.rendered) {\n return;\n }\n\n // Ignore update caused by collapse or removing associated resource, will be handled by resource removal code\n if (isCollapse || (action === 'update' && events.length && events[0].meta.removingResource)) {\n return;\n }\n\n // resource timeranges feature embeds into regular events drawing procedure\n // which means in some cases we should repaint all rows\n const skipRows = action === 'filter' && me.hasFeature('resourceTimeRanges');\n\n // If events were changed\n if (!skipRows && checkResources[action] && events) {\n // For event resource change, the \"from\" resource is part of the changed resource set.\n if (changes && 'resourceId' in changes && changes.resourceId.oldValue != null) {\n const prevResource = resourceStore.getById(changes.resourceId.oldValue),\n prevRow = prevResource && rowManager.getRowFor(prevResource);\n\n // Old resource might not exist in store, https://app.assembla.com/spaces/bryntum/tickets/7070.\n // Happens for example when dropping from another scheduler.\n if (prevRow) {\n resources.push(prevResource);\n rows.add(prevRow);\n }\n }\n\n // We are only interested in associated resources which exist in the store and are in the rendered block.\n for (i = 0, len = events.length; i < len; i++) {\n resources.push(\n ...eventStore.getResourcesForEvent(events[i]).filter((resource) => {\n if (resource) {\n const row = rowManager.getRowFor(resource);\n if (row) {\n rows.add(row);\n return true;\n }\n }\n return false;\n })\n );\n }\n\n if (resources.length) {\n // Sort rows if more than one\n if (rows.size > 1) {\n rows = new Set([...rows].sort((a, b) => a.dataIndex - b.dataIndex));\n }\n // If all affected rows are outside of the rendered range, do nothing\n else if (!rows.size) {\n return;\n }\n }\n // No resources in the rendered block were visible (or all events filtered out, in which case a full redraw\n // is performed). Nothing to update in the UI, but the dataset height might have changed.\n else if (!(action === 'filter' && !events.length)) {\n rowManager.estimateTotalHeight();\n return;\n }\n params.resources = resources;\n }\n\n switch (action) {\n case 'dataset':\n layout.onEventDataset();\n break;\n case 'add':\n layout.onEventAdd(params);\n useTransition = true;\n break;\n case 'update':\n layout.onEventUpdate(params);\n useTransition = true;\n break;\n case 'remove':\n layout.onEventRemove(params);\n useTransition = true;\n break;\n case 'removeall':\n layout.onEventRemoveAll();\n break;\n case 'filter':\n layout.onEventFilter(params);\n break;\n case 'clearchanges':\n layout.onEventClearChanges(params);\n break;\n }\n\n me.runWithTransition(() => {\n if (rows.size) {\n // Render the affected rows.\n rowManager.renderRows(rows);\n }\n // No specific rows affected, for example a dataset. Draw all\n else {\n // TODO: change to refresh() when merged to master\n rowManager.renderFromRow();\n }\n }, useTransition);\n }\n }", "function look_ruby_block_hw_slider() {\r\n var block_hw_slider = $('.ruby-slider-hw');\r\n if (block_hw_slider.length > 0) {\r\n block_hw_slider.each(function() {\r\n\r\n var block_hw_slider_el = $(this);\r\n var block_hw_slider_nav_el = $(this).next('.ruby-slider-hw-nav');\r\n\r\n block_hw_slider_el.on('init', function() {\r\n block_hw_slider_el.imagesLoaded(function() {\r\n block_hw_slider_el.prev('.slider-loading').fadeOut(200, function() {\r\n $(this).remove();\r\n block_hw_slider_el.removeClass('slider-init');\r\n });\r\n });\r\n });\r\n\r\n block_hw_slider_nav_el.on('init', function() {\r\n block_hw_slider_nav_el.imagesLoaded(function() {\r\n block_hw_slider_nav_el.removeClass('slider-init');\r\n });\r\n });\r\n\r\n\r\n block_hw_slider_el.slick({\r\n dots: true,\r\n infinite: true,\r\n autoplay: look_ruby.auto_play,\r\n autoplaySpeed: look_ruby.auto_play_speed,\r\n speed: look_ruby.play_speed,\r\n adaptiveHeight: false,\r\n arrows: true,\r\n asNavFor: block_hw_slider_nav_el,\r\n prevArrow: look_ruby.prev_arrow,\r\n nextArrow: look_ruby.next_arrow\r\n });\r\n\r\n block_hw_slider_nav_el.slick({\r\n slidesToShow: 4,\r\n slidesToScroll: 1,\r\n arrows: false,\r\n dots: false,\r\n asNavFor: block_hw_slider_el,\r\n centerMode: false,\r\n focusOnSelect: true\r\n });\r\n });\r\n }\r\n }", "function timelineType() {\r\n $('#wholeBusy').show();\r\n $('#container').html('');\r\n if ((dg) && (dg.file_)) dg.destroy();\r\n if ($('#main_multi').prop('checked')) {\r\n $('.singleStaOnly').hide();\r\n $('.multiStasOnly').show();\r\n $('#sub_multi').show();\r\n if (flagsArr.indexOf(attr) > -1) {\r\n $(\".onlyQC\").show();\r\n } else {\r\n $(\".onlyQC\").hide();\r\n }\r\n// console.log(getStationsUrl('.json'));\r\n getJsonData(getStationsUrl('.json'), \"allStations\");\r\n } else if ($('#main_single').prop('checked')) {\r\n attrCharts = {};\r\n console.log('Single Station');\r\n $('#sub_multi').hide();\r\n $('.singleStaOnly').show();\r\n $('.multiStasOnly').hide();\r\n $(\".onlyQC\").show();\r\n // sensor = $('#staSel > .btn.active > input').val();\r\n console.log(\"#staSel active:\", $('#staSel > .btn.active > input').val());\r\n setStation();\r\n } else { ///Hide everything\r\n $('.singleStaOnly').hide();\r\n $('.multiStasOnly').hide();\r\n $('.show-hide').hide();\r\n $('#sub_multi').hide();\r\n hideBusy();\r\n }\r\n// $('#wholeBusy').hide();\r\n}", "function drawBlockSeparations() {\n\n // remove all block separations\n svg.selectAll('.' + config.blockSeparatorClass).remove();\n\n console.log(scope.priorityMarkup)\n // terminate if the grouping is not by priority\n if (grouping != 'priority' || !scope.priorityMarkup) {\n return null;\n }\n\n // get coordinates\n var blockXCoordinates = [0,0,0,0,0,0];\n var xTicks = svg.selectAll(\".x.axis .tick\");\n xTicks.forEach(function(d, i) {\n d.forEach(function(e, j) {\n var x = d3.select(e).attr('transform')\n .split('(')[1].split(',')[0];\n var f = e['__data__'];\n for(var i = 6; i > 0; i--) {\n var g = scope.$parent.$parent.priorityPerBlock[i];\n if (f == '' || f <= g) {\n if (f == g) {\n blockXCoordinates[6-i] = x;\n } else {\n blockXCoordinates[6-i] = x-column_width/2;\n }\n }\n }\n });\n });\n // draw blocks\n var tmp = 0;\n blockXCoordinates.forEach(function(d, i) {\n if (parseInt(d,10) > parseInt(tmp,10)) {\n var w = d;\n svg.append('g')\n .attr('class', config.blockSeparatorClass)\n .attr('transform', 'translate(' + w + ',0)')\n .append('line')\n .attr('x2', 0)\n .attr('y2', height)\n .attr('opacity', config.blockSeparatorOpacity)\n .style('stroke', config.blockSeparatorColor)\n .style('stroke-dasharray', ('3, 6'))\n .style('stroke-width', config.blockSeparatorWidth)\n .append('title')\n .text(function(){return \"B\"+(6-i)});\n tmp = d;\n }\n });\n }", "function changeGraphType(event) {\n var startIndex = event.startIndex;\n var endIndex = event.endIndex;\n\n if (endIndex - startIndex > maxCandlesticks) {\n // change graph type\n if (graph.type != \"line\") {\n graph.type = \"line\";\n graph.fillAlphas = 0;\n chart.validateNow();\n }\n } else {\n // change graph type\n if (graph.type != graphType) {\n graph.type = graphType;\n graph.fillAlphas = 1;\n chart.validateNow();\n }\n }\n }", "isFutureStage(stage) {\n if (this.inFinalStage(stage)) {\n return false;\n }\n let stageOrder = this.process.stages.map(s => s.outgoing_stage);\n let viewedIncomingStageIndex = stageOrder.indexOf(stage.incoming_stage);\n let featureStageIndex = stageOrder.indexOf(this.feature.intent_stage_int);\n return (viewedIncomingStageIndex > featureStageIndex);\n }", "setBlockRange(nextRange) {\n if (nextRange) {\n if (nextRange.length > 1) {\n if (nextRange[0] === nextRange[1]) {\n throw Error('cannot set block range of equivalent heights');\n }\n }\n }\n // if a block range should be evaluated on disk report it to the controller\n if (this._blockRangeUpperBound && this._blockRangeLowerBound && this._blockRangeUpperBound.hash && this._blockRangeLowerBound.hash) {\n // LDL\n debug(`setting block range upper hash ${this._blockRangeUpperBound.hash} lower hash ${this._blockRangeLowerBound.hash}`);\n this.emit('roverBlockRange', {\n roverName: 'eth',\n highestHeight: this._blockRangeUpperBound.height,\n lowestHeight: this._blockRangeLowerBound.height,\n highestHash: this._blockRangeUpperBound.hash,\n lowestHash: this._blockRangeLowerBound.hash\n });\n // unsset the bounds allowing the bounds to be changed\n this._blockRangeUpperBound = undefined;\n this._blockRangeLowerBound = undefined;\n // else if the block heights have not been found and nothing is pending their to resume the search, put the heights into their own segment\n } else if (this._blockRangeUpperBound && this.BlockRangeLowerBound && this._blocksToFetch.length < 1 && this._rangeToFetch.length < 1 && !this._seekingBlockSegment) {\n if (!this._blockRangeUpperBound.hash || !this._blockRangeLowerBound.hash) {\n const highest = this._blockRangeUpperBound.height;\n const lowest = this._blockRangeLowerBound.height;\n this._blockRangeUpperBound.height = highest;\n this._blockRangeLowerBound.height = lowest;\n this._blockRangeUpperBound.hash = undefined;\n this._blockRangeLowerBound.hash = undefined;\n this._blocksToFetch.push([highest, lowest]);\n }\n }\n // only set block range if there are no requests waiting to be fetched\n if (nextRange && nextRange.length > 1 && this._rangeToFetch.length < 1) {\n this._blockRangeUpperBound = { height: nextRange[0], hash: false };\n this._blockRangeLowerBound = { height: nextRange[1], hash: false };\n } else if (!this._blockRangeUpperBound && this._rangeToFetch.length > 0) {\n this._logger.info(`block range upper bound not defined and range to fetch has a length greater than 0`);\n const r = this._rangeToFetch.pop();\n this._blockRangeUpperBound = { height: r[0], hash: false };\n this._blockRangeLowerBound = { height: r[1], hash: false };\n }\n }", "function blk() {\n prev = -1;\n flag3 = 0;\n type = 4; // For block type is equal to four\n}", "getBlockRegion(block, globalPoint) {\n // substract window scrolling from global point to get viewport coordinates\n const vpt = globalPoint.sub(new Vector2D(window.scrollX, window.scrollY));\n // compare against viewport bounds of node representing the block\n const box = this.layout.nodeFromElement(block).el.getBoundingClientRect();\n // compare to bounds\n if (vpt.x < box.left || vpt.x > box.right || vpt.y < box.top || vpt.y > box.bottom) {\n return 'none';\n }\n // context menu area?\n if (vpt.x >= box.right - kT.contextDotsW) {\n return 'dots';\n }\n // in block but nowhere special\n return 'main';\n }", "function showChart(type){\n\t\t\n\t\tswitch ( type ) {\n\t\n\t\t\tcase \"dealStagePie\" :\n\t\t\t\tchart = new Highcharts.Chart({\n\t\t\t chart: {\n\t\t\t\t\t\t\t\t\trenderTo: 'deal_stage',\n\t\t\t\t\t\t\t\t\tplotBackgroundColor: null,\n\t\t\t\t\t\t\t\t\tplotBorderWidth: null,\n\t\t\t\t\t\t\t\t\tplotShadow: true\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttitle: {\n\t\t\t\t\t\t\t\t\ttext: ucwords(Joomla.JText._('COBALT_DEALS_BY_STAGE'))\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttooltip: {\n\t\t\t\t\t\t\t\t\tformatter: function() {\n\t\t\t\t\t\t\t\t\t\treturn '<b>'+ this.point.name +'</b>: '+ this.percentage.toFixed(2) +' %';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tplotOptions: {\n\t\t\t\t\t\t\t\t\tpie: {\n\t\t\t\t\t\t\t\t\t\tallowPointSelect: true,\n\t\t\t\t\t\t\t\t\t\tcursor: 'pointer',\n\t\t\t\t\t\t\t\t\t\tdataLabels: {\n\t\t\t\t\t\t\t\t\t\t\tenabled: true,\n\t\t\t\t\t\t\t\t\t\t\tcolor: '#000000',\n\t\t\t\t\t\t\t\t\t\t\tconnectorColor: '#000000',\n\t\t\t\t\t\t\t\t\t\t\tformatter: function() {\n\t\t\t\t\t\t\t\t\t\t\t\treturn '<b>'+ this.point.name +'</b>: '+ this.percentage.toFixed(2) +' %';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t series: [{\n\t\t\t\t \ttype: 'pie',\n\t\t\t\t\t\t\t\t\tname: ucwords(Joomla.JText._('COBALT_DEALS_BY_STAGE')),\n\t\t\t\t\t\t\t\t\tdata: graphData.deal_stage\n\t\t\t\t }]\n\t\t \t});\n\t \tbreak;\n\n\t\t\tcase 'dealStageBar' :\n\t\t\t \tchart = new Highcharts.Chart({\n\t\t\t \t\t\t\tchart: {\n\t\t\t\t\t\t\t\t\trenderTo: 'deal_stage',\n\t\t\t\t\t\t\t\t\tdefaultSeriesType: 'column'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttitle: {\n\t\t\t\t\t\t\t\t\ttext: ucwords(Joomla.JText._('COBALT_DEALS_BY_STAGE'))\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\txAxis: {\n\t\t\t\t\t\t\t\t\tcategories:graphData.stage_names\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tyAxis: {\n\t\t\t\t\t\t\t\t\tmin: 0,\n\t\t\t\t\t\t\t\t\ttitle: {\n\t\t\t\t\t\t\t\t\t\ttext: ucwords(Joomla.JText._('COBALT_TOTAL'))\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tlegend: {\n\t\t\t\t\t\t\t\t\tenabled:false\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttooltip: {\n\t\t\t\t\t\t\t\t\tformatter: function() {\n\t\t\t\t\t\t\t\t\t\treturn ''+\n\t\t\t\t\t\t\t\t\t\t\tthis.x +': '+ this.y;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tplotOptions: {\n\t\t\t\t\t\t\t\t\tcolumn: {\n\t\t\t\t\t\t\t\t\t\tpointPadding: 0.2,\n\t\t\t\t\t\t\t\t\t\tborderWidth: 0\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t series: [{\n\t\t\t\t\t\t\t \tname:ucwords(Joomla.JText._('COBALT_DEALS_BY_STAGE')),\n\t\t\t\t\t\t\t \tdata: graphData.deal_stage\n\t\t\t\t\t\t\t }]\n\t\t\t\t\t});\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 'dealStatusPie' :\n\t\t\t\tchart = new Highcharts.Chart({\n\t\t\t chart: {\n\t\t\t\t\t\t\t\t\trenderTo: 'deal_status',\n\t\t\t\t\t\t\t\t\tplotBackgroundColor: null,\n\t\t\t\t\t\t\t\t\tplotBorderWidth: null,\n\t\t\t\t\t\t\t\t\tplotShadow: true\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttitle: {\n\t\t\t\t\t\t\t\t\ttext: ucwords(Joomla.JText._('COBALT_DEALS_BY_STATUS'))\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttooltip: {\n\t\t\t\t\t\t\t\t\tformatter: function() {\n\t\t\t\t\t\t\t\t\t\treturn '<b>'+ this.point.name +'</b>: '+ this.percentage.toFixed(2) +' %';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tplotOptions: {\n\t\t\t\t\t\t\t\t\tpie: {\n\t\t\t\t\t\t\t\t\t\tallowPointSelect: true,\n\t\t\t\t\t\t\t\t\t\tcursor: 'pointer',\n\t\t\t\t\t\t\t\t\t\tdataLabels: {\n\t\t\t\t\t\t\t\t\t\t\tenabled: true,\n\t\t\t\t\t\t\t\t\t\t\tcolor: '#000000',\n\t\t\t\t\t\t\t\t\t\t\tconnectorColor: '#000000',\n\t\t\t\t\t\t\t\t\t\t\tformatter: function() {\n\t\t\t\t\t\t\t\t\t\t\t\treturn '<b>'+ this.point.name +'</b>: '+ this.percentage.toFixed(2) +' %';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t series: [{\n\t\t\t\t \ttype: 'pie',\n\t\t\t\t\t\t\t\t\tname: ucwords(Joomla.JText._('COBALT_DEALS_BY_STATUS')),\n\t\t\t\t\t\t\t\t\tdata: graphData.deal_status\n\t\t\t\t }]\n\t\t \t});\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'dealStatusBar' :\n\t\t\t\tchart = new Highcharts.Chart({\n\t\t\t \t\t\t\tchart: {\n\t\t\t\t\t\t\t\t\trenderTo: 'deal_status',\n\t\t\t\t\t\t\t\t\tdefaultSeriesType: 'column'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttitle: {\n\t\t\t\t\t\t\t\t\ttext: ucwords(Joomla.JText._('COBALT_DEALS_BY_STATUS'))\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\txAxis: {\n\t\t\t\t\t\t\t\t\tcategories:graphData.status_names\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tyAxis: {\n\t\t\t\t\t\t\t\t\tmin: 0,\n\t\t\t\t\t\t\t\t\ttitle: {\n\t\t\t\t\t\t\t\t\t\ttext: ucwords(Joomla.JText._('COBALT_TOTAL'))\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tlegend: {\n\t\t\t\t\t\t\t\t\tenabled:false\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttooltip: {\n\t\t\t\t\t\t\t\t\tformatter: function() {\n\t\t\t\t\t\t\t\t\t\treturn ''+\n\t\t\t\t\t\t\t\t\t\t\tthis.x +': '+ this.y;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tplotOptions: {\n\t\t\t\t\t\t\t\t\tcolumn: {\n\t\t\t\t\t\t\t\t\t\tpointPadding: 0.2,\n\t\t\t\t\t\t\t\t\t\tborderWidth: 0\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t series: [{\n\t\t\t\t\t\t\t \tname:ucwords(Joomla.JText._('COBALT_DEALS_BY_STATUS')),\n\t\t\t\t\t\t\t \tdata: graphData.deal_status\n\t\t\t\t\t\t\t }]\n\t\t\t\t\t});\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'leadRevenue' :\n\t\t\t\tchart = new Highcharts.Chart({\n\t\t\t chart: {\n\t\t\t\t\t\t\t\t\trenderTo: 'lead_revenue',\n\t\t\t\t\t\t\t\t\tplotBackgroundColor: null,\n\t\t\t\t\t\t\t\t\tplotBorderWidth: null,\n\t\t\t\t\t\t\t\t\tplotShadow: true\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttitle: {\n\t\t\t\t\t\t\t\t\ttext: ucwords(Joomla.JText._('COBALT_REVENUE_FROM_LEAD_SOURCES'))\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttooltip: {\n\t\t\t\t\t\t\t\t\tformatter: function() {\n\t\t\t\t\t\t\t\t\t\treturn '<b>'+ this.point.name +'</b>: '+Joomla.JText._('COBALT_CURRENCY')+this.point.data;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tplotOptions: {\n\t\t\t\t\t\t\t\t\tpie: {\n\t\t\t\t\t\t\t\t\t\tallowPointSelect: true,\n\t\t\t\t\t\t\t\t\t\tcursor: 'pointer',\n\t\t\t\t\t\t\t\t\t\tdataLabels: {\n\t\t\t\t\t\t\t\t\t\t\tenabled: true,\n\t\t\t\t\t\t\t\t\t\t\tcolor: '#000000',\n\t\t\t\t\t\t\t\t\t\t\tconnectorColor: '#000000',\n\t\t\t\t\t\t\t\t\t\t\tformatter: function() {\n\t\t\t\t\t\t\t\t\t\t\t\treturn '<b>'+ this.point.name +'</b>: '+Joomla.JText._('COBALT_CURRENCY')+this.point.data;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t series: [{\n\t\t\t\t \ttype: 'pie',\n\t\t\t\t\t\t\t\t\tname: ucwords(Joomla.JText._('COBALT_REVENUE_FROM_LEAD_SOURCES')),\n\t\t\t\t\t\t\t\t\tdata: graphData.lead_sources\n\t\t\t\t }]\n\t\t \t});\n\t\t \t\n\t\t\tbreak;\n\t\t\t\n\t\t\t//TODO\n\t\t\tcase 'leadCloseTime' :\n\t\t\t\t\n\t\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'yearlyCommissions' :\n\t\t\tchart = new Highcharts.Chart({\n\t\t\t \t\t\t\tchart: {\n\t\t\t\t\t\t\t\t\trenderTo: 'yearly_commissions',\n\t\t\t\t\t\t\t\t\tdefaultSeriesType: 'column'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttitle: {\n\t\t\t\t\t\t\t\t\ttext: ucwords(Joomla.JText._('COBALT_YEARLY_COMMISSIONS'))\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\txAxis: {\n\t\t\t\t\t\t\t\t\tcategories:graphData.months\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tyAxis: {\n\t\t\t\t\t\t\t\t\tmin: 0,\n\t\t\t\t\t\t\t\t\ttitle: {\n\t\t\t\t\t\t\t\t\t\ttext: Joomla.JText._('COBALT_TOTAL')\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tlabels:{formatter:function(){\n\t\t\t\t\t\t\t\t\t\treturn Joomla.JText._('COBALT_CURRENCY')+this.value;\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tlegend: {\n\t\t\t\t\t\t\t\t\tenabled:false\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttooltip: {\n\t\t\t\t\t\t\t\t\tformatter: function() {\n\t\t\t\t\t\t\t\t\t\treturn ''+\n\t\t\t\t\t\t\t\t\t\t\tthis.x +': '+Joomla.JText._('COBALT_CURRENCY')+ this.y;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tplotOptions: {\n\t\t\t\t\t\t\t\t\tcolumn: {\n\t\t\t\t\t\t\t\t\t\tpointPadding: 0.2,\n\t\t\t\t\t\t\t\t\t\tborderWidth: 0\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t series: [{\n\t\t\t\t\t\t\t \tname:ucwords(Joomla.JText._('COBALT_YEARLY_COMMISSIONS')),\n\t\t\t\t\t\t\t \tdata: graphData.yearly_commissions\n\t\t\t\t\t\t\t }]\n\t\t\t\t\t});\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'monthlyCommissions' :\n\t\t\tchart = new Highcharts.Chart({\n\t\t\t \t\t\t\tchart: {\n\t\t\t\t\t\t\t\t\trenderTo: 'monthly_commissions',\n\t\t\t\t\t\t\t\t\tdefaultSeriesType: 'column'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttitle: {\n\t\t\t\t\t\t\t\t\ttext: ucwords(Joomla.JText._('COBALT_MONTHLY_COMMISSIONS'))\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\txAxis: {\n\t\t\t\t\t\t\t\t\tcategories:graphData.weeks\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tyAxis: {\n\t\t\t\t\t\t\t\t\tmin: 0,\n\t\t\t\t\t\t\t\t\ttitle: {\n\t\t\t\t\t\t\t\t\t\ttext: Joomla.JText._('COBALT_TOTAL')\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tlabels:{formatter:function(){\n\t\t\t\t\t\t\t\t\t\treturn Joomla.JText._('COBALT_CURRENCY')+this.value;\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tlegend: {\n\t\t\t\t\t\t\t\t\tenabled:false\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttooltip: {\n\t\t\t\t\t\t\t\t\tformatter: function() {\n\t\t\t\t\t\t\t\t\t\treturn ''+\n\t\t\t\t\t\t\t\t\t\t\tthis.x +': '+Joomla.JText._('COBALT_CURRENCY')+ this.y;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tplotOptions: {\n\t\t\t\t\t\t\t\t\tcolumn: {\n\t\t\t\t\t\t\t\t\t\tpointPadding: 0.2,\n\t\t\t\t\t\t\t\t\t\tborderWidth: 0\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t series: [{\n\t\t\t\t\t\t\t \tname: ucwords(Joomla.JText._('COBALT_MONTHLY_COMMISSIONS')),\n\t\t\t\t\t\t\t \tdata: graphData.monthly_commissions\n\t\t\t\t\t\t\t }]\n\t\t\t\t\t});\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'yearlyRevenue' :\n\t\t\t chart = new Highcharts.Chart({\n\t\t\t \t\t\t\tchart: {\n\t\t\t\t\t\t\t\t\trenderTo: 'yearly_revenue',\n\t\t\t\t\t\t\t\t\tdefaultSeriesType: 'column'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttitle: {\n\t\t\t\t\t\t\t\t\ttext: ucwords(Joomla.JText._('COBALT_YEARLY_REVENUE'))\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\txAxis: {\n\t\t\t\t\t\t\t\t\tcategories:graphData.months\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tyAxis: {\n\t\t\t\t\t\t\t\t\tmin: 0,\n\t\t\t\t\t\t\t\t\ttitle: {\n\t\t\t\t\t\t\t\t\t\ttext: Joomla.JText._('COBALT_TOTAL')\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tlabels:{formatter:function(){\n\t\t\t\t\t\t\t\t\t\treturn Joomla.JText._('COBALT_CURRENCY')+this.value;\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tlegend: {\n\t\t\t\t\t\t\t\t\tenabled:false\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttooltip: {\n\t\t\t\t\t\t\t\t\tformatter: function() {\n\t\t\t\t\t\t\t\t\t\treturn ''+\n\t\t\t\t\t\t\t\t\t\t\tthis.x +': '+Joomla.JText._('COBALT_CURRENCY')+ this.y;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tplotOptions: {\n\t\t\t\t\t\t\t\t\tcolumn: {\n\t\t\t\t\t\t\t\t\t\tpointPadding: 0.2,\n\t\t\t\t\t\t\t\t\t\tborderWidth: 0\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t series: [{\n\t\t\t\t\t\t\t \tname: ucwords(Joomla.JText._('COBALT_YEARLY_REVENUE')),\n\t\t\t\t\t\t\t \tdata: graphData.yearly_revenue\n\t\t\t\t\t\t\t }]\n\t\t\t\t\t});\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'monthlyRevenue' :\n\t\t\tchart = new Highcharts.Chart({\n\t\t\t \t\t\t\tchart: {\n\t\t\t\t\t\t\t\t\trenderTo: 'monthly_revenue',\n\t\t\t\t\t\t\t\t\tdefaultSeriesType: 'column'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttitle: {\n\t\t\t\t\t\t\t\t\ttext: ucwords(Joomla.JText._('COBALT_MONTHLY_REVENUE'))\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\txAxis: {\n\t\t\t\t\t\t\t\t\tcategories:graphData.weeks\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tyAxis: {\n\t\t\t\t\t\t\t\t\tmin: 0,\n\t\t\t\t\t\t\t\t\ttitle: {\n\t\t\t\t\t\t\t\t\t\ttext: Joomla.JText._('COBALT_TOTAL')\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tlabels:{formatter:function(){\n\t\t\t\t\t\t\t\t\t\treturn Joomla.JText._('COBALT_CURRENCY')+this.value;\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tlegend: {\n\t\t\t\t\t\t\t\t\tenabled:false\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\ttooltip: {\n\t\t\t\t\t\t\t\t\tformatter: function() {\n\t\t\t\t\t\t\t\t\t\treturn ''+\n\t\t\t\t\t\t\t\t\t\t\tJoomla.JText._('COBALT_WEEK')+' '+this.x +': '+Joomla.JText._('COBALT_CURRENCY')+ this.y;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tplotOptions: {\n\t\t\t\t\t\t\t\t\tcolumn: {\n\t\t\t\t\t\t\t\t\t\tpointPadding: 0.2,\n\t\t\t\t\t\t\t\t\t\tborderWidth: 0\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t series: [{\n\t\t\t\t\t\t\t \tname: ucwords(Joomla.JText._('COBALT_MONTHLY_REVENUE')),\n\t\t\t\t\t\t\t \tdata: graphData.monthly_revenue\n\t\t\t\t\t\t\t }]\n\t\t\t\t\t});\n\t\t\tbreak;\n\t\t\t\n\t\t\t}\n}", "function sliderBlockWidth(content){\n let eventParentWidth = $(content).find(\".carusel_block\").width();\n eventParentWidth = parseFloat(eventParentWidth);\n\n let eventBlockWidthSum;\n eventBlockWidthSum = (eventParentWidth / 3) -8.5;\n eventBlockWidthSum = parseInt(eventBlockWidthSum) +3;\n\n // blocks width for mobile\n if($(window).width() < 1024){\n eventBlockWidthSum = 100;\n }\n $(content +' > .carusel_block > .list_block > div').css({width: eventBlockWidthSum + 'px'});\n }", "function block(base, stateless) {\n\n var target = base.data('target');\n\n if (!target.hasClass(clsList[14])) {\n\n // The visual effects should not always be applied.\n if (!stateless) {\n target.addClass(clsList[15]);\n setTimeout(function () {\n target.removeClass(clsList[15]);\n }, 450);\n }\n\n target.addClass(clsList[14]);\n call(base.data('options').block, target);\n }\n }", "async function doBlockingSend(action) {\n await null;\n // blockManagerConsole.warn(\n // 'FIGME: blockHeight',\n // action.blockHeight,\n // 'received',\n // action.type,\n // );\n switch (action.type) {\n case ActionType.AG_COSMOS_INIT: {\n const { isBootstrap, upgradePlan, blockTime } = action;\n // This only runs for the very first block on the chain.\n if (isBootstrap) {\n verboseBlocks && blockManagerConsole.info('block bootstrap');\n savedHeight === 0 ||\n Fail`Cannot run a bootstrap block at height ${savedHeight}`;\n const blockHeight = 0;\n const runNum = 0;\n controller.writeSlogObject({\n type: 'cosmic-swingset-bootstrap-block-start',\n blockTime,\n });\n controller.writeSlogObject({\n type: 'cosmic-swingset-run-start',\n blockHeight,\n runNum,\n });\n await processAction(action.type, async () =>\n bootstrapBlock(blockHeight, blockTime),\n );\n controller.writeSlogObject({\n type: 'cosmic-swingset-run-finish',\n blockHeight,\n runNum,\n });\n controller.writeSlogObject({\n type: 'cosmic-swingset-bootstrap-block-finish',\n blockTime,\n });\n }\n if (upgradePlan) {\n const blockHeight = upgradePlan.height;\n if (blockNeedsExecution(blockHeight)) {\n controller.writeSlogObject({\n type: 'cosmic-swingset-upgrade-start',\n blockHeight,\n blockTime,\n upgradePlan,\n });\n // Process upgrade plan\n const upgradedAction = {\n type: ActionType.ENACTED_UPGRADE,\n upgradePlan,\n blockHeight,\n blockTime,\n };\n await doBlockingSend(upgradedAction);\n controller.writeSlogObject({\n type: 'cosmic-swingset-upgrade-finish',\n blockHeight,\n blockTime,\n });\n }\n }\n return true;\n }\n\n case ActionType.ENACTED_UPGRADE: {\n // Install and execute new core proposals.\n const {\n upgradePlan: { info: upgradeInfoJson = null } = {},\n blockHeight,\n blockTime,\n } = action;\n const upgradePlanInfo =\n upgradeInfoJson &&\n parseLocatedJson(upgradeInfoJson, 'ENACTED_UPGRADE upgradePlan.info');\n\n // Handle the planned core proposals as just another action.\n const { coreProposals = [] } = upgradePlanInfo || {};\n\n if (!coreProposals.length) {\n // Nothing to do.\n return undefined;\n }\n\n // Find scripts relative to our location.\n const myFilename = fileURLToPath(import.meta.url);\n const { bundles, code: coreEvalCode } =\n await extractCoreProposalBundles(coreProposals, myFilename, {\n handleToBundleSpec: async (handle, source, _sequence, _piece) => {\n const bundle = await bundleSource(source);\n const { endoZipBase64Sha512: hash } = bundle;\n const bundleID = `b1-${hash}`;\n handle.bundleID = bundleID;\n harden(handle);\n return harden([`${bundleID}: ${source}`, bundle]);\n },\n });\n\n for (const [meta, bundle] of Object.entries(bundles)) {\n await controller\n .validateAndInstallBundle(bundle)\n .catch(e => Fail`Cannot validate and install ${meta}: ${e}`);\n }\n\n // Now queue the code for evaluation.\n //\n // TODO: Once SwingSet sprouts some tools for preemption, we should use\n // them to help the upgrade process finish promptly.\n const coreEvalAction = {\n type: ActionType.CORE_EVAL,\n blockHeight,\n blockTime,\n evals: [\n {\n json_permits: 'true',\n js_code: coreEvalCode,\n },\n ],\n };\n highPriorityQueue.push({\n context: {\n blockHeight,\n txHash: 'x/upgrade',\n msgIdx: 0,\n },\n action: coreEvalAction,\n });\n\n return undefined;\n }\n\n case ActionType.COMMIT_BLOCK: {\n const { blockHeight, blockTime } = action;\n verboseBlocks &&\n blockManagerConsole.info('block', blockHeight, 'commit');\n if (blockHeight !== savedHeight) {\n throw Error(\n `Committed height ${blockHeight} does not match saved height ${savedHeight}`,\n );\n }\n\n controller.writeSlogObject({\n type: 'cosmic-swingset-commit-block-start',\n blockHeight,\n blockTime,\n });\n\n // Save the kernel's computed state just before the chain commits.\n const start2 = Date.now();\n await saveOutsideState(savedHeight);\n saveTime = Date.now() - start2;\n\n blockParams = undefined;\n\n blockManagerConsole.debug(\n `wrote SwingSet checkpoint [run=${runTime}ms, chainSave=${chainTime}ms, kernelSave=${saveTime}ms]`,\n );\n\n return undefined;\n }\n\n case ActionType.AFTER_COMMIT_BLOCK: {\n const { blockHeight, blockTime } = action;\n\n const fullSaveTime = Date.now() - endBlockFinish;\n\n controller.writeSlogObject({\n type: 'cosmic-swingset-commit-block-finish',\n blockHeight,\n blockTime,\n saveTime: saveTime / 1000,\n chainTime: chainTime / 1000,\n fullSaveTime: fullSaveTime / 1000,\n });\n\n afterCommitWorkDone = afterCommit(blockHeight, blockTime);\n\n return undefined;\n }\n\n case ActionType.BEGIN_BLOCK: {\n const { blockHeight, blockTime, params } = action;\n blockParams = parseParams(params);\n verboseBlocks &&\n blockManagerConsole.info('block', blockHeight, 'begin');\n runTime = 0;\n\n controller.writeSlogObject({\n type: 'cosmic-swingset-begin-block',\n blockHeight,\n blockTime,\n inboundQueueStats: inboundQueueMetrics.getStats(),\n });\n\n return undefined;\n }\n\n case ActionType.END_BLOCK: {\n const { blockHeight, blockTime } = action;\n controller.writeSlogObject({\n type: 'cosmic-swingset-end-block-start',\n blockHeight,\n blockTime,\n });\n\n blockParams || Fail`blockParams missing`;\n\n if (!blockNeedsExecution(blockHeight)) {\n // We are reevaluating, so do not do any work, and send exactly the\n // same downcalls to the chain.\n //\n // This is necessary only after a restart when Tendermint is reevaluating the\n // block that was interrupted and not committed.\n //\n // We assert that the return values are identical, which allows us to silently\n // clear the queue.\n try {\n replayChainSends();\n } catch (e) {\n // Very bad!\n decohered = e;\n throw e;\n }\n } else {\n // And now we actually process the queued actions down here, during\n // END_BLOCK, but still reentrancy-protected.\n\n provideInstallationPublisher();\n\n await processAction(action.type, async () =>\n endBlock(blockHeight, blockTime, blockParams),\n );\n\n // We write out our on-chain state as a number of chainSends.\n const start = Date.now();\n await saveChainState();\n chainTime = Date.now() - start;\n\n // Advance our saved state variables.\n savedHeight = blockHeight;\n }\n controller.writeSlogObject({\n type: 'cosmic-swingset-end-block-finish',\n blockHeight,\n blockTime,\n inboundQueueStats: inboundQueueMetrics.getStats(),\n });\n\n endBlockFinish = Date.now();\n\n return undefined;\n }\n\n default: {\n throw Fail`Unrecognized action ${action}; are you sure you didn't mean to queue it?`;\n }\n }\n }", "async function formatPage(state, currentFlowValue, heightValue, safeRange, heightRange, siteGeoLocation, siteName, unitSet, siteID, relaxPeriod, baseFlow) {\n// This object contains the information to determine the formatting of each global style\nvar formatChoices = {\n 'yes': {\n background_color: '#2E933C',\n text_color: '#261C15',\n stroke_color: '#261C15'\n },\n 'maybe': {\n background_color: '#FF7F11',\n text_color: '#E4E6C3',\n stroke_color: '#E4E6C3'\n },\n 'no': {\n background_color: '#C41E3D',\n text_color: '#EAC435',\n stroke_color: '#EAC435'\n }\n}\n\n// Swap favicons\nswapFavicon(state);\n\n// Fill in the border edge content\n$('#low-range').text(safeRange.min);\n$('#high-range').text(safeRange.max);\n// Set the range scale and position the low, high, and indicator\nif(currentFlowValue > safeRange.max) {\n var maxScale = currentFlowValue*1.25;\n} else {\n var maxScale = safeRange.max*1.25;\n}\nvar lowLeft = (safeRange.min*100)/maxScale;\nvar highLeft = (safeRange.max*100)/maxScale;\nvar indicatorLeft = (currentFlowValue*100)/maxScale;\n$('#low-range').css('left', lowLeft + '%');\n$('#high-range').css('left', highLeft + '%');\n$('#range-indicator').css('left', indicatorLeft + '%');\n\n// Height content\n$('#low-height').text(heightRange.min);\n$('#high-height').text(heightRange.max);\n\n// Set the height scale and position the low, high, and indicator\nvar heightRangeSize = heightRange.max - heightRange.min;\nif(heightValue > heightRange.max) {\n var maxHeightScale = heightValue + (heightRangeSize*.25);\n var minHeightScale = 0;\n} else {\n var maxHeightScale = heightRange.max + (heightRangeSize*.25);\n var minHeightScale = 0;\n}\nvar lowHeightLeft = remapNumber(heightRange.min, minHeightScale, maxHeightScale, 0, 100);\nvar highHeightLeft = remapNumber(heightRange.max, minHeightScale, maxHeightScale, 0, 100);\nvar indicatorHeightLeft = remapNumber(heightValue, minHeightScale, maxHeightScale, 0, 100);\n$('#low-height').css('left', lowHeightLeft + '%');\n$('#high-height').css('left', highHeightLeft + '%');\n$('#height-indicator').css('left', indicatorHeightLeft + '%');\ngsap.to('#background-wave', {duration: 2.5, delay: 1.25, ease: 'power2.inOut', attr:{'data-height': indicatorHeightLeft}})\n\n// Set the display option to default\n$('#icon-translation').css('transform', 'translate(3.2779px, 0px)');\n$('#icon-sun').css('opacity', '0');\n$('#icon-i').css('opacity', '0');\n\n// Set the wave mask to the correct size\n$('#background-wave > mask').attr('width', $(window).width()).attr('height', $(window).height());\n$('#background-wave > mask > g > rect').attr('width', $(window).width()).attr('height', $(window).height());\n\n// Add loading spinner state to graph area\nlet loaderClass = 'graph-load-state-' + state;\ndocument.querySelector('.graph-load-state').classList.add(loaderClass)\n\n// Call a weather display update\nweatherUpdate(siteGeoLocation, siteName, unitSet, formatChoices[state].stroke_color);\n\n// Call a local business update\nlocalBusinessPopulate(siteGeoLocation, document.getElementById('local-outfitters'), siteName, state);\n\n// Begin the transition to the final state\ngsap.timeline()\n .delay(.25)\n .call(createAnswer, [state, currentFlowValue])\n .set('.border-content', {zIndex: 100})\n .set('.border-text', {color: formatChoices[state].text_color})\n .set('#answer > .container', {y: '150%', color: formatChoices[state].text_color})\n .set('#current-flow > .container', {y: '150%', color: formatChoices[state].text_color})\n .set('.measurement-number', {color: formatChoices[state].text_color})\n .set('.border-text > .container', {color: formatChoices[state].text_color})\n .set('.border-text', {background: formatChoices[state].background_color})\n .set('.date-content', {skewX: 0, skewY: 0, rotation: '-90', scaleX: 0, scaleY: 1})\n .set('.date-mask > .container', {color: formatChoices[state].text_color})\n .set('.date-mask', {background: formatChoices[state].background_color})\n .set('.settings-text', {color: formatChoices[state].text_color})\n .set('.unit-item', {color: formatChoices[state].text_color})\n .set('.unit-seperator', {color: formatChoices[state].text_color})\n .set('svg .svg-stroke-style', {stroke: formatChoices[state].stroke_color})\n .set('svg .svg-fill-style', {fill: formatChoices[state].stroke_color})\n .set('.point-indicator > svg > path', {fill: formatChoices[state].stroke_color})\n .set('.tooltip-item', {color: formatChoices[state].background_color, background: formatChoices[state].text_color})\n .set('.forecast-item', {borderColor: formatChoices[state].stroke_color})\n .set('#weather-forecast', {borderColor: formatChoices[state].stroke_color, color: formatChoices[state].text_color})\n .set('.line-rule', {background: formatChoices[state].stroke_color})\n .set('.information-display', {borderColor: formatChoices[state].stroke_color, color: formatChoices[state].text_color})\n .set('#graph-timeline > .container', {height: 'auto'})\n .to('body', {duration: 1, background: formatChoices[state].background_color})\n .to('.border-content', {duration: .75, ease: 'power2.inOut', height: $(window).height()-150, opacity: 1}, '-=.25')\n .to('#background-wave > path', {duration: .75, ease: 'power2.inOut', fill: formatChoices[state].text_color}, '-=.75')\n .to('.footer-text', {duration: .75, ease: 'power2.inOut', color: formatChoices[state].text_color}, '-=.75')\n .to('#fill-title', {duration: .75, ease: 'power2.inOut', top: 75, x: '-50%', y: '-25%', color: formatChoices[state].text_color}, '-=.75')\n .to('#stroke-title', {duration: .75, ease: 'power2.inOut', top: 75, x: '-50%', y: '-25%', textStrokeColor: formatChoices[state].stroke_color}, '-=.75')\n .to('.subtitle', {duration: .75, ease: 'power2.inOut', top: (75 - (($('#fill-title').height()*2.25)*.25)/2), color: formatChoices[state].text_color}, '-=.75')\n .to('.border-content', {duration: .75, borderColor: formatChoices[state].stroke_color}, '-=.75')\n .to('#answer > .container', {duration: .75, ease: 'power2.inOut', y: '0%'}, '-=.75')\n .to('#current-flow > .container', {duration: .5, ease: 'power2.inOut', y: '0%'}, '-=.375')\n .to('.date-content', {duration: .5, ease: 'power2.inOut', scaleX: 1, scaleY: 1, rotation: '-90', skewX: 0, skewY: 0}, '-=.375')\n .to('.date-mask > .container', {duration: .5, ease: 'power2.inOut', x: '0%'}, '-=.375')\n .to('.range-content > .container > .border-text', {duration: .375, ease: 'power2.inOut', scaleX: 1}, '-=.25')\n .to('#range-label > .container', {duration: .375, ease: 'power2.inOut', y: '0%'}, '-=.25')\n .to('.range-wrapper > .container > .measurement-number', {duration: .375, ease: 'power2.inOut', y: '0%'}, '-=.25')\n .to('#range-indicator', {duration: .375, ease: 'power2.inOut', y: '0%'}, \"-=.25\")\n .to('#range-unit > .container', {duration: .375, ease: 'power2.inOut', y: '0%'}, \"-=.25\")\n .set('.height-content', {width: (($(window).height()-150)*.9)})\n .to('.height-content > .container > .border-text', {duration: .375, ease: 'power2.inOut', scaleX: 1}, \"-=.25\")\n .to('#height-label > .container', {duration: .375, ease: 'power2.inOut', y: '0%'}, '-=.25')\n .to('.height-wrapper > .container > .measurement-number', {duration: .375, ease: 'power2.inOut', y: '0%'}, '-=.25')\n .to('#height-indicator', {duration: .375, ease: 'power2.inOut', y: '0%'}, \"-=.25\")\n .to('#height-unit > .container', {duration: .375, ease: 'power2.inOut', y: '0%'}, \"-=.25\")\n .from('#settings-cog', {duration: 1.25, ease: 'power2.inOut', rotation: -720}, \"-=.375\")\n .to('#settings-cog', {duration: .375, ease: 'linear', opacity: 1}, \"-=1\")\n .to('#current-conditions-box', {duration: .5, ease: 'power2.inOut', opacity: 1}, \"-=2.25\")\n .to('#current-conditions-box', {duration: 1, ease: 'power2.inOut', scale: 1}, \"-=2.5\")\n .to('#the-download-box', {duration: .5, ease: 'power2.inOut', opacity: 1}, \"-=2\")\n .to('#the-download-box', {duration: 1, ease: 'power2.inOut', scale: 1}, \"-=2.5\")\n .set('#range-tooltip', {pointerEvents: 'all'});\n\n // Update the units of measure\n measureUpdate(getCookie('canitube_Settings_Unit Measure'));\n\n // Test for 4D flow data, if present pass into raw data, else, run call to USGS\n let flowGraphRawData = '';\n if(checkLocalStorage('canitube_' + siteName + '_Period Data') == false) {\n // Call USGS for 4 day data\n flowGraphRawData = await fetchPeriodData(siteID, ['00060'], '4D');\n // Store the raw data in local storage\n writeLocalStorage('canitube_' + siteName + '_Period Data', JSON.stringify(flowGraphRawData), ['hourstil', 2], 'River');\n } else {\n flowGraphRawData = JSON.parse(readLocalStorage('canitube_' + siteName + '_Period Data').value);\n }\n\n // Call a graph update to display the returned 4-day data\n generateGraph(flowGraphRawData, safeRange.max, relaxPeriod, baseFlow, 16, formatChoices[state].stroke_color);\n}", "function pointType(player, callback) {\n const dist = utilityVector.distance(player.pos, player.job.currentPoint.position);\n if (dist > player.job.currentPoint.range) {\n return callback(false);\n }\n return callback(true);\n}", "function renderBlocks() {\n const $mainContainer = $(\"#main-container\");\n STATE.sdg.blocks.forEach((block, index) => {\n const blockId = `sdg-block-${index}`;\n // Render block\n $mainContainer.append(\n TEMPLATES.block({\n title: block.name,\n id: blockId,\n })\n );\n\n // Render charts\n const $chartContainer = $(`#${blockId}`);\n block.charts.forEach((chart) => {\n renderChart($chartContainer, chart);\n });\n });\n}", "function functionName(data){\n\tvar maxRange = 1000 * 3600 * 24 * 14;\n\tvar chartOptions = {\n\t\tchart: { renderTo: 'container' },\n\t\tloading: {\n\t\t\tstyle: { opacity: 0.8 },\n\t\t\tlabelStyle: { fontSize: '300%' }\n\t\t},\n\t\txAxis: {\n\t\t\ttype: 'datetime',\n\t\t\tordinal: false,\n\t\t\tlabels : {\n\t\t\t\tformat: '{value:%m-%d %H:%M}',\n\t\t\t\trotation: 20\n\t\t\t}\n\t\t},\n\t yAxis: {\n\t \tlabels: { format: \"\" },\n\t \ttitle: {text: \"\" }\n\t },\n\t rangeSelector: {\n\t buttons: [{ type : 'hour', count : 6, text : '6h'\n\t }, { type : 'hour', count : 12, text : '12h'\n\t }, { type: 'day', count: 1, text: '1d'\n\t }, { type: 'day', count: 3, text: '3d'\n\t }, { type: 'week', count: 1, text: '1w'\n\t //}, { type: 'month', count: 1, text: '1m'\n\t // }, { type: 'month', count: 6, text: '6m'\n\t // }, { type: 'year', count: 1, text: '1y'\n\t // }, { type: 'all', text: 'All'\n\t }],\n\t selected: 4,\n\t inputEnabled: false\n\t },\n// navigator: { enabled: false },\n\t scrollbar: { enabled: false\n // , liveRedraw:false\n },\n\t // title : { text : 'Title' },\n\t plotOptions: {\n line: {\n pointInterval: 60 * 1000,\n gapSize: 30\n },\n\t\t\tseries: {\n\n lineWidth: 1,\n marker: {\n enabled: true,\n radius: 2\n },\n\n\t\t\t\t// dataGrouping: false, //Not needed here? Only in (root) series?\n\t\t\t\ttooltip: {\n // xDateFormat: '%A %m-%d-%Y %H:%M'\n headerFormat: ''\n\t\t\t\t\t// pointFormatter: tooltipFlags\n\t\t\t\t},\n\t\t\t \tturboThreshold: 0 //CRUCIAL for more than 1000 points!!!!\n\t\t\t}\n\t },\n\t series : [{\n\t \tdataGrouping: {enabled: false} //NEEDED or dataGrouping doesn't pass custom attributes/properties\n//\t\t, lineWidth: 0\n\t \t// , events : {\n\t \t\t// afterAnimate : function () {\n\t \t\t\t// console.log('HIDE loading');\n\t \t\t// }\n\t \t// }\n\t \t// , point: {\n\t \t\t// events: {\n\t \t\t\t// mouseOver: function () {\n\t \t\t\t\t// console.log(this);\n\t \t\t\t// }\n\t \t\t// }\n\t \t// }\n\t }]\n\t};\n\t// console.log(data.table.rows.length); //same as data[\"table\"][\"rows\"].length\n dataDict = [];\n min = data[\"table\"][\"rows\"][0][2];\n max = data[\"table\"][\"rows\"][0][2];\n $.each(data[\"table\"][\"rows\"], function (i, item) { //preference if bringing multiple columns\n \t// item[0] = new Date(item[0]).getTime();\n \t/// get min and max from data to be used to set yAxis range\n \tif (item[2] < min) { min = item[2] }\n \tif (item[2] > max) { max = item[2] }\n \trow = {\n \t\tx: new Date(item[1]).getTime(),\n \t\ty: item[2],\n unit: data[\"table\"]['columnUnits'][2]\n \t\t// flag1: item[3],\n \t\t// flag2: item[4]\n \t\t};\n ///\"store\" flag data to be used for the tooltip\n \tif ((!$(\"#onlyQC\").prop('checked')) && (flagsArr.indexOf(attr) > -1)) {\n \t\trow.flag1 = item[3]\n \t\trow.flag2 = item[4]\n \t\tif (row.flag1 != 1) { row.color = '#FF0000'}\n \t}\n \tdataDict.push(row);\n });\n // console.log(data[\"table\"][\"rows\"][0]);\n // console.log(dataDict.length, min, max);\n if (chart) chart.destroy();\n chartOptions.series[0].data = dataDict;\n chartOptions.series[0].name = attr; // data[\"table\"][\"columnNames\"][2];\n chartOptions.yAxis.title.text = attr+' ('+data[\"table\"][\"columnUnits\"][2]+')'; //data[\"table\"][\"columnNames\"][2];\n //chartOptions.yAxis.labels.format = '{value} '+data[\"table\"][\"columnUnits\"][2];\n chartOptions.yAxis.labels.format = '{value}';\n\n if ((!$(\"#onlyQC\").prop('checked')) && (flagsArr.indexOf(attr) > -1)) {\n \tchartOptions.plotOptions.series.tooltip.pointFormatter = tooltipFlags;\n } else {\n \tchartOptions.plotOptions.series.tooltip.pointFormatter = tooltipNoFlags;\n }\n // $('#container').highcharts('StockChart', chartOptions);\n chart = new Highcharts.StockChart(chartOptions);\n chart.yAxis[0].setExtremes(min, max);\n // chart.series[0].dataGrouping.enabled = false;\n}", "function doorStyle(type, wallNumber) {\n\n //Get value of door style drop down\n var doorStyleDDL = document.getElementById('MainContent_ddlDoorStyle' + wallNumber + type).options[document.getElementById('MainContent_ddlDoorStyle' + wallNumber + type).selectedIndex].value;\n\n //If drop down value is v4TCabana, perform block\n if (doorStyleDDL == 'Vertical Four Track') {\n //Change door vinyl tint row display style to inherit\n document.getElementById('MainContent_rowDoorVinylTint' + wallNumber + type).style.display = 'inherit';\n //Change door number of vents row display style to inherit\n document.getElementById('MainContent_rowDoorNumberOfVents' + wallNumber + type).style.display = 'inherit';\n //Change door screen options row display style to none\n document.getElementById('MainContent_rowDoorScreenOptions' + wallNumber + type).style.display = 'none';\n }\n else if (doorStyleDDL == 'Full Screen' || doorStyleDDL == 'Screen' || doorStyleDDL == 'Aluminum Storm Screen')\n {\n //Change door screen options row display style to inherit\n document.getElementById('MainContent_rowDoorScreenOptions' + wallNumber + type).style.display = 'inherit';\n //Change door vinyl tint row display style to none\n document.getElementById('MainContent_rowDoorVinylTint' + wallNumber + type).style.display = 'none';\n //Change door number of vents row display style to inherit\n document.getElementById('MainContent_rowDoorNumberOfVents' + wallNumber + type).style.display = 'none';\n }\n //else, perform block\n else {\n //Change door vinyl tint row display style to none\n document.getElementById('MainContent_rowDoorVinylTint' + wallNumber + type).style.display = 'none';\n //Change door number of vents row display style to inherit\n document.getElementById('MainContent_rowDoorNumberOfVents' + wallNumber + type).style.display = 'none';\n //Change door screen options row display style to none\n document.getElementById('MainContent_rowDoorScreenOptions' + wallNumber + type).style.display = 'none';\n }\n}", "function t(e){return!!r(e)||\"block\"===s.dom.getStyle(\"display\").from(e)}", "function isValidElementType(type){if(typeof type==='string'||typeof type==='function'){return true;}// Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\nif(type===exports.Fragment||type===exports.Profiler||type===REACT_DEBUG_TRACING_MODE_TYPE||type===exports.StrictMode||type===exports.Suspense||type===REACT_SUSPENSE_LIST_TYPE||type===REACT_LEGACY_HIDDEN_TYPE||enableScopeAPI){return true;}if(typeof type==='object'&&type!==null){if(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_FUNDAMENTAL_TYPE||type.$$typeof===REACT_BLOCK_TYPE||type[0]===REACT_SERVER_BLOCK_TYPE){return true;}}return false;}", "function renderBlocks(saveData,target){\n\t\t/**\n\t\t*init variables and reuse typeString later\n\t\t*/\t\n\t\tvar blockTypes = ['g_block_c2','g_block_c3','g_block_c4','g_block_c5','g_block_c6','g_block_c7','g_block_c8','g_block_c9','g_block_c12'];\n\t\n\t\t//var blockBox= $(\"#g_page \"+target+\" div.\"+blockTypes.join(\",#g_page div.\")),l,typeIs,i,ref,type,arrtest,assign=tdc.Grd.Templates.getByID('blockBox');\n\t\t\n\t\t// We use the following line until all block markup have been \"wrapped\"\n\t\tvar blockBox= $(\"#g_page \"+target+\" .g_block_content.\"+blockTypes.join(\",#g_page .g_block_content.\")),l,typeIs,i,ref,type,arrtest,assign=tdc.Grd.Templates.getByID('blockBox');\n\t\tvar data;\n\t\n\t\tif(blockBox.length){\n\t\t\tvar blength=blockBox.length;\n\t\n\t\t\tfor (i=0;i<blength; i++) {\n\t\t\t\tref=$(blockBox[i]);\n\t\t\t\tarrtest=ref.attr('class').split(' ');\n\t\t\t\tl = arrtest.length;\n\t\t\t\tfor (var j=0;j<l; j++) {\n\t\t\t\t\ttypeIs = blockTypes.indexOf(arrtest[j]);\n\t\t\t\t\tif(typeIs!=-1){\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t*if data is needed AGAIN\n\t\t\t\t\t\t*/\n\t\t\t\t\t\tif(saveData){\n\t\t\t\t\t\t\t$(this).data('blockType',blockTypes[typeIs]);\n\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\tvar blockType=blockTypes[typeIs];\n\t\t\t\t\t\t\n\t\t\t\t\t\tdata = { //data object used in template rendering engine\n\t\t\t\t\t\t\ttype:blockType, //set type\n\t\t\t\t\t\t\tref:ref.removeClass(blockType).outerHTML() //cleanup the markup the class on the ref is not needed longer\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tref.fasterReplace($.renderTemplate(assign,data));\n\t\t\t\t//ref.replaceWith($.renderTemplate(assign,data)); this is alot slower, the new Custom function is 20-30% faster\n\t\t\t}\n\t\t} else {\n\t\t\treturn;\n\t\t}\n\t}", "function optionBlocksForPanelType(panelType) {\n switch (panelType) {\n case PanelType.HARDWARE:\n default:\n return HARDWARE_OPTION_BLOCKS;\n case PanelType.VIEW:\n return VIEW_OPTION_BLOCKS;\n }\n}", "function onStageSelected() {\n\n alert(\"On stage Selected event\");\n //retrieveActiveProcess();\n //getSelectedStage();\n}", "function handleStepEnter(response) {\n \n // response = { element, direction, index }\n\n // get the data step attribute which has our \"stacked, grouped, or percent value\"\n var chartType = response.element.getAttribute(\"data-step\")\n changeChart(chartType)\n\n}", "function handleBlock(startArr,startOffsetM,startOffsetNextM,destArr,destOffsetM,destOffsetNextM,undefined$1){// slice out the block we need\nvar startArrTemp=startArr.slice(startOffsetM,startOffsetNextM||undefined$1),destArrTemp=destArr.slice(destOffsetM,destOffsetNextM||undefined$1);var i=0,posStart={pos:[0,0],start:[0,0]},posDest={pos:[0,0],start:[0,0]};do{// convert shorthand types to long form\nstartArrTemp[i]=simplyfy.call(posStart,startArrTemp[i]);destArrTemp[i]=simplyfy.call(posDest,destArrTemp[i]);// check if both shape types match\n// 2 elliptical arc curve commands ('A'), are considered different if the\n// flags (large-arc-flag, sweep-flag) don't match\nif(startArrTemp[i][0]!=destArrTemp[i][0]||startArrTemp[i][0]=='M'||startArrTemp[i][0]=='A'&&(startArrTemp[i][4]!=destArrTemp[i][4]||startArrTemp[i][5]!=destArrTemp[i][5])){// if not, convert shapes to beziere\nArray.prototype.splice.apply(startArrTemp,[i,1].concat(toBeziere.call(posStart,startArrTemp[i])));Array.prototype.splice.apply(destArrTemp,[i,1].concat(toBeziere.call(posDest,destArrTemp[i])));}else{// only update positions otherwise\nstartArrTemp[i]=setPosAndReflection.call(posStart,startArrTemp[i]);destArrTemp[i]=setPosAndReflection.call(posDest,destArrTemp[i]);}// we are at the end at both arrays. stop here\nif(++i==startArrTemp.length&&i==destArrTemp.length)break;// destArray is longer. Add one element\nif(i==startArrTemp.length){startArrTemp.push(['C',posStart.pos[0],posStart.pos[1],posStart.pos[0],posStart.pos[1],posStart.pos[0],posStart.pos[1]]);}// startArr is longer. Add one element\nif(i==destArrTemp.length){destArrTemp.push(['C',posDest.pos[0],posDest.pos[1],posDest.pos[0],posDest.pos[1],posDest.pos[0],posDest.pos[1]]);}}while(true);// return the updated block\nreturn{start:startArrTemp,dest:destArrTemp};}// converts shorthand types to long form", "processWhatIsReady(graph) {\n let status = graph.getCurrentStatus();\n logger_1.default.system.debug(\"bootEngine processWhatIsReady\", status, graph);\n console.log(\"processWhatIsReady\", status);\n // this condition should never happen, but would prevent bad bootEngine handlers from getting in an infinite loop\n if (++this.processStatusCounter > PROCESS_STATUS_COUNTER_MAX) {\n logger_1.default.system.error(\"bootEngine.processWhatIsReady is in infinite loop -- breaking out\", this.processStatusCounter);\n }\n else {\n switch (status.graphState) {\n case \"error\": {\n this.stageRejecter(status.errorDiag);\n break;\n }\n case \"notFinished\": {\n this.processReadyList(status.readyToStartList);\n break;\n }\n case \"finished\": {\n this.stageResolver();\n break;\n }\n }\n }\n }", "get isBlock() {\n return this.type.isBlock;\n }", "function block_viewport_for_render_spots_plan() {\n\tcurrentProgressForRenderSpotsPlan = 0;\n\txval=getBusyOverlay('viewport',{color:'blue',opacity:0.25, text:'loading', style:'text-decoration:blink;font-weight:bold;font-size:12px;color:white'},{color:'#fff', size:128, type:'o'});\n\tif(xval) {\n\t\txval.ntime=window.setInterval(\"show_fake_progress_for_render_spots_plan()\",200);\n\t}\n}", "function renderSeries(ecIns, ecModel, api, payload, dirtyMap) {\n // Render all charts\n var scheduler = ecIns._scheduler;\n var unfinished;\n ecModel.eachSeries(function (seriesModel) {\n var chartView = ecIns._chartsMap[seriesModel.__viewId];\n chartView.__alive = true;\n var renderTask = chartView.renderTask;\n scheduler.updatePayload(renderTask, payload);\n\n if (dirtyMap && dirtyMap.get(seriesModel.uid)) {\n renderTask.dirty();\n }\n\n unfinished |= renderTask.perform(scheduler.getPerformArgs(renderTask));\n chartView.group.silent = !!seriesModel.get('silent');\n updateZ(seriesModel, chartView);\n updateBlend(seriesModel, chartView);\n });\n scheduler.unfinished |= unfinished; // If use hover layer\n\n updateHoverLayerStatus(ecIns, ecModel); // Add aria\n\n aria(ecIns._zr.dom, ecModel);\n}", "function renderSeries(ecIns, ecModel, api, payload, dirtyMap) {\n // Render all charts\n var scheduler = ecIns._scheduler;\n var unfinished;\n ecModel.eachSeries(function (seriesModel) {\n var chartView = ecIns._chartsMap[seriesModel.__viewId];\n chartView.__alive = true;\n var renderTask = chartView.renderTask;\n scheduler.updatePayload(renderTask, payload);\n\n if (dirtyMap && dirtyMap.get(seriesModel.uid)) {\n renderTask.dirty();\n }\n\n unfinished |= renderTask.perform(scheduler.getPerformArgs(renderTask));\n chartView.group.silent = !!seriesModel.get('silent');\n updateZ(seriesModel, chartView);\n updateBlend(seriesModel, chartView);\n });\n scheduler.unfinished |= unfinished; // If use hover layer\n\n updateHoverLayerStatus(ecIns, ecModel); // Add aria\n\n aria(ecIns._zr.dom, ecModel);\n}", "function handleBlock(startArr,startOffsetM,startOffsetNextM,destArr,destOffsetM,destOffsetNextM,undefined){// slice out the block we need\nvar startArrTemp=startArr.slice(startOffsetM,startOffsetNextM||undefined),destArrTemp=destArr.slice(destOffsetM,destOffsetNextM||undefined);var i=0,posStart={pos:[0,0],start:[0,0]},posDest={pos:[0,0],start:[0,0]};do{// convert shorthand types to long form\nstartArrTemp[i]=simplyfy.call(posStart,startArrTemp[i]);destArrTemp[i]=simplyfy.call(posDest,destArrTemp[i]);// check if both shape types match\n// 2 elliptical arc curve commands ('A'), are considered different if the\n// flags (large-arc-flag, sweep-flag) don't match\nif(startArrTemp[i][0]!=destArrTemp[i][0]||startArrTemp[i][0]=='M'||startArrTemp[i][0]=='A'&&(startArrTemp[i][4]!=destArrTemp[i][4]||startArrTemp[i][5]!=destArrTemp[i][5])){// if not, convert shapes to beziere\nArray.prototype.splice.apply(startArrTemp,[i,1].concat(toBeziere.call(posStart,startArrTemp[i])));Array.prototype.splice.apply(destArrTemp,[i,1].concat(toBeziere.call(posDest,destArrTemp[i])));}else{// only update positions otherwise\nstartArrTemp[i]=setPosAndReflection.call(posStart,startArrTemp[i]);destArrTemp[i]=setPosAndReflection.call(posDest,destArrTemp[i]);}// we are at the end at both arrays. stop here\nif(++i==startArrTemp.length&&i==destArrTemp.length)break;// destArray is longer. Add one element\nif(i==startArrTemp.length){startArrTemp.push(['C',posStart.pos[0],posStart.pos[1],posStart.pos[0],posStart.pos[1],posStart.pos[0],posStart.pos[1]]);}// startArr is longer. Add one element\nif(i==destArrTemp.length){destArrTemp.push(['C',posDest.pos[0],posDest.pos[1],posDest.pos[0],posDest.pos[1],posDest.pos[0],posDest.pos[1]]);}}while(true);// return the updated block\nreturn{start:startArrTemp,dest:destArrTemp};}// converts shorthand types to long form", "function renderSeries(ecIns, ecModel, api, payload, dirtyMap) {\n // Render all charts\n var scheduler = ecIns._scheduler;\n var unfinished;\n ecModel.eachSeries(function (seriesModel) {\n var chartView = ecIns._chartsMap[seriesModel.__viewId];\n chartView.__alive = true;\n var renderTask = chartView.renderTask;\n scheduler.updatePayload(renderTask, payload);\n\n if (dirtyMap && dirtyMap.get(seriesModel.uid)) {\n renderTask.dirty();\n }\n\n unfinished |= renderTask.perform(scheduler.getPerformArgs(renderTask));\n chartView.group.silent = !!seriesModel.get('silent');\n updateZ(seriesModel, chartView);\n updateBlend(seriesModel, chartView);\n });\n scheduler.unfinished |= unfinished; // If use hover layer\n\n updateHoverLayerStatus(ecIns._zr, ecModel); // Add aria\n\n aria(ecIns._zr.dom, ecModel);\n}", "function renderSeries(ecIns, ecModel, api, payload, dirtyMap) {\n // Render all charts\n var scheduler = ecIns._scheduler;\n var unfinished;\n ecModel.eachSeries(function (seriesModel) {\n var chartView = ecIns._chartsMap[seriesModel.__viewId];\n chartView.__alive = true;\n var renderTask = chartView.renderTask;\n scheduler.updatePayload(renderTask, payload);\n\n if (dirtyMap && dirtyMap.get(seriesModel.uid)) {\n renderTask.dirty();\n }\n\n unfinished |= renderTask.perform(scheduler.getPerformArgs(renderTask));\n chartView.group.silent = !!seriesModel.get('silent');\n updateZ(seriesModel, chartView);\n updateBlend(seriesModel, chartView);\n });\n scheduler.unfinished |= unfinished; // If use hover layer\n\n updateHoverLayerStatus(ecIns._zr, ecModel); // Add aria\n\n aria(ecIns._zr.dom, ecModel);\n}", "function renderSeries(ecIns, ecModel, api, payload, dirtyMap) {\n // Render all charts\n var scheduler = ecIns._scheduler;\n var unfinished;\n ecModel.eachSeries(function (seriesModel) {\n var chartView = ecIns._chartsMap[seriesModel.__viewId];\n chartView.__alive = true;\n var renderTask = chartView.renderTask;\n scheduler.updatePayload(renderTask, payload);\n\n if (dirtyMap && dirtyMap.get(seriesModel.uid)) {\n renderTask.dirty();\n }\n\n unfinished |= renderTask.perform(scheduler.getPerformArgs(renderTask));\n chartView.group.silent = !!seriesModel.get('silent');\n updateZ(seriesModel, chartView);\n updateBlend(seriesModel, chartView);\n });\n scheduler.unfinished |= unfinished; // If use hover layer\n\n updateHoverLayerStatus(ecIns._zr, ecModel); // Add aria\n\n aria(ecIns._zr.dom, ecModel);\n}", "function changedDisplayTimeRadio() {\r\n if ((typeof chart != 'undefined') && (chart.series[0].data.length > 0)) {\r\n if (document.getElementById(\"localGraph\").checked) {\r\n var seriesData = adjustDataToTZO(utcData);\r\n chart.options.series[0].data = seriesData;\r\n } else {\r\n chart.options.series[0].data = utcData;\r\n }\r\n chartBusyProc();\r\n chart = new Highcharts.Chart(chart.options);\r\n setChartSize();\r\n }\r\n}", "function handler(e) {\n/* 564 */ \t\t\t// allow tab navigation (conditionally)\n/* 565 */ \t\t\tif (e.type === 'keydown' && e.keyCode && e.keyCode == 9) {\n/* 566 */ \t\t\t\tif (pageBlock && e.data.constrainTabKey) {\n/* 567 */ \t\t\t\t\tvar els = pageBlockEls;\n/* 568 */ \t\t\t\t\tvar fwd = !e.shiftKey && e.target === els[els.length-1];\n/* 569 */ \t\t\t\t\tvar back = e.shiftKey && e.target === els[0];\n/* 570 */ \t\t\t\t\tif (fwd || back) {\n/* 571 */ \t\t\t\t\t\tsetTimeout(function(){focus(back);},10);\n/* 572 */ \t\t\t\t\t\treturn false;\n/* 573 */ \t\t\t\t\t}\n/* 574 */ \t\t\t\t}\n/* 575 */ \t\t\t}\n/* 576 */ \t\t\tvar opts = e.data;\n/* 577 */ \t\t\tvar target = $(e.target);\n/* 578 */ \t\t\tif (target.hasClass('blockOverlay') && opts.onOverlayClick)\n/* 579 */ \t\t\t\topts.onOverlayClick(e);\n/* 580 */ \n/* 581 */ \t\t\t// allow events within the message content\n/* 582 */ \t\t\tif (target.parents('div.' + opts.blockMsgClass).length > 0)\n/* 583 */ \t\t\t\treturn true;\n/* 584 */ \n/* 585 */ \t\t\t// allow events for content that is not being blocked\n/* 586 */ \t\t\treturn target.parents().children().filter('div.blockUI').length === 0;\n/* 587 */ \t\t}", "get type() {\n return this.startSide < this.endSide ? exports.BlockType.WidgetRange\n : this.startSide <= 0 ? exports.BlockType.WidgetBefore : exports.BlockType.WidgetAfter;\n }", "function dataFilter(seriesType) {\n\t return {\n\t seriesType: seriesType,\n\t reset: function (seriesModel, ecModel) {\n\t var legendModels = ecModel.findComponents({\n\t mainType: 'legend'\n\t });\n\t\n\t if (!legendModels || !legendModels.length) {\n\t return;\n\t }\n\t\n\t var data = seriesModel.getData();\n\t data.filterSelf(function (idx) {\n\t var name = data.getName(idx); // If in any legend component the status is not selected.\n\t\n\t for (var i = 0; i < legendModels.length; i++) {\n\t // @ts-ignore FIXME: LegendModel\n\t if (!legendModels[i].isSelected(name)) {\n\t return false;\n\t }\n\t }\n\t\n\t return true;\n\t });\n\t }\n\t };\n\t }", "onEventDataGenerated(renderData) {\n const me = this,\n {\n eventRecord\n } = renderData;\n\n if (me.shouldInclude(eventRecord)) {\n if (me.scheduler.isVertical) {\n renderData.width = me.scheduler.resourceColumnWidth;\n } else {\n renderData.top = 0;\n } // Flag that we should fill entire row/col\n\n renderData.fillSize = true; // Add our own cls\n\n renderData.wrapperCls[me.rangeCls] = 1;\n renderData.wrapperCls[`b-sch-color-${eventRecord.timeRangeColor}`] = eventRecord.timeRangeColor; // Add label\n\n renderData.children.push(eventRecord.name); // Event data for DOMSync comparison\n\n renderData.eventId = `${me.idPrefix}-${eventRecord.id}`;\n }\n }", "dispatchMultiSeriesDrill() {\n var pie = this._comp.pieChart;\n if (pie && pie.otherSlice) {\n this._comp.getEventManager().processDrillEvent(pie.otherSlice);\n }\n }", "function checkSeries(){\r\n\r\n\tif (stimuliCurrentInfo.seriesNumber>12){\r\n\t\tif (paramNumber===1){stimuliCurrentInfo.seriesNumber=2;}\r\n\t\telse{stimuliCurrentInfo.seriesNumber=1;}\r\n\t\t\r\n\t\tstimuliCurrentInfo.seriesLetter = String.fromCharCode(stimuliCurrentInfo.seriesLetter.charCodeAt(0)+1);\r\n\t}\r\n\r\n}", "function isValueOrExtentDragStart(type) {\n return type == goog.ui.SliderBase.EventType.DRAG_VALUE_START ||\n type == goog.ui.SliderBase.EventType.DRAG_EXTENT_START;\n }", "function chartRenderCharts() {\r\n if(!document.getElementById(\"apex_line2_chart\")) return ;\r\n\r\n // create charts for chart page\r\n if (!chartLaptime) {\r\n chartLaptime = new CustomApexChart(\"#apex_line2_chart\", \"line\");\r\n chartLaptime.setOptions({\r\n 'title' : 'laptime(seconds)/lap',\r\n 'height' : 396,\r\n 'xAxisTitle' : 'LAP',\r\n 'yAxisTitle' : 'Laptime',\r\n });\r\n chartLaptime.render();\r\n }\r\n if (!chartSector1) {\r\n chartSector1 = new CustomApexChart(\"#basic-column-sector1\", \"bar\");\r\n chartSector1.setOptions({\r\n 'height' : 385,\r\n 'xAxisTitle' : 'LAP',\r\n 'yAxisTitle' : 'sector1',\r\n });\r\n chartSector1.render();\r\n }\r\n if (!chartSector2) {\r\n chartSector2 = new CustomApexChart(\"#basic-column-sector2\", \"bar\");\r\n chartSector2.setOptions({\r\n 'height' : 385,\r\n 'xAxisTitle' : 'LAP',\r\n 'yAxisTitle' : 'sector2',\r\n });\r\n chartSector2.render();\r\n }\r\n if (!chartSector3) {\r\n chartSector3 = new CustomApexChart(\"#basic-column-sector3\", \"bar\");\r\n chartSector3.setOptions({\r\n 'height' : 385,\r\n 'xAxisTitle' : 'LAP',\r\n 'yAxisTitle' : 'sector3',\r\n });\r\n chartSector3.render();\r\n }\r\n\r\n chartPageCheckDrivers();\r\n\r\n getCheckedChartDrivers();\r\n\r\n var currentSeries = {};\r\n\r\n checkedChartDrivers.forEach(driverId => {\r\n // chart series name\r\n currentSeries[driverId] = \"\";\r\n if ($(\"#customCheck\"+driverId).length) currentSeries[driverId] = $(\"#customCheck\"+driverId).attr('data-title');\r\n\r\n // chart series data\r\n });\r\n\r\n getDatasCharts(function() {\r\n if (!gameChartsLapsValues || !gameChartsLapsValues.length) return;\r\n console.log(\"[chartRenderCharts] after getDatasCharts\", gameChartsLapsValues, currentSeries, gameChartsData, gameChartsSector1Data, gameChartsSector2Data, gameChartsSector3Data);\r\n\r\n if (chartLaptime) {\r\n chartLaptime.setSeries(currentSeries);\r\n chartLaptime.setXAxis(gameChartsLapsValues);\r\n chartLaptime.setData(gameChartsData);\r\n\r\n if(sliderLaptime){\r\n let tempMin = CustomApexChart.calcYAxisMin(chartLaptime.yValueMin);\r\n let tempMax = CustomApexChart.calcYAxisMax(chartLaptime.yValueMax);\r\n sliderLaptime.update({\r\n from: tempMin,\r\n to: tempMax,\r\n min: tempMin,\r\n max: tempMax\r\n });\r\n }\r\n }\r\n if (chartSector1) {\r\n chartSector1.setSeries(currentSeries);\r\n chartSector1.setXAxis(gameChartsLapsValues);\r\n chartSector1.setData(gameChartsSector1Data);\r\n\r\n if(sliderSector1){\r\n let tempMin = CustomApexChart.calcYAxisMin(chartSector1.yValueMin);\r\n let tempMax = CustomApexChart.calcYAxisMax(chartSector1.yValueMax);\r\n sliderSector1.update({\r\n from: tempMin,\r\n to: tempMax,\r\n min: tempMin,\r\n max: tempMax\r\n });\r\n }\r\n }\r\n if (chartSector2) {\r\n chartSector2.setSeries(currentSeries);\r\n chartSector2.setXAxis(gameChartsLapsValues);\r\n chartSector2.setData(gameChartsSector1Data);\r\n\r\n if(sliderSector2){\r\n let tempMin = CustomApexChart.calcYAxisMin(chartSector2.yValueMin);\r\n let tempMax = CustomApexChart.calcYAxisMax(chartSector2.yValueMax);\r\n sliderSector2.update({\r\n from: tempMin,\r\n to: tempMax,\r\n min: tempMin,\r\n max: tempMax\r\n });\r\n }\r\n }\r\n if (chartSector3) {\r\n chartSector3.setSeries(currentSeries);\r\n chartSector3.setXAxis(gameChartsLapsValues);\r\n chartSector3.setData(gameChartsSector1Data);\r\n\r\n if(sliderSector3){\r\n let tempMin = CustomApexChart.calcYAxisMin(chartSector3.yValueMin);\r\n let tempMax = CustomApexChart.calcYAxisMax(chartSector3.yValueMax);\r\n sliderSector3.update({\r\n from: tempMin,\r\n to: tempMax,\r\n min: tempMin,\r\n max: tempMax\r\n });\r\n }\r\n }\r\n });\r\n\r\n }", "function _fixBlockSizes() {\n\t\t\tvar timeBlockSize = $el.css('padding-top').replace('px', '') * 0.8;\n\t\t\t$el.find('.' + options.className + '-timeline').css('width', ''+ (children.length * timeBlockSize) +'px');\n\t\t\t$el.find('.' + options.className + '-timeliny-timeblock').css('width', '' + timeBlockSize + 'px');\n\t\t}", "function changeHandler(){\n\n // shortcut\n const $this = $(this);\n\n // set value in slider\n if( $this.data('type') == 'min' ) {\n $els.sliderCont.slider( 'values', 0, $this.val() );\n } else {\n $els.sliderCont.slider( 'values', 1, $this.val() );\n }\n\n }" ]
[ "0.55556005", "0.55556005", "0.55556005", "0.55556005", "0.55556005", "0.55556005", "0.5188472", "0.5092429", "0.5010943", "0.49098608", "0.4895438", "0.47905648", "0.47741607", "0.47344053", "0.468847", "0.46273974", "0.46089348", "0.4607397", "0.45870084", "0.45822388", "0.45706818", "0.45706818", "0.45470607", "0.4544879", "0.4544879", "0.4544879", "0.45235917", "0.45235917", "0.45235917", "0.45235917", "0.45235917", "0.45116913", "0.45012367", "0.44966456", "0.44966456", "0.44903976", "0.44847652", "0.44847652", "0.44847652", "0.44694316", "0.44448492", "0.44321486", "0.44272244", "0.44256023", "0.44013298", "0.43702272", "0.43601128", "0.43481264", "0.43439996", "0.43400943", "0.4337842", "0.43355092", "0.43180835", "0.43102732", "0.43056467", "0.42992482", "0.42949212", "0.4292572", "0.42905653", "0.4276447", "0.42689484", "0.42606616", "0.42555678", "0.42526034", "0.42524335", "0.42509732", "0.4246387", "0.4246334", "0.4245989", "0.42433152", "0.423589", "0.42316905", "0.42270264", "0.42262185", "0.42261878", "0.4225432", "0.421306", "0.42063716", "0.41961777", "0.41871592", "0.41871592", "0.41862452", "0.4183573", "0.4183573", "0.4183573", "0.41820014", "0.41790447", "0.41789117", "0.41779244", "0.41747326", "0.41643915", "0.415493", "0.41528115", "0.41446075", "0.41414377", "0.41409677" ]
0.49039078
12
Checks whether we're in the Node.js or Browser environment
function isNodeEnv() { return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isNodeEnvironment () {\n if (typeof window !== 'undefined' && typeof document !== 'undefined') {\n return false\n }\n return true\n}", "function isNodeEnv() {\n\t // explicitly check for browser bundles as those can be optimized statically\n\t // by terser/rollup.\n\t return (\n\t !isBrowserBundle() &&\n\t Object.prototype.toString.call(typeof browser$1$1 !== 'undefined' ? browser$1$1 : 0) === '[object process]'\n\t );\n\t}", "function isNodeEnv() {\r\n return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]';\r\n}", "function isNodeEnv() {\r\n // tslint:disable:strict-type-predicates\r\n return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]';\r\n}", "function isNodeEnv() {\n // explicitly check for browser bundles as those can be optimized statically\n // by terser/rollup.\n return (\n !isBrowserBundle() &&\n Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'\n );\n }", "function isNodeEnv() {\n // tslint:disable:strict-type-predicates\n return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]';\n}", "function isNodeEnv() {\n // tslint:disable:strict-type-predicates\n return Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]';\n}", "function isNodeEnv() {\n // explicitly check for browser bundles as those can be optimized statically\n // by terser/rollup.\n return (\n !env.isBrowserBundle() &&\n Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'\n );\n}", "function isBrowser() {\n // eslint-disable-next-line no-restricted-globals\n return typeof window !== 'undefined' && (!isNodeEnv() || isElectronNodeRenderer());\n }", "static runningOnNode ()\n\t\t{ let ud = \"undefined\";\n\n\t\t\tif (typeof process === ud)\n\t\t\t{ return false;\n\t\t\t}\n\t\t\tif (! process )\n\t\t\t{ return false;\n\t\t\t}\n\t\t\tif (! process.versions )\n\t\t\t{ return false;\n\t\t\t}\n\t\t\tif (! process.versions.node )\n\t\t\t{ return false;\n\t\t\t}\n\t\t\tif (typeof __dirname === ud)\n\t\t\t{ return false;\n\t\t\t}\n\t\t\tif (typeof __filename === ud)\n\t\t\t{ return false;\n\t\t\t}\n\t\t\tif (typeof require === ud)\n\t\t\t{ return false;\n\t\t\t}\n\t\t\tif (require === null)\n\t\t\t{ return false;\n\t\t\t}\n\t\t\tif (! require.resolve)\n\t\t\t{ return false;\n\t\t\t}\n\t\t\tif (typeof module === ud)\n\t\t\t{ return false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "function is_node() {\r\n if (is_node_ === null)\r\n is_node_ = typeof global === \"object\"\r\n && typeof global.process === \"object\"\r\n && typeof global.process.versions === \"object\"\r\n && typeof global.process.versions.node !== \"undefined\";\r\n return is_node_;\r\n}", "function isNode() {\n return typeof module !== 'undefined' &&\n module.exports &&\n typeof window === 'undefined';\n}", "function isNodeEnvironment() {\n let isNode = false;\n if (typeof process === 'object') {\n if (typeof process.versions === 'object') {\n if (typeof process.versions.node !== 'undefined') {\n isNode = true;\n }\n }\n }\n return isNode;\n}", "function isNodeProcess() {\r\n // Check browser environment.\r\n if (typeof global !== 'object') {\r\n return false;\r\n }\r\n // Check nodejs or React Native environment.\r\n if (Object.prototype.toString.call(global.process) === '[object process]' ||\r\n navigator.product === 'ReactNative') {\r\n return true;\r\n }\r\n}", "function isBrowser() {\n return typeof window !== \"undefined\" && (typeof process === 'undefined' ? 'undefined' : _typeof2(process)) === \"object\" && process.title === \"browser\";\n}", "function assertNodeEnv() {\r\n return assert(isNode, 'This feature is only available in NodeJS environments');\r\n }", "function isNode(){\r\n\treturn typeof module !== 'undefined' && module.exports;\r\n}", "_isValidContext() {\n const isNode = (typeof process !== 'undefined')\n && (typeof process.release !== 'undefined')\n && (process.release.name === 'node');\n return isNode;\n }", "function isNodeEnv(env) {\n\t return typeof process !== \"undefined\" && process.env && process.env.NODE_ENV === env;\n\t}", "function isNodeModule() {\n // $FlowFixMe - cannot resolve browser property for process.\n return process === \"undefined\" || !process.browser;\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) return false;\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}", "function isStandardBrowserEnv() {\n if (\n typeof navigator !== 'undefined' &&\n (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')\n ) {\n return false;\n }\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n }", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) {\n return false;\n }\n\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) {\n return false;\n }\n\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) {\n return false;\n }\n\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) {\n return false;\n }\n\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) {\n return false;\n }\n\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) {\n return false;\n }\n\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) {\n return false;\n }\n\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || navigator.product === 'NativeScript' || navigator.product === 'NS')) {\n return false;\n }\n\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.createElement === 'function'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (typeof window !== 'undefined' &&\n typeof document !== 'undefined');\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}", "function isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}" ]
[ "0.8173587", "0.79640615", "0.7947373", "0.79303575", "0.79016584", "0.78729254", "0.78729254", "0.7831705", "0.77341163", "0.7697025", "0.7667353", "0.76627254", "0.75735116", "0.74987024", "0.7341295", "0.7226947", "0.72189665", "0.7194779", "0.71641034", "0.7158115", "0.7151754", "0.7141344", "0.7140363", "0.7140363", "0.7140363", "0.7140363", "0.7140363", "0.7140363", "0.7140363", "0.7140363", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7137031", "0.7134128", "0.7121704", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895", "0.71090895" ]
0.7912755
5
Requires a module which is protected against bundler minification.
function dynamicRequire(mod, request) { // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access return mod.require(request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isVendor(module) {\n var userRequest = module.userRequest;\n if (typeof userRequest !== 'string') {\n return false;\n }\n // handle paths like ... node_modules/some-loader.js!app.css\n var parts = userRequest.split('!');\n var path = parts[parts.length - 1];\n return path.indexOf('node_modules') >= 0;\n}", "static prepareDependencies (module) {\n\n\t\tif (!(module instanceof MiddlewareEngine)) { return module; }\n\n\t\tmodule.requires().forEach(requirement => {\n\n\t\t\tlet dependency;\n\n\t\t\tswitch (requirement) {\n\t\t\t\tcase `MessageObject`: dependency = MessageObject; break;\n\t\t\t\tcase `sharedLogger`: dependency = sharedLogger; break;\n\t\t\t\tdefault: break;\n\t\t\t}\n\n\t\t\tif (dependency) { module.inject(requirement, dependency); }\n\n\t\t});\n\n\t\treturn module;\n\n\t}", "function make_reqfunc(module) {\n if (null == module) return null\n\n const reqfunc = module.require.bind(module)\n reqfunc.module = module.id\n\n return reqfunc\n}", "function conditionalModule(module) {\n const rjs = self.requirejs;\n if (\n (rjs.has && rjs.has(module)) ||\n (!rjs.has && (rjs.entries[module] || rjs.entries[module + '/index']))\n ) {\n return self.require(module).default;\n }\n}", "function dynamicRequire(mod, request) {\r\n // tslint:disable-next-line: no-unsafe-any\r\n return mod.require(request);\r\n}", "function _canLoadModule(mod){\r\n let check = mod[1].requires.every((req) => availableMeta.includes(req));\r\n if (!check)\r\n return false;\r\n return mod[1].gives.every((a) => {\r\n let doti = a.indexOf('.');\r\n if (doti === -1)\r\n return true;\r\n return (toLoadModules\r\n .filter(a => !a.loaded)\r\n .map(a => a[1].gives)\r\n .flat()\r\n .filter(r => {\r\n let doti2 = r.indexOf('.');\r\n if ((doti2 !== -1) && (r.substr(0, doti2) === a.substr(0, doti)))\r\n return r < a;\r\n else\r\n return false;\r\n })\r\n .length === 0\r\n );\r\n });\r\n}", "shouldLoadModule(module, req) {\n if (module.requireAuth) {\n return req.isAuthenticated();\n }\n return true;\n }", "function makeRequire(mod, enableBuildCallback, altRequire) {\n var relMap = mod && mod.map,\n modRequire = makeContextModuleFunc(altRequire || context.require,\n relMap,\n enableBuildCallback);\n\n addRequireMethods(modRequire, context, relMap);\n modRequire.isBrowser = isBrowser;\n\n return modRequire;\n }", "function dynamicRequire(mod, request) {\n // tslint:disable-next-line: no-unsafe-any\n return mod.require(request);\n}", "function importModule(module, config) {\n if (typeof config.required !== 'undefined')\n for (var i = 0; i < config.required.length; i++)\n if (typeof module[config.required[i]] === 'undefined')\n throw new Error('Module does not have a required value: ' + config.required[i]);\n\n config.fn(module);\n}", "function prepareModule(module, load) {\n registerClosureInspector(module);\n function theModule(imports) {\n // The supplied 'imports' contain arguments supplied by the caller of the\n // module. We need to add the primordials (Array, Object, ...) to these\n // before invoking the Cajita module.\n var completeImports = copy(sharedImports);\n completeImports.load = load;\n // Copy all properties, including Cajita-unreadable ones since these may\n // be used by privileged code.\n var k;\n for (k in imports) {\n if (hasOwnProp(imports, k)) { completeImports[k] = imports[k]; }\n }\n return module.instantiate(___, primFreeze(completeImports));\n }\n theModule.FUNC___ = 'theModule';\n\n // Whitelist certain module properties as visible to Cajita code. These\n // are all primitive values that do not allow two Cajita entities with\n // access to the same module object to communicate.\n setStatic(theModule, 'cajolerName', module.cajolerName);\n setStatic(theModule, 'cajolerVersion', module.cajolerVersion);\n setStatic(theModule, 'cajoledDate', module.cajoledDate);\n setStatic(theModule, 'moduleURL', module.moduleURL);\n // The below is a transitive freeze because includedModules is an array\n // of strings.\n if (!!module.includedModules) {\n setStatic(theModule, 'includedModules',\n ___.freeze(module.includedModules));\n }\n\n return primFreeze(theModule);\n }", "function require() { return {}; }", "hack() {\n this.hackRequire = true;\n\n const self = this;\n const Module = require('module');\n\n // Ensure existing stores are wired\n this.wireStores();\n\n if (this.rewiredResolve) {\n return;\n }\n\n const _resolveFilename = Module._resolveFilename;\n\n // @todo there needs to be a way to revert resolver\n Module._resolveFilename = function hopperWrapped(request, parent) {\n if (request.indexOf(self.prefixRequire) === 0) {\n const name = request.split('/').pop();\n\n if (self.has(name)) {\n return request;\n }\n }\n\n return _resolveFilename(request, parent);\n };\n\n Module._resolveFilename.original = _resolveFilename;\n\n this.rewiredResolve = true;\n }", "function wrapAsModule(str, deps){\r\n\r\n\tvar depsStr;\r\n\tif(deps){\r\n\t\tvar list = [];\r\n\t\tfor(var p in deps){\r\n\t\t\tif(deps.hasOwnProperty(p)){\r\n\t\t\t\tlist.push(deps[p]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tdepsStr = JSON.stringify(list) + ', ';\r\n\t} else {\r\n\t\tdepsStr = '';\r\n\t}\r\n\r\n\treturn '\\ndefine('+depsStr+'function(){\\n\\n' + str + '\\n\\n});';\r\n}", "function processModule(js){\n var module = eval(js);\n var provides = window.COLLECTIONS[moduleName].provides,\n strToBinding = function(p){ return new constantBinding(new symbolExpr(p), new symbolExpr(moduleName), false); },\n provideBindings = provides.map(strToBinding),\n binding = new moduleBinding(new symbolExpr(moduleName), provideBindings);\n return pinfo.accumulateModule(binding).accumulateModuleBindings(provideBindings);\n }", "function dynamicRequire(mod, request) {\r\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\r\n return mod.require(request);\r\n}", "function getRequired(name) {\n if (appRequires.modules)\n for (var m in appRequires.modules)\n if (appRequires.modules[m].name && appRequires.modules[m].name === name)\n return appRequires.modules[m];\n return appRequires.scripts && appRequires.scripts[name];\n }", "function require(name) {\n var mod = ModuleManager.get(name);\n if (!mod) {\n //Only firefox and synchronous, sorry\n var file = ModuleManager.file(name);\n var code = null,\n request = new XMLHttpRequest();\n request.open('GET', file, false); \n try {\n request.send(null);\n } catch (e) {\n throw new LoadError(file);\n }\n if(request.status != 200)\n throw new LoadError(file);\n //Tego el codigo, creo el modulo\n var code = '(function(){ ' + request.responseText + '});';\n mod = ModuleManager.create(name, file, code);\n }\n event.publish('module_loaded', [this, mod]);\n switch (arguments.length) {\n case 1:\n // Returns module\n var names = name.split('.');\n var last = names[names.length - 1];\n this[last] = mod;\n return mod;\n case 2:\n // If all contents were requested returns nothing\n if (arguments[1] == '*') {\n __extend__(false, this, mod);\n return;\n // second arguments is the symbol in the package\n } else {\n var n = arguments[1];\n this[n] = mod[n];\n return mod[n];\n }\n default:\n // every argyment but the first one are a symbol\n // returns nothing\n for (var i = 1, length = arguments.length; i < length; i++) {\n this[arguments[i]] = mod[arguments[i]];\n }\n return;\n }\n }", "function isBrowserify (x) {\n return x && typeof x === 'object' && typeof x.bundle === 'function';\n}", "function getRequired(name) {\n if (APP_REQUIRES.modules)\n for(var m in APP_REQUIRES.modules)\n if(APP_REQUIRES.modules[m].name && APP_REQUIRES.modules[m].name === name)\n return APP_REQUIRES.modules[m];\n return APP_REQUIRES.scripts && APP_REQUIRES.scripts[name];\n }", "function getRequired(name) {\n if (appRequires.modules)\n for(var m in appRequires.modules)\n if(appRequires.modules[m].name && appRequires.modules[m].name === name)\n return appRequires.modules[m];\n return appRequires.scripts && appRequires.scripts[name];\n }", "function getRequired(name) {\n if (appRequires.modules)\n for(var m in appRequires.modules)\n if(appRequires.modules[m].name && appRequires.modules[m].name === name)\n return appRequires.modules[m];\n return appRequires.scripts && appRequires.scripts[name];\n }", "function getRequired(name) {\n if (appRequires.modules)\n for(var m in appRequires.modules)\n if(appRequires.modules[m].name && appRequires.modules[m].name === name)\n return appRequires.modules[m];\n return appRequires.scripts && appRequires.scripts[name];\n }", "function dynamicRequire(mod, request) {\n\t // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n\t return mod.require(request);\n\t}", "function loadModule(moduleName){var module=modules[moduleName];if(module!==undefined){return module;}// This uses a switch for static require analysis\nswitch(moduleName){case'charset':module=__webpack_require__(229);break;case'encoding':module=__webpack_require__(230);break;case'language':module=__webpack_require__(231);break;case'mediaType':module=__webpack_require__(232);break;default:throw new Error('Cannot find module \\''+moduleName+'\\'');}// Store to prevent invoking require()\nmodules[moduleName]=module;return module;}", "function dynamicRequire(mod, request) {\n return mod.require(request);\n}", "function dynamicRequire(mod, request) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return mod.require(request);\n }", "test(module) {\n return (\n module.size() > 160000 &&\n /node_modules[/\\\\]/.test(module.identifier())\n )\n }", "function _requires (a, b) {\n var modA = config.modules[a];\n var modB = config.modules[b];\n if (! modA) throw new Error(\"Missing module defininition \" + a);\n if (! modB) throw new Error(\"Missing module defininition \" + b);\n var aDeps = modA.requires || [], i, l;\n \n if (aDeps && aDeps.length) {\n if (aDeps.indexOf(b) > -1) {\n return true;\n } else {\n for (i = 0, l = aDeps.length; i < l; i++) {\n if (_requires(aDeps[i], b)) {\n return true;\n }\n }\n }\n }\n \n return false;\n }", "function addStrict(moduleMeta) {\n console.log(\"transform '\" + moduleMeta.name + \"'\");\n moduleMeta.configure({source: \"'use strict;'\\n\" + moduleMeta.source});\n}", "function loadModule(module) {\n freeze(module);\n markFuncFreeze(module.instantiate);\n return callPub(myNewModuleHandler, 'handle', [module]);\n }", "function getRequired(name) {\n if (APP_REQUIRES.modules)\n for (var m in APP_REQUIRES.modules)\n if (APP_REQUIRES.modules[m].name && APP_REQUIRES.modules[m].name === name)\n return APP_REQUIRES.modules[m];\n return APP_REQUIRES.scripts && APP_REQUIRES.scripts[name];\n }", "function wrapRequire() {\n const originalRequire = Module.prototype.require;\n Module.prototype.require = function (moduleName) {\n // Inject workspace node_modules directory\n this.paths.unshift(workspaceModulesDir);\n\n const moduleInfo = getModuleInfo(moduleName);\n\n try {\n return originalRequire.apply(this, [moduleName]);\n } catch (err) {\n if (!moduleInfo.isThirdPartyModule) throw err;\n\n installModule(moduleInfo.path);\n return originalRequire.apply(this, [\n path.join(workspacePath, 'node_modules', moduleName),\n ]);\n }\n };\n}", "function dynamicRequire(mod, request) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return mod.require(request);\n}", "function getRequired(name) {\n if (APP_REQUIRES.modules)\n for(var m in APP_REQUIRES.modules)\n if(APP_REQUIRES.modules[m].name && APP_REQUIRES.modules[m].name === name)\n return APP_REQUIRES.modules[m];\n return APP_REQUIRES.scripts && APP_REQUIRES.scripts[name];\n }", "function makeRequireFunction(mod) {\n\t const Module = mod.constructor;\n\n\t function require(path) {\n\t return mod.require(path);\n\t }\n\t function resolve(request, options) {\n\t validateString(request, 'request');\n\t return Module._resolveFilename(request, mod, false, options);\n\t }\n\n\t require.resolve = resolve;\n\n\t function paths(request) {\n\t validateString(request, 'request');\n\t return Module._resolveLookupPaths(request, mod);\n\t }\n\n\t resolve.paths = paths;\n\n\t require.main = process.mainModule;\n\n\t // Enable support to add extra extension types.\n\t require.extensions = Module._extensions;\n\n\t require.cache = Module._cache;\n\n\t return require;\n\t }", "function ModuleWithProviders() {}", "function ModuleWithProviders() {}", "function ModuleWithProviders() {}", "function Module() {}", "function Module() {}", "function Module() {}", "function Module() {}", "function Module() {}", "function Module() {}", "function require(module) {\n if (!(module in modules)) {\n let principal = Cc[\"@mozilla.org/systemprincipal;1\"].getService(Ci.nsIPrincipal);\n let url = \"resource://ytcenter/libs/\" + module + \".js\";\n modules[module] = Cu.Sandbox(principal, {\n sandboxName: url,\n sandboxPrototype: {\n inFrameScript: true,\n require: require,\n exports: {},\n Cc: Cc,\n Ci: Ci,\n Cr: Cr,\n Cu: Cu,\n unload: function(){},\n removeUnloadListener: function(){},\n framescript: {\n sendSyncMessage: sendSyncMessage.bind(this)\n },\n console: console\n },\n wantXrays: false\n });\n Services.scriptloader.loadSubScript(url, modules[module]);\n }\n return modules[module].exports;\n}", "function require_blether() {\n var lib = path.join(path.dirname(fs.realpathSync(__filename)), \"../dist\");\n\n try {\n return require(lib + \"/blether.min.js\");\n }\n catch (e) {\n try {\n return require(lib + \"/blether.js\");\n }\n catch (e2) {\n console.error(\"Failed to find blether.min.js or blether.js under \" + lib);\n process.exit(2);\n }\n }\n}", "function shimmedRequirejsRequire(modules) {\n\t if (_.isArray(modules)) {\n\t exposeModules(modules);\n\t }\n\t warnOnPrivateModuleRequests(modules);\n\t return requirejsRequire.apply(null, arguments);\n\t }", "function _check_modules(){\n // ADD MODULES CHECKS BELOW\n _checkModule('Chrome_serial');\n _checkModule('serial_console'); // check that the neatFramework \"serial_console\" module is present\n }", "_validateAndPrepare() {\n let _this = this,\n srcModuleJsonPath = path.join(_this.pathTempModule, 's-module.json');\n\n // if s-module.json doesn't exist in downloaded module, throw error\n if (!SUtils.fileExistsSync(srcModuleJsonPath)) {\n return BbPromise.reject(new SError('Missing s-module.json file in module root', SError.errorCodes.UNKNOWN));\n }\n\n let srcModuleJson = SUtils.readFileSync(srcModuleJsonPath);\n\n // if name is missing from s-module.json, throw error\n if (!srcModuleJson.name) {\n return BbPromise.reject(new SError('s-module.json for downloaded module missing name attr', SError.errorCodes.UNKNOWN));\n }\n\n _this.evt.data.module = srcModuleJson.name;\n _this.pathModule = S.getProject().getRootPath('back', 'modules', _this.evt.data.module);\n\n // if same module name exists, throw error\n if (SUtils.doesModuleExist(srcModuleJson.name, S.getProject().getRootPath())) {\n return BbPromise.reject(new SError(\n 'Module ' + _this.evt.data.module + ' already exists',\n SError.errorCodes.INVALID_PROJECT_SERVERLESS\n ));\n }\n\n // if required cloudformation attrs are missing, throw error\n if (\n (!srcModuleJson.cloudFormation) ||\n (!srcModuleJson.cloudFormation.lambdaIamPolicyDocumentStatements)\n ) {\n return BbPromise.reject(new SError('Module does not have required cloudFormation attributes', SError.errorCodes.UNKNOWN));\n }\n\n return BbPromise.resolve();\n }", "function hotCreateRequire(moduleId) {\n/******/ \t\tvar me = installedModules[moduleId];\n/******/ \t\tif (!me) return __webpack_require__;\n/******/ \t\tvar fn = function(request) {\n/******/ \t\t\tif (me.hot.active) {\n/******/ \t\t\t\tif (installedModules[request]) {\n/******/ \t\t\t\t\tif (installedModules[request].parents.indexOf(moduleId) === -1) {\n/******/ \t\t\t\t\t\tinstalledModules[request].parents.push(moduleId);\n/******/ \t\t\t\t\t}\n/******/ \t\t\t\t} else {\n/******/ \t\t\t\t\thotCurrentParents = [moduleId];\n/******/ \t\t\t\t\thotCurrentChildModule = request;\n/******/ \t\t\t\t}\n/******/ \t\t\t\tif (me.children.indexOf(request) === -1) {\n/******/ \t\t\t\t\tme.children.push(request);\n/******/ \t\t\t\t}\n/******/ \t\t\t} else {\n/******/ \t\t\t\tconsole.warn(\n/******/ \t\t\t\t\t\"[HMR] unexpected require(\" +\n/******/ \t\t\t\t\t\trequest +\n/******/ \t\t\t\t\t\t\") from disposed module \" +\n/******/ \t\t\t\t\t\tmoduleId\n/******/ \t\t\t\t);\n/******/ \t\t\t\thotCurrentParents = [];\n/******/ \t\t\t}\n/******/ \t\t\treturn __webpack_require__(request);\n/******/ \t\t};\n/******/ \t\tvar ObjectFactory = function ObjectFactory(name) {\n/******/ \t\t\treturn {\n/******/ \t\t\t\tconfigurable: true,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: function() {\n/******/ \t\t\t\t\treturn __webpack_require__[name];\n/******/ \t\t\t\t},\n/******/ \t\t\t\tset: function(value) {\n/******/ \t\t\t\t\t__webpack_require__[name] = value;\n/******/ \t\t\t\t}\n/******/ \t\t\t};\n/******/ \t\t};\n/******/ \t\tfor (var name in __webpack_require__) {\n/******/ \t\t\tif (\n/******/ \t\t\t\tObject.prototype.hasOwnProperty.call(__webpack_require__, name) &&\n/******/ \t\t\t\tname !== \"e\" &&\n/******/ \t\t\t\tname !== \"t\"\n/******/ \t\t\t) {\n/******/ \t\t\t\tObject.defineProperty(fn, name, ObjectFactory(name));\n/******/ \t\t\t}\n/******/ \t\t}\n/******/ \t\tfn.e = function(chunkId) {\n/******/ \t\t\tif (hotStatus === \"ready\") hotSetStatus(\"prepare\");\n/******/ \t\t\thotChunksLoading++;\n/******/ \t\t\treturn __webpack_require__.e(chunkId).then(finishChunkLoading, function(err) {\n/******/ \t\t\t\tfinishChunkLoading();\n/******/ \t\t\t\tthrow err;\n/******/ \t\t\t});\n/******/\n/******/ \t\t\tfunction finishChunkLoading() {\n/******/ \t\t\t\thotChunksLoading--;\n/******/ \t\t\t\tif (hotStatus === \"prepare\") {\n/******/ \t\t\t\t\tif (!hotWaitingFilesMap[chunkId]) {\n/******/ \t\t\t\t\t\thotEnsureUpdateChunk(chunkId);\n/******/ \t\t\t\t\t}\n/******/ \t\t\t\t\tif (hotChunksLoading === 0 && hotWaitingFiles === 0) {\n/******/ \t\t\t\t\t\thotUpdateDownloaded();\n/******/ \t\t\t\t\t}\n/******/ \t\t\t\t}\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t\tfn.t = function(value, mode) {\n/******/ \t\t\tif (mode & 1) value = fn(value);\n/******/ \t\t\treturn __webpack_require__.t(value, mode & ~1);\n/******/ \t\t};\n/******/ \t\treturn fn;\n/******/ \t}", "function enqueueModuleForDelayedScoping(moduleType,ngModule){moduleQueue.push({moduleType:moduleType,ngModule:ngModule});}", "function hotCreateRequire(moduleId) {\n/******/ \t\tvar me = installedModules[moduleId];\n/******/ \t\tif (!me) return __webpack_require__;\n/******/ \t\tvar fn = function(request) {\n/******/ \t\t\tif (me.hot.active) {\n/******/ \t\t\t\tif (installedModules[request]) {\n/******/ \t\t\t\t\tif (installedModules[request].parents.indexOf(moduleId) === -1) {\n/******/ \t\t\t\t\t\tinstalledModules[request].parents.push(moduleId);\n/******/ \t\t\t\t\t}\n/******/ \t\t\t\t} else {\n/******/ \t\t\t\t\thotCurrentParents = [moduleId];\n/******/ \t\t\t\t\thotCurrentChildModule = request;\n/******/ \t\t\t\t}\n/******/ \t\t\t\tif (me.children.indexOf(request) === -1) {\n/******/ \t\t\t\t\tme.children.push(request);\n/******/ \t\t\t\t}\n/******/ \t\t\t} else {\n/******/ \t\t\t\tconsole.warn(\n/******/ \t\t\t\t\t\"[HMR] unexpected require(\" +\n/******/ \t\t\t\t\t\trequest +\n/******/ \t\t\t\t\t\t\") from disposed module \" +\n/******/ \t\t\t\t\t\tmoduleId\n/******/ \t\t\t\t);\n/******/ \t\t\t\thotCurrentParents = [];\n/******/ \t\t\t}\n/******/ \t\t\treturn __webpack_require__(request);\n/******/ \t\t};\n/******/ \t\tvar ObjectFactory = function ObjectFactory(name) {\n/******/ \t\t\treturn {\n/******/ \t\t\t\tconfigurable: true,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: function() {\n/******/ \t\t\t\t\treturn __webpack_require__[name];\n/******/ \t\t\t\t},\n/******/ \t\t\t\tset: function(value) {\n/******/ \t\t\t\t\t__webpack_require__[name] = value;\n/******/ \t\t\t\t}\n/******/ \t\t\t};\n/******/ \t\t};\n/******/ \t\tfor (var name in __webpack_require__) {\n/******/ \t\t\tif (\n/******/ \t\t\t\tObject.prototype.hasOwnProperty.call(__webpack_require__, name) &&\n/******/ \t\t\t\tname !== \"e\"\n/******/ \t\t\t) {\n/******/ \t\t\t\tObject.defineProperty(fn, name, ObjectFactory(name));\n/******/ \t\t\t}\n/******/ \t\t}\n/******/ \t\tfn.e = function(chunkId) {\n/******/ \t\t\tif (hotStatus === \"ready\") hotSetStatus(\"prepare\");\n/******/ \t\t\thotChunksLoading++;\n/******/ \t\t\treturn __webpack_require__.e(chunkId).then(finishChunkLoading, function(err) {\n/******/ \t\t\t\tfinishChunkLoading();\n/******/ \t\t\t\tthrow err;\n/******/ \t\t\t});\n/******/\n/******/ \t\t\tfunction finishChunkLoading() {\n/******/ \t\t\t\thotChunksLoading--;\n/******/ \t\t\t\tif (hotStatus === \"prepare\") {\n/******/ \t\t\t\t\tif (!hotWaitingFilesMap[chunkId]) {\n/******/ \t\t\t\t\t\thotEnsureUpdateChunk(chunkId);\n/******/ \t\t\t\t\t}\n/******/ \t\t\t\t\tif (hotChunksLoading === 0 && hotWaitingFiles === 0) {\n/******/ \t\t\t\t\t\thotUpdateDownloaded();\n/******/ \t\t\t\t\t}\n/******/ \t\t\t\t}\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t\treturn fn;\n/******/ \t}", "function hotCreateRequire(moduleId) {\n/******/ \t\tvar me = installedModules[moduleId];\n/******/ \t\tif (!me) return __webpack_require__;\n/******/ \t\tvar fn = function(request) {\n/******/ \t\t\tif (me.hot.active) {\n/******/ \t\t\t\tif (installedModules[request]) {\n/******/ \t\t\t\t\tif (installedModules[request].parents.indexOf(moduleId) === -1) {\n/******/ \t\t\t\t\t\tinstalledModules[request].parents.push(moduleId);\n/******/ \t\t\t\t\t}\n/******/ \t\t\t\t} else {\n/******/ \t\t\t\t\thotCurrentParents = [moduleId];\n/******/ \t\t\t\t\thotCurrentChildModule = request;\n/******/ \t\t\t\t}\n/******/ \t\t\t\tif (me.children.indexOf(request) === -1) {\n/******/ \t\t\t\t\tme.children.push(request);\n/******/ \t\t\t\t}\n/******/ \t\t\t} else {\n/******/ \t\t\t\tconsole.warn(\n/******/ \t\t\t\t\t\"[HMR] unexpected require(\" +\n/******/ \t\t\t\t\t\trequest +\n/******/ \t\t\t\t\t\t\") from disposed module \" +\n/******/ \t\t\t\t\t\tmoduleId\n/******/ \t\t\t\t);\n/******/ \t\t\t\thotCurrentParents = [];\n/******/ \t\t\t}\n/******/ \t\t\treturn __webpack_require__(request);\n/******/ \t\t};\n/******/ \t\tvar ObjectFactory = function ObjectFactory(name) {\n/******/ \t\t\treturn {\n/******/ \t\t\t\tconfigurable: true,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: function() {\n/******/ \t\t\t\t\treturn __webpack_require__[name];\n/******/ \t\t\t\t},\n/******/ \t\t\t\tset: function(value) {\n/******/ \t\t\t\t\t__webpack_require__[name] = value;\n/******/ \t\t\t\t}\n/******/ \t\t\t};\n/******/ \t\t};\n/******/ \t\tfor (var name in __webpack_require__) {\n/******/ \t\t\tif (\n/******/ \t\t\t\tObject.prototype.hasOwnProperty.call(__webpack_require__, name) &&\n/******/ \t\t\t\tname !== \"e\"\n/******/ \t\t\t) {\n/******/ \t\t\t\tObject.defineProperty(fn, name, ObjectFactory(name));\n/******/ \t\t\t}\n/******/ \t\t}\n/******/ \t\tfn.e = function(chunkId) {\n/******/ \t\t\tif (hotStatus === \"ready\") hotSetStatus(\"prepare\");\n/******/ \t\t\thotChunksLoading++;\n/******/ \t\t\treturn __webpack_require__.e(chunkId).then(finishChunkLoading, function(err) {\n/******/ \t\t\t\tfinishChunkLoading();\n/******/ \t\t\t\tthrow err;\n/******/ \t\t\t});\n/******/\n/******/ \t\t\tfunction finishChunkLoading() {\n/******/ \t\t\t\thotChunksLoading--;\n/******/ \t\t\t\tif (hotStatus === \"prepare\") {\n/******/ \t\t\t\t\tif (!hotWaitingFilesMap[chunkId]) {\n/******/ \t\t\t\t\t\thotEnsureUpdateChunk(chunkId);\n/******/ \t\t\t\t\t}\n/******/ \t\t\t\t\tif (hotChunksLoading === 0 && hotWaitingFiles === 0) {\n/******/ \t\t\t\t\t\thotUpdateDownloaded();\n/******/ \t\t\t\t\t}\n/******/ \t\t\t\t}\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t\treturn fn;\n/******/ \t}", "registerModuleResource(moduleResource) {\n if (this._registrationFinalized) {\n throw new Error('Tried registering a module ' + moduleResource.value\n + ' after the loader has been finalized.');\n }\n if (moduleResource.hasComponent) {\n moduleResource.hasComponent.forEach((component) => {\n component.module = moduleResource;\n this._registerComponentResource(component);\n });\n }\n else if (!moduleResource.imports) {\n throw new Error('Tried to register the module ' + moduleResource.value + ' that has no components.');\n }\n }", "function hotCreateRequire(moduleId) {\n/******/ \t\tvar me = installedModules[moduleId];\n/******/ \t\tif (!me) return __webpack_require__;\n/******/ \t\tvar fn = function(request) {\n/******/ \t\t\tif (me.hot.active) {\n/******/ \t\t\t\tif (installedModules[request]) {\n/******/ \t\t\t\t\tif (installedModules[request].parents.indexOf(moduleId) === -1)\n/******/ \t\t\t\t\t\tinstalledModules[request].parents.push(moduleId);\n/******/ \t\t\t\t} else {\n/******/ \t\t\t\t\thotCurrentParents = [moduleId];\n/******/ \t\t\t\t\thotCurrentChildModule = request;\n/******/ \t\t\t\t}\n/******/ \t\t\t\tif (me.children.indexOf(request) === -1) me.children.push(request);\n/******/ \t\t\t} else {\n/******/ \t\t\t\tconsole.warn(\n/******/ \t\t\t\t\t\"[HMR] unexpected require(\" +\n/******/ \t\t\t\t\t\trequest +\n/******/ \t\t\t\t\t\t\") from disposed module \" +\n/******/ \t\t\t\t\t\tmoduleId\n/******/ \t\t\t\t);\n/******/ \t\t\t\thotCurrentParents = [];\n/******/ \t\t\t}\n/******/ \t\t\treturn __webpack_require__(request);\n/******/ \t\t};\n/******/ \t\tvar ObjectFactory = function ObjectFactory(name) {\n/******/ \t\t\treturn {\n/******/ \t\t\t\tconfigurable: true,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: function() {\n/******/ \t\t\t\t\treturn __webpack_require__[name];\n/******/ \t\t\t\t},\n/******/ \t\t\t\tset: function(value) {\n/******/ \t\t\t\t\t__webpack_require__[name] = value;\n/******/ \t\t\t\t}\n/******/ \t\t\t};\n/******/ \t\t};\n/******/ \t\tfor (var name in __webpack_require__) {\n/******/ \t\t\tif (\n/******/ \t\t\t\tObject.prototype.hasOwnProperty.call(__webpack_require__, name) &&\n/******/ \t\t\t\tname !== \"e\"\n/******/ \t\t\t) {\n/******/ \t\t\t\tObject.defineProperty(fn, name, ObjectFactory(name));\n/******/ \t\t\t}\n/******/ \t\t}\n/******/ \t\tfn.e = function(chunkId) {\n/******/ \t\t\tif (hotStatus === \"ready\") hotSetStatus(\"prepare\");\n/******/ \t\t\thotChunksLoading++;\n/******/ \t\t\treturn __webpack_require__.e(chunkId).then(finishChunkLoading, function(err) {\n/******/ \t\t\t\tfinishChunkLoading();\n/******/ \t\t\t\tthrow err;\n/******/ \t\t\t});\n/******/\n/******/ \t\t\tfunction finishChunkLoading() {\n/******/ \t\t\t\thotChunksLoading--;\n/******/ \t\t\t\tif (hotStatus === \"prepare\") {\n/******/ \t\t\t\t\tif (!hotWaitingFilesMap[chunkId]) {\n/******/ \t\t\t\t\t\thotEnsureUpdateChunk(chunkId);\n/******/ \t\t\t\t\t}\n/******/ \t\t\t\t\tif (hotChunksLoading === 0 && hotWaitingFiles === 0) {\n/******/ \t\t\t\t\t\thotUpdateDownloaded();\n/******/ \t\t\t\t\t}\n/******/ \t\t\t\t}\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t\treturn fn;\n/******/ \t}", "function hotCreateRequire(moduleId) {\n/******/ \t\tvar me = installedModules[moduleId];\n/******/ \t\tif (!me) return __webpack_require__;\n/******/ \t\tvar fn = function(request) {\n/******/ \t\t\tif (me.hot.active) {\n/******/ \t\t\t\tif (installedModules[request]) {\n/******/ \t\t\t\t\tif (installedModules[request].parents.indexOf(moduleId) === -1)\n/******/ \t\t\t\t\t\tinstalledModules[request].parents.push(moduleId);\n/******/ \t\t\t\t} else {\n/******/ \t\t\t\t\thotCurrentParents = [moduleId];\n/******/ \t\t\t\t\thotCurrentChildModule = request;\n/******/ \t\t\t\t}\n/******/ \t\t\t\tif (me.children.indexOf(request) === -1) me.children.push(request);\n/******/ \t\t\t} else {\n/******/ \t\t\t\tconsole.warn(\n/******/ \t\t\t\t\t\"[HMR] unexpected require(\" +\n/******/ \t\t\t\t\t\trequest +\n/******/ \t\t\t\t\t\t\") from disposed module \" +\n/******/ \t\t\t\t\t\tmoduleId\n/******/ \t\t\t\t);\n/******/ \t\t\t\thotCurrentParents = [];\n/******/ \t\t\t}\n/******/ \t\t\treturn __webpack_require__(request);\n/******/ \t\t};\n/******/ \t\tvar ObjectFactory = function ObjectFactory(name) {\n/******/ \t\t\treturn {\n/******/ \t\t\t\tconfigurable: true,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: function() {\n/******/ \t\t\t\t\treturn __webpack_require__[name];\n/******/ \t\t\t\t},\n/******/ \t\t\t\tset: function(value) {\n/******/ \t\t\t\t\t__webpack_require__[name] = value;\n/******/ \t\t\t\t}\n/******/ \t\t\t};\n/******/ \t\t};\n/******/ \t\tfor (var name in __webpack_require__) {\n/******/ \t\t\tif (\n/******/ \t\t\t\tObject.prototype.hasOwnProperty.call(__webpack_require__, name) &&\n/******/ \t\t\t\tname !== \"e\"\n/******/ \t\t\t) {\n/******/ \t\t\t\tObject.defineProperty(fn, name, ObjectFactory(name));\n/******/ \t\t\t}\n/******/ \t\t}\n/******/ \t\tfn.e = function(chunkId) {\n/******/ \t\t\tif (hotStatus === \"ready\") hotSetStatus(\"prepare\");\n/******/ \t\t\thotChunksLoading++;\n/******/ \t\t\treturn __webpack_require__.e(chunkId).then(finishChunkLoading, function(err) {\n/******/ \t\t\t\tfinishChunkLoading();\n/******/ \t\t\t\tthrow err;\n/******/ \t\t\t});\n/******/\n/******/ \t\t\tfunction finishChunkLoading() {\n/******/ \t\t\t\thotChunksLoading--;\n/******/ \t\t\t\tif (hotStatus === \"prepare\") {\n/******/ \t\t\t\t\tif (!hotWaitingFilesMap[chunkId]) {\n/******/ \t\t\t\t\t\thotEnsureUpdateChunk(chunkId);\n/******/ \t\t\t\t\t}\n/******/ \t\t\t\t\tif (hotChunksLoading === 0 && hotWaitingFiles === 0) {\n/******/ \t\t\t\t\t\thotUpdateDownloaded();\n/******/ \t\t\t\t\t}\n/******/ \t\t\t\t}\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t\treturn fn;\n/******/ \t}", "function hotCreateRequire(moduleId) {\n/******/ \t\tvar me = installedModules[moduleId];\n/******/ \t\tif (!me) return __webpack_require__;\n/******/ \t\tvar fn = function(request) {\n/******/ \t\t\tif (me.hot.active) {\n/******/ \t\t\t\tif (installedModules[request]) {\n/******/ \t\t\t\t\tif (installedModules[request].parents.indexOf(moduleId) === -1)\n/******/ \t\t\t\t\t\tinstalledModules[request].parents.push(moduleId);\n/******/ \t\t\t\t} else {\n/******/ \t\t\t\t\thotCurrentParents = [moduleId];\n/******/ \t\t\t\t\thotCurrentChildModule = request;\n/******/ \t\t\t\t}\n/******/ \t\t\t\tif (me.children.indexOf(request) === -1) me.children.push(request);\n/******/ \t\t\t} else {\n/******/ \t\t\t\tconsole.warn(\n/******/ \t\t\t\t\t\"[HMR] unexpected require(\" +\n/******/ \t\t\t\t\t\trequest +\n/******/ \t\t\t\t\t\t\") from disposed module \" +\n/******/ \t\t\t\t\t\tmoduleId\n/******/ \t\t\t\t);\n/******/ \t\t\t\thotCurrentParents = [];\n/******/ \t\t\t}\n/******/ \t\t\treturn __webpack_require__(request);\n/******/ \t\t};\n/******/ \t\tvar ObjectFactory = function ObjectFactory(name) {\n/******/ \t\t\treturn {\n/******/ \t\t\t\tconfigurable: true,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: function() {\n/******/ \t\t\t\t\treturn __webpack_require__[name];\n/******/ \t\t\t\t},\n/******/ \t\t\t\tset: function(value) {\n/******/ \t\t\t\t\t__webpack_require__[name] = value;\n/******/ \t\t\t\t}\n/******/ \t\t\t};\n/******/ \t\t};\n/******/ \t\tfor (var name in __webpack_require__) {\n/******/ \t\t\tif (\n/******/ \t\t\t\tObject.prototype.hasOwnProperty.call(__webpack_require__, name) &&\n/******/ \t\t\t\tname !== \"e\"\n/******/ \t\t\t) {\n/******/ \t\t\t\tObject.defineProperty(fn, name, ObjectFactory(name));\n/******/ \t\t\t}\n/******/ \t\t}\n/******/ \t\tfn.e = function(chunkId) {\n/******/ \t\t\tif (hotStatus === \"ready\") hotSetStatus(\"prepare\");\n/******/ \t\t\thotChunksLoading++;\n/******/ \t\t\treturn __webpack_require__.e(chunkId).then(finishChunkLoading, function(err) {\n/******/ \t\t\t\tfinishChunkLoading();\n/******/ \t\t\t\tthrow err;\n/******/ \t\t\t});\n/******/\n/******/ \t\t\tfunction finishChunkLoading() {\n/******/ \t\t\t\thotChunksLoading--;\n/******/ \t\t\t\tif (hotStatus === \"prepare\") {\n/******/ \t\t\t\t\tif (!hotWaitingFilesMap[chunkId]) {\n/******/ \t\t\t\t\t\thotEnsureUpdateChunk(chunkId);\n/******/ \t\t\t\t\t}\n/******/ \t\t\t\t\tif (hotChunksLoading === 0 && hotWaitingFiles === 0) {\n/******/ \t\t\t\t\t\thotUpdateDownloaded();\n/******/ \t\t\t\t\t}\n/******/ \t\t\t\t}\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t\treturn fn;\n/******/ \t}", "function ModuleWithProviders(){}", "function makeRequire(m, self) {\n function _require(_path) {\n return m.require(_path);\n }\n\n _require.resolve = function(request) {\n return _module._resolveFilename(request, self);\n };\n _require.cache = _module._cache;\n _require.extensions = _module._extensions;\n\n return _require;\n}", "function require(str) {}", "function Module(){}", "function Module(){}", "detectDynamicRequires(unit) {\n const src = `\\\nvar _sysreq = require;\n(function() {\nvar dmodules = []\nvar require = function(module) {\n dmodules.push(module)\n return _sysreq(module)\n};\n${unit.src}\nmodule.exports = dmodules;\n})()\\\n`;\n const tmpfile = unit.fpath + \".bna.js\";\n fs.writeFileSync(tmpfile, src);\n let dmodules = [];\n try {\n const _r = require; // prevent warning when fusing bna itself\n return dmodules = _.unique(_r(tmpfile));\n } catch (e) {\n return unit.warnings.push({\n node: { loc: { file: unit.fpath, line: '?' } },\n reason: 'dynamicResolveError',\n error: e\n });\n } finally {\n delete require.cache[tmpfile];\n fs.unlinkSync(tmpfile);\n return dmodules;\n }\n }", "function wrap(module){\n return \"angular.module('\" + module + \"')\";\n}", "function moduleDependency(code: string): string {\n return `@@MODULE_START@@${code}@@MODULE_END@@`;\n}", "function smartRequire(reqlist) {\n // try to add each entry in to required state and save to global.mod\n reqlist = reqlist || [];\n var name, value;\n for (var i in reqlist) {\n try {\n if (typeof reqlist[i] == \"String\") {\n name = value = reqlist[i];\n globalRequire(name, value);\n }\n else {\n for (name in reqlist[i]) {\n value = reqlist[i][name];\n globalRequire(name, value);\n }\n }\n } catch (e) {\n }\n }\n}", "function asyncRequire(moduleID: number): Promise<mixed> {\n return Promise.resolve()\n .then(() => {\n const {segmentId} = (require: $FlowFixMe).unpackModuleId(moduleID);\n return loadSegment(segmentId);\n })\n .then(() => dynamicRequire(moduleID));\n}", "_chunkifyEagerRequires(chunks, moduleCount, sourceWidth) {\n assert.ok(_.isArray(chunks));\n assert.ok(_.isNumber(moduleCount));\n assert.ok(_.isNumber(sourceWidth));\n\n let exportsName;\n\n // Now that we have installed everything in this package or\n // application, first evaluate the bare files, then require the\n // non-lazy (eager) modules.\n\n const eagerModuleFiles = [];\n\n _.each(this.files, file => {\n if (file.bare) {\n chunks.push(\"\\n\", file.getPrelinkedOutput({\n sourceWidth,\n }));\n } else if (moduleCount > 0 && ! file.lazy) {\n eagerModuleFiles.push(file);\n }\n });\n\n if (eagerModuleFiles.length > 0) {\n _.each(eagerModuleFiles, file => {\n if (file.mainModule) {\n exportsName = \"exports\";\n }\n\n chunks.push(\n file.mainModule ? \"\\nvar \" + exportsName + \" = \" : \"\\n\",\n \"require(\",\n JSON.stringify(file.absModuleId),\n \");\"\n );\n });\n }\n\n return exportsName;\n }", "function Bundler () {\n}", "function load(req, res, next, id) {\n Module.get(id)\n .then((module) => {\n req._module = module; // eslint-disable-line no-param-reassign\n return next();\n })\n .catch(e => next(e));\n}", "function getWebModule(initialRoot, moduleName) {\n return function(res) {\n if (res.context.includes('node_modules/react-native/')) {\n res.request = includeModule(initialRoot + moduleName);\n }\n };\n}", "function includeMainModule(amdConfig, bundleName) {\n amdConfig.include = amdConfig.include || [];\n amdConfig.include.push(bundleName + '/' + bundleName);\n}", "function loadModule(moduleName) {\n var module = modules[moduleName];\n\n if (module !== undefined) {\n return module;\n } // This uses a switch for static require analysis\n\n\n switch (moduleName) {\n case 'charset':\n module = __webpack_require__(/*! ./lib/charset */ \"./node_modules/negotiator/lib/charset.js\");\n break;\n\n case 'encoding':\n module = __webpack_require__(/*! ./lib/encoding */ \"./node_modules/negotiator/lib/encoding.js\");\n break;\n\n case 'language':\n module = __webpack_require__(/*! ./lib/language */ \"./node_modules/negotiator/lib/language.js\");\n break;\n\n case 'mediaType':\n module = __webpack_require__(/*! ./lib/mediaType */ \"./node_modules/negotiator/lib/mediaType.js\");\n break;\n\n default:\n throw new Error('Cannot find module \\'' + moduleName + '\\'');\n } // Store to prevent invoking require()\n\n\n modules[moduleName] = module;\n return module;\n}", "function execModule(moduleId) {\n const requiredModule = __modules__[moduleId];\n requiredModule.wasExecuted = true;\n requiredModule.code(getRequireForModule(moduleId), requiredModule.exports, requiredModule);\n}", "function requires(src){\r\n\treturn (new AjaxJSLoader(src)).retrieve();\r\n}", "function andThen(mod) {\r\n // support a function that returns a promise\r\n if (typeof mod === 'function')\r\n return promiseChain.then(mod);\r\n else {\r\n return promiseChain.then(function() {\r\n // check if module is defined\r\n if (!config.requires[mod])\r\n throw new Error('Route resolve: Bad resource name [' + mod + ']');\r\n // finally, return the load promise\r\n return $ocLL.load(config.requires[mod]);\r\n });\r\n }\r\n }", "static get requires() {\n return {\n 'JQX.TabsWindow': 'jqxwindow.js',\n 'JQX.Splitter': 'jqxsplitter.js'\n }\n }", "function shortRequire () {\n return {\n compare: function compare (actual) {\n var result = { pass: true },\n errors;\n\n errors = actual.split('\\n')\n .map(checkLine)\n .filter(status => status.hasError)\n .map(error => `line ${error.line}:\\t${error.message}`);\n \n result.pass = errors.length === 0;\n\n if (result.pass) {\n result.message = 'Expected source to require peer modules';\n }\n else {\n result.message = errors\n .join('\\n');\n }\n\n return result;\n }\n };\n}", "function require(input){\n\tswitch(input){\n\t\tcase '../../server.js': return Modules;\n\t\tdefault: alert('Unknown requirement: '+input);\n\t}\n}", "function loadModule(moduleName) {\n var module = modules[moduleName];\n\n if (module !== undefined) {\n return module;\n }\n\n // This uses a switch for static require analysis\n switch (moduleName) {\n case 'charset':\n module = __nccwpck_require__(99296);\n break;\n case 'encoding':\n module = __nccwpck_require__(25297);\n break;\n case 'language':\n module = __nccwpck_require__(19722);\n break;\n case 'mediaType':\n module = __nccwpck_require__(62563);\n break;\n default:\n throw new Error('Cannot find module \\'' + moduleName + '\\'');\n }\n\n // Store to prevent invoking require()\n modules[moduleName] = module;\n\n return module;\n}", "function ensures(name) {\n return require(name);\n}", "function gulpModulesRequirejs(opts) {\n\n var currentPath = path.resolve(opts.dir), config, baseUrl, moduleFile, moduleName, stream, out;\n\n // Creating a stream through which each file will pass\n stream = through.obj(function (file, enc, callback) {\n var self = this;\n if (file.isNull()) {\n self.push(file); // Do nothing if no contents\n return callback();\n }\n\n if (file.isBuffer()) {\n\n baseUrl = currentPath + '/dev/';\n moduleFile = diff.diffChars(baseUrl, file.path)[1].value;\n moduleName = moduleFile.replace(/\\.[^/.]+$/, \"\");\n\n\n requirejs.optimize(opts.r || {\n baseUrl: baseUrl,\n name: moduleName,\n out: function(output){\n self.push(new File({\n path: moduleFile,\n contents: new Buffer(output)\n }))\n },\n optimize : 'none'\n }, function (buildResponse) {\n console.log('module compiled: ' + currentPath + '/build/' + moduleFile);\n return callback();\n });\n }\n\n if (file.isStream()) {\n this.emit('error', new PluginError(PLUGIN_NAME, 'Streams are not supported!'));\n return callback();\n }\n });\n\n // returning the file stream\n return stream;\n}", "function requireLocal(name, root) {\n root = root || params.root;\n\n return ignore(_.partial(require, path.join(root, name)), 'MODULE_NOT_FOUND') || // File include.\n ignore(_.partial(require, path.join(root, 'node_modules', name)), 'MODULE_NOT_FOUND') || // Module include\n require(name); // Global include\n }", "function hotCreateRequire(moduleId) {\r\n/******/ \t\tvar me = installedModules[moduleId];\r\n/******/ \t\tif (!me) return __webpack_require__;\r\n/******/ \t\tvar fn = function(request) {\r\n/******/ \t\t\tif (me.hot.active) {\r\n/******/ \t\t\t\tif (installedModules[request]) {\r\n/******/ \t\t\t\t\tif (installedModules[request].parents.indexOf(moduleId) === -1) {\r\n/******/ \t\t\t\t\t\tinstalledModules[request].parents.push(moduleId);\r\n/******/ \t\t\t\t\t}\r\n/******/ \t\t\t\t} else {\r\n/******/ \t\t\t\t\thotCurrentParents = [moduleId];\r\n/******/ \t\t\t\t\thotCurrentChildModule = request;\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t\tif (me.children.indexOf(request) === -1) {\r\n/******/ \t\t\t\t\tme.children.push(request);\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t} else {\r\n/******/ \t\t\t\tconsole.warn(\r\n/******/ \t\t\t\t\t\"[HMR] unexpected require(\" +\r\n/******/ \t\t\t\t\t\trequest +\r\n/******/ \t\t\t\t\t\t\") from disposed module \" +\r\n/******/ \t\t\t\t\t\tmoduleId\r\n/******/ \t\t\t\t);\r\n/******/ \t\t\t\thotCurrentParents = [];\r\n/******/ \t\t\t}\r\n/******/ \t\t\treturn __webpack_require__(request);\r\n/******/ \t\t};\r\n/******/ \t\tvar ObjectFactory = function ObjectFactory(name) {\r\n/******/ \t\t\treturn {\r\n/******/ \t\t\t\tconfigurable: true,\r\n/******/ \t\t\t\tenumerable: true,\r\n/******/ \t\t\t\tget: function() {\r\n/******/ \t\t\t\t\treturn __webpack_require__[name];\r\n/******/ \t\t\t\t},\r\n/******/ \t\t\t\tset: function(value) {\r\n/******/ \t\t\t\t\t__webpack_require__[name] = value;\r\n/******/ \t\t\t\t}\r\n/******/ \t\t\t};\r\n/******/ \t\t};\r\n/******/ \t\tfor (var name in __webpack_require__) {\r\n/******/ \t\t\tif (\r\n/******/ \t\t\t\tObject.prototype.hasOwnProperty.call(__webpack_require__, name) &&\r\n/******/ \t\t\t\tname !== \"e\" &&\r\n/******/ \t\t\t\tname !== \"t\"\r\n/******/ \t\t\t) {\r\n/******/ \t\t\t\tObject.defineProperty(fn, name, ObjectFactory(name));\r\n/******/ \t\t\t}\r\n/******/ \t\t}\r\n/******/ \t\tfn.e = function(chunkId) {\r\n/******/ \t\t\tif (hotStatus === \"ready\") hotSetStatus(\"prepare\");\r\n/******/ \t\t\thotChunksLoading++;\r\n/******/ \t\t\treturn __webpack_require__.e(chunkId).then(finishChunkLoading, function(err) {\r\n/******/ \t\t\t\tfinishChunkLoading();\r\n/******/ \t\t\t\tthrow err;\r\n/******/ \t\t\t});\r\n/******/\r\n/******/ \t\t\tfunction finishChunkLoading() {\r\n/******/ \t\t\t\thotChunksLoading--;\r\n/******/ \t\t\t\tif (hotStatus === \"prepare\") {\r\n/******/ \t\t\t\t\tif (!hotWaitingFilesMap[chunkId]) {\r\n/******/ \t\t\t\t\t\thotEnsureUpdateChunk(chunkId);\r\n/******/ \t\t\t\t\t}\r\n/******/ \t\t\t\t\tif (hotChunksLoading === 0 && hotWaitingFiles === 0) {\r\n/******/ \t\t\t\t\t\thotUpdateDownloaded();\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\tfn.t = function(value, mode) {\r\n/******/ \t\t\tif (mode & 1) value = fn(value);\r\n/******/ \t\t\treturn __webpack_require__.t(value, mode & ~1);\r\n/******/ \t\t};\r\n/******/ \t\treturn fn;\r\n/******/ \t}", "function ModuleWithProviders() { }", "function ModuleWithProviders() { }", "function requireUncached( $module ) {\n delete require.cache[require.resolve( $module )];\n return require( $module );\n}", "function requireUncached( $module ) {\n delete require.cache[require.resolve( $module )];\n return require( $module );\n}", "function _require(moduleId, packageId, curModuleId) {\n var req, exports, moduleInfo, factory, idx, exp, func, tiki;\n\n // substitute package if needed\n if (packageId) {\n idx = moduleId.indexOf(':');\n if (idx>=0) moduleId = moduleId.slice(0, idx);\n moduleId = packageId + ':' + moduleId;\n }\n \n // convert to canonical moduleId reference.\n moduleId = loader.canonical(moduleId, curModuleId);\n\n // see if its already initialized. return if so\n if (exp = allModules[moduleId]) {\n \n // save the exports when we return it so it can be checked later...\n exp = exp.exports;\n if (!usedModules[moduleId]) usedModules[moduleId] = exp; \n return exp || {}; \n }\n \n // not defined...create it\n modules.push(moduleId);\n\n // not initialized, init module \n exports = {};\n allModules[moduleId] = moduleInfo = {\n id: moduleId,\n exports: exports\n };\n \n // generate custom require with safe info exposed\n req = function(m, p) { return _require(m, p, moduleId); };\n req.displayName = 'Sandbox.require';\n \n req.loader = loader ;\n req.clear = _clear;\n req.sandbox = this;\n \n // run module factory in loader\n func = loader.load(moduleId);\n tiki = _require('tiki:index'); // include tiki global\n if (!func) throw \"could not load function for \" + moduleId;\n\n func.call(exports, req, exports, moduleInfo, tiki);\n \n // detect a circular require. if another module required this \n // module while it was still running, that module must have imported the\n // same exports we ended up with to be consistent.\n exports = moduleInfo.exports;\n exp = usedModules[moduleId];\n if (exp && exp!==exports) throw \"circular require in \" +moduleId;\n usedModules[moduleId] = exports;\n \n return exports;\n }", "function validate(moduleMeta) {\n if (!moduleMeta) {\n throw new TypeError(\"Must provide a ModuleMeta\");\n }\n\n if (!moduleMeta.compile) {\n throw new TypeError(\"ModuleMeta must provide have a `compile` interface\");\n }\n\n return moduleMeta;\n }", "function loadModule(moduleName) {\n\t var module = modules[moduleName];\n\n\t if (module !== undefined) {\n\t return module;\n\t }\n\n\t // This uses a switch for static require analysis\n\t switch (moduleName) {\n\t case 'charset':\n\t module = __webpack_require__(97);\n\t break;\n\t case 'encoding':\n\t module = __webpack_require__(98);\n\t break;\n\t case 'language':\n\t module = __webpack_require__(99);\n\t break;\n\t case 'mediaType':\n\t module = __webpack_require__(100);\n\t break;\n\t default:\n\t throw new Error('Cannot find module \\'' + moduleName + '\\'');\n\t }\n\n\t // Store to prevent invoking require()\n\t modules[moduleName] = module;\n\n\t return module;\n\t}", "static get requires() {\n return {\n 'JQX.MultilineTextBox': 'jqxmultilinetextbox.js'\n }\n }", "function __webpack_require__(moduleId) {\n let module = modules[moduleId];\n if (!module) {\n if (module !== false) {\n module = context.__remoteModuleResolver__(moduleId);\n if (!module) modules[moduleId] = false;\n }\n if (!module) {\n console.warn(`module:${moduleId} not exist!`);\n return;\n }\n modules[moduleId] = module;\n }\n // Check if module is in cache\n if (context.installedModules[moduleId]) {\n return context.installedModules[moduleId].exports;\n }\n // Create a new module (and put it into the cache)\n module = context.installedModules[moduleId] = {\n i: moduleId,\n l: false,\n exports: {}\n };\n\n // Execute the module function\n try {\n modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n } catch (ex) {\n console.error(ex);\n throw ex;\n }\n\n // Flag the module as loaded\n module.l = true;\n\n // Return the exports of the module\n return module.exports;\n }", "function requires() {\n if (!conf) {\n alert(\"MRequires: MRequires() used before MRequires.init() called.\");\n return;\n }\n \n for (var i=0; i<arguments.length; i++) {\n \n // We keep track of items by their URL, because different\n // component names can refer to the same URL and we never\n // want to load the same URL twice.\n var url = makeUrl(arguments[i]);\n \n // Load only when not already loaded\n if (!loaded[url]) {\n // mark as loaded\n loaded[url] = true;\n \n if (/\\.js$/.test(url)) {\n loadJavaScript(url);\n }\n else if (/\\.css$/.test(url)) {\n loadCss(url);\n }\n else {\n alert(\"MRequires: Unknown file type '\"+url+\"'.\");\n }\n }\n }\n }", "function r(){throw new Error(\"Dynamic requires are not currently supported by rollup-plugin-commonjs\")}", "function registerModule({id, name, dependencies=[], init=function(){}, getTransferables=null}, callback) {\n // Only register once\n if (modules[id]) return\n\n try {\n // If any dependencies are modules, ensure they're registered and grab their value\n dependencies = dependencies.map(dep => {\n if (dep && dep.isWorkerModule) {\n registerModule(dep, depResult => {\n if (depResult instanceof Error) throw depResult\n })\n dep = modules[dep.id].value\n }\n return dep\n })\n\n // Rehydrate functions\n init = rehydrate(`<${name}>.init`, init)\n if (getTransferables) {\n getTransferables = rehydrate(`<${name}>.getTransferables`, getTransferables)\n }\n\n // Initialize the module and store its value\n let value = null\n if (typeof init === 'function') {\n value = init(...dependencies)\n } else {\n console.error('worker module init function failed to rehydrate')\n }\n modules[id] = {\n id,\n value,\n getTransferables\n }\n callback(value)\n } catch(err) {\n if (!(err && err.noLog)) {\n console.error(err)\n }\n callback(err)\n }\n }", "static get requires() {\r\n return {\r\n 'LW.Window': 'lw.window.js',\r\n 'LW.Calendar': 'lw.calendar.js',\r\n // 'LW.Menu': 'lw.menu.js',\r\n // 'LW.Tooltip': 'lw.tooltip.js'\r\n }\r\n }", "function $IsModule(module) {\n return GetModuleInternalData(module) !== undefined;\n}" ]
[ "0.5956874", "0.59230155", "0.5757844", "0.5748891", "0.57327366", "0.569161", "0.56815684", "0.5675172", "0.56721777", "0.5546803", "0.5513292", "0.5507152", "0.54904824", "0.5463262", "0.5445428", "0.5444974", "0.5429205", "0.54162806", "0.5413627", "0.53695875", "0.5368501", "0.5368501", "0.5368501", "0.5364343", "0.5360201", "0.53554493", "0.53466153", "0.53370386", "0.5334263", "0.5330576", "0.53255886", "0.5325118", "0.5324826", "0.53182447", "0.53154707", "0.5230492", "0.522642", "0.522642", "0.522642", "0.52176136", "0.52176136", "0.52176136", "0.52176136", "0.52176136", "0.52176136", "0.51975775", "0.51894623", "0.5188378", "0.5178004", "0.51760834", "0.51458454", "0.5141065", "0.51351243", "0.51351243", "0.51336336", "0.5128889", "0.5128889", "0.5128889", "0.512682", "0.5124918", "0.51213837", "0.5118304", "0.5118304", "0.5110195", "0.51043254", "0.50941736", "0.5081969", "0.50748825", "0.50607103", "0.5055824", "0.5049949", "0.504847", "0.5041961", "0.50234604", "0.5021358", "0.5020804", "0.5017971", "0.5007588", "0.5004663", "0.5000985", "0.50000006", "0.49994925", "0.4991357", "0.498294", "0.49795637", "0.49773642", "0.49773642", "0.49729338", "0.49729338", "0.49718103", "0.49709126", "0.4956511", "0.49432454", "0.49420446", "0.49369386", "0.49316424", "0.49311778", "0.49285734", "0.49225238" ]
0.5364112
25
Normalizes data from the request object, accounting for framework differences.
function extractNodeRequestData(req, keys) { if (keys === void 0) { keys = DEFAULT_REQUEST_KEYS; } // make sure we can safely use dynamicRequire below if (!isNodeEnv()) { throw new Error("Can't get node request data outside of a node environment"); } var requestData = {}; // headers: // node, express: req.headers // koa: req.header var headers = (req.headers || req.header || {}); // method: // node, express, koa: req.method var method = req.method; // host: // express: req.hostname in > 4 and req.host in < 4 // koa: req.host // node: req.headers.host var host = req.hostname || req.host || headers.host || '<no host>'; // protocol: // node: <n/a> // express, koa: req.protocol var protocol = req.protocol === 'https' || req.secure || (req.socket || {}).encrypted ? 'https' : 'http'; // url (including path and query string): // node, express: req.originalUrl // koa: req.url var originalUrl = (req.originalUrl || req.url || ''); // absolute url var absoluteUrl = protocol + "://" + host + originalUrl; keys.forEach(function (key) { switch (key) { case 'headers': requestData.headers = headers; break; case 'method': requestData.method = method; break; case 'url': requestData.url = absoluteUrl; break; case 'cookies': // cookies: // node, express, koa: req.headers.cookie // vercel, sails.js, express (w/ cookie middleware): req.cookies // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access requestData.cookies = req.cookies || dynamicRequire(module, 'cookie').parse(headers.cookie || ''); break; case 'query_string': // query string: // node: req.url (raw) // express, koa: req.query // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access requestData.query_string = dynamicRequire(module, 'url').parse(originalUrl || '', false).query; break; case 'data': if (method === 'GET' || method === 'HEAD') { break; } // body data: // node, express, koa: req.body if (req.body !== undefined) { requestData.data = Object(_is__WEBPACK_IMPORTED_MODULE_0__[/* isString */ "k"])(req.body) ? req.body : JSON.stringify(Object(_object__WEBPACK_IMPORTED_MODULE_1__[/* normalize */ "d"])(req.body)); } break; default: if ({}.hasOwnProperty.call(req, key)) { requestData[key] = req[key]; } } }); return requestData; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function normalizeReponseData(data) {\n // New reference is required to never influence in another operation\n var _data = _.clone(data);\n\n if (_data._key) {\n // Replace _key for key\n _data.key = data._key;\n }\n\n if (_.isNumber(_data._pi)) {\n // Replace _pi for priority\n _data.priority = data._pi;\n }\n\n delete _data._key;\n delete _data._namespace;\n delete _data._pi; // Priority index\n delete _data._si0; // String index 0\n delete _data._si1; // String index 1\n delete _data._ni0; // Number index 0\n delete _data._ni1; // Number index 1\n\n return _data;\n}", "function normalizeInfoUser(request) {\n return {\n _id: request._id,\n nombre: request.nombre,\n correo: request.correo,\n imagen: request.imagen\n }\n}", "function normalizeAll()\n {\n normalizeForms();\n normalizeControls();\n }", "function sanitizeRequestData(req, res, next) {\r\n\r\n debug('before sanitizing query params: %s', JSON.stringify(req.query));\r\n\r\n let origData;\r\n\r\n if (securityConfig.logBadValues) {\r\n\r\n origData = _.assign(_.stubObject(), _.cloneDeep(req.query), _.cloneDeep(req.body));\r\n\r\n _.each(['cookie', 'user-agent', 'host', 'referer'], (header) => {\r\n if (req.headers[header]) {\r\n _.set(origData, header, req.headers[header]);\r\n }\r\n });\r\n\r\n }\r\n\r\n // sanitize all query params\r\n _.forOwn(req.query, (val, key) => {\r\n\r\n if (!_.isArray(val)) {\r\n req.query[key] = safeStripTags(req.query[key]);\r\n } else {\r\n _.each(val, (iVal, i) => {\r\n req.query[key][i] = safeStripTags(req.query[key][i]);\r\n });\r\n }\r\n });\r\n\r\n debug('after sanitizing query params: %s', JSON.stringify(req.query));\r\n\r\n if (!_.isEmpty(req.body)) {\r\n\r\n debug('before sanitizing body: %s', JSON.stringify(req.body));\r\n\r\n _.forOwn(req.body, (val, key) => {\r\n\r\n if (!_.isArray(val)) {\r\n req.body[key] = safeStripTags(req.body[key]);\r\n } else {\r\n _.each(val, (iVal, i) => {\r\n req.body[key][i] = safeStripTags(req.body[key][i]);\r\n });\r\n }\r\n });\r\n\r\n debug('after sanitizing body: %s', JSON.stringify(req.body));\r\n\r\n }\r\n\r\n // sanitize all cookies and headers that might be reflected in browser\r\n _.each(['cookie', 'user-agent', 'host', 'referer'], (header) => {\r\n req.headers[header] = safeStripTags(req.headers[header]);\r\n });\r\n\r\n if (securityConfig.logBadValues) {\r\n\r\n const badData = {\r\n query: {},\r\n body: {},\r\n headers: {},\r\n };\r\n\r\n _.forOwn(req.query, (val, key) => {\r\n\r\n if (!_.isArray(val) && origData[key] !== val) {\r\n badData.query[key] = origData[key];\r\n } else {\r\n const badArr = [];\r\n _.each(val, (iVal, i) => {\r\n if (origData[key][i] !== iVal) {\r\n badArr.push(origData[key][i]);\r\n }\r\n });\r\n if (badArr.length) {\r\n badData.query[key] = badArr;\r\n }\r\n }\r\n });\r\n\r\n _.forOwn(req.body, (val, key) => {\r\n\r\n if (!_.isArray(val) && origData[key] !== val) {\r\n badData.body[key] = origData[key];\r\n } else {\r\n const badArr = [];\r\n _.each(val, (iVal, i) => {\r\n if (origData[key][i] !== iVal) {\r\n badArr.push(origData[key][i]);\r\n }\r\n });\r\n if (badArr.length) {\r\n badData.body[key] = badArr;\r\n }\r\n }\r\n });\r\n\r\n _.each(['cookie', 'user-agent', 'host', 'referer'], (header) => {\r\n if (req.headers[header] && origData[header] !== req.headers[header]) {\r\n badData.headers[header] = origData[header];\r\n }\r\n });\r\n\r\n if (!_.isEmpty(badData.query)) {\r\n _.set(res.locals, 'logInfo.security.badRequestData.query', badData.query);\r\n statsd.increment('request.invalid.query-param-data');\r\n }\r\n\r\n if (!_.isEmpty(badData.body)) {\r\n _.set(res.locals, 'logInfo.security.badRequestData.body', badData.body);\r\n statsd.increment('request.invalid.body-data');\r\n }\r\n\r\n if (!_.isEmpty(badData.headers)) {\r\n _.set(res.locals, 'logInfo.security.badRequestData.headers', badData.headers);\r\n statsd.increment('request.invalid.header-data');\r\n }\r\n }\r\n\r\n next();\r\n}", "normalize(modelName, payload) {\n return payload;\n }", "function decamelizeRequestData(data) {\n if (data) {\n // If data is part of a Backbone model, Backbone has already\n // stringified the data by the time it gets here, so we have no\n // choice but to unpack it (and have it be re-packed by Angular\n // in the default Angular transformResponse function). It's not\n // trivial to change this. #refactor\n if (_.isString(data) && JSON_START.test(data) && JSON_END.test(data)) {\n data = JSON.parse(data);\n }\n\n data = recursiveKeyTransform(data, decamelize);\n }\n return data;\n }", "function normalize(data) {\n\t\tvar ret = {};\n\t\t// iterate table columns and only include in the return object data matching those columns\n\t\t// avoids db errors if extra data fields are passed\n\t\tfor (var param in table.columns) {\n\t\t\tvar pname = table.columns[param].name;\n\t\t\tret[pname] = data[pname];\n\t\t}\n\t\treturn ret;\n\t}", "async normalize () {\n\t}", "function normalize(d) {\n\tvar total = sum(d);\n\tfor (var key in d) {\n\t if (d.hasOwnProperty(key)) {\n\t d[key] = d[key]/total;\n\t }\n\t}\n}", "function cleanUpGetResponse(request) {\n\tvar fieldsToDelete = [\n\t\t'status_notes',\n\t\t'agency_responsible',\n\t\t'service_notice',\n\t\t'expected_datetime'\n\t];\n\tfieldsToDelete.forEach(function deleteField(field){\n\t\tdelete request[field];\n\t});\n\treturn request;\n}", "function dataNormalize(){\n var name,key,\n item,\n itemKeys;\n\n for( name in data.insertItems ){\n item = data.insertItems[name];\n itemKeys = item.keys;\n\n item.useCtrlKey = $.inArray('CTRL',itemKeys) < 0 ? false : true;\n item.useShiftKey = $.inArray('SHIFT',itemKeys) < 0 ? false : true;\n item.useAltKey = $.inArray('ALT',itemKeys) < 0 ? false : true;\n\n for(var i=0; i<itemKeys.length; i++){\n key = itemKeys[i];\n if(key==='CTRL' || key==='SHIFT' || key==='ALT') continue;\n item.useCharaKey = key;\n break;\n }\n }\n }", "function bodyReqinTransformerBrah( req, res, next ) {\n for( var keys in req.body ) {\n if( keys !== 'name' ) {\n req.body[keys] = parseFloat( req.body[keys] );\n }\n }\n next();\n}", "_normalizeEvent(event, depth, maxBreadth) {\n\t if (!event) {\n\t return null;\n\t }\n\n\t const normalized = {\n\t ...event,\n\t ...(event.breadcrumbs && {\n\t breadcrumbs: event.breadcrumbs.map(b => ({\n\t ...b,\n\t ...(b.data && {\n\t data: normalize$3(b.data, depth, maxBreadth),\n\t }),\n\t })),\n\t }),\n\t ...(event.user && {\n\t user: normalize$3(event.user, depth, maxBreadth),\n\t }),\n\t ...(event.contexts && {\n\t contexts: normalize$3(event.contexts, depth, maxBreadth),\n\t }),\n\t ...(event.extra && {\n\t extra: normalize$3(event.extra, depth, maxBreadth),\n\t }),\n\t };\n\n\t // event.contexts.trace stores information about a Transaction. Similarly,\n\t // event.spans[] stores information about child Spans. Given that a\n\t // Transaction is conceptually a Span, normalization should apply to both\n\t // Transactions and Spans consistently.\n\t // For now the decision is to skip normalization of Transactions and Spans,\n\t // so this block overwrites the normalized event to add back the original\n\t // Transaction information prior to normalization.\n\t if (event.contexts && event.contexts.trace && normalized.contexts) {\n\t normalized.contexts.trace = event.contexts.trace;\n\n\t // event.contexts.trace.data may contain circular/dangerous data so we need to normalize it\n\t if (event.contexts.trace.data) {\n\t normalized.contexts.trace.data = normalize$3(event.contexts.trace.data, depth, maxBreadth);\n\t }\n\t }\n\n\t // event.spans[].data may contain circular/dangerous data so we need to normalize it\n\t if (event.spans) {\n\t normalized.spans = event.spans.map(span => {\n\t // We cannot use the spread operator here because `toJSON` on `span` is non-enumerable\n\t if (span.data) {\n\t span.data = normalize$3(span.data, depth, maxBreadth);\n\t }\n\t return span;\n\t });\n\t }\n\n\t return normalized;\n\t }", "cleanDataForBackend(item) {\n const result = {};\n if (item.uid && item.uid !== \"new\") { result[\"uid\"] = item.uid;}\n this.transientFields.forEach((fieldName) => delete item[fieldName]);\n for (let field_name in item) {\n const relation = this.relationFields[field_name];\n if (typeof(relation)!==\"undefined\" && (\n relation.type === Models.RelationTypes.OneToMany ||\n relation.type === Models.RelationTypes.ManyToMany\n ))\n {\n let model = Models.getInstanceOf(this.relationFields[field_name].target);\n for (let rowIndex in item[field_name])\n item[field_name][rowIndex] = model.cleanDataForBackend(item[field_name][rowIndex]);\n result[field_name] = item[field_name];\n } else if (typeof(this[\"cleanField_\"+field_name])===\"function\") {\n const value = this[\"cleanField_\"+field_name](item[field_name]);\n if (value !== null) result[field_name] = value;\n } else if (typeof(item[field_name]) === 'string') {\n result[field_name] = item[field_name].trim();\n } else {\n result[field_name] = item[field_name];\n }\n }\n return result;\n }", "function normalize(data) {\n var ret = { input: [], output: [] };\n\n\n for (var i = 0; i < data.length; i++) {\n var datum = data[i];\n\n ret.output.push(datum.output);\n ret.input.push(datum.input);\n }\n\n ret.output = Matrix(ret.output);\n ret.input = Matrix(ret.input);\n\n\n return ret;\n\n}", "function normalize(ctx) {\n var flattenRaw = flattenMessage(ctx);\n var processed = (0, _processing2.default)(ctx, flattenRaw);\n return Object.assign({}, (0, _mergePatch2.default)(ctx, processed), ctx);\n}", "_normalizeEvent(event, depth, maxBreadth) {\n if (!event) {\n return null;\n }\n\n const normalized = {\n ...event,\n ...(event.breadcrumbs && {\n breadcrumbs: event.breadcrumbs.map(b => ({\n ...b,\n ...(b.data && {\n data: utils.normalize(b.data, depth, maxBreadth),\n }),\n })),\n }),\n ...(event.user && {\n user: utils.normalize(event.user, depth, maxBreadth),\n }),\n ...(event.contexts && {\n contexts: utils.normalize(event.contexts, depth, maxBreadth),\n }),\n ...(event.extra && {\n extra: utils.normalize(event.extra, depth, maxBreadth),\n }),\n };\n\n // event.contexts.trace stores information about a Transaction. Similarly,\n // event.spans[] stores information about child Spans. Given that a\n // Transaction is conceptually a Span, normalization should apply to both\n // Transactions and Spans consistently.\n // For now the decision is to skip normalization of Transactions and Spans,\n // so this block overwrites the normalized event to add back the original\n // Transaction information prior to normalization.\n if (event.contexts && event.contexts.trace && normalized.contexts) {\n normalized.contexts.trace = event.contexts.trace;\n\n // event.contexts.trace.data may contain circular/dangerous data so we need to normalize it\n if (event.contexts.trace.data) {\n normalized.contexts.trace.data = utils.normalize(event.contexts.trace.data, depth, maxBreadth);\n }\n }\n\n // event.spans[].data may contain circular/dangerous data so we need to normalize it\n if (event.spans) {\n normalized.spans = event.spans.map(span => {\n // We cannot use the spread operator here because `toJSON` on `span` is non-enumerable\n if (span.data) {\n span.data = utils.normalize(span.data, depth, maxBreadth);\n }\n return span;\n });\n }\n\n return normalized;\n }", "function normalizeInputs(inputs) {\n var rinputs = [];\n\n for (var i = 0; i < inputs.length; i++) {\n rinputs.push(inputs[i].normalize());\n }\n\n return rinputs;\n}", "function sanitizeData(data) {\r\n var d = [];\r\n Object.keys(data).forEach(function(key) {\r\n d.push(data[key]);\r\n });\r\n return d;\r\n}", "function transformRequest( data, getHeaders ) {\n\n var headers = getHeaders();\n\n //headers[ \"Content-type\" ] = \"application/x-www-form-urlencoded; charset=utf-8\";\n\n return( serializeData( data ) );\n\n }", "function transformRequest( data, getHeaders ) {\n\n var headers = getHeaders();\n\n //headers[ \"Content-type\" ] = \"application/x-www-form-urlencoded; charset=utf-8\";\n\n return( serializeData( data ) );\n\n }", "function convertFieldsToString(requestBody) {\n const sanitizedData = requestBody;\n Object.keys(sanitizedData).forEach((key) => {\n sanitizedData[key] = !isEmpty(sanitizedData[key]) ? sanitizedData[key] : '';\n // Casting number input to string\n if (typeof sanitizedData[key] === 'number') {\n sanitizedData[key] = String(sanitizedData[key]);\n }\n });\n return sanitizedData;\n}", "function NormalizeProcessData(inputData) {\r\n\r\n try {\r\n // Get the Mean quantity for each record\r\n var mean = d3.mean(inputData, function (d) { return d.values.length; });\r\n\r\n var temp = { key: \"Others\", values: [] };\r\n var final = [];\r\n inputData.forEach(function (d) {\r\n if (d.values.length > mean) {\r\n final.push(d);\r\n } else {\r\n temp.values = d3.merge([d.values, temp.values]);\r\n }\r\n });\r\n final.push(temp);\r\n\r\n return final;\r\n } catch (e) {\r\n console.log(e.message);\r\n }\r\n\r\n return inputData;\r\n}", "function transformRequest( data, getHeaders ) {\n var headers = getHeaders();\n headers[ 'Content-Type' ] = 'application/x-www-form-urlencoded; charset=utf-8';\n return( serializeData( data ) );\n }", "function processSimpleRequest(request) {\n var query = request.query.query || {},\n\n projection = request.query.projection || {},\n\n limit = request.query.limit || 0,\n\n orderBy = request.query.orderBy || {},\n\n hierarchy = url.parse(request.url).pathname.split('/'),\n\n //Remove any query parameters to the request\n collectionName = hierarchy[3],\n\n recordId = hierarchy[4],\n\n path = '/' + collectionName,\n\n method = request.method,\n\n body,\n options;\n\n if (recordId) {\n recordId = recordId.split('?')[0];\n\n path += '/' + recordId;\n }\n\n if (typeof query === 'string') {\n query = JSON.parse(query);\n }\n\n if (typeof projection === 'string') {\n projection = JSON.parse(projection);\n }\n\n if (typeof orderBy === 'string') {\n orderBy = JSON.parse(orderBy);\n }\n\n if (typeof limit === 'string') {\n limit = parseInt(limit, 10);\n }\n\n if (method !== 'GET') {\n body = JSON.stringify(request.body);\n } else {\n body = '';\n }\n\n options = {\n host: config.api.host,\n path: path,\n port: config.api.port,\n query: query,\n projection: projection,\n limit: limit,\n orderBy: orderBy,\n data: body\n };\n\n return options;\n}", "function transformRequest( data, getHeaders ) {\n\t\t\tvar headers = getHeaders();\n\t\t\theaders[ \"Content-type\" ] = \"application/x-www-form-urlencoded; charset=utf-8\";\n\t\t\treturn( serializeData( data ) );\n\t\t}", "function transformRequest( data, getHeaders ) {\r\n var headers = getHeaders();\r\n headers[ \"Content-type\" ] = \"application/x-www-form-urlencoded; charset=utf-8\";\r\n return( serializeData( data ) );\r\n }", "function transformRequest( data, getHeaders ) {\n var headers = getHeaders();\n headers[ \"Content-type\" ] = \"application/x-www-form-urlencoded; charset=utf-8\";\n return( serializeData( data ) );\n }", "function transformRequest( data, getHeaders ) {\n var headers = getHeaders();\n headers[ \"Content-type\" ] = \"application/x-www-form-urlencoded; charset=utf-8\";\n return( serializeData( data ) );\n }", "formatRequest(request) {\n\t\tif (request.Tracers) {\n\t\t\treturn request.Tracers.map(tracer => {\n\t\t\t\treturn {\n\t\t\t\t\tID: tracer.ID,\n\t\t\t\t\tRawRequest: request.RawRequest,\n\t\t\t\t\tRequestMethod: request.RequestMethod,\n\t\t\t\t\tRequestURL: this.parseHost(request.RequestURL),\n\t\t\t\t\tRequestPath: this.parsePath(request.RequestURL),\n\t\t\t\t\tTracerString: tracer.TracerString,\n\t\t\t\t\tTracerPayload: tracer.TracerPayload,\n\t\t\t\t\tTracerLocationIndex: tracer.TracerLocationIndex,\n\t\t\t\t\tTracerLocationType: tracer.TracerLocationType,\n\t\t\t\t\tOverallSeverity: tracer.OverallSeverity,\n\t\t\t\t\tHasTracerEvents: tracer.HasTracerEvents\n\t\t\t\t};\n\t\t\t});\n\t\t}\n\t}", "function camelizeResponseData(data) {\n // don't bother processing if it's not an object\n if (_.isObject(data)) {\n data = recursiveKeyTransform(data, camelize);\n }\n\n return data;\n }", "function transformRequest(data, getHeaders) {\n var headers = getHeaders();\n headers[\"Content-type\"] = \"application/x-www-form-urlencoded; charset=utf-8\";\n return ( serializeData(data) );\n }", "function convert_single_request(data, orig) {\n var obj = {};\n\n var t = orig.type;\n\n if (orig.cached) {\n obj.cached = 1;\n obj.sizecache = orig.size;\n } else {\n obj.size = orig.size;\n }\n\n if (!orig.url.startsWith(\"data:\"))\n obj.url = orig.url;\n\n obj.url_display = sanitize_url(orig.url);\n obj.code = orig.code;\n\n // add the request to one of lists\n if (t != \"Document\" && t != \"Script\" && t != \"Stylesheet\" &&\n t != \"Image\" && t != \"XHR\" && t != \"Font\") {\n obj.type = t;\n t = \"Other\";\n }\n var list = data.sections[t];\n if (!list) {\n data.sections[t] = [];\n list = data.sections[t];\n }\n list.push(obj);\n\n // update counts\n var names = [\"total\", t+\"count\"];\n for (const name of names) {\n var total = get_counters(data, name);\n// total[\"reqtotal\"] += 1;\n// total[\"kbtotal\"] += orig.size;\n if (orig.cached) {\n total[\"reqcached\"] += 1;\n total[\"kbcached\"] += orig.size;\n } else {\n total[\"reqtransf\"] += 1;\n total[\"kbtransf\"] += orig.size;\n }\n }\n\n}", "function normalize(data) {\n \"use strict\";\n var ret = {};\n data.forEach(function (item, idx) {\n if(item.id) {\n ret[item.id] = pluck(item); \n }\n });\n return ret;\n }", "function resetRequestDada(request){\n\trequest.act = null;\n\trequest.stepId = null;\n\trequest.url = null;\n\trequest.ip = [];\n\trequest.account = [];\n\trequest.amount = null;\n\t//request.language = null;\n\t//request.job = null;\n\treturn request;\n}", "function normalizeMultipart(info) {\n // Find the content type header\n var contentTypeKey = 'content-type';\n var contentType = info.headers[contentTypeKey];\n if (!contentType) {\n contentTypeKey = 'Content-Type';\n contentType = info.headers[contentTypeKey];\n }\n\n // If we have a multipart form\n if (contentType && contentType.indexOf('multipart/form-data') !== -1) {\n // Replace the random boundary with a predictable form\n info.headers = _.clone(info.headers);\n info.headers[contentTypeKey] = contentType.replace(/(\\-+)\\d+/, '$1somenumber');\n\n // Replace the boundary in the body as well\n info.body = info.body.toString().replace(/(\\-+)\\d+/g, '$1somenumber');\n }\n\n // Return our info\n return info;\n}", "function sanitizeData(entry){\n\tentry[mass] = parseFloat(entry[mass]); \n\tentry[year] = new Date(entry[year]);\n\tentry[reclat] = parseFloat(entry[reclat]);\n\tentry[reclong] = parseFloat(entry[reclong]);\n\treturn entry;\n}", "function formatRequest() {\n // convert projectNumber to Number\n $scope.request.projectNumber = +$scope.request.projectNumber;\n\n // convert all quantity amounts to Number\n for (var x = 0; x < $scope.request.items.length; x++) {\n var item = $scope.request.items[x];\n item.quantity = +item.quantity;\n }\n }", "function sanitize(o) {\n if (o != null && typeof o === 'object' && !o._sanitized) {\n if (Array.isArray(o)) {\n let a = [];\n Object.defineProperty(a, '_sanitized', { value: true });\n o.forEach(e => a.push(sanitize(e)));\n return a;\n } else if (o.constructor && o.constructor.name === 'model') {\n let s = {};\n Object.defineProperty(s, '_sanitized', { value: true });\n for (const p in o) {\n let v = o[p];\n if (/^\\$/.test(p) || p === 'db' || p === 'opts' || p === 'conn' || p === 'schema' || p === 'collection')\n continue;\n if (typeof v !== 'function')\n s[p] = sanitize(v);\n }\n return s;\n }\n }\n return o;\n}", "function normalize(data) {\n var total = 0;\n var count = 0;\n\n data.markets.forEach(function(market) {\n var base = market.base.currency + '.' + market.base.issuer;\n var counter = market.counter.currency + '.' + market.counter.issuer;\n var swap\n\n // no trades or already determined\n if (!market.count || market.convertedAmount) {\n return;\n\n } else if (data.rates[base]) {\n market.convertedAmount = market.amount / data.rates[base];\n market.rate /= data.rates[base];\n\n } else if (data.rates[counter]) {\n swap = market.base;\n market.base = market.counter;\n market.counter = swap;\n market.rate = 1 / market.rate;\n market.amount = market.rate * market.amount;\n market.convertedAmount = market.amount / data.rates[counter];\n market.rate /= data.rates[counter];\n\n } else {\n console.log('no rate for:', base, counter);\n }\n });\n\n data.markets = data.markets.filter(function(market) {\n return market.count && market.convertedAmount;\n });\n\n data.markets.sort(function(a, b) {\n return b.convertedAmount - a.convertedAmount;\n });\n\n data.markets.forEach(function(market) {\n total += market.convertedAmount;\n count += market.count;\n });\n\n\n return {\n startTime: params.start.moment.format(),\n exchange: {currency: 'XRP'},\n exchangeRate: 1,\n total: total,\n count: count,\n components: data.markets\n }\n }", "function clean(data) {\n var rt\n if (utilx.isObject(data)) {\n rt = {}\n Object.keys(data).forEach(function(k) {\n var n = data[k]\n var stats = n.__stats\n if (stats === STATS.LEFT || stats === STATS.DEFINE) {\n if (n.__origin) {\n data[k] = n.__origin\n } else {\n return\n }\n }\n innerClean(data, k, rt)\n })\n return rt\n }\n\n if (utilx.isArray(data)) {\n rt = []\n data.forEach(function(n, k) {\n innerClean(data, k, rt)\n })\n return rt\n }\n}", "function normalize(rule) {\n // TODO:\n}", "static standardizeQueryData() {\n queryData[this.className()] = queryData[this.className()] || {};\n queryData[this.className()].where = queryData[this.className()].where || {};\n queryData[this.className()].whereNot = queryData[this.className()].whereNot || {};\n queryData[this.className()].select = queryData[this.className()].select || [];\n queryData[this.className()].joins = queryData[this.className()].joins || [];\n }", "function normalizeStyleData(data){var style=normalizeStyleBinding(data.style);// static style is pre-processed into an object during compilation\n\t// and is always a fresh object, so it's safe to merge into it\n\treturn data.staticStyle?extend(data.staticStyle,style):style;}// normalize possible array / string values into Object", "function reformatData(response,request, requestedFields) {\n console.log(\"In reformat data method\");\n \n //do not parse\n var formattedData = [];\n \n for(var i = 0; i < response.length; i++){\n var row = {'values': []};\n for(var m = 0; m < requestedFields.length; m++){\n var field = requestedFields[m];\n row.values.push(response[i][field]);\n }\n formattedData.push(row);\n }\n \n console.log(\"formattedData: \" + JSON.stringify(formattedData));\n \n \n \n return formattedData;\n}", "function transformRequest( data, getHeaders ) {\n var headers = getHeaders();\n headers[ \"Content-type\" ] = \"application/x-www-form-urlencoded; charset=utf-8\";\n return ($.param({jsonString:encodeURIComponent(JSON.stringify(data))}));\n //return( serializeData( data ) );\n }", "_splitAndNormalize(data) {\n return data\n .split(/\\r?\\n/)\n .filter(line => !!line && line !== '-');\n }", "function normalizeData(dataToNormalize, normalizeData) {\n return dataToNormalize.map(row => {\n let normalizer = normalizeData.filter(d => d.Year == row.Date.getFullYear())[0];\n if (normalizer == null) {\n normalizer = normalizeData[normalizeData.length -1];\n }\n return mapNormalizer(row, normalizer);\n });\n }", "function sanitise_data() {\n // convert string to number\n Keys(DEFAULTS).forEach(key => {\n let value = Y[key];\n if (!IsString(value))\n return;\n\n let def = DEFAULTS[key],\n type = TYPES[key];\n\n if (type == 'f')\n Y[key] = DefaultFloat(value, def);\n else if (type == 'i')\n Y[key] = DefaultInt(value, def);\n });\n\n if (virtual_sanitise_data_special)\n virtual_sanitise_data_special();\n}", "function normalizeEvent(event, depth, maxBreadth) {\n if (!event) {\n return null;\n }\n\n const normalized = {\n ...event,\n ...(event.breadcrumbs && {\n breadcrumbs: event.breadcrumbs.map(b => ({\n ...b,\n ...(b.data && {\n data: normalize(b.data, depth, maxBreadth),\n }),\n })),\n }),\n ...(event.user && {\n user: normalize(event.user, depth, maxBreadth),\n }),\n ...(event.contexts && {\n contexts: normalize(event.contexts, depth, maxBreadth),\n }),\n ...(event.extra && {\n extra: normalize(event.extra, depth, maxBreadth),\n }),\n };\n\n // event.contexts.trace stores information about a Transaction. Similarly,\n // event.spans[] stores information about child Spans. Given that a\n // Transaction is conceptually a Span, normalization should apply to both\n // Transactions and Spans consistently.\n // For now the decision is to skip normalization of Transactions and Spans,\n // so this block overwrites the normalized event to add back the original\n // Transaction information prior to normalization.\n if (event.contexts && event.contexts.trace && normalized.contexts) {\n normalized.contexts.trace = event.contexts.trace;\n\n // event.contexts.trace.data may contain circular/dangerous data so we need to normalize it\n if (event.contexts.trace.data) {\n normalized.contexts.trace.data = normalize(event.contexts.trace.data, depth, maxBreadth);\n }\n }\n\n // event.spans[].data may contain circular/dangerous data so we need to normalize it\n if (event.spans) {\n normalized.spans = event.spans.map(span => {\n // We cannot use the spread operator here because `toJSON` on `span` is non-enumerable\n if (span.data) {\n span.data = normalize(span.data, depth, maxBreadth);\n }\n return span;\n });\n }\n\n return normalized;\n }", "function normalizeStyleData(data){var style=normalizeStyleBinding(data.style);// static style is pre-processed into an object during compilation\n// and is always a fresh object, so it's safe to merge into it\nreturn data.staticStyle?extend(data.staticStyle,style):style;}// normalize possible array / string values into Object", "function normalizeStyleData(data){var style=normalizeStyleBinding(data.style);// static style is pre-processed into an object during compilation\n// and is always a fresh object, so it's safe to merge into it\nreturn data.staticStyle?extend(data.staticStyle,style):style;}// normalize possible array / string values into Object", "normalize (data) {\n if (data.coordinates.length > 2) {\n return openlayers.proj.transformExtent(data.coordinates, openlayers.proj.get(data.from), openlayers.proj.get(data.to))\n } else {\n return openlayers.proj.transform(data.coordinates, data.from, data.to)\n }\n }", "_sanitizeItems()\n\t{\n\t\tconst response = {\n\t\t\torigin: \"Form._sanitizeItems\",\n\t\t\tcontext: \"when sanitizing the form items\",\n\t\t};\n\n\t\ttry\n\t\t{\n\t\t\t// convert old style questionnaire to new style:\n\t\t\tfor (const item of this._items)\n\t\t\t{\n\t\t\t\t// old style forms have questionText instead of itemText:\n\t\t\t\tif (typeof item.questionText !== \"undefined\")\n\t\t\t\t{\n\t\t\t\t\titem.itemText = item.questionText;\n\t\t\t\t\tdelete item.questionText;\n\n\t\t\t\t\titem.itemWidth = item.questionWidth;\n\t\t\t\t\tdelete item.questionWidth;\n\n\t\t\t\t\t// for items of type 'rating, the ticks are in 'options' instead of in 'ticks':\n\t\t\t\t\tif (item.type === \"rating\" || item.type === \"slider\")\n\t\t\t\t\t{\n\t\t\t\t\t\titem.ticks = item.options;\n\t\t\t\t\t\titem.options = undefined;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// fill in missing keys and undefined values:\n\t\t\tconst defaultKeys = Object.keys(Form._defaultItems);\n\t\t\tconst missingKeys = new Set();\n\t\t\tfor (const item of this._items)\n\t\t\t{\n\t\t\t\tconst itemKeys = Object.keys(item);\n\t\t\t\tfor (const key of defaultKeys)\n\t\t\t\t{\n\t\t\t\t\t// missing key:\n\t\t\t\t\tif (!itemKeys.includes(key))\n\t\t\t\t\t{\n\t\t\t\t\t\tmissingKeys.add(key);\n\t\t\t\t\t\titem[key] = Form._defaultItems[key];\n\t\t\t\t\t}\n\t\t\t\t\t// undefined value:\n\t\t\t\t\telse if (typeof item[key] === \"undefined\")\n\t\t\t\t\t{\n\t\t\t\t\t\t// TODO: options = '' for FREE_TEXT\n\t\t\t\t\t\titem[key] = Form._defaultItems[key];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (missingKeys.size > 0)\n\t\t\t{\n\t\t\t\tthis._psychoJS.logger.warn(\n\t\t\t\t\t`Missing headers: ${Array.from(missingKeys).join(\", \")}\\nNote, headers are case sensitive and must match: ${Array.from(defaultKeys).join(\", \")}`,\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// check the types and options:\n\t\t\tconst formTypes = Object.getOwnPropertyNames(Form.Types);\n\t\t\tfor (const item of this._items)\n\t\t\t{\n\t\t\t\t// convert type to upper case, replace spaces by underscores\n\t\t\t\titem.type = item.type.toUpperCase().replace(\" \", \"_\");\n\n\t\t\t\t// check that the type is valid:\n\t\t\t\tif (!formTypes.includes(item.type))\n\t\t\t\t{\n\t\t\t\t\tthrow `${item.type} is not a valid type for item: ${item.itemText}`;\n\t\t\t\t}\n\n\t\t\t\t// Support the 'radio' type found on older versions of PsychoPy\n\t\t\t\tif (item.type === \"RADIO\")\n\t\t\t\t{\n\t\t\t\t\titem.type = \"CHOICE\";\n\t\t\t\t}\n\n\t\t\t\t// convert item type to symbol:\n\t\t\t\titem.type = Symbol.for(item.type);\n\n\t\t\t\t// turn the option into an array and check length, where applicable:\n\t\t\t\tif (item.type === Form.Types.CHOICE)\n\t\t\t\t{\n\t\t\t\t\titem.options = item.options.split(\",\");\n\t\t\t\t\tif (item.options.length < 2)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow `at least two choices should be provided for choice item: ${item.itemText}`;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// turn the ticks and tickLabels into arrays, where applicable:\n\t\t\t\telse if (item.type === Form.Types.RATING || item.type === Form.Types.SLIDER)\n\t\t\t\t{\n\t\t\t\t\titem.ticks = item.ticks.split(\",\").map((_, t) => parseInt(t));\n\t\t\t\t\titem.tickLabels = (item.tickLabels.length > 0) ? item.tickLabels.split(\",\") : [];\n\t\t\t\t}\n\n\t\t\t\t// TODO\n\t\t\t\t// estimate potentially missing itemWidth or responseWidth\n\t\t\t\t// solve conflicts when itemWidth + responseWidth != 1\n\t\t\t}\n\n\t\t\t// check the layout:\n\t\t\tconst formLayouts = [\"HORIZ\", \"VERT\"];\n\t\t\tfor (const item of this._items)\n\t\t\t{\n\t\t\t\t// convert layout to upper case:\n\t\t\t\titem.layout = item.layout.toUpperCase();\n\n\t\t\t\t// check that the layout is valid:\n\t\t\t\tif (!formLayouts.includes(item.layout))\n\t\t\t\t{\n\t\t\t\t\tthrow `${item.layout} is not a valid layout for item: ${item.itemText}`;\n\t\t\t\t}\n\n\t\t\t\t// convert item layout to symbol:\n\t\t\t\titem.layout = (item.layout === \"HORIZ\") ? Form.Layout.HORIZONTAL : Form.Layout.VERTICAL;\n\t\t\t}\n\t\t}\n\t\tcatch (error)\n\t\t{\n\t\t\t// throw { ...response, error };\n\t\t\tthrow Object.assign(response, { error });\n\t\t}\n\t}", "function prepareRequest(request, handler, context) {\n\n // Default to GET if no method has been specified.\n if (!request.method) {\n request.method = \"GET\";\n }\n\n if (!request.headers) {\n request.headers = {};\n } else {\n normalizeHeaders(request.headers);\n }\n\n if (request.headers.Accept === undefined) {\n request.headers.Accept = handler.accept;\n }\n\n if (assigned(request.data) && request.body === undefined) {\n handler.write(request, context);\n }\n\n if (!assigned(request.headers[\"OData-MaxVersion\"])) {\n request.headers[\"OData-MaxVersion\"] = handler.maxDataServiceVersion || \"4.0\";\n }\n\n if (request.async === undefined) {\n request.async = true;\n }\n\n}", "function normalizeStyleData(data) {\n var style = normalizeStyleBinding(data.style); // static style is pre-processed into an object during compilation\n // and is always a fresh object, so it's safe to merge into it\n\n return data.staticStyle ? extend(data.staticStyle, style) : style;\n } // normalize possible array / string values into Object", "function normalizeRequest (request) {\n\n var url = request.url,\n referer = request.headers.referer,\n host = request.headers.host,\n\n staticPath = (function () {\n\n var staticPath = ['index'];\n\n if (referer) {\n\n staticPath = referer.split(host + '/').pop().split('/');\n\n if (staticPath[0] === '') {\n staticPath = ['index'];\n }\n\n }\n\n return staticPath;\n\n }()),\n\n /*\n (notice how the referer has /index and the url does not)\n\n URL (STATIC FILE) = /admin/login/general.js\n REFERER = www.example.com/admin/login/index\n HOST = www.example.com\n STATICPATH = www.example.com/admin/login/index -> /admin/login/index\n STATICRESOURCE = /admin/login/index -> /admin/login -> URL.split(/admin/login) -> /general.js\n\n ONLY static file requests have a referer property, which gives us the URL the file was requested from.\n */\n transformedUrl = url.split('/').splice(1, url.length - 1),\n /*\n This gives us everything following the host\n */\n staticResource = (function (staticPath) {\n /*\n If the static path ends with 'index', then we remove it because\n browsers will automatically truncate any URL with 'index' as the final\n string after the last '/'. Therefore, we want to get the URL of the\n static file.\n */\n var result;\n\n if (staticPath[staticPath.length - 1] === 'index') {\n staticPath.pop();\n result = url.split(staticPath.join('/') + '/').pop();\n staticPath.push('index');\n return result;\n } else {\n return url.split([staticPath[0]].join('/') + '/').pop();\n }\n\n }(staticPath)),\n\n config = {\n\n 'module' : transformedUrl[0] || 'index',\n 'controller' : transformedUrl[1] || 'index',\n 'action' : transformedUrl[2] || 'index',\n 'type' : 'text/html',\n 'staticPath' : staticPath,\n 'staticResource': staticResource,\n 'app' : true\n\n };\n\n console.log('\\n---------------------------------------------------------\\n');\n console.log('URL : ' + url);\n console.log('REFERER : ' + referer);\n console.log('HOST : ' + host);\n console.log('STATIC_PATH : ' + staticPath);\n console.log('STATIC_RESOURCE : ' + staticResource);\n\n if (url.indexOf('.js') !== -1) {\n return normalizeJS(request, config);\n }\n\n if (url.indexOf('.css') !== -1) {\n return normalizeCSS(request, config);\n }\n\n if ( url.indexOf('.png') !== -1 ||\n url.indexOf('.jpg') !== -1 ||\n url.indexOf('.jpeg') !== -1) {\n\n return normalizeIMG(request, config);\n\n }\n\n if (url.indexOf('.mp3') !== -1) {\n return normalizeMP3(request, config);\n }\n\n if (url.indexOf('.ogg') !== -1) {\n return normalizeOGG(request, config);\n }\n\n if (url.indexOf('.ico') !== -1) {\n\n if (staticPath) {\n config.path = './' + config.module;\n config.controller = undefined;\n config.action = undefined;\n config.type = 'image/x-icon';\n config.app = false;\n }\n return config;\n }\n\n\n // If the request isn't for a static file, then it must be a controller...\n config.path = '/' + config.module + '/controllers/' + config.controller + 'Controller.js';\n\n return config;\n\n}", "function normalizeData(data, dataType) {\n var score = 0;\n \n switch (dataType) {\n case 'Viewers':\n // 100 viewers seems reasonable for comparing random streams\n score = data / 100;\n break;\n case 'FPS':\n // 60 fps is the obvious choice\n score = data / 60;\n break;\n case 'Resolution':\n // 1080p resolution is the best\n score = data / 1080;\n break;\n case 'Duration':\n // 3 hour stream duration for maximum points\n var hour = 60 * 60 * 1000;\n var duration = (new Date()).getTime() - Date.parse(data);\n data = duration / hour;\n score = duration / (3 * hour);\n break;\n case 'Star Power':\n // Random value between [0,1) (I needed a 5th stat)\n score = Math.random();\n data = score;\n break; \n case 'Views':\n // Page views are relatively easy to get\n score = data / 10000;\n break; \n case 'Followers':\n // By contrast, followers are much more difficult\n score = data / 1000;\n break;\n default:\n score = 0;\n break;\n }\n \n // Scale the score to [.5,5]\n score *= 5;\n if (score > 5)\n score = 5;\n else if (score < .5)\n score = .5; \n \n return {\n score: Math.round(score * 100) / 100,\n grade: grades[Math.floor(score)],\n label: dataType,\n initialValue: Math.round(data * 100) / 100\n };\n }", "function clean(input) {\n return Array.isArray(input) ? cleanArray(input) : cleanObject(input);\n}", "function clean(input) {\n return Array.isArray(input) ? cleanArray(input) : cleanObject(input);\n}", "function clean(input) {\n return Array.isArray(input) ? cleanArray(input) : cleanObject(input);\n}", "function clean(input) {\n return Array.isArray(input) ? cleanArray(input) : cleanObject(input);\n}", "function clean(input) {\n return Array.isArray(input) ? cleanArray(input) : cleanObject(input);\n}", "function clean(input) {\n return Array.isArray(input) ? cleanArray(input) : cleanObject(input);\n}", "function clean(input) {\n return Array.isArray(input) ? cleanArray(input) : cleanObject(input);\n}", "downgradeFilterExpressionsToInputData(variable, inputData) {\n if (inputData.hasOwnProperty('getFilterFields')) {\n inputData = inputData.getFilterFields();\n }\n _.forEach(inputData.rules, function (ruleObj) {\n if (!_.isNil(ruleObj.target) && ruleObj.target !== '') {\n inputData[ruleObj.target] = {\n 'value': ruleObj.value,\n 'matchMode': ruleObj.matchMode\n };\n }\n });\n return inputData;\n }", "cleanEmptyLeaves() {\n var body = this.getSearch().request;\n for( var key in body ) {\n if( typeof body[key] === 'object' ) {\n this._cleanEmptyLeaves(body, key);\n }\n }\n }", "normalized() {\n return this.clone().normalize();\n }", "function preprocess(input_file, output_file) {\n\n var jsonData = JSON.parse(Fs.readFileSync(input_file, \"UTF-8\"));\n\n var normalizedData = normalizeAttribute( jsonData, [\"id\", \"_id\"], \"identifier\");\n normalizedData = normalizeAttribute( normalizedData, [\"type\"], \"chcs_type\");\n\n Fs.writeFileSync(output_file, JSON.stringify(normalizedData, null, 2));\n return output_file;\n}", "function processRequest(dataToParse) {\n //let body = dataToParse['data']; \n let responseJSON = filterJSONResponse(responseJSON);\n return (JSON.stringify(responseJSON, null, ' '));\n}", "function normalizeEvent(event) {\n var defaultPrevented = false;\n var propagationStopped = false;\n var nativePreventDefault = event.preventDefault;\n var nativeStopPropagation = event.stopPropagation;\n event.nativeEvent = event;\n\n event.persist = function () {};\n\n function preventDefault() {\n nativePreventDefault.call(event);\n defaultPrevented = true;\n Object.defineProperty(event, 'defaultPrevented', {\n value: true\n });\n }\n\n Object.defineProperty(event, 'preventDefault', {\n configurable: true,\n value: preventDefault\n });\n\n function stopPropagation() {\n nativeStopPropagation.call(event);\n propagationStopped = true;\n }\n\n Object.defineProperty(event, 'stopPropagation', {\n configurable: true,\n value: stopPropagation\n });\n\n event.isDefaultPrevented = function () {\n return defaultPrevented;\n };\n\n event.isPropagationStopped = function () {\n return propagationStopped;\n };\n\n return event;\n}", "function normalizeHeaders(headers) {\n var h = {};\n for(var key in headers) {\n h[key.toLowerCase()] = headers[key];\n }\n return h;\n }", "function normalizeHeaders(headers) {\n var h = {};\n for(var key in headers) {\n h[key.toLowerCase()] = headers[key];\n }\n return h;\n }", "function normalize(obj) {\n if(!obj) return;\n\n if(obj._id) {\n obj.id = obj._id.toString();\n delete obj._id;\n }\n\n return obj;\n}", "function normalizeStyleData(data) {\n var style = normalizeStyleBinding(data.style); // static style is pre-processed into an object during compilation\n // and is always a fresh object, so it's safe to merge into it\n\n return data.staticStyle ? extend(data.staticStyle, style) : style;\n} // normalize possible array / string values into Object", "function normalizeStyleData(data) {\n var style = normalizeStyleBinding(data.style); // static style is pre-processed into an object during compilation\n // and is always a fresh object, so it's safe to merge into it\n\n return data.staticStyle ? extend(data.staticStyle, style) : style;\n} // normalize possible array / string values into Object", "function normalizeStyleData(data) {\n var style = normalizeStyleBinding(data.style); // static style is pre-processed into an object during compilation\n // and is always a fresh object, so it's safe to merge into it\n\n return data.staticStyle ? extend(data.staticStyle, style) : style;\n} // normalize possible array / string values into Object", "function normalizeStyleData(data) {\n var style = normalizeStyleBinding(data.style); // static style is pre-processed into an object during compilation\n // and is always a fresh object, so it's safe to merge into it\n\n return data.staticStyle ? extend(data.staticStyle, style) : style;\n} // normalize possible array / string values into Object", "function normalizeStyleData(data) {\n var style = normalizeStyleBinding(data.style); // static style is pre-processed into an object during compilation\n // and is always a fresh object, so it's safe to merge into it\n\n return data.staticStyle ? extend(data.staticStyle, style) : style;\n} // normalize possible array / string values into Object", "function processKeys(source) {\n if (_.isObject(source)) {\n Object.keys(source).forEach(function(key) {\n\n if (key === 'total' || key === 'last_page_uri' || key === 'num_pages') {\n delete source[key];\n }\n\n //Supplement underscore values with camel-case\n if (key.indexOf('_') > 0) {\n var cc = key.replace(/_([a-z])/g, function (g) {\n return g[1].toUpperCase()\n });\n source[cc] = source[key];\n }\n\n //process any nested arrays...\n if (Array.isArray(source[key])) {\n source[key].forEach(processKeys);\n }\n else if (_.isObject(source[key])) {\n processKeys(source[key]);\n }\n });\n\n //Look for and convert date strings for specific keys\n ['startDate', 'endDate', 'dateCreated', 'dateUpdated', 'startTime', 'endTime', 'dateSent'].forEach(function(dateKey) {\n if (source[dateKey]) {\n source[dateKey] = new Date(source[dateKey]);\n }\n });\n }\n}", "normalize(typeClass, hash) {\n return this.mungePayload(hash);\n }", "_normalizeResponse(response_text) {\n if (typeof response_text !== 'string') {\n // If the query short-circuits, we receive an empty list instead of a string\n return response_text;\n }\n const data = JSON.parse(response_text);\n return data.data;\n }", "normalize(value) {\n\t\tif (!FormatUtils.isNumber(value) && !FormatUtils.canBeNumber(value)) \n\t\t\treturn null;\n\n\t\tvalue = Number(value);\n\t\tlet normalized = null;\n\t\tif (this.isInBounds(value))\n\t\t\tnormalized = (value - this.#min) / this.#range; \n\n\t\treturn normalized;\n\t}", "function normalizeItem(item) {\n item = fillInMissingLocales(item);\n\n\n return item;\n }", "function normalizeData(raw) {\n var data = {\n fields: {}\n };\n if (raw.errors) {\n for (var field in raw.errors) {\n if (raw.errors.hasOwnProperty(field)) {\n data.fields[field] = {\n type: raw.errors[field].kind,\n message: raw.errors[field].message\n };\n }\n }\n }\n return data;\n}", "function normalizeAnswers(data) {\n\treturn data.toString().toLowerCase()\n}", "normalize() {\n this._lines = this._lines.map(line => line.trim().replace(/\\s+/g, ' '));\n }", "function normalizeTime() {\n eventData.forEach(event => {\n event.date = (new Date(event.date)).getTime();\n });\n}", "adjust(aData, aManipulationObject) {\n\t\t//console.log(\"wprr/manipulation/adjustfunctions/control/loader/TriggerUrlRequest::adjust\");\n\t\t\n\t\t//MENOTE: do nothing\n\t\t\n\t\treturn aData;\n\t}", "function prepareAjaxRequestData() {\n this.emit('ajaxable:on-ajax-before', this.options.ajaxData);\n}", "function normalizeEvent(event, depth, maxBreadth) {\n if (!event) {\n return null;\n }\n\n const normalized = {\n ...event,\n ...(event.breadcrumbs && {\n breadcrumbs: event.breadcrumbs.map(b => ({\n ...b,\n ...(b.data && {\n data: normalize(b.data, depth, maxBreadth),\n }),\n })),\n }),\n ...(event.user && {\n user: normalize(event.user, depth, maxBreadth),\n }),\n ...(event.contexts && {\n contexts: normalize(event.contexts, depth, maxBreadth),\n }),\n ...(event.extra && {\n extra: normalize(event.extra, depth, maxBreadth),\n }),\n };\n\n // event.contexts.trace stores information about a Transaction. Similarly,\n // event.spans[] stores information about child Spans. Given that a\n // Transaction is conceptually a Span, normalization should apply to both\n // Transactions and Spans consistently.\n // For now the decision is to skip normalization of Transactions and Spans,\n // so this block overwrites the normalized event to add back the original\n // Transaction information prior to normalization.\n if (event.contexts && event.contexts.trace && normalized.contexts) {\n normalized.contexts.trace = event.contexts.trace;\n\n // event.contexts.trace.data may contain circular/dangerous data so we need to normalize it\n if (event.contexts.trace.data) {\n normalized.contexts.trace.data = normalize(event.contexts.trace.data, depth, maxBreadth);\n }\n }\n\n // event.spans[].data may contain circular/dangerous data so we need to normalize it\n if (event.spans) {\n normalized.spans = event.spans.map(span => {\n // We cannot use the spread operator here because `toJSON` on `span` is non-enumerable\n if (span.data) {\n span.data = normalize(span.data, depth, maxBreadth);\n }\n return span;\n });\n }\n\n return normalized;\n}", "function normalizeDataItem(data,fieldName)\n{\n var returnArray = []; // empty array returned for no field or null value\n\n // make sure the target field exists and is non-null\n\n if(data.hasOwnProperty(fieldName) && data[fieldName] !== null) {\n\n\t// check to see if it is an object (multiple values)\n\t// (normally you'd need to check for null, because null also has typeof 'object'\n\t// but we already checked for null above)\n\t\n\tif(typeof data[fieldName] === 'object') {\n\t for(var prop in data[fieldName]) {\n\t\tif(data[fieldName].hasOwnProperty(prop)) {\n\t\t returnArray.push(data[fieldName][prop]);\n\t\t}\n\t }\n\t} else {\n\t returnArray.push(data[fieldName]); \t // single value\n\t}\n }\n return(returnArray);\n}", "function normalize(result) {\n return {\n relevance: result.relevance || 0,\n language: result.language || null,\n value: result.value || []\n }\n}", "function normalize(result) {\n return {\n relevance: result.relevance || 0,\n language: result.language || null,\n value: result.value || []\n };\n}", "function normalizeFields() {\n const sendInput = document.getElementById(\"send-input\");\n var sendVal = sendInput.value;\n if (sendVal != \"\") {\n sendVal = parseFloat(sendVal);\n sendInput.value = sendVal < 0 ? \"\" : sendVal.toFixed(2);\n }\n\n const recvInput = document.getElementById(\"received-input\");\n var recvVal = recvInput.value;\n if (recvVal != \"\") {\n recvVal = parseFloat(recvVal);\n recvInput.value = recvVal < 0 ? \"\" : recvVal.toFixed(2);\n }\n}", "function normalize(obj) {\n const {_id, ...res} = obj;\n return res;\n}", "function normalizeWordpress(data) {\n return (0, _applyToOneOrMany.default)(_normalizeWordpressPost, data);\n}", "function upcastShellTransformToArray (request) {\n (request.stubs || []).forEach(stub => {\n (stub.responses || []).forEach(response => {\n if (response._behaviors && response._behaviors.shellTransform &&\n typeof response._behaviors.shellTransform === 'string') {\n response._behaviors.shellTransform = [response._behaviors.shellTransform];\n }\n });\n });\n}", "function normalizeStyleData (data) {\n\t var style = normalizeStyleBinding(data.style);\n\t // static style is pre-processed into an object during compilation\n\t // and is always a fresh object, so it's safe to merge into it\n\t return data.staticStyle\n\t ? extend(data.staticStyle, style)\n\t : style\n\t}", "function normalizeStyleData (data) {\n\t var style = normalizeStyleBinding(data.style);\n\t // static style is pre-processed into an object during compilation\n\t // and is always a fresh object, so it's safe to merge into it\n\t return data.staticStyle\n\t ? extend(data.staticStyle, style)\n\t : style\n\t}", "function normalizeStyleData (data) {\n\t var style = normalizeStyleBinding(data.style);\n\t // static style is pre-processed into an object during compilation\n\t // and is always a fresh object, so it's safe to merge into it\n\t return data.staticStyle\n\t ? extend(data.staticStyle, style)\n\t : style\n\t}" ]
[ "0.65899986", "0.63519746", "0.63153577", "0.6311833", "0.6121214", "0.60882616", "0.5803269", "0.5741578", "0.56778985", "0.5576039", "0.547102", "0.5451973", "0.54297554", "0.5427569", "0.5414031", "0.53950083", "0.5372084", "0.53426385", "0.53074175", "0.5293618", "0.5293618", "0.52876544", "0.52848923", "0.5283873", "0.5277769", "0.5260643", "0.52400964", "0.52281725", "0.52281725", "0.52231425", "0.5171187", "0.515206", "0.5123235", "0.5115995", "0.5107408", "0.51003605", "0.5097182", "0.50858384", "0.50455374", "0.5029494", "0.5018274", "0.5016796", "0.50058967", "0.50058", "0.498044", "0.49784228", "0.49745995", "0.4957177", "0.4925869", "0.49174958", "0.49085346", "0.49085346", "0.49013212", "0.48995253", "0.48990396", "0.48990193", "0.48981383", "0.4896009", "0.48796657", "0.48796657", "0.48796657", "0.48796657", "0.48796657", "0.48796657", "0.48796657", "0.48772272", "0.4868834", "0.4868221", "0.4863062", "0.4859161", "0.4845554", "0.48404297", "0.48404297", "0.48215842", "0.48209658", "0.48209658", "0.48209658", "0.48209658", "0.48209658", "0.48204753", "0.48105696", "0.4810063", "0.48022306", "0.4788854", "0.47882798", "0.4779015", "0.47765663", "0.47651586", "0.47597095", "0.4750297", "0.47443604", "0.47423103", "0.47357878", "0.47313115", "0.47290626", "0.47241455", "0.47223517", "0.47189716", "0.47122976", "0.47122976", "0.47122976" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function RadiusAxis(scale, radiusExtent) { Axis.call(this, 'radius', scale, radiusExtent); /** * Axis type * - 'category' * - 'value' * - 'time' * - 'log' * @type {string} */ this.type = 'category'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "started () {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "function SigV4Utils() { }", "started() {\r\n\r\n\t}", "static get NOT_READY () {return 0}", "initialize() {\n\n }", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "function getImplementation( cb ){\n\n }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "heartbeat () {\n }", "static final private internal function m106() {}", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "get WSAPlayerX64() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }" ]
[ "0.53504926", "0.4896905", "0.48514667", "0.48116106", "0.4775166", "0.4743932", "0.47342455", "0.47035336", "0.4694186", "0.4694186", "0.46744877", "0.46453032", "0.46394095", "0.4629355", "0.46211302", "0.45832416", "0.45812932", "0.45752546", "0.45698234", "0.45625272", "0.4557475", "0.4549714", "0.45494938", "0.4545794", "0.45383474", "0.4523037", "0.45180768", "0.45005357", "0.4496748", "0.4486438", "0.447462", "0.44716924", "0.4468301", "0.44601226", "0.4456266", "0.4455926", "0.44557476", "0.4445067", "0.44378054", "0.44258687", "0.44258553", "0.4424118", "0.44097725", "0.4406038", "0.4404498", "0.4404498", "0.4404498", "0.43926418", "0.43781474", "0.43708664", "0.43657827", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43526813", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4349645", "0.43450522", "0.43440443", "0.43390423", "0.43347356", "0.43347356", "0.43332103", "0.43318707" ]
0.0
-1
all visuals should be in original state.
function brushed(rangeInfoList) { return !!rangeInfoList.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setVisual () {\n window.cancelAnimationFrame(drawVisual)\n visualize()\n }", "resetLayers() {\n this.underlays = [];\n this.layersContainers.forEach((container) => {\n container.innerHTML = '';\n });\n }", "reset() {\n this.alpha = 0;\n this.y = 0;\n }", "function vizToggleCleanup(){\n setRangeSliderThumbOpacity();\n layerObj[id].visible = layer.visible;\n layerObj[id].opacity = layer.opacity;\n }", "function clear() {\n contentVeil.reset();\n contentVeil.hide();\n removePreviewLegend();\n unwrapInterestingRange();\n }", "reset() {\n this.parts.forEach((part) => part.setVisible(false));\n this.visibleIndex = -1;\n }", "function reset(){\n stage.removeAllChildren();\n clickCount = 0;\n coordinates = [];\n centroid = [];\n stage.update();\n} //End of function", "function resetGraph() {\n if (addedEdges.length !== 0) {\n addedEdges.forEach(edge => filteredGraph.remove(edge))\n\n addedEdges = []\n }\n\n removedEdgesSet = null\n filteredGraph.edgePredicateChanged()\n\n filteredGraph.edges.forEach(edge => filteredGraph.setStyle(edge, normalEdgeStyle))\n\n filteredGraph.nodes.forEach(node => (node.tag.highlight = false))\n}", "function reset(){\n\t\tsetSorting(false);\n\t\t// setDataBottom(new Array(rectNum).fill(new Rect(0,Math.round(maxWidth/rectNum),0)));\n\t\tsetLightUp([]);\n\t\t// setLightUpBottom([]);\n\n\t}", "function resetGraphValuesBeforeRendering (){\n listOfAllGraphElements = [];\n remainingGraphsForAdding = [];\n clearInterval(graphsRenderedInterval);\n graphsRenderedInterval = null;\n }", "applyChanges() {\n if (this.renderMode !== 'svg') return;\n this.model.selection.view.applyChanges();\n this.model.focus.timeline.activeFrames.forEach(frame => {\n frame.view.applyChanges();\n });\n }", "_restoreFromMinimization() {\n const that = this;\n\n that.minimized = false;\n that.style.width = that.style.height = that.style.top = that.style.left = '';\n\n //Re-arrange the rest of the minimized windows\n that._refreshMinimizedWindowsPosition();\n }", "function reset () {\n shuffledArray = visualizer.getRandomArray();\n visualizer.drawArray(shuffledArray);\n}", "updateVisuals() {\r\n\t\tthis.props.updateVisuals()\r\n\t\tthis.animationFrameRequest = window.requestAnimationFrame(this.updateVisuals)\r\n\t}", "function clearVisual(gfx) {\n\n var oldVisual = gfx.select('.djs-visual');\n\n var newVisual = gfx.group().addClass('djs-visual').before(oldVisual);\n\n oldVisual.remove();\n\n return newVisual;\n}", "resetInteracts() {\n let i;\n for (i = 0; i < this._objects.intersects.length; i++) {\n this._objects.intersects[i].material.color.setHex(this._objects.intersects[i].originalColor);\n }\n }", "function clearVisuals() {\n tabBtns.forEach((tab) => {\n tab.classList.remove(\"selected\");\n });\n hrtab.classList.add(\"hidden\");\n wktab.classList.add(\"hidden\");\n settingstab.classList.add(\"hidden\");\n}", "function reset() {\n $('header, footer').addClass('active');\n card.removeClass('active');\n planets.classed('inactive', false);\n active.classed('active', false);\n active = d3.select(null);\n\n svg.transition()\n .duration(750)\n .call(zoom.transform, initialTransform);\n }", "reset() {\n _.each(this.indicators, (ind) => {\n _.each(ind.getShapes(), (shape) => _.pull(this.shapes, shape));\n });\n this.indicators = [];\n\n this.topLeftUI.setLandingInfoDisplayed(true);\n this.message.setVisible(false);\n }", "reset(){\n this.buffer = []\n this.svg.selectAll('*').remove()\n this.setup()\n }", "function restoreDom(all) {\n for (var i = 0; i < all.length; i++) {\n all[i].paintItem();\n if (all[i].children.length) {\n restoreDom(all[i].children);\n }\n }\n }", "resetStyles () {\n\t\tthis.selection\n\t\t\t.attr('data-rel', '')\n\t\t\t.attr('data-hidden', '')\n\t}", "Reset() {\n this.translation = this.originalTranslation.Clone();\n this.rotationInRadians = this.originalRotationInRadians;\n this.scale = this.originalScale.Clone();\n this.origin = this.originalOrigin.Clone();\n this.dimensions = this.originalDimensions.Clone();\n this.isDirty = true;\n }", "function clearDrawings() {\n if ($(\"#drawing_pen\").hasClass(\"pen_image_selected\")) {\n handleOpenPen();\n }\n if ($(\"#drawing_eraser\").hasClass(\"eraser_image_selected\"))\n {\n handleOpenEraser();\n }\n p = 0;\n $(\".pick_color\").removeClass(\"hover_class\");\n\n for (var count = 2; count > 0; count--) {\n wrapper.uncache();\n wrapper.cache(30, 90, cm_width, cm_height);\n stage.addChild(wrapper);\n var u = 0;\n while (penArray.length > 0) {\n //console.log(penArray.length);\n // console.log(u);\n var x = penArray.slice().reverse()[u].visible;\n //console.log(x);\n if (x == true && u <= penArray.length) {\n // console.log(\"pen array length\" + penArray.length);\n penArray.slice().reverse()[u].visible = false;\n // console.log(\"in false loop \" + u);\n stage.update();\n //break;\n }\n penArray.pop();\n stage.update();\n }\n }\n $(\"#top_menu_overlay\").css(\"display\", \"none\");\n removeEventLiserners(stage);\n //stage.update();\n //console.log(stage);\n $('#clean-line-message').dialog('close');\n // multiSelection();\n //mouseDownAtEmpty();\n }", "reset() {\n\t\tvar notes = this.notetrack.notes;\n\t\tfor (var k = 0; k < notes.length; k++) {\n\t\t\tfor (var n = 0; n < notes[k].length; n++) {\n\t\t\t\tvar note = notes[k][n];\n\t\t\t\t\n\t\t\t\t// reset graphics\n\t\t\t\tnote.gfxObj.resetGfx();\n\t\t\t\t// reset note data\n\t\t\t\tnote.resetState();\n\t\t\t}\n\t\t}\n\t\tvar mines = this.notetrack.mines;\n\t\tfor (var k = 0; k < mines.length; k++) {\n\t\t\tfor (var n = 0; n < mines[k].length; n++) {\n\t\t\t\tvar mine = mines[k][n];\n\t\t\t\t\n\t\t\t\t// reset graphics\n\t\t\t\tmine.gfxObj.visible = true;\n\t\t\t\t// reset note data\n\t\t\t\tmine.resetState();\n\t\t\t}\n\t\t}\n\t}", "function resetCan() {\n clear();\n curr = make2DArr(width, height);\n prev = make2DArr(width, height);\n background(0);\n}", "reset() {\n this.dataset = [];\n this.svg.selectAll(\"circle\").remove();\n this.svg.selectAll(\"g\").remove();\n $(\"#metrics\").removeClass(\"visible\").addClass(\"invisible\");\n }", "function reset()\n{\n\tleftDrop.setFill(\"\");\n\trightDrop.setFill(\"\");\n\tevalCircle.setFill(\"\");\n\n\tresetXY();\n\tlayer.draw();\n}", "function resetAll() {\n\n //reset scale\n\n $(\".zoomUnit\").text(\"1\");\n scaling.domain([0, sequence.length - 1]);\n scalingPosition.range([0, sequence.length - 1]);\n var seq = displaySequence(sequence.length);\n\n if (seq === false && !svgContainer.selectAll(\".AA\").empty()) svgContainer.selectAll(\".seqGroup\").remove();\n\n transition_data(features, 0);\n reset_axis();\n }", "function resetCanvasForUnseenShapes() {\n purgeCanvasMouseEvents(canvas);\n setDefaultCursorMode(canvas);\n assignDefaultEvents(canvas, null, false);\n}", "reset() {\n this.setObjectRenderer(this.emptyRenderer);\n }", "Clear( a_changed )\n {\n this.changed = false;\n this.indicator.style.backgroundColor = this.defaultBG;\n }", "function undo(){\n canvas.clear();\n canvas.loadFromJSON(tempDesign);\n canva.renderAll();\n }", "function resetClipBoard() {\n if (clipBoardAnnos.length > 0) {\n for (var i in clipBoardAnnos) {\n var e = SVG.get(clipBoardAnnos[i]);\n e.remove();\n }\n clipBoardAnnos = [];\n }\n}", "function updateReset() {\n d3.select(\"div.reset\")\n .style(\"opacity\", function() {\n if (filtered) {\n return 1;\n } else {\n return 0.4;\n }\n })\n .style(\"width\", function() {\n if (filtered) {\n return \"60px\";\n } else {\n return \"35px\";\n }\n })\n }", "resetPlaneStacks() {\n // clear the plane stacks\n this.stacks.opaque = {\n length: 0,\n programs: [],\n order: [],\n };\n\n this.stacks.transparent = {\n length: 0,\n programs: [],\n order: [],\n };\n\n // rebuild them with the new plane indexes\n for(let i = 0; i < this.renderer.planes.length; i++) {\n this.addPlane(this.renderer.planes[i]);\n }\n }", "function removeVisualizations() {\n _removeSpellingVisualization();\n _removeGrammarVisualization();\n }", "async redrawAll() {\n await this.setState({ redraw: !this.state.redraw })\n await this.setState({ redraw: !this.state.redraw })\n }", "static redraw() {\n let i = 0;\n let s = SmartCanvas.collection.length;\n\n for (; i < s; i++) {\n SmartCanvas.collection[i].redraw();\n }\n }", "reset() {\n Utils.deepCopyProperties(this, defaultStyle, defaultStyle);\n }", "function resetCanvas() {\n for (let i = 0; i < canvasData.length; i++) {\n canvasData[i] = defaultColor;\n dirtyIndices.push(i);\n }\n}", "reset() {\n this.domSquares.forEach(square => {\n this.setSquare(square, '');\n });\n }", "reset() {\n const self = this;\n this.updateDimensions(self);\n }", "function resetGraph() {\n\tJXG.JSXGraph.freeBoard(board);\n\tboard = JXG.JSXGraph.initBoard('box', {\n\t\tboundingbox : [-5, 8, 8, -5],\n\t\taxis : true,\n\t\tzoomfactor : 0.8,\n\t\tshowCopyright : false\n\t});\n\ttraceAvecP();\n}", "reset(){\n this.vertices.forEach(vertex => {\n vertex.color = 'w';\n vertex.isWall = false;\n vertex.distance = Number.MAX_SAFE_INTEGER;\n vertex.parent = null;\n });\n }", "reset() {\n this.makeNormal();\n this.lighten();\n }", "function clearAllFilters() { \n console.log('clearing all filters.');\n \n //set show options to default\n showSaccades(false);\n showConvexhull(false);\n\n //changes actual value of sliders\n d3.select(\"#pupilSlider\").attr(\"value\", 0);\n d3.select(\"#durationSlider\").attr(\"value\", 0);\n //changes the view of sliders\n $(\"#pupilSlider\").val(0);\n $(\"#durationSlider\").val(0);\n\n //show all plots evenly\n svg.selectAll('circle')\n .style('opacity', basicOpacity);\n\n //TODO: Clear the marks on the legend sliders\n}", "function reset(){\n $('#selection-area').empty();\n $('#species-info').empty().css('background-color', panelColor);\n $('#last-dropdown-area').empty();\n $('.counties').css('fill', mapColor);\n $('.labels').css('fill', panelColor);\n }", "function clearIt() {\n\tPlotly.newPlot(visDiv, [{\n\t\ty: [],\n\t\ttype: 'scattergl',\n\t\tmode: 'lines',\n\t\tline: { color: '#00f' },\n\t\tname: 'Vis'\n\t}], { title: 'Visual Light' });\n\tPlotly.newPlot(irDiv, [{\n\t\ty: [],\n\t\ttype: 'scattergl',\n\t\tmode: 'lines',\n\t\tline: { color: '#f00' },\n\t\tname: 'IR'\n\t}], { title: 'Infra red Light' });\n\n\tPlotly.newPlot(ps1Div, [{\n\t\ty: [],\n\t\ttype: 'scattergl',\n\t\tmode: 'lines',\n\t\tline: { color: '#f00' },\n\t\tname: 'PS1'\n\t}], { title: 'Proximity 1' });\n\tPlotly.newPlot(ps2Div, [{\n\t\ty: [],\n\t\ttype: 'scattergl',\n\t\tmode: 'lines',\n\t\tline: { color: '#0f0' },\n\t\tname: 'PS2'\n\t}], { title: 'Proximity 2' });\n\tPlotly.newPlot(ps3Div, [{\n\t\ty: [],\n\t\ttype: 'scattergl',\n\t\tmode: 'lines',\n\t\tline: { color: '#00f' },\n\t\tname: 'PS3'\n\t}], { title: 'Proximity 3' });\n}", "function defaultView(){\n\tconsole.log('default view');\n\td3.selectAll('.buttonDiv').classed('buttonClicked', false);\n\td3.selectAll('.buttonDiv').classed('buttonHover', true);\n\td3.selectAll('#resetButton').classed('buttonClicked', true);\n\td3.selectAll('#resetButton').classed('buttonHover', false);\n\n\tshowHemiSpheres(true);\n\tchangeSphereOpacity(params.defaultOuterOpacity);\n\tshowSliceMesh(false);\n\tif (params.isSparse){\n\t\tchangeSphereScale(1./params.sparseScale);\n\t}\n\n\tparams.isSparse = false;\n\tparams.defaultViewTween.start();\n\n}", "function resetOthers() {\n targets = $(anchors[data.index].els);\n others = data.slides.not(targets);\n if (animation !== 'slide') resetConfig.visibility = 'hidden';\n tram(others).set(resetConfig);\n }", "revealAll() {\n\t\tthis.#hiddenLevels.fill(DomainPruner.#UNHIDDEN);\n\t\tthis.#hiddenSize = 0;\n\t}", "flattenVisible() {\n EventBus.$emit(\"try-flatten-visible-layers\");\n }", "function reset(){\n\tpause();\n\tif( bodies.map(function(body){ body.revertToInitialConditions(); }) ){\n\t\t// ensures redraw doesn't start until all bodies have reset their conditions\n\t\tredrawCanvas();\n\t}\n}", "updateLayer() {\n /* This layer is always reloaded */\n return;\n }", "reset() {\n this.modified = false;\n }", "function ResetHighlightedKws() {\n for (var i = 0; i < HighlightedKws.length; i++) {\n var highlightedkw = HighlightedKws[i];\n highlightedkw.setTextFill(highlightedkw.origColor);\n var layer = highlightedkw.parent;\n layer.draw();\n }\n HighlightedKws = [];\n }", "function resetOldStyles() {\n if (lastElem) {\n setStyleList(lastElem, lastElemStyle);\n lastElem = null;\n lastElemStyle = null;\n }\n}", "function reset() {\n magic.style.display = 'block';\n magic.style.visibility = 'visible';\n}", "function metropolisReset () {metropolisInit(); redraw;}", "function refreshDisplayNoOver() {\n p.getBubbleDrawer().clear();\n drawScales();\n p.getBubbleDrawer().drawDate(year.current);\n drawBubbles();\n drawBubblesNames();\n p.getBubbleDrawer().display();\n}", "function resetOthers() {\r\n\t targets = $(anchors[data.index].els);\r\n\t others = data.slides.not(targets);\r\n\t if (animation !== 'slide') resetConfig.visibility = 'hidden';\r\n\t tram(others).set(resetConfig);\r\n\t }", "function resetViews() {\n\tstepSize = 1;\n\tmotherEye = [ 80, 20, 80 ];\n\tmotherEyeCopy = [ 80, 20, 80 ];\n\tmotherUp = [ 0, 1, 0 ];\n\tmotherLookAt = {x:0,y:0,z:0};\n\tscoutEye = [ 65, 20, 65 ];\n\tscoutEyeCopy = [ 65, 20, 65 ];\n\tscoutUp = [ 0, 1, 0 ];\n\tscoutLootAt = {x:0,y:0,z:0};\n\tmothership.rotation.x = 0;\n\tmothership.rotation.y = 45*(Math.PI/180);\n\tmothership.rotation.z = 0;\n\tscoutship.rotation.x = 0;\n\tscoutship.rotation.y = 45*(Math.PI/180);\n\tscoutship.rotation.z = 0;\n\ttraceDistance = [1,3,1];\n\tupdateGeoSyncLookAt(scene, true);\n}", "clear() {\n this.stop();\n this.scene.remove.apply(this.scene, this.scene.children);\n this.scene.background = null;\n this.mixers.splice(0, this.mixers.length);\n this.sceneMeshes.splice(0, this.sceneMeshes.length);\n $(\"#picker\").spectrum(\"hide\");\n }", "function reset() {\n gridPoints = []; // resets the gridPoints so that it clears the walls etc. on reset.\n gridPointsByPos = [];\n openSet.clear();\n closedSet.clear();\n gctx.clearRect(0, 0, CANVAS_WIDTH, CANVAS_HEIGHT);\n grid.createGrid();\n\n}", "function redrawAll() {\n redrawScaleBackground();\n redrawTimeCells();\n redrawTics();\n redrawSlider();\n resetHotSpots();\n // Make sure hot spots are in front.\n _leftHotSpot.toFront();\n _rightHotSpot.toFront();\n }", "function undo() {\n charaster.raster = rasterHistory.undo();\n charaster.gridHeight = charaster.raster.length;\n charaster.gridWidth = charaster.raster[0].length;\n charaster.drawAll();\n}", "function reset() {\n\t\tdrawSimpleBoard(board = new Board());\n}", "function resetAll() {\n\t\thideGraphs();\n\t\tmyTimer = setInterval(resetHideWait, 100);\n\t}", "function resetInfoPaneDisplay() {\n gees.dom.setClass('poly_button', '');\n gees.dom.setClass('hand_button', 'clicked_button');\n gees.dom.setClass('CutButtonBlue', 'button blue');\n}", "function reset() {\n for (var i = 0; i < allZoom.length; i++) {\n var zoom = allZoom[i];\n var svgGroup = allSVG[i];\n // console.log(data[i].transform);\n var transformFromCloud = getTransformObjectFromCloud(data[i].transform);\n if(transformFromCloud){\n zoom.translate([transformFromCloud.translatex, transformFromCloud.translatey]);\n zoom.scale(transformFromCloud.scale);\n }else{\n var transformFromCookie = getTransformObjectFromCookie(i);\n if(transformFromCookie){\n zoom.translate([transformFromCookie.translatex, transformFromCookie.translatey]);\n zoom.scale(transformFromCookie.scale);\n }else{\n zoom.scale(1);\n\n /* set default translate based on visualization type */\n if(d3.array) zoom.translate([20, 200]);\n if(d3.dllist || d3.sllist || d3.cdllist || d3.csllist){\n zoom.translate([50, -5]);\n zoom.scale(0.36);\n }\n else if(d3.bst) zoom.translate([(d3.select(\"#svg0\").attr(\"width\")/2), 0]);\n else zoom.translate([0, 0]);\n }\n }\n\n svgGroup.attr(\"transform\", \"translate(\" + zoom.translate() + \")scale(\" + zoom.scale() + \")\");\n }\n saveVisStatesAsCookies();\n}", "handleReset() {\n if(!solving) {\n resetStartEnd();\n grid = Array(800).fill(null);\n this.setState({squares: grid});\n for(let i = 0; i < 800; ++i) {\n document.getElementsByClassName('square')[i].style = 'background-color: white';\n }\n }\n }", "function reset(){\n\t\t\tconsole.log(\"reset\");\n\t\t// if this exists, destroy it?\n\t\t\t/**/if(svg){\n\t\t\t\td3.select(\"svg\").remove(); // remove old svg if it exists\n\t\t\t\tmyData.reset = true;\n\t\t\t}\n\t\t\t\n\t\t\twidth = $(\"#chart\").width() - margin.left - margin.right - 20,\n\t\t\theight = $(\"#chart\").height() - margin.top - margin.bottom - 100,\n\t\t\t//formatNumber = d3.format(\",d\"),\ttransitioning;\n\n\t\t\t/* reset x and y scales */\n\t\t\tx = d3.scale.linear()\n\t\t\t\t.domain([0, width])\n\t\t\t\t.range([0, width]);\n\n\t\t\ty = d3.scale.linear()\n\t\t\t\t.domain([0, height])\n\t\t\t\t.range([0, height]);\n\t\t\t\n\t\t\t\n\t\t\tmyData.x = myData.y = 0;\n\t\t\tmyData.dx = width;\n\t\t\tmyData.dy = height;\n\t\t\tmyData.depth = currentDepth;\n\t\t\tmyData.currentDepth = currentDepth;\n\t\t\t\n\t\t\tstage(myData);\n\t\t\tlayout(myData);\n\t\t\tdisplay(myData);\n\t\t\t\n\t\t}", "function reSetMarkers() {\n // if (myNewLayer != null) { // check for missing baseLayers\n hideAllInfoWindows();\n hideAllKiezatlasFeatures(); // and popups\n deSelectAllCategories();\n // }\n }", "_setInitialComponentDisplay() {\n const that = this;\n\n switch (that.scalePosition) {\n case 'near':\n that.$scaleNear.removeClass('jqx-hidden');\n that.$scaleFar.addClass('jqx-hidden');\n break;\n case 'far':\n that.$scaleNear.addClass('jqx-hidden');\n that.$scaleFar.removeClass('jqx-hidden');\n break;\n case 'both':\n that.$scaleFar.removeClass('jqx-hidden');\n that.$scaleNear.removeClass('jqx-hidden');\n break;\n case 'none':\n that.$scaleFar.addClass('jqx-hidden');\n that.$scaleNear.addClass('jqx-hidden');\n break;\n }\n that.$tooltip.addClass('jqx-hidden');\n\n if (that.ticksPosition === 'track') {\n that.$trackTicksContainer.removeClass('jqx-hidden');\n }\n }", "function resetGrid(){\n $('.box').css({'background-color': '#EDEDED'});\n $('.box').off();\n }", "function restoreDefault(){\n restoreDefaultScores();\n lizardLizard();\n $(\"#outcome\").empty();\n $(\"#reset-button\").empty().hide();\n $(\".btn-primary\").bind();\n $(\".btn-primary\").show();\n bindControls();\n}", "function reset() {\n svg2.transition().duration(750).call(\n zoom.transform,\n d3.zoomIdentity,\n d3.zoomTransform(svg.node()).invert([width / 2, height / 2])\n );\n // set transparency to 0 so that it looks like disappeared\n svg2.selectAll('path')\n .attr(\"fill-opacity\", 0)\n }", "fixViewStates() {\n ofAssoc(this.internalContext.getIf(Const_1.APPLIED_VST).orElse({}).value)\n .forEach(([, value]) => {\n const namingContainerId = this.internalContext.getIf(Const_1.NAMING_CONTAINER_ID);\n const namedViewRoot = !!this.internalContext.getIf(Const_1.NAMED_VIEWROOT).value;\n const affectedForms = this.getContainerForms(namingContainerId)\n .filter(affectedForm => this.isInExecuteOrRender(affectedForm));\n this.appendViewStateToForms(affectedForms, namedViewRoot, value.value, namingContainerId.orElse(\"\").value);\n });\n }", "static resetAllConnectionHighlighting() {\n const color = null;\n infrastructureModel.setAllConnectionColors(color);\n dataFlowModel.setAllConnectionColors(color);\n }", "redraw() {\n self.clear();\n self.draw();\n }", "function clearWorkspace() {\n setNodes([]);\n setLines([]);\n }", "redraw() {\n\t\tthis.scene.project.clear();\n\t\tthis.draw();\n\t}", "function resetStage() {\n btnReplay.classList.remove(\"is--active\");\n init();\n }", "function cleanUp() {\n\tfor (img of images) {\n\t\tif (selectedNodes.indexOf(img) <0) {\n\t\t\timg.style.opacity = \"0\";\n\t\t}\n\t}\n\tfor (img of images) {\n\timg.style.transition = \"all .8s ease-in\";\n\t}\n\tfor (img of selectedNodes) {\n\t\timg.style.left = \"50%\";\n\t\timg.classList.add(\"centered\");\n\t\tswitch (img.classList[2]) {\n\t\t\tcase \"top\":\n\t\t\t\timg.style.bottom = \"0\";\n\t\t\t\tbreak;\n\t\t\tcase \"bottom\":\n\t\t\t\timg.style.top = \"0\";\n\t\t\t\tbreak;\n\t\t}\n\t}\n}", "updated() {\n this.el.reset();\n }", "function removeAllLayers() {\n currentLayer = \"none\";\n map.removeLayer(otherLayer);\n map.removeLayer(todoLayer);\n map.removeLayer(foodLayer);\n map.removeLayer(shelterLayer);\n map.removeLayer(eventsLayer);\n }", "_revert() {\n this.get('_chart').revert();\n }", "function clearGraphics() {\n pointLayer.removeAll();\n bufferLayer.removeAll();\n }", "function resetStage() {\n //reset axis for both scale change\n drawAxis()\n\n //reset selected bubble path\n path = []\n $.each(selected.data[dx], function (i, d) {\n path.push({ 'x': x(d), 'y': y(selected.data[dy][i]), 'pos': i })\n })\n\n changeCameraPath()\n\n //input=-2 : the animation is paused\n setupSoloBackground()\n\n updateSence(-1)\n //updateSence(-2) will show the biggest bubble in view\n\n //move the label to the middle\n d3.select('#label-' + selected.id).style('text-anchor', 'middle').attr('x',0)\n}", "function backToNormal() {\n gPacman.isSuper = false;\n gGhosts.forEach(function changeBackColor(ghost, idx) {\n ghost.color = gOriginalColors[idx];\n })\n while (gGhosts.length < 3) {\n createGhost(gBoard);\n }\n}", "function ResetCanvas()\n{\n if(_horizScrollVisible)\n {\n var currentLeft = _horizThumb.style.left;\n var newLeft = 0;\n newLeft = Number(currentLeft.substr(0,currentLeft.length-2));\n MoveHorizontalThumb((-newLeft));\n }\n \n if(_verticalScrollVisible)\n {\n var currentTop = _verticalThumb.style.top;\n var newTop = 0;\n newTop = Number(currentTop.substr(0,currentTop.length-2));\n MoveVerticalThumb((-newTop));\n }\n\n LayerCollection = [];\n SelectedRectangle = undefined;\n CurrentLayer = undefined;\n _selectedRectOverlay = undefined;\n InitLayers();\n RefreshPropertyControls();\n RefreshRectangles();\n}", "reset() {\n var _this$_plugin$restore;\n\n this.removeAttribute(\"row-pivots\");\n this.removeAttribute(\"column-pivots\");\n this.removeAttribute(\"filters\");\n this.removeAttribute(\"sort\");\n this.removeAttribute(\"expressions\");\n\n if (this._initial_col_order) {\n this.setAttribute(\"columns\", JSON.stringify(this._initial_col_order));\n } else {\n this.removeAttribute(\"columns\");\n }\n\n this.setAttribute(\"plugin\", Object.keys(renderers.getInstance())[0]);\n (_this$_plugin$restore = this._plugin.restore) === null || _this$_plugin$restore === void 0 ? void 0 : _this$_plugin$restore.call(this, {});\n this.dispatchEvent(new Event(\"perspective-config-update\"));\n }", "function reset () {\n d3.select(\"g.counties\").remove();\n d3.select(\"g.clickState\").remove()\n d3.selectAll(\"path.countyLines\").remove();\n d3.selectAll(\"path.clickStateLines\").remove(); \n\n svg\n .transition()\n .duration(750)\n .call(\n zoom.transform,\n d3.zoomIdentity,\n d3.zoomTransform(svg.node()).invert([width / 2, height / 2])\n )\n }", "function updateAll() {\n\tthis.circle.show();\n\tthis.mid.show();\n\tfor (var i = 0; i < this.holes.length; i++) {\n\t\tthis.holes[i].show();\n\t}\n}", "function resetView()\n{\n xOffset = 0;\n yOffset = 0;\n inputX = 0;\n inputY = 0;\n fillCanvas();\n updateCoordinates();\n}", "function resetGlobalDesign () {\n _GlobalDesign.setDesignName(\"globalDesign\");\n var arrayGlobalFigure = _GlobalDesign.getFigures();\n var currentFigure = 0;\n for (currentFigure; currentFigure < _GlobalDesign.getAmountOfFigures(); currentFigure++) {\n arrayGlobalFigure.pop();\n }\n _GlobalDesign.setAmountOfFigures(0);\n }", "function clearDarkenenedState() {\n var selected = svgDoc.getElementsByClassName('bordered');\n if (selected.length > 0) {\n var className = selected[0].getAttribute('class').replace('bordered','').trim();\n selected[0].setAttribute('class', className);\n }\n }", "function resetShapes() {\n\tvar scale;\n\n\tselectedItem1 = -1;\n\tselectedItem2 = -1;\n\t\n\tshapeOrder = [];\n\t\n\tfor (var i=0; i<items.length; i++) {\n\t\titems[i].currLocID = items[i].startLocID;\n\t\titems[i].x = locations[items[i].currLocID].x;\n\t\titems[i].y = locations[items[i].currLocID].y;\n\t\titems[i].targetLocID = -1;\n\t}\n\n\t\n\tfor (i=0; i<shapes.length; i++) {\n\t\tshapeOrder[i] = i;\n\t\t\n\t\tshapes[i].active = shapes[i].defaultActive;\n\t}\n\t\n\n\tfor (i=0; i<items.length; i++) {\n\t\tif (shapes[items[i].id].active) {\n\t\t\titems[i].scale = scaleNormal;\n\t\t} else {\n\t\t\titems[i].scale = scaleDisabled;\n\t\t}\n\t}\n\t\n\tfor (i=0; i<maps.length; i++) {\n\t\tmaps[i].visible = maps[i].defaultVisible;\n\t}\n\n\tif (leyLineMode) {\n\t\tupdateLines = true;\n\t\trebuildLines();\n\t} else {\t\t\n\t\tlines = [];\n\t}\n}", "function resetRenderBoard() {\n\t\tlet boardPositions = document.getElementsByClassName(\"positions\");\n\t\tfor (let position of boardPositions) {\n\t\t\tposition.innerHTML = \"\";\n\t\t\tposition.classList.remove(\"played\");\n\t\t\tposition.classList.remove(\"winner-position\");\n\t\t}\n\t\tupdatePlayerInfo(); // updates the player info box\n\t}", "updateLayer(state) {\n return;\n }" ]
[ "0.6679147", "0.6556555", "0.63043183", "0.6294563", "0.62732536", "0.6272323", "0.6190434", "0.6188055", "0.61700356", "0.6157433", "0.61476946", "0.6132609", "0.61142915", "0.6109966", "0.6080713", "0.6067858", "0.60518014", "0.60453874", "0.60399747", "0.60237604", "0.6023576", "0.6015207", "0.600486", "0.5980493", "0.59710085", "0.5966225", "0.59633857", "0.59405124", "0.5938564", "0.5936563", "0.59354943", "0.5934168", "0.5932391", "0.59268117", "0.5924015", "0.59176975", "0.5908748", "0.590312", "0.5894853", "0.5871782", "0.5869297", "0.5862695", "0.5860718", "0.5858948", "0.58586067", "0.5852472", "0.5848103", "0.5846623", "0.5844987", "0.5842229", "0.58343947", "0.58343595", "0.58227533", "0.5820826", "0.58195484", "0.5817753", "0.5813968", "0.581154", "0.57983935", "0.5796966", "0.5796252", "0.5795364", "0.57946545", "0.5783858", "0.5783825", "0.57786536", "0.57772833", "0.5776047", "0.57755333", "0.5770257", "0.5768808", "0.57586676", "0.5754805", "0.5753701", "0.57506037", "0.5747586", "0.57456726", "0.57421404", "0.5739834", "0.57359254", "0.5735422", "0.5734449", "0.57329094", "0.57292825", "0.57270515", "0.57251924", "0.57236373", "0.5721597", "0.57212245", "0.5719656", "0.57130426", "0.57067734", "0.5704673", "0.5703104", "0.5700943", "0.56991905", "0.5696159", "0.5685116", "0.56807405", "0.5668844", "0.5667358" ]
0.0
-1
CONCATENATED MODULE: ./node_modules/vueloader/lib/runtime/componentNormalizer.js / globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (render) { options.render = render options.staticRenderFns = staticRenderFns options._compiled = true } // functional template if (functionalTemplate) { options.functional = true } // scopedId if (scopeId) { options._scopeId = 'data-v-' + scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = shadowMode ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } : injectStyles } if (hook) { if (options.functional) { // for template-only hot-reload because in that case the render fn doesn't // go through the normalizer options._injectStyles = hook // register for functioal component in vue file var originalRender = options.render options.render = function renderWithStyleInjection (h, context) { hook.call(context) return originalRender(h, context) } } else { // inject component registration as beforeCreate hook var existing = options.beforeCreate options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } } return { exports: scriptExports, options: options } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function __vue_normalize__(a,b,c,d,e){var f=(\"function\"==typeof c?c.options:c)||{};// For security concerns, we use only base name in production mode.\nreturn f.__file=\"/Users/hadefication/Packages/vue-chartisan/src/components/Pie.vue\",f.render||(f.render=a.render,f.staticRenderFns=a.staticRenderFns,f._compiled=!0,e&&(f.functional=!0)),f._scopeId=d,f}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}" ]
[ "0.67436", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977", "0.6494977" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function makeRectPanelClipPath(rect) { rect = normalizeRect(rect); return function (localPoints, transform) { return graphicUtil.clipPointsByRect(localPoints, rect); }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "started () {}", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "started() {\r\n\r\n\t}", "function SigV4Utils() { }", "static get NOT_READY () {return 0}", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "initialize() {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "function getImplementation( cb ){\n\n }", "heartbeat () {\n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "static final private internal function m106() {}", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "get WSAPlayerX64() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }" ]
[ "0.53492224", "0.48935446", "0.48514137", "0.48082927", "0.47720826", "0.4744996", "0.47347993", "0.47019523", "0.46926585", "0.46926585", "0.46730793", "0.46452278", "0.46379203", "0.46256977", "0.4618543", "0.45818752", "0.45806864", "0.45742333", "0.4568166", "0.45616665", "0.45558366", "0.4549164", "0.45481402", "0.45447382", "0.4537214", "0.4522665", "0.451785", "0.4497493", "0.44942656", "0.4484697", "0.4472648", "0.44683102", "0.4465637", "0.44581723", "0.44557354", "0.4454013", "0.44524705", "0.44436827", "0.44380364", "0.4427005", "0.44242096", "0.44237852", "0.44070554", "0.44050547", "0.44050547", "0.44050547", "0.4404598", "0.4393088", "0.43767613", "0.43684104", "0.43635124", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43511948", "0.43502447", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43443355", "0.43417493", "0.43380377", "0.43350744", "0.43350744", "0.4332956", "0.43327877" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function _default(seriesType, actionInfos) { zrUtil.each(actionInfos, function (actionInfo) { actionInfo.update = 'updateView'; /** * @payload * @property {string} seriesName * @property {string} name */ echarts.registerAction(actionInfo, function (payload, ecModel) { var selected = {}; ecModel.eachComponent({ mainType: 'series', subType: seriesType, query: payload }, function (seriesModel) { if (seriesModel[actionInfo.method]) { seriesModel[actionInfo.method](payload.name, payload.dataIndex); } var data = seriesModel.getData(); // Create selected map data.each(function (idx) { var name = data.getName(idx); selected[name] = seriesModel.isSelected(name) || false; }); }); return { name: payload.name, selected: selected, seriesId: payload.seriesId }; }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "started () {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "function SigV4Utils() { }", "started() {\r\n\r\n\t}", "static get NOT_READY () {return 0}", "initialize() {\n\n }", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "function getImplementation( cb ){\n\n }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "heartbeat () {\n }", "static final private internal function m106() {}", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "get WSAPlayerX64() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }" ]
[ "0.53504926", "0.4896905", "0.48514667", "0.48116106", "0.4775166", "0.4743932", "0.47342455", "0.47035336", "0.4694186", "0.4694186", "0.46744877", "0.46453032", "0.46394095", "0.4629355", "0.46211302", "0.45832416", "0.45812932", "0.45752546", "0.45698234", "0.45625272", "0.4557475", "0.4549714", "0.45494938", "0.4545794", "0.45383474", "0.4523037", "0.45180768", "0.45005357", "0.4496748", "0.4486438", "0.447462", "0.44716924", "0.4468301", "0.44601226", "0.4456266", "0.4455926", "0.44557476", "0.4445067", "0.44378054", "0.44258687", "0.44258553", "0.4424118", "0.44097725", "0.4406038", "0.4404498", "0.4404498", "0.4404498", "0.43926418", "0.43781474", "0.43708664", "0.43657827", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43526813", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4349645", "0.43450522", "0.43440443", "0.43390423", "0.43347356", "0.43347356", "0.43332103", "0.43318707" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function _default(ecModel) { ecModel.eachSeriesByType('themeRiver', function (seriesModel) { var data = seriesModel.getData(); var rawData = seriesModel.getRawData(); var colorList = seriesModel.get('color'); var idxMap = createHashMap(); data.each(function (idx) { idxMap.set(data.getRawIndex(idx), idx); }); rawData.each(function (rawIndex) { var name = rawData.getName(rawIndex); var color = colorList[(seriesModel.nameMap.get(name) - 1) % colorList.length]; rawData.setItemVisual(rawIndex, 'color', color); var idx = idxMap.get(rawIndex); if (idx != null) { data.setItemVisual(idx, 'color', color); } }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "started () {}", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "started() {\r\n\r\n\t}", "function SigV4Utils() { }", "static get NOT_READY () {return 0}", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "initialize() {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "function getImplementation( cb ){\n\n }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "heartbeat () {\n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "static final private internal function m106() {}", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }", "get WSAPlayerX64() {}" ]
[ "0.5349978", "0.48933455", "0.48501366", "0.48083982", "0.4772584", "0.474481", "0.47349635", "0.47027457", "0.46929818", "0.46929818", "0.4673667", "0.4644517", "0.46389893", "0.46253318", "0.4618249", "0.4582536", "0.45813942", "0.45742747", "0.45687214", "0.45623618", "0.45563498", "0.45493752", "0.45489514", "0.45457798", "0.4538844", "0.45218396", "0.45187637", "0.4498104", "0.44946006", "0.44832855", "0.44729492", "0.44691566", "0.44642788", "0.44588575", "0.44554883", "0.4453296", "0.44531393", "0.4443642", "0.44374335", "0.44267404", "0.44238108", "0.44228086", "0.4407407", "0.44043022", "0.44043022", "0.44043022", "0.44035548", "0.4393825", "0.43761918", "0.43697277", "0.4364149", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43517888", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43502304", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43440503", "0.43416435", "0.43375877", "0.43357816", "0.43357816", "0.43336093", "0.43330038" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function updateMarkerLayout(mpData, seriesModel, api) { var coordSys = seriesModel.coordinateSystem; mpData.each(function (idx) { var itemModel = mpData.getItemModel(idx); var point; var xPx = numberUtil.parsePercent(itemModel.get('x'), api.getWidth()); var yPx = numberUtil.parsePercent(itemModel.get('y'), api.getHeight()); if (!isNaN(xPx) && !isNaN(yPx)) { point = [xPx, yPx]; } // Chart like bar may have there own marker positioning logic else if (seriesModel.getMarkerPosition) { // Use the getMarkerPoisition point = seriesModel.getMarkerPosition(mpData.getValues(mpData.dimensions, idx)); } else if (coordSys) { var x = mpData.get(coordSys.dimensions[0], idx); var y = mpData.get(coordSys.dimensions[1], idx); point = coordSys.dataToPoint([x, y]); } // Use x, y if has any if (!isNaN(xPx)) { point[0] = xPx; } if (!isNaN(yPx)) { point[1] = yPx; } mpData.setItemLayout(idx, point); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "started () {}", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "started() {\r\n\r\n\t}", "function SigV4Utils() { }", "static get NOT_READY () {return 0}", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "initialize() {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "function getImplementation( cb ){\n\n }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "heartbeat () {\n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "static final private internal function m106() {}", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }", "get WSAPlayerX64() {}" ]
[ "0.5349978", "0.48933455", "0.48501366", "0.48083982", "0.4772584", "0.474481", "0.47349635", "0.47027457", "0.46929818", "0.46929818", "0.4673667", "0.4644517", "0.46389893", "0.46253318", "0.4618249", "0.4582536", "0.45813942", "0.45742747", "0.45687214", "0.45623618", "0.45563498", "0.45493752", "0.45489514", "0.45457798", "0.4538844", "0.45218396", "0.45187637", "0.4498104", "0.44946006", "0.44832855", "0.44729492", "0.44691566", "0.44642788", "0.44588575", "0.44554883", "0.4453296", "0.44531393", "0.4443642", "0.44374335", "0.44267404", "0.44238108", "0.44228086", "0.4407407", "0.44043022", "0.44043022", "0.44043022", "0.44035548", "0.4393825", "0.43761918", "0.43697277", "0.4364149", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43517888", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43502304", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43440503", "0.43416435", "0.43375877", "0.43357816", "0.43357816", "0.43336093", "0.43330038" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. TODO ??? refactor? check the outer usage of data provider. merge with defaultDimValueGetter? If normal array used, mutable chunk size is supported. If typed array used, chunk size must be fixed.
function DefaultDataProvider(source, dimSize) { if (!Source.isInstance(source)) { source = Source.seriesDataToSource(source); } this._source = source; var data = this._data = source.data; var sourceFormat = source.sourceFormat; // Typed array. TODO IE10+? if (sourceFormat === SOURCE_FORMAT_TYPED_ARRAY) { this._offset = 0; this._dimSize = dimSize; this._data = data; } var methods = providerMethods[sourceFormat === SOURCE_FORMAT_ARRAY_ROWS ? sourceFormat + '_' + source.seriesLayoutBy : sourceFormat]; extend(this, methods); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jdcDataProvider(o){\n\t//Too many characters/values set\n\tvar ret = {};\n\tvar cache = {}; //= dataArray; //cached slices\n\tvar calc = {}; //calculated definitions\n\tvar o;\n\n\tvar def = {\n\t\tall : '_', //used for where no filter on dimension\n\t\tfn : 'fn', //used for function branching\n\t\tresult : function(){ return 0; }, //to be a function - called for default result and map reduce\n\t\tindices : []\n\t}\n\n\tret.init = function(options){\n\t // Extend defaults\n\t var extended = def;\n\t for (var prop in options) {\n\t if (options.hasOwnProperty(prop)) {\n\t extended[prop] = options[prop];\n\t }\n\t }\n\t\to = ret.options = extended; //var o used for shorthand - will this lead to trouble later overriding o?\n\n\t\tret.dims={};\n\n\t\tfor(var i=0;i<o.dims.length;i++){\n\t\t\tconsole.log(i);\n\t\t\tvar d = o.dims[i];\n\t\t\tconsole.log(d);\n\t\t\tret.dims[i] = {}; //ordered map\n\t\t\tret.dims[d] = {}; //associative map\n\t\t\tret.dims[i].val=d; //e.g. [0].val = \"dim 1 Name\"\n\t\t\tret.dims[d].val=i; //e.g. [name].val = order\n\t\t\tret.dims[i].range = [];\n\t\t}\n\t\tconsole.log(o.dims.length);\n\t\t//New version - iterates over population once\n\t\tvar res={}, mre, val;\n\t\tfor(var j=0;j<o.dims.length;j++){\n\t\t\tres[o.dims[j]]={};\n\t\t}\n\t\tvar vals = o.data.reduce(function(res,e,i,a){\n\t\t\tfor(var j=0;j<o.dims.length;j++){\n\t\t\t\tmre=o.dims[j];\n\t\t\t\tval=wlk(e,mre);\n\t\t\t\tif(!res[mre][val]){\n\t\t\t\t\tres[mre][val]={ \"n\":0, \"val\":0.0 };\n\t\t\t\t\tret.dims[j].range.push(val);\n\t\t\t\t}\n\t\t\t\tres[mre][val][\"n\"]++;\n\t\t\t\tres[mre][val][\"val\"]+=e[\"Price\"];\n\t\t\t}\n\t\t\treturn res;\n\t\t},res);\n\t\tfor(var j=0;j<o.dims.length;j++){\n\t\t\tret.dims[j].range.sort();\n\t\t}\n\t\tconsole.log(res);\n\t\tif(o.cache){\n\t\t\tcache = o.cache;\n\t\t}\n\n\t\treturn ret;\n\t}\n\n\t//Where should order of keys be controlled?\n\tret.idString = function(keys){\n\t\tvar res = [];\n\t\tfor(var i=0;i<o.dims.length;i++){\n\t\t\tres.push(def.all); //Push blank for no filter\n\t\t}\n\t\tfor(k in keys){\n\t\t\tif(ret.dims[k]){\n\t\t\t\tvar r = f(keys[k]);\n\t\t\t\tres[ret.dims[k].val] = r.label || r; //use f to resolve function here - need to make this generic\n\t\t\t} else {\n\t\t\t\tif(k.indexOf(def.fn)<1){\n\t\t\t\t\tconsole.log(\"Invalid key: \" + k);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tres[ret.dims[\"mre\"].val]=def.all; //Set mre to all as measures in object\n\t\treturn res.join('|');\n\t}\n\n\t//Key expanded to include all dimensions\n\tret.fullKey = function(keys){\n\t\tvar res = {};\n\t\tfor(var i=0;i<o.dims.length;i++){\n\t\t\tres[o.dims[i]]=def.all; //using '' causes problems - don't know why\n\t\t}\n\t\tfor(k in keys){ //would $.extend be better? - check k is in result\n\t\t\tif(ret.dims[k]){\n\t\t\t\tres[k] = f(keys[k]); //use f to resolve function here - need to make this generic\n\t\t\t} else {\n\t\t\t\tif(k.indexOf(def.fn)<1){\n\t\t\t\t\tconsole.log(\"Invalid key: \" + k);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\n\t//New Reduce Functionality\n\tfunction objInKey(obj,key){\n\t\tres=true;\n\t\tfor(k in key){\n\t\t\tvar v=key[k];\n\t\t\tvar o=wlk(obj,k); // walks if nested\n\t\t\tif(typeof(v)==='object'){ //allDims firing initial function\n\t\t\t\tif(v.fn){\n\t\t\t\t\tres=v.fn(o);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(v!==\"_\"){\n\t\t\t\t\tif(o){\n\t\t\t\t\t\tres=((o===v)||(+o===+v));\n\t\t\t\t\t//console.log(\"fn objInKey - value comparison - \" + obj[k] + \" with \" + v);\n\t\t\t\t\t} else { return false; } //value key with no corresponding key in object\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(res===false){ return false };\n\t\t}\n\t\treturn true;\n\t}\n\n\tfunction keyFilter(key,field){\n\t\treturn function(obj,i,a){\n\t\t\tif(objInKey(obj,key)){\n\t\t\t\tif(!field) return obj;\n\t\t\t\treturn wlk(obj,field); //return the target field\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction keyFilterReduce(key,field){\n\t\treturn function(res,obj,i,a){\n\t\t\tres.push(wlk(obj,field)); //return the target field\n\t\t\treturn res;\n\t\t}\n\t}\n\n\tfunction kFilter(key){\n\t\treturn function(obj,i,a){\n\t\t\treturn objInKey(obj,key);\n\t\t}\n\t}\n\n\tfunction keyReduce(key){ //want this to be the stats\n\t\treturn function(res, obj) {\n\t\t\tif(objInKey(obj,key)){\n\t\t\t\tvar v=obj.values;\n\t\t\t\tfor(var i=0;i<v.length;i++){\n\t\t\t\t\tres[i]+=v[i];\n\t\t\t\t}\n\t\t\t}\n\t\t return res;\n\t\t}\n\t}\n\n\tfunction fillArray(value, len) {\n\t var arr = [];\n\t for (var i=0; i<len; i++) {\n\t arr.push(value);\n\t };\n\t return arr;\n\t}\n\n\tfunction filterData(key){ //should always be a full key\n\t\t//return a filtered set of data based on ordered indices supplied\n\t\t//if(o.indices.length>0){ //need to ensure default value\n\t\t//o.indices.each(function(index,i,a)){ //object with indices - confirmed can rely on ordering - won't work as return won't exit loop\n\t\tfor (var i=0; i<o.indices.length; i++) {\n\t\t\tvar index = o.indices[i];\n\t\t\tif(index[\"field\"]){\n\t\t\t\tif(index[\"field\"] in key){ //should maybe use hasOwnProperty\n\t\t\t\t\tvar v=key[index[\"field\"]]; //index used\n\t\t\t\t\tif(v!==\"_\" && typeof(v)!=='object'){ //not all and not an object\n\t\t\t\t\t\treturn index[\"index\"][v].map(function(e,i,a){\n\t\t\t\t\t\t\tindex[\"indexMap\"][e]; //iterate through index to return array of objects\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn o.data;\n\t}\n\n\t//may rename to get measures\n\tret.getValues = function(key){ //same interface as previous - key has already been processed though fullkey function\n\t\t//var population = filterData(ret.fullKey(key)).filter(kFilter(key));\n\t\tvar keyAllMre = ret.fullKey(key);\n\t\tkeyAllMre[\"mre\"] = def.all;\n\t\t//console.log(ret.idString(keyAllMre));\n\t\tvar pop = filterData(keyAllMre).filter(kFilter(keyAllMre));\n\t\t//console.log(pop[0]);\n\t\t//console.log(pop.length);\n\t\t//population = population.reduce(keyFilterReduce(key,\"Price\"),[]);\n\t\tvar population = pop.reduce(function(r,e,i,a){ if(e[\"Price\"]) { r.push(e[\"Price\"]);} return r; },[]);\n\t\t//console.log(population[0]);\n\t\t//console.log(population.length);\n\t\tvar r = population.stats();\n\t\t//console.log(r);\n\t\treturn {\n\t\t\tid : ret.idString(key),\n\t\t\tkey : key,\n\t\t\tvalue : population.stats() //introduces filter on an index - need to parameterise\n\t\t}\n\t}\n\n\t//function to return population of array objects without summarisation\n\tret.getPopulation = function(key){ //same interface as previous - key has already been processed though fullkey function\n\t\tconsole.log(\"getPopulation\");\n\t\treturn {\n\t\t\tid : ret.idString(key), //arguable this is not required\n\t\t\tkey : key,\n\t\t\tvalue : filterData(ret.fullKey(key)).filter(kFilter(key)) //introduces filter on an index\n\t\t}\n\t}\n\n\tret.segmentSum = function(key,range){ //this should be accessible as string or object key\n\t\treturn ret.segmentRange(key,range).reduce( function(previousValue, currentValue, index, array){\n\t\t\t\treturn previousValue + currentValue;\n\t\t\t});\n\t}\n\n\tret.segment = function(key,range){ //range can be single value or array with 2 values - index and offset\n\t\tvar res = ret.segmentFromCache(key);\n\t\t/*var r = range;\n\t\tvar r0, r1;\n\t\tif(r){\n\t\t\tr0 = r[0] || r; r0 = f(r0);\n\t\t\tr1 = r[1] || r0+1; r1 = f(r1);\n\t\t\tif(r1<r0){\n\t\t\t\tif(r1<0) {\n\t\t\t\t\tr0 += r1+1;\n\t\t\t\t\tr1 = r0-r1;\n\t\t\t\t} else {\n\t\t\t\t\tr1 += r0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn (!range ? res : res.slice(r0,r1));*/\n\t\treturn res;\n\t}\n\n\tret.segmentFromCache = function(key){ //cache will use string key\n\t\t//console.log(ret.idString(key));\n\t\treturn (cache[ret.idString(key)] ? cache[ret.idString(key)][key[\"mre\"]] : ret.fillCache(key));\n\t}\n\n\tret.fillCache = function(key){ //should be a private function\n\t\tvar res;\n\t\tif(key.xfn){\n\t\t\tif(key.xfn.fn){\n\t\t\t\tif(key.xfn.fn){ //is it a calculated field - check definitions?\n\t\t\t\t\tres = calc[key.xfn.fn](key);\n\t\t\t\t\tcache[res.id] = res.value;\n\t\t\t\t}\n\t\t\t} else if(calc[key.xfn]){ //is it a calculated field - check definitions?\n\t\t\t\tres = calc[key.xfn](key);\n\t\t\t\tcache[res.id] = res.value;\n\t\t\t} else {\n\t\t\t\tconsole.log(\"Error - transform function not logged\");\n\t\t\t}\n\t\t} else {\n\t\t\tres = ret.getValues(ret.fullKey(key));\n\t\t\tcache[res.id] = res.value;\n\t\t}\n\t\treturn cache[res.id][key[\"mre\"]]; //different as now returning a measure within an object of measures - not presently an array - this may need to change\n\t}\n\n\tfunction preCalculated(key){\n\t\t//console.log(\"preCalc Fired\");\n\t\t//console.log(ret.idString(key));\n\t\tfor(k in key){\n\t\t\tif(!preCalc[k][key[k]]){\n\t\t\t\treturn false; //return as soon as failed\n\t\t\t}\n\t\t}\n\t\t//console.log(\"preCalc Fired - & short circuited\");\n\t\treturn true;\n\t}\n\n\tvar measureChange = function(key){\n\t\tvar newKey=$.extend({},key);\n\t\tnewKey.mre = f(newKey.mre).replace('Chg','');\n\t\tdelete newKey.xfn; //need to delete or\n\t\tvar values = ret.segment(newKey);\n\t\tvar res=[0];\n\t\tfor(var i=1;i<values.length;i++){\n\t\t\tres.push(values[i]-values[i-1]);\n\t\t}\n\t\treturn { id : ret.idString(key), key : key, value : res }\n\t}\n\n\tvar chg = function(dim,suffix,transform){\n\t\treturn function(key){\n\t\t\tvar base = $.extend({},key);\n\t\t\tbase[dim] = f(base[dim]).replace(suffix,'');\n\t\t\tdelete base[transform]; //necessary to stop looking in calc\n\t\t\tvar values = ret.segment(base);\n\t\t\tvar res=[0];\n\t\t\tfor(var i=1;i<values.length;i++){\n\t\t\t\tres.push(values[i]-values[i-1]);\n\t\t\t}\n\t\t\treturn { id : ret.idString(key), key : key, value : res }\n\t\t}\n\t}\n\n\tvar ofTotal = function(dim,suffix,transform,total){\n\t\treturn function(key){\n\t\t\tvar base = $.extend({},key);\n\t\t\tbase[dim] = f(base[dim]).replace(suffix,''); //Change this to add suffix later & output\n\t\t\tdelete base[transform];\n\t\t\tvar values = ret.segment(base);\n\t\t\tfor(k in total){\n\t\t\t\tif(base[k]){\n\t\t\t\t\tbase[k]=total[k];\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar div = ret.segment(base);\n\t\t\tvar res = [];\n\t\t\tfor(var i=0;i<values.length;i++){\n\t\t\t\tres.push(div[i]===0 ? 0 : values[i]/div[i] );\n\t\t\t}\n\t\t\treturn { id : ret.idString(key), key : key, value : res }\n\t\t}\n\t}\n\n\tvar ofTot = function(transform){\n\t\treturn function(key){\n\t\t\tvar tfm = $.extend({},key[transform]);\n\t\t\tvar base = $.extend({},key,tfm.args[0]);\n\t\t\tdelete base[transform];\n\t\t\tvar divKey = $.extend({},base,tfm.args[1]);\n\t\t\t//console.log(divKey);\n\t\t\tvar val = ret.segment(base);\n\t\t\tvar div = ret.segment(divKey);\n\t\t\tvar vals = [];\n\t\t\tfor(var i=0;i<val.length;i++){\n\t\t\t\tvals.push(div[i]===0 ? 0 : val[i]/div[i] );\n\t\t\t}\n\t\t\treturn { id : ret.idString(key), key : key, value : vals }\n\t\t}\n\t}\n\n\t//calc['Chg'] = measureChange;\n\tcalc['Chg'] = chg('mre','Chg','xfn');\n\tcalc['ofTotalArr'] = ofTotal('uom','OfTotal','xfn', {arr : xfFilter('arr','All',function(){ return d>0; })});\n\tcalc['ofTotalEnt'] = ofTotal('uom','OfTotal','xfn', {ent : '_'});\n\tcalc['rate'] = ofTotal('mre','Rate','xfn', {mre : 'Bal'});//This will change to the following\n\t//calc['rate'] = ofTotal('mre','Rate','xfn', {mre : 'Bal'});\n\tcalc['ofTotal'] = ofTot('xfn');\n\n\treturn ret.init(o);\n}", "function processDimsWithMeasure()\r\n {\r\n var startIndex = 0,\r\n endIndex = data_.values.length;\r\n var dimInRow = dimInRow_,\r\n dimInCol = dimInCol_;\r\n var bMNDInner = false,\r\n bMNDInRow = true;\r\n var i;\r\n if(data_.values[0].type === \"MND\")\r\n {\r\n ++startIndex;\r\n if(dimInRow > 0){ \r\n --dimInRow;\r\n } else {\r\n --dimInCol;\r\n bMNDInRow = false;\r\n }\r\n }\r\n\r\n if(data_.values[endIndex - 1].type === \"MND\")\r\n {\r\n bMNDInner = true;\r\n --endIndex;\r\n if(dimInCol > 0)\r\n {\r\n --dimInCol;\r\n bMNDInRow = false;\r\n }else{\r\n bMNDInRow = true;\r\n --dimInRow;\r\n }\r\n }\r\n\r\n //process no MND cases first\r\n if(startIndex < endIndex)\r\n {\r\n //some dimension in row and some in column \r\n var rowIndexs = [];\r\n if(dimInCol > 0 || dimInRow > 0)\r\n {\r\n //process row dimension first\r\n rowIndexs[0] = 0;\r\n rowCount_ = 0;\r\n if(dimInRow > 0)\r\n {\r\n buildRowDimension(dimInRow, startIndex, rowIndexs);\r\n }else{\r\n rowCount_ = 1;\r\n for(i = 1; i < data_.values[startIndex].rows.length; ++i){\r\n rowIndexs[i] = 0;\r\n }\r\n }\r\n \r\n //build column dimensions and indexes\r\n var colIndexs = [];\r\n if(dimInCol > 0)\r\n {\r\n colIndexs = processColHeader(startIndex + dimInRow, dimInCol);\r\n }else{\r\n colCount_ = 1;\r\n for(i = 0; i < data_.values[startIndex].rows.length; ++i){\r\n colIndexs[i] = 0;\r\n }\r\n }\r\n \r\n //generate data context for each sub chart\r\n ctx_ = new Array(rowCount_);\r\n for(i = 0; i < rowCount_; ++i)\r\n {\r\n ctx_[i] = [];\r\n for(var j = 0; j < colCount_; ++j){\r\n ctx_[i][j] = null;\r\n }\r\n }\r\n\r\n for(i = 0 ; i < data_.values[startIndex].rows.length; ++i)\r\n {\r\n ctx_[rowIndexs[i]][colIndexs[i]] = data_.values[startIndex + dimInRow + dimInCol - 1].rows[i].ctx;\r\n }\r\n }\r\n \r\n //process measure names at last\r\n if(dimInRow < dimInRow_ || dimInCol < dimInCol_)\r\n {\r\n addMND(bMNDInner, bMNDInRow, dimInRow, dimInCol);\r\n }\r\n }\r\n }", "getDimensions(data){\n const n = data.length;\n const p = data[0].length ? data[0].length: 1;\n return {rows: n,cols: p}\n }", "function processOneAxisValue(feed)\r\n {\r\n var dataset = [];\r\n var i, j, k;\r\n var measureData;\r\n if (feed.values.length <= 0){\r\n return dataset;\r\n }\r\n if (hasMND && !bMNDOnColor)\r\n {\r\n for(j = 0; j < feed.values[0].rows.length; ++j)\r\n { \r\n measureData = new Array(feed.values.length * feed.values[0].rows[0].length);\r\n for(k = 0; k < feed.values[0].rows[0].length; ++k)\r\n {\r\n for(i = 0 ; i < feed.values.length; ++i)\r\n {\r\n var dataPoint = {};\r\n dataPoint.val = feed.values[i].rows[j][k].val;\r\n dataPoint.ctx = feed.values[i].rows[j][k].ctx;\r\n dataPoint.info = feed.values[i].rows[j][k].info;\r\n if(bMNDInner){\r\n measureData[k * feed.values.length + i] = dataPoint;\r\n } else {\r\n measureData[i * feed.values[0].rows[0].length + k] = dataPoint; \r\n }\r\n }\r\n }\r\n dataset.push(measureData);\r\n } \r\n }\r\n else // MND on Region color or no MND\r\n {\r\n dataset = new Array(feed.values.length * feed.values[0].rows.length);\r\n\r\n for(i = 0 ; i < feed.values.length; ++i)\r\n {\r\n for(j = 0; j < feed.values[0].rows.length; ++j)\r\n { \r\n measureData = feed.values[i].rows[j];\r\n if(!hasMND || !bMNDInner){\r\n dataset[i * feed.values[0].rows.length + j] = measureData;\r\n } else {\r\n dataset[j * feed.values.length + i] = measureData;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return dataset;\r\n }", "addDimension(changeValueDimensions) {\n const that = this;\n\n if (that._suppressDimensionChange !== true && that.dimensions === 32) {\n return;\n }\n\n const indexer = document.createElement('jqx-numeric-text-box');\n\n indexer.className = 'jqx-array-indexer';\n indexer.style.height = that.indexerHeight + 'px';\n indexer.inputFormat = 'integer';\n indexer.spinButtons = true;\n indexer.min = 0;\n indexer.max = 4294967295;\n indexer.disabled = that.disabled;\n indexer.animation = that.animation;\n indexer.validation = 'interaction';\n indexer.wordLength = 'uint64';\n indexer.onReady = function () {\n indexer.$upButton.addClass('jqx-array-indexer-increment');\n indexer.$downButton.addClass('jqx-array-indexer-decrement');\n }\n\n that.$.indexerContainer.insertBefore(indexer, that.$.indexerContainer.children ? that.$.indexerContainer.children[0] : null);\n\n indexer.$.listen('change', that._indexerChangeHandler.bind(that));\n\n that._dimensions.push({ index: that._dimensions.length, indexer: indexer });\n\n if (that.arrayIndexingMode === 'LabVIEW') {\n that._indexers.unshift(indexer);\n that._coordinates.unshift(0);\n }\n else {\n that._indexers.push(indexer);\n that._coordinates.push(0);\n }\n\n indexer.dimension = that._indexers.length - 1;\n\n if (that._suppressDimensionChange !== true) {\n that.dimensions += 1;\n that.$.fireEvent('dimensionChange', { 'type': 'add' });\n }\n\n if (that._initialDimensions !== true && changeValueDimensions !== false) {\n that._validateValueArrayDimensions();\n\n if (that.arrayIndexingMode === 'LabVIEW') {\n that._filledUpTo.unshift(0);\n }\n else {\n that._filledUpTo.push(0);\n }\n\n if (that._oneDimensionSpecialCase === true) {\n that._oneDimensionSpecialCase = false;\n that.$.verticalScrollbar.value = 0;\n that._scroll();\n }\n }\n\n if (that._absoluteSelectionStart !== undefined) {\n if (that.arrayIndexingMode === 'LabVIEW') {\n that._absoluteSelectionStart.unshift(0);\n }\n else {\n that._absoluteSelectionStart.push(0);\n }\n }\n\n if (that._absoluteSelectionEnd !== undefined) {\n if (that.arrayIndexingMode === 'LabVIEW') {\n that._absoluteSelectionEnd.unshift(0);\n }\n else {\n that._absoluteSelectionEnd.push(0);\n }\n }\n\n if (!that._initialDimensions) {\n that._refreshSelection();\n }\n\n if (that._suppressDimensionChange === false && that.showIndexDisplay === true && (that.dimensions * (that.indexerHeight + 4) - 2 > that._cachedHeight)) {\n that._updateWidgetHeight('dimensions');\n }\n }", "_validateValueArrayDimensions() {\n const that = this;\n let dimensions = 0,\n tempArray = that.value,\n emptyArray = false;\n\n while (tempArray.constructor === Array) {\n dimensions++;\n tempArray = tempArray[0];\n\n if (tempArray === undefined) {\n emptyArray = true;\n break;\n }\n }\n\n if (that.dimensions > dimensions) {\n if (emptyArray) {\n that.value = that._returnEmptyArray();\n return;\n }\n\n while (that.dimensions > dimensions) {\n that._addDimensionToJSArray(dimensions);\n dimensions++;\n }\n }\n }", "constructor(){ \n this.queryArr = []; \n this.valuesArray = []; \n this.chunkSize = 10; \n }", "function getCustomDims() {\n var dims = [];\n \n // client id\n \n var tracker = ga.getByName('t0');\n \n dims.push( {slot: 11, value: tracker.get('clientId')} );\n \n if (typeof dataLayer.user === 'object') {\n \n var loggedIn = 'not logged in';\n var ban = 'not set';\n var userID = 'not set';\n \n if (dataLayer.user.userid) {\n userID = dataLayer.user.userid;\n loggedIn = 'logged in';\n \n }\n \n dims.push( {slot: 1, value: userID},\n {slot: 4, value: loggedIn});\n \n if (dataLayer.user.ban) {\n ban = dataLayer.user.ban;\n }\n \n dims.push({slot: 2, value: ban});\n \n }\n \n // FlashTalking parameters\n var ft_paramid = self.getQueryParam('FT_ParamIDs');\n\n // check if FT parameters exist but missing '?' so it's a part of the pathname\n if (ft_paramid === null) {\n ft_paramid = self.pathname.match(/FT_ParamIDs=([^&]*)/);\n \n if (ft_paramid)\n ft_paramid = ft_paramid[1];\n }\n \n if (ft_paramid !== null) {\n dims.push( {slot: 8, value: ft_paramid},\n {slot: 9, value: ft_paramid});\n }\n \n // Internal promos\n \n var cm_re = self.getQueryParam('cm_re');\n if (cm_re !== null)\n dims.push({slot: 3, value: cm_re});\n \n var purchaser = 'no';\n \n // purchaser - set on confirmation pages\n if (dataLayer.page && dataLayer.page.type === 'order_receipt_page') {\n purchaser = 'yes';\n }\n \n dims.push({slot: 5, value: purchaser});\n \n // page tracking\n dims.push({slot: 17, value: self.pathname + self.query + self.anchor});\n \n return dims;\n }", "function Dataset() {\n this.data = [];\n this.max = 0;\n this.min = 0;\n this.range = 0;\n this.size = 0;\n Object.defineProperty(\n this,\n 'length',\n { get: function() { return this.data.length; } }\n );\n if( ( arguments.length > 0 ) && ( arguments[ 0 ] instanceof Array ) ) {\n this.load( arguments[ 0 ] );\n }\n }", "function dimension(value) {\n\t var dimension = {\n\t filter: filter,\n\t filterExact: filterExact,\n\t filterRange: filterRange,\n\t filterFunction: filterFunction,\n\t filterAll: filterAll,\n\t top: top,\n\t bottom: bottom,\n\t group: group,\n\t groupAll: groupAll,\n\t dispose: dispose,\n\t remove: dispose // for backwards-compatibility\n\t };\n\n\t var one = ~m & -~m, // lowest unset bit as mask, e.g., 00001000\n\t zero = ~one, // inverted one, e.g., 11110111\n\t values, // sorted, cached array\n\t index, // value rank ↦ object id\n\t newValues, // temporary array storing newly-added values\n\t newIndex, // temporary array storing newly-added index\n\t sort = quicksort_by(function(i) { return newValues[i]; }),\n\t refilter = crossfilter_filterAll, // for recomputing filter\n\t refilterFunction, // the custom filter function in use\n\t indexListeners = [], // when data is added\n\t dimensionGroups = [],\n\t lo0 = 0,\n\t hi0 = 0;\n\n\t // Updating a dimension is a two-stage process. First, we must update the\n\t // associated filters for the newly-added records. Once all dimensions have\n\t // updated their filters, the groups are notified to update.\n\t dataListeners.unshift(preAdd);\n\t dataListeners.push(postAdd);\n\n\t removeDataListeners.push(removeData);\n\n\t // Incorporate any existing data into this dimension, and make sure that the\n\t // filter bitset is wide enough to handle the new dimension.\n\t m |= one;\n\t if (M >= 32 ? !one : m & -(1 << M)) {\n\t filters = crossfilter_arrayWiden(filters, M <<= 1);\n\t }\n\t preAdd(data, 0, n);\n\t postAdd(data, 0, n);\n\n\t // Incorporates the specified new records into this dimension.\n\t // This function is responsible for updating filters, values, and index.\n\t function preAdd(newData, n0, n1) {\n\n\t // Permute new values into natural order using a sorted index.\n\t newValues = newData.map(value);\n\t newIndex = sort(crossfilter_range(n1), 0, n1);\n\t newValues = permute(newValues, newIndex);\n\n\t // Bisect newValues to determine which new records are selected.\n\t var bounds = refilter(newValues), lo1 = bounds[0], hi1 = bounds[1], i;\n\t if (refilterFunction) {\n\t for (i = 0; i < n1; ++i) {\n\t if (!refilterFunction(newValues[i], i)) filters[newIndex[i] + n0] |= one;\n\t }\n\t } else {\n\t for (i = 0; i < lo1; ++i) filters[newIndex[i] + n0] |= one;\n\t for (i = hi1; i < n1; ++i) filters[newIndex[i] + n0] |= one;\n\t }\n\n\t // If this dimension previously had no data, then we don't need to do the\n\t // more expensive merge operation; use the new values and index as-is.\n\t if (!n0) {\n\t values = newValues;\n\t index = newIndex;\n\t lo0 = lo1;\n\t hi0 = hi1;\n\t return;\n\t }\n\n\t var oldValues = values,\n\t oldIndex = index,\n\t i0 = 0,\n\t i1 = 0;\n\n\t // Otherwise, create new arrays into which to merge new and old.\n\t values = new Array(n);\n\t index = crossfilter_index(n, n);\n\n\t // Merge the old and new sorted values, and old and new index.\n\t for (i = 0; i0 < n0 && i1 < n1; ++i) {\n\t if (oldValues[i0] < newValues[i1]) {\n\t values[i] = oldValues[i0];\n\t index[i] = oldIndex[i0++];\n\t } else {\n\t values[i] = newValues[i1];\n\t index[i] = newIndex[i1++] + n0;\n\t }\n\t }\n\n\t // Add any remaining old values.\n\t for (; i0 < n0; ++i0, ++i) {\n\t values[i] = oldValues[i0];\n\t index[i] = oldIndex[i0];\n\t }\n\n\t // Add any remaining new values.\n\t for (; i1 < n1; ++i1, ++i) {\n\t values[i] = newValues[i1];\n\t index[i] = newIndex[i1] + n0;\n\t }\n\n\t // Bisect again to recompute lo0 and hi0.\n\t bounds = refilter(values), lo0 = bounds[0], hi0 = bounds[1];\n\t }\n\n\t // When all filters have updated, notify index listeners of the new values.\n\t function postAdd(newData, n0, n1) {\n\t indexListeners.forEach(function(l) { l(newValues, newIndex, n0, n1); });\n\t newValues = newIndex = null;\n\t }\n\n\t function removeData(reIndex) {\n\t for (var i = 0, j = 0, k; i < n; ++i) {\n\t if (filters[k = index[i]]) {\n\t if (i !== j) values[j] = values[i];\n\t index[j] = reIndex[k];\n\t ++j;\n\t }\n\t }\n\t values.length = j;\n\t while (j < n) index[j++] = 0;\n\n\t // Bisect again to recompute lo0 and hi0.\n\t var bounds = refilter(values);\n\t lo0 = bounds[0], hi0 = bounds[1];\n\t }\n\n\t // Updates the selected values based on the specified bounds [lo, hi].\n\t // This implementation is used by all the public filter methods.\n\t function filterIndexBounds(bounds) {\n\t var lo1 = bounds[0],\n\t hi1 = bounds[1];\n\n\t if (refilterFunction) {\n\t refilterFunction = null;\n\t filterIndexFunction(function(d, i) { return lo1 <= i && i < hi1; });\n\t lo0 = lo1;\n\t hi0 = hi1;\n\t return dimension;\n\t }\n\n\t var i,\n\t j,\n\t k,\n\t added = [],\n\t removed = [];\n\n\t // Fast incremental update based on previous lo index.\n\t if (lo1 < lo0) {\n\t for (i = lo1, j = Math.min(lo0, hi1); i < j; ++i) {\n\t filters[k = index[i]] ^= one;\n\t added.push(k);\n\t }\n\t } else if (lo1 > lo0) {\n\t for (i = lo0, j = Math.min(lo1, hi0); i < j; ++i) {\n\t filters[k = index[i]] ^= one;\n\t removed.push(k);\n\t }\n\t }\n\n\t // Fast incremental update based on previous hi index.\n\t if (hi1 > hi0) {\n\t for (i = Math.max(lo1, hi0), j = hi1; i < j; ++i) {\n\t filters[k = index[i]] ^= one;\n\t added.push(k);\n\t }\n\t } else if (hi1 < hi0) {\n\t for (i = Math.max(lo0, hi1), j = hi0; i < j; ++i) {\n\t filters[k = index[i]] ^= one;\n\t removed.push(k);\n\t }\n\t }\n\n\t lo0 = lo1;\n\t hi0 = hi1;\n\t filterListeners.forEach(function(l) { l(one, added, removed); });\n\t return dimension;\n\t }\n\n\t // Filters this dimension using the specified range, value, or null.\n\t // If the range is null, this is equivalent to filterAll.\n\t // If the range is an array, this is equivalent to filterRange.\n\t // Otherwise, this is equivalent to filterExact.\n\t function filter(range) {\n\t return range == null\n\t ? filterAll() : Array.isArray(range)\n\t ? filterRange(range) : typeof range === \"function\"\n\t ? filterFunction(range)\n\t : filterExact(range);\n\t }\n\n\t // Filters this dimension to select the exact value.\n\t function filterExact(value) {\n\t return filterIndexBounds((refilter = crossfilter_filterExact(bisect, value))(values));\n\t }\n\n\t // Filters this dimension to select the specified range [lo, hi].\n\t // The lower bound is inclusive, and the upper bound is exclusive.\n\t function filterRange(range) {\n\t return filterIndexBounds((refilter = crossfilter_filterRange(bisect, range))(values));\n\t }\n\n\t // Clears any filters on this dimension.\n\t function filterAll() {\n\t return filterIndexBounds((refilter = crossfilter_filterAll)(values));\n\t }\n\n\t // Filters this dimension using an arbitrary function.\n\t function filterFunction(f) {\n\t refilter = crossfilter_filterAll;\n\n\t filterIndexFunction(refilterFunction = f);\n\n\t lo0 = 0;\n\t hi0 = n;\n\n\t return dimension;\n\t }\n\n\t function filterIndexFunction(f) {\n\t var i,\n\t k,\n\t x,\n\t added = [],\n\t removed = [];\n\n\t for (i = 0; i < n; ++i) {\n\t if (!(filters[k = index[i]] & one) ^ !!(x = f(values[i], i))) {\n\t if (x) filters[k] &= zero, added.push(k);\n\t else filters[k] |= one, removed.push(k);\n\t }\n\t }\n\t filterListeners.forEach(function(l) { l(one, added, removed); });\n\t }\n\n\t // Returns the top K selected records based on this dimension's order.\n\t // Note: observes this dimension's filter, unlike group and groupAll.\n\t function top(k) {\n\t var array = [],\n\t i = hi0,\n\t j;\n\n\t while (--i >= lo0 && k > 0) {\n\t if (!filters[j = index[i]]) {\n\t array.push(data[j]);\n\t --k;\n\t }\n\t }\n\n\t return array;\n\t }\n\n\t // Returns the bottom K selected records based on this dimension's order.\n\t // Note: observes this dimension's filter, unlike group and groupAll.\n\t function bottom(k) {\n\t var array = [],\n\t i = lo0,\n\t j;\n\n\t while (i < hi0 && k > 0) {\n\t if (!filters[j = index[i]]) {\n\t array.push(data[j]);\n\t --k;\n\t }\n\t i++;\n\t }\n\n\t return array;\n\t }\n\n\t // Adds a new group to this dimension, using the specified key function.\n\t function group(key) {\n\t var group = {\n\t top: top,\n\t all: all,\n\t reduce: reduce,\n\t reduceCount: reduceCount,\n\t reduceSum: reduceSum,\n\t order: order,\n\t orderNatural: orderNatural,\n\t size: size,\n\t dispose: dispose,\n\t remove: dispose // for backwards-compatibility\n\t };\n\n\t // Ensure that this group will be removed when the dimension is removed.\n\t dimensionGroups.push(group);\n\n\t var groups, // array of {key, value}\n\t groupIndex, // object id ↦ group id\n\t groupWidth = 8,\n\t groupCapacity = crossfilter_capacity(groupWidth),\n\t k = 0, // cardinality\n\t select,\n\t heap,\n\t reduceAdd,\n\t reduceRemove,\n\t reduceInitial,\n\t update = crossfilter_null,\n\t reset = crossfilter_null,\n\t resetNeeded = true,\n\t groupAll = key === crossfilter_null;\n\n\t if (arguments.length < 1) key = crossfilter_identity;\n\n\t // The group listens to the crossfilter for when any dimension changes, so\n\t // that it can update the associated reduce values. It must also listen to\n\t // the parent dimension for when data is added, and compute new keys.\n\t filterListeners.push(update);\n\t indexListeners.push(add);\n\t removeDataListeners.push(removeData);\n\n\t // Incorporate any existing data into the grouping.\n\t add(values, index, 0, n);\n\n\t // Incorporates the specified new values into this group.\n\t // This function is responsible for updating groups and groupIndex.\n\t function add(newValues, newIndex, n0, n1) {\n\t var oldGroups = groups,\n\t reIndex = crossfilter_index(k, groupCapacity),\n\t add = reduceAdd,\n\t initial = reduceInitial,\n\t k0 = k, // old cardinality\n\t i0 = 0, // index of old group\n\t i1 = 0, // index of new record\n\t j, // object id\n\t g0, // old group\n\t x0, // old key\n\t x1, // new key\n\t g, // group to add\n\t x; // key of group to add\n\n\t // If a reset is needed, we don't need to update the reduce values.\n\t if (resetNeeded) add = initial = crossfilter_null;\n\n\t // Reset the new groups (k is a lower bound).\n\t // Also, make sure that groupIndex exists and is long enough.\n\t groups = new Array(k), k = 0;\n\t groupIndex = k0 > 1 ? crossfilter_arrayLengthen(groupIndex, n) : crossfilter_index(n, groupCapacity);\n\n\t // Get the first old key (x0 of g0), if it exists.\n\t if (k0) x0 = (g0 = oldGroups[0]).key;\n\n\t // Find the first new key (x1), skipping NaN keys.\n\t while (i1 < n1 && !((x1 = key(newValues[i1])) >= x1)) ++i1;\n\n\t // While new keys remain…\n\t while (i1 < n1) {\n\n\t // Determine the lesser of the two current keys; new and old.\n\t // If there are no old keys remaining, then always add the new key.\n\t if (g0 && x0 <= x1) {\n\t g = g0, x = x0;\n\n\t // Record the new index of the old group.\n\t reIndex[i0] = k;\n\n\t // Retrieve the next old key.\n\t if (g0 = oldGroups[++i0]) x0 = g0.key;\n\t } else {\n\t g = {key: x1, value: initial()}, x = x1;\n\t }\n\n\t // Add the lesser group.\n\t groups[k] = g;\n\n\t // Add any selected records belonging to the added group, while\n\t // advancing the new key and populating the associated group index.\n\t while (!(x1 > x)) {\n\t groupIndex[j = newIndex[i1] + n0] = k;\n\t if (!(filters[j] & zero)) g.value = add(g.value, data[j]);\n\t if (++i1 >= n1) break;\n\t x1 = key(newValues[i1]);\n\t }\n\n\t groupIncrement();\n\t }\n\n\t // Add any remaining old groups that were greater than all new keys.\n\t // No incremental reduce is needed; these groups have no new records.\n\t // Also record the new index of the old group.\n\t while (i0 < k0) {\n\t groups[reIndex[i0] = k] = oldGroups[i0++];\n\t groupIncrement();\n\t }\n\n\t // If we added any new groups before any old groups,\n\t // update the group index of all the old records.\n\t if (k > i0) for (i0 = 0; i0 < n0; ++i0) {\n\t groupIndex[i0] = reIndex[groupIndex[i0]];\n\t }\n\n\t // Modify the update and reset behavior based on the cardinality.\n\t // If the cardinality is less than or equal to one, then the groupIndex\n\t // is not needed. If the cardinality is zero, then there are no records\n\t // and therefore no groups to update or reset. Note that we also must\n\t // change the registered listener to point to the new method.\n\t j = filterListeners.indexOf(update);\n\t if (k > 1) {\n\t update = updateMany;\n\t reset = resetMany;\n\t } else {\n\t if (!k && groupAll) {\n\t k = 1;\n\t groups = [{key: null, value: initial()}];\n\t }\n\t if (k === 1) {\n\t update = updateOne;\n\t reset = resetOne;\n\t } else {\n\t update = crossfilter_null;\n\t reset = crossfilter_null;\n\t }\n\t groupIndex = null;\n\t }\n\t filterListeners[j] = update;\n\n\t // Count the number of added groups,\n\t // and widen the group index as needed.\n\t function groupIncrement() {\n\t if (++k === groupCapacity) {\n\t reIndex = crossfilter_arrayWiden(reIndex, groupWidth <<= 1);\n\t groupIndex = crossfilter_arrayWiden(groupIndex, groupWidth);\n\t groupCapacity = crossfilter_capacity(groupWidth);\n\t }\n\t }\n\t }\n\n\t function removeData() {\n\t if (k > 1) {\n\t var oldK = k,\n\t oldGroups = groups,\n\t seenGroups = crossfilter_index(oldK, oldK);\n\n\t // Filter out non-matches by copying matching group index entries to\n\t // the beginning of the array.\n\t for (var i = 0, j = 0; i < n; ++i) {\n\t if (filters[i]) {\n\t seenGroups[groupIndex[j] = groupIndex[i]] = 1;\n\t ++j;\n\t }\n\t }\n\n\t // Reassemble groups including only those groups that were referred\n\t // to by matching group index entries. Note the new group index in\n\t // seenGroups.\n\t groups = [], k = 0;\n\t for (i = 0; i < oldK; ++i) {\n\t if (seenGroups[i]) {\n\t seenGroups[i] = k++;\n\t groups.push(oldGroups[i]);\n\t }\n\t }\n\n\t if (k > 1) {\n\t // Reindex the group index using seenGroups to find the new index.\n\t for (var i = 0; i < j; ++i) groupIndex[i] = seenGroups[groupIndex[i]];\n\t } else {\n\t groupIndex = null;\n\t }\n\t filterListeners[filterListeners.indexOf(update)] = k > 1\n\t ? (reset = resetMany, update = updateMany)\n\t : k === 1 ? (reset = resetOne, update = updateOne)\n\t : reset = update = crossfilter_null;\n\t } else if (k === 1) {\n\t if (groupAll) return;\n\t for (var i = 0; i < n; ++i) if (filters[i]) return;\n\t groups = [], k = 0;\n\t filterListeners[filterListeners.indexOf(update)] =\n\t update = reset = crossfilter_null;\n\t }\n\t }\n\n\t // Reduces the specified selected or deselected records.\n\t // This function is only used when the cardinality is greater than 1.\n\t function updateMany(filterOne, added, removed) {\n\t if (filterOne === one || resetNeeded) return;\n\n\t var i,\n\t k,\n\t n,\n\t g;\n\n\t // Add the added values.\n\t for (i = 0, n = added.length; i < n; ++i) {\n\t if (!(filters[k = added[i]] & zero)) {\n\t g = groups[groupIndex[k]];\n\t g.value = reduceAdd(g.value, data[k]);\n\t }\n\t }\n\n\t // Remove the removed values.\n\t for (i = 0, n = removed.length; i < n; ++i) {\n\t if ((filters[k = removed[i]] & zero) === filterOne) {\n\t g = groups[groupIndex[k]];\n\t g.value = reduceRemove(g.value, data[k]);\n\t }\n\t }\n\t }\n\n\t // Reduces the specified selected or deselected records.\n\t // This function is only used when the cardinality is 1.\n\t function updateOne(filterOne, added, removed) {\n\t if (filterOne === one || resetNeeded) return;\n\n\t var i,\n\t k,\n\t n,\n\t g = groups[0];\n\n\t // Add the added values.\n\t for (i = 0, n = added.length; i < n; ++i) {\n\t if (!(filters[k = added[i]] & zero)) {\n\t g.value = reduceAdd(g.value, data[k]);\n\t }\n\t }\n\n\t // Remove the removed values.\n\t for (i = 0, n = removed.length; i < n; ++i) {\n\t if ((filters[k = removed[i]] & zero) === filterOne) {\n\t g.value = reduceRemove(g.value, data[k]);\n\t }\n\t }\n\t }\n\n\t // Recomputes the group reduce values from scratch.\n\t // This function is only used when the cardinality is greater than 1.\n\t function resetMany() {\n\t var i,\n\t g;\n\n\t // Reset all group values.\n\t for (i = 0; i < k; ++i) {\n\t groups[i].value = reduceInitial();\n\t }\n\n\t // Add any selected records.\n\t for (i = 0; i < n; ++i) {\n\t if (!(filters[i] & zero)) {\n\t g = groups[groupIndex[i]];\n\t g.value = reduceAdd(g.value, data[i]);\n\t }\n\t }\n\t }\n\n\t // Recomputes the group reduce values from scratch.\n\t // This function is only used when the cardinality is 1.\n\t function resetOne() {\n\t var i,\n\t g = groups[0];\n\n\t // Reset the singleton group values.\n\t g.value = reduceInitial();\n\n\t // Add any selected records.\n\t for (i = 0; i < n; ++i) {\n\t if (!(filters[i] & zero)) {\n\t g.value = reduceAdd(g.value, data[i]);\n\t }\n\t }\n\t }\n\n\t // Returns the array of group values, in the dimension's natural order.\n\t function all() {\n\t if (resetNeeded) reset(), resetNeeded = false;\n\t return groups;\n\t }\n\n\t // Returns a new array containing the top K group values, in reduce order.\n\t function top(k) {\n\t var top = select(all(), 0, groups.length, k);\n\t return heap.sort(top, 0, top.length);\n\t }\n\n\t // Sets the reduce behavior for this group to use the specified functions.\n\t // This method lazily recomputes the reduce values, waiting until needed.\n\t function reduce(add, remove, initial) {\n\t reduceAdd = add;\n\t reduceRemove = remove;\n\t reduceInitial = initial;\n\t resetNeeded = true;\n\t return group;\n\t }\n\n\t // A convenience method for reducing by count.\n\t function reduceCount() {\n\t return reduce(crossfilter_reduceIncrement, crossfilter_reduceDecrement, crossfilter_zero);\n\t }\n\n\t // A convenience method for reducing by sum(value).\n\t function reduceSum(value) {\n\t return reduce(crossfilter_reduceAdd(value), crossfilter_reduceSubtract(value), crossfilter_zero);\n\t }\n\n\t // Sets the reduce order, using the specified accessor.\n\t function order(value) {\n\t select = heapselect_by(valueOf);\n\t heap = heap_by(valueOf);\n\t function valueOf(d) { return value(d.value); }\n\t return group;\n\t }\n\n\t // A convenience method for natural ordering by reduce value.\n\t function orderNatural() {\n\t return order(crossfilter_identity);\n\t }\n\n\t // Returns the cardinality of this group, irrespective of any filters.\n\t function size() {\n\t return k;\n\t }\n\n\t // Removes this group and associated event listeners.\n\t function dispose() {\n\t var i = filterListeners.indexOf(update);\n\t if (i >= 0) filterListeners.splice(i, 1);\n\t i = indexListeners.indexOf(add);\n\t if (i >= 0) indexListeners.splice(i, 1);\n\t i = removeDataListeners.indexOf(removeData);\n\t if (i >= 0) removeDataListeners.splice(i, 1);\n\t return group;\n\t }\n\n\t return reduceCount().orderNatural();\n\t }\n\n\t // A convenience function for generating a singleton group.\n\t function groupAll() {\n\t var g = group(crossfilter_null), all = g.all;\n\t delete g.all;\n\t delete g.top;\n\t delete g.order;\n\t delete g.orderNatural;\n\t delete g.size;\n\t g.value = function() { return all()[0].value; };\n\t return g;\n\t }\n\n\t // Removes this dimension and associated groups and event listeners.\n\t function dispose() {\n\t dimensionGroups.forEach(function(group) { group.dispose(); });\n\t var i = dataListeners.indexOf(preAdd);\n\t if (i >= 0) dataListeners.splice(i, 1);\n\t i = dataListeners.indexOf(postAdd);\n\t if (i >= 0) dataListeners.splice(i, 1);\n\t i = removeDataListeners.indexOf(removeData);\n\t if (i >= 0) removeDataListeners.splice(i, 1);\n\t m &= zero;\n\t return filterAll();\n\t }\n\n\t return dimension;\n\t }", "removeDimension(propertyChangedHandler, changeValueDimensions) {\n const that = this,\n index = that._dimensions.length - 1;\n\n if (that._dimensions.length < 2) {\n return;\n }\n\n if (that._dimensions.length === 2) {\n const oldRowsCount = that.rows;\n\n that.rows = 1;\n that._changeRowsColumns('rows', oldRowsCount, 1, undefined, true);\n }\n\n that.$.indexerContainer.removeChild(that._dimensions[index].indexer);\n that._dimensions.pop();\n\n let indexerValue;\n\n if (that.arrayIndexingMode === 'LabVIEW') {\n indexerValue = that._coordinates[0];\n that._indexers.splice(0, 1);\n that._coordinates.splice(0, 1);\n }\n else {\n indexerValue = that._coordinates[index];\n that._indexers.pop();\n that._coordinates.pop();\n }\n\n if (that._suppressDimensionChange !== true) {\n that.dimensions -= 1;\n that.$.fireEvent('dimensionChange', { 'type': 'remove' });\n }\n\n if (changeValueDimensions !== false) {\n that._removeDimensionFromJSArray();\n\n if (that.arrayIndexingMode === 'LabVIEW') {\n that._filledUpTo.splice(0, 1);\n }\n else {\n that._filledUpTo.pop();\n }\n }\n\n if (that._absoluteSelectionStart !== undefined) {\n if (that.arrayIndexingMode === 'LabVIEW') {\n that._absoluteSelectionStart.splice(0, 1);\n }\n else {\n that._absoluteSelectionStart.pop();\n }\n }\n\n if (that._absoluteSelectionEnd !== undefined) {\n if (that.arrayIndexingMode === 'LabVIEW') {\n that._absoluteSelectionEnd.splice(0, 1);\n }\n else {\n that._absoluteSelectionEnd.pop();\n }\n }\n\n if (indexerValue > 0) {\n that._scroll();\n }\n\n if ((that.dimensions > 1 && that._suppressDimensionChange === false && that.showIndexDisplay === true && ((that.dimensions + 1) * (that.indexerHeight + 4) - 2 >= that._cachedHeight)) || that.dimensions === 1 && propertyChangedHandler !== true) {\n that._updateWidgetHeight('dimensions');\n if (that.dimensions === 1 && that.showVerticalScrollbar) {\n that._showVerticalScrollbar(false);\n }\n }\n }", "function DynamicDataView(arrayBufferOrSize)\r\n{\r\n var mySize;\r\n var myArrayBuffer;\r\n \r\n if (arrayBufferOrSize.constructor === ArrayBuffer)\r\n {\r\n mySize = arrayBufferOrSize.byteLength;\r\n myArrayBuffer = arrayBufferOrSize;\r\n }\r\n else\r\n {\r\n mySize = arrayBufferOrSize;\r\n myArrayBuffer = new ArrayBuffer(mySize);\r\n }\r\n \r\n var myDataView = new DataView(myArrayBuffer);\r\n\r\n \r\n this.getArrayBuffer = function()\r\n {\r\n return myArrayBuffer;\r\n }\r\n \r\n this.readBytes = function(idx, size)\r\n {\r\n var anArrayBuffer = myDataView.buffer;\r\n \r\n // Get bytes in ArrayBuffer.\r\n var aResult = anArrayBuffer.slice(idx, idx + size);\r\n return aResult;\r\n }\r\n \r\n this.writeBytes = function(idx, arrayBuffer)\r\n {\r\n var aMinimalSize = idx + arrayBuffer.byteLength;\r\n expand(aMinimalSize);\r\n \r\n // Copy incoming array buffer.\r\n new Uint8Array(myArrayBuffer, idx).set(new Uint8Array(arrayBuffer));\r\n }\r\n \r\n this.getInt32 = function(idx, isLittleEndian)\r\n {\r\n return myDataView.getInt32(idx, isLittleEndian);\r\n }\r\n \r\n this.setInt32 = function(idx, value, isLittleEndian)\r\n {\r\n expand(idx + 4);\r\n myDataView.setInt32(idx, value, isLittleEndian);\r\n }\r\n \r\n this.getUint16 = function(idx, isLittleEndian)\r\n {\r\n return myDataView.getUint16(idx, isLittleEndian);\r\n }\r\n \r\n this.setUint16 = function(idx, value, isLittleEndian)\r\n {\r\n expand(idx + 2);\r\n myDataView.setUint16(idx, value, isLittleEndian);\r\n }\r\n \r\n this.getUint8 = function(idx)\r\n {\r\n return myDataView.getUint8(idx);\r\n }\r\n \r\n this.setUint8 = function(idx, value)\r\n {\r\n expand(idx + 1);\r\n myDataView.setUint8(idx, value);\r\n }\r\n \r\n var expand = function(minimalSize)\r\n {\r\n if (minimalSize <= mySize)\r\n {\r\n // nothing to do.\r\n return;\r\n }\r\n \r\n // Create new\r\n var aNewSize = minimalSize + 50;\r\n var aNewArrayBuffer = new ArrayBuffer(aNewSize);\r\n \r\n // Copy\r\n new Uint8Array(aNewArrayBuffer).set(new Uint8Array(myArrayBuffer));\r\n \r\n // Set new\r\n mySize = aNewSize;\r\n myArrayBuffer = aNewArrayBuffer;\r\n myDataView = new DataView(myArrayBuffer);\r\n }\r\n}", "loadArrayIntoNdframe({ data, index, columns, dtypes }) {\n // this.$data = utils.replaceUndefinedWithNaN(data, this.$isSeries);\n this.$data = data;\n if (!this.$config.isLowMemoryMode) {\n //In NOT low memory mode, we transpose the array and save in column format.\n //This makes column data retrieval run in constant time\n this.$dataIncolumnFormat = utils.transposeArray(data);\n }\n this.$setIndex(index);\n this.$setDtypes(dtypes);\n this.$setColumnNames(columns);\n }", "_addRemoveMultipleDimensions(oldvalue, value, changeValueDimensions) {\n const that = this;\n\n if (value < 1 || value > 32) {\n that.dimensions = 1;\n\n if (that.dimensions === oldvalue) {\n return;\n }\n }\n\n let difference = that.dimensions - oldvalue;\n\n that._suppressDimensionChange = true;\n\n if (difference > 0) {\n do {\n that.addDimension(changeValueDimensions);\n difference -= 1;\n } while (difference > 0);\n\n that.$.fireEvent('dimensionChange', { 'type': 'add' });\n }\n else if (difference < 0) {\n if (value === 1) {\n const oldRowsCount = that.rows;\n\n that.rows = 1;\n that.dimensions = oldvalue;\n that._changeRowsColumns('rows', oldRowsCount, 1, undefined, true);\n that.dimensions = value;\n }\n do {\n that.removeDimension(true, changeValueDimensions);\n difference += 1;\n } while (difference < 0);\n\n that.$.fireEvent('dimensionChange', { 'type': 'remove' });\n\n if (value === 1 && that.showVerticalScrollbar) {\n that._showVerticalScrollbar(false);\n }\n }\n else {\n return;\n }\n\n that._suppressDimensionChange = false;\n\n if (that.showIndexDisplay === true &&\n !(value !== 1 &&\n ((value - oldvalue > 0 && value * (that.indexerHeight + 4) - 2 < that._cachedHeight) ||\n (value - oldvalue < 0 && oldvalue * (that.indexerHeight + 4) - 2 < that._cachedHeight))) ||\n value === 1) {\n that._updateWidgetHeight('dimensions');\n }\n }", "static dataArray (length = 0) {\n if (Uint8ClampedArray) {\n return new Uint8ClampedArray(length)\n }\n return new Array(length)\n }", "parseArrayDimension () {\n const dimToken = this.getToken();\n if(dimToken.type === this.lexerClass.INTEGER) {\n //parse as int literal\n this.pos++;\n return this.getIntLiteral(dimToken);\n } else if(dimToken.type === this.lexerClass.ID) {\n //parse as variable\n this.pos++;\n return this.parseVariable(dimToken);\n } else {\n throw SyntaxErrorFactory.invalid_array_dimension(this.lexer.literalNames[this.lexerClass.RK_INTEGER], dimToken);\n }\n }", "fillDataset (docs) {\n if (!docs) return\n\n const numFields = this.reactiveState.fieldNames.length\n const obj = this.plainState.dataset = this.plainState.dataset || {}\n\n docs.forEach(doc => {\n // Lookup field index in memory\n const index = this.plainState.datastreamIdsToFieldIndex[doc._id]\n if (typeof index !== 'number') return\n\n if (doc.datapoints && doc.datapoints.data && doc.datapoints.data.length > 0) {\n /*\n Iterate over datapoints; build-out pivot table with 'time' as the key\n */\n doc.datapoints.data.forEach(point => {\n const time = (new Date(point.t)).getTime() + (typeof point.o === 'number' ? point.o * 1000 : 0)\n if (!obj[time]) obj[time] = new Array(numFields).fill(null)\n obj[time][index] = point.v\n console.log('>>>', point.v)\n })\n }\n })\n }", "function dimension(value) {\n var dimension = {\n filter: filter,\n filterExact: filterExact,\n filterRange: filterRange,\n filterAll: filterAll,\n top: top,\n bottom: bottom,\n group: group,\n groupAll: groupAll,\n remove: remove\n };\n\n var one = ~m & -~m, // lowest unset bit as mask, e.g., 00001000\n zero = ~one, // inverted one, e.g., 11110111\n values, // sorted, cached array\n index, // value rank ↦ object id\n newValues, // temporary array storing newly-added values\n newIndex, // temporary array storing newly-added index\n sort = quicksort_by(function(i) { return newValues[i]; }),\n refilter = crossfilter_filterAll, // for recomputing filter\n indexListeners = [], // when data is added\n dimensionGroups = [],\n lo0 = 0,\n hi0 = 0;\n\n // Updating a dimension is a two-stage process. First, we must update the\n // associated filters for the newly-added records. Once all dimensions have\n // updated their filters, the groups are notified to update.\n dataListeners.unshift(preAdd);\n dataListeners.push(postAdd);\n\n // Incorporate any existing data into this dimension, and make sure that the\n // filter bitset is wide enough to handle the new dimension.\n m |= one;\n if (M >= 32 ? !one : m & (1 << M) - 1) {\n filters = crossfilter_arrayWiden(filters, M <<= 1);\n }\n preAdd(data, 0, n);\n postAdd(data, 0, n);\n\n // Incorporates the specified new records into this dimension.\n // This function is responsible for updating filters, values, and index.\n function preAdd(newData, n0, n1) {\n\n // Permute new values into natural order using a sorted index.\n newValues = newData.map(value);\n newIndex = sort(crossfilter_range(n1), 0, n1);\n newValues = permute(newValues, newIndex);\n\n // Bisect newValues to determine which new records are selected.\n var bounds = refilter(newValues), lo1 = bounds[0], hi1 = bounds[1], i;\n for (i = 0; i < lo1; ++i) filters[newIndex[i] + n0] |= one;\n for (i = hi1; i < n1; ++i) filters[newIndex[i] + n0] |= one;\n\n // If this dimension previously had no data, then we don't need to do the\n // more expensive merge operation; use the new values and index as-is.\n if (!n0) {\n values = newValues;\n index = newIndex;\n lo0 = lo1;\n hi0 = hi1;\n return;\n }\n\n var oldValues = values,\n oldIndex = index,\n i0 = 0,\n i1 = 0;\n\n // Otherwise, create new arrays into which to merge new and old.\n values = new Array(n);\n index = crossfilter_index(n, n);\n\n // Merge the old and new sorted values, and old and new index.\n for (i = 0; i0 < n0 && i1 < n1; ++i) {\n if (oldValues[i0] < newValues[i1]) {\n values[i] = oldValues[i0];\n index[i] = oldIndex[i0++];\n } else {\n values[i] = newValues[i1];\n index[i] = newIndex[i1++] + n0;\n }\n }\n\n // Add any remaining old values.\n for (; i0 < n0; ++i0, ++i) {\n values[i] = oldValues[i0];\n index[i] = oldIndex[i0];\n }\n\n // Add any remaining new values.\n for (; i1 < n1; ++i1, ++i) {\n values[i] = newValues[i1];\n index[i] = newIndex[i1] + n0;\n }\n\n // Bisect again to recompute lo0 and hi0.\n bounds = refilter(values), lo0 = bounds[0], hi0 = bounds[1];\n }\n\n // When all filters have updated, notify index listeners of the new values.\n function postAdd(newData, n0, n1) {\n indexListeners.forEach(function(l) { l(newValues, newIndex, n0, n1); });\n newValues = newIndex = null;\n }\n\n // Updates the selected values based on the specified bounds [lo, hi].\n // This implementation is used by all the public filter methods.\n function filterIndex(bounds) {\n var i,\n j,\n k,\n lo1 = bounds[0],\n hi1 = bounds[1],\n added = [],\n removed = [];\n\n // Fast incremental update based on previous lo index.\n if (lo1 < lo0) {\n for (i = lo1, j = Math.min(lo0, hi1); i < j; ++i) {\n filters[k = index[i]] ^= one;\n added.push(k);\n }\n } else if (lo1 > lo0) {\n for (i = lo0, j = Math.min(lo1, hi0); i < j; ++i) {\n filters[k = index[i]] ^= one;\n removed.push(k);\n }\n }\n\n // Fast incremental update based on previous hi index.\n if (hi1 > hi0) {\n for (i = Math.max(lo1, hi0), j = hi1; i < j; ++i) {\n filters[k = index[i]] ^= one;\n added.push(k);\n }\n } else if (hi1 < hi0) {\n for (i = Math.max(lo0, hi1), j = hi0; i < j; ++i) {\n filters[k = index[i]] ^= one;\n removed.push(k);\n }\n }\n\n lo0 = lo1;\n hi0 = hi1;\n filterListeners.forEach(function(l) { l(one, added, removed); });\n return dimension;\n }\n\n // Filters this dimension using the specified range, value, or null.\n // If the range is null, this is equivalent to filterAll.\n // If the range is an array, this is equivalent to filterRange.\n // Otherwise, this is equivalent to filterExact.\n function filter(range) {\n return range == null\n ? filterAll() : Array.isArray(range)\n ? filterRange(range)\n : filterExact(range);\n }\n\n // Filters this dimension to select the exact value.\n function filterExact(value) {\n return filterIndex((refilter = crossfilter_filterExact(bisect, value))(values));\n }\n\n // Filters this dimension to select the specified range [lo, hi].\n // The lower bound is inclusive, and the upper bound is exclusive.\n function filterRange(range) {\n return filterIndex((refilter = crossfilter_filterRange(bisect, range))(values));\n }\n\n // Clears any filters on this dimension.\n function filterAll() {\n return filterIndex((refilter = crossfilter_filterAll)(values));\n }\n\n // Returns the top K selected records based on this dimension's order.\n // Note: observes this dimension's filter, unlike group and groupAll.\n function top(k) {\n var array = [],\n i = hi0,\n j;\n\n while (--i >= lo0 && k > 0) {\n if (!filters[j = index[i]]) {\n array.push(data[j]);\n --k;\n }\n }\n\n return array;\n }\n\n // Returns the bottom K selected records based on this dimension's order.\n // Note: observes this dimension's filter, unlike group and groupAll.\n function bottom(k) {\n var array = [],\n i = lo0,\n j;\n\n while (i < hi0 && k > 0) {\n if (!filters[j = index[i]]) {\n array.push(data[j]);\n --k;\n }\n i++;\n }\n\n return array;\n }\n\n // Adds a new group to this dimension, using the specified key function.\n function group(key) {\n var group = {\n top: top,\n all: all,\n reduce: reduce,\n reduceCount: reduceCount,\n reduceSum: reduceSum,\n order: order,\n orderNatural: orderNatural,\n size: size,\n remove: remove\n };\n\n // Ensure that this group will be removed when the dimension is removed.\n dimensionGroups.push(group);\n\n var groups, // array of {key, value}\n groupIndex, // object id ↦ group id\n groupWidth = 8,\n groupCapacity = crossfilter_capacity(groupWidth),\n k = 0, // cardinality\n select,\n heap,\n reduceAdd,\n reduceRemove,\n reduceInitial,\n update = crossfilter_null,\n reset = crossfilter_null,\n resetNeeded = true;\n\n if (arguments.length < 1) key = crossfilter_identity;\n\n // The group listens to the crossfilter for when any dimension changes, so\n // that it can update the associated reduce values. It must also listen to\n // the parent dimension for when data is added, and compute new keys.\n filterListeners.push(update);\n indexListeners.push(add);\n\n // Incorporate any existing data into the grouping.\n add(values, index, 0, n);\n\n // Incorporates the specified new values into this group.\n // This function is responsible for updating groups and groupIndex.\n function add(newValues, newIndex, n0, n1) {\n var oldGroups = groups,\n reIndex = crossfilter_index(k, groupCapacity),\n add = reduceAdd,\n initial = reduceInitial,\n k0 = k, // old cardinality\n i0 = 0, // index of old group\n i1 = 0, // index of new record\n j, // object id\n g0, // old group\n x0, // old key\n x1, // new key\n g, // group to add\n x; // key of group to add\n\n // If a reset is needed, we don't need to update the reduce values.\n if (resetNeeded) add = initial = crossfilter_null;\n\n // Reset the new groups (k is a lower bound).\n // Also, make sure that groupIndex exists and is long enough.\n groups = new Array(k), k = 0;\n groupIndex = k0 > 1 ? crossfilter_arrayLengthen(groupIndex, n) : crossfilter_index(n, groupCapacity);\n\n // Get the first old key (x0 of g0), if it exists.\n if (k0) x0 = (g0 = oldGroups[0]).key;\n\n // Find the first new key (x1).\n x1 = key(newValues[i1]);\n\n // While new keys remain…\n while (i1 < n1) {\n\n // Determine the lesser of the two current keys; new and old.\n // If there are no old keys remaining, then always add the new key.\n if (g0 && x0 <= x1) {\n g = g0, x = x0;\n\n // Record the new index of the old group.\n reIndex[i0] = k;\n\n // Retrieve the next old key.\n if (g0 = oldGroups[++i0]) x0 = g0.key;\n } else {\n g = {key: x1, value: initial()}, x = x1;\n }\n\n // Add the lesser group.\n groups[k] = g;\n\n // Add any selected records belonging to the added group, while\n // advancing the new key and populating the associated group index.\n while (x1 <= x || !(x1 <= x1) && !(x <= x)) {\n groupIndex[j = newIndex[i1] + n0] = k;\n if (!(filters[j] & zero)) g.value = add(g.value, data[j]);\n if (++i1 >= n1) break;\n x1 = key(newValues[i1]);\n }\n\n groupIncrement();\n }\n\n // Add any remaining old groups that were greater than all new keys.\n // No incremental reduce is needed; these groups have no new records.\n // Also record the new index of the old group.\n while (i0 < k0) {\n groups[reIndex[i0] = k] = oldGroups[i0++];\n groupIncrement();\n }\n\n // If we added any new groups before any old groups,\n // update the group index of all the old records.\n if (k > i0) for (i0 = 0; i0 < n0; ++i0) {\n groupIndex[i0] = reIndex[groupIndex[i0]];\n }\n\n // Modify the update and reset behavior based on the cardinality.\n // If the cardinality is less than or equal to one, then the groupIndex\n // is not needed. If the cardinality is zero, then there are no records\n // and therefore no groups to update or reset. Note that we also must\n // change the registered listener to point to the new method.\n j = filterListeners.indexOf(update);\n if (k > 1) {\n update = updateMany;\n reset = resetMany;\n } else {\n if (k === 1) {\n update = updateOne;\n reset = resetOne;\n } else {\n update = crossfilter_null;\n reset = crossfilter_null;\n }\n groupIndex = null;\n }\n filterListeners[j] = update;\n\n // Count the number of added groups,\n // and widen the group index as needed.\n function groupIncrement() {\n if (++k === groupCapacity) {\n reIndex = crossfilter_arrayWiden(reIndex, groupWidth <<= 1);\n groupIndex = crossfilter_arrayWiden(groupIndex, groupWidth);\n groupCapacity = crossfilter_capacity(groupWidth);\n }\n }\n }\n\n // Reduces the specified selected or deselected records.\n // This function is only used when the cardinality is greater than 1.\n function updateMany(filterOne, added, removed) {\n if (filterOne === one || resetNeeded) return;\n\n if (!reduceRemove && removed.length) {\n resetNeeded = true;\n return;\n }\n\n var i,\n k,\n n,\n g;\n\n // Add the added values.\n for (i = 0, n = added.length; i < n; ++i) {\n if (!(filters[k = added[i]] & zero)) {\n g = groups[groupIndex[k]];\n g.value = reduceAdd(g.value, data[k]);\n }\n }\n\n // Remove the removed values.\n for (i = 0, n = removed.length; i < n; ++i) {\n if ((filters[k = removed[i]] & zero) === filterOne) {\n g = groups[groupIndex[k]];\n g.value = reduceRemove(g.value, data[k]);\n }\n }\n }\n\n // Reduces the specified selected or deselected records.\n // This function is only used when the cardinality is 1.\n function updateOne(filterOne, added, removed) {\n if (filterOne === one || resetNeeded) return;\n\n if (!reduceRemove && removed.length) {\n resetNeeded = true;\n return;\n }\n\n var i,\n k,\n n,\n g = groups[0];\n\n // Add the added values.\n for (i = 0, n = added.length; i < n; ++i) {\n if (!(filters[k = added[i]] & zero)) {\n g.value = reduceAdd(g.value, data[k]);\n }\n }\n\n // Remove the removed values.\n for (i = 0, n = removed.length; i < n; ++i) {\n if ((filters[k = removed[i]] & zero) === filterOne) {\n g.value = reduceRemove(g.value, data[k]);\n }\n }\n }\n\n // Recomputes the group reduce values from scratch.\n // This function is only used when the cardinality is greater than 1.\n function resetMany() {\n var i,\n g;\n\n // Reset all group values.\n for (i = 0; i < k; ++i) {\n groups[i].value = reduceInitial();\n }\n\n // Add any selected records.\n for (i = 0; i < n; ++i) {\n if (!(filters[i] & zero)) {\n g = groups[groupIndex[i]];\n g.value = reduceAdd(g.value, data[i]);\n }\n }\n }\n\n // Recomputes the group reduce values from scratch.\n // This function is only used when the cardinality is 1.\n function resetOne() {\n var i,\n g = groups[0];\n\n // Reset the singleton group values.\n g.value = reduceInitial();\n\n // Add any selected records.\n for (i = 0; i < n; ++i) {\n if (!(filters[i] & zero)) {\n g.value = reduceAdd(g.value, data[i]);\n }\n }\n }\n\n // Returns the array of group values, in the dimension's natural order.\n function all() {\n if (resetNeeded) reset(), resetNeeded = false;\n return groups;\n }\n\n // Returns a new array containing the top K group values, in reduce order.\n function top(k) {\n var top = select(all(), 0, groups.length, k);\n return heap.sort(top, 0, top.length);\n }\n\n // Sets the reduce behavior for this group to use the specified functions.\n // This method lazily recomputes the reduce values, waiting until needed.\n function reduce(add, remove, initial) {\n reduceAdd = add;\n reduceRemove = remove;\n reduceInitial = initial;\n resetNeeded = true;\n return group;\n }\n\n // A convenience method for reducing by count.\n function reduceCount() {\n return reduce(crossfilter_reduceIncrement, crossfilter_reduceDecrement, crossfilter_zero);\n }\n\n // A convenience method for reducing by sum(value).\n function reduceSum(value) {\n return reduce(crossfilter_reduceAdd(value), crossfilter_reduceSubtract(value), crossfilter_zero);\n }\n\n // Sets the reduce order, using the specified accessor.\n function order(value) {\n select = heapselect_by(valueOf);\n heap = heap_by(valueOf);\n function valueOf(d) { return value(d.value); }\n return group;\n }\n\n // A convenience method for natural ordering by reduce value.\n function orderNatural() {\n return order(crossfilter_identity);\n }\n\n // Returns the cardinality of this group, irrespective of any filters.\n function size() {\n return k;\n }\n\n // Removes this group and associated event listeners.\n function remove() {\n var i = filterListeners.indexOf(update);\n if (i >= 0) filterListeners.splice(i, 1);\n i = indexListeners.indexOf(add);\n if (i >= 0) indexListeners.splice(i, 1);\n return group;\n }\n\n return reduceCount().orderNatural();\n }\n\n // A convenience function for generating a singleton group.\n function groupAll() {\n var g = group(crossfilter_null), all = g.all;\n delete g.all;\n delete g.top;\n delete g.order;\n delete g.orderNatural;\n delete g.size;\n g.value = function() { return all()[0].value; };\n return g;\n }\n\n function remove() {\n dimensionGroups.forEach(function(group) { group.remove(); });\n var i = dataListeners.indexOf(preAdd);\n if (i >= 0) dataListeners.splice(i, 1);\n i = dataListeners.indexOf(postAdd);\n if (i >= 0) dataListeners.splice(i, 1);\n for (i = 0; i < n; ++i) filters[i] &= zero;\n m &= zero;\n return dimension;\n }\n\n return dimension;\n }", "get arraySize() {}", "function summarizeDimensions(data) {\n var summary = {};\n var encode = summary.encode = {};\n var notExtraCoordDimMap = Object(util[\"g\" /* createHashMap */])();\n var defaultedLabel = [];\n var defaultedTooltip = []; // See the comment of `List.js#userOutput`.\n\n var userOutput = summary.userOutput = {\n dimensionNames: data.dimensions.slice(),\n encode: {}\n };\n Object(util[\"k\" /* each */])(data.dimensions, function (dimName) {\n var dimItem = data.getDimensionInfo(dimName);\n var coordDim = dimItem.coordDim;\n\n if (coordDim) {\n if (false) {}\n\n var coordDimIndex = dimItem.coordDimIndex;\n getOrCreateEncodeArr(encode, coordDim)[coordDimIndex] = dimName;\n\n if (!dimItem.isExtraCoord) {\n notExtraCoordDimMap.set(coordDim, 1); // Use the last coord dim (and label friendly) as default label,\n // because when dataset is used, it is hard to guess which dimension\n // can be value dimension. If both show x, y on label is not look good,\n // and conventionally y axis is focused more.\n\n if (mayLabelDimType(dimItem.type)) {\n defaultedLabel[0] = dimName;\n } // User output encode do not contain generated coords.\n // And it only has index. User can use index to retrieve value from the raw item array.\n\n\n getOrCreateEncodeArr(userOutput.encode, coordDim)[coordDimIndex] = dimItem.index;\n }\n\n if (dimItem.defaultTooltip) {\n defaultedTooltip.push(dimName);\n }\n }\n\n util_types[\"i\" /* VISUAL_DIMENSIONS */].each(function (v, otherDim) {\n var encodeArr = getOrCreateEncodeArr(encode, otherDim);\n var dimIndex = dimItem.otherDims[otherDim];\n\n if (dimIndex != null && dimIndex !== false) {\n encodeArr[dimIndex] = dimItem.name;\n }\n });\n });\n var dataDimsOnCoord = [];\n var encodeFirstDimNotExtra = {};\n notExtraCoordDimMap.each(function (v, coordDim) {\n var dimArr = encode[coordDim];\n encodeFirstDimNotExtra[coordDim] = dimArr[0]; // Not necessary to remove duplicate, because a data\n // dim canot on more than one coordDim.\n\n dataDimsOnCoord = dataDimsOnCoord.concat(dimArr);\n });\n summary.dataDimsOnCoord = dataDimsOnCoord;\n summary.encodeFirstDimNotExtra = encodeFirstDimNotExtra;\n var encodeLabel = encode.label; // FIXME `encode.label` is not recommanded, because formatter can not be set\n // in this way. Use label.formatter instead. May be remove this approach someday.\n\n if (encodeLabel && encodeLabel.length) {\n defaultedLabel = encodeLabel.slice();\n }\n\n var encodeTooltip = encode.tooltip;\n\n if (encodeTooltip && encodeTooltip.length) {\n defaultedTooltip = encodeTooltip.slice();\n } else if (!defaultedTooltip.length) {\n defaultedTooltip = defaultedLabel.slice();\n }\n\n encode.defaultedLabel = defaultedLabel;\n encode.defaultedTooltip = defaultedTooltip;\n return summary;\n}", "getMetrics() {\n return {\n contentLength: this.scrollProperties.contentLength,\n totalRows: this.props.dataSource.getRowCount(),\n renderedRows: this.state.curRenderedRowsCount,\n visibleRows: Object.keys(this._visibleRows).length,\n };\n }", "_changeRowsColumns(key, oldvalue, value, reset, suppressHeightUpdate) {\n const that = this,\n functionName = '_addRemove' + key.charAt(0).toUpperCase() + key.slice(1, key.length - 1);\n\n if (value < 1) {\n that[key] = 1;\n\n if (that[key] === oldvalue) {\n return;\n }\n }\n\n if (that.dimensions === 1) {\n if (that._oneDimensionSpecialCase === true) {\n if (key === 'columns' && that[key] > 1) {\n if (that.rows > 1) {\n that.columns = 1;\n return;\n }\n\n that._oneDimensionSpecialCase = false;\n if (that.showVerticalScrollbar) {\n that._showVerticalScrollbar(false);\n that._showHorizontalScrollbar(true);\n }\n }\n }\n else {\n if (key === 'rows') {\n if (that.columns > 1) {\n that.rows = 1;\n return;\n }\n else if (that.rows > 1) {\n that._oneDimensionSpecialCase = true;\n if (that.showHorizontalScrollbar === true) {\n that._showHorizontalScrollbar(false);\n that._showVerticalScrollbar(true);\n }\n }\n }\n }\n }\n\n let difference = that[key] - oldvalue;\n\n that[key] = oldvalue;\n\n if (difference > 0) {\n that._suppressScroll = true;\n\n do {\n that[functionName]('add');\n difference -= 1;\n } while (difference > 0);\n\n that._suppressScroll = false;\n that._scroll();\n }\n else if (difference < 0) {\n do {\n that[functionName]('remove');\n difference += 1;\n } while (difference < 0);\n }\n\n that.$.fireEvent('arraySizeChange', { 'type': key, 'number': that[key], 'oldNumber': oldvalue });\n\n if (key === 'columns') {\n that._updateWidgetWidth();\n that._setMaxValuesOfScrollBars('horizontal');\n }\n else if (key === 'rows' && suppressHeightUpdate !== true) {\n that._updateWidgetHeight(reset === true ? 'dimensions' : undefined);\n that._setMaxValuesOfScrollBars('vertical');\n }\n }", "get getColumnData() {\n if (this.config.isLowMemoryMode) {\n return utils.transposeArray(this.values);\n } else {\n return this.$dataIncolumnFormat;\n }\n }", "set arraySize(value) {}", "get shape() {\n if (this.$data.length === 0) return [0, 0];\n if (this.$isSeries) {\n return [this.$data.length, 1];\n } else {\n const rowLen = (this.$data).length;\n const colLen = (this.$data[0]).length;\n return [rowLen, colLen];\n }\n\n }", "_fillValueArray(changedValueDimensions, skipOverride) {\n const that = this,\n dimensions = that.dimensions;\n\n if (that._filledUpTo !== undefined && skipOverride !== true) {\n let skipFill = true;\n\n for (let a = 0; a < changedValueDimensions.length; a++) {\n skipFill = skipFill && (that._filledUpTo[a] >= changedValueDimensions[a]);\n changedValueDimensions[a] = Math.max(changedValueDimensions[a], that._filledUpTo[a]);\n }\n\n if (skipFill === true) {\n that._scroll();\n return;\n }\n }\n\n that._filledUpTo = changedValueDimensions.slice(0);\n\n function recursion(arr, level) {\n for (let i = 0; i <= changedValueDimensions[level]; i++) {\n if (level !== dimensions - 1) {\n if (arr[i] === undefined) {\n arr[i] = [];\n }\n\n recursion(arr[i], level + 1);\n }\n else if (arr[i] === undefined) {\n arr[i] = that._getDefaultValue();\n }\n }\n }\n\n recursion(that.value, 0);\n\n that._scroll();\n that._setMaxValuesOfScrollBars();\n }", "get ndim() {\n if (this.$isSeries) {\n return 1;\n } else {\n return 2;\n }\n }", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "_newDataSet(...params){\n const Type = this.options.DataSetType || DataSet;\n return new Type(...params); \n }", "getDimensions () {\n return this.properties.length\n }", "function defaultGetter() {\r\n return defaultUnidimensionalValue;\r\n }", "function defaultGetter() {\r\n return defaultUnidimensionalValue;\r\n }", "function fillArr(arr0,arr1,arrDim){var arr0Len=arr0.length;var arr1Len=arr1.length;if(arr0Len !== arr1Len){ // FIXME Not work for TypedArray\n var isPreviousLarger=arr0Len > arr1Len;if(isPreviousLarger){ // Cut the previous\n arr0.length = arr1Len;}else { // Fill the previous\n for(var i=arr0Len;i < arr1Len;i++) {arr0.push(arrDim === 1?arr1[i]:arraySlice.call(arr1[i]));}}} // Handling NaN value\n var len2=arr0[0] && arr0[0].length;for(var i=0;i < arr0.length;i++) {if(arrDim === 1){if(isNaN(arr0[i])){arr0[i] = arr1[i];}}else {for(var j=0;j < len2;j++) {if(isNaN(arr0[i][j])){arr0[i][j] = arr1[i][j];}}}}}", "function axisProvider(){\n\t/*\n\t * setAxisContainer(svg);\n\t * setXScale(makeLinearScale([0,width],[0,d3.max(data, function(d) { return d.x; })]));\n\t * setYScale(makeLinearScale([height,0],[0,d3.max(data, function(d) { return d.y; })]));\n\t * draw()\n\t * */\n\tvar axisProviderImpl = {\n\t\t\theight \t: 0,\n\t\t\twidth\t: 0,\n\t\t\tsvg\t\t: null,\n\t\t\txScale\t: null,\n\t\t\tyScale\t: null,\n\t\t\txAxis\t: null,\n\t\t\txGrid\t: null,\n\t\t\tyAxis\t: null,\n\t\t\tyGrid\t: null,\n\t\t\tdrawXGrid: true,\n\t\t\tdrawYGrid: true,\n\t\t\tdrawGrid: true,\n\t\t\txScaleOrient : \"bottom\",\n\t\t\tyScaleOrient : \"left\",\n\t\t\txTitle:\"\",\n\t\t\tyTitle:\"\",\n\t\t\ttitle:\"\",\n\t\t\tticks\t: 10,\n\t\t\tgridTicks : 10,\n\t\t\ttickFormat:\",r\",\n\t\t\tsetAxisContainer: function(svg){\n\t\t\t\tif(!isDefined(svg) || isNull(svg)){\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\tthis.height = svg.attr(\"height\");\n\t\t\t\tthis.width = svg.attr(\"width\");\n\t\t\t\tthis.svg\t= svg;\n\t\t\t},\n\t\t\tmakeLinearScale : function(range,domain){\n\t\t\t\treturn d3.scale.linear().range(range).domain(domain).nice();\n\t\t\t},\n\t\t\tsetXScale\t: function(xScale){\n\t\t\t\tthis.xScale = xScale;\n\t\t\t\tthis.xAxis = d3.svg.axis().scale(xScale).orient(this.xScaleOrient).ticks(this.ticks, this.tickFormat);\n\t\t\t this.xGrid = d3.svg.axis().scale(xScale).orient(this.xScaleOrient).tickSize(-this.height, 0, 0).ticks(this.gridTicks).tickFormat(\"\");\n\t\t\t},\n\t\t\tsetYScale\t:function(yScale){\n\t\t\t\tthis.yScale = yScale;\n\t\t\t\tthis.yAxis = d3.svg.axis().scale(yScale).orient(this.yScaleOrient).ticks(this.ticks, this.tickFormat);\n\t\t\t this.yGrid = d3.svg.axis().scale(yScale).orient(this.yScaleOrient).tickSize(-this.width, 0, 0).ticks(this.gridTicks).tickFormat(\"\");\n\t\t\t},\n\t\t\tdraw\t: function(){\n\t\t\t\tconsole.log(\"Drawing Axis.\");\n\t\t\t\tthis.clear();\n\t\t\t\tif(this.drawGrid && this.drawYGrid){\n\t\t\t\t\tthis.svg.insert(\"g\",\":first-child\").attr(\"class\", \"grid\").call(this.yGrid);\n\t\t\t\t}\n\t\t\t\tthis.svg.insert(\"g\",\":first-child\").attr(\"class\",\"axis\").call(this.yAxis);\n\t\t\t\t//Y axis title\n\t\t\t\tthis.svg.append(\"g\")\n\t\t\t\t.attr(\"class\",\"axisLabel\")\n\t\t\t .append(\"text\")\n\t\t\t .attr(\"class\",\"axisLabel\")\n\t\t\t .attr(\"transform\", \"rotate(-90)\")\n\t\t\t .text(this.yTitle)\n\t\t\t .attr(\"text-anchor\",\"middle\")\n\t\t\t .attr(\"x\",-((this.height/2)))\n\t\t\t .attr(\"y\",-30);\n\t\t\t\t\n\t\t\t\tif(this.drawGrid && this.drawXGrid){\n\t\t\t\t\tthis.svg.insert(\"g\",\":first-child\").attr(\"class\", \"grid\").attr(\"transform\", \"translate(0,\" + this.height + \")\").call(this.xGrid);\n\t\t\t\t}\n\t\t\t\tthis.svg.insert(\"g\",\":first-child\").attr(\"class\",\"axis\").attr(\"transform\", \"translate(0,\" + this.height + \")\").call(this.xAxis);\n\t\t\t\t//X axis title\n\t\t\t this.svg.append(\"g\")\n\t\t\t .attr(\"class\",\"axisLabel\")\n\t\t\t .append(\"text\")\n\t\t\t .attr(\"transform\", \"translate(0,\" + this.height + \")\")\n\t\t\t .attr(\"class\",\"axisLabel\")\n\t\t\t .attr(\"text-anchor\",\"middle\")\n\t\t\t .text(this.xTitle)\n\t\t\t .attr(\"x\",(this.width/2))\n\t\t\t .attr(\"y\",30);\n\t\t\t //chart Title\n\t\t\t this.svg.append(\"g\")\n\t\t\t .attr(\"class\",\"axisLabel\")\n\t\t\t .append(\"text\")\n\t\t\t .attr(\"class\",\"chartTitle\")\n\t\t\t .text(this.title)\n\t\t\t .attr(\"text-anchor\",\"middle\")\n\t\t\t .attr(\"x\",(this.width/2))\n\t\t\t .attr(\"y\",0);\n\t\t\t},\n\t\t\tclear : function(){\n\t\t\t\tthis.svg.selectAll(\".grid\").remove();\n\t\t\t\tthis.svg.selectAll(\".axis\").remove();\n\t\t\t\tthis.svg.selectAll(\".axisLabel\").remove();\n\t\t\t}\n\t};\n\t\n\tthis.$get = function(){\n\t\treturn axisProviderImpl;\n\t};\n}", "getDataExtents(activeBrushes, includeDiscrete) {\n let dataExtents = {};\n for (let i = 0; i < this.activeDimensions.length; i++) {\n let dimension = this.activeDimensions[i];\n\n //invert not supported for categorical scales, so skip them\n if (this.dimensionMetadata[dimension].discrete && !includeDiscrete) continue;\n\n let activeBrush = activeBrushes.find(\n brush => brush.dimension === dimension\n );\n\n if (!activeBrush) {\n continue;\n }\n\n if (this.dimensionMetadata[dimension].discrete) {\n for (let j = 0; j < this.data.length; j++) {\n let pixelPosition = this.yScales[dimension](this.data[j][dimension]);\n if (pixelPosition >= d3.min(activeBrush.extent) && pixelPosition <= d3.max(activeBrush.extent)) {\n if (!dataExtents[dimension]) {\n dataExtents[dimension] = [];\n }\n\n if (!dataExtents[dimension].includes(this.data[j][dimension])) {\n dataExtents[dimension].push(this.data[j][dimension]);\n }\n }\n }\n } else {\n dataExtents[dimension] = [\n this.yScales[dimension].invert(activeBrush.extent[0]),\n this.yScales[dimension].invert(activeBrush.extent[1])\n ];\n }\n }\n\n return dataExtents;\n }", "_updateValue(row, column, newValue) {\n const that = this,\n oldValue = that._getValueInCell(row, column);\n\n if (!that._areDifferent(newValue, oldValue)) {\n return;\n }\n\n const dimensionValues = that._coordinates,\n actualIndexes = dimensionValues.slice(0),\n changedValueDimensions = [];\n\n if (that.arrayIndexingMode === 'LabVIEW') {\n actualIndexes[actualIndexes.length - 1] += column;\n actualIndexes[actualIndexes.length - 2] += row;\n }\n else {\n actualIndexes[0] += column;\n actualIndexes[1] += row;\n }\n\n for (let i = 0; i < that.dimensions; i++) {\n if (i === 0) { // x\n if (that._oneDimensionSpecialCase === false) {\n changedValueDimensions.push(actualIndexes[0]);\n }\n else {\n changedValueDimensions.push(row + dimensionValues[0]);\n }\n }\n else if (i === 1) { // y\n changedValueDimensions.push(actualIndexes[1]);\n }\n else { // other dimensions\n changedValueDimensions.push(actualIndexes[i]);\n }\n }\n\n let tempArr = that.value;\n\n for (let j = 0; j < changedValueDimensions.length; j++) {\n if (tempArr[changedValueDimensions[j]] === undefined || tempArr[changedValueDimensions[j]] === oldValue) {\n if (j !== changedValueDimensions.length - 1) {\n tempArr[changedValueDimensions[j]] = [];\n }\n else {\n tempArr[changedValueDimensions[j]] = newValue;\n }\n }\n tempArr = tempArr[changedValueDimensions[j]];\n }\n\n that._fillValueArray(changedValueDimensions.slice(0));\n\n that.$.fireEvent('change', { 'value': newValue, 'oldValue': oldValue, 'dimensionIndexes': changedValueDimensions });\n }", "function UltraGrid_GetData()\n{\n\t//create an array for the result\n\tvar result = [];\n\t//return it\n\treturn result;\n}", "_addDimensionToJSArray(dimensions) {\n const that = this;\n\n if (that.arrayIndexingMode === 'LabVIEW') {\n that.value = [that.value];\n }\n else {\n if (dimensions === undefined) {\n dimensions = that.dimensions - 1;\n }\n\n const recursion = function (arr, level) {\n for (let i = 0; i < arr.length; i++) {\n if (level !== dimensions) {\n recursion(arr[i], level + 1);\n }\n else {\n arr[i] = [arr[i]];\n }\n }\n };\n\n recursion(that.value, 1);\n }\n }", "function getDataArray(obj) {\n\t if (obj.rows) {\n\t return obj.rows;\n\t } else if (obj.columns) {\n\t return obj.columns;\n\t } else if (obj.series) {\n\t return [obj];\n\t }\n\t }", "function defaultGetter() {\n return defaultUnidimensionalValue;\n }", "function DataViewWriter(byteLength) {\nvar data, offset, that = this;\nfunction init(callback, onerror) {\ndata = getDataHelper(byteLength);\noffset = 0;\ncallback();\n}\nfunction writeUint8Array(array, callback, onerror) {\n//window.console.log(\"Adding byte range [\"+offset+\"..\"+(offset+array.byteLength)+\")\");\ndata.array.set(array, offset);\noffset += array.byteLength;\ncallback();\n}\nfunction getData(callback) {\ncallback(data.view);\n}\nthat.init = init;\nthat.writeUint8Array = writeUint8Array;\nthat.getData = getData;\n}", "function data(){\n return [1,2,3,4,5]; \n}", "function data(){\n return [1,2,3,4,5]; \n}", "__get_t(arr_val) {\n if (this.__is_1D_array(arr_val)) {\n const dtypes = []\n let int_tracker = []\n let float_tracker = []\n let string_tracker = []\n let bool_tracker = []\n let lim;\n\n //remove NaNs from array\n let arr = []\n arr_val.map(val => {\n if (!(isNaN(val) && typeof val != \"string\")) {\n arr.push(val)\n }\n })\n\n if (arr.length < config.get_dtype_test_lim) {\n lim = arr.length - 1\n } else {\n lim = config.get_dtype_test_lim - 1\n }\n arr.forEach((ele, indx) => {\n let count = indx\n if (typeof ele == 'boolean') {\n float_tracker.push(false)\n int_tracker.push(false)\n string_tracker.push(false)\n bool_tracker.push(true)\n } else if (!isNaN(Number(ele))) {\n\n if (ele.toString().includes(\".\")) {\n float_tracker.push(true)\n int_tracker.push(false)\n string_tracker.push(false)\n bool_tracker.push(false)\n } else {\n float_tracker.push(false)\n int_tracker.push(true)\n string_tracker.push(false)\n bool_tracker.push(false)\n\n }\n } else {\n float_tracker.push(false)\n int_tracker.push(false)\n string_tracker.push(true)\n bool_tracker.push(false)\n }\n\n if (count == lim) {\n //if atleast one string appears return string dtype\n const even = (element) => element == true;\n if (string_tracker.some(even)) {\n dtypes.push(\"string\")\n } else if (float_tracker.some(even)) {\n dtypes.push(\"float32\")\n } else if (int_tracker.some(even)) {\n dtypes.push(\"int32\")\n } else if (bool_tracker.some(even)) {\n dtypes.push(\"boolean\")\n } else {\n dtypes.push(\"undefined\")\n }\n }\n })\n\n return dtypes\n\n } else {\n const dtypes = []\n let lim;\n if (arr_val[0].length < config.get_dtype_test_lim) {\n lim = arr_val[0].length - 1\n } else {\n lim = config.get_dtype_test_lim - 1\n }\n arr_val.forEach((ele) => {\n let int_tracker = []\n let float_tracker = []\n let string_tracker = []\n let bool_tracker = []\n\n //remove NaNs from array before checking dtype\n let arr = []\n ele.map(val => {\n if (!(isNaN(val) && typeof val != \"string\")) {\n arr.push(val)\n } else {\n arr.push(\"NaN\") //set NaN to string and return dtype \"\"string\". The caller should explicitly convert the dtype\n }\n })\n\n arr.forEach((ele, indx) => {\n let count = indx\n if (typeof ele == 'boolean') {\n float_tracker.push(false)\n int_tracker.push(false)\n string_tracker.push(false)\n bool_tracker.push(true)\n\n } else if (!isNaN(Number(ele))) {\n\n if (ele.toString().includes(\".\")) {\n float_tracker.push(true)\n int_tracker.push(false)\n string_tracker.push(false)\n bool_tracker.push(false)\n } else {\n float_tracker.push(false)\n int_tracker.push(true)\n string_tracker.push(false)\n bool_tracker.push(false)\n\n }\n } else {\n float_tracker.push(false)\n int_tracker.push(false)\n string_tracker.push(true)\n bool_tracker.push(false)\n }\n\n if (count == lim) {\n //if atleast one string appears return string dtype\n const even = (element) => element == true;\n if (string_tracker.some(even)) {\n dtypes.push(\"string\")\n } else if (float_tracker.some(even)) {\n dtypes.push(\"float32\")\n } else if (int_tracker.some(even)) {\n dtypes.push(\"int32\")\n } else if (bool_tracker.some(even)) {\n dtypes.push(\"boolean\")\n } else {\n dtypes.push(\"undefined\")\n }\n }\n })\n\n });\n\n return dtypes\n }\n }", "function MemDataProvider() {\n\tthis._init();\n}", "gather(indices, dtype) {\n if (!!dtype && dtype !== this.dtype) {\n throw new Error(`TensorArray dtype is ${this.dtype} but gather requested dtype ${dtype}`);\n }\n if (!indices) {\n indices = [];\n for (let i = 0; i < this.size(); i++) {\n indices.push(i);\n }\n }\n else {\n indices = indices.slice(0, this.size());\n }\n if (indices.length === 0) {\n return Object(_tensorflow_tfjs_core__WEBPACK_IMPORTED_MODULE_0__[\"tensor\"])([], [0].concat(this.elementShape));\n }\n // Read all the PersistentTensors into a vector to keep track of\n // their memory.\n const tensors = this.readMany(indices);\n Object(_tensor_utils__WEBPACK_IMPORTED_MODULE_1__[\"assertShapesMatchAllowUndefinedSize\"])(this.elementShape, tensors[0].shape, 'TensorArray shape mismatch: ');\n return Object(_tensorflow_tfjs_core__WEBPACK_IMPORTED_MODULE_0__[\"stack\"])(tensors, 0);\n }", "function calcMetaDataField_geoSubset(data,params,field)\n{\n var eventsField = normalizeField(field,'target','geoSubset')[0];\n var positionsField = normalizeField(field,'target','geoSubset')[1];\n var shape = normalizeField(field,'shape','geoSubset')[0];\n var x = normalizeField(field,'x','geoSubset')[0];\n var y = normalizeField(field,'y','geoSubset')[0];\n var width = normalizeField(field,'width','geoSubset')[0];\n var height = normalizeField(field,'height','geoSubset')[0];\n\n // normalizing will ensure we get an array for each, which may be empty\n var eventsArray = normalizeDataItem(data,eventsField);\n var positionsArray = normalizeDataItem(data,positionsField);\n\n return(geoSubsetOP(eventsArray,positionsArray,shape,x,y,width,height));\n}", "getData(numRecords = undefined) {\n return !numRecords ? this.data : this.data.slice(0, numRecords);\n }", "function dimensionConstructor(driver){\n var driver = driver;\n return $rootScope.dataMeta.crossFilterData.dimension(function(d) { return d[driver]; });\n }", "function getSlice(dimensionName) {\n if (typeof filters[dimensionName] != \"undefined\") {\n return filters[dimensionName];\n }\n else {\n return dimensions[dimensionName].members;\n }\n }", "get defaultValueSampledData() {\n\t\treturn this.__defaultValueSampledData;\n\t}", "function defaultGetter() {\n return defaultUnidimensionalValue;\n }", "function get_dataset(i) {\n var dataSet;\n if (subtypeIndex[1] === null) {\n dataSet = calculateGraphPoints(1, 100, parseFloat(ligandTableCell(subtypeIndex[0] + 1, i).value));\n } else {\n dataSet = calculateGraphPoints(2,\n subtypePercentage[0],parseFloat(ligandTableCell(subtypeIndex[0] + 1, i).value),\n subtypePercentage[1],parseFloat(ligandTableCell(subtypeIndex[1]+1, i).value));\n }\n return dataSet\n }", "function reconstructDataset(values) {\n // normalize array length to 1000, as precision isn't as important as speed here\n const divisor = state.dataset.attributes.recordCount / 1000;\n // const divisor = 1; // alternately, use the whole set\n let arr = [];\n for (let x = 0; x < values.length; x++) {\n for (let y = 0; y < Math.ceil(values[x].count/divisor); y++) {\n arr.push(values[x].value);\n };\n }\n return arr;\n }", "function MultiCPUDataProvider() {\n\tthis._init();\n}", "function aggregateData(data, params) {\n if (data.length == 0) {\n throw {\n fatal: 'Dataset is empty. Can not draw the graph.'\n }\n }\n\n var i, j, l;\n\n var dimHash = [];\n var keyHash = {};\n var dimValues = [];\n var rec, dim, key;\n var dl = params.dimensions.length;\n var dimensions = [];\n\n for (j = 0; j < dl; j++) {\n dimHash[j] = {};\n dimValues[j] = [];\n dimensions.push(params.dimensions[j].name);\n }\n var claimDataIndex = $('.claim-data-tab-container .tab li').index($('.claim-data-tab-container .tab li.active')[0]);\n for (i = 0, l = data.length; i < l; i++) {\n rec = data[i];\n key = [];\n for (j = 0; j < dl; j++) {\n dim = rec[dimensions[j]];\n key.push(dim);\n if (!dimHash[j][dim]) {\n dimHash[j][dim] = 1;\n dimValues[j].push(dim);\n }\n }\n key = key.join('|');\n\n if (!keyHash[key]) {\n keyHash[key] = (fieldTypesAll[claimDataIndex][params.measure] == 'integer' ? rec[params.measure] : 1);\n } else {\n keyHash[key] += (fieldTypesAll[claimDataIndex][params.measure] == 'integer' ? rec[params.measure] : 1);\n }\n }\n\n var res = {\n data: {\n lines: []\n }\n };\n\n // Available data is limited to prevent bad charts drawing\n if (dimValues[0].length > FIRST_DIMENSION_LIMIT) {\n dimValues[0] = dimValues[0].splice(-FIRST_DIMENSION_LIMIT);\n }\n if (dimValues[1] && dimValues[1].length > SECOND_DIMENSION_LIMIT) {\n dimValues[1] = dimValues[1].splice(-SECOND_DIMENSION_LIMIT);\n throw {\n fatal: 'Group dimension limit reached. Chart can not be displayed'\n }\n }\n\n for (i = 0; i < dimValues.length; i++) {\n dimValues[i].sort();\n }\n\n // Copy values to dimension axis\n res.xAxis = dimValues[0].slice();\n\n if (dimValues.length == 1) {\n res.data.lines[0] = {data: [], title: \"\"};\n for (i = 0; i < dimValues[0].length; i++){\n res.data.lines[0].data.push(keyHash[dimValues[0][i]]);\n }\n } else {\n for (j = 0; j < dimValues[1].length; j++) {\n var line = {\n data: [],\n title: dimValues[1][j]\n };\n res.data.lines.push(line);\n for (i = 0; i < dimValues[0].length; i++){\n res.data.lines[j].data.push(keyHash[dimValues[0][i] + '|' + dimValues[1][j]]);\n }\n }\n }\n\n return res;\n }", "get flexibleDimensions() { return this._flexibleDimensions; }", "function GetDimension()\n{\n\treturn m_dimension;\n}", "$setValues(values, checkLength = true, checkColumnLength = true) {\n if (this.$isSeries) {\n if (checkLength && values.length != this.shape[0]) {\n ErrorThrower.throwRowLengthError(this, values.length);\n }\n\n this.$data = values;\n this.$dtypes = utils.inferDtype(values); //Dtype may change depeneding on the value set\n\n if (!this.$config.isLowMemoryMode) {\n this.$dataIncolumnFormat = values;\n }\n\n } else {\n if (checkLength && values.length != this.shape[0]) {\n ErrorThrower.throwRowLengthError(this, values.length);\n }\n\n if (checkColumnLength) {\n values.forEach((value) => {\n if ((value).length != this.shape[1]) {\n ErrorThrower.throwColumnLengthError(this, values.length);\n }\n });\n }\n\n this.$data = values;\n this.$dtypes = utils.inferDtype(values);\n\n if (!this.$config.isLowMemoryMode) {\n this.$dataIncolumnFormat = utils.transposeArray(values);\n }\n\n }\n\n }", "get valueSampledData () {\r\n\t\treturn this._valueSampledData;\r\n\t}", "function DataSet(){\n\tthis.values = new Array();\n\t\n\t\n\tDataSet.prototype.size = function(){\n\t\treturn this.values.length;\n\t}\n\t\n\t\n\tDataSet.prototype.has = function(value){\n\t\tfor(var i=0;i< this.values.length;i++){\n\t\t\tif(this.values[i] == value){\n\t\t\t\treturn true;\n\t\t\t} \n\t\t}\n\t\treturn false;\n\t}\n\t\n\tDataSet.prototype.get = function(no){\n\t\tif(no < this.size() && no >=0){\n\t\t\treturn this.values[no]; \n\t\t}else{\n\t\t\treturn null;\n\t\t}\n\t}\n\t\n\tDataSet.prototype.remove = function(value){\n\t\tfor(var i=0;i< this.values.length;i++){\n\t\t\tif(this.values[i] == value){\n\t\t\t\tthis.values.splice(i,1);\n\t\t\t\treturn true;\n\t\t\t} \n\t\t}\n\t\treturn false;\n\t}\n\t\n\t\n\tDataSet.prototype.add = function(value){\n\t\t\n\t\tif(this.has(value)){\n\t\t\treturn false\n\t\t}else{\n\t\t\tthis.values.push(value);\n\t\t\treturn true;\n\t\t}\n\t}\n\t\n\tDataSet.prototype.clear = function(){\n\t\tfor(var i=0;i< this.values.length;i++){\n\t\t\tthis.remove(this.values[i]);\n\t\t}\n\t}\n\t\n}", "compute(data, splits) {\n // Validate that the splits are valid indices into data, only if there are\n // splits specified.\n const inputDataSize = data.length;\n const splitsSize = splits.length;\n if (splitsSize > 0) {\n let prevSplit = splits[0];\n if (prevSplit !== 0) {\n throw new Error(`First split value must be 0, got ${prevSplit}`);\n }\n for (let i = 1; i < splitsSize; ++i) {\n let validSplits = splits[i] >= prevSplit;\n validSplits = validSplits && (splits[i] <= inputDataSize);\n if (!validSplits) {\n throw new Error(`Invalid split value ${splits[i]}, must be in [${prevSplit}, ${inputDataSize}]`);\n }\n prevSplit = splits[i];\n }\n if (prevSplit !== inputDataSize) {\n throw new Error(`Last split value must be data size. Expected ${inputDataSize}, got ${prevSplit}`);\n }\n }\n const numBatchItems = splitsSize - 1;\n const nGramsSplits = util.getArrayFromDType('int32', splitsSize);\n // If there is no data or size, return an empty ragged tensor.\n if (inputDataSize === 0 || splitsSize === 0) {\n const empty = new Array(inputDataSize);\n for (let i = 0; i <= numBatchItems; ++i) {\n nGramsSplits[i] = 0;\n }\n return [empty, nGramsSplits];\n }\n nGramsSplits[0] = 0;\n for (let i = 1; i <= numBatchItems; ++i) {\n const length = splits[i] - splits[i - 1];\n let numNGrams = 0;\n this.nGramWidths.forEach((nGramWidth) => {\n numNGrams += this.getNumNGrams(length, nGramWidth);\n });\n if (this.preserveShort && length > 0 && numNGrams === 0) {\n numNGrams = 1;\n }\n nGramsSplits[i] = nGramsSplits[i - 1] + numNGrams;\n }\n const nGrams = new Array(nGramsSplits[numBatchItems]);\n for (let i = 0; i < numBatchItems; ++i) {\n const splitIndex = splits[i];\n let outputStartIdx = nGramsSplits[i];\n this.nGramWidths.forEach((nGramWidth) => {\n const length = splits[i + 1] - splits[i];\n const numNGrams = this.getNumNGrams(length, nGramWidth);\n this.createNGrams(data, splitIndex, nGrams, outputStartIdx, numNGrams, nGramWidth);\n outputStartIdx += numNGrams;\n });\n // If we're preserving short sequences, check to see if no sequence was\n // generated by comparing the current output start idx to the original\n // one (nGramSplitsdata). If no ngrams were generated, then they will\n // be equal (since we increment outputStartIdx by numNGrams every\n // time we create a set of ngrams.)\n if (this.preserveShort && outputStartIdx === nGramsSplits[i]) {\n const dataLength = splits[i + 1] - splits[i];\n // One legitimate reason to not have any ngrams when this.preserveShort\n // is true is if the sequence itself is empty. In that case, move on.\n if (dataLength === 0) {\n continue;\n }\n // We don't have to worry about dynamic padding sizes here: if padding\n // was dynamic, every sequence would have had sufficient padding to\n // generate at least one nGram.\n const nGramWidth = dataLength + 2 * this.padWidth;\n const numNGrams = 1;\n this.createNGrams(data, splitIndex, nGrams, outputStartIdx, numNGrams, nGramWidth);\n }\n }\n return [nGrams, nGramsSplits];\n }", "supportsDoubleArrayValues() {\n return true;\n }", "getDimensions() {\n return { x: 1, y: 1, z: 1 };\n }", "getLimitsValues(modelArr, lineValue){\n\t \t\t var arr = Array.apply(null, Array(modelArr.length))\n\t \t\t arr.splice(0, 1, lineValue)\n\t \t\t arr.splice(-1, 1, lineValue)\n\t \t\t return arr\n\t \t}", "function getDimCount(source, sysDims, dimsDef, optDimCount) {\n\t // Note that the result dimCount should not small than columns count\n\t // of data, otherwise `dataDimNameMap` checking will be incorrect.\n\t var dimCount = Math.max(source.dimensionsDetectedCount || 1, sysDims.length, dimsDef.length, optDimCount || 0);\n\t each(sysDims, function (sysDimItem) {\n\t var sysDimItemDimsDef;\n\t\n\t if (isObject(sysDimItem) && (sysDimItemDimsDef = sysDimItem.dimsDef)) {\n\t dimCount = Math.max(dimCount, sysDimItemDimsDef.length);\n\t }\n\t });\n\t return dimCount;\n\t }", "getMetricsFromGrid() {\n const sampleArr = this.$parent.sampleArr;\n const gridData = this.$parent.state.gridData;\n const metricsDependingOnGrid = [];\n for (const metric of sampleArr) {\n for (const e of gridData) {\n if (metric.name === e.metric) {\n metricsDependingOnGrid.push(metric);\n }\n }\n }\n return metricsDependingOnGrid;\n }", "function TypedArray(arg1) {\nvar result;\n if (typeof arg1 === \"number\") {\n result = new Array(arg1);\n \n for (var i = 0; i < arg1; ++i)\n result[i] = 0;\n } else\n result = arg1.slice(0)\n\n result.subarray = subarray\n result.buffer = result\n result.byteLength = result.length\n result.set = set_\n\n if (typeof arg1 === \"object\" && arg1.buffer)\n result.buffer = arg1.buffer\n \n return result\n\n}", "get dimension() {\r\n return this.cpoints.shape[1];\r\n }", "get dimension() {\r\n return this.cpoints.shape[1];\r\n }", "function data(){\n return [1,2,3]; \n}", "function data(){\n return [1,2,3]; \n}", "function getAllData(dataService, dataSet) {\n\n}", "function getDataSubset() {\n const calculations = [{\n value: thirdParameter,\n method: \"Average\",\n },\n {\n value: \"Height\",\n method: \"Min\",\n },\n {\n value: \"Height\",\n method: \"Max\",\n },\n {\n value: \"Weight\",\n method: \"Min\",\n },\n {\n value: \"Weight\",\n method: \"Max\",\n },\n {\n value: \"Age\",\n method: \"Min\",\n },\n {\n value: \"Age\",\n method: \"Max\",\n },\n ];\n return gmynd.cumulateData(segmentedAthletes, [\"Sex\", ...currentFilters], calculations);\n}", "function X3domCreateArray(data, dim){\n if (dim ==1) return new x3dom.fields.MFFloat(data);\n let length = data.length/dim;\n let res = Array(length);\n let vectType = \"SFVec\"+String(dim)+\"f\";\n for (let i = 0; i < length ; i++) {\n // If dim == 2 , the third values are ignored\n res[i] = new x3dom.fields[vectType](data[dim*i],\n data[dim*i+1],\n data[dim*i+2]);\n }\n let arrayType = \"MFVec\"+String(dim)+\"f\";\n let out = new x3dom.fields[arrayType](res);\n return out;\n}", "function SizeData() {\n\t\t// #### Y Axis ####\n\t\t// Y Axis Min & Max\n\n\t\t// Get the initial Min & Max\n\t\tvar max = Math.max.apply(null, me.g_data[1]);\n\t\tvar min = Math.min.apply(null, me.g_data[1]);\n\n\t\t// Find the other series max & min\n\t\tfor (var i = me.g_data.length; i > 1; i--) {\n\n\t\t\tvar max2 = Math.max.apply(null, me.g_data[i]);\n\t\t\tvar min2 = Math.min.apply(null, me.g_data[i]);\n\n\t\t\t// If the max or min are more significant, use them\n\t\t\tif (max < max2) {\n\t\t\t\tmax = max2;\n\t\t\t}\n\t\t\tif (min > min2) {\n\t\t\t\tmin = min2;\n\t\t\t}\n\t\t}\n\n\t\t// If the default min & max aren't more relevant, add our derived one in.\n\t\tif (me.maxY == null || me.maxY < max) {\n\t\t\tme.maxY = max;\n\t\t}\n\t\tif (me.minY == null || me.minY > min) {\n\t\t\tme.minY = min;\n\t\t}\n\n\t\t// X Axis\n\n\t\tif (typeof (me.g_data[0][0]) == \"number\") {\n\t\t\t// Get the initial Min & Max\n\t\t\tvar max = Math.max.apply(null, me.g_data[0]);\n\t\t\tvar min = Math.min.apply(null, me.g_data[0]);\n\n\t\t\tme.maxX = max;\n\t\t\tme.minX = min;\n\t\t}\n\t\telse if (typeof (me.g_data[0][0]) == \"object\") {\n\n\t\t\t// We are working with dates\n\t\t\tvar seconds = [];\n\t\t\tfor (var i = 0; i < me.g_data[0].length; i++) {\n\t\t\t\tvar d = new Date(me.g_data[0][i][0], me.g_data[0][i][1], me.g_data[0][i][2]);\n\n\t\t\t\tseconds[i] = d.valueOf();\n\t\t\t}\n\n\t\t\tvar max = Math.max.apply(null, seconds);\n\t\t\tvar min = Math.min.apply(null, seconds);\n\n\t\t\tme.maxX = max;\n\t\t\tme.minX = min;\n\n\t\t}\n\t\telse {\n\t\t\t// Standard string X Axis\n\t\t\tme.maxX = me.g_data[0].length;\n\t\t\tme.minX = 0;\n\t\t}\n\t}", "function determineSourceDimensions(data, sourceFormat, seriesLayoutBy, sourceHeader, // standalone raw dimensions definition, like:\n// {\n// dimensions: ['aa', 'bb', { name: 'cc', type: 'time' }]\n// }\n// in `dataset` or `series`\ndimensionsDefine) {\n var dimensionsDetectedCount;\n var startIndex; // PEDING: could data be null/undefined here?\n // currently, if `dataset.source` not specified, error thrown.\n // if `series.data` not specified, nothing rendered without error thrown.\n // Should test these cases.\n\n if (!data) {\n return {\n dimensionsDefine: normalizeDimensionsOption(dimensionsDefine),\n startIndex: startIndex,\n dimensionsDetectedCount: dimensionsDetectedCount\n };\n }\n\n if (sourceFormat === _util_types__WEBPACK_IMPORTED_MODULE_1__[/* SOURCE_FORMAT_ARRAY_ROWS */ \"c\"]) {\n var dataArrayRows = data; // Rule: Most of the first line are string: it is header.\n // Caution: consider a line with 5 string and 1 number,\n // it still can not be sure it is a head, because the\n // 5 string may be 5 values of category columns.\n\n if (sourceHeader === 'auto' || sourceHeader == null) {\n arrayRowsTravelFirst(function (val) {\n // '-' is regarded as null/undefined.\n if (val != null && val !== '-') {\n if (Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_0__[/* isString */ \"C\"])(val)) {\n startIndex == null && (startIndex = 1);\n } else {\n startIndex = 0;\n }\n } // 10 is an experience number, avoid long loop.\n\n }, seriesLayoutBy, dataArrayRows, 10);\n } else {\n startIndex = Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_0__[/* isNumber */ \"y\"])(sourceHeader) ? sourceHeader : sourceHeader ? 1 : 0;\n }\n\n if (!dimensionsDefine && startIndex === 1) {\n dimensionsDefine = [];\n arrayRowsTravelFirst(function (val, index) {\n dimensionsDefine[index] = val != null ? val + '' : '';\n }, seriesLayoutBy, dataArrayRows, Infinity);\n }\n\n dimensionsDetectedCount = dimensionsDefine ? dimensionsDefine.length : seriesLayoutBy === _util_types__WEBPACK_IMPORTED_MODULE_1__[/* SERIES_LAYOUT_BY_ROW */ \"b\"] ? dataArrayRows.length : dataArrayRows[0] ? dataArrayRows[0].length : null;\n } else if (sourceFormat === _util_types__WEBPACK_IMPORTED_MODULE_1__[/* SOURCE_FORMAT_OBJECT_ROWS */ \"e\"]) {\n if (!dimensionsDefine) {\n dimensionsDefine = objectRowsCollectDimensions(data);\n }\n } else if (sourceFormat === _util_types__WEBPACK_IMPORTED_MODULE_1__[/* SOURCE_FORMAT_KEYED_COLUMNS */ \"d\"]) {\n if (!dimensionsDefine) {\n dimensionsDefine = [];\n Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_0__[/* each */ \"k\"])(data, function (colArr, key) {\n dimensionsDefine.push(key);\n });\n }\n } else if (sourceFormat === _util_types__WEBPACK_IMPORTED_MODULE_1__[/* SOURCE_FORMAT_ORIGINAL */ \"f\"]) {\n var value0 = Object(_util_model__WEBPACK_IMPORTED_MODULE_2__[/* getDataItemValue */ \"h\"])(data[0]);\n dimensionsDetectedCount = Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_0__[/* isArray */ \"t\"])(value0) && value0.length || 1;\n } else if (sourceFormat === _util_types__WEBPACK_IMPORTED_MODULE_1__[/* SOURCE_FORMAT_TYPED_ARRAY */ \"g\"]) {\n if (false) {}\n }\n\n return {\n startIndex: startIndex,\n dimensionsDefine: normalizeDimensionsOption(dimensionsDefine),\n dimensionsDetectedCount: dimensionsDetectedCount\n };\n}", "get axis() {\n return {\n index: this.$index,\n columns: this.$columns\n };\n }", "split(length, tensor) {\n if (tensor.dtype !== this.dtype) {\n throw new Error(`TensorArray dtype is ${this.dtype} but tensor has dtype ${tensor.dtype}`);\n }\n let totalLength = 0;\n const cumulativeLengths = length.map(len => {\n totalLength += len;\n return totalLength;\n });\n if (totalLength !== tensor.shape[0]) {\n throw new Error(`Expected sum of lengths to be equal to\n tensor.shape[0], but sum of lengths is\n ${totalLength}, and tensor's shape is: ${tensor.shape}`);\n }\n if (!this.dynamicSize && length.length !== this.maxSize) {\n throw new Error(`TensorArray's size is not equal to the size of lengths (${this.maxSize} vs. ${length.length}), ` +\n 'and the TensorArray is not marked as dynamically resizeable');\n }\n const elementPerRow = totalLength === 0 ? 0 : tensor.size / totalLength;\n const tensors = [];\n Object(_tensorflow_tfjs_core__WEBPACK_IMPORTED_MODULE_0__[\"tidy\"])(() => {\n tensor = Object(_tensorflow_tfjs_core__WEBPACK_IMPORTED_MODULE_0__[\"reshape\"])(tensor, [1, totalLength, elementPerRow]);\n for (let i = 0; i < length.length; ++i) {\n const previousLength = (i === 0) ? 0 : cumulativeLengths[i - 1];\n const indices = [0, previousLength, 0];\n const sizes = [1, length[i], elementPerRow];\n tensors[i] = Object(_tensorflow_tfjs_core__WEBPACK_IMPORTED_MODULE_0__[\"reshape\"])(Object(_tensorflow_tfjs_core__WEBPACK_IMPORTED_MODULE_0__[\"slice\"])(tensor, indices, sizes), this.elementShape);\n }\n return tensors;\n });\n const indices = [];\n for (let i = 0; i < length.length; i++) {\n indices[i] = i;\n }\n this.writeMany(indices, tensors);\n }", "function refreshDataFromBackend(d)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(d.depth ==999){\r\n\t\t\t\t \tapp.clearAll();\r\n\t\t\t\t\t//self.backendApi.selectValues(2,window.dimKeyArr,true);\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\t //set node click to Qlik Sense to select dimension in app for only leaf node\r\n\t\t\t\t else if(d.dim_key !== 'undefined' && d.depth > 0){// maxDepthEx-(maxDepth -1){\r\n\t\t\t\t\t\r\n\t\t\t\t\tvar dimValKey = parseInt(d.dim_key, 0);\r\n\t\t\t\t\tvar dimParentValKey = parseInt(d.parent.dim_key, 0);\r\n\t\t\t\t\t//var dimParentValKey = parseInt(d.parent.dim_key, 0);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Clear all selections before selecting clicked leaf node and its parent\r\n\t\t\t\t\tapp.clearAll();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//console.log((d.depth-1) + \" \" + d.dim_key);\r\n\t\t\t\t\tif(!isNaN(dimParentValKey))\r\n\t\t\t\t\tself.backendApi.selectValues(d.depth-2,[dimParentValKey],true);\r\n\t\t\t\t\tself.backendApi.selectValues(d.depth-1,[dimValKey],true);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//app.field('Brand').selectValues([globalAllBrands], true, true);\r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t //else if(d.name == \"Global\" && d.parent.length < 1){\r\n\t\t\t\t else if(d.depth ==0){\r\n\t\t\t\t \tapp.clearAll();\r\n\t\t\t\t\tself.backendApi.selectValues(2,window.dimKeyArr,true);\r\n\t\t\t\t }\r\n\t\t\t\r\n}", "function all() {\n if (reduceMeasures.length > 0)\n return getData(dimensionName, true, reduceMeasures);\n else\n return getData(dimensionName, true);\n }", "function ApacheChartBuffer(size)\n{\n this.maxStreamLength = document.all?5000:100000;\t\n this.data = new Array(size?size:100);\n this.iStr = 0;\n}", "function setUpDataSet(){\n \t var DS = [];\n \t for(var i = 0 ; i < 5;i++){DS.push([{Priority:''}])}\t\n \t return DS;\n }", "getDashboardDataArray(properties, chartArrayTypeName, plantingDate, harvestDate) {\n\n\t\tlet chartDataArray = {};\n\t\tlet minTime = plantingDate.getTime();\n\t\tlet maxTime = harvestDate.getTime();\n\n\t\tlet chartOptions = {};\n\n\t\tif (properties.hasOwnProperty(chartArrayTypeName) && properties[chartArrayTypeName] !== null) {\n\t\t\tif(properties[chartArrayTypeName].hasOwnProperty(\"charts\")){\n\t\t\t\t// Iterate over each chart\n\t\t\t\tlet charts = properties[chartArrayTypeName].charts;\n\t\t\t\tfor (let dataIndex = 0; dataIndex < charts.length; dataIndex++) {\n\t\t\t\t\tlet chartRawData = charts[dataIndex];\n\n\t\t\t\t\tlet rawDatasets = chartRawData.datasets;\n\t\t\t\t\tlet parsedDatasets = [];\n\n\t\t\t\t\t// Iterate over each dataset in the chart\n\t\t\t\t\tfor (let datasetIndex = 0; datasetIndex < rawDatasets.length; datasetIndex++) {\n\n\t\t\t\t\t\tlet rawData = rawDatasets[datasetIndex].data;\n\t\t\t\t\t\tlet parsedData = [];\n\n\t\t\t\t\t\t// Generate data to be added to the dataset\n\t\t\t\t\t\tfor (let dataIndex = 0; dataIndex < rawData.length; dataIndex++) {\n\t\t\t\t\t\t\t// TODO: Remove the if condition. Temporary fix till server-side bug is fixed.\n\t\t\t\t\t\t\tif (!(chartRawData.title === \"Carbon : Nitrogen\" && dataIndex === 0)) {\n\t\t\t\t\t\t\t\tparsedData.push({\n\t\t\t\t\t\t\t\t\tx: new Date(rawData[dataIndex].YEAR, 0, rawData[dataIndex].DOY),\n\t\t\t\t\t\t\t\t\ty: rawData[dataIndex].value\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Create dataset object with appropriate options and data\n\t\t\t\t\t\tlet datasetLabel = (chartArrayTypeName === \"withCoverCropChartDataArray\") ? \"w/ Cover Crop\" : \"w/o Cover Crop\";\n\t\t\t\t\t\tlet dataset = {\n\t\t\t\t\t\t\tlabel: datasetLabel,\n\n\t\t\t\t\t\t\tdata: parsedData\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tparsedDatasets.push(dataset);\n\t\t\t\t\t}\n\n\t\t\t\t\tlet chartData = {\n\t\t\t\t\t\t// TODO: Check with team on this. Having fixed labels vs dynamic labels selected by chart.js based on input data\n\t\t\t\t\t\t// labels: labelArray,\n\t\t\t\t\t\tdatasets: parsedDatasets\n\t\t\t\t\t};\n\n\t\t\t\t\t// Chart for this variable has been already created\n\t\t\t\t\tif (chartDataArray.hasOwnProperty(chartRawData.variable)) {\n\t\t\t\t\t\tchartDataArray[chartRawData.variable].chartData.datasets = chartDataArray[chartRawData.variable].chartData.datasets.concat(parsedDatasets);\n\t\t\t\t\t}\n\t\t\t\t\t// Chart for this variable has to be created\n\t\t\t\t\telse {\n\t\t\t\t\t\tchartDataArray[chartRawData.variable] = {\n\t\t\t\t\t\t\tchartData: chartData,\n\t\t\t\t\t\t\tchartOptions: chartOptions\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn chartDataArray;\n\t}", "async function prepareData( param ) {\n\n // TODO check input format\n\n // make sure the hierarchy is an array\n if( !(param.hierarchy instanceof Array) ) {\n param.hierarchy = [ param.hierarchy ];\n }\n\n // get source data\n let source = DataStore.getDataset( param.data_id ),\n cols = source.getColumnMeta(),\n srcData = source.getData(),\n rowCount = source.getRowCount(),\n hierarchy = param.hierarchy,\n value = param.size;\n\n\n // init result data array\n const data = {\n 'name': 'root',\n 'map': new Map(),\n 'children': []\n };\n\n // walk through source data\n let hierarchyCount = hierarchy.length,\n runner,\n allEntries = [ data ],\n coloring;\n for( let row=0; row<rowCount; row++ ) {\n\n // reset runner\n runner = data;\n\n // label to determine coloring is given by name of innermost dimension\n coloring = '' + srcData[ hierarchy[0] ][ row ];\n\n // walk dimensions\n for( let dimIndex=0; dimIndex<hierarchyCount; dimIndex++ ) {\n\n // shortcut\n const el = srcData[ hierarchy[dimIndex] ][ row ];\n\n // if not present, add\n if( !runner.map.has( el ) ) {\n const newEntry = {\n 'name': '' + el,\n 'coloring': coloring,\n 'map': new Map(),\n 'children': []\n };\n runner.map.set( el, newEntry );\n runner.children.push( newEntry );\n allEntries.push( newEntry );\n }\n\n // keep on walking\n runner = runner.map.get( el );\n\n }\n\n // add the value\n runner.size = srcData[ value ][ row ];\n\n }\n\n // remove helper constructs\n allEntries.forEach( (el) => {\n\n // delete the map\n delete el.map;\n\n // if there are no children present, remove the property\n if( el.children.length < 1 ){\n delete el.children;\n }\n\n });\n\n // return result\n return data;\n\n }", "function ISDataSet(){ this._Type=\"ISDataSet\"; ISObject.call(this); this.Name=null; this.DataSetName=null; this.Tables=new ISArray(); }", "function createListFromArray(source, seriesModel, opt) {\n opt = opt || {};\n\n if (!Object(Source[\"e\" /* isSourceInstance */])(source)) {\n source = Object(Source[\"c\" /* createSourceFromSeriesDataOption */])(source);\n }\n\n var coordSysName = seriesModel.get('coordinateSystem');\n var registeredCoordSys = CoordinateSystem[\"a\" /* default */].get(coordSysName);\n var coordSysInfo = getCoordSysInfoBySeries(seriesModel);\n var coordSysDimDefs;\n\n if (coordSysInfo && coordSysInfo.coordSysDims) {\n coordSysDimDefs = util[\"H\" /* map */](coordSysInfo.coordSysDims, function (dim) {\n var dimInfo = {\n name: dim\n };\n var axisModel = coordSysInfo.axisMap.get(dim);\n\n if (axisModel) {\n var axisType = axisModel.get('type');\n dimInfo.type = getDimensionTypeByAxis(axisType); // dimInfo.stackable = isStackable(axisType);\n }\n\n return dimInfo;\n });\n }\n\n if (!coordSysDimDefs) {\n // Get dimensions from registered coordinate system\n coordSysDimDefs = registeredCoordSys && (registeredCoordSys.getDimensionsInfo ? registeredCoordSys.getDimensionsInfo() : registeredCoordSys.dimensions.slice()) || ['x', 'y'];\n }\n\n var useEncodeDefaulter = opt.useEncodeDefaulter;\n var dimInfoList = createDimensions(source, {\n coordDimensions: coordSysDimDefs,\n generateCoord: opt.generateCoord,\n encodeDefaulter: util[\"w\" /* isFunction */](useEncodeDefaulter) ? useEncodeDefaulter : useEncodeDefaulter ? util[\"i\" /* curry */](sourceHelper[\"c\" /* makeSeriesEncodeForAxisCoordSys */], coordSysDimDefs, seriesModel) : null\n });\n var firstCategoryDimIndex;\n var hasNameEncode;\n coordSysInfo && util[\"k\" /* each */](dimInfoList, function (dimInfo, dimIndex) {\n var coordDim = dimInfo.coordDim;\n var categoryAxisModel = coordSysInfo.categoryAxisMap.get(coordDim);\n\n if (categoryAxisModel) {\n if (firstCategoryDimIndex == null) {\n firstCategoryDimIndex = dimIndex;\n }\n\n dimInfo.ordinalMeta = categoryAxisModel.getOrdinalMeta();\n\n if (opt.createInvertedIndices) {\n dimInfo.createInvertedIndices = true;\n }\n }\n\n if (dimInfo.otherDims.itemName != null) {\n hasNameEncode = true;\n }\n });\n\n if (!hasNameEncode && firstCategoryDimIndex != null) {\n dimInfoList[firstCategoryDimIndex].otherDims.itemName = 0;\n }\n\n var stackCalculationInfo = enableDataStack(seriesModel, dimInfoList);\n var list = new data_List(dimInfoList, seriesModel);\n list.setCalculationInfo(stackCalculationInfo);\n var dimValueGetter = firstCategoryDimIndex != null && isNeedCompleteOrdinalData(source) ? function (itemOpt, dimName, dataIndex, dimIndex) {\n // Use dataIndex as ordinal value in categoryAxis\n return dimIndex === firstCategoryDimIndex ? dataIndex : this.defaultDimValueGetter(itemOpt, dimName, dataIndex, dimIndex);\n } : null;\n list.hasItemOption = false;\n list.initData(source, null, dimValueGetter);\n return list;\n}", "scaleData(data, in_min, in_max, out_min, out_max) {\n let scaledData = new Array()\n for (let i = 0; i < data.length; i++) {\n scaledData[i] = new Array();\n for (let j = 0; j < data[i].length; j++) {\n scaledData[i][j] = this.mapDataPoint(data[i][j], in_min, in_max, out_min, out_max)\n }\n }\n return scaledData;\n }", "static is_data_array_ok(data){\n return this.is_1d_array(data) ||\n this.is_2d_array(data) ||\n this.is_3d_array(data) ||\n this.is_heat_map_suitable_data(data)\n }", "function recursiveConvert(value){if(Chartist.safeHasProperty(value,'value')){// We are dealing with value object notation so we need to recurse on value property\nreturn recursiveConvert(value.value);}else if(Chartist.safeHasProperty(value,'data')){// We are dealing with series object notation so we need to recurse on data property\nreturn recursiveConvert(value.data);}else if(value instanceof Array){// Data is of type array so we need to recurse on the series\nreturn value.map(recursiveConvert);}else if(Chartist.isDataHoleValue(value)){// We're dealing with a hole in the data and therefore need to return undefined\n// We're also returning undefined for multi value output\nreturn undefined;}else {// We need to prepare multi value output (x and y data)\nif(multi){var multiValue={};// Single series value arrays are assumed to specify the Y-Axis value\n// For example: [1, 2] => [{x: undefined, y: 1}, {x: undefined, y: 2}]\n// If multi is a string then it's assumed that it specified which dimension should be filled as default\nif(typeof multi==='string'){multiValue[multi]=Chartist.getNumberOrUndefined(value);}else {multiValue.y=Chartist.getNumberOrUndefined(value);}multiValue.x=value.hasOwnProperty('x')?Chartist.getNumberOrUndefined(value.x):multiValue.x;multiValue.y=value.hasOwnProperty('y')?Chartist.getNumberOrUndefined(value.y):multiValue.y;return multiValue;}else {// We can return simple data\nreturn Chartist.getNumberOrUndefined(value);}}}", "function getMainDataMap() {\n return {\n conversionValue: {\n metric: 'conversionValue',\n getter: commonGetters.getChannelsSeparatelyGetter('breakdownValues')\n },\n conversionValueValue: {\n metric: 'conversionValue',\n getter: commonGetters.getOnlyFromChannelsGetter('totalValue')\n },\n conversionValueChangeValue: {\n metric: 'conversionValue',\n getter: commonGetters.getOnlyFromChannelsGetter('changeValue')\n },\n conversionValueChangePercent: {\n metric: 'conversionValue',\n getter: commonGetters.getOnlyFromChannelsGetter('changePercent'),\n formatters: [\n dataFormatters.decimalToPercent\n ]\n },\n\n numAdsValue: {\n metric: 'numAds',\n getter: commonGetters.getOnlyFromChannelsGetter('totalValue')\n },\n numAdsChangeValue: {\n metric: 'numAds',\n getter: commonGetters.getOnlyFromChannelsGetter('changeValue')\n },\n numAdsChangePercent: {\n metric: 'numAds',\n getter: commonGetters.getOnlyFromChannelsGetter('changePercent'),\n formatters: [\n dataFormatters.decimalToPercent\n ]\n }\n };\n} // end getMainDataMap" ]
[ "0.63014805", "0.5726598", "0.5682507", "0.55231667", "0.5451085", "0.54473096", "0.5332241", "0.53161055", "0.5306075", "0.52250314", "0.5187884", "0.51667017", "0.5077823", "0.50438917", "0.50388014", "0.4983998", "0.49754262", "0.495078", "0.49497983", "0.49245393", "0.4919925", "0.49070674", "0.48871845", "0.48789597", "0.48652178", "0.48599693", "0.48580983", "0.48364627", "0.48364627", "0.48364627", "0.48364627", "0.48364627", "0.48364627", "0.48212498", "0.48055157", "0.48023477", "0.48023477", "0.47979885", "0.4784342", "0.47799972", "0.47760046", "0.47503674", "0.4745046", "0.4744935", "0.47425058", "0.47384053", "0.47290722", "0.47290722", "0.47199592", "0.47162154", "0.47081265", "0.4700675", "0.46955836", "0.46924642", "0.46901998", "0.4685596", "0.46795467", "0.46717617", "0.46706858", "0.46705624", "0.46608335", "0.46560636", "0.46499708", "0.4649485", "0.46489722", "0.4647325", "0.4647069", "0.46470577", "0.4611606", "0.46102685", "0.46091372", "0.46071747", "0.46046683", "0.46026307", "0.46026307", "0.46022278", "0.46022278", "0.45972568", "0.45941433", "0.4591331", "0.458986", "0.45880958", "0.45860267", "0.45831776", "0.45811084", "0.45787737", "0.4570271", "0.45601434", "0.45590472", "0.45561704", "0.45531523", "0.45442438", "0.45435905", "0.45398173", "0.45388493", "0.45297667" ]
0.60213345
4
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Cartesian coordinate system
function dimAxisMapper(dim) { return this._axes[dim]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Center() { return [this.x1 + (0.5 * this.x2 - this.x1), this.y1 + (0.5 * this.y2 - this.y1)]; }", "get Center() { return [this.x1 + (0.5 * this.x2 - this.x1), this.y1 + (0.5 * this.y2 - this.y1)]; }", "center() {\n let x_center = 0, y_center = 0;\n const coords = this.getCoords();\n for (let axis = 0; axis < coords.length; axis ++) {\n let [i, j] = num_60rotations(2*axis);\n x_center += i * coords[axis];\n y_center += j * coords[axis];\n }\n return [x_center, y_center];\n }", "coordinates () {\n return this._position.coordinates()\n }", "getCoords() {\n return [this.x, this.y, this.z];\n }", "computeCoords() {\n this.distanceFromEarthCenter = bv3.length(this.position)\n this.distanceFromEarthSurface = this.distanceFromEarthCenter - 6378\n\n this.lat = radians2degrees(Math.asin(-this.position[1] / this.distanceFromEarthCenter))\n\n\n const posAtEquator = [this.position[0], 0, this.position[2]]\n\n\n const distanceFromEarthCenterAtEquator = bv3.length(posAtEquator)\n const l90 = radians2degrees(Math.asin(-this.position[0] / distanceFromEarthCenterAtEquator))\n\n\n if (this.position[0] > 0 != this.position[2] > 0) {\n if (this.position[0] > 0) {\n //CCconsole.log(\"c1\")\n this.lon = l90;\n } else {\n //CCconsole.log(\"c2\")\n this.lon = 180 - l90;\n }\n } else {\n if (this.position[0] > 0) {\n //CCconsole.log(\"c3\")\n this.lon = -180 - l90;\n } else {\n //CCconsole.log(\"c4\")\n this.lon = l90;\n }\n }\n\n \n }", "project(coord, transMat) {\n var point = BABYLON.Vector3.TransformCoordinates(coord, transMat);\n // The transformed coordinates will be based on coordinate system\n // starting on the center of the screen. But drawing on screen normally starts\n // from top left. We then need to transform them again to have x:0, y:0 on top left.\n var x = point.x * this.workingWidth + this.workingWidth / 2.0 >> 0; // >>0 二进制右移 相当于取整\n var y = -point.y * this.workingHeight + this.workingHeight / 2.0 >> 0;\n return (new BABYLON.Vector2(x, y));\n }", "function sphericalToCartesian( r, a, e ) {\n var x = r * Math.cos(e) * Math.cos(a);\n var y = r * Math.sin(e);\n var z = r * Math.cos(e) * Math.sin(a);\n\n return [x,y,z];\n }", "get center() {\r\n return {\r\n x: this.x + this.width / 2,\r\n y: this.y + this.height / 2\r\n }\r\n }", "function cartesian(coordinates) {\n var lambda = coordinates[0] * __WEBPACK_IMPORTED_MODULE_1__math__[\"v\" /* radians */],\n phi = coordinates[1] * __WEBPACK_IMPORTED_MODULE_1__math__[\"v\" /* radians */],\n cosphi = Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"h\" /* cos */])(phi);\n return [cosphi * Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"h\" /* cos */])(lambda), cosphi * Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"y\" /* sin */])(lambda), Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"y\" /* sin */])(phi)];\n}", "_coord(arr) {\n var a = arr[0], d = arr[1], b = arr[2];\n var sum, pos = [0, 0];\n sum = a + d + b;\n if (sum !== 0) {\n a /= sum;\n d /= sum;\n b /= sum;\n pos[0] = corners[0][0] * a + corners[1][0] * d + corners[2][0] * b;\n pos[1] = corners[0][1] * a + corners[1][1] * d + corners[2][1] * b;\n }\n return pos;\n }", "function canvasToCartesianAxisCoords(pos) {\n // return an object with x/y corresponding to all used axes\n var res = {},\n i, axis;\n for (i = 0; i < xaxes.length; ++i) {\n axis = xaxes[i];\n if (axis && axis.used) {\n res[\"x\" + axis.n] = axis.c2p(pos.left);\n }\n }\n\n for (i = 0; i < yaxes.length; ++i) {\n axis = yaxes[i];\n if (axis && axis.used) {\n res[\"y\" + axis.n] = axis.c2p(pos.top);\n }\n }\n\n if (res.x1 !== undefined) {\n res.x = res.x1;\n }\n\n if (res.y1 !== undefined) {\n res.y = res.y1;\n }\n\n return res;\n }", "function coordinateSystem(unit) {\n return {\n dx: new Point(unit / 3, -unit / 3),\n dy: new Point(unit, 0),\n dz: new Point(0, unit)\n };\n}", "function cartesian(coordinates) {\n var lambda = coordinates[0] * __WEBPACK_IMPORTED_MODULE_1__math__[\"v\" /* radians */],\n phi = coordinates[1] * __WEBPACK_IMPORTED_MODULE_1__math__[\"v\" /* radians */],\n cosphi = Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"h\" /* cos */])(phi);\n return [\n cosphi * Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"h\" /* cos */])(lambda),\n cosphi * Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"y\" /* sin */])(lambda),\n Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"y\" /* sin */])(phi)\n ];\n}", "get position() { return p5.prototype.createVector(0, this.height + Earth.RADIUS, 0); }", "get center() {\n return {\n x: this.width / 2,\n y: this.height / 2\n };\n }", "transformCoords(x: number, y: number) {\n return {\n x: (x * this.im.scale) + this.im.position.x,\n y: (y * this.im.scale) + this.im.position.y,\n };\n }", "projectPosition(xyz) {\n const [X, Y] = this.projectFlat(xyz);\n const Z = (xyz[2] || 0) * this.unitsPerMeter;\n return [X, Y, Z];\n }", "get positionCentre()\n {\n return new Vector2D(\n this.position.x + this.#width/2,\n this.position.y + this.#height/2\n );\n }", "center(x, y) {\n return this.cx(x).cy(y);\n }", "calculatePositions() {\n this.x1 = this.from.getCenterX()\n this.y1 = this.from.getCenterY()\n this.x2 = this.to.getCenterX()\n this.y2 = this.to.getCenterY()\n }", "function WGS84ToCartesian(lng, lat, elv)\n{\n var result = [];\n var lngRad = lng * Math.PI / 180.0;\n var latRad = lat * Math.PI / 180.0;\n var sinlat = Math.sin(latRad);\n var coslat = Math.cos(latRad);\n var sinlong = Math.sin(lngRad);\n var coslong = Math.cos(lngRad);\n var Rn = 6378137.0 / Math.sqrt(1.0-0.006694379990197*sinlat*sinlat);\n result[0] = (Rn + elv) * coslat * coslong * 1.1920930376163765926810017443897e-7;\n result[1] = (Rn + elv) * coslat * sinlong * 1.1920930376163765926810017443897e-7;\n result[2] = (0.993305620011365*Rn + elv) * sinlat * 1.1920930376163765926810017443897e-7;\n return result;\n}", "getCenterPosition() {\n\t\tlet center = this.getCenter();\n\t\treturn {\n\t\t\tx: this.x + center.x,\n\t\t\ty: this.y + center.y\n\t\t};\n\t}", "transformPoint(x_, y_){\n let rads = this.angle * (Math.PI / 180);\n let sin = Math.sin(rads);\n let cos = Math.cos(rads);\n return {\n x: ((x_ * cos) - (y_ * sin)) + this.x\n , y: ((x_ * sin) + (y_ * cos)) + this.y\n }\n }", "get center () {\n return [this.lng, this.lat];\n }", "get center(): _Point {\n return Point(\n this.position.x + this.width / 2,\n this.position.y + this.height / 2\n )\n }", "getCenterPoint() {\n var x1 = this.point1.getX();\n var y1 = this.point1.getY();\n var x2 = this.point2.getX();\n var y2 = this.point2.getY();\n var centerX = (x1 - x2) / 2 + x2;\n var centerY = (y1 - y2) / 2 + y2;\n return new Point2D({x: centerX, y: centerY});\n }", "getRotationAxis() {\n let theta_2 = Math.acos(this.s);\n let a_inv = Math.sin(theta_2);\n this.theta = theta_2 * 2;\n return new Vector3(this.x / a_inv, this.y / a_inv, this.z / a_inv);\n }", "canvasToWorldCoordinates(p) {\r\n\t\tlet m = MathTools.inverseMatMul(this.camera.t, [\r\n\t\t\t[p.x-window.innerWidth/2+this.camera.x],\r\n\t\t\t[window.innerHeight-(p.y+window.innerHeight/2)+this.camera.y]\r\n\t\t])\r\n\t\treturn {\r\n\t\t\tx: m[0][0],\r\n\t\t\ty: m[1][0]\r\n\t\t}\r\n\t}", "project(xyz) {\n const {viewport} = this.context;\n const worldPosition = getWorldPosition(xyz, {\n viewport,\n modelMatrix: this.props.modelMatrix,\n coordinateOrigin: this.props.coordinateOrigin,\n coordinateSystem: this.props.coordinateSystem\n });\n const [x, y, z] = worldToPixels(worldPosition, viewport.pixelProjectionMatrix);\n return xyz.length === 2 ? [x, y] : [x, y, z];\n }", "static cartesianToDegrees([x = 0, y = 0]) {\n\t\treturn ArrayCoords.radiansToDegrees(ArrayCoords.cartesianToRadians([x, y]));\n\t}", "function axialCoords(q, r) {\r\n\tthis.q = q;\r\n\tthis.r = r;\r\n}", "function Position(x, y) {\n \"use strict\";\n\n this.x = x;\n this.y = y;\n\n this.oneDimPosition = function () {\n return ((this.y * 3) + this.x);\n };\n\n this.toString = function () {\n return (\"X: \" + this.x + \" Y: \" + this.y);\n };\n}", "centerPosition() {\n return [this.clientWidth() / 2, this.clientHeight() / 2, ];\n }", "circumcenter(ax, ay, bx, by, cx, cy) \n {\n bx -= ax;\n by -= ay;\n cx -= ax;\n cy -= ay;\n\n var bl = bx * bx + by * by;\n var cl = cx * cx + cy * cy;\n\n var d = bx * cy - by * cx;\n\n var x = (cy * bl - by * cl) * 0.5 / d;\n var y = (bx * cl - cx * bl) * 0.5 / d;\n\n return {\n x: ax + x,\n y: ay + y\n };\n }", "function init() {\n\n // array of: r_maj,r_min,lat1,lat2,c_lon,c_lat,false_east,false_north\n //double c_lat; /* center latitude */\n //double c_lon; /* center longitude */\n //double lat1; /* first standard parallel */\n //double lat2; /* second standard parallel */\n //double r_maj; /* major axis */\n //double r_min; /* minor axis */\n //double false_east; /* x offset in meters */\n //double false_north; /* y offset in meters */\n\n if (!this.lat2) {\n this.lat2 = this.lat1;\n } //if lat2 is not defined\n if (!this.k0) {\n this.k0 = 1;\n }\n this.x0 = this.x0 || 0;\n this.y0 = this.y0 || 0;\n // Standard Parallels cannot be equal and on opposite sides of the equator\n if (Math.abs(this.lat1 + this.lat2) < __WEBPACK_IMPORTED_MODULE_5__constants_values__[\"a\" /* EPSLN */]) {\n return;\n }\n\n var temp = this.b / this.a;\n this.e = Math.sqrt(1 - temp * temp);\n\n var sin1 = Math.sin(this.lat1);\n var cos1 = Math.cos(this.lat1);\n var ms1 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__common_msfnz__[\"a\" /* default */])(this.e, sin1, cos1);\n var ts1 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_tsfnz__[\"a\" /* default */])(this.e, this.lat1, sin1);\n\n var sin2 = Math.sin(this.lat2);\n var cos2 = Math.cos(this.lat2);\n var ms2 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__common_msfnz__[\"a\" /* default */])(this.e, sin2, cos2);\n var ts2 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_tsfnz__[\"a\" /* default */])(this.e, this.lat2, sin2);\n\n var ts0 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_tsfnz__[\"a\" /* default */])(this.e, this.lat0, Math.sin(this.lat0));\n\n if (Math.abs(this.lat1 - this.lat2) > __WEBPACK_IMPORTED_MODULE_5__constants_values__[\"a\" /* EPSLN */]) {\n this.ns = Math.log(ms1 / ms2) / Math.log(ts1 / ts2);\n }\n else {\n this.ns = sin1;\n }\n if (isNaN(this.ns)) {\n this.ns = sin1;\n }\n this.f0 = ms1 / (this.ns * Math.pow(ts1, this.ns));\n this.rh = this.a * this.f0 * Math.pow(ts0, this.ns);\n if (!this.title) {\n this.title = \"Lambert Conformal Conic\";\n }\n}", "function XY(x,y)\r\n{\r\n \tvar pnt = domSVG.createSVGPoint();\r\n\tpnt.x = x\r\n\tpnt.y = y\r\n\tvar sCTM = domSVG.getScreenCTM();\r\n\tvar PNT = pnt.matrixTransform(sCTM.inverse());\r\n \treturn {x:PNT.x,y:PNT.y}\r\n}", "getMatrixForWindowCoordsToSVGUserSpaceCoords() {\n const { transformationContainer } = this;\n return transformationContainer.getScreenCTM().inverse();\n }", "function calcPos() {\n\t\t// Current coordinates\n\t\tvar coords = sphoords.getCoordinates();\n\t\tvar coords_deg = sphoords.getCoordinatesInDegrees();\n\n\t\t// Corresponding position on the sphere\n\t\treturn {\n\t\t\t\tx: radius * Math.cos(coords.latitude) * Math.sin(coords.longitude),\n\t\t\t\ty: radius * Math.cos(coords.latitude) * Math.cos(coords.longitude),\n\t\t\t\tz: radius * Math.sin(coords.latitude),\n\t\t\t\tlong: coords_deg.longitude,\n\t\t\t\tlat: coords_deg.latitude,\n\t\t\t\torientation: sphoords.getScreenOrientation()\n\t\t\t};\n\t}", "findCenter() {\n return {\n x: (this.right - this.left)/2 + this.left,\n y: (this.bottom - this.top)/2 + this.top\n };\n }", "function cartesian(coordinates) {\n const lambda = coordinates[0] * radians,\n phi = coordinates[1] * radians,\n cosphi = cos(phi);\n return [cosphi * cos(lambda), cosphi * sin(lambda), sin(phi)];\n}", "cameraCoords() {\n let coords0 = vec3.fromValues(5, 2, 0);\n let coords1 = vec3.fromValues(3, 3, 1);\n let coords2 = vec3.fromValues(-3,3,1);\n return new Array(coords0, coords1, coords2);\n }", "constructor() {\n super(\"position\", \"normal\", \"texture_coord\");\n // Loop 3 times (for each axis), and inside loop twice (for opposing cube sides):\n for (var i = 0; i < 3; i++)\n for (var j = 0; j < 2; j++) {\n var square_transform = Mat4.rotation(\n i == 0 ? Math.PI / 2 : 0,\n Vec.of(1, 0, 0)\n )\n .times(\n Mat4.rotation(\n Math.PI * j - (i == 1 ? Math.PI / 2 : 0),\n Vec.of(0, 1, 0)\n )\n )\n .times(Mat4.translation([0, 0, 1]));\n // Calling this function of a Square (or any Shape) copies it into the specified\n // Shape (this one) at the specified matrix offset (square_transform):\n Square.insert_transformed_copy_into(this, [], square_transform);\n }\n }", "project(ax, ay, az, angles){\r\n var x = ax - this.camera_p.x;\r\n var y = ay - this.camera_p.y;\r\n var z = az - this.camera_p.z;\r\n \r\n var dx = angles.cy*(angles.sz*y + angles.cz*x) - angles.sy*z;\r\n var dy = angles.sx*(angles.cy*z + angles.sy*(angles.sz*y + angles.cz*x)) + angles.cx*(angles.cz*y - angles.sz*x);\r\n var dz = angles.cx*(angles.cy*z + angles.sy*(angles.sz*y + angles.cz*x)) - angles.sx*(angles.cz*y - angles.sz*x);\r\n return {x: (this.view_p.z*dx)/dz - this.view_p.x, y: (this.view_p.z*dy)/dz - this.view_p.y, dx:dx, dy:dy, dz:dz};\r\n }", "translate(x,y) {\n return new Point({\n x: this.x + x,\n y: this.y + y\n })\n }", "function cartesianAxisToCanvasCoords(pos) {\n // get canvas coords from the first pair of x/y found in pos\n var res = {},\n i, axis, key;\n\n for (i = 0; i < xaxes.length; ++i) {\n axis = xaxes[i];\n if (axis && axis.used) {\n key = \"x\" + axis.n;\n if (pos[key] == null && axis.n === 1) {\n key = \"x\";\n }\n\n if (pos[key] != null) {\n res.left = axis.p2c(pos[key]);\n break;\n }\n }\n }\n\n for (i = 0; i < yaxes.length; ++i) {\n axis = yaxes[i];\n if (axis && axis.used) {\n key = \"y\" + axis.n;\n if (pos[key] == null && axis.n === 1) {\n key = \"y\";\n }\n\n if (pos[key] != null) {\n res.top = axis.p2c(pos[key]);\n break;\n }\n }\n }\n\n return res;\n }", "function Matrix() {\n this.cos = 0.0;\n this.sin = 0.0;\n this.pos = new Vector2();\n this.ang = 0.0;\n}", "get coords() {\n return [this.x, this.y];\n }", "function get_axis(r1, r2, r3) {\n rnorm = Math.sqrt(r1 * r1 + r2 * r2 + r3 * r3)\n k1 = r1 / rnorm\n k2 = r2 / rnorm\n k3 = r3 / rnorm\n return new THREE.Vector3(k1, k2, k3)\n}", "get position() {\n return this._boundingBox.topLeft.rotate(this.rotation, this.pivot);\n }", "constructor() {\n this.matrix = Matrix.identity(3);\n this._centerPoint = new Point(0, 0);\n }", "get worldMatrixInner() {\n return Matrix44.identity();\n }", "static cartesianToRadians([x = 0, y = 0]) {\n\t\treturn Math.atan2(y, x);\n\t}", "static getCoords(t, c, p) {\r\n\t\tlet m = MathTools.matMul(t.t, [\r\n\t\t\t[p.x],\r\n\t\t\t[p.y],\r\n\t\t\t[1]\r\n\t\t])\r\n\t\tm[0][0] += (t.x - c.x)\r\n\t\tm[1][0] += (t.y - c.y)\r\n\t\tm = MathTools.matMul(c.t, m)\r\n\t\treturn {\r\n\t\t\tx: m[0][0]+window.innerWidth/2,\r\n\t\t\ty: window.innerHeight - (m[1][0]+window.innerHeight/2)\r\n\t\t}\r\n\t}", "function orient2D(ax, ay, bx, by, cx, cy) {\n return determinant2D(ax - cx, ay - cy, bx - cx, by - cy);\n }", "function calculateCoordinatesForTiles(){\n var coordinates = {},\n\t\tc2 = new Cesium.Cartesian2(0, 0)\n \tleftTop = scene.camera.pickEllipsoid(c2)\n c2 = new Cesium.Cartesian2(canvas.width, canvas.height)\n var rightDown = scene.camera.pickEllipsoid(c2)\n\n if (leftTop != null && rightDown != null) {\n coordinates.leftTop = Cesium.Ellipsoid.WGS84.cartesianToCartographic(leftTop)\n coordinates.rightDown = Cesium.Ellipsoid.WGS84.cartesianToCartographic(rightDown)\n console.log(\"min lat/long - \", coordinates.leftTop.latitude, coordinates.leftTop.longitude)\n console.log(\"max lat/long - \", coordinates.rightDown.latitude, coordinates.rightDown.longitude)\n\n\t\treturn coordinates\n } else {\n //The sky is visible in 3D\n return null\n }\n}", "function cubeCoords(q, r) {\r\n\tthis.x = q;\r\n\tthis.z = r;\r\n\tthis.y = -q-r;\r\n}", "adjustPosition() {\n //this.geometry.applyMatrix( new THREE.Matrix4().makeTranslation( -(this.width / 2), 0, -(this.height / 2)) );\n this.geometry.translate(-(this.width / 2), 0, -(this.height / 2));\n }", "screenToWorld(x, y) {\r\n\t\tconst dpr = window.devicePixelRatio || 1;\r\n\t \treturn {\r\n\t\t\tx:(x - this._canvas.width / dpr / 2) / this.zoom + this.posX,\r\n\t\t\tz:(y - this._canvas.height / dpr / 2) / this.zoom + this.posZ\r\n\t\t};\r\n\t}", "constructor(x_pos, y_pos) {\n this.x_pos = x_pos;\n this.y_pos = y_pos;\n }", "function rotateCartesian(vector, axis, angle) {\n\t var angleRads = angle * radians,\n\t vectorOut = vector.slice(),\n\t ax1 = (axis === 0) ? 1 : 0,\n\t ax2 = (axis === 2) ? 1 : 2,\n\t cosa = Math.cos(angleRads),\n\t sina = Math.sin(angleRads);\n\t\n\t vectorOut[ax1] = vector[ax1] * cosa - vector[ax2] * sina;\n\t vectorOut[ax2] = vector[ax2] * cosa + vector[ax1] * sina;\n\t\n\t return vectorOut;\n\t}", "function rotateCartesian(vector, axis, angle) {\n\t var angleRads = angle * radians,\n\t vectorOut = vector.slice(),\n\t ax1 = (axis === 0) ? 1 : 0,\n\t ax2 = (axis === 2) ? 1 : 2,\n\t cosa = Math.cos(angleRads),\n\t sina = Math.sin(angleRads);\n\t\n\t vectorOut[ax1] = vector[ax1] * cosa - vector[ax2] * sina;\n\t vectorOut[ax2] = vector[ax2] * cosa + vector[ax1] * sina;\n\t\n\t return vectorOut;\n\t}", "function Cartesian2D(name) {\n Cartesian.call(this, name);\n}", "function Cartesian2D(name) {\n Cartesian.call(this, name);\n}", "function Cartesian2D(name) {\n Cartesian.call(this, name);\n}", "function Cartesian2D(name) {\n Cartesian.call(this, name);\n}", "function Cartesian2D(name) {\n Cartesian.call(this, name);\n}", "transform (matrix) {\n return new Point(this.native().matrixTransform(matrix))\n }", "apply() {\n var transMatrix = mat4.create();\n mat4.identity(transMatrix);\n\n mat4.translate(transMatrix, transMatrix, [this.centerX, this.centerY, this.centerZ]);\n mat4.translate(transMatrix, transMatrix, this.position);\n mat4.rotate(transMatrix, transMatrix, this.angle, [0, 1, 0]);\n\n return transMatrix;\n }", "translate(x, y) {\r\n let tempCubes = [[0, 0], [0, 0], [0, 0], [0, 0]];\r\n this.cubes.forEach(translateCube);\r\n let tempPivotCube = [0, 0];\r\n tempPivotCube[0] = this.pivotCube[0] + x;\r\n tempPivotCube[1] = this.pivotCube[1] + y;\r\n function translateCube(item, index) {\r\n tempCubes[index][0] = item[0] + x;\r\n tempCubes[index][1] = item[1] + y;\r\n }\r\n\r\n return new Tetromino(tempCubes, tempPivotCube, this.material);\r\n }", "function cartesian$1(coordinates) {\n var lambda = coordinates[0] * radians,\n phi = coordinates[1] * radians,\n cosphi = cos(phi);\n return [\n cosphi * cos(lambda),\n cosphi * sin(lambda),\n sin(phi)\n ];\n}", "rotXYZ(XYZ, y_axis, x_axis_p)\n\t{\n\t\tlet XYZrotated = {\n\t\t X: null,\n\t\t Y: null,\n\t\t Z: null};\n\t\tXYZrotated.X = this.rotate(XYZ.X, y_axis, x_axis_p);\n\t\tXYZrotated.Y = this.rotate(XYZ.Y, y_axis, x_axis_p);\n\t\tXYZrotated.Z = this.rotate(XYZ.Z, y_axis, x_axis_p);\n\t\t// Normalize\n\t\tXYZrotated.X = this.normalizeVect(XYZrotated.X);\n\t\tXYZrotated.Y = this.normalizeVect(XYZrotated.Y);\n\t\tXYZrotated.Z = this.normalizeVect(XYZrotated.Z);\n\t\t// Reduce residue of Y\n\t\tlet a = this.innerProductXYZ(XYZrotated.X, XYZrotated.Y);\n\t\tXYZrotated.Y.x -= a * XYZrotated.X.x;\n\t\tXYZrotated.Y.y -= a * XYZrotated.X.y;\n\t\tXYZrotated.Y.z -= a * XYZrotated.X.z;\n\t\t// Reduce residue of Z\n\t\ta = this.innerProductXYZ(XYZrotated.X, XYZrotated.Z);\n\t\tXYZrotated.Z.x -= a * XYZrotated.X.x;\n\t\tXYZrotated.Z.y -= a * XYZrotated.X.y;\n\t\tXYZrotated.Z.z -= a * XYZrotated.X.z;\n\t\ta = this.innerProductXYZ(XYZrotated.Y, XYZrotated.Z);\n\t\tXYZrotated.Z.x -= a * XYZrotated.Y.x;\n\t\tXYZrotated.Z.y -= a * XYZrotated.Y.y;\n\t\tXYZrotated.Z.z -= a * XYZrotated.Y.z;\n\t\treturn XYZrotated;\n\t}", "rotXYZ(XYZ, y_axis, x_axis_p)\n\t{\n\t\tlet XYZrotated = {\n\t\t X: null,\n\t\t Y: null,\n\t\t Z: null};\n\t\tXYZrotated.X = this.rotate(XYZ.X, y_axis, x_axis_p);\n\t\tXYZrotated.Y = this.rotate(XYZ.Y, y_axis, x_axis_p);\n\t\tXYZrotated.Z = this.rotate(XYZ.Z, y_axis, x_axis_p);\n\t\t// Normalize\n\t\tXYZrotated.X = this.normalizeVect(XYZrotated.X);\n\t\tXYZrotated.Y = this.normalizeVect(XYZrotated.Y);\n\t\tXYZrotated.Z = this.normalizeVect(XYZrotated.Z);\n\t\t// Reduce residue of Y\n\t\tlet a = this.innerProductXYZ(XYZrotated.X, XYZrotated.Y);\n\t\tXYZrotated.Y.x -= a * XYZrotated.X.x;\n\t\tXYZrotated.Y.y -= a * XYZrotated.X.y;\n\t\tXYZrotated.Y.z -= a * XYZrotated.X.z;\n\t\t// Reduce residue of Z\n\t\ta = this.innerProductXYZ(XYZrotated.X, XYZrotated.Z);\n\t\tXYZrotated.Z.x -= a * XYZrotated.X.x;\n\t\tXYZrotated.Z.y -= a * XYZrotated.X.y;\n\t\tXYZrotated.Z.z -= a * XYZrotated.X.z;\n\t\ta = this.innerProductXYZ(XYZrotated.Y, XYZrotated.Z);\n\t\tXYZrotated.Z.x -= a * XYZrotated.Y.x;\n\t\tXYZrotated.Z.y -= a * XYZrotated.Y.y;\n\t\tXYZrotated.Z.z -= a * XYZrotated.Y.z;\n\t\treturn XYZrotated;\n\t}", "getMatrix() {\n let x, y;\n\n x = this.transform.getPosition().x;\n y = this.transform.getPosition().y;\n\n this._transformMatrix.identity();\n\n //mat4.translate(this._transformMatrix, this._transformMatrix, [x, y, 0]);\n //mat4.rotate(this._transformMatrix, this._transformMatrix, this.transform.getRotation(), [0.0, 0.0, 1.0]);\n //mat4.translate(this._transformMatrix, this._transformMatrix, [-x, -y, 0]);\n\n this._transformMatrix.translate([x, y, 0]);\n\n return this._transformMatrix.asArray();\n }", "worldToScreen(x, y) {\n if (y === undefined) {\n y = x.y;\n x = x.x;\n }\n\n let M = this.ctx.getTransform();\n\n let ret = {\n x: x * M.a + y * M.c + M.e,\n y: x * M.b + y * M.d + M.f,\n };\n\n return ret;\n }", "function d3f_geo_cartesian(spherical) {\n var λ = spherical[0],\n φ = spherical[1],\n cosφ = Math.cos(φ);\n return [\n cosφ * Math.cos(λ),\n cosφ * Math.sin(λ),\n Math.sin(φ)\n ];\n}", "function PolarCoordinates() {\r\n}", "get center() {}", "function spherical(cartesian) {\n return [Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"g\" /* atan2 */])(cartesian[1], cartesian[0]) * __WEBPACK_IMPORTED_MODULE_1__math__[\"j\" /* degrees */], Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"e\" /* asin */])(Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"q\" /* max */])(-1, Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"r\" /* min */])(1, cartesian[2]))) * __WEBPACK_IMPORTED_MODULE_1__math__[\"j\" /* degrees */]];\n}", "cartesianToCartographic(cartesian, result = [0, 0, 0]) {\n scratchCartesian.from(cartesian);\n const point = this.scaleToGeodeticSurface(scratchCartesian, scratchPosition);\n\n if (!point) {\n return undefined;\n }\n\n const normal = this.geodeticSurfaceNormal(point, scratchNormal);\n\n const h = scratchHeight;\n h.copy(scratchCartesian).subtract(point);\n\n const longitude = Math.atan2(normal.y, normal.x);\n const latitude = Math.asin(normal.z);\n const height = Math.sign(vec3.dot(h, scratchCartesian)) * vec3.length(h);\n\n return toCartographicFromRadians([longitude, latitude, height], result);\n }", "getMatrix() {\n let x, y;\n\n x = this.transform.getPosition().x;\n y = this.transform.getPosition().y;\n\n this._transformMatrix.identity();\n\n //mat4.translate(this._transformMatrix, this._transformMatrix, [x, y, 0]);\n // eslint-disable-next-line\n //mat4.rotate(this._transformMatrix, this._transformMatrix, this.transform.getRotation(), [0.0, 0.0, 1.0]);\n //mat4.translate(this._transformMatrix, this._transformMatrix, [-x, -y, 0]);\n\n this._transformMatrix.translate([x, y, 0]);\n\n return this._transformMatrix.asArray();\n }", "rotate(axis, angle) {\n let x = axis[0];\n let y = axis[1];\n let z = axis[2];\n let n = Math.sqrt(x * x + y * y + z * z);\n x /= n;\n y /= n;\n z /= n;\n\n let xx = x * x;\n let yy = y * y;\n let zz = z * z;\n let c = Math.cos(angle);\n let s = Math.sin(angle);\n let oneMinusCosine = 1 - c;\n\n let r00 = xx + (1 - xx) * c;\n let r01 = x * y * oneMinusCosine + z * s;\n let r02 = x * z * oneMinusCosine - y * s;\n let r10 = x * y * oneMinusCosine - z * s;\n let r11 = yy + (1 - yy) * c;\n let r12 = y * z * oneMinusCosine + x * s;\n let r20 = x * z * oneMinusCosine + y * s;\n let r21 = y * z * oneMinusCosine - x * s;\n let r22 = zz + (1 - zz) * c;\n\n let m00 = this._matrix[0 * 4 + 0];\n let m01 = this._matrix[0 * 4 + 1];\n let m02 = this._matrix[0 * 4 + 2];\n let m03 = this._matrix[0 * 4 + 3];\n let m10 = this._matrix[1 * 4 + 0];\n let m11 = this._matrix[1 * 4 + 1];\n let m12 = this._matrix[1 * 4 + 2];\n let m13 = this._matrix[1 * 4 + 3];\n let m20 = this._matrix[2 * 4 + 0];\n let m21 = this._matrix[2 * 4 + 1];\n let m22 = this._matrix[2 * 4 + 2];\n let m23 = this._matrix[2 * 4 + 3];\n\n this._matrix[0] = r00 * m00 + r01 * m10 + r02 * m20;\n this._matrix[1] = r00 * m01 + r01 * m11 + r02 * m21;\n this._matrix[2] = r00 * m02 + r01 * m12 + r02 * m22;\n this._matrix[3] = r00 * m03 + r01 * m13 + r02 * m23;\n this._matrix[4] = r10 * m00 + r11 * m10 + r12 * m20;\n this._matrix[5] = r10 * m01 + r11 * m11 + r12 * m21;\n this._matrix[6] = r10 * m02 + r11 * m12 + r12 * m22;\n this._matrix[7] = r10 * m03 + r11 * m13 + r12 * m23;\n this._matrix[8] = r20 * m00 + r21 * m10 + r22 * m20;\n this._matrix[9] = r20 * m01 + r21 * m11 + r22 * m21;\n this._matrix[10] = r20 * m02 + r21 * m12 + r22 * m22;\n this._matrix[11] = r20 * m03 + r21 * m13 + r22 * m23;\n\n return this._matrix;\n }", "_getWorldCoords() {\n const corners = [\n tempCorner1.set(-1, 1, 0), // plane's top left corner\n tempCorner2.set(1, 1, 0), // plane's top right corner\n tempCorner3.set(1, -1, 0), // plane's bottom right corner\n tempCorner4.set(-1, -1, 0), // plane's bottom left corner\n ];\n\n // corners with model view projection matrix applied\n let mvpCorners = [];\n // eventual clipped corners\n let clippedCorners = [];\n\n // we are going to get our plane's four corners relative to our model view projection matrix\n for(let i = 0; i < corners.length; i++) {\n const mvpCorner = corners[i].applyMat4(this._matrices.modelViewProjection.matrix);\n mvpCorners.push(mvpCorner);\n\n // Z position is > 1 or < -1 means the corner is clipped\n if(Math.abs(mvpCorner.z) > 1) {\n clippedCorners.push(i);\n }\n }\n\n // near plane is clipping, get intersections between plane and near plane\n if(clippedCorners.length) {\n mvpCorners = this._getNearPlaneIntersections(corners, mvpCorners, clippedCorners);\n }\n\n // we need to check for the X and Y min and max values\n // use arbitrary integers that will be overriden anyway\n let minX = Infinity;\n let maxX = -Infinity;\n\n let minY = Infinity;\n let maxY = -Infinity;\n\n for(let i = 0; i < mvpCorners.length; i++) {\n const corner = mvpCorners[i];\n\n if(corner.x < minX) {\n minX = corner.x;\n }\n if(corner.x > maxX) {\n maxX = corner.x;\n }\n\n if(corner.y < minY) {\n minY = corner.y;\n }\n if(corner.y > maxY) {\n maxY = corner.y;\n }\n }\n\n return {\n top: maxY,\n right: maxX,\n bottom: minY,\n left: minX,\n };\n }", "get Center() {}", "function calculateMatrixAndOffset(_ref) {\n var projectionMode = _ref.projectionMode,\n positionOrigin = _ref.positionOrigin,\n viewport = _ref.viewport;\n var viewMatrixUncentered = viewport.viewMatrixUncentered,\n projectionMatrix = viewport.projectionMatrix;\n var viewMatrix = viewport.viewMatrix,\n viewProjectionMatrix = viewport.viewProjectionMatrix;\n\n var projectionCenter = void 0;\n\n switch (projectionMode) {\n\n case __WEBPACK_IMPORTED_MODULE_4__lib_constants__[\"a\" /* COORDINATE_SYSTEM */].IDENTITY:\n case __WEBPACK_IMPORTED_MODULE_4__lib_constants__[\"a\" /* COORDINATE_SYSTEM */].LNGLAT:\n projectionCenter = ZERO_VECTOR;\n break;\n\n // TODO: make lighitng work for meter offset mode\n case __WEBPACK_IMPORTED_MODULE_4__lib_constants__[\"a\" /* COORDINATE_SYSTEM */].METER_OFFSETS:\n // Calculate transformed projectionCenter (in 64 bit precision)\n // This is the key to offset mode precision (avoids doing this\n // addition in 32 bit precision)\n var positionPixels = viewport.projectFlat(positionOrigin);\n // projectionCenter = new Matrix4(viewProjectionMatrix)\n // .transformVector([positionPixels[0], positionPixels[1], 0.0, 1.0]);\n projectionCenter = __WEBPACK_IMPORTED_MODULE_2_gl_vec4_transformMat4___default()([], [positionPixels[0], positionPixels[1], 0.0, 1.0], viewProjectionMatrix);\n\n // Always apply uncentered projection matrix if available (shader adds center)\n // Zero out 4th coordinate (\"after\" model matrix) - avoids further translations\n // viewMatrix = new Matrix4(viewMatrixUncentered || viewMatrix)\n // .multiplyRight(VECTOR_TO_POINT_MATRIX);\n viewMatrix = __WEBPACK_IMPORTED_MODULE_1_gl_mat4_multiply___default()([], viewMatrixUncentered || viewMatrix, VECTOR_TO_POINT_MATRIX);\n viewProjectionMatrix = __WEBPACK_IMPORTED_MODULE_1_gl_mat4_multiply___default()([], projectionMatrix, viewMatrix);\n break;\n\n default:\n throw new Error('Unknown projection mode');\n }\n\n var viewMatrixInv = __WEBPACK_IMPORTED_MODULE_0_gl_mat4_invert___default()([], viewMatrix) || viewMatrix;\n var cameraPos = [viewMatrixInv[12], viewMatrixInv[13], viewMatrixInv[14]];\n\n return {\n viewMatrix: viewMatrix,\n viewProjectionMatrix: viewProjectionMatrix,\n projectionCenter: projectionCenter,\n cameraPos: cameraPos\n };\n}", "function posfor(x, y, axis) {\n if (axis == 0) return x * 9 + y;\n if (axis == 1) return y * 9 + x;\n return [0,3,6,27,30,33,54,57,60][x] + [0,1,2,9,10,11,18,19,20][y];\n}", "function posfor(x, y, axis) {\n if (axis == 0) return x * 9 + y;\n if (axis == 1) return y * 9 + x;\n return [0,3,6,27,30,33,54,57,60][x] + [0,1,2,9,10,11,18,19,20][y];\n}", "function rotateCartesian(vector, axis, angle) {\n var angleRads = angle * radians,\n vectorOut = vector.slice(),\n ax1 = (axis === 0) ? 1 : 0,\n ax2 = (axis === 2) ? 1 : 2,\n cosa = Math.cos(angleRads),\n sina = Math.sin(angleRads);\n\n vectorOut[ax1] = vector[ax1] * cosa - vector[ax2] * sina;\n vectorOut[ax2] = vector[ax2] * cosa + vector[ax1] * sina;\n\n return vectorOut;\n}", "function Origin(){\n this.x = midWidth;\n this.y = midHeight;\n}", "toRadians() {\n\t\tif (this.y == 0 && this.x == 0) {\n\t\t\treturn 0; //special case, zero length vector\n\t\t}\n\t\treturn Math.atan2 ( this.y, this.x ) + Math.PI / 2;\n\t}", "project(xyz, {topLeft = true} = {}) {\n const worldPosition = this.projectPosition(xyz);\n const coord = worldToPixels(worldPosition, this.pixelProjectionMatrix);\n\n const [x, y] = coord;\n const y2 = topLeft ? y : this.height - y;\n return xyz.length === 2 ? [x, y2] : [x, y2, coord[2]];\n }", "addVertex(givenX, givenY, xMove, yMove, zoom){ //generally the mouse coords\n\n //apply transformations!\n let xcoor = (givenX - (width/2)) / (width/2);\n let ycoor = ((height - givenY) - (height/2)) / (height/2); //weird since canvas is upside down for mouse\n let hit = false;\n //now you have to apply the transformations for world, not inverse\n xcoor = xcoor/zoom;\n ycoor = ycoor/zoom;\n\n\n xcoor -= xMove; //minus because shifting left is negative, so subtracting a negative value moves to the right\n ycoor -= yMove;\n\n //now just create a vertex with these coords\n this.numVertices++; //get a unique ID\n\n let vert = new Vertex(xcoor, ycoor, this.numVertices);\n this.vertices.addFront(new VertexItem(vert));\n this.vertArray.push(vert);\n\n }", "function calculatePosition() {\n var t = p1.angle;\n var p = p2.angle;\n\n var x1 = l*Math.sin(t);\n var y1 = l*Math.cos(t);\n var _y1 = -y1;\n\n var x2 = x1 + L*Math.sin(p);\n var y2 = y1 + L*Math.cos(p);\n var _y2 = -y2;\n\n p1.x = x1;\n p1.y = _y1;\n p2.x = x2;\n p2.y = _y2;\n}", "function getCoords () {\n return {\n x: 10,\n y: 22\n }\n }", "constructor ()\n\t{\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t}", "eventCoordsToSVGCoords(x, y) {\n const svg = this.svgSubjectArea;\n const newPoint = svg.createSVGPoint();\n newPoint.x = x;\n newPoint.y = y;\n const matrixForWindowCoordsToSVGUserSpaceCoords = this.getMatrixForWindowCoordsToSVGUserSpaceCoords();\n const pointforSVGSystem = newPoint.matrixTransform(matrixForWindowCoordsToSVGUserSpaceCoords);\n return pointforSVGSystem;\n }", "get origin() {\n return { x: this.x, y: this.y };\n }", "function getWorldPosition(_ref7) {\n var longitude = _ref7.longitude,\n latitude = _ref7.latitude,\n zoom = _ref7.zoom,\n scale = _ref7.scale,\n meterOffset = _ref7.meterOffset,\n _ref7$distanceScales = _ref7.distanceScales,\n distanceScales = _ref7$distanceScales === undefined ? null : _ref7$distanceScales;\n\n // Calculate scale from zoom if not provided\n scale = scale !== undefined ? scale : zoomToScale(zoom);\n\n // Make a centered version of the matrix for projection modes without an offset\n var center2d = lngLatToWorld([longitude, latitude], scale);\n var center = new __WEBPACK_IMPORTED_MODULE_0_math_gl__[\"b\" /* Vector3 */](center2d[0], center2d[1], 0);\n\n if (meterOffset) {\n // Calculate distance scales if lng/lat/zoom are provided\n distanceScales = distanceScales || getDistanceScales({ latitude: latitude, longitude: longitude, scale: scale });\n\n var pixelPosition = new __WEBPACK_IMPORTED_MODULE_0_math_gl__[\"b\" /* Vector3 */](meterOffset)\n // Convert to pixels in current zoom\n .scale(distanceScales.pixelsPerMeter)\n // We want positive Y to represent an offset towards north,\n // but web mercator world coordinates is top-left\n .scale([1, -1, 1]);\n center.add(pixelPosition);\n }\n\n return center;\n}", "getCenter(){\n\t\treturn {\n\t\t\tx: 2,\n\t\t\ty: 2\n\t\t};\n\t}", "function TransformCoordinates(orderedPair) {\n let xCoordinate = orderedPair[0]\n orderedPair[0] = xCoordinate*30\n // makes parabola look like a quadrant 1 parabola\n let yCoordinate = orderedPair[1];\n orderedPair[1] = canvasSize - yCoordinate;\n return orderedPair;\n\n}", "get position() {\n return {\n x: this.x,\n y: this.y\n };\n }" ]
[ "0.589108", "0.589108", "0.57303226", "0.5684142", "0.56726396", "0.561011", "0.5600579", "0.5583609", "0.55618536", "0.55525583", "0.5520512", "0.5502633", "0.54673386", "0.54541224", "0.54532754", "0.5447362", "0.5438439", "0.5435534", "0.54311943", "0.54281527", "0.5427857", "0.5416701", "0.54110336", "0.5403987", "0.54033476", "0.54029834", "0.53929377", "0.53929263", "0.5391928", "0.5379793", "0.53723395", "0.53616345", "0.5359735", "0.53568643", "0.5356844", "0.5353435", "0.535218", "0.53519636", "0.5344358", "0.53303933", "0.5324258", "0.53221726", "0.5321003", "0.5315539", "0.5313864", "0.5307743", "0.5296015", "0.5291722", "0.5276956", "0.5273548", "0.5273284", "0.52721846", "0.52667147", "0.52576977", "0.5254911", "0.52546304", "0.5242345", "0.5234168", "0.5229546", "0.52212876", "0.52178615", "0.52178615", "0.5214692", "0.5214692", "0.5214692", "0.5214692", "0.5214692", "0.52109396", "0.52101535", "0.5205386", "0.5202126", "0.520157", "0.520157", "0.5190837", "0.51870304", "0.51784825", "0.51776564", "0.51700836", "0.5169037", "0.5167569", "0.5164717", "0.51633435", "0.516293", "0.5157751", "0.51483846", "0.51440746", "0.51440746", "0.5140416", "0.51215065", "0.512071", "0.51172614", "0.5112009", "0.5109107", "0.50999707", "0.50981724", "0.5097034", "0.50964135", "0.50873905", "0.50819963", "0.5077569", "0.50745887" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function getIsInPiecewiseRange(dataExtent, pieceList, selected) { var dataSpan = dataExtent[1] - dataExtent[0]; pieceList = zrUtil.map(pieceList, function (piece) { return { interval: [(piece.interval[0] - dataExtent[0]) / dataSpan, (piece.interval[1] - dataExtent[0]) / dataSpan] }; }); var len = pieceList.length; var lastIndex = 0; return function (val) { // Try to find in the location of the last found for (var i = lastIndex; i < len; i++) { var interval = pieceList[i].interval; if (interval[0] <= val && val <= interval[1]) { lastIndex = i; break; } } if (i === len) { // Not found, back interation for (var i = lastIndex - 1; i >= 0; i--) { var interval = pieceList[i].interval; if (interval[0] <= val && val <= interval[1]) { lastIndex = i; break; } } } return i >= 0 && i < len && selected[i]; }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "started () {}", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "started() {\r\n\r\n\t}", "function SigV4Utils() { }", "static get NOT_READY () {return 0}", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "initialize() {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "function getImplementation( cb ){\n\n }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "heartbeat () {\n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "static final private internal function m106() {}", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }", "get WSAPlayerX64() {}" ]
[ "0.5349978", "0.48933455", "0.48501366", "0.48083982", "0.4772584", "0.474481", "0.47349635", "0.47027457", "0.46929818", "0.46929818", "0.4673667", "0.4644517", "0.46389893", "0.46253318", "0.4618249", "0.4582536", "0.45813942", "0.45742747", "0.45687214", "0.45623618", "0.45563498", "0.45493752", "0.45489514", "0.45457798", "0.4538844", "0.45218396", "0.45187637", "0.4498104", "0.44946006", "0.44832855", "0.44729492", "0.44691566", "0.44642788", "0.44588575", "0.44554883", "0.4453296", "0.44531393", "0.4443642", "0.44374335", "0.44267404", "0.44238108", "0.44228086", "0.4407407", "0.44043022", "0.44043022", "0.44043022", "0.44035548", "0.4393825", "0.43761918", "0.43697277", "0.4364149", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43517888", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43502304", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43440503", "0.43416435", "0.43375877", "0.43357816", "0.43357816", "0.43336093", "0.43330038" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. (1) [Caution]: the logic is correct based on the premises: data processing stage is blocked in stream. See (2) Only register once when import repeatly. Should be executed after series filtered and before stack calculation.
function _default(ecModel) { var stackInfoMap = createHashMap(); ecModel.eachSeries(function (seriesModel) { var stack = seriesModel.get('stack'); // Compatibal: when `stack` is set as '', do not stack. if (stack) { var stackInfoList = stackInfoMap.get(stack) || stackInfoMap.set(stack, []); var data = seriesModel.getData(); var stackInfo = { // Used for calculate axis extent automatically. stackResultDimension: data.getCalculationInfo('stackResultDimension'), stackedOverDimension: data.getCalculationInfo('stackedOverDimension'), stackedDimension: data.getCalculationInfo('stackedDimension'), stackedByDimension: data.getCalculationInfo('stackedByDimension'), isStackedByIndex: data.getCalculationInfo('isStackedByIndex'), data: data, seriesModel: seriesModel }; // If stacked on axis that do not support data stack. if (!stackInfo.stackedDimension || !(stackInfo.isStackedByIndex || stackInfo.stackedByDimension)) { return; } stackInfoList.length && data.setCalculationInfo('stackedOnSeries', stackInfoList[stackInfoList.length - 1].seriesModel); stackInfoList.push(stackInfo); } }); stackInfoMap.each(calculateStack); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function computeSeries(buffer, sampletype, label, currentTimestamp) {\n return {\n uncompressSamples: [\n {\n data_relative_timestamp: currentTimestamp,\n data: {\n value: getMeasure(buffer, sampletype),\n label: label\n }\n }\n ],\n codingType: 0,\n codingTable: 0,\n resolution: null\n }\n}", "preIngestData() {}", "function updateSparklineChartDemo(source){\n \n var y = Math.round(Math.random() * 100);\n// var data = scope[source + 'IngestRateConfig'].series[0].data;\n// data.push(y);\n scope[source + 'IngestRateToday'] = y;\n// if(data.length > 20) data.shift();\n }", "function doChunk() {\nvar time = +new Date(),\n i,\n len = $spans.length,\n $span,\n stringdata,\n stringlabels,\n stringsubindex,\n subindex_colors = [\"#FFCD00\", \"#6DF5D7\", \"#BE8FE7\"],\n colums_color,\n labels = new Array(),\n arr,\n data,\n chart;\n\n for (i=0; i<len; i++) {\n $span = $($spans[i]);\n stringlabels = $span.data('labels');\n stringsubindex = $span.data('subindex');\n stringdata = $span.data('sparkline');\n arr = stringdata.split('; ');\n labels = [\" \"];\n labels = labels.concat(stringlabels.split(','));\n switch(stringsubindex){\n case \"readiness\": \t colums_color = subindex_colors[0];\n break;\n case \"implementation\":colums_color = subindex_colors[1];\n break;\n case \"impact\": colums_color = subindex_colors[2];\n break;\n }\n\n //var labels = new Function(\"return [\" + stringlabels + \"];\")();\n //var labels = (new Function(\"return [\" + stringlabels+ \"];\")());\n //console.log(labels);\n data = $.map(arr[0].split(','), parseFloat);\n //console.log(data);\n //labels = $.map(stringlabels.split(','));\n chart = {};\n\n if (arr[1]) {\n chart.type = arr[1];\n }\n $span.highcharts('SparkLine', {\n series: [{\n data: data,\n color:colums_color,\n pointStart: 1\n }],\n xAxis: {\n type: 'category',\n // minRange: 1,\n categories: labels,//countries,\n lineColor:colums_color\n /*labels: {\n enabled:false\n }*/\n },\n tooltip: {\n headerFormat: '<span style=\"font-size: 10px\">{point.x}:</span>',\n pointFormat: '<b>{point.y}</b>'\n },\n chart: chart\n });\n\n n += 1;\n\n // If the process takes too much time, run a timeout to allow interaction with the browser\n if (new Date() - time > 500) {\n $spans.splice(0, i + 1);\n setTimeout(doChunk, 0);\n break;\n }\n\n // Print a feedback on the performance\n //if (n === fullLen) {\n // $('#result').html('Generated ' + fullLen + ' sparklines in ' + (new Date() - start) + ' ms');\n //}\n }\n}", "function addToPackage(history) {\n console.log(\"addToPackage\")\n packaged[SOURCE][history.id] =\n new EdisonTelemetrySeries(history.value);\n }", "function loadTrend(datez) {\n $scope.read = [];\n $scope.write = [];\n $scope.count = [];\n var j = 0;\n\n var chartTrend = $('#container').highcharts();\n chartTrend.showLoading();\n\n var cpuInfo = {\n SystemName: $scope.System,\n SystemSerial: $scope.SystemSerial,\n CPUNum: $scope.CPUNum,\n ProcessName: $scope.ProcessName,\n Pin: $scope.Pin,\n FileName: $scope.FileName,\n StartTime: datez / 1000\n };\n apiService.loadFileTrendSingleData(cpuInfo).then(function (result) {\n var data = result;\n $scope.chartLoading = \"\";\n var dataLength = data.length,\n i = 0;\n\n\n var date = 0;\n for (i; i < dataLength; i += 1) {\n date = data[i].UnixFromTimestamp * 1000;\n $scope.read.push([\n date, // the date\n data[i].Reads\n ]);\n\n $scope.write.push([\n date, // the date\n data[i].Writes\n ]);\n\n $scope.count.push([\n date, // the date\n data[i].Opens\n ]);\n }\n while (chartTrend.series.length > 0)chartTrend.series[0].remove(true);\n\n $('#container').highcharts('StockChart', chartConfig);\n chartTrend = $('#container').highcharts();\n chartTrend.addSeries({\n type: 'column',\n name: \"Reads\",\n id: \"read\",\n color: Highcharts.getOptions().colors[0], // same as onSeries\n data: $scope.read,\n yAxis: 0,\n gapSize: 5,\n threshold: null,\n tooltip: {\n valueDecimals: 2\n }\n });\n\n chartTrend.addSeries({\n type: 'column',\n name: \"Writes\",\n color: \"#CC6699\",\n id: \"write\",\n data: $scope.write,\n yAxis: 0,\n gapSize: 5,\n threshold: null,\n tooltip: {\n valueDecimals: 2\n }\n });\n chartTrend.addSeries({\n type: 'line',\n name: \"Opens\",\n id: \"count\",\n color: Highcharts.getOptions().colors[2], // same as onSeries\n data: $scope.count,\n yAxis: 1,\n gapSize: 5,\n threshold: null\n });\n\n chartTrend.addSeries({\n type: 'flags',\n id: \"Tag\",\n name: \"Selected Interval\",\n data: [{\n x: datez,\n title: 'X',\n text: 'Shape: \"circlepin\"'\n }],\n color: Highcharts.getOptions().colors[2], // same as onSeries\n fillColor: Highcharts.getOptions().colors[2],\n width: 16,\n style: {// text style\n color: 'black'\n },\n enableMouseTracking: false\n\n });\n chartTrend.hideLoading();\n\n var actIndex = $scope.AvailableDates.indexOf($scope.selectedDate);\n $scope.firstIntv = false;\n $scope.lastIntv = false;\n\n if (actIndex == 0) {\n $scope.firstIntv = true;\n }\n if (actIndex == $scope.AvailableDates.length - 1) {\n $scope.lastIntv = true;\n }\n });\n\n\n }", "add_stdev_series(chart, vol) {\n vol /= 100;\n\n const stdev_up_series = chart.ref.addLineSeries(this.line_settings);\n const stdev_down_series = chart.ref.addLineSeries(this.line_settings);\n const stdev_up_data = [];\n const stdev_down_data = [];\n const start_date = Date.parse(chart.start_date);\n const start_price = chart.start_price;\n\n for (var i = 1; i < this.look_ahead; i++) {\n const next = new Date(start_date);\n next.setDate(next.getDate() + i);\n const next_str = next.toISOString();\n const next_price_up = start_price * Math.exp(vol * Math.sqrt(i / 365));\n const next_price_down = start_price * Math.exp(-vol * Math.sqrt(i / 365));\n stdev_up_data.push({ time: next_str, value: next_price_up });\n stdev_down_data.push({ time: next_str, value: next_price_down });\n }\n\n stdev_up_series.setData(stdev_up_data);\n stdev_down_series.setData(stdev_down_data);\n chart.stdev_up_series = stdev_up_series;\n chart.stdev_down_series = stdev_down_series;\n }", "function getSARstack(aoi){\r\n \r\n var s1 = ee.ImageCollection('COPERNICUS/S1_GRD_FLOAT')\r\n .filterBounds(aoi)\r\n .filterDate(startDate, endDate)\r\n .filterMetadata('resolution_meters', 'equals' , 10)\r\n .filter(ee.Filter.eq('instrumentMode', 'IW'));\r\n \r\n if (slopeCorrection){\r\n s1 = slope_correction(\r\n s1,\r\n {'model': 'volume', // correction model - volume recommended for land cover classifiction\r\n 'elevation': elev, // elevation model\r\n 'buffer': 0 // buffer in meter\r\n }\r\n );\r\n }\r\n \r\n var asc = s1.filter(ee.Filter.eq('orbitProperties_pass', 'ASCENDING'));\r\n var desc = s1.filter(ee.Filter.eq('orbitProperties_pass', 'DESCENDING'));\r\n \r\n var asc_vv = asc\r\n .filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VV'))\r\n .select(['VV', 'angle']);\r\n var asc_vh = asc\r\n .filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VH'))\r\n .select(['VH', 'angle']);\r\n \r\n var desc_vv = desc\r\n .filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VV'))\r\n .select(['VV', 'angle']);\r\n var desc_vh = desc\r\n .filter(ee.Filter.listContains('transmitterReceiverPolarisation', 'VH'))\r\n .select(['VH', 'angle']);\r\n \r\n if (speckleFilter){\r\n \r\n asc_vv = asc_vv.map(cleanS1);\r\n asc_vh = asc_vh.map(cleanS1);\r\n desc_vv = desc_vv.map(cleanS1);\r\n desc_vh = desc_vh.map(cleanS1);\r\n \r\n }\r\n \r\n var stack = asc_vh.select(0).median().rename('asc_vh_median')\r\n .addBands(asc_vv.select(0).median().rename('asc_vv_median'))\r\n .addBands(desc_vv.select(0).median().rename('desc_vv_median'))\r\n .addBands(desc_vh.select(0).median().rename('desc_vh_median'))\r\n .addBands(desc_vh.select(0).median().divide(desc_vv.select(0).median()).rename('desc_dpol_median'))\r\n .addBands(asc_vh.select(0).median().divide(asc_vv.select(0).median()).rename('asc_dpol_median'))\r\n .addBands(asc_vv.select(0).reduce(ee.Reducer.stdDev()).rename('asc_vv_stDev'))\r\n .addBands(asc_vh.select(0).reduce(ee.Reducer.stdDev()).rename('asc_vh_stDev'))\r\n .addBands(desc_vv.select(0).reduce(ee.Reducer.stdDev()).rename('desc_vv_stDev'))\r\n .addBands(desc_vh.select(0).reduce(ee.Reducer.stdDev()).rename('desc_vh_stDev'))\r\n \r\n // Convert to BD\r\n stack = toDB(stack) \r\n // Multiply by 1000 and convert to integer to reduce file sizes on export\r\n stack = stack.multiply(1000).round().int()\r\n \r\n return stack\r\n}", "function Dataflow() {\n this._log = Object(__WEBPACK_IMPORTED_MODULE_12_vega_util__[\"C\" /* logger */])();\n this.logLevel(__WEBPACK_IMPORTED_MODULE_12_vega_util__[\"b\" /* Error */]);\n\n this._clock = 0;\n this._rank = 0;\n this._loader = Object(__WEBPACK_IMPORTED_MODULE_11_vega_loader__[\"a\" /* loader */])();\n\n this._touched = Object(__WEBPACK_IMPORTED_MODULE_10__util_UniqueList__[\"a\" /* default */])(__WEBPACK_IMPORTED_MODULE_12_vega_util__[\"q\" /* id */]);\n this._pulses = {};\n this._pulse = null;\n\n this._heap = new __WEBPACK_IMPORTED_MODULE_9__util_Heap__[\"a\" /* default */](function(a, b) { return a.qrank - b.qrank; });\n this._postrun = [];\n}", "_transform(chunk,encoding,cb) {\n\n const uint8_view = new Uint8Array(chunk, 0, chunk.length);\n var dataView = new DataView(uint8_view.buffer);\n\n let iFloat = Array(this.sz*2);\n let asComplex = Array(this.sz);\n\n\n // for(let i = 0; i < this.sz*2; i+=1) {\n // iFloat[i] = dataView.getFloat64(i*8, true);\n // }\n\n for(let i = 0; i < this.sz*2; i+=2) {\n let re = dataView.getFloat64(i*8, true);\n let im = dataView.getFloat64((i*8)+8, true);\n\n asComplex[i/2] = mt.complex(re,im);\n\n iFloat[i] = re;\n iFloat[i+1] = im;\n\n // if( i < 16 ) {\n // console.log(re);\n // }\n\n }\n\n let iShort = mutil.IFloatToIShortMulti(iFloat);\n\n if( this.onFrameIShort !== null ) {\n this.onFrameIShort(iShort);\n }\n\n // console.log(\"iFloat length \" + iFloat.length);\n // console.log(iFloat.slice(0,16));\n\n // console.log(\"iShort length \" + iShort.length);\n // console.log(iShort.slice(0,16));\n\n\n this.handleDefaultStream(iFloat,iShort,asComplex);\n this.handleFineSync(iFloat,iShort,asComplex);\n this.handleAllSubcarriers(iFloat,iShort,asComplex);\n this.handleDemodData(iFloat,iShort,asComplex);\n\n\n // for(x of iFloat) {\n // console.log(x);\n // }\n\n\n this.uint.frame_track_counter++;\n cb();\n }", "_fireNoDataFromSourceEvent() {\n const value = !this.isReceivingData();\n this.emit(_JitsiTrackEvents__WEBPACK_IMPORTED_MODULE_4__[\"NO_DATA_FROM_SOURCE\"], value); // FIXME: Should we report all of those events\n\n _statistics_statistics__WEBPACK_IMPORTED_MODULE_12__[\"default\"].sendAnalytics(Object(_service_statistics_AnalyticsEvents__WEBPACK_IMPORTED_MODULE_11__[\"createNoDataFromSourceEvent\"])(this.getType(), value));\n _statistics_statistics__WEBPACK_IMPORTED_MODULE_12__[\"default\"].sendLog(JSON.stringify({\n name: _JitsiTrackEvents__WEBPACK_IMPORTED_MODULE_4__[\"NO_DATA_FROM_SOURCE\"],\n log: value\n }));\n }", "_setData(d) {\n if (!(d instanceof SplitStreamInputData || d instanceof SplitStreamFilter))\n console.error(\n 'Added data is not an instance of SplitStreamData or SplitStreamFilter'\n );\n\n this._datasetsLoaded++;\n this._data = d.data;\n this._update();\n }", "function prepareSeries(data){\n var result = data.result;\n\n // Keep only series when needed\n if(seriesFilter && (!filtersOnlySampleSeries || result.supportsControllersDiscrimination)){\n // Insensitive case matching\n var regexp = new RegExp(seriesFilter, 'i');\n result.series = $.grep(result.series, function(series, index){\n return regexp.test(series.label);\n });\n }\n\n // Keep only controllers series when supported and needed\n if(result.supportsControllersDiscrimination && showControllersOnly){\n result.series = $.grep(result.series, function(series, index){\n return series.isController;\n });\n }\n\n // Sort data and mark series\n $.each(result.series, function(index, series) {\n series.data.sort(compareByXCoordinate);\n series.color = index;\n });\n}", "function addSeries() {\n storeData = data;\n colorArray.push(colorSpectrum[series%colorSpectrum.length]);\n series = storeData[0].length;\n labelArray.push(origLabels[1] + series);\n doCalc();\n}", "function dataStack(ecModel) {\n\t var stackInfoMap = createHashMap();\n\t ecModel.eachSeries(function (seriesModel) {\n\t var stack = seriesModel.get('stack'); // Compatibal: when `stack` is set as '', do not stack.\n\t\n\t if (stack) {\n\t var stackInfoList = stackInfoMap.get(stack) || stackInfoMap.set(stack, []);\n\t var data = seriesModel.getData();\n\t var stackInfo = {\n\t // Used for calculate axis extent automatically.\n\t // TODO: Type getCalculationInfo return more specific type?\n\t stackResultDimension: data.getCalculationInfo('stackResultDimension'),\n\t stackedOverDimension: data.getCalculationInfo('stackedOverDimension'),\n\t stackedDimension: data.getCalculationInfo('stackedDimension'),\n\t stackedByDimension: data.getCalculationInfo('stackedByDimension'),\n\t isStackedByIndex: data.getCalculationInfo('isStackedByIndex'),\n\t data: data,\n\t seriesModel: seriesModel\n\t }; // If stacked on axis that do not support data stack.\n\t\n\t if (!stackInfo.stackedDimension || !(stackInfo.isStackedByIndex || stackInfo.stackedByDimension)) {\n\t return;\n\t }\n\t\n\t stackInfoList.length && data.setCalculationInfo('stackedOnSeries', stackInfoList[stackInfoList.length - 1].seriesModel);\n\t stackInfoList.push(stackInfo);\n\t }\n\t });\n\t stackInfoMap.each(calculateStack);\n\t }", "getGraphDataIntensity (state) {\n const filtered = state.container[state.currentId] ? state.container[state.currentId].filter(el => el.code === 'I') : [];\n return filtered.map(a => [getUnixTimestamp(a.timeStamp), a.value]);\n }", "onAfterSourceLoadData() {\n this.asyncCall(() => {\n this.chartPlugin.removeAllRangeBars();\n this.updateFromSource();\n });\n }", "function Dataflow() {\n this._log = (0,vega_util__WEBPACK_IMPORTED_MODULE_12__.logger)();\n this.logLevel(vega_util__WEBPACK_IMPORTED_MODULE_12__.Error);\n\n this._clock = 0;\n this._rank = 0;\n try {\n this._loader = (0,vega_loader__WEBPACK_IMPORTED_MODULE_11__.loader)();\n } catch (e) {\n // do nothing if loader module is unavailable\n }\n\n this._touched = (0,_util_UniqueList__WEBPACK_IMPORTED_MODULE_10__.default)(vega_util__WEBPACK_IMPORTED_MODULE_12__.id);\n this._pulses = {};\n this._pulse = null;\n\n this._heap = new _util_Heap__WEBPACK_IMPORTED_MODULE_9__.default(function(a, b) { return a.qrank - b.qrank; });\n this._postrun = [];\n}", "function Dataflow() {\n this._log = vegaUtil.logger();\n\n this._clock = 0;\n this._rank = 0;\n this._loader = vegaLoader.loader();\n\n this._touched = UniqueList(vegaUtil.id);\n this._pulses = {};\n this._pulse = null;\n\n this._heap = new Heap(function(a, b) { return a.qrank - b.qrank; });\n this._postrun = [];\n}", "function loadMySeriesByKey(){ //called on document.ready and when page get focus\n var mySerie, seriesLoadCount=0, seriesTree= {}, localSeries = window.localStorage.getItem('newSeries'); //converted to a single master index from separate Saved and History indexes\n if(localSeries!=null){\n window.localStorage.removeItem('newSeries'); //used to indicate if the series table needs to be refreshed.\n var seriesKeys = JSON.parse(localSeries);\n var adddt = new Date();\n var params = {command: 'UploadMyMashableData', adddt: adddt.getTime(), series: []};\n for(var i=0;i<seriesKeys.length;i++){\n seriesLoadCount++;\n mySerie = JSON.parse(localStorage.getItem(seriesKeys[i]));\n localStorage.removeItem(seriesKeys[i]);\n mySerie.handle = 'L'+localSeriesIndex++;\n //reformat data as string\n mySerie.data = MD.common.mashableDataString(mySerie);\n\n if(account.loggedIn()) { // ...add to MySeries in cloud\n params.series.push(mySerie);\n seriesTree[mySerie.handle] = mySerie;\n } else {\n oMySets[mySerie.handle] = mySerie;\n addMySeriesRow($.extend({}, mySerie));\n }\n }\n if(account.loggedIn()){\n callApi(params, function(results, textStatus, jqXH){\n var dbHandle;\n for(var localHandle in results.handles){\n dbHandle = results.handles[localHandle];\n seriesTree[localHandle].handle = dbHandle;\n mySerie.usid = dbHandle.substr(1);\n addMySeriesRow($.extend({},seriesTree[localHandle])); //this will update or add the series as needed and add it to the oMySets object\n }\n });\n }\n }\n mySeriesLoaded = true; //global var used to prevent this from firing when the window opens until we are ready\n return seriesLoadCount;\n}", "function UsageOverTime(_ref) {\n var metrics = _ref.metrics,\n styles = OvertimeChart_objectWithoutProperties(_ref, [\"metrics\"]);\n\n // reference to chart component\n var chartRef = react_default.a.useRef(); // ref to current props.metrics value to access to latest inside setInterval callback\n\n var metricsRef = react_default.a.useRef(metrics); // flag to trigger the refresh interval\n\n var _React$useState = react_default.a.useState(false),\n _React$useState2 = OvertimeChart_slicedToArray(_React$useState, 2),\n initialized = _React$useState2[0],\n setInitialized = _React$useState2[1];\n\n var hasData = metrics.cpu.data.length > 0 || metrics.ram.data.length > 0;\n react_default.a.useEffect(function () {\n // update reference to metrics\n metricsRef.current = metrics;\n }); // initialize the chart when data is ready\n\n react_default.a.useEffect(function () {\n var _makeSeries = makeSeries(metrics),\n cpu = _makeSeries.cpu,\n ram = _makeSeries.ram;\n\n chartRef.current.init(cpu, ram);\n setInitialized(true);\n }, [hasData]); // start refreshing the chart\n\n react_default.a.useEffect(function () {\n if (!initialized) {\n return;\n }\n\n function updateChart() {\n var _makeSeries2 = makeSeries(metricsRef.current),\n cpu = _makeSeries2.cpu,\n ram = _makeSeries2.ram;\n\n chartRef.current.add(cpu.pop(), ram.pop());\n }\n\n var timerId = setInterval(updateChart, 3000);\n return function cleanup() {\n clearInterval(timerId);\n };\n }, [initialized]);\n return /*#__PURE__*/react_default.a.createElement(LineChart, OvertimeChart_extends({\n ref: chartRef\n }, styles));\n}", "function doChunk() {\n\t\t\tvar time = +new Date(),\n\t\t\t\ti,\n\t\t\t\tlen = $spans.length,\n\t\t\t\t$span,\n\t\t\t\tstringdata,\n\t\t\t\tstringlabels,\n\t\t\t\tstringsubindex,\n\t\t\t\tsubindex_colors = [\"#FFCD00\", \"#6DF5D7\", \"#BE8FE7\"],\n\t\t\t\tcolums_color,\n\t\t\t\tlabels = new Array(),\n\t\t\t\tarr,\n\t\t\t\tdata,\n\t\t\t\tchart;\n\n\t\t\tfor (i=0; i<len; i++) {\n\t\t\t\t$span = $($spans[i]);\n\t\t\t\tstringlabels = $span.data('labels');\n\t\t\t\tstringsubindex = $span.data('subindex');\n\t\t\t\tstringdata = $span.data('sparkline');\n\t\t\t\tarr = stringdata.split('; ');\n\t\t\t\tlabels = [\" \"];\n\t\t\t\tlabels = labels.concat(stringlabels.split(','));\n\t\t\t\tswitch(stringsubindex){\n\t\t\t\t\tcase \"readiness\": \t colums_color = subindex_colors[0];\n\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\tcase \"implementation\":colums_color = subindex_colors[1];\n\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\tcase \"impact\": colums_color = subindex_colors[2];\n\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t}\n\n\t\t\t\t//var labels = new Function(\"return [\" + stringlabels + \"];\")();\n\t\t\t\t//var labels = (new Function(\"return [\" + stringlabels+ \"];\")());\n\t\t\t\t//console.log(labels);\n\t\t\t\tdata = $.map(arr[0].split(','), parseFloat);\n\t\t\t\t//console.log(data);\n\t\t\t\t//labels = $.map(stringlabels.split(','));\n\t\t\t\tchart = {};\n\n\t\t\t\tif (arr[1]) {\n\t\t\t\t\tchart.type = arr[1];\n\t\t\t\t}\n\t\t\t\t$span.highcharts('SparkLine', {\n\t\t\t\t\tseries: [{\n\t\t\t\t\t\tdata: data,\n\t\t\t\t\t\tcolor:colums_color,\n\t\t\t\t\t\tpointStart: 1\n\t\t\t\t\t}],\n\t\t\t\t\txAxis: {\n\t\t\t\t\t type: 'category',\n\t\t\t\t\t // minRange: 1,\n\t\t\t\t\t\tcategories: labels,//countries,\n\t\t\t\t\t\tlineColor:colums_color\n\t\t\t\t\t\t/*labels: {\n\t\t\t\t\t\t\tenabled:false\n\t\t\t\t\t\t}*/\n\t\t\t\t\t},\n\t\t\t\t\ttooltip: {\n\t\t\t\t\t\theaderFormat: '<span style=\"font-size: 10px\">{point.x}:</span>',\n\t\t\t\t\t\tpointFormat: '<b>{point.y}</b>'\n\t\t\t\t\t},\n\t\t\t\t\tchart: chart\n\t\t\t\t});\n\n\t\t\t\tn += 1;\n\n\t\t\t\t// If the process takes too much time, run a timeout to allow interaction with the browser\n\t\t\t\tif (new Date() - time > 500) {\n\t\t\t\t\t$spans.splice(0, i + 1);\n\t\t\t\t\tsetTimeout(doChunk, 0);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}", "function doChunk() {\n\t\t\tvar time = +new Date(),\n\t\t\t\ti,\n\t\t\t\tlen = $spans.length,\n\t\t\t\t$span,\n\t\t\t\tstringdata,\n\t\t\t\tstringlabels,\n\t\t\t\tstringsubindex,\n\t\t\t\tsubindex_colors = [\"#FFCD00\", \"#6DF5D7\", \"#BE8FE7\"],\n\t\t\t\tcolums_color,\n\t\t\t\tlabels = new Array(),\n\t\t\t\tarr,\n\t\t\t\tdata,\n\t\t\t\tchart;\n\n\t\t\tfor (i=0; i<len; i++) {\n\t\t\t\t$span = $($spans[i]);\n\t\t\t\tstringlabels = $span.data('labels');\n\t\t\t\tstringsubindex = $span.data('subindex');\n\t\t\t\tstringdata = $span.data('sparkline');\n\t\t\t\tarr = stringdata.split('; ');\n\t\t\t\tlabels = [\" \"];\n\t\t\t\tlabels = labels.concat(stringlabels.split(','));\n\t\t\t\tswitch(stringsubindex){\n\t\t\t\t\tcase \"readiness\": \t colums_color = subindex_colors[0];\n\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\tcase \"implementation\":colums_color = subindex_colors[1];\n\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\tcase \"impact\": colums_color = subindex_colors[2];\n\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t}\n\n\t\t\t\t//var labels = new Function(\"return [\" + stringlabels + \"];\")();\n\t\t\t\t//var labels = (new Function(\"return [\" + stringlabels+ \"];\")());\n\t\t\t\t//console.log(labels);\n\t\t\t\tdata = $.map(arr[0].split(','), parseFloat);\n\t\t\t\t//console.log(data);\n\t\t\t\t//labels = $.map(stringlabels.split(','));\n\t\t\t\tchart = {};\n\n\t\t\t\tif (arr[1]) {\n\t\t\t\t\tchart.type = arr[1];\n\t\t\t\t}\n\t\t\t\t$span.highcharts('SparkLine', {\n\t\t\t\t\tseries: [{\n\t\t\t\t\t\tdata: data,\n\t\t\t\t\t\tcolor:colums_color,\n\t\t\t\t\t\tpointStart: 1\n\t\t\t\t\t}],\n\t\t\t\t\txAxis: {\n\t\t\t\t\t type: 'category',\n\t\t\t\t\t // minRange: 1,\n\t\t\t\t\t\tcategories: labels,//countries,\n\t\t\t\t\t\tlineColor:colums_color\n\t\t\t\t\t\t/*labels: {\n\t\t\t\t\t\t\tenabled:false\n\t\t\t\t\t\t}*/\n\t\t\t\t\t},\n\t\t\t\t\ttooltip: {\n\t\t\t\t\t\theaderFormat: '<span style=\"font-size: 10px\">{point.x}:</span>',\n\t\t\t\t\t\tpointFormat: '<b>{point.y}</b>'\n\t\t\t\t\t},\n\t\t\t\t\tchart: chart\n\t\t\t\t});\n\n\t\t\t\tn += 1;\n\n\t\t\t\t// If the process takes too much time, run a timeout to allow interaction with the browser\n\t\t\t\tif (new Date() - time > 500) {\n\t\t\t\t\t$spans.splice(0, i + 1);\n\t\t\t\t\tsetTimeout(doChunk, 0);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// Print a feedback on the performance\n\t\t\t\t//if (n === fullLen) {\n\t\t\t\t// $('#result').html('Generated ' + fullLen + ' sparklines in ' + (new Date() - start) + ' ms');\n\t\t\t\t//}\n\t\t\t}\n\t\t}", "function importGeneric(fileStream, config = {}, options = {}) {\n // TODO: browserfy?\n const txs = [],\n import_id = config.name + '_' + Date.now();\n let index = 0;\n\n if (options.year)\n options.year = parseInt(options.year);\n options.year = [Date.parse(`1/1/${options.year}`),\n Date.parse(`1/1/${(options.year + 1)}`) -1];\n\n return new Promise(resolve => {\n fileStream\n .pipe(new IgnoreBytes(config.offset || 0))\n .pipe(csv({ headers: config.headers }))\n .on('data', row => {\n if (config.transform)\n config.transform(row)\n\n // console.log(\"row ===> \", row);\n // Add unique ids\n row.import_id = import_id;\n row.import_index = index++;\n // row.taxable = true\n\n // Typecast\n for (const [key, typeCast] of Object.entries({\n timestamp: Date.parse,\n fiatPrice: parseFloat,\n fiatAmount: parseFloat,\n cryptoAmount: parseFloat,\n taxable: v => !v || v.toLowerCase() != 'false',\n })) {\n row[key] = typeCast(row[key]);\n }\n\n if (options.year) {\n if (row.timestamp < options.year[0] || row.timestamp > options.year[1]) {\n return;\n }\n }\n\n // Hack: calc fiatPrice if missing\n if (!row.fiatPrice && row.fiatAmount && row.cryptoAmount) {\n row.fiatPrice = row.fiatAmount / row.cryptoAmount;\n console.log(\"CALC FIAT PRICE\", row.fiatPrice);\n }\n\n txs.push(row);\n })\n .on('end', () => {\n resolve(txs);\n });\n // }).then((row) => {\n // console.log(\" ----> \", row)\n });\n}", "processData(updatedData, updatedSeries) {\n\n console.log('----------------------------------------------------------------------------');\n\n let seriesArray = Object.keys(this.rawData);\n\n let correlatedThreadIndices = this.calculateCorrelatedThreadIndices(this.rawData);\n\n seriesArray.forEach(series => {\n\n // clean thread mapping for this series to prevent removed correlations from sticking around\n this.processedData.threadMapping[series] = [];\n\n correlatedThreadIndices[series].threadIndices.forEach(threadSeriesIndexPair => {\n\n let threadIndex = threadSeriesIndexPair[0]; // already with 'i'\n let threadSeriesIndex = threadSeriesIndexPair[1];\n\n // if thread needs to be created\n if (!this.processedData.threads[threadIndex]) {\n this.processedData.threads[threadIndex] = {};\n }\n\n this.processedData.threads[threadIndex]['i'+threadSeriesIndex] = {\n series: series,\n data: this.rawData[series]\n };\n\n // if thread index is not yet in thread mapping array for that series\n if (this.processedData.threadMapping[series].indexOf(threadIndex) < 0) {\n this.processedData.threadMapping[series].push(threadIndex);\n }\n });\n\n });\n\n this.updateSubscribers(seriesArray, updatedData, updatedSeries);\n }", "transform() {\n let xaxis = [];\n const xaxisIndex = 0;\n for (let row of this.raw) {\n xaxis.push(row[xaxisIndex]);\n }\n xaxis.shift();\n console.log(`Horizontal axis: ${xaxis}`);\n \n let series = [];\n /* series is an array storing the data series to be rendered.\n * Each element of an array is an object: { seriesName: 'SERIES NAME', data: [ numbers of the series ] }\n */\n let seriesIndex = [];\n \n // Find indices from series name, store them into seriesIndex[]\n if (Array.isArray(this.selected))\n this.selected.map( (seriesName) => seriesIndex.push(this.header.indexOf(seriesName) + 1));\n // +1? this.header has the first element stripped. As we will use this index to retrieve the data in this.raw, we need to add back 1.\n else\n seriesIndex.push(this.header.indexOf(this.selected) + 1);\n \n // Extract data from raw, store them into series[]\n seriesIndex.map ( (seriesI) => {\n series.push({ seriesName: this.header[seriesI - 1], data: [] }); // -1 to retrieve series name from this.header\n if (!this.activeChartDefinition.scatterTransform) {\n // Extract data for general charts\n this.raw.map( (row) => {\n series[series.length - 1].data.push(row[seriesI]);\n })\n }\n else {\n // Extract data for scatter charts\n this.raw.map( (row, i) => {\n series[series.length - 1].data.push({ x: xaxis[i - 1], y: row[seriesI] })\n })\n }\n series[series.length - 1].data.shift();\n } );\n \n console.log(series);\n \n return { xaxis, series };\n }", "remove_stdev_series(chart) {\n if (\n chart.stdev_up_series != undefined &&\n chart.stdev_down_series != undefined\n )\n chart.ref.removeSeries(chart.stdev_up_series);\n chart.ref.removeSeries(chart.stdev_down_series);\n chart.stdev_up_series = undefined;\n chart.stdev_down_series = undefined;\n }", "_addToPayload(source) {\r\n if (isFluidValue(source)) {\r\n if (Animated.context) {\r\n Animated.context.dependencies.add(source);\r\n }\r\n\r\n if (isAnimationValue(source)) {\r\n source = source.node;\r\n }\r\n }\r\n\r\n if (isAnimated(source)) {\r\n each(source.getPayload(), node => this.add(node));\r\n }\r\n }", "function createMaster(chartindex) {\r\n Highcharts.setOptions({\r\n global: {\r\n\t useUTC : false //puts timestamp axis in local time\r\n }\r\n });\r\n $('#master-container'+chartindex).highcharts('StockChart', {\t\r\n\t chart : {\r\n events : {\r\n load : function () {\r\n\t\t if (charts[chartindex].ios) {\r\n\t\t\t var cardlist = [\"cardA\", \"cardB\",\"cardC\", \"cardD\"];\r\n\t\t\t var ios = charts[chartindex].ios;\r\n\t\t\t var card = cardlist[charts[chartindex].card];\r\n\t\t\t var channel = charts[chartindex].channel;\r\n\t\t\t var series = this.series[0];\r\n\t\t\t var iosresults=[];\r\n\t\t\t setInterval(function() {\r\n\t\t\t //alert(JSON.stringify(data[data.length-1][0]))\r\n\t\t\t var getting = $.getJSON(path+fivesecdb+recents[charts[chartindex].ios]+options,function(result){\r\n\t\t\t\t iosresults = result.rows[0].value;\r\n\t\t\t });\r\n\t\t\t getting.done(function() {\r\n\t\t\t\t var timestamp = iosresults.timestamp;\r\n\t\t\t\t var value = iosresults[card][\"voltages\"][channel];\r\n\t\t\t\t series.addPoint([timestamp*1000, value], true, true);\r\n\t\t\t });\r\n\t\t\t }, 5000);\r\n\t\t } else {\r\n\t\t\t var type = charts[chartindex].type\r\n\t\t\t var channel = charts[chartindex].channel;\r\n\t\t\t var series = this.series[0];\r\n\t\t\t var deltavresults=[];\r\n\t\t\t setInterval(function() {\r\n\t\t\t var getting = $.getJSON(path+onemindb+\"/_view/pi_db\"+options,function(result){\r\n\t\t\t\t deltavresults = result.rows[0].value;\r\n\t\t\t });\r\n\t\t\t getting.done(function() {\r\n\t\t\t\t var timestamp = deltavresults.timestamp;\r\n\t\t\t\t var value = deltavresults[type][\"values\"][channel];\r\n\t\t\t\t if (value!=null) {\r\n\t\t\t\t series.addPoint([timestamp*1000, value], true, true);\r\n\t\t\t\t };\r\n\t\t\t });\r\n\t\t\t }, 5000);\r\n }\r\n\t\t }\r\n }\r\n },\r\n\t rangeSelector: {\r\n buttons: [{\r\n count: 5,\r\n type: 'minute',\r\n text: '5m'\r\n }, {\r\n count: 1,\r\n type: 'hour',\r\n text: '1hr'\r\n }, {\r\n\t\t count: 6,\r\n type: 'hour',\r\n text: '6hr'\r\n }, {\r\n type: 'all',\r\n text: 'All'\r\n }],\r\n inputEnabled: false, //prevents date range input \r\n selected: 1 //selects which button should be automatically pressed when the chart loads\r\n },\r\n\t \r\n title : {\r\n text : charts[chartindex].name \r\n },\r\n\r\n exporting: {\r\n enabled: true\r\n },\r\n\r\n series : [{\r\n name : 'Voltage',\r\n\t data : charts[chartindex].data\r\n }]\r\n });\r\n }", "function addSeriesCB(){\n\t\t\tstx.createDataSet();\n\t\t\tstx.draw();\n\t\t}", "function __WEBPACK_DEFAULT_EXPORT__(project, delta2) {\n return +delta2 ? resample(project, delta2) : resampleNone(project);\n}", "function __WEBPACK_DEFAULT_EXPORT__(project, delta2) {\n return +delta2 ? resample(project, delta2) : resampleNone(project);\n}", "function __WEBPACK_DEFAULT_EXPORT__(project, delta2) {\n return +delta2 ? resample(project, delta2) : resampleNone(project);\n}", "function buildSeries(tags, line_data) {\n var datasets = new Array();\n\n // Build the datasets for line and bar graphs\n for (var i=0;i<tags.length;i++) {\n if (SINGLEGRAPH_IGNORE_TAGS.indexOf(tags[i]) === -1) {\n datasets.push(\n {\n name:tags[i],\n data:line_data[tags[i]],\n tooltip:{valueDecimals:2},\n });\n }\n }\n\n return datasets;\n}", "function initResult() {\n var series = [],\n i = 0\n while (i < NUMBER_OF_SERIES) {\n series.push({\n codingType: 0,\n codingTable: 0,\n resolution: null,\n uncompressSamples: []\n })\n i += 1\n }\n return {\n batch_counter: 0,\n batch_relative_timestamp: 0,\n series: series\n }\n}", "update(rawData) {\n var axisPrefix = rawData[0].toLowerCase();\n var rawReading = rawData.substr(1, rawData.length - 2);\n //console.log('TabbyDRO::update ' + rawData + \" => \" + rawReading);\n if (!Number.isNaN(Number.parseFloat(rawReading))) {\n if (axisPrefix in app.axes) {\n var axis = app.axes[axisPrefix];\n axis.setRawValue(Number.parseFloat(rawReading));\n }\n }\n }", "addRegister(register) {\n if (!this.isMergeable(register)) {\n throw new Error('Can\\'t merge discontinuous registers in one reading operation');\n }\n this._registers.push(register);\n }", "getSeriesData(data) {\n const ret = [];\n\n // Get array of campuses\n const campuses = [];\n for (let i = 0; i < data.length; i++) {\n campuses[i] = data[i].campus;\n }\n const name = _.uniq(campuses);\n\n // Get array of values\n const y = [];\n // TODO: Optimize the hell out of this\n for (let x = 0; x < name.length; x++) {\n y[x] = 0;\n for (let i = 0; i < data.length; i++) {\n if (data[i].campus === name[x]) {\n for (let j = 0; j < data[i].bags.length; j++) {\n y[x] += data[i].bags[j].weight;\n }\n }\n }\n }\n\n // Return series with data\n for (let i = 0; i < name.length; i++) {\n ret.push({\n name: name[i],\n y: y[i],\n drilldown: name[i],\n });\n }\n return ret;\n }", "function setupSeriesData(localData, chartRange, seriesData, allSongs) {\n const toFormat = chartRange === \"alltime\" ? [`bandcamp_${chartRange}`, `spotify_${chartRange}`, 'amazon', 'apple', 'deezer', 'itunes', 'google', 'tidal', 'tiktok', 'youtube'] :\n [`bandcamp_${chartRange}`, `spotify_${chartRange}`]\n //iterate through each service\n for (let service of toFormat) {\n let serviceData;\n //set the name for each service\n let name;\n if (service.includes('bandcamp')) {\n name = \"Bandcamp\";\n serviceData = localData[service];\n } else if (service.includes('spotify')) {\n name = \"Spotify\";\n serviceData = localData[service];\n } else {\n serviceData = (localData.distrokid)[service]\n name = service.charAt(0).toUpperCase() + service.slice(1);\n }\n\n let temp = [];\n //account for all songs\n if (serviceData) {\n for (let song of allSongs) {\n //find if the service has a record of the song\n let found = serviceData.filter(s => s.title === song);\n\n if (found.length) {\n temp.push(found[0].plays || found[0].streams);\n } else {\n temp.push(0)\n }\n }\n\n } else {\n temp = new Array(allSongs.length).fill(0)\n }\n seriesData[service] = { name: name, data: temp }\n }\n return seriesData;\n}", "updateDataSets() {\n var dataToDisplay = [];\n var trendsToDisplay = [];\n var showInLegend = true;\n for (var i = 0; i < this.props.graphData.length; i++){\n var title = this.props.graphData[i].grain + ', ' + this.props.graphData[i].port;\n var toCompare = true;\n if (i == 0){\n toCompare = false;\n }\n dataToDisplay.push({\n title: title,\n 'color': this.props.graphData[i].color,\n fieldMappings: [ {\n fromField: 'value',\n toField: 'value'\n },{\n fromField: 'percentDifference',\n toField: 'percentDifference'\n },{\n fromField: 'valueDifference',\n toField: 'valueDifference'\n } ],\n dataProvider: this.props.graphData[i].data,\n compared: toCompare,\n showInSelect: false,\n showInCompare: false,\n categoryField: 'date'\n });\n\n var ss = require('simple-statistics');\n\n var len = this.props.graphData[i].data.length;\n var arr = [];\n\n for (var j = 0; j < len; ++j) {\n if (this.props.graphData[i].data[j].value != '0' && \n this.props.graphData[i].data[j].value != null) {\n // var tmp = parseFloat(this.props.graphData[i].data[j].value).toFixed(2);\n arr.push([+this.props.graphData[i].data[j].date, parseInt(this.props.graphData[i].data[j].value)]);\n\n }\n\n }\n\n var result = ss.linearRegressionLine(ss.linearRegression(arr));\n \n var boundaries = [];\n\n for (var j = 0; j < len; ++j) {\n boundaries.push({\n 'date': +this.props.graphData[i].data[j].date, \n 'value': parseFloat(result(this.props.graphData[i].data[j].date)).toFixed(2)\n });\n }\n \n // boundaries.push(this.props.graphData[i].data[0]);\n // boundaries.push(this.props.graphData[i].data[this.props.graphData[i].data.length - 1]);\n const trendColors = ['#7ECEF7', '#FED180', '#e1fa90', '#C7B8E4', '#F77CBE', '#C8B6A8'];\n trendsToDisplay.push({\n title: title,\n 'color': trendColors[this.props.colors.indexOf(this.props.graphData[i].color)],\n fieldMappings: [ {\n fromField: 'value',\n toField: 'value'\n } ],\n dataProvider: boundaries,\n compared: false,\n showInSelect: false,\n showInCompare: true,\n categoryField: 'date'\n });\n\n this.state.colorIndex++;\n if (this.state.colorIndex >= this.state.colorIndex.length){\n this.state.colorIndex = 0;\n }\n }\n\n // if there is no graph data, adds an empty data set for visual completeness\n if (this.props.graphData.length == 0){\n console.log('No data to display');\n console.log('dates', this.props.initialDate, this.props.finalDate);\n const monthIndex = ['JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC'];\n var dateParts = this.props.initialDate.split('-');\n var newSDate = new Date(dateParts[2], monthIndex.indexOf(dateParts[1]), dateParts[0]);\n dateParts = this.props.finalDate.split('-');\n var newEDate = new Date(dateParts[2], monthIndex.indexOf(dateParts[1]), dateParts[0]);\n\n dataToDisplay.push({\n 'color': 'white',\n fieldMappings: [ {\n fromField: 'value',\n toField: 'value'\n },{\n fromField: 'percentDifference',\n toField: 'percentDifference'\n },{\n fromField: 'valueDifference',\n toField: 'valueDifference'\n } ],\n dataProvider: [{date: newSDate, value: ''}, {date: newEDate, value: ''}],\n compared: false,\n showInSelect: false,\n showInCompare: false,\n categoryField: 'date'\n });\n showInLegend = false;\n }\n Array.prototype.push.apply(dataToDisplay, trendsToDisplay);\n\n var chartProperties = {\n 'type': 'stock',\n 'theme': 'dark',\n 'dataSets': dataToDisplay,\n 'trendLines': [ {\n 'initialValue': 270,\n 'finalValue': 250,\n } ],\n 'panels': [ {\n 'recalculateToPercents': 'never',\n 'showCategoryAxis': true,\n 'title': 'Price',\n 'percentHeight': 100,\n 'stockGraphs': [ {\n 'id': 'g1',\n 'valueField': 'value',\n 'comparable': true,\n 'lineThickness': 2,\n 'compareGraphLineThickness': 2,\n 'balloonText': '[[title]]: <b>[[value]]</b> [[percentDifference]] [[valueDifference]]',\n 'compareGraphBalloonText': '[[title]]:<b> [[value]]</b> [[percentDifference]] [[valueDifference]]',\n 'compareField': 'value'\n } ],\n 'stockLegend': {\n showEntries: showInLegend,\n markerType: 'square',\n // 'periodValueTextComparing': '[[value.close]]',\n 'periodValueTextRegular': '[[value.close]]'\n }\n } ],\n\n 'valueAxes': [\n {\n title: 'Price'\n }\n ],\n\n 'chartScrollbarSettings': {\n 'graph': 'g1',\n graphFillAlpha: 0.1\n },\n\n 'chartCursorSettings': {\n 'valueBalloonsEnabled': true,\n 'cursorAlpha': 0.5,\n 'valueLineBalloonEnabled': true,\n 'valueLineEnabled': true,\n 'valueLineAlpha': 0.5\n },\n\n 'periodSelector': {\n 'position': 'right',\n 'width': 140,\n 'toText': 'To:',\n 'periods': [ {\n 'period': 'MM',\n 'count': 1,\n 'label': '1 Month'\n }, {\n 'period': 'MAX',\n 'label': 'MAX'\n }]\n },\n 'dataSetSelector': {\n 'compareText': 'Show trend line for:',\n 'position': 'right',\n 'width': 130\n },\n 'export': {\n 'enabled': true\n }\n };\n var chart = AmCharts.makeChart( 'chartdiv', chartProperties);\n }", "prepareDataUsageGraphData() {\n this.prepareUsageGraphData(\n this.streamUsageGraphData,\n this.streamData,\n 'logs_home_data_stream',\n );\n this.prepareUsageGraphData(\n this.archiveUsageGraphData,\n this.archiveData,\n 'logs_home_data_archive',\n );\n this.prepareUsageGraphData(\n this.indiceUsageGraphData,\n this.indiceData,\n 'logs_home_data_index',\n );\n }", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "function _default(seriesType) {\n return {\n seriesType: seriesType,\n plan: createRenderPlanner(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var isLargeRender = pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = map(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n function progress(params, data) {\n var segCount = params.end - params.start;\n var points = isLargeRender && new Float32Array(segCount * dimLen);\n\n for (var i = params.start, offset = 0, tmpIn = [], tmpOut = []; i < params.end; i++) {\n var point;\n\n if (dimLen === 1) {\n var x = data.get(dims[0], i);\n point = !isNaN(x) && coordSys.dataToPoint(x, null, tmpOut);\n } else {\n var x = tmpIn[0] = data.get(dims[0], i);\n var y = tmpIn[1] = data.get(dims[1], i); // Also {Array.<number>}, not undefined to avoid if...else... statement\n\n point = !isNaN(x) && !isNaN(y) && coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (isLargeRender) {\n points[offset++] = point ? point[0] : NaN;\n points[offset++] = point ? point[1] : NaN;\n } else {\n data.setItemLayout(i, point && point.slice() || [NaN, NaN]);\n }\n }\n\n isLargeRender && data.setLayout('symbolPoints', points);\n }\n\n return dimLen && {\n progress: progress\n };\n }\n };\n}", "render() {\n var chartDataSet = [],\n newData = {labels: this.props.xAxis};\n \n if(this.props.data.length > 0) {\n\n let rawData = this.props.data;\n\n for(let i = 0 ; i < rawData.length; i++) {\n const stock = getChartDataSet(\n rawData[i].symbol, \n getStockTypeArr(rawData[i].data, this.props.stockType), \n rawData[i].info.color)\n chartDataSet.push(stock)\n }\n newData.datasets = chartDataSet;\n }\n \n return (\n <div id=\"stockchart\" className=\"left\">\n <Line data={newData} options={chartOption.op1}/>\n </div>\n )\n \n }", "getSeriesData() {\n let _seriesData = []\n const _itmList = this.getEntityIds()\n for (const id of _itmList) {\n const _entity = this.items[id]\n if (_entity.seriesdata) _seriesData.push(_entity.seriesdata)\n }\n return _seriesData\n }", "async function _genAndPost() {\n // Note: generateAndGetNextFragment() does not have a stop criterion\n // itself, the stop criteria are defined above, based on wall time passed\n // or the number of fragments already consumed for this stream.\n const fragments: Array<LogSeriesFragment | MetricSeriesFragment> = [];\n\n //\n if (!CFG.metrics_mode)\n for (const s of streams as LogSeries[]) {\n const f = s.generateAndGetNextFragment();\n fragments.push(f);\n s.lastFragmentConsumed = f;\n }\n else {\n for (const s of streams as MetricSeries[]) {\n let fragment: MetricSeriesFragment;\n\n // This while loop is effectively a throttling mechanism, only\n // built for metrics mode.\n while (true) {\n const [shiftIntoPastSeconds, f] = s.generateAndGetNextFragment();\n if (f !== undefined) {\n // TODO: the current time shift compared to wall time should\n // be monitored, maybe via a histogram? Does not make sense\n // to update a gauge with it because the shift is a distribution\n // over _all_ streams in this looker session, might might be\n // O(10^6).\n fragment = f;\n break;\n }\n\n const shiftIntoPastMinutes = shiftIntoPastSeconds / 60;\n log.debug(\n `${s}: current lag compared to wall time is ${shiftIntoPastMinutes.toFixed(\n 1\n )} minutes. Sample generation is too fast. Delay generating ` +\n \"and pushing the next fragment. This may take up to 10 minutes.\"\n );\n // We want to monitor the artificial throttling\n pm.counter_fragment_generation_delayed.inc(1);\n await sleep(10);\n }\n\n fragments.push(fragment);\n s.lastFragmentConsumed = fragment;\n }\n }\n\n // NOTE(JP): here we can calculate the lag between the first or last sample\n // in the fragment and the actual wall time. Matters a lot for metrics\n // mode! Can be used to log it for starters, to let a human decide to\n // change parameters. Can also be used to auto-correct things (in a way\n // that allows for read validation, i.e. allowing for calculation of sample\n // timestamps w/o keeping all data that was written).\n\n const t0 = mtime();\n\n let pr: LogSeriesFragmentPushRequest | MetricSeriesFragmentPushMessage;\n\n if (streams[0] instanceof MetricSeries) {\n pr = new MetricSeriesFragmentPushMessage(\n fragments as MetricSeriesFragment[]\n );\n } else {\n pr = new LogSeriesFragmentPushRequest(fragments as LogSeriesFragment[]);\n }\n\n //const pushrequest = fragment.serialize(); //toPushrequest();\n const genduration = mtimeDiffSeconds(t0);\n\n //const pr = pushrequest;\n let name: string;\n if (streams.length === 1) {\n name = `prProducerPOSTer(${streams[0].promQueryString()})`;\n } else {\n name = `prProducerPOSTer(nstreams=${\n streams.length\n }, first=${streams[0].promQueryString()})`;\n }\n\n if (\n COUNTER_PUSHREQUEST_STATS_LOG_THROTTLE < 1 ||\n COUNTER_PUSHREQUEST_STATS_LOG_THROTTLE % 200 == 0\n ) {\n const firstFragment = pr.fragments[0];\n const lastFragment = pr.fragments.slice(-1)[0];\n log.info(\n `${name}: generated pushrequest msg in ${genduration.toFixed(\n 2\n )} s with ` +\n `${pr.fragments.length} series ` +\n `(first: ${\n firstFragment.parent?.uniqueName\n }, index ${firstFragment.indexString(3)} -- ` +\n `last: ${\n lastFragment.parent?.uniqueName\n }, index ${lastFragment.indexString(3)}), ` +\n `size: ${pr.dataLengthMiB.toFixed(4)} MiB). ` +\n \"POST it (not logged for every case).\"\n );\n }\n COUNTER_PUSHREQUEST_STATS_LOG_THROTTLE++;\n\n const postT0 = mtime();\n try {\n // Do not use pr.postWithRetryOrError() which is super simple,\n // but use a custom function with CLI arg-controlled retrying\n // parameters etc.\n await customPostWithRetryOrError(pr, CFG.apibaseurl);\n } catch (err) {\n log.crit(\"consider critical: %s\", err);\n process.exit(1);\n }\n\n const postDurationSeconds = mtimeDiffSeconds(postT0);\n pm.hist_duration_post_with_retry_seconds.observe(postDurationSeconds);\n\n COUNTER_STREAM_FRAGMENTS_PUSHED =\n COUNTER_STREAM_FRAGMENTS_PUSHED +\n BigInt(CFG.n_fragments_per_push_message);\n\n pm.counter_fragments_pushed.inc(CFG.n_fragments_per_push_message);\n\n pm.counter_log_entries_pushed.inc(\n CFG.n_entries_per_stream_fragment * CFG.n_fragments_per_push_message\n );\n\n // NOTE: payloadByteCount() includes timestamps. For logs, the timestamp\n // payload data (12 bytes per entry) might be small compared to the log\n // entry data. For metrics, the timestamp data is _larger than_ the\n // numerical sample data (8 bytes per sample).\n\n // Convert BigInt to Number and assume that the numbers are small enough\n pm.counter_payload_bytes_pushed.inc(Number(pr.payloadByteCount));\n pm.counter_serialized_fragments_bytes_pushed.inc(pr.dataLengthBytes);\n pm.gauge_last_http_request_body_size_bytes.set(pr.dataLengthBytes);\n }", "loadDailyChart(){\n this.chart = new Highcharts.Chart({\n chart : {\n backgroundColor: '#484849',\n renderTo : 'charts',\n type : 'line',\n },\n title: {\n text: '',\n },\n tooltip: {\n valueDecimals: 2,\n valueSuffix: ' %',\n shared:true\n },\n xAxis: {\n gridLineWidth: 1,\n // tickInterval: 8 * 60 * 60 * 1000, \n type: 'datetime',\n tickLength: 0,\n gridLineColor: '#848484',\n lineColor: '#484849',\n lineWidth: 1,\n dateTimeLabelFormats: {\n day:\"%H:%M\"\n },\n labels:{\n style:{\n color: '#808080',\n fontSize : '10px'\n }\n }\n },\n yAxis:{\n title : '',\n gridLineWidth: 0,\n opposite : true,\n labels: {\n formatter: function() {\n return this.value + ' %';\n },\n style:{\n color: '#808080',\n fontSize : '10px'\n }\n }\n },\n marker: {\n enabled: false\n },\n legend:{\n enabled: false\n },\n credits: {\n enabled: false\n },\n \n });\n // Đệ quy\n var arr = this.sharesChart.slice();\n let index = 0;\n var getShareData = (arr,index) => {\n if (arr.length > 0 ){\n let share = arr[0]; // get first element \n arr = arr.slice(1); // Erase first element\n if (share.isOwnShare){ // if this element have attr isOwnShare\n this.chartCtrl.getLastDailyData(share.instrumentID,true).then(data=>{\n if (data.length > 0 ){ // If recentDay have data.\n // Assign value recentTime\n this.recentTime[0].recentDay = data[0][0];\n this.recentTime[0].instrumentID = share.instrumentID;\n // Add series \n this.addSeries(share.instrumentID,share.shareName,data,this.colors[0].color);\n // this.chart.addSeries({ \n // id : share.instrumentID, \n // name: share.shareName, \n // data: data,\n // color: this.colors[0].color\n // }, true);\n this.sharesChart[index].color = this.colors[0].color;\n this.colors[0].isSelected = true;\n // Add another share with recentDay parameter\n for (let i = 0 ; i < this.sharesChart.length ; i++){ \n if (this.sharesChart[i].instrumentID !== share.instrumentID){ \n this.chartCtrl.getDailyData(this.sharesChart[i].instrumentID,this.recentTime[0].recentDay,true).then(data=>{\n let color = this.getColor(); \n if (data.length > 0 ){ // If this share have data.\n this.addSeries(share.instrumentID,share.shareName,data,color);\n // this.chart.addSeries({ \n // id : this.sharesChart[i].instrumentID, \n // name: this.sharesChart[i].shareName, \n // data: data,\n // color: color\n // }, true);\n }\n this.sharesChart[i].color = color;\n });\n } \n }\n }\n else { // If not satified, continue seek.\n if ( index + 1 < this.sharesChart.length ){\n index++;\n getShareData(arr,index);\n }\n }\n });\n }\n else { // If not satified, continue seek.\n if ( index + 1 < this.sharesChart.length ){\n index++;\n getShareData(arr,index);\n }\n }\n }\n };\n getShareData(arr,index);\n }", "function barPreInit(target, data, seriesDefaults, options) {\n if (this.rendererOptions.barDirection == 'horizontal') {\n this._stackAxis = 'x';\n this._primaryAxis = '_yaxis';\n }\n if (this.rendererOptions.waterfall == true) {\n this._data = $.extend(true, [], this.data);\n var sum = 0;\n var pos = (!this.rendererOptions.barDirection || this.rendererOptions.barDirection === 'vertical' || this.transposedData === false) ? 1 : 0;\n for(var i=0; i<this.data.length; i++) {\n sum += this.data[i][pos];\n if (i>0) {\n this.data[i][pos] += this.data[i-1][pos];\n }\n }\n this.data[this.data.length] = (pos == 1) ? [this.data.length+1, sum] : [sum, this.data.length+1];\n this._data[this._data.length] = (pos == 1) ? [this._data.length+1, sum] : [sum, this._data.length+1];\n }\n if (this.rendererOptions.groups > 1) {\n this.breakOnNull = true;\n var l = this.data.length;\n var skip = parseInt(l/this.rendererOptions.groups, 10);\n var count = 0;\n for (var i=skip; i<l; i+=skip) {\n this.data.splice(i+count, 0, [null, null]);\n this._plotData.splice(i+count, 0, [null, null]);\n this._stackData.splice(i+count, 0, [null, null]);\n count++;\n }\n for (i=0; i<this.data.length; i++) {\n if (this._primaryAxis == '_xaxis') {\n this.data[i][0] = i+1;\n this._plotData[i][0] = i+1;\n this._stackData[i][0] = i+1;\n }\n else {\n this.data[i][1] = i+1;\n this._plotData[i][1] = i+1;\n this._stackData[i][1] = i+1;\n }\n }\n }\n }", "function\nstream_filter_2793_(a3x1)\n{\nlet xtmp29;\n;\n// ./../../../../xanadu/prelude/DATS/stream.dats: 3831(line=320, offs=1) -- 4091(line=339, offs=8)\nfunction\nauxmain_3834_(a4x1)\n{\nlet a4y1;\nlet xtmp16;\nlet xtmp18;\ndo {\n;\nxtmp18 =\nfunction()\n{\nlet xtmp17;\n{\nxtmp17 = auxloop_3879_(XATS2JS_lazy_eval(a4x1));\n}\n;\nreturn xtmp17;\n} // lam-function\n;\nxtmp16 = XATS2JS_new_lazy(xtmp18);\nbreak;//return\n} while( true );\nreturn xtmp16;\n} // function // auxmain(8)\nfunction\nauxloop_3879_(a4x1)\n{\nlet a4y1;\nlet xtmp20;\nlet xtmp21;\nlet xtmp22;\nlet xtmp23;\nlet xtmp24;\nlet xtmp28;\ndo {\n;\n{\nxtmp21 = 0;\ndo {\ndo {\nif(0!==a4x1[0]) break;\nxtmp21 = 1;\n} while(false);\nif(xtmp21 > 0 ) break;\ndo {\nif(1!==a4x1[0]) break;\n//L1PCKany();\n//L1PCKany();\nxtmp21 = 2;\n} while(false);\nif(xtmp21 > 0 ) break;\n} while(false);\n} // case-patck0\nswitch\n(xtmp21) {\ncase 1:\n{\nxtmp20 = [0];\n}\n;\nbreak;\ncase 2:\nxtmp22 = a4x1[1];\nxtmp23 = a4x1[2];\n{\n// ./JS_StreamDemo.dats: 404(line=32, offs=1) -- 448(line=32, offs=45)\nfunction\nfilter$test_2509_(a5x1)\n{\nlet xtmp26;\nlet xtmp27;\n;\n{\n// ./../../../../xanadu/prelude/DATS/CATS/JS/basics.dats: 2361(line=172, offs=1) -- 2416(line=173, offs=48)\n// { // val-binding\n// } // val-binding\nconst // implval/fun\ngint_gt_sint_sint_2209_ = XATS2JS_gint_gt_sint_sint\n;\n{\n// ./../../../../xanadu/prelude/DATS/CATS/JS/basics.dats: 4039(line=284, offs=1) -- 4096(line=285, offs=50)\n// { // val-binding\n// } // val-binding\nconst // implval/fun\ngint_mod_sint_sint_3788_ = XATS2JS_gint_mod_sint_sint\n;\nxtmp27 = gint_mod_sint_sint_3788_(a5x1, xtmp9);\n}\n;\nxtmp26 = gint_gt_sint_sint_2209_(xtmp27, 0);\n}\n;\nreturn xtmp26;\n} // function // filter$test(4)\n;\nxtmp24 = filter$test_2509_(xtmp22);\n}\n;\nif\n(xtmp24)\n// then\n{\n{\n{\nxtmp28 = auxmain_3834_(xtmp23);\n}\n;\nxtmp20 = [1, xtmp22, xtmp28];\n}\n;\n} // if-then\nelse\n{\n{\n// tail-recursion:\n// L1CMDapp(tmp(20); L1VALfcst(auxloop(9)); L1VALeval2(L1VALtmp(tmp(23))))\na4y1 = XATS2JS_lazy_eval(xtmp23); a4x1 = a4y1; continue;\n}\n;\n} // if-else\n;\nbreak;\ndefault: XATS2JS_matcherr0();\n} // case-switch\n;\nbreak;//return\n} while( true );\nreturn xtmp20;\n} // function // auxloop(9)\n;\n{\nxtmp29 = auxmain_3834_(a3x1);\n}\n;\nreturn xtmp29;\n}", "function\nXATS2JS_stream_vt_filter0_cfr(a1x1, a1x2)\n{\nlet xtmp67;\n;\n;\n// ./../../xanadu/prelude/DATS/CATS/JS/prelude.dats: 4326(line=283, offs=3) -- 4365(line=284, offs=32)\n// L1DCLnone0();\n{\n// /home/hwxi/Research/ATS-Xanadu/prelude/DATS/stream_vt.dats: 8707(line=712, offs=1) -- 9148(line=752, offs=8)\nfunction\nstream_vt_filter0_3794_(a2x1)\n{\nlet xtmp85;\n;\n// /home/hwxi/Research/ATS-Xanadu/prelude/DATS/stream_vt.dats: 8780(line=720, offs=1) -- 9146(line=751, offs=8)\nfunction\nauxmain_8783_(a3x1)\n{\nlet a3y1;\nlet xtmp70;\nlet xtmp74;\nlet xtmp75;\ndo {\n;\nxtmp74 =\nfunction()\n{\nlet xtmp71;\nlet xtmp72;\n{\nxtmp71 = auxloop_8877_(XATS2JS_llazy_eval(a3x1));\n}\n;\nreturn xtmp71;\n} // lam-function\n;\nxtmp75 =\nfunction()\n{\nlet xtmp71;\nlet xtmp72;\n{\n// /home/hwxi/Research/ATS-Xanadu/prelude/DATS/stream_vt.dats: 1554(line=120, offs=1) -- 1609(line=122, offs=41)\n// { // val-binding\n// /home/hwxi/Research/ATS-Xanadu/prelude/DATS/stream_vt.dats: 1501(line=116, offs=1) -- 1550(line=118, offs=31)\nfunction\nstream_vt_free_1971_(a6x1)\n{\n;\nreturn XATS2JS_llazy_free(a6x1);\n} // function // stream_vt_free(21)\n;\n// } // val-binding\nconst // implval/fun\ng_free_1550_ = stream_vt_free_1971_\n;\nxtmp72 = g_free_1550_(a3x1);\n}\n;\n} // lam-function\n;\nxtmp70 = XATS2JS_new_llazy(xtmp74,xtmp75);\nbreak;//return\n} while( true );\nreturn xtmp70;\n} // function // auxmain(25)\nfunction\nauxloop_8877_(a3x1)\n{\nlet a3y1;\nlet xtmp77;\nlet xtmp78;\nlet xtmp79;\nlet xtmp80;\nlet xtmp81;\nlet xtmp84;\ndo {\n;\n{\nxtmp78 = 0;\ndo {\ndo {\nif(0!==a3x1[0]) break;\nxtmp78 = 1;\n} while(false);\nif(xtmp78 > 0 ) break;\ndo {\nif(1!==a3x1[0]) break;\n//L1PCKany();\n//L1PCKany();\nxtmp78 = 2;\n} while(false);\nif(xtmp78 > 0 ) break;\n} while(false);\n} // case-patck0\nswitch\n(xtmp78) {\ncase 1:\n{\nxtmp77 = [0];\n}\n;\nbreak;\ncase 2:\nxtmp79 = a3x1[1];\nxtmp80 = a3x1[2];\n{\n// ./../../xanadu/prelude/DATS/CATS/JS/prelude.dats: 4326(line=283, offs=3) -- 4365(line=284, offs=32)\nfunction\nfilter0$test_2547_(a4x1)\n{\nlet xtmp83;\n;\n{\nxtmp83 = a1x2(a4x1);\n}\n;\nreturn xtmp83;\n} // function // filter0$test(23)\n;\nxtmp81 = filter0$test_2547_(xtmp79);\n}\n;\nif\n(xtmp81)\n// then\n{\n{\n{\nxtmp84 = auxmain_8783_(xtmp80);\n}\n;\nxtmp77 = [1, xtmp79, xtmp84];\n}\n;\n} // if-then\nelse\n{\n{\n// tail-recursion:\n// L1CMDapp(tmp(77); L1VALfcst(auxloop(26)); L1VALeval3(L1VALtmp(tmp(80))))\na3y1 = XATS2JS_llazy_eval(xtmp80); a3x1 = a3y1; continue;\n}\n;\n} // if-else\n;\nbreak;\ndefault: XATS2JS_matcherr0();\n} // case-switch\n;\nbreak;//return\n} while( true );\nreturn xtmp77;\n} // function // auxloop(26)\n;\n{\nxtmp85 = auxmain_8783_(a2x1);\n}\n;\nreturn xtmp85;\n} // function // stream_vt_filter0(24)\n;\nxtmp67 = stream_vt_filter0_3794_(a1x1);\n}\n;\nreturn xtmp67;\n} // function // XATS2JS_stream_vt_filter0_cfr(22)", "function dataStack(ecModel) {\n var stackInfoMap = Object(util[\"g\" /* createHashMap */])();\n ecModel.eachSeries(function (seriesModel) {\n var stack = seriesModel.get('stack'); // Compatibal: when `stack` is set as '', do not stack.\n\n if (stack) {\n var stackInfoList = stackInfoMap.get(stack) || stackInfoMap.set(stack, []);\n var data = seriesModel.getData();\n var stackInfo = {\n // Used for calculate axis extent automatically.\n // TODO: Type getCalculationInfo return more specific type?\n stackResultDimension: data.getCalculationInfo('stackResultDimension'),\n stackedOverDimension: data.getCalculationInfo('stackedOverDimension'),\n stackedDimension: data.getCalculationInfo('stackedDimension'),\n stackedByDimension: data.getCalculationInfo('stackedByDimension'),\n isStackedByIndex: data.getCalculationInfo('isStackedByIndex'),\n data: data,\n seriesModel: seriesModel\n }; // If stacked on axis that do not support data stack.\n\n if (!stackInfo.stackedDimension || !(stackInfo.isStackedByIndex || stackInfo.stackedByDimension)) {\n return;\n }\n\n stackInfoList.length && data.setCalculationInfo('stackedOnSeries', stackInfoList[stackInfoList.length - 1].seriesModel);\n stackInfoList.push(stackInfo);\n }\n });\n stackInfoMap.each(calculateStack);\n}", "function StackFunctionSupport() {\r\n}", "function Dataflow() {\n this._log = logger();\n this.logLevel(Error$1);\n\n this._clock = 0;\n this._rank = 0;\n try {\n this._loader = loader();\n } catch (e) {\n // do nothing if loader module is unavailable\n }\n\n this._touched = UniqueList(id);\n this._pulses = {};\n this._pulse = null;\n\n this._heap = new Heap(function(a, b) { return a.qrank - b.qrank; });\n this._postrun = [];\n }", "createHistoryScatterData() {\n if (!this.entity_items.isValid()) return null\n\n let _seriesData = this.entity_items.getSeriesData()\n\n if (_seriesData && _seriesData.length % 2 === 0) {\n let _graphData = this.getDefaultGraphData()\n _graphData.config.mode = \"history\"\n\n for (let r = 0; r < _seriesData.length; r += 2) {\n const _attr = this.entity_items.getOptions(r) || {}\n let _data = []\n _seriesData[r].data.forEach(function (e, i) {\n if (_seriesData[r].data[i] && _seriesData[r + 1].data[i]) {\n _data.push({\n x: parseFloat(_seriesData[r + 0].data[i].y) || 0.0,\n y: parseFloat(_seriesData[r + 1].data[i].y || 0.0)\n })\n }\n })\n /**\n * default options\n */\n let _options = {\n label: this.entity_items.getEntity(r).name || \"\",\n unit: this.entity_items.getEntity(r).unit || \"\",\n hoverRadius: 18,\n pointRadius: 16,\n hitRadius: 22,\n backgroundColor: _attr.backgroundColor || DEFAULT_COLORS[27 + r * 5],\n borderColor: _attr.borderColor || DEFAULT_COLORS[27 + r * 5]\n }\n if (this.entity_options) {\n _options = { ..._options, ...this.entity_options }\n _graphData.config.options = this.entity_options\n }\n if (_attr) _options = { ..._options, ..._attr }\n\n _options.data = _data\n _graphData.data.datasets.push(_options)\n }\n if (_graphData.data.datasets.length) {\n _graphData.config.options.bubble = true\n return _graphData\n }\n }\n console.error(\"ScatterChart setting not valid for \", this.entity_items.getNames())\n return null\n }", "function testData() {\n return stream_layers(3,128,.1).map(function(data, i) {\n return {\n key: 'Stream' + i,\n values: data\n };\n });\n}", "_doPush(){//This works best for streaming from filesystem (since it is static/finite) and JS generators too...\n var obj;\n\n if( !this.isDiscretized ) {\n while(true) {\n if (!this.isListening || this.pos >= this.iterators.length)\n break;\n //get the data from the current iterator\n obj = this.iterators[this.pos].next();\n\n //check for the next iterator that has data\n while (obj.done && this.pos < this.iterators.length) {\n this.pos++;\n if (this.pos >= this.iterators.length)\n break;\n\n obj = this.iterators[this.pos].next();\n }\n\n if (obj.done)\n break;\n\n this.push(obj.value);\n }\n }\n else{//for discretized flows\n //ensure that our discrete stream length is not more than the number of iterators we have\n this.discreteStreamLength = Math.min(this.discreteStreamLength, this.iterators.length);\n\n if( this.discreteStreamLength == 1 ){//operate on one stream first and then move to the next\n do{\n obj = this.iterators[this.pos].next();\n while( !obj.done ){\n this.streamElements.push(obj.value);\n\n if( this.isDataEndObject.isDataEnd(obj.value, this.streamElements.length) ){\n this.push(this.streamElements.slice());\n this.streamElements = [];\n }\n\n obj = this.iterators[this.pos].next();\n }\n\n //At this point, if we have elements in the stream, we fill it will nulls since we are instructed to\n //discretize with one iterator\n if( this.streamElements.length > 0 ){\n while(true) {\n this.streamElements.push(null);\n if( this.isDataEndObject.isDataEnd(obj.value, this.streamElements.length) ){\n this.push(this.streamElements.slice());\n this.streamElements = [];\n break;\n }\n }\n }\n\n this.pos++;\n }while( this.pos < this.iterators.length );\n }\n else{\n var ended = []; //we need this since the iterators reset...we need to know the ones that have ended\n //a flag that states if the last check was data end. Because we cannot peek into the iterator, we have to\n //waste one round of iteration to discover that they have all ended which will create null data.\n var justEnded = false;\n\n for(let i = 0; i < this.discreteStreamLength; i++){\n ended.push(false);\n }\n\n do{\n var pack = [];\n\n for(let i = 0; i < this.discreteStreamLength; i++){\n if( ended[i] )\n pack[i] = null;\n else {\n obj = this.iterators[i].next();\n if( obj.done ) {\n ended[i] = true;\n pack[i] = null;\n }\n else\n pack[i] = obj.value;\n }\n }\n\n //check if we just ended on the last iteration and this current sets of data are just nulls\n if( justEnded && Flow.from(pack).allMatch((input) => input == null) )\n break;\n\n this.streamElements.push(pack);\n\n if( this.isDataEndObject.isDataEnd(pack, this.streamElements.length) ){\n justEnded = true;\n this.push(this.streamElements.slice());\n this.streamElements = [];\n\n //check if all items have ended\n if( Flow.from(ended).allMatch((input) => input) )\n break;\n }\n else\n justEnded = false;\n }while(true);\n }\n }\n\n this.isListening = false; //we done processing so stop listening\n this.pos = 0; //reset the pos for other operations\n }", "seriesEmit(e, ...s) {\n const t = this.events[e];\n if (!t) return;\n let r;\n for (let e = 0; e < t.length; e++) r = 0 === e ? t[e](...s) : t[e](r);\n return r;\n }", "componentDidMount() {\n this.chart = Highcharts.chart(this.props.id, {\n chart: {\n type: this.props.type\n },\n title: {\n text: this.props.title\n },\n subtitle: {\n text: this.props.subtitle\n },\n legend: {\n layout: 'horizontal',\n align: 'center',\n verticalAlign: 'bottom'\n },\n plotOptions: {\n series: {\n label: {\n connectorAllowed: false\n },\n pointStart: 2018,\n marker: {\n enabled: false,\n states: {\n hover: {\n enabled: true,\n radius: 3\n }\n }\n }\n }\n },\n xAxis: {\n type: 'datetime',\n dateTimeLabelFormats: {\n day: '%d %b'\n }\n },\n series: this.props.data,\n responsive: {\n rules: [{\n condition: {\n maxWidth: 500\n },\n chartOptions: {\n legend: {\n layout: 'horizontal',\n align: 'center',\n verticalAlign: 'bottom'\n }\n }\n }]\n }\n });\n setTimeout(() => {\n this.chart.reflow();\n }, 0);\n }", "updateSeriesFromProps() {\n \n // chart stuff\n const chart = this.internalChart;\n //console.log('updateSeriesFromProps', chart);\n if (Object.keys(chart).length === 0) {\n console.log('No chart found. Maybe hidden.');\n return;\n }\n\n const groupBy = this.props.groupBy;\n \n // group the alerts into an object with keys that are for each day\n // this is a super awesome one liner for grouping\n\n // OK\n const alertOks = this.props.alertlist.filter(alert => alert.state === 1 || alert.state === 8);\n const groupedOks = _.groupBy(alertOks, (result) => moment(result.timestamp).startOf(groupBy).format('x'));\n\n // WARNING\n const alertWarnings = this.props.alertlist.filter(alert => alert.state === 16);\n const groupedWarnings = _.groupBy(alertWarnings, (result) => moment(result.timestamp).startOf(groupBy).format('x'));\n\n // UNKNOWN\n const alertUnknowns = this.props.alertlist.filter(alert => alert.state === 64);\n const groupedUnknowns = _.groupBy(alertUnknowns, (result) => moment(result.timestamp).startOf(groupBy).format('x'));\n \n // CRITICAL\n const alertCriticals = this.props.alertlist.filter(alert => alert.state === 2 || alert.state === 32);\n const groupedCriticals = _.groupBy(alertCriticals, (result) => moment(result.timestamp).startOf(groupBy).format('x'));\n\n var d = new Date();\n d.setMinutes(0);\n d.setSeconds(0);\n d.setMilliseconds(0);\n\n // calculate min and max for hourly chart\n const min = d.getTime() - (86400 * 1000);\n const max = d.getTime();\n //console.log('min max', min, max);\n\n // HighCharts setData\n // https://api.highcharts.com/class-reference/Highcharts.Series.html#setData\n \n // OK\n if (Object.keys(groupedOks).length > 0) {\n let okData = this.massageGroupByDataIntoHighchartsData(groupedOks, min, max);\n //console.log('Setting 0', okData);\n chart.series[0].setData(okData.reverse(), true);\n }\n\n // WARNING\n if (Object.keys(groupedWarnings).length > 0) {\n let warningData = this.massageGroupByDataIntoHighchartsData(groupedWarnings, min, max);\n //console.log('Setting 1', warningData);\n chart.series[1].setData(warningData.reverse(), true);\n }\n\n // UNKNOWN\n if (Object.keys(groupedUnknowns).length > 0) {\n let unknownData = this.massageGroupByDataIntoHighchartsData(groupedUnknowns, min, max);\n //console.log('Setting 1', warningData);\n chart.series[2].setData(unknownData.reverse(), true);\n }\n\n // CRITICAL\n if (Object.keys(groupedCriticals).length > 0) {\n let criticalData = this.massageGroupByDataIntoHighchartsData(groupedCriticals, min, max);\n //console.log('Setting 2', criticalData);\n chart.series[3].setData(criticalData.reverse(), true);\n }\n \n if (this.props.groupBy === 'hour' && chart.update) {\n\n chart.update({\n xAxis: {\n tickInterval: 3600 * 1000,\n min: min,\n max: max\n // show 1 hr ago instead of time\n // labels: {\n // formatter: (e) => {\n // //console.log(e);\n // const diff = new Date().getTime() - e.value;\n // const hoursAgo = moment.duration(diff).asHours();\n // return Math.floor(hoursAgo) + 'h ago';\n // }\n // }\n }\n });\n\n // update pointWidth based on howManyItems\n const barWidth = (((window.innerWidth + 100) / 2) / this.props.alertHoursBack).toFixed(0);\n\n chart.update({\n plotOptions: {\n series: {\n pointWidth: barWidth\n }\n }\n });\n }\n\n if (this.props.groupBy === 'day') {\n\n // update pointWidth based on howManyItems\n const barWidth = (((window.innerWidth + 100) / 2) / this.props.alertDaysBack).toFixed(0);\n\n chart.update({\n plotOptions: {\n series: {\n pointWidth: barWidth\n }\n }\n });\n chart.series[0].update({\n visible: false\n });\n\n }\n\n //chart.series[0].redraw();\n //chart.series[1].redraw();\n //chart.series[2].redraw();\n //chart.series[3].redraw();\n }", "function analyze(data, scope, ops) {\n // POSSIBLE TODOs:\n // - error checking for treesource on tree operators (BUT what if tree is upstream?)\n // - this is local analysis, perhaps some tasks better for global analysis...\n\n var output = [],\n source = null,\n modify = false,\n generate = false,\n upstream, i, n, t, m;\n\n if (data.values) {\n // hard-wired input data set\n output.push(source = collect({$ingest: data.values, $format: data.format}));\n } else if (data.url) {\n // load data from external source\n output.push(source = collect({$request: data.url, $format: data.format}));\n } else if (data.source) {\n // derives from one or more other data sets\n source = upstream = (0,vega_util__WEBPACK_IMPORTED_MODULE_4__.array)(data.source).map(function(d) {\n return (0,_util__WEBPACK_IMPORTED_MODULE_2__.ref)(scope.getData(d).output);\n });\n output.push(null); // populate later\n }\n\n // scan data transforms, add collectors as needed\n for (i=0, n=ops.length; i<n; ++i) {\n t = ops[i];\n m = t.metadata;\n\n if (!source && !m.source) {\n output.push(source = collect());\n }\n output.push(t);\n\n if (m.generates) generate = true;\n if (m.modifies && !generate) modify = true;\n\n if (m.source) source = t;\n else if (m.changes) source = null;\n }\n\n if (upstream) {\n n = upstream.length - 1;\n output[0] = (0,_transforms__WEBPACK_IMPORTED_MODULE_3__.Relay)({\n derive: modify,\n pulse: n ? upstream : upstream[0]\n });\n if (modify || n) {\n // collect derived and multi-pulse tuples\n output.splice(1, 0, collect());\n }\n }\n\n if (!source) output.push(collect());\n output.push((0,_transforms__WEBPACK_IMPORTED_MODULE_3__.Sieve)({}));\n return output;\n}", "function hasPipeDataListeners(stream){var listeners=stream.listeners('data');for(var i=0;i<listeners.length;i++){if(listeners[i].name==='ondata'){return true;}}return false;}", "function initData(d){\n for(var i = 0; i< d.forecasts.length; i++){\n if(d.forecasts[i].endPeriod.getHours()>5 && d.forecasts[i].endPeriod.getHours()<=19 ){\n powerArray.push(parseFloat((d.forecasts[i].pv_estimate).toFixed( 2 ))*32);\n periodsArray.push((new Date(d.forecasts[i].endPeriod)).hhmm());\n }\n }\n chart1.series[0].setData(powerArray);\n chart1.xAxis[0].setCategories(periodsArray);\n chart1.series[1].setData(consumers);\n setInterval(function() {\n $(\"#chart1\").highcharts().reflow();\n }, 1);\n }", "function functionName(data){\n\tvar maxRange = 1000 * 3600 * 24 * 14;\n\tvar chartOptions = {\n\t\tchart: { renderTo: 'container' },\n\t\tloading: {\n\t\t\tstyle: { opacity: 0.8 },\n\t\t\tlabelStyle: { fontSize: '300%' }\n\t\t},\n\t\txAxis: {\n\t\t\ttype: 'datetime',\n\t\t\tordinal: false,\n\t\t\tlabels : {\n\t\t\t\tformat: '{value:%m-%d %H:%M}',\n\t\t\t\trotation: 20\n\t\t\t}\n\t\t},\n\t yAxis: {\n\t \tlabels: { format: \"\" },\n\t \ttitle: {text: \"\" }\n\t },\n\t rangeSelector: {\n\t buttons: [{ type : 'hour', count : 6, text : '6h'\n\t }, { type : 'hour', count : 12, text : '12h'\n\t }, { type: 'day', count: 1, text: '1d'\n\t }, { type: 'day', count: 3, text: '3d'\n\t }, { type: 'week', count: 1, text: '1w'\n\t //}, { type: 'month', count: 1, text: '1m'\n\t // }, { type: 'month', count: 6, text: '6m'\n\t // }, { type: 'year', count: 1, text: '1y'\n\t // }, { type: 'all', text: 'All'\n\t }],\n\t selected: 4,\n\t inputEnabled: false\n\t },\n// navigator: { enabled: false },\n\t scrollbar: { enabled: false\n // , liveRedraw:false\n },\n\t // title : { text : 'Title' },\n\t plotOptions: {\n line: {\n pointInterval: 60 * 1000,\n gapSize: 30\n },\n\t\t\tseries: {\n\n lineWidth: 1,\n marker: {\n enabled: true,\n radius: 2\n },\n\n\t\t\t\t// dataGrouping: false, //Not needed here? Only in (root) series?\n\t\t\t\ttooltip: {\n // xDateFormat: '%A %m-%d-%Y %H:%M'\n headerFormat: ''\n\t\t\t\t\t// pointFormatter: tooltipFlags\n\t\t\t\t},\n\t\t\t \tturboThreshold: 0 //CRUCIAL for more than 1000 points!!!!\n\t\t\t}\n\t },\n\t series : [{\n\t \tdataGrouping: {enabled: false} //NEEDED or dataGrouping doesn't pass custom attributes/properties\n//\t\t, lineWidth: 0\n\t \t// , events : {\n\t \t\t// afterAnimate : function () {\n\t \t\t\t// console.log('HIDE loading');\n\t \t\t// }\n\t \t// }\n\t \t// , point: {\n\t \t\t// events: {\n\t \t\t\t// mouseOver: function () {\n\t \t\t\t\t// console.log(this);\n\t \t\t\t// }\n\t \t\t// }\n\t \t// }\n\t }]\n\t};\n\t// console.log(data.table.rows.length); //same as data[\"table\"][\"rows\"].length\n dataDict = [];\n min = data[\"table\"][\"rows\"][0][2];\n max = data[\"table\"][\"rows\"][0][2];\n $.each(data[\"table\"][\"rows\"], function (i, item) { //preference if bringing multiple columns\n \t// item[0] = new Date(item[0]).getTime();\n \t/// get min and max from data to be used to set yAxis range\n \tif (item[2] < min) { min = item[2] }\n \tif (item[2] > max) { max = item[2] }\n \trow = {\n \t\tx: new Date(item[1]).getTime(),\n \t\ty: item[2],\n unit: data[\"table\"]['columnUnits'][2]\n \t\t// flag1: item[3],\n \t\t// flag2: item[4]\n \t\t};\n ///\"store\" flag data to be used for the tooltip\n \tif ((!$(\"#onlyQC\").prop('checked')) && (flagsArr.indexOf(attr) > -1)) {\n \t\trow.flag1 = item[3]\n \t\trow.flag2 = item[4]\n \t\tif (row.flag1 != 1) { row.color = '#FF0000'}\n \t}\n \tdataDict.push(row);\n });\n // console.log(data[\"table\"][\"rows\"][0]);\n // console.log(dataDict.length, min, max);\n if (chart) chart.destroy();\n chartOptions.series[0].data = dataDict;\n chartOptions.series[0].name = attr; // data[\"table\"][\"columnNames\"][2];\n chartOptions.yAxis.title.text = attr+' ('+data[\"table\"][\"columnUnits\"][2]+')'; //data[\"table\"][\"columnNames\"][2];\n //chartOptions.yAxis.labels.format = '{value} '+data[\"table\"][\"columnUnits\"][2];\n chartOptions.yAxis.labels.format = '{value}';\n\n if ((!$(\"#onlyQC\").prop('checked')) && (flagsArr.indexOf(attr) > -1)) {\n \tchartOptions.plotOptions.series.tooltip.pointFormatter = tooltipFlags;\n } else {\n \tchartOptions.plotOptions.series.tooltip.pointFormatter = tooltipNoFlags;\n }\n // $('#container').highcharts('StockChart', chartOptions);\n chart = new Highcharts.StockChart(chartOptions);\n chart.yAxis[0].setExtremes(min, max);\n // chart.series[0].dataGrouping.enabled = false;\n}", "function analyze(data, scope, ops) {\n // POSSIBLE TODOs:\n // - error checking for treesource on tree operators (BUT what if tree is upstream?)\n // - this is local analysis, perhaps some tasks better for global analysis...\n\n var output = [],\n source = null,\n modify = false,\n generate = false,\n upstream, i, n, t, m;\n\n if (data.values) {\n // hard-wired input data set\n output.push(source = collect({$ingest: data.values, $format: data.format}));\n } else if (data.url) {\n // load data from external source\n output.push(source = collect({$request: data.url, $format: data.format}));\n } else if (data.source) {\n // derives from one or more other data sets\n source = upstream = Object(__WEBPACK_IMPORTED_MODULE_4_vega_util__[\"g\" /* array */])(data.source).map(function(d) {\n return Object(__WEBPACK_IMPORTED_MODULE_2__util__[\"k\" /* ref */])(scope.getData(d).output);\n });\n output.push(null); // populate later\n }\n\n // scan data transforms, add collectors as needed\n for (i=0, n=ops.length; i<n; ++i) {\n t = ops[i];\n m = t.metadata;\n\n if (!source && !m.source) {\n output.push(source = collect());\n }\n output.push(t);\n\n if (m.generates) generate = true;\n if (m.modifies && !generate) modify = true;\n\n if (m.source) source = t;\n else if (m.changes) source = null;\n }\n\n if (upstream) {\n n = upstream.length - 1;\n output[0] = Object(__WEBPACK_IMPORTED_MODULE_3__transforms__[\"t\" /* Relay */])({\n derive: modify,\n pulse: n ? upstream : upstream[0]\n });\n if (modify || n) {\n // collect derived and multi-pulse tuples\n output.splice(1, 0, collect());\n }\n }\n\n if (!source) output.push(collect());\n output.push(Object(__WEBPACK_IMPORTED_MODULE_3__transforms__[\"w\" /* Sieve */])({}));\n return output;\n}", "function scatterFilter({layer, x, y, object}) {\n if (object) {\n const temp = deckgl.props.layers[0].props.data;\n const portTemp = deckgl.props.layers[1].props.data;\n\n let output = temp.filter(obj => obj.origin == object.port || obj.destination == object.port);\n let portOutput = portTemp.filter(obj => obj.port == object.port);\n\n plot(output, portOutput);\n analytics(output);\n\n tooltip.style.top = `${y}px`;\n tooltip.style.left = `${x}px`;\n tooltip.innerHTML = `<div><span class=\"key key-port\">Airport</span><span class=\"value\">${object.port}</span></div>`;\n tooltip.innerHTML += `<div><span class=\"key key-port\">Arrivals</span><span class=\"value\">${object.count}</span></div>`;\n tooltip.style.backgroundColor = '#1D1E27';\n tooltip.style.opacity = '1';\n\n //this is the only line of code that updates analytics outside of analytics:\n $(\"location\").innerHTML = object.port;\n } else {\n const newBackup = JSON.parse(JSON.stringify(backup))\n let temp = newBackup.filter(obj => new Date(obj.date) >= new Date(slider.getInfo().left));\n temp = temp.filter(obj => new Date(obj.date) <= new Date(slider.getInfo().right));\n const newPortBackup = createPorts(temp);\n plot(temp, newPortBackup);\n analytics(temp)\n\n tooltip.innerHTML = '';\n tooltip.style.opacity = '0';\n\n //analytics:\n $(\"location\").innerHTML = \"All\";\n }\n}", "async function dataFlowsUpdate() {\n const subscriptionId =\n process.env[\"DATAFACTORY_SUBSCRIPTION_ID\"] || \"12345678-1234-1234-1234-12345678abc\";\n const resourceGroupName = process.env[\"DATAFACTORY_RESOURCE_GROUP\"] || \"exampleResourceGroup\";\n const factoryName = \"exampleFactoryName\";\n const dataFlowName = \"exampleDataFlow\";\n const dataFlow = {\n properties: {\n type: \"MappingDataFlow\",\n description:\n \"Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.\",\n scriptLines: [\n \"source(output(\",\n \"PreviousConversionRate as double,\",\n \"Country as string,\",\n \"DateTime1 as string,\",\n \"CurrentConversionRate as double\",\n \"),\",\n \"allowSchemaDrift: false,\",\n \"validateSchema: false) ~> USDCurrency\",\n \"source(output(\",\n \"PreviousConversionRate as double,\",\n \"Country as string,\",\n \"DateTime1 as string,\",\n \"CurrentConversionRate as double\",\n \"),\",\n \"allowSchemaDrift: true,\",\n \"validateSchema: false) ~> CADSource\",\n \"USDCurrency, CADSource union(byName: true)~> Union\",\n \"Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\",\n \"NewCurrencyColumn split(Country == 'USD',\",\n \"Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)\",\n \"ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\",\n \"ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink\",\n ],\n sinks: [\n {\n name: \"USDSink\",\n dataset: { type: \"DatasetReference\", referenceName: \"USDOutput\" },\n },\n {\n name: \"CADSink\",\n dataset: { type: \"DatasetReference\", referenceName: \"CADOutput\" },\n },\n ],\n sources: [\n {\n name: \"USDCurrency\",\n dataset: {\n type: \"DatasetReference\",\n referenceName: \"CurrencyDatasetUSD\",\n },\n },\n {\n name: \"CADSource\",\n dataset: {\n type: \"DatasetReference\",\n referenceName: \"CurrencyDatasetCAD\",\n },\n },\n ],\n },\n };\n const credential = new DefaultAzureCredential();\n const client = new DataFactoryManagementClient(credential, subscriptionId);\n const result = await client.dataFlows.createOrUpdate(\n resourceGroupName,\n factoryName,\n dataFlowName,\n dataFlow\n );\n console.log(result);\n}", "async updateTimeSeriesFromLocalStorage(timeSeries) {\n await this.setState({\n params: {\n rollUpType: timeSeries\n },\n hasInitBeenCalled: true\n });\n\n if (this.state.isMounted) {\n this.initDataSource();\n }\n }", "function SVGStackedRowChart() {\r\n }", "function processCurrentForecast (raw_current_data) {\r\n\r\n\tvar date = new Date();\r\n\r\n\tvar processed_data = concatenateObjects(raw_current_data.main, raw_current_data.weather[0]);\r\n\tprocessed_data.hour = date.getHours();\r\n\tprocessed_data.day_num = date.getDay();\r\n\tprocessed_data.temp = Math.round(processed_data.temp);\r\n\tprocessed_data.temp_max = Math.round(processed_data.temp_max);\r\n\tprocessed_data.temp_min = Math.round(processed_data.temp_min);\r\n\tprocessed_data.condition = getIDCondition(processed_data.id);\r\n\r\n\treturn processed_data;\r\n}", "function createSeries(field, name, stacked) {\n var series = chart.series.push(new am4charts.ColumnSeries());\n series.dataFields.valueY = field;\n series.dataFields.categoryX = \"year\";\n series.name = name;\n series.columns.template.tooltipText = \"{name}: [bold]{valueY}[/]\";\n series.stacked = stacked;\n series.columns.template.width = am4core.percent(95);\n }", "function read_push_cycle() {\n log.info('Starting read/push cycle')\n // Extract usages from the MNO's platform\n mno_api.extract_usages(last_successful_timestamp, function(err, timestamp, csv, nb_lines, finished) {\n if(err) {\n log.error('Error extracting records: ' + err);\n }\n log.info('%s records extracted (finished: %s), most recent timestamp is %s', nb_lines, finished, timestamp);\n\n // Push data into AirVantage\n if (nb_lines > 0) {\n av_api.push_usage_data(config.get('airvantage.av_url'), config.get('airvantage.company'), csv, this.av_token, function(err, data) {\n if(err) {\n log.error('Error pushing usage data into AirVantage: %s', err);\n } else {\n log.info('%s records pushed successfully. Operation UID: %s', nb_lines, data['operation']);\n }\n });\n }\n\n // Store latest timestamp, if provided.\n if (timestamp) {\n log.info('Updating last successful timestamp: ' + timestamp + ' / ' + new Date(timestamp));\n last_successful_timestamp = timestamp;\n }\n\n // Schedule next read-push cycle\n if (finished) {\n schedule_read_push();\n } else {\n schedule_read_push(true, 'More usage data are pending');\n }\n });\n}", "function wellParse(fc) {\n \n var lastDate\n \n for (var i = 0; i < fc.features.length; i++){\n \n var level = fc.features[i].properties.Water_Level\n var dateText = fc.features[i].properties.Time_Stamp\n var msmt = fc.features[i].properties.Msmnt_Type\n //make date object from text date\n var dateN = new Date(dateText);\n \n if (msmt !== \"UNKNOWN\" && level !== \"0\"){\n \n //first row, lastDate will be undefined, so go ahead and push to DataArray\n if (typeof lastDate === 'undefined') {\n \n pushData(level,dateN,msmt)\n \n if (msmt === \"Automatic Data Recorder\"){\n lastDate = dateN\n }\n \n } else if (msmt === \"Automatic Data Recorder\") {\n \n //make a date object that is the lastDate, plus an additional day. will compare to date\n //why the heck is this now date minus 1 instead of plus one?\n var nextDay = new Date(lastDate)\n nextDay.setDate(lastDate.getDate()-1)\n \n while (formatDate(dateN) !== formatDate(nextDay)){\n \n //push a NaN value with date to the array\n pushData(NaN,new Date(nextDay),\"Automatic Data Recorder\") \n //increase the nextDay, will compare again until it breaks the while loop when nextDay matches current date\n nextDay.setDate(nextDay.getDate()-1)\n }\n \n //push the actual XML row after filled missing dates with above while loop\n pushData(level,dateN,msmt)\n lastDate = dateN \n \n } else {\n //will take care of adding in the manual measurements, but don't have to worry about filling these missing dates\n pushData(level,dateN,msmt) \n }\n }\n \n }\n\tsetTimeout(drawGraph,1000)\n}", "addPoint(timeTicks, value) {\n const time = new Date(timeTicks);\n this.dataPoints_.push(new DataPoint(time, value));\n\n if (this.dataPoints_.length > MAX_STATS_DATA_POINT_BUFFER_SIZE) {\n this.dataPoints_.shift();\n }\n }", "function handle_data_model(tsnedata,isKeepUndefined) {\n windowsSize = windowsSize||1;\n // get windown surrounding\n let windowSurrounding = (windowsSize - 1)/2;\n let dataIn = [];\n // let timeScale = d3.scaleLinear().domain([0,sampleS.timespan.length-1]).range([0,timeWeight]);\n d3.values(tsnedata).forEach(axis_arr => {\n let lastcluster;\n let lastdataarr;\n let count = 0;\n let timeLength = sampleS.timespan.length;\n sampleS.timespan.forEach((t, i) => {\n let currentData = axis_arr[i].slice();\n currentData.cluster = axis_arr[i].cluster;\n currentData.name = axis_arr[i].name;\n currentData.__timestep = axis_arr[i].timestep;\n let index = currentData.cluster;\n currentData.clusterName = cluster_info[index].name;\n let appendCondition = !cluster_info[currentData.cluster].hide;\n appendCondition = appendCondition && !(lastcluster !== undefined && index === lastcluster) || runopt.suddenGroup && calculateMSE_num(lastdataarr, currentData) > cluster_info[currentData.cluster].mse * runopt.suddenGroup;\n if (appendCondition) {\n // if (!(lastcluster !== undefined && index === lastcluster)|| currentData.cluster===13 || runopt.suddenGroup && calculateMSE_num(lastdataarr, currentData) > cluster_info[currentData.cluster].mse * runopt.suddenGroup) {\n currentData.show = true;\n // // add all points\n // }\n // // timeline precalculate\n // if (true) {\n\n lastcluster = index;\n lastdataarr = currentData.slice();\n currentData.timestep = count; // TODO temperal timestep\n count++;\n // make copy of axis data\n currentData.data = currentData.slice();\n // currentData.push(timeScale(axis_arr[i].timestep))\n // adding window\n for (let w = 0; w<windowSurrounding; w++)\n {\n let currentIndex = i -w;\n let currentWData;\n if (currentIndex<0) // bounder problem\n currentIndex = 0;\n currentWData = axis_arr[currentIndex].slice();\n // currentWData.push(timeScale(axis_arr[currentIndex].timestep))\n currentWData.forEach(d=>{\n currentData.push(d);\n });\n }\n for (let w = 0; w<windowSurrounding; w++)\n {\n let currentIndex = i + w;\n let currentWData;\n if (currentIndex > timeLength-1) // bounder problem\n currentIndex = timeLength-1;\n currentWData = axis_arr[currentIndex];\n // currentWData.push(timeScale(axis_arr[currentIndex].timestep))\n currentWData.forEach(d=>{\n currentData.push(d);\n });\n }\n if (isKeepUndefined)\n {\n for (let i = 0; i< currentData.length; i++){\n if (currentData[i]===0)\n currentData[i] = -1;\n }\n }\n dataIn.push(currentData);\n }\n return index;\n // return cluster_info.findIndex(c=>distance(c.__metrics.normalize,axis_arr)<=c.radius);\n })\n });\n return dataIn;\n}", "_registerMasterListeners () {\n this.server.setListener('reduce', data => {\n let ip = data.sourceIP\n let layerName = data.layerName\n this.reduceCollector[ip] = data.result\n console.log('receive result from the worker')\n console.log(data.result)\n })\n // perform reduce & update\n\n // this.server.setListener(\"result\", data => {\n // let range2Update = this.workerInitRange[id]\n // Tensor.updateTensor1D(\n // this.processingTensor1D,\n // CifarSettrings.INPUT_TENSOR,\n // range2Update[0],\n // range2Update[1],\n // data\n // )\n // this.processingTensor1D\n // })\n }", "async getData(){\n //URL for qRest Process on Homer\n var url=\"https://81.150.99.19:8013/executeQuery\";\n\n //Query for Gateway to be sent through qRest\n let queryRequest= {\n \"query\": \"(select .Q.f[3; avg(avgs price)] by sym, 15 xbar time.minute from trade where time.date = .z.d, time.minute within(\"+this.state.sliderLabels[this.state.rangeShort]+\";\"+this.state.sliderLabels[this.state.rangeLong]+\"))\",\n \"type\": \"sync\",\n \"response\": true\n };\n\n //Async call to qRest to retrieve graph data\n //Requires Auth for qRest login and Authorization for kdb login\n let response = await axios.post(url, queryRequest, {\n headers: {\n \"Accept\": \"*/*\",\n \"Authorization\": \"BASIC dXNlcjpwYXNz\"\n },\n auth: {\n username: 'user',\n password: 'pass'\n }\n });\n let res = response.data.result;\n\n //Grabs the New Update Time\n let newTime = response.data.responseTime.substring(11, 19) + \" UTC\";\n\n let newSeries=[];\n let newSym={\n name: \"\",\n data: []\n };\n let newData = [2];\n let check = -1;\n \n //Loops Through Data and Pushes Price to the Correct Array\n let max = res.length;\n for(let i=0; i<max; i++){\n check = this.checkInside(res[i].sym, newSeries);\n if(check === -1){\n newData[0]= this.state.dateNum+(res[i].minute.i * 60000);\n newData[1]= res[i].price;\n newSym = {\n name: res[i].sym,\n data:[newData.slice()]\n }\n newSeries.push({...newSym});\n }\n else{\n newData[0]= this.state.dateNum+(res[i].minute.i * 60000);\n newData[1]= res[i].price;\n newSeries[check].data.push(newData.slice());\n }\n }\n\n //Updates Options to Ensure Correct Time Range\n let newOptions = this.state.options;\n newOptions.xaxis.min = newSeries[0].data[0];\n //Sets the new Series and Options for Line Graph\n this.setState({series: newSeries, \n options: newOptions,\n updatedTime: newTime});\n }", "function initFlagsSeries(trader) {\n flagsSeries = chartSeries.filter(function(series) {\n return series.id == flagsSeriesId;\n })[0];\n\n if (!flagsSeries) {\n flagsSeries = {\n type : 'flags',\n id : flagsSeriesId,\n name : \"Transactions of \" + trader.name,\n shape : 'circlepin',\n color : '#df691a',\n fillColor : '#df691a',\n onSeries : chartSeries[0].id, // TODO: handle multiple series\n style : {\n color : 'white'\n },\n width : 16,\n data : []\n };\n chartSeries.push(flagsSeries);\n }\n\n flagsSeries.name = \"Transactions of \" + trader.name;\n flagsSeries.data = [];\n }", "_convertData() {\n this._initEmptySeries();\n\n const graphType = this.parentElement.getAttribute('chart-type');\n const dataFields = this.dataField.replace(/ /g, '').split(',');\n\n switch (graphType) {\n case 'donut':\n case 'radialBar':\n case 'polarArea':\n case 'pie':\n this.repeater.repeats.forEach(row => {\n if (this.categoryField && this._pathGet(row, this.categoryField)) {\n this.categories.push(this._pathGet(row, this.categoryField)._value);\n } else {\n this.categories.push('');\n }\n if (this._pathGet(row, dataFields[0])) {\n this.dataSeries.data.push(this._pathGet(row, dataFields[0])._value);\n } else {\n this.dataSeries.data.push(null);\n }\n });\n break;\n case 'bubble':\n /**\n * bubble series expects following format:\n * series = [{\n * data: [\n * [3, 3, 3],\n * [4, 4, 4],\n * [1, 1, 1],\n * ],\n * }];\n *\n */\n\n this.repeater.repeats.forEach(row => {\n const v = [];\n\n // build multidimensional data\n if (dataFields.length === 3) {\n v.y = [];\n dataFields.forEach(field => {\n if (this._pathGet(row, field)) {\n v.push(this._pathGet(row, field)._value);\n } else {\n v.push(null);\n }\n });\n } else {\n // eslint-disable-next-line no-console\n console.warn('You must give exact 3 fields for bubble charts');\n }\n\n this.dataSeries.data.push(v);\n });\n\n break;\n case 'line':\n default:\n this.repeater.repeats.forEach(row => {\n const v = { x: '', y: null };\n if (this.categoryField && this._pathGet(row, this.categoryField)) {\n const fieldNode = this._pathGet(row, this.categoryField);\n if (fieldNode._spec.type === 'google.type.Date') {\n const date = new Date(\n Date.UTC(\n fieldNode.year._value,\n fieldNode.month._value - 1,\n fieldNode.day._value,\n 0,\n 0,\n 0,\n 0,\n ),\n );\n v.x = date.getTime();\n } else {\n v.x = fieldNode._value;\n }\n }\n if (dataFields.length === 1) {\n if (this._pathGet(row, dataFields[0])) {\n const fieldNode = this._pathGet(row, this.dataField);\n if (fieldNode._spec.type === 'google.type.Date') {\n const date = new Date(\n Date.UTC(\n fieldNode.year._value,\n fieldNode.month._value - 1,\n fieldNode.day._value,\n 0,\n 0,\n 0,\n 0,\n ),\n );\n v.y = date.getTime();\n } else {\n v.y = fieldNode._value;\n }\n } else {\n v.y = null;\n }\n }\n // build multidimensional data\n if (dataFields.length > 1) {\n v.y = [];\n dataFields.forEach(field => {\n if (this._pathGet(row, field)) {\n const fieldNode = this._pathGet(row, field);\n\n if (fieldNode._spec.type === 'google.type.Date') {\n const date = new Date(\n Date.UTC(\n fieldNode.year._value,\n fieldNode.month._value - 1,\n fieldNode.day._value,\n 0,\n 0,\n 0,\n 0,\n ),\n );\n v.y.push(date.getTime());\n } else {\n v.y.push(fieldNode._value);\n }\n } else {\n v.y.push(null);\n }\n });\n }\n\n this.dataSeries.data.push(v);\n });\n }\n /**\n * @event data-updated\n * Fired when datasource has updated data\n * detail payload: data-series\n */\n const customEvent = new Event('data-updated', { composed: true, bubbles: true });\n customEvent.detail = this;\n this.dispatchEvent(customEvent);\n }", "function aggregateUsage(data) {\n var chartData = [];\n\n for(var i = 0; i < 27; i++) {\n chartData[i] = 0;\n }\n\n for( var f in data ) {\n for( var j = 0; j < data[ f ].stack.length; j++ ) {\n chartData[j] += data[ f ].stack[ j ] + data[ f ].fugitive[ j ];\n }\n }\n\n return chartData;\n }", "function run() {\n\tvar len = series.length,\n\t\tctx = {},\n\t\ti = 0;\n\n\tseries[ i ].call( ctx, next );\n\n\tfunction next() {\n\t\ti += 1;\n\t\tif ( i < len ) {\n\t\t\tseries[ i ].call( ctx, next );\n\t\t}\n\t}\n}", "function\nhelper_263_(a1x1)\n{\nlet xtmp7;\nlet xtmp30;\n;\nxtmp30 =\nfunction()\n{\nlet xtmp8;\nlet xtmp9;\nlet xtmp10;\nlet xtmp11;\nlet xtmp12;\nlet xtmp13;\n// ./JS_StreamDemo.dats: 316(line=26, offs=1) -- 347(line=27, offs=27)\n{\nxtmp8 = XATS2JS_lazy_eval(a1x1);\nif(1!==xtmp8[0]) XATS2JS_patckerr0();\n;\nxtmp9 = xtmp8[1];\nxtmp10 = xtmp8[2];\n} // val(H0Pdapp(H0Pcon(strmcon_cons(0)); -1; H0Pvar(x0(6)), H0Pvar(xs(7))))\n;\n// ./JS_StreamDemo.dats: 404(line=32, offs=1) -- 448(line=32, offs=45)\n// L1DCLnone0();\n{\n{\n{\n// ./../../../../xanadu/prelude/DATS/stream.dats: 3762(line=312, offs=1) -- 4093(line=340, offs=8)\nfunction\nstream_filter_2793_(a3x1)\n{\nlet xtmp29;\n;\n// ./../../../../xanadu/prelude/DATS/stream.dats: 3831(line=320, offs=1) -- 4091(line=339, offs=8)\nfunction\nauxmain_3834_(a4x1)\n{\nlet a4y1;\nlet xtmp16;\nlet xtmp18;\ndo {\n;\nxtmp18 =\nfunction()\n{\nlet xtmp17;\n{\nxtmp17 = auxloop_3879_(XATS2JS_lazy_eval(a4x1));\n}\n;\nreturn xtmp17;\n} // lam-function\n;\nxtmp16 = XATS2JS_new_lazy(xtmp18);\nbreak;//return\n} while( true );\nreturn xtmp16;\n} // function // auxmain(8)\nfunction\nauxloop_3879_(a4x1)\n{\nlet a4y1;\nlet xtmp20;\nlet xtmp21;\nlet xtmp22;\nlet xtmp23;\nlet xtmp24;\nlet xtmp28;\ndo {\n;\n{\nxtmp21 = 0;\ndo {\ndo {\nif(0!==a4x1[0]) break;\nxtmp21 = 1;\n} while(false);\nif(xtmp21 > 0 ) break;\ndo {\nif(1!==a4x1[0]) break;\n//L1PCKany();\n//L1PCKany();\nxtmp21 = 2;\n} while(false);\nif(xtmp21 > 0 ) break;\n} while(false);\n} // case-patck0\nswitch\n(xtmp21) {\ncase 1:\n{\nxtmp20 = [0];\n}\n;\nbreak;\ncase 2:\nxtmp22 = a4x1[1];\nxtmp23 = a4x1[2];\n{\n// ./JS_StreamDemo.dats: 404(line=32, offs=1) -- 448(line=32, offs=45)\nfunction\nfilter$test_2509_(a5x1)\n{\nlet xtmp26;\nlet xtmp27;\n;\n{\n// ./../../../../xanadu/prelude/DATS/CATS/JS/basics.dats: 2361(line=172, offs=1) -- 2416(line=173, offs=48)\n// { // val-binding\n// } // val-binding\nconst // implval/fun\ngint_gt_sint_sint_2209_ = XATS2JS_gint_gt_sint_sint\n;\n{\n// ./../../../../xanadu/prelude/DATS/CATS/JS/basics.dats: 4039(line=284, offs=1) -- 4096(line=285, offs=50)\n// { // val-binding\n// } // val-binding\nconst // implval/fun\ngint_mod_sint_sint_3788_ = XATS2JS_gint_mod_sint_sint\n;\nxtmp27 = gint_mod_sint_sint_3788_(a5x1, xtmp9);\n}\n;\nxtmp26 = gint_gt_sint_sint_2209_(xtmp27, 0);\n}\n;\nreturn xtmp26;\n} // function // filter$test(4)\n;\nxtmp24 = filter$test_2509_(xtmp22);\n}\n;\nif\n(xtmp24)\n// then\n{\n{\n{\nxtmp28 = auxmain_3834_(xtmp23);\n}\n;\nxtmp20 = [1, xtmp22, xtmp28];\n}\n;\n} // if-then\nelse\n{\n{\n// tail-recursion:\n// L1CMDapp(tmp(20); L1VALfcst(auxloop(9)); L1VALeval2(L1VALtmp(tmp(23))))\na4y1 = XATS2JS_lazy_eval(xtmp23); a4x1 = a4y1; continue;\n}\n;\n} // if-else\n;\nbreak;\ndefault: XATS2JS_matcherr0();\n} // case-switch\n;\nbreak;//return\n} while( true );\nreturn xtmp20;\n} // function // auxloop(9)\n;\n{\nxtmp29 = auxmain_3834_(a3x1);\n}\n;\nreturn xtmp29;\n} // function // stream_filter(7)\n;\nxtmp13 = stream_filter_2793_(xtmp10);\n}\n;\nxtmp12 = helper_263_(xtmp13);\n}\n;\nxtmp11 = [1, xtmp9, xtmp12];\n}\n;\nreturn xtmp11;\n} // lam-function\n;\nxtmp7 = XATS2JS_new_lazy(xtmp30);\nreturn xtmp7;\n}", "function addDataProcess() {\r\n\r\n\t\tbrunel.dataPreProcess(function (data) {\r\n\t\t\treturn data.filter(filterHandler.makeFilterStatement(data))\r\n\t\t});\r\n\t}", "aggregateHistoryDataSegment(processedTransactions) {\n // Separate transaactions to aggregate\n let aggregated = [];\n let toAggregate = [];\n for (const transaction of processedTransactions) {\n if (Blockchain.transactionsToAggregate.includes(transaction.type)) {\n toAggregate.push(transaction); // For aggregation\n } else {\n aggregated.push(transaction); // No aggregation - straight to processed\n }\n }\n\n // Aggregate\n for (const type of Blockchain.transactionsToAggregate) {\n let individualTransactions = toAggregate.filter(x => x.type === type);\n if (individualTransactions.length > 0) {\n aggregated = aggregated.concat(this.aggregateTransactionsByDate(individualTransactions));\n }\n }\n return aggregated;\n }", "function importData(basicFields, logUID) {\n const m = new Mutation()\n const txn = client.newTxn()\n let count = basicFields.length;\n let limit = 0\n let dataImport = [];\n let dataChange = {}\n let Uid = 0;\n if (count > 0) {\n while (count > 0) {\n limit = (basicFields.length > 200) ? 199 : basicFields.length; \n let tmp = basicFields.splice(0, limit);\n console.log('check length tmp', tmp.length)\n for (let i = 0; i < tmp.length; i++){\n Uid++\n dataChange = createEdgesData(tmp[i])\n dataChange.uid = `_:new_product_${Uid}`\n dataChange['dgraph.type'] = \"Product\"\n dataChange.display_status = 3\n dataChange.input_status = true\n dataImport.push(dataChange)\n // console.log(\"dataChange.uid\", dataChange.uid)\n }\n m.setSetJson(dataImport)\n // dataImport = []\n console.log('check length basicField after splice', basicFields.length)\n count = basicFields.length\n }\n console.log('Finalize !!!!!', basicFields.length)\n m.setCommitNow(true)\n txn.mutate(m)\n mutate({\n set: {\n uid: logUID,\n import_status: 'Done',\n \"dgraph.type\": \"LogImport\"\n }\n })\n \n }\n }", "function analyze(data, scope, ops) {\n // POSSIBLE TODOs:\n // - error checking for treesource on tree operators (BUT what if tree is upstream?)\n // - this is local analysis, perhaps some tasks better for global analysis...\n\n var output = [],\n source = null,\n modify = false,\n generate = false,\n upstream, i, n, t, m;\n\n if (data.values) {\n // hard-wired input data set\n output.push(source = collect({\n $ingest: data.values,\n $format: data.format\n }));\n } else if (data.url) {\n // load data from external source\n // if either url or format has signal, use dynamic loader\n // otherwise, request load upon dataflow init\n source = (hasSignal(data.url) || hasSignal(data.format))\n ? {$load: ref(scope.add(load$1(scope, data, source)))}\n : {$request: data.url, $format: data.format};\n output.push(source = collect(source));\n } else if (data.source) {\n // derives from one or more other data sets\n source = upstream = array(data.source).map(function(d) {\n return ref(scope.getData(d).output);\n });\n output.push(null); // populate later\n }\n\n // scan data transforms, add collectors as needed\n for (i=0, n=ops.length; i<n; ++i) {\n t = ops[i];\n m = t.metadata;\n\n if (!source && !m.source) {\n output.push(source = collect());\n }\n output.push(t);\n\n if (m.generates) generate = true;\n if (m.modifies && !generate) modify = true;\n\n if (m.source) source = t;\n else if (m.changes) source = null;\n }\n\n if (upstream) {\n n = upstream.length - 1;\n output[0] = Relay$1({\n derive: modify,\n pulse: n ? upstream : upstream[0]\n });\n if (modify || n) {\n // collect derived and multi-pulse tuples\n output.splice(1, 0, collect());\n }\n }\n\n if (!source) output.push(collect());\n output.push(Sieve$1({}));\n return output;\n }", "function stack(m, encoding, stackConfig) {\n var mark = mark_1.isMarkDef(m) ? m.type : m;\n // Should have stackable mark\n if (!util_1.contains(exports.STACKABLE_MARKS, mark)) {\n return null;\n }\n // Should be aggregate plot\n if (!encoding_1.isAggregate(encoding)) {\n return null;\n }\n // Should have grouping level of detail\n var stackBy = channel_1.STACK_BY_CHANNELS.reduce(function (sc, channel) {\n if (encoding_1.channelHasField(encoding, channel)) {\n var channelDef = encoding[channel];\n (util_1.isArray(channelDef) ? channelDef : [channelDef]).forEach(function (cDef) {\n var fieldDef = fielddef_1.getFieldDef(cDef);\n if (!fieldDef.aggregate) {\n sc.push({\n channel: channel,\n fieldDef: fieldDef\n });\n }\n });\n }\n return sc;\n }, []);\n if (stackBy.length === 0) {\n return null;\n }\n // Has only one aggregate axis\n var hasXField = fielddef_1.isFieldDef(encoding.x);\n var hasYField = fielddef_1.isFieldDef(encoding.y);\n var xIsAggregate = fielddef_1.isFieldDef(encoding.x) && !!encoding.x.aggregate;\n var yIsAggregate = fielddef_1.isFieldDef(encoding.y) && !!encoding.y.aggregate;\n if (xIsAggregate !== yIsAggregate) {\n var fieldChannel = xIsAggregate ? channel_1.X : channel_1.Y;\n var fieldDef = encoding[fieldChannel];\n var fieldChannelAggregate = fieldDef.aggregate;\n var fieldChannelScale = fieldDef.scale;\n var stackOffset = null;\n if (fieldDef.stack !== undefined) {\n stackOffset = fieldDef.stack;\n }\n else if (util_1.contains(exports.STACK_BY_DEFAULT_MARKS, mark)) {\n // Bar and Area with sum ops are automatically stacked by default\n stackOffset = stackConfig === undefined ? 'zero' : stackConfig;\n }\n else {\n stackOffset = stackConfig;\n }\n if (!stackOffset || stackOffset === 'none') {\n return null;\n }\n // If stacked, check if it qualifies for stacking (and log warning if not qualified.)\n if (fieldChannelScale && fieldChannelScale.type && fieldChannelScale.type !== scale_1.ScaleType.LINEAR) {\n log.warn(log.message.cannotStackNonLinearScale(fieldChannelScale.type));\n return null;\n }\n if (encoding_1.channelHasField(encoding, fieldChannel === channel_1.X ? channel_1.X2 : channel_1.Y2)) {\n log.warn(log.message.cannotStackRangedMark(fieldChannel));\n return null;\n }\n if (!util_1.contains(aggregate_1.SUM_OPS, fieldChannelAggregate)) {\n log.warn(log.message.cannotStackNonSummativeAggregate(fieldChannelAggregate));\n return null;\n }\n return {\n groupbyChannel: xIsAggregate ? (hasYField ? channel_1.Y : null) : (hasXField ? channel_1.X : null),\n fieldChannel: fieldChannel,\n impute: util_1.contains(['area', 'line'], mark),\n stackBy: stackBy,\n offset: stackOffset\n };\n }\n return null;\n}", "componentWillMount() {\n fetch(\"/data?q=\" + this.props.column1, {\n accept: \"application/json\"\n })\n .then(response => response.json())\n .then(data1 => this.setState({ data1 }))\n .then(fetch(\"/data?q=\" + this.props.column2, {\n accept: 'application/json'\n })\n .then(response => response.json())\n .then(data2 => this.setState({ data2 }))\n .then(() => {\n this.chart = new Highcharts[\"Chart\"](this.props.containerId, {\n // Options\n chart: {\n type: 'area'\n },\n title: {\n text: this.props.title\n },\n xAxis: {\n type: 'datetime'\n },\n yAxis: {\n title: {\n text: this.props.yLabel\n },\n labels: {\n format: '${value}'\n },\n reversedStacks: false\n },\n tooltip: {\n shared: true,\n valuePrefix: '$',\n formatter: function () {\n const monthyear = new Date(this.x).toLocaleString('en-us', {\n timeZone: 'UTC',\n month: 'long',\n year: 'numeric'\n });\n\n return ( // TODO: First series will sometimes not render, causing crash\n '<b>' + monthyear + '</b><br/>' +\n \"Your cost: <b>$\" + this.points[0].y + \"</b>\" +\n \"<br/>You saved <b>$\" + this.points[1].y + \"</b> this month!\"\n );\n },\n },\n plotOptions: {\n area: {\n stacking: 'normal',\n dataLabels: {\n enabled: false\n }\n }\n },\n series: [\n {\n name: this.props.series1,\n data: this.state.data1,\n color: \"#FF7F50\",\n fillOpacity: 0.5\n },\n {\n name: this.props.series2,\n data: this.state.data2,\n color: \"#FFD700\",\n fillOpacity: 0.2,\n dashStyle: 'dash'\n }\n ],\n\n credits: {\n enabled: false\n }\n });\n }) // End second fetch\n ) // End first fetch\n }", "function getProcessedSentinel2Scenes(){\r\n var defaultArgs = {\r\n 'studyArea':null,\r\n 'startYear':null,\r\n 'endYear':null,\r\n 'startJulian':null,\r\n 'endJulian':null,\r\n 'applyQABand':false,\r\n 'applyCloudScore':false,\r\n 'applyShadowShift':false,\r\n 'applyTDOM':true,\r\n 'cloudScoreThresh':20,\r\n 'performCloudScoreOffset':true,\r\n 'cloudScorePctl':10,\r\n 'cloudHeights':ee.List.sequence(500,10000,500),\r\n 'zScoreThresh': -1,\r\n 'shadowSumThresh':0.35,\r\n 'contractPixels':1.5,\r\n 'dilatePixels':3.5,\r\n 'resampleMethod':'aggregate',\r\n 'toaOrSR':'TOA',\r\n 'convertToDailyMosaics':true,\r\n 'applyCloudProbability':true,\r\n 'preComputedCloudScoreOffset':null,\r\n 'preComputedTDOMIRMean':null,\r\n 'preComputedTDOMIRStdDev':null,\r\n 'cloudProbThresh': 40\r\n };\r\n \r\n var args = prepArgumentsObject(arguments,defaultArgs);\r\n args.toaOrSR = args.toaOrSR.toUpperCase();\r\n args.origin = 'Sentinel2';\r\n args.addCloudProbability = args.applyCloudProbability; //LSC\r\n print(args)\r\n \r\n // Prepare dates\r\n //Wrap the dates if needed\r\n args.wrapOffset = 0;\r\n if (args.startJulian > args.endJulian) {\r\n args.wrapOffset = 365;\r\n }\r\n args.startDate = ee.Date.fromYMD(args.startYear,1,1).advance(args.startJulian-1,'day');\r\n args.endDate = ee.Date.fromYMD(args.endYear,1,1).advance(args.endJulian-1+args.wrapOffset,'day');\r\n print('Start and end dates:', args.startDate, args.endDate);\r\n\r\n \r\n // Get Sentinel2 image collection\r\n var s2s = getS2(args);\r\n // Map.addLayer(s2s.median().reproject('EPSG:32612',null,30),{min:0.05,max:0.4,bands:'swir1,nir,red'});\r\n \r\n if(args.applyQABand){\r\n print('Applying QA band cloud mask');\r\n s2s = s2s.map(maskS2clouds);\r\n // Map.addLayer(s2s.mosaic(),{min:0.05,max:0.4,bands:'swir1,nir,red'},'QA cloud masked');\r\n \r\n }\r\n if(args.applyCloudScore){\r\n print('Applying cloudScore');\r\n s2s = applyCloudScoreAlgorithm(s2s,sentinel2CloudScore,args.cloudScoreThresh,args.cloudScorePctl,args.contractPixels,args.dilatePixels,args.performCloudScoreOffset,args.preComputedCloudScoreOffset);\r\n // Map.addLayer(s2s.mosaic(),{min:0.05,max:0.4,bands:'swir1,nir,red'},'Cloud score cloud masked');\r\n }\r\n if(args.applyCloudProbability){\r\n print('Applying cloud probability');\r\n s2s = s2s.map(function(img){return img.updateMask(img.select(['cloud_probability']).lte(args.cloudProbThresh))})\r\n }\r\n if(args.applyShadowShift){\r\n print('Applying shadow shift');\r\n s2s = s2s.map(function(img){return projectShadowsWrapper(img,cloudScoreThresh,shadowSumThresh,contractPixels,dilatePixels,cloudHeights)});\r\n // Map.addLayer(s2s.mosaic(),{min:0.05,max:0.4,bands:'swir1,nir,red'},'shadow shift shadow masked');\r\n }\r\n if(args.applyTDOM){\r\n print('Applying TDOM');\r\n args.collection = s2s;\r\n s2s = simpleTDOM2(args);\r\n // Map.addLayer(s2s.mosaic(),{min:0.05,max:0.4,bands:'swir1,nir,red'},'TDOM shadow masked');\r\n }\r\n\r\n // Add common indices- can use addIndices for comprehensive indices \r\n //or simpleAddIndices for only common indices\r\n s2s = s2s.map(simpleAddIndices)\r\n .map(getTasseledCap)\r\n .map(simpleAddTCAngles); \r\n \r\n //Add sensor band\r\n s2s = s2s.map(function(img){return addSensorBand(img,'sentinel2',args.toaOrSR)});\r\n \r\n return s2s.set(args);\r\n}", "function processOneAxisValue(feed)\r\n {\r\n var dataset = [];\r\n var i, j, k;\r\n var measureData;\r\n if (feed.values.length <= 0){\r\n return dataset;\r\n }\r\n if (hasMND && !bMNDOnColor)\r\n {\r\n for(j = 0; j < feed.values[0].rows.length; ++j)\r\n { \r\n measureData = new Array(feed.values.length * feed.values[0].rows[0].length);\r\n for(k = 0; k < feed.values[0].rows[0].length; ++k)\r\n {\r\n for(i = 0 ; i < feed.values.length; ++i)\r\n {\r\n var dataPoint = {};\r\n dataPoint.val = feed.values[i].rows[j][k].val;\r\n dataPoint.ctx = feed.values[i].rows[j][k].ctx;\r\n dataPoint.info = feed.values[i].rows[j][k].info;\r\n if(bMNDInner){\r\n measureData[k * feed.values.length + i] = dataPoint;\r\n } else {\r\n measureData[i * feed.values[0].rows[0].length + k] = dataPoint; \r\n }\r\n }\r\n }\r\n dataset.push(measureData);\r\n } \r\n }\r\n else // MND on Region color or no MND\r\n {\r\n dataset = new Array(feed.values.length * feed.values[0].rows.length);\r\n\r\n for(i = 0 ; i < feed.values.length; ++i)\r\n {\r\n for(j = 0; j < feed.values[0].rows.length; ++j)\r\n { \r\n measureData = feed.values[i].rows[j];\r\n if(!hasMND || !bMNDInner){\r\n dataset[i * feed.values[0].rows.length + j] = measureData;\r\n } else {\r\n dataset[j * feed.values.length + i] = measureData;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return dataset;\r\n }", "setNullSeriesToZeroValues(series) {\n let w = this.w\n for (let sl = 0; sl < series.length; sl++) {\n if (series[sl].length === 0) {\n for (let j = 0; j < series[w.globals.maxValsInArrayIndex].length; j++) {\n series[sl].push(0)\n }\n }\n }\n return series\n }", "function prePopulateOutput(out, buffer, argList, flag, tagsz) {\n var currentTimestamp = 0\n var index_of_the_first_sample = 0\n for (var i = 0; i < flag.nb_of_type_measure; i++) {\n var tag = {\n size: tagsz,\n lbl: buffer.getNextSample(ST_U8, tagsz)\n }\n var sampleIndex = findIndexFromArgList(argList, tag)\n\n if (i == 0) {\n index_of_the_first_sample = sampleIndex\n }\n\n currentTimestamp = extractTimestampFromBuffer(buffer, currentTimestamp)\n out.series[sampleIndex] = computeSeries(\n buffer,\n argList[sampleIndex].sampletype,\n tag.lbl,\n currentTimestamp\n )\n if (flag.hasSample) {\n out.series[sampleIndex].codingType = buffer.getNextSample(ST_U8, 2)\n out.series[sampleIndex].codingTable = buffer.getNextSample(ST_U8, 2)\n }\n }\n return {\n last_timestamp: currentTimestamp,\n index_of_the_first_sample: index_of_the_first_sample\n }\n}", "function doChunk() {\n const time = +new Date(),\n len = tds.length;\n\n for (let i = 0; i < len; i += 1) {\n const td = tds[i];\n const stringdata = td.dataset.sparkline;\n const arr = stringdata.split(\"; \");\n const data = arr[0].split(\", \").map(parseFloat);\n const chart = {};\n\n if (arr[1]) {\n chart.type = arr[1];\n }\n\n Highcharts.SparkLine(td, {\n series: [\n {\n data: data,\n pointStart: 1,\n },\n ],\n tooltip: {\n headerFormat:\n '<span style=\"font-size: 10px\">' +\n td.parentElement.querySelector(\"th\").innerText +\n \", Q{point.x}:</span><br/>\",\n pointFormat: \"<b>{point.y}.000</b> USD\",\n },\n chart: chart,\n });\n\n n += 1;\n\n // If the process takes too much time, run a timeout to allow interaction with the browser\n if (new Date() - time > 500) {\n tds.splice(0, i + 1);\n setTimeout(doChunk, 0);\n break;\n }\n\n // Print a feedback on the performance\n if (n === fullLen) {\n document.getElementById(\"result\").innerHTML =\n \"Generated \" +\n fullLen +\n \" sparklines in \" +\n (new Date() - start) +\n \" ms\";\n }\n }\n }", "function invokeDataProcessors() {\n plugins.forEach(function(plugin) {\n try {\n plugin.moduleInstance.process();\n }\n catch(e) {\n console.log(\"Error processing analytics data for\", plugin.manifest.name, \":\", e);\n }\n });\n}", "function add(series, metric_name, values) {\n\t\tseries.meta.columns.push(metric_name);\n\t\tseries.data.push(values);\t\n\t\n\t\treturn true;\n\t}", "function nextDataTick(){\n var now = new Date().getTime() / 1000;\n bestPoint = getBestPoint(now);\n\n if (bestPoint == undefined) {\n var bestStamp = now - 140;\nif (dbg) console.log(\"No more good data for \" + new Date(bestStamp*1000) + \")\");\n// console.log(\"Found range \" + firstPoint +\" to \" + lastPoint);\n downloadData(); // downloadData will reschedule the tick\n\n /* We only redraw the heatLayer each download, because it's slow */\n if (map.hasLayer(heatLayer)) {\n heatLayer._redraw();\n }\n\n return;\n }\n \n var cnode = bestPoint[\"cnode\"];\n var mnode = bestPoint[\"mnode\"];\n var dnode = bestPoint[\"dnode\"];\n var cway = bestPoint[\"cway\"];\n var mway = bestPoint[\"mway\"];\n var dway = bestPoint[\"dway\"];\n var crel = bestPoint[\"crel\"];\n var mrel = bestPoint[\"mrel\"];\n var drel = bestPoint[\"drel\"];\n totalCNode += cnode; totalMNode += mnode; totalDNode += dnode;\n totalCWay += cway; totalMWay += mway; totalDWay += dway;\n totalCRel += crel; totalMRel += mrel; totalDRel += drel;\n totalChanges = totalCNode+totalMNode+totalDNode+totalCWay+totalMWay+totalDWay+totalCRel+totalMRel+totalDRel;\n totalChangesets += bestPoint[\"nbChangesets\"];\n\n minutes = (new Date().getTime() - startTime)/60000;\n\n /* Add the point to the graph */\n ++addedPoints;\n {\n series = chart_edits.series[0];\n series.addPoint([bestPoint[\"time\"] * 1000, bestPoint[\"nbChangesets\"]*(60/scale)], false, addedPoints > 10);\n chart_edits.redraw();\n }\n\n if (playing) {\n selectChangeset(bestPoint);\n }\n\n /* Save all changesets in this data point */\n for (var i in bestPoint[\"changesets\"]) {\n allChangesets.push(bestPoint[\"changesets\"][i]);\n }\n\n updateTopMap(bestPoint);\n\n /* Add all to the log */\n {\n\t var heightBefore = $(\"#tailscroll\").get(0).scrollHeight;\n \tvar lastAdded = undefined;\n \tvar allAdded = Array();\n for (var i in bestPoint[\"changesets\"]) {\n var changeset = bestPoint[\"changesets\"][i];\n\t\t\td = new Date(changeset[\"time\"] * 1000);\n\t\t\tvar u = changeset[\"user\"];\n\n /* Also update the seen users counter */\n\t\t\tif ($.inArray(u, seenUsers) >= 0){\n\t\t\t} else {\n\t\t\t\tseenUsers.push(u);\n\t\t\t}\n\t\t\tvar time = $.format.date(d, \"HH:mm:ss\"); // d.getHours() + \":\" + d.getMinutes() + \":\" + d.getSeconds()\n\n\n var html = \"<td class='log_time'><a href=\\\"#\\\" onClick=\\\"setDetailedChangeset(\"+changeset[\"id\"]+\",false);return(false)\\\">\" + time + \"</a></td><td class='log_user'><a target='_blank' href='http://osm.org/user/\"+u+\"'>\" + u + \"</a></td>\";\n\t/* html += \"<td class='log_cnode'>\" + changeset[\"cnode\"] + \"</td><td class='log_mnode'>\" + changeset[\"mnode\"] + \"</td><td class='dog_cnode'>\" + changeset[\"dnode\"] + \"</td>\";\n\t\t\t\t\thtml += \"<td class='log_cway'>\" + changeset[\"cway\"] + \"</td><td class='log_mway'>\" + changeset[\"mway\"] + \"</td><td class='log_dway'>\" + changeset[\"dway\"] + \"</td>\";\n\t\t\t\t\thtml += \"<td class='log_crel'>\" + changeset[\"crel\"] + \"</td><td class='log_mrel'>\" + changeset[\"mrel\"] + \"</td><td class='log_drel'>\" + changeset[\"drel\"] + \"</td>\";\n\t\t\t\t\t*/\n\t\t\tvar total =\n\t\t\t\tparseInt( changeset[\"cnode\"]) + parseInt( changeset[\"mnode\"])+ parseInt( changeset[\"dnode\"]) +\n\t\t\t\tparseInt( changeset[\"cway\"]) + parseInt( changeset[\"mway\"])+ parseInt( changeset[\"dway\"]) +\n\t\t\t\tparseInt( changeset[\"crel\"]) + parseInt( changeset[\"mrel\"])+ parseInt( changeset[\"drel\"]);\n\t\t\thtml += \"<td class='log_edits'><a target='_blank' href='http://osm.org/browse/changeset/\"+changeset[\"id\"]+\"'>\" + total + \"</a>\"\n html += \"</td><td class='log_right'></td>\";\n html += \"<td>\" + getFlagImgHtml(changeset) + \"</td>\";\n/*\n\t\t\tif (changeset[\"minLat\"] != \"-90.0\") {\n\t\t\t\t// Zoom button (on top map)\n\t\t\t\thtml += \"<td class='log_zoom' width=\\\"50%\\\">\";\n\t\t\t\thtml += \"<a class='log_zoombig' href=\\\"#\\\" onclick=\\\"var sw= new L.LatLng(\" + changeset[\"minLat\"] + \",\"\n\t\t\t\t\t+ changeset[\"minLon\"] + \"),ne = new L.LatLng(\" + changeset[\"maxLat\"] + \",\"\n\t\t\t\t\t+ changeset[\"maxLon\"] + \"), bounds = new L.LatLngBounds(sw, ne); map.fitBounds(bounds);\\\">Zoom on top map</a> \";\n \t\t\t\t// Details button\n\t\t\t html += \"<a class='log_zoomsmall' href=\\\"#\\\" onclick=\\\"detailChangeset(\" +changeset[\"id\"] + \",'\"+ changeset[\"user\"] + \"',\"\n\t\t\t\t\t+ changeset[\"minLat\"] + \",\"+ changeset[\"minLon\"] + \",\"+ changeset[\"maxLat\"] + \",\"\n\t\t\t\t\t+ changeset[\"maxLon\"] + \",\" + changeset[\"cnode\"] + \",\" + changeset[\"mnode\"] + \",\"\n\t\t\t\t\t\t+ changeset[\"dnode\"] + \",\" + changeset[\"cway\"] + \",\" + changeset[\"mway\"] + \",\"\n\t\t\t\t\t\t+ changeset[\"dway\"] + \",\" + changeset[\"crel\"] + \",\" + changeset[\"mrel\"] + \",\"\n\t\t\t\t\t\t+ changeset[\"drel\"] + \")\\\">Select</a></td>\";\n\t\t\t\t} else {\n\t\t\t\t\thtml += \"<td>N/A</td>\";\n\t\t\t\t}\n*/\n\t\t\tvar zhtml = $(\"<tr />\").html(html);\n changeset[\"logItem\"] = zhtml;\n\t\tzhtml.hide();\n\t\t\t zhtml.appendTo(\"#tailtable\");\n\t\t\t lastAdded = zhtml;\n\t\t\t allAdded.push(zhtml);\n }\t\n }\n\n /* Go bottom map ! */\n for (var i in bestPoint[\"changesets\"]) {\n var changeset = bestPoint[\"changesets\"][i];\n if (changeset[\"selected\"]) {\n setDetailedChangeset(changeset[\"id\"],true);\n }\n }\n\n /* Scroll the log */\n\tfor (var i in allAdded) {\n\t\t\t$(allAdded[i]).show();\n//\t\t\t$(\"#tailscroll\").animate({scrollTop: heightBefore}, 0);\n\t}\n\tvar newHeight = $(\"#tailscroll\").get(0).scrollHeight;\n//\tconsole.log(\"Scrolling \" + (newHeight-heightBefore));\n if (playing) {\n \t$(\"#tailscroll\").animate({scrollTop: newHeight/* \"+=\" + (newHeight-heightBefore) + \"px\"*/}, 'easeOutBack');\n }\n//:\t\t$(\"#tailscroll\").animate({scrollTop: newHeight}, 'easeOutBack');\n//\t\tif (lastAdded != undefined) {\n//\t\t\t$(\"#tailscroll\").scrollTo(lastAdded, 'easeOutBack');\t\n//\t\t}\n\n\t// update global counters\n\t$(\"#count_edits\").html(\"\" + totalChanges);\n\t// $(\"#count_changesets\").html(\"\" + totalChangesets);\n\t$(\"#count_users\").html(\"\" + seenUsers.length);\n\t$(\"#count_minutes\").html(\"\" + (minutes.toFixed(0))+\"'\");\n\n setButtonsState();\n\n setTimeout(nextDataTick, scale * 1000);\n\n} // function nextDataTick", "function graph_new_data(stream) {\n\n // Check for a failed connection:\n if (stream.indexOf('ailed') > -1) {\n $(\"#graph-conn-info\").html(stream);\n\n } else {\n var ts = 0;\n for (k = 0; k < stream.length; k++) {\n if (stream[k] === '\\n')\n stream[k] = '\\r';\n if (stream[k] === '\\r' && graph_data_ready) {\n if (!graph_paused) {\n graph_temp_data.push(graph_temp_string.split(','));\n var row = graph_temp_data.length - 1;\n ts = Number(graph_temp_data[row][0]) || 0;\n\n // convert to seconds:\n // Uses Propeller system clock (CNT) left shifted by 16.\n // Assumes 80MHz clock frequency.\n ts = ts / 1220.703125;\n }\n if (!graph_timestamp_start || graph_timestamp_start === 0) {\n graph_timestamp_start = ts;\n if (graph_start_playing) {\n graph_timestamp_start -= graph_timestamp_restart;\n graph_timestamp_restart = 0;\n }\n }\n if (row > 0 && !graph_start_playing) {\n if (parseFloat(graph_temp_data[row][0]) < parseFloat(graph_temp_data[row - 1][1])) {\n graph_time_multiplier += fullCycleTime;\n }\n }\n graph_start_playing = false;\n if (!graph_paused) {\n graph_temp_data[row].unshift(ts + graph_time_multiplier -\n graph_timestamp_start);\n var graph_csv_temp = (Math.round(graph_temp_data[row][0] * 10000) / 10000) + ',';\n\n if (graph_options.graph_type === 'X') { // xy scatter plot\n var jk = 0;\n for (var j = 2; j < graph_temp_data[row].length; j = j + 2) {\n graph_csv_temp += graph_temp_data[row][j] + ',' + graph_temp_data[row][j + 1] + ',';\n graph_data.series[jk].push({\n x: graph_temp_data[row][j] || null,\n y: graph_temp_data[row][j + 1] || null\n });\n if (graph_temp_data[row][0] > graph_options.sampleTotal)\n graph_data.series[jk].shift();\n jk++;\n }\n } else { // Time series graph\n for (var j = 2; j < graph_temp_data[row].length; j++) {\n graph_csv_temp += graph_temp_data[row][j] + ',';\n graph_data.series[j - 2].push({\n x: graph_temp_data[row][0],\n y: graph_temp_data[row][j] || null\n });\n $('.ct_line').css('stroke-width','2.5px'); // TODO: if this slows performance too much - explore changing the stylesheet (https://stackoverflow.com/questions/50036922/change-a-css-stylesheets-selectors-properties/50036923#50036923)\n if (graph_temp_data[row][0] > graph_options.sampleTotal)\n graph_data.series[j - 2].shift();\n } \n }\n\n graph_csv_data.push(graph_csv_temp.slice(0, -1).split(','));\n\n // limits total number of data points collected to prevent memory issues\n if (graph_csv_data.length > 15000) {\n graph_csv_data.shift();\n }\n }\n\n graph_temp_string = '';\n } else {\n if (!graph_data_ready) { // wait for a full set of data to\n if (stream[k] === '\\r') { // come in before graphing, ends up\n graph_data_ready = true; // tossing the first point but prevents\n } // garbage from mucking up the graph.\n } else {\n // make sure it's a number, comma, CR, or LF\n if ('-0123456789.,\\r\\n'.indexOf(stream[k]) > -1) {\n graph_temp_string += stream[k];\n }\n }\n }\n }\n }\n}", "get targetSeries() {\r\n if (this.i.m8 == null) {\r\n return null;\r\n }\r\n if (!this.i.m8.externalObject) {\r\n let e = IgxSeriesComponent._createFromInternal(this.i.m8);\r\n if (e) {\r\n e._implementation = this.i.m8;\r\n }\r\n this.i.m8.externalObject = e;\r\n }\r\n return this.i.m8.externalObject;\r\n }" ]
[ "0.5395717", "0.5296205", "0.526486", "0.50855595", "0.4923552", "0.4848148", "0.4844965", "0.48335835", "0.48011985", "0.47947785", "0.47552708", "0.47359625", "0.47311857", "0.4707583", "0.46699825", "0.4665293", "0.4662054", "0.46503162", "0.46456394", "0.46434087", "0.46285805", "0.4627045", "0.4627045", "0.460505", "0.45961627", "0.4574433", "0.45711485", "0.45673192", "0.4565727", "0.45395362", "0.45366296", "0.45366296", "0.45366296", "0.4531884", "0.45293617", "0.45152837", "0.44863635", "0.44660017", "0.44634795", "0.44478777", "0.44471306", "0.44453982", "0.44453982", "0.44453982", "0.44453982", "0.44453982", "0.44453982", "0.44416878", "0.44403592", "0.44401708", "0.4425784", "0.44199213", "0.44149035", "0.44119683", "0.44113758", "0.44102424", "0.44075483", "0.43999445", "0.43922886", "0.43899548", "0.43852866", "0.43685699", "0.4362419", "0.4360031", "0.43582642", "0.43532237", "0.43518418", "0.4347744", "0.4346301", "0.43406624", "0.43399656", "0.43347725", "0.43321446", "0.4328218", "0.43226716", "0.4305323", "0.4305169", "0.43016365", "0.42978108", "0.42783314", "0.4276974", "0.42758417", "0.42719427", "0.42686498", "0.4266514", "0.42603108", "0.42569312", "0.42501196", "0.42461354", "0.4244491", "0.42408895", "0.4238445", "0.4237406", "0.4236609", "0.4234693", "0.42337477", "0.42324594", "0.4231861", "0.42314264", "0.4229332", "0.42261246" ]
0.0
-1
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (render) { options.render = render options.staticRenderFns = staticRenderFns options._compiled = true } // functional template if (functionalTemplate) { options.functional = true } // scopedId if (scopeId) { options._scopeId = 'data-v-' + scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = shadowMode ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } : injectStyles } if (hook) { if (options.functional) { // for template-only hot-reload because in that case the render fn doesn't // go through the normalizer options._injectStyles = hook // register for functioal component in vue file var originalRender = options.render options.render = function renderWithStyleInjection (h, context) { hook.call(context) return originalRender(h, context) } } else { // inject component registration as beforeCreate hook var existing = options.beforeCreate options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } } return { exports: scriptExports, options: options } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (ctx.isDev && ctx.isClient) {\n config.devtool = \"source-map\";\n // if (isDev && process.isClient) {\n config.plugins.push(\n new StylelintPlugin({\n files: [\"**/*.vue\", \"**/*.scss\"],\n })\n ),\n config.module.rules.push({\n enforce: \"pre\",\n test: /\\.(js|vue)$/,\n loader: \"eslint-loader\",\n exclude: /(node_modules)/,\n options: {\n formatter: require(\"eslint-friendly-formatter\"),\n },\n });\n if (ctx.isDev) {\n config.mode = \"development\";\n }\n }\n for (const rule of config.module.rules) {\n if (rule.use) {\n for (const use of rule.use) {\n if (use.loader === \"sass-loader\") {\n use.options = use.options || {};\n use.options.includePaths = [\n \"node_modules/foundation-sites/scss\",\n \"node_modules/motion-ui/src\",\n ];\n }\n }\n }\n }\n // vue-svg-inline-loader\n const vueRule = config.module.rules.find((rule) =>\n rule.test.test(\".vue\")\n );\n vueRule.use = [\n {\n loader: vueRule.loader,\n options: vueRule.options,\n },\n {\n loader: \"vue-svg-inline-loader\",\n },\n ];\n delete vueRule.loader;\n delete vueRule.options;\n }", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}" ]
[ "0.5848589", "0.5729015", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493" ]
0.0
-1
The `wrapper` function encapsulates all of the throttling / debouncing functionality and when executed will limit the rate at which `callback` is executed.
function wrapper () { var self = this; var elapsed = Number(new Date()) - lastExec; var args = arguments; // Execute `callback` and update the `lastExec` timestamp. function exec () { lastExec = Number(new Date()); callback.apply(self, args); } // If `debounceMode` is true (at begin) this is used to clear the flag // to allow future `callback` executions. function clear () { timeoutID = undefined; } if ( debounceMode && !timeoutID ) { // Since `wrapper` is being called for the first time and // `debounceMode` is true (at begin), execute `callback`. exec(); } // Clear any existing timeout. if ( timeoutID ) { clearTimeout(timeoutID); } if ( debounceMode === undefined && elapsed > delay ) { // In throttle mode, if `delay` time has been exceeded, execute // `callback`. exec(); } else if ( noTrailing !== true ) { // In trailing throttle mode, since `delay` time has not been // exceeded, schedule `callback` to execute `delay` ms after most // recent execution. // // If `debounceMode` is true (at begin), schedule `clear` to execute // after `delay` ms. // // If `debounceMode` is false (at end), schedule `callback` to // execute after `delay` ms. timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wrapper () {\n\t\n\t\t\tvar self = this;\n\t\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\t\tvar args = arguments;\n\t\n\t\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\t\tfunction exec () {\n\t\t\t\tlastExec = Number(new Date());\n\t\t\t\tcallback.apply(self, args);\n\t\t\t}\n\t\n\t\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t\t// to allow future `callback` executions.\n\t\t\tfunction clear () {\n\t\t\t\ttimeoutID = undefined;\n\t\t\t}\n\t\n\t\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\t\texec();\n\t\t\t}\n\t\n\t\t\t// Clear any existing timeout.\n\t\t\tif ( timeoutID ) {\n\t\t\t\tclearTimeout(timeoutID);\n\t\t\t}\n\t\n\t\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t\t// `callback`.\n\t\t\t\texec();\n\t\n\t\t\t} else if ( noTrailing !== true ) {\n\t\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t\t// recent execution.\n\t\t\t\t//\n\t\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t\t// after `delay` ms.\n\t\t\t\t//\n\t\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t\t// execute after `delay` ms.\n\t\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t\t}\n\t\n\t\t}", "function wrapper () {\n\n\t\t\tvar self = this;\n\t\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\t\tvar args = arguments;\n\n\t\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\t\tfunction exec () {\n\t\t\t\tlastExec = Number(new Date());\n\t\t\t\tcallback.apply(self, args);\n\t\t\t}\n\n\t\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t\t// to allow future `callback` executions.\n\t\t\tfunction clear () {\n\t\t\t\ttimeoutID = undefined;\n\t\t\t}\n\n\t\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\t\texec();\n\t\t\t}\n\n\t\t\t// Clear any existing timeout.\n\t\t\tif ( timeoutID ) {\n\t\t\t\tclearTimeout(timeoutID);\n\t\t\t}\n\n\t\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t\t// `callback`.\n\t\t\t\texec();\n\n\t\t\t} else if ( noTrailing !== true ) {\n\t\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t\t// recent execution.\n\t\t\t\t//\n\t\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t\t// after `delay` ms.\n\t\t\t\t//\n\t\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t\t// execute after `delay` ms.\n\t\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t\t}\n\n\t\t}", "function wrapper(){var self=this;var elapsed=Number(new Date())-lastExec;var args=arguments;// Execute `callback` and update the `lastExec` timestamp.\n\tfunction exec(){lastExec=Number(new Date());callback.apply(self,args);}// If `debounceMode` is true (at begin) this is used to clear the flag\n\t// to allow future `callback` executions.\n\tfunction clear(){timeoutID=undefined;}if(debounceMode&&!timeoutID){// Since `wrapper` is being called for the first time and\n\t// `debounceMode` is true (at begin), execute `callback`.\n\texec();}// Clear any existing timeout.\n\tif(timeoutID){clearTimeout(timeoutID);}if(debounceMode===undefined&&elapsed>delay){// In throttle mode, if `delay` time has been exceeded, execute\n\t// `callback`.\n\texec();}else if(noTrailing!==true){// In trailing throttle mode, since `delay` time has not been\n\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t// recent execution.\n\t//\n\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t// after `delay` ms.\n\t//\n\t// If `debounceMode` is false (at end), schedule `callback` to\n\t// execute after `delay` ms.\n\ttimeoutID=setTimeout(debounceMode?clear:exec,debounceMode===undefined?delay-elapsed:delay);}}// Return the wrapper function.", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t/*\n\t\t * If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t * to allow future `callback` executions.\n\t\t */\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t/*\n\t\t\t * Since `wrapper` is being called for the first time and\n\t\t\t * `debounceMode` is true (at begin), execute `callback`.\n\t\t\t */\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t/*\n\t\t\t * In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t * `callback`.\n\t\t\t */\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t/*\n\t\t\t * In trailing throttle mode, since `delay` time has not been\n\t\t\t * exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t * recent execution.\n\t\t\t *\n\t\t\t * If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t * after `delay` ms.\n\t\t\t *\n\t\t\t * If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t * execute after `delay` ms.\n\t\t\t */\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper(){var self=this;var elapsed=Number(new Date())-lastExec;var args=arguments;// Execute `callback` and update the `lastExec` timestamp.\nfunction exec(){lastExec=Number(new Date());callback.apply(self,args);}// If `debounceMode` is true (at begin) this is used to clear the flag\n// to allow future `callback` executions.\nfunction clear(){timeoutID=undefined;}if(debounceMode&&!timeoutID){// Since `wrapper` is being called for the first time and\n// `debounceMode` is true (at begin), execute `callback`.\nexec();}// Clear any existing timeout.\nif(timeoutID){clearTimeout(timeoutID);}if(debounceMode===undefined&&elapsed>delay){// In throttle mode, if `delay` time has been exceeded, execute\n// `callback`.\nexec();}else if(noTrailing!==true){// In trailing throttle mode, since `delay` time has not been\n// exceeded, schedule `callback` to execute `delay` ms after most\n// recent execution.\n//\n// If `debounceMode` is true (at begin), schedule `clear` to execute\n// after `delay` ms.\n//\n// If `debounceMode` is false (at end), schedule `callback` to\n// execute after `delay` ms.\ntimeoutID=setTimeout(debounceMode?clear:exec,debounceMode===undefined?delay-elapsed:delay);}}// Return the wrapper function.", "function wrapper() {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec() {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear() {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif (debounceMode && !timeoutID) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif (timeoutID) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif (debounceMode === undefined && elapsed > delay) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\t\t} else if (noTrailing !== true) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\t}", "function wrapper() {\n var self = this;\n var elapsed = Number(new Date()) - lastExec;\n var args = arguments; // Execute `callback` and update the `lastExec` timestamp.\n\n function exec() {\n lastExec = Number(new Date());\n callback.apply(self, args);\n } // If `debounceMode` is true (at begin) this is used to clear the flag\n // to allow future `callback` executions.\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n // Since `wrapper` is being called for the first time and\n // `debounceMode` is true (at begin), execute `callback`.\n exec();\n } // Clear any existing timeout.\n\n\n if (timeoutID) {\n clearTimeout(timeoutID);\n }\n\n if (debounceMode === undefined && elapsed > delay) {\n // In throttle mode, if `delay` time has been exceeded, execute\n // `callback`.\n exec();\n } else if (noTrailing !== true) {\n // In trailing throttle mode, since `delay` time has not been\n // exceeded, schedule `callback` to execute `delay` ms after most\n // recent execution.\n //\n // If `debounceMode` is true (at begin), schedule `clear` to execute\n // after `delay` ms.\n //\n // If `debounceMode` is false (at end), schedule `callback` to\n // execute after `delay` ms.\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n } // Return the wrapper function.", "function wrapper() {\n for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {\n arguments_[_key] = arguments[_key];\n }\n\n var self = this;\n var elapsed = Date.now() - lastExec;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, arguments_);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }", "function wrapper() {\n var that = this,\n elapsed = +new Date() - last_exec,\n args = arguments;\n \n // Execute `callback` and update the `last_exec` timestamp.\n function exec() {\n last_exec = +new Date();\n callback.apply( that, args );\n };\n \n // If `debounce_mode` is true (at_begin) this is used to clear the flag\n // to allow future `callback` executions.\n function clear() {\n timeout_id = undefined;\n };\n \n if ( debounce_mode && !timeout_id ) {\n // Since `wrapper` is being called for the first time and\n // `debounce_mode` is true (at_begin), execute `callback`.\n exec();\n }\n \n // Clear any existing timeout.\n timeout_id && clearTimeout( timeout_id );\n \n if ( debounce_mode === undefined && elapsed > delay ) {\n // In throttle mode, if `delay` time has been exceeded, execute\n // `callback`.\n exec();\n \n } else if ( no_trailing !== true ) {\n // In trailing throttle mode, since `delay` time has not been\n // exceeded, schedule `callback` to execute `delay` ms after most\n // recent execution.\n // \n // If `debounce_mode` is true (at_begin), schedule `clear` to execute\n // after `delay` ms.\n // \n // If `debounce_mode` is false (at end), schedule `callback` to\n // execute after `delay` ms.\n timeout_id = setTimeout( debounce_mode ? clear : exec, debounce_mode === undefined ? delay - elapsed : delay );\n }\n }", "function wrapper() {\n var that = this,\n elapsed = +new Date() - last_exec,\n args = arguments;\n \n // Execute `callback` and update the `last_exec` timestamp.\n function exec() {\n last_exec = +new Date();\n callback.apply( that, args );\n };\n \n // If `debounce_mode` is true (at_begin) this is used to clear the flag\n // to allow future `callback` executions.\n function clear() {\n timeout_id = undefined;\n };\n \n if ( debounce_mode && !timeout_id ) {\n // Since `wrapper` is being called for the first time and\n // `debounce_mode` is true (at_begin), execute `callback`.\n exec();\n }\n \n // Clear any existing timeout.\n timeout_id && clearTimeout( timeout_id );\n \n if ( debounce_mode === undefined && elapsed > delay ) {\n // In throttle mode, if `delay` time has been exceeded, execute\n // `callback`.\n exec();\n \n } else if ( no_trailing !== true ) {\n // In trailing throttle mode, since `delay` time has not been\n // exceeded, schedule `callback` to execute `delay` ms after most\n // recent execution.\n // \n // If `debounce_mode` is true (at_begin), schedule `clear` to execute\n // after `delay` ms.\n // \n // If `debounce_mode` is false (at end), schedule `callback` to\n // execute after `delay` ms.\n timeout_id = setTimeout( debounce_mode ? clear : exec, debounce_mode === undefined ? delay - elapsed : delay );\n }\n }", "function wrapper() {\n var that = this,\n elapsed = +new Date() - last_exec,\n args = arguments;\n \n // Execute `callback` and update the `last_exec` timestamp.\n function exec() {\n last_exec = +new Date();\n callback.apply( that, args );\n };\n \n // If `debounce_mode` is true (at_begin) this is used to clear the flag\n // to allow future `callback` executions.\n function clear() {\n timeout_id = undefined;\n };\n \n if ( debounce_mode && !timeout_id ) {\n // Since `wrapper` is being called for the first time and\n // `debounce_mode` is true (at_begin), execute `callback`.\n exec();\n }\n \n // Clear any existing timeout.\n timeout_id && clearTimeout( timeout_id );\n \n if ( debounce_mode === undefined && elapsed > delay ) {\n // In throttle mode, if `delay` time has been exceeded, execute\n // `callback`.\n exec();\n \n } else if ( no_trailing !== true ) {\n // In trailing throttle mode, since `delay` time has not been\n // exceeded, schedule `callback` to execute `delay` ms after most\n // recent execution.\n // \n // If `debounce_mode` is true (at_begin), schedule `clear` to execute\n // after `delay` ms.\n // \n // If `debounce_mode` is false (at end), schedule `callback` to\n // execute after `delay` ms.\n timeout_id = setTimeout( debounce_mode ? clear : exec, debounce_mode === undefined ? delay - elapsed : delay );\n }\n }", "function wrapper() {\n for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {\n arguments_[_key] = arguments[_key];\n }\n\n var self = this;\n var elapsed = Date.now() - lastExec;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, arguments_);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (!noLeading && debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`\n * and noLeading != true.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n if (noLeading) {\n /*\n * In throttle mode with noLeading, if `delay` time has\n * been exceeded, update `lastExec` and schedule `callback`\n * to execute after `delay` ms.\n */\n lastExec = Date.now();\n\n if (!noTrailing) {\n timeoutID = setTimeout(debounceMode ? clear : exec, delay);\n }\n } else {\n /*\n * In throttle mode without noLeading, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n }\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }", "function throttle (callback, limit) {\n var wait = false; // Initially, we're not waiting\n return function () { // We return a throttled function\n if (!wait) { // If we're not waiting\n callback.call(); // Execute users function\n wait = true; // Prevent future invocations\n setTimeout(function () { // After a period of time\n wait = false; // And allow future invocations\n }, limit);\n }\n }\n }", "function throttle (callback, limit) {\n\t\tvar wait = false; // Initially, we're not waiting\n\t\treturn function () { // We return a throttled function\n\t\t\tif (!wait) { // If we're not waiting\n\t\t\t\tcallback.call(); // Execute users function\n\t\t\t\twait = true; // Prevent future invocations\n\t\t\t\tsetTimeout(function () { // After a period of time\n\t\t\t\t\twait = false; // And allow future invocations\n\t\t\t\t}, limit);\n\t\t\t}\n\t\t}\n\t}", "function wrapper() {\n\t for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {\n\t arguments_[_key] = arguments[_key];\n\t }\n\n\t var self = this;\n\t var elapsed = Date.now() - lastExec;\n\n\t if (cancelled) {\n\t return;\n\t } // Execute `callback` and update the `lastExec` timestamp.\n\n\n\t function exec() {\n\t lastExec = Date.now();\n\t callback.apply(self, arguments_);\n\t }\n\t /*\n\t * If `debounceMode` is true (at begin) this is used to clear the flag\n\t * to allow future `callback` executions.\n\t */\n\n\n\t function clear() {\n\t timeoutID = undefined;\n\t }\n\n\t if (debounceMode && !timeoutID) {\n\t /*\n\t * Since `wrapper` is being called for the first time and\n\t * `debounceMode` is true (at begin), execute `callback`.\n\t */\n\t exec();\n\t }\n\n\t clearExistingTimeout();\n\n\t if (debounceMode === undefined && elapsed > delay) {\n\t /*\n\t * In throttle mode, if `delay` time has been exceeded, execute\n\t * `callback`.\n\t */\n\t exec();\n\t } else if (noTrailing !== true) {\n\t /*\n\t * In trailing throttle mode, since `delay` time has not been\n\t * exceeded, schedule `callback` to execute `delay` ms after most\n\t * recent execution.\n\t *\n\t * If `debounceMode` is true (at begin), schedule `clear` to execute\n\t * after `delay` ms.\n\t *\n\t * If `debounceMode` is false (at end), schedule `callback` to\n\t * execute after `delay` ms.\n\t */\n\t timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t }\n\t }", "_throttle (callback, limit) {\n let inThrottle = false;\n return function() {\n const args = arguments;\n const context = this;\n if (!inThrottle) {\n callback.apply(context, args);\n inThrottle = true;\n setTimeout(() => inThrottle = false, limit);\n }\n }\n }", "function wrapper() {\n for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {\n arguments_[_key] = arguments[_key];\n }\n\n var self = this;\n var elapsed = Date.now() - lastExec;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, arguments_);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }", "function wrapper() {\n\t var self = this;\n\t var elapsed = Date.now() - lastExec;\n\t var args = arguments;\n\t\n\t if (cancelled) {\n\t return;\n\t } // Execute `callback` and update the `lastExec` timestamp.\n\t\n\t\n\t function exec() {\n\t lastExec = Date.now();\n\t callback.apply(self, args);\n\t }\n\t /*\n\t * If `debounceMode` is true (at begin) this is used to clear the flag\n\t * to allow future `callback` executions.\n\t */\n\t\n\t\n\t function clear() {\n\t timeoutID = undefined;\n\t }\n\t\n\t if (debounceMode && !timeoutID) {\n\t /*\n\t * Since `wrapper` is being called for the first time and\n\t * `debounceMode` is true (at begin), execute `callback`.\n\t */\n\t exec();\n\t }\n\t\n\t clearExistingTimeout();\n\t\n\t if (debounceMode === undefined && elapsed > delay) {\n\t /*\n\t * In throttle mode, if `delay` time has been exceeded, execute\n\t * `callback`.\n\t */\n\t exec();\n\t } else if (noTrailing !== true) {\n\t /*\n\t * In trailing throttle mode, since `delay` time has not been\n\t * exceeded, schedule `callback` to execute `delay` ms after most\n\t * recent execution.\n\t *\n\t * If `debounceMode` is true (at begin), schedule `clear` to execute\n\t * after `delay` ms.\n\t *\n\t * If `debounceMode` is false (at end), schedule `callback` to\n\t * execute after `delay` ms.\n\t */\n\t timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t }\n\t }", "function wrapper() {\n const self = this;\n const elapsed = Date.now() - lastExec;\n const args = arguments;\n\n if ( cancelled ) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n function exec() {\n lastExec = Date.now();\n callback.apply( self, args );\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n function clear() {\n timeoutID = undefined;\n }\n\n if ( debounceMode && ! timeoutID ) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if ( debounceMode === undefined && elapsed > delay ) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if ( noTrailing !== true ) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout( debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay );\n }\n }", "function wrapper() {\n var self = this;\n var elapsed = Date.now() - lastExec;\n var args = arguments;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, args);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }", "function wrapper() {\n var self = this;\n var elapsed = Date.now() - lastExec;\n var args = arguments;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, args);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }", "function wrapper() {\n var self = this;\n var elapsed = Date.now() - lastExec;\n var args = arguments;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, args);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }", "function wrapper() {\n var self = this;\n var elapsed = Date.now() - lastExec;\n var args = arguments;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, args);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }", "function wrapper() {\n var self = this;\n var elapsed = Date.now() - lastExec;\n var args = arguments;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, args);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }", "function throttle(delay, callback) {\n let timeout;\n let lastExec = 0;\n return function (...args) {\n const self = this;\n const elapsed = performance.now() - lastExec;\n function exec() {\n timeout = undefined;\n lastExec = performance.now();\n callback.apply(self, args);\n }\n if (timeout)\n clearTimeout(timeout);\n if (elapsed > delay)\n exec();\n else\n timeout = setTimeout(exec, delay - elapsed);\n };\n }", "function throttle(delay, callback) {\n let timeout;\n let lastExec = 0;\n return function (...args) {\n const self = this;\n const elapsed = performance.now() - lastExec;\n function exec() {\n timeout = undefined;\n lastExec = performance.now();\n callback.apply(self, args);\n }\n if (timeout)\n clearTimeout(timeout);\n if (elapsed > delay)\n exec();\n else\n timeout = setTimeout(exec, delay - elapsed);\n };\n }", "_throttler(callback) {\n // setTimeout doesn't complete while user scrolls on touchscreen (or trackpad) on Chrome, so we track the time of the last\n // request and allow the request to refire if it was too long ago\n if (!this.properties.throttler.timeout ||\n Date.now() - this.properties.throttler.lastCall > this._throttlerTimeout) {\n\n clearTimeout(this.properties.throttler.timeout);\n this.properties.throttler.lastCall = Date.now();\n this.properties.throttler.callWaiting = false;\n\n callback();\n\n this.properties.throttler.timeout = setTimeout(() => {\n this.properties.throttler.timeout = null;\n if (this.properties.throttler.callWaiting) {\n callback();\n this.properties.throttler.lastCall = Date.now();\n this.properties.throttler.callWaiting = false;\n }\n }, this._throttlerTimeout);\n } else {\n this.properties.throttler.callWaiting = true;\n }\n }", "function throttle (callback, delay) {\n var previousCall = new Date().getTime();\n return function () {\n var time = new Date().getTime();\n\n if (time - previousCall >= delay) {\n previousCall = time;\n callback.apply(null, arguments);\n }\n };\n }", "function throttle(callback, delay) {\n var previousCall = new Date().getTime();\n return function() {\n var time = new Date().getTime();\n\n if ((time - previousCall) >= delay) {\n previousCall = time;\n callback.apply(null, arguments);\n }\n };\n }", "function throttle(callback, delay) {\n var previousCall = new Date().getTime();\n return function() {\n var time = new Date().getTime();\n\n if (time - previousCall >= delay) {\n previousCall = time;\n callback.apply(null, arguments);\n }\n };\n }", "function throttle(callback, delay) {\n var previousCall = new Date().getTime();\n return function() {\n var time = new Date().getTime();\n\n if ((time - previousCall) >= delay) {\n previousCall = time;\n callback.apply(null, arguments);\n }\n };\n }", "function throttle(callback, delay) {\n var previousCall = new Date().getTime();\n return function() {\n var time = new Date().getTime();\n\n if ((time - previousCall) >= delay) {\n previousCall = time;\n callback.apply(null, arguments);\n }\n };\n }", "function throttle(callback, delay) {\n var previousCall = new Date().getTime();\n return function() {\n var time = new Date().getTime();\n\n if ((time - previousCall) >= delay) {\n previousCall = time;\n callback.apply(null, arguments);\n }\n };\n }", "function throttle(callback, delay) {\n var previousCall = new Date().getTime();\n return function() {\n var time = new Date().getTime();\n\n if ((time - previousCall) >= delay) {\n previousCall = time;\n callback.apply(null, arguments);\n }\n };\n }", "function throttle(callback, delay) {\n var previousCall = new Date().getTime();\n return function() {\n var time = new Date().getTime();\n\n if ((time - previousCall) >= delay) {\n previousCall = time;\n callback.apply(null, arguments);\n }\n };\n }", "function throttle(callback, delay) {\n var previousCall = new Date().getTime();\n return function() {\n var time = new Date().getTime();\n\n if ((time - previousCall) >= delay) {\n previousCall = time;\n callback.apply(null, arguments);\n }\n };\n }", "function throttle(callback, delay) {\n var previousCall = new Date().getTime();\n return function() {\n var time = new Date().getTime();\n\n if ((time - previousCall) >= delay) {\n previousCall = time;\n callback.apply(null, arguments);\n }\n };\n }", "function throttle(callback, delay) {\n let previousCall = new Date().getTime();\n return function () {\n let time = new Date().getTime();\n\n if (time - previousCall >= delay) {\n previousCall = time;\n callback.apply(null, arguments);\n }\n };\n }", "function throttle(callback, delay) {\n\n var previousCall = new Date().getTime();\n return function() {\n var time = new Date().getTime();\n\n if ((time - previousCall) >= delay) {\n previousCall = time;\n callback.apply(null, arguments);\n }\n };\n }", "function callbackWrapper() {\n var diff = startTime + timeout - Date.now();\n\n if (diff > 0) {\n var newTimeout = self.cronTime.getTimeout();\n\n if (newTimeout > diff) {\n newTimeout = diff;\n }\n\n remaining += newTimeout;\n } // If there is sleep time remaining, calculate how long and go to sleep\n // again. This processing might make us miss the deadline by a few ms\n // times the number of sleep sessions. Given a MAXDELAY of almost a\n // month, this should be no issue.\n\n\n self.lastExecution = new Date();\n\n if (remaining) {\n if (remaining > MAXDELAY) {\n remaining -= MAXDELAY;\n timeout = MAXDELAY;\n } else {\n timeout = remaining;\n remaining = 0;\n }\n\n _setTimeout(timeout);\n } else {\n // We have arrived at the correct point in time.\n self.running = false; // start before calling back so the callbacks have the ability to stop the cron job\n\n if (!self.runOnce) self.start();\n self.fireOnTick();\n }\n }", "function throttle(callback, wait, context = this) {\n let timeout = null;\n let callbackArgs = null;\n\n const later = () => {\n callback.apply(context, callbackArgs);\n timeout = null;\n };\n\n return (...args) => {\n if (!timeout) {\n callbackArgs = args;\n timeout = setTimeout(later, wait);\n }\n };\n }", "function throttle(callback, delay) {\n var previousCall = new Date().getTime();\n return function () {\n var time = new Date().getTime();\n\n if (time - previousCall >= delay) {\n previousCall = time;\n callback.apply(null, arguments);\n }\n };\n}", "function throttle(callback, delay) {\n var previousCall = new Date().getTime();\n return function () {\n var time = new Date().getTime();\n\n if ((time - previousCall) >= delay) {\n previousCall = time;\n callback.apply(null, arguments);\n }\n };\n}", "function queue(wrapper, callback) {\n\tcallback();\n}", "function callbackWrapper() {\n\t\t\tconst diff = startTime + timeout - Date.now();\n\n\t\t\tif (diff > 0) {\n\t\t\t\tlet newTimeout = self.cronTime.getTimeout();\n\n\t\t\t\tif (newTimeout > diff) {\n\t\t\t\t\tnewTimeout = diff;\n\t\t\t\t}\n\n\t\t\t\tremaining += newTimeout;\n\t\t\t}\n\n\t\t\t// If there is sleep time remaining, calculate how long and go to sleep\n\t\t\t// again. This processing might make us miss the deadline by a few ms\n\t\t\t// times the number of sleep sessions. Given a MAXDELAY of almost a\n\t\t\t// month, this should be no issue.\n\t\t\tself.lastExecution = new Date();\n\t\t\tif (remaining) {\n\t\t\t\tif (remaining > MAXDELAY) {\n\t\t\t\t\tremaining -= MAXDELAY;\n\t\t\t\t\ttimeout = MAXDELAY;\n\t\t\t\t} else {\n\t\t\t\t\ttimeout = remaining;\n\t\t\t\t\tremaining = 0;\n\t\t\t\t}\n\n\t\t\t\t_setTimeout(timeout);\n\t\t\t} else {\n\t\t\t\t// We have arrived at the correct point in time.\n\n\t\t\t\tself.running = false;\n\n\t\t\t\t// start before calling back so the callbacks have the ability to stop the cron job\n\t\t\t\tif (!self.runOnce) {\n\t\t\t\t\tself.start();\n\t\t\t\t}\n\n\t\t\t\tself.fireOnTick();\n\t\t\t}\n\t\t}", "throttle (callback, wait) {\n var time,\n go = true;\n return function() {\n if(go) {\n go = false;\n time = setTimeout(function(){\n time = null;\n go = true;\n callback.call();\n }, wait);\n }\n }\n }", "function throttle(callback, delay) {\n let previousCall = new Date().getTime();\n return (...args) => {\n const time = new Date().getTime();\n if ((time - previousCall) >= delay) {\n previousCall = time;\n callback(...args);\n }\n };\n}", "function throttle(callback, delay) {\n var last;\n var timer;\n return function () {\n var context = this;\n var now = +new Date();\n var args = arguments;\n if (last && now < last + delay) {\n // le délai n'est pas écoulé on reset le timer\n clearTimeout(timer);\n timer = setTimeout(function () {\n last = now;\n callback.apply(context, args);\n }, delay);\n } else {\n last = now;\n callback.apply(context, args);\n }\n };\n }", "function Throttle(timeout, callback) {\n this.timeout = timeout;\n this.callback = callback;\n this.waiting = 0;\n this.saturated = 0;\n\n var self = this;\n this.comeback = function() {\n self.waiting = 0;\n if (self.saturated > 0) self.activate();\n self.saturated = 0;\n }\n this.activate = function() {\n if (self.waiting > 0) {\n self.saturated = 1;\n return;\n }\n self.waiting = setTimeout(self.comeback, self.timeout);\n self.callback();\n }\n }", "function _throttle(fn) {\n\t\tvar prev = Date.now();\n\t\treturn function (e) {\n\t\t\tif((Date.now() - prev) < THROTTLE_THRESHOLD) return;\n\t\t\tfn.call(this, e);\n\t\t\tprev = Date.now();\n\t\t};\n\t}", "function makeThrottledFunction(callback,interval){\n var queue = [];\n var isAsleep = true;\n\n function invokeFromQueue(){\n if(queue.length){\n isAsleep = false;\n callback.apply(null,queue.shift());\n setTimeout(invokeFromQueue,interval);\n } else {\n isAsleep = true;\n }\n }\n\n return function(){\n var args = Array.prototype.slice.call(arguments);\n queue.push(args);\n if(isAsleep){\n invokeFromQueue();\n }\n };\n}", "function callback() {\n\t\t\tvar t = that,\n\t\t\t p = params,\n\t\t\t run = false,\n\t\t\t resched = (counter !== 1); // equiv to > 1\n\t\t\tif (flags.debounce) {\n\t\t\t\t// Debounce executes at end of last interval, last interval is\n\t\t\t\t// when there were no additional calls during the interval.\n\t\t\t\t// (Except in atStart mode, since the call was already made)\n\t\t\t\trun = !resched && !flags.atStart;\n\t\t\t} else {\n\t\t\t\t// In at end mode, we run every time and reschedule if there were\n\t\t\t\t// additional calls.\n\t\t\t\t// In atStart mode, we run if there were additional calls during\n\t\t\t\t// the interval, unless noTrail is active then we just block calls for\n\t\t\t\t// one interval and terminate to allow the base function to make\n\t\t\t\t// the call the next time it's called.\n\t\t\t\trun = !flags.atStart || (resched && !flags.noTrail);\n\t\t\t\tresched = resched && !flags.noTrail;\n\t\t\t}\n\t\t\tif (resched) {\n\t\t\t\tcounter = 1;\n\t\t\t\twindow.setTimeout(callback, delay);\n\t\t\t} else {\n\t\t\t\tcounter = 0;\n\t\t\t\tthat = params = null;\n\t\t\t}\n\t\t\tif (run) {\n\t\t\t\tf.apply(t, p);\n\t\t\t}\n\t\t}", "function throttle(callback, wait) {\n var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var timeout = null;\n var initialCall = true;\n return function () {\n var _this = this,\n _arguments = arguments;\n\n var callNow = immediate && initialCall;\n\n var next = function next() {\n callback.apply(_this, _arguments);\n timeout = null;\n };\n\n if (callNow) {\n initialCall = false;\n next();\n }\n\n if (!timeout) {\n timeout = setTimeout(next, wait);\n }\n };\n}", "function makeThrottled(f, delay, flags) {\n\t\tvar params, that, counter = 0;\n\t\tflags = (flags && (flags + '').split(/\\s+/)) || [];\n\t\t// Valid combinations table\n\t\t// start | trail | debounce |\n\t\t// F | X | F = fires at the end of every interval\n\t\t// F | X | T = blocks until calls stop then fires once in last interval only\n\t\t// T | F | F = fires immediately then at every interval after additional calls\n\t\t// T | T | F = fires immediately then blocks additional calls for 1 interval\n\t\t// T | X | T = fires immediately only, then blocks until calls stop\n\t\tflags = {\n\t\t\tatStart: $.inArray('start', flags) !== -1,\n\t\t\tnoTrail: $.inArray('noTrail', flags) !== -1,\n\t\t\tdebounce: $.inArray('debounce', flags) !== -1\n\t\t};\n\t\t// Canonicalise noTrail to false in !atStart\n\t\tflags.noTrail = flags.noTrail && flags.atStart;\n\t\t// counter must remain >= 0. counter must never become < 1 whilst timeout\n\t\t// is active. Rescheduling happens if counter is >= 2 since that means an\n\t\t// additional call to the base function was made during the interval.\n\t\tfunction callback() {\n\t\t\tvar t = that,\n\t\t\t p = params,\n\t\t\t run = false,\n\t\t\t resched = (counter !== 1); // equiv to > 1\n\t\t\tif (flags.debounce) {\n\t\t\t\t// Debounce executes at end of last interval, last interval is\n\t\t\t\t// when there were no additional calls during the interval.\n\t\t\t\t// (Except in atStart mode, since the call was already made)\n\t\t\t\trun = !resched && !flags.atStart;\n\t\t\t} else {\n\t\t\t\t// In at end mode, we run every time and reschedule if there were\n\t\t\t\t// additional calls.\n\t\t\t\t// In atStart mode, we run if there were additional calls during\n\t\t\t\t// the interval, unless noTrail is active then we just block calls for\n\t\t\t\t// one interval and terminate to allow the base function to make\n\t\t\t\t// the call the next time it's called.\n\t\t\t\trun = !flags.atStart || (resched && !flags.noTrail);\n\t\t\t\tresched = resched && !flags.noTrail;\n\t\t\t}\n\t\t\tif (resched) {\n\t\t\t\tcounter = 1;\n\t\t\t\twindow.setTimeout(callback, delay);\n\t\t\t} else {\n\t\t\t\tcounter = 0;\n\t\t\t\tthat = params = null;\n\t\t\t}\n\t\t\tif (run) {\n\t\t\t\tf.apply(t, p);\n\t\t\t}\n\t\t}\n\n\t\treturn function() {\n\t\t\tthat = this;\n\t\t\tparams = arguments;\n\t\t\tif (++counter !== 1) return;\n\n\t\t\twindow.setTimeout(callback, delay);\n\t\t\tif (flags.atStart) {\n\t\t\t\tf.apply(this, arguments);\n\t\t\t}\n\t\t};\n\t}", "function throttle() {\n var fn = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : noop;\n var interval = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300;\n\n var last = 0;\n\n return function () {\n var context = this;\n var now = Date.now();\n\n if (now - last > interval) {\n last = now;\n fn.apply(context, arguments);\n }\n };\n }", "function throttle(func, ms) {\n\n let isThrottled = false,\n savedArgs,\n savedThis;\n\n function wrapper() {\n\n if (isThrottled) { // (2)\n savedArgs = arguments;\n savedThis = this;\n return;\n }\n\n func.apply(this, arguments); // (1)\n\n isThrottled = true;\n\n setTimeout(function() {\n isThrottled = false; // (3)\n if (savedArgs) {\n wrapper.apply(savedThis, savedArgs);\n savedArgs = savedThis = null;\n }\n }, ms);\n }\n\n return wrapper;\n}", "function throttle(fn, time, context) {\n var lock, args, wrapperFn, later;\n\n later = function () {\n // reset lock and call if queued\n lock = false;\n\n if (args) {\n wrapperFn.apply(context, args);\n args = false;\n }\n };\n\n wrapperFn = function () {\n if (lock) {\n // called too soon, queue to call later\n args = arguments;\n } else {\n // call and lock until later\n fn.apply(context, arguments);\n setTimeout(later, time);\n lock = true;\n }\n };\n\n return wrapperFn;\n } // @function wrapNum(num: Number, range: Number[], includeMax?: Boolean): Number", "function throttleReactEventCallback(callback, options) {\n\t if (options === void 0) { options = {}; }\n\t var throttledFunc = _throttleHelper(function (event2) {\n\t if (options.preventDefault) {\n\t event2.preventDefault();\n\t }\n\t }, function (event2) {\n\t // prevent React from reclaiming the event object before we\n\t // reference it\n\t event2.persist();\n\t }, function (event2) {\n\t var otherArgs2 = [];\n\t for (var _i = 1; _i < arguments.length; _i++) {\n\t otherArgs2[_i - 1] = arguments[_i];\n\t }\n\t callback.apply(void 0, [event2].concat(otherArgs2));\n\t });\n\t return throttledFunc;\n\t}", "function throttle(func, limit) {\n if (typeof func !== 'function') {\n throw new Error('function argument is expected');\n } else if (typeof limit !== 'number') {\n throw new Error('number argument is expected');\n }\n\n var listener = new ThrottleListener(limit);\n\n return function () {\n return listener.execute(func, this, arguments);\n };\n }", "function useThrottleFn(fn, ms = 200, trailing = true) {\n return createFilterWrapper(throttleFilter(ms, trailing), fn);\n}", "function f(){// Execute `callback` and update the `last_exec` timestamp.\nfunction c(){h=+new Date,d.apply(f,j)}var f=this,i=+new Date-h,j=arguments;e&&!g&&c(),g&&clearTimeout(g),void 0===e&&i>a?c():!0!==b&&(g=setTimeout(e?// If `debounce_mode` is true (at_begin) this is used to clear the flag\n// to allow future `callback` executions.\nfunction(){g=void 0}:c,void 0===e?a-i:a))}// After wrapper has stopped being called, this timeout ensures that", "wrap() {\n const originalFunc = this.originalFunc;\n const stats = this.stats;\n\n // reset stats\n this.stats.callCount = 0;\n this.stats.callTimeMinNs = 0;\n this.stats.callTimeMaxNs = 0;\n this.stats.callTimeAvgNs = 0;\n\n this.wrapper = function() {\n const start = process.hrtime();\n const ret = originalFunc.apply(null, arguments);\n const elapsed = process.hrtime(start);\n const callTimeNs = elapsed[0] * 1e9 /* s to ns */ + elapsed[1];\n\n // update stats\n stats.callCount++;\n // compute average with equal weight for each value\n stats.callTimeAvgNs = stats.callTimeAvgNs * ((stats.callCount-1) / stats.callCount)\n + callTimeNs * (1 / stats.callCount);\n\n if (stats.callTimeMinNs > callTimeNs\n || stats.callTimeMinNs === 0) {\n stats.callTimeMinNs = callTimeNs;\n }\n\n if (stats.callTimeMaxNs < callTimeNs) {\n stats.callTimeMaxNs = callTimeNs;\n }\n\n return ret;\n };\n\n return this.wrapper;\n }", "_configureThrottling() {\n if (this.options.maxTPS && this.options.maxTPS > 0) {\n const minTime = parseInt(1000 / this.options.maxTPS);\n if (minTime > 0) {\n this.rate_limiter = new Bottleneck({ minTime });\n this._processMatchedSqsMessage = this.rate_limiter.wrap(this._processMatchedSqsMessage);\n }\n }\n }", "function throttleReactEventCallback(callback, options) {\n if (options === void 0) { options = {}; }\n var throttledFunc = throttleHelper(function (event2) {\n if (options.preventDefault) {\n event2.preventDefault();\n }\n }, function (event2) {\n // prevent React from reclaiming the event object before we reference it\n event2.persist();\n }, function (event2) {\n var otherArgs2 = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n otherArgs2[_i - 1] = arguments[_i];\n }\n callback.apply(void 0, [event2].concat(otherArgs2));\n });\n return throttledFunc;\n}", "function throttle(f, interval) {\n\tvar timer\n\t\n\treturn function() {\n\t\tlet context = this\n\t\tlet args = arguments\n\t\t\n\t\tif (timer) return;\n\t\t\n\t\ttimer = setTimeout( ()=>{\n\t\t\tclearTimeout(timer)\n\t\t\ttimer = null\n\t\t\tf.apply(context, args)\n\t\t}, interval )\n\n\t}\n}", "function protectedCallback (callback) {\n return function () {\n try {\n return callback.apply(oboeApi, arguments)\n } catch (e) {\n setTimeout(function () {\n throw new Error(e.message)\n })\n }\n }\n }", "function debouncer( func , timeout ) {\nvar timeoutID , timeout = timeout || 200;\nreturn function () {\nvar scope = this , args = arguments;\nclearTimeout( timeoutID );\ntimeoutID = setTimeout( function () {\n func.apply( scope , Array.prototype.slice.call( args ) );\n} , timeout );\n}\n}", "function throttle(fn, timespan) {\n\tvar timeout = 0;\n\tvar nextTrig = 0;\n\tvar _this, _args;\n\n\tfunction timeoutCallback() {\n\t\ttimeout = 0;\n\t\tcall.apply(_this, _args);\n\t}\n\n\tfunction call() {\n\t\tvar now = +new Date();\n\t\tif (now >= nextTrig) {\n\t\t\tnextTrig = now + timespan;\n\t\t\tfn.apply(this, arguments);\n\t\t} else {\n\t\t\t_this = this;\n\t\t\t_args = arguments;\n\t\t\tif (!timeout) timeout = setTimeout(timeoutCallback, nextTrig - now);\n\t\t}\n\t}\n\n\treturn call;\n}", "function throttle(func, wait) {\n var waiting = false;\n return function () {\n var _arguments2 = arguments,\n _this2 = this;\n\n if (waiting) {\n return;\n }\n\n waiting = true;\n setTimeout(function () {\n func.apply(_this2, _arguments2);\n waiting = false;\n }, wait);\n };\n} // Usage", "function debounce(callback){\n var queued = false;\n return function () {\n if(!queued){\n queued = true;\n setTimeout(function () {\n queued = false;\n callback();\n }, 0);\n }\n };\n}", "function debounce(callback, delay){\n var timer;\n return function(){\n var args = arguments;\n var context = this;\n clearTimeout(timer);\n timer = setTimeout(function(){\n callback.apply(context, args);\n }, delay);\n }\n }", "function throttle(func, wait) {\n var timer\n var lastRan\n return function(...args) {\n if (!lastRan){\n func.apply(this, args)\n lastRan = new Date()\n }\n else {\n clearTimeout(timer)\n timer=setTimeout(() => {\n var current = new Date()\n if (current - lastRan > limit){\n func.apply(this, args)\n lastRan = current\n }\n }, wait - (new Date() - lastRan))\n }\n }\n}", "function throttle(f, delay){\n var timer = null;\n return function(){\n var context = this, args = arguments;\n clearTimeout(timer);\n timer = window.setTimeout(function(){\n f.apply(context, args);\n },\n delay || 500);\n };\n}", "function throttle(fn, threshhold, scope) {\n threshhold || (threshhold = 250);\n var last,\n deferTimer;\n return function () {\n var context = scope || this;\n\n var now = +new Date,\n args = arguments;\n if (last && now < last + threshhold) {\n // hold on to it\n clearTimeout(deferTimer);\n deferTimer = setTimeout(function () {\n last = now;\n fn.apply(context, args);\n }, threshhold);\n } else {\n last = now;\n fn.apply(context, args);\n }\n };\n }", "throttle(fn, delay) {\n let timer;\n return function () {\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n fn.apply(this, arguments);\n }, delay);\n }\n };\n }", "function debouncer( func , timeout ) {\n\tvar timeoutID , timeout = timeout || 200;\n\treturn function () {\n\t\tvar scope = this , args = arguments;\n\t\tclearTimeout( timeoutID );\n\t\ttimeoutID = setTimeout( function () {\n\t\t\tfunc.apply( scope , Array.prototype.slice.call( args ) );\n\t\t} , timeout );\n\t}\n}", "function protectedCallback( callback ) {\n return function() {\n try{\n return callback.apply(oboeApi, arguments);\n }catch(e) {\n setTimeout(function() {\n throw e;\n });\n }\n }\n }", "function protectedCallback( callback ) {\n return function() {\n try{\n return callback.apply(oboeApi, arguments);\n }catch(e) {\n setTimeout(function() {\n throw e;\n });\n }\n }\n }", "function protectedCallback( callback ) {\n return function() {\n try{\n return callback.apply(oboeApi, arguments);\n }catch(e) {\n setTimeout(function() {\n throw e;\n });\n }\n }\n }", "function protectedCallback( callback ) {\n return function() {\n try{\n return callback.apply(oboeApi, arguments);\n }catch(e) {\n setTimeout(function() {\n throw e;\n });\n }\n }\n }", "function protectedCallback( callback ) {\n return function() {\n try{\n return callback.apply(oboeApi, arguments);\n }catch(e) {\n setTimeout(function() {\n throw e;\n });\n }\n }\n }", "function protectedCallback( callback ) {\n return function() {\n try{\n return callback.apply(oboeApi, arguments);\n }catch(e) {\n setTimeout(function() {\n throw e;\n });\n }\n }\n }", "function protectedCallback( callback ) {\n return function() {\n try{\n return callback.apply(oboeApi, arguments);\n }catch(e) {\n setTimeout(function() {\n throw e;\n });\n }\n }\n }", "function protectedCallback( callback ) {\n return function() {\n try{\n return callback.apply(oboeApi, arguments);\n }catch(e) {\n setTimeout(function() {\n throw e;\n });\n }\n }\n }" ]
[ "0.76545846", "0.75691485", "0.75119", "0.7482876", "0.7476267", "0.7465964", "0.74465024", "0.7236648", "0.72273993", "0.72273993", "0.72273993", "0.7219503", "0.7204663", "0.7197319", "0.71716654", "0.7170736", "0.7125604", "0.7117773", "0.70514154", "0.7033687", "0.7033687", "0.7033687", "0.7033687", "0.7033687", "0.66821057", "0.66821057", "0.66635984", "0.6623781", "0.66059476", "0.65867203", "0.6576122", "0.6576122", "0.6576122", "0.6576122", "0.6576122", "0.6576122", "0.6576122", "0.6576084", "0.6575789", "0.65404266", "0.6531895", "0.64524084", "0.6448402", "0.64081144", "0.64017516", "0.6347587", "0.6313314", "0.6288441", "0.6283997", "0.6180535", "0.6140392", "0.6130609", "0.6119032", "0.5958971", "0.59561783", "0.5938151", "0.5926009", "0.5894247", "0.5871279", "0.58498794", "0.583619", "0.5802758", "0.5787912", "0.57824504", "0.5776633", "0.5750749", "0.5743227", "0.574185", "0.5714489", "0.56928986", "0.5682972", "0.56726843", "0.5666105", "0.5661172", "0.56486124", "0.56484544", "0.56234324", "0.56234324", "0.56234324", "0.56234324", "0.56234324", "0.56234324", "0.56234324", "0.56234324" ]
0.75165534
14
Execute `callback` and update the `lastExec` timestamp.
function exec () { lastExec = Number(new Date()); callback.apply(self, args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exec() {\n lastExec = Date.now();\n callback.apply(self, arguments_);\n }", "function exec() {\n lastExec = Date.now();\n callback.apply(self, arguments_);\n }", "function exec() {\n\t lastExec = Date.now();\n\t callback.apply(self, arguments_);\n\t }", "function exec() {\n lastExec = Date.now();\n callback.apply(self, arguments_);\n }", "function exec() {\n last_exec = +new Date();\n callback.apply( that, args );\n }", "function exec() {\n last_exec = +new Date();\n callback.apply( that, args );\n }", "function exec() {\n last_exec = +new Date();\n callback.apply( that, args );\n }", "function exec() {\n last_exec = +new Date();\n callback.apply( that, args );\n }", "function exec() {\n lastExec = Date.now();\n callback.apply(self, args);\n }", "function exec() {\n lastExec = Date.now();\n callback.apply(self, args);\n }", "function exec() {\n lastExec = Date.now();\n callback.apply(self, args);\n }", "function exec() {\n lastExec = Date.now();\n callback.apply(self, args);\n }", "function exec() {\n lastExec = Date.now();\n callback.apply(self, args);\n }", "function exec() {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}", "function exec() {\n\t lastExec = Date.now();\n\t callback.apply(self, args);\n\t }", "function exec () {\n\t\t\t\tlastExec = Number(new Date());\n\t\t\t\tcallback.apply(self, args);\n\t\t\t}", "function exec () {\n\t\t\t\tlastExec = Number(new Date());\n\t\t\t\tcallback.apply(self, args);\n\t\t\t}", "function exec() {\n lastExec = Date.now();\n callback.apply( self, args );\n }", "function exec() {\n lastExec = Number(new Date());\n callback.apply(self, args);\n } // If `debounceMode` is true (at begin) this is used to clear the flag", "function f(){// Execute `callback` and update the `last_exec` timestamp.\nfunction c(){h=+new Date,d.apply(f,j)}var f=this,i=+new Date-h,j=arguments;e&&!g&&c(),g&&clearTimeout(g),void 0===e&&i>a?c():!0!==b&&(g=setTimeout(e?// If `debounce_mode` is true (at_begin) this is used to clear the flag\n// to allow future `callback` executions.\nfunction(){g=void 0}:c,void 0===e?a-i:a))}// After wrapper has stopped being called, this timeout ensures that", "function callbackWrapper() {\n\t\t\tconst diff = startTime + timeout - Date.now();\n\n\t\t\tif (diff > 0) {\n\t\t\t\tlet newTimeout = self.cronTime.getTimeout();\n\n\t\t\t\tif (newTimeout > diff) {\n\t\t\t\t\tnewTimeout = diff;\n\t\t\t\t}\n\n\t\t\t\tremaining += newTimeout;\n\t\t\t}\n\n\t\t\t// If there is sleep time remaining, calculate how long and go to sleep\n\t\t\t// again. This processing might make us miss the deadline by a few ms\n\t\t\t// times the number of sleep sessions. Given a MAXDELAY of almost a\n\t\t\t// month, this should be no issue.\n\t\t\tself.lastExecution = new Date();\n\t\t\tif (remaining) {\n\t\t\t\tif (remaining > MAXDELAY) {\n\t\t\t\t\tremaining -= MAXDELAY;\n\t\t\t\t\ttimeout = MAXDELAY;\n\t\t\t\t} else {\n\t\t\t\t\ttimeout = remaining;\n\t\t\t\t\tremaining = 0;\n\t\t\t\t}\n\n\t\t\t\t_setTimeout(timeout);\n\t\t\t} else {\n\t\t\t\t// We have arrived at the correct point in time.\n\n\t\t\t\tself.running = false;\n\n\t\t\t\t// start before calling back so the callbacks have the ability to stop the cron job\n\t\t\t\tif (!self.runOnce) {\n\t\t\t\t\tself.start();\n\t\t\t\t}\n\n\t\t\t\tself.fireOnTick();\n\t\t\t}\n\t\t}", "function exec_callback( args ) {\n if ( callback_func && (callback_force || !con || !con.log) ) {\n callback_func.apply( window, args );\n }\n }", "function callback() {}", "function callback() {}", "function callback() {}", "function callback() {}", "function callback() {}", "function callbackWrapper() {\n var diff = startTime + timeout - Date.now();\n\n if (diff > 0) {\n var newTimeout = self.cronTime.getTimeout();\n\n if (newTimeout > diff) {\n newTimeout = diff;\n }\n\n remaining += newTimeout;\n } // If there is sleep time remaining, calculate how long and go to sleep\n // again. This processing might make us miss the deadline by a few ms\n // times the number of sleep sessions. Given a MAXDELAY of almost a\n // month, this should be no issue.\n\n\n self.lastExecution = new Date();\n\n if (remaining) {\n if (remaining > MAXDELAY) {\n remaining -= MAXDELAY;\n timeout = MAXDELAY;\n } else {\n timeout = remaining;\n remaining = 0;\n }\n\n _setTimeout(timeout);\n } else {\n // We have arrived at the correct point in time.\n self.running = false; // start before calling back so the callbacks have the ability to stop the cron job\n\n if (!self.runOnce) self.start();\n self.fireOnTick();\n }\n }", "function wrapper() {\n const self = this;\n const elapsed = Date.now() - lastExec;\n const args = arguments;\n\n if ( cancelled ) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n function exec() {\n lastExec = Date.now();\n callback.apply( self, args );\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n function clear() {\n timeoutID = undefined;\n }\n\n if ( debounceMode && ! timeoutID ) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if ( debounceMode === undefined && elapsed > delay ) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if ( noTrailing !== true ) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout( debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay );\n }\n }", "function exec_callback(id) { /// Execute callback\n if (!callbacks[id])\n return;\n callbacks[id].call();\n}", "function cb () {\n\t\tcallback();\n\t}", "function wrapper() {\n\t var self = this;\n\t var elapsed = Date.now() - lastExec;\n\t var args = arguments;\n\t\n\t if (cancelled) {\n\t return;\n\t } // Execute `callback` and update the `lastExec` timestamp.\n\t\n\t\n\t function exec() {\n\t lastExec = Date.now();\n\t callback.apply(self, args);\n\t }\n\t /*\n\t * If `debounceMode` is true (at begin) this is used to clear the flag\n\t * to allow future `callback` executions.\n\t */\n\t\n\t\n\t function clear() {\n\t timeoutID = undefined;\n\t }\n\t\n\t if (debounceMode && !timeoutID) {\n\t /*\n\t * Since `wrapper` is being called for the first time and\n\t * `debounceMode` is true (at begin), execute `callback`.\n\t */\n\t exec();\n\t }\n\t\n\t clearExistingTimeout();\n\t\n\t if (debounceMode === undefined && elapsed > delay) {\n\t /*\n\t * In throttle mode, if `delay` time has been exceeded, execute\n\t * `callback`.\n\t */\n\t exec();\n\t } else if (noTrailing !== true) {\n\t /*\n\t * In trailing throttle mode, since `delay` time has not been\n\t * exceeded, schedule `callback` to execute `delay` ms after most\n\t * recent execution.\n\t *\n\t * If `debounceMode` is true (at begin), schedule `clear` to execute\n\t * after `delay` ms.\n\t *\n\t * If `debounceMode` is false (at end), schedule `callback` to\n\t * execute after `delay` ms.\n\t */\n\t timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t }\n\t }", "function wrapper() {\n var self = this;\n var elapsed = Date.now() - lastExec;\n var args = arguments;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, args);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }", "function wrapper() {\n var self = this;\n var elapsed = Date.now() - lastExec;\n var args = arguments;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, args);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }", "function wrapper() {\n var self = this;\n var elapsed = Date.now() - lastExec;\n var args = arguments;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, args);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }", "function wrapper() {\n var self = this;\n var elapsed = Date.now() - lastExec;\n var args = arguments;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, args);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }", "function wrapper() {\n var self = this;\n var elapsed = Date.now() - lastExec;\n var args = arguments;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, args);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }", "function callback(){}", "function wrapper() {\n for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {\n arguments_[_key] = arguments[_key];\n }\n\n var self = this;\n var elapsed = Date.now() - lastExec;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, arguments_);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }", "function exec_callback(args) {\n if (callback_func && (callback_force || !con || !con.log)) {\n callback_func.apply(window, args);\n }\n }", "function wrapper() {\n for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {\n arguments_[_key] = arguments[_key];\n }\n\n var self = this;\n var elapsed = Date.now() - lastExec;\n\n if (cancelled) {\n return;\n } // Execute `callback` and update the `lastExec` timestamp.\n\n\n function exec() {\n lastExec = Date.now();\n callback.apply(self, arguments_);\n }\n /*\n * If `debounceMode` is true (at begin) this is used to clear the flag\n * to allow future `callback` executions.\n */\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n /*\n * Since `wrapper` is being called for the first time and\n * `debounceMode` is true (at begin), execute `callback`.\n */\n exec();\n }\n\n clearExistingTimeout();\n\n if (debounceMode === undefined && elapsed > delay) {\n /*\n * In throttle mode, if `delay` time has been exceeded, execute\n * `callback`.\n */\n exec();\n } else if (noTrailing !== true) {\n /*\n * In trailing throttle mode, since `delay` time has not been\n * exceeded, schedule `callback` to execute `delay` ms after most\n * recent execution.\n *\n * If `debounceMode` is true (at begin), schedule `clear` to execute\n * after `delay` ms.\n *\n * If `debounceMode` is false (at end), schedule `callback` to\n * execute after `delay` ms.\n */\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n }", "function exec(){lastExec=Number(new Date());callback.apply(self,args);}// If `debounceMode` is true (at begin) this is used to clear the flag", "function exec(){lastExec=Number(new Date());callback.apply(self,args);}// If `debounceMode` is true (at begin) this is used to clear the flag", "registerCallback (callback) {\n this._updates.push(callback);\n }", "registerCallback (callback) {\n this._updates.push(callback);\n }", "function wrapper() {\n var that = this,\n elapsed = +new Date() - last_exec,\n args = arguments;\n \n // Execute `callback` and update the `last_exec` timestamp.\n function exec() {\n last_exec = +new Date();\n callback.apply( that, args );\n };\n \n // If `debounce_mode` is true (at_begin) this is used to clear the flag\n // to allow future `callback` executions.\n function clear() {\n timeout_id = undefined;\n };\n \n if ( debounce_mode && !timeout_id ) {\n // Since `wrapper` is being called for the first time and\n // `debounce_mode` is true (at_begin), execute `callback`.\n exec();\n }\n \n // Clear any existing timeout.\n timeout_id && clearTimeout( timeout_id );\n \n if ( debounce_mode === undefined && elapsed > delay ) {\n // In throttle mode, if `delay` time has been exceeded, execute\n // `callback`.\n exec();\n \n } else if ( no_trailing !== true ) {\n // In trailing throttle mode, since `delay` time has not been\n // exceeded, schedule `callback` to execute `delay` ms after most\n // recent execution.\n // \n // If `debounce_mode` is true (at_begin), schedule `clear` to execute\n // after `delay` ms.\n // \n // If `debounce_mode` is false (at end), schedule `callback` to\n // execute after `delay` ms.\n timeout_id = setTimeout( debounce_mode ? clear : exec, debounce_mode === undefined ? delay - elapsed : delay );\n }\n }", "function wrapper() {\n var that = this,\n elapsed = +new Date() - last_exec,\n args = arguments;\n \n // Execute `callback` and update the `last_exec` timestamp.\n function exec() {\n last_exec = +new Date();\n callback.apply( that, args );\n };\n \n // If `debounce_mode` is true (at_begin) this is used to clear the flag\n // to allow future `callback` executions.\n function clear() {\n timeout_id = undefined;\n };\n \n if ( debounce_mode && !timeout_id ) {\n // Since `wrapper` is being called for the first time and\n // `debounce_mode` is true (at_begin), execute `callback`.\n exec();\n }\n \n // Clear any existing timeout.\n timeout_id && clearTimeout( timeout_id );\n \n if ( debounce_mode === undefined && elapsed > delay ) {\n // In throttle mode, if `delay` time has been exceeded, execute\n // `callback`.\n exec();\n \n } else if ( no_trailing !== true ) {\n // In trailing throttle mode, since `delay` time has not been\n // exceeded, schedule `callback` to execute `delay` ms after most\n // recent execution.\n // \n // If `debounce_mode` is true (at_begin), schedule `clear` to execute\n // after `delay` ms.\n // \n // If `debounce_mode` is false (at end), schedule `callback` to\n // execute after `delay` ms.\n timeout_id = setTimeout( debounce_mode ? clear : exec, debounce_mode === undefined ? delay - elapsed : delay );\n }\n }", "function wrapper() {\n var that = this,\n elapsed = +new Date() - last_exec,\n args = arguments;\n \n // Execute `callback` and update the `last_exec` timestamp.\n function exec() {\n last_exec = +new Date();\n callback.apply( that, args );\n };\n \n // If `debounce_mode` is true (at_begin) this is used to clear the flag\n // to allow future `callback` executions.\n function clear() {\n timeout_id = undefined;\n };\n \n if ( debounce_mode && !timeout_id ) {\n // Since `wrapper` is being called for the first time and\n // `debounce_mode` is true (at_begin), execute `callback`.\n exec();\n }\n \n // Clear any existing timeout.\n timeout_id && clearTimeout( timeout_id );\n \n if ( debounce_mode === undefined && elapsed > delay ) {\n // In throttle mode, if `delay` time has been exceeded, execute\n // `callback`.\n exec();\n \n } else if ( no_trailing !== true ) {\n // In trailing throttle mode, since `delay` time has not been\n // exceeded, schedule `callback` to execute `delay` ms after most\n // recent execution.\n // \n // If `debounce_mode` is true (at_begin), schedule `clear` to execute\n // after `delay` ms.\n // \n // If `debounce_mode` is false (at end), schedule `callback` to\n // execute after `delay` ms.\n timeout_id = setTimeout( debounce_mode ? clear : exec, debounce_mode === undefined ? delay - elapsed : delay );\n }\n }", "function wrapper () {\n\n\t\t\tvar self = this;\n\t\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\t\tvar args = arguments;\n\n\t\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\t\tfunction exec () {\n\t\t\t\tlastExec = Number(new Date());\n\t\t\t\tcallback.apply(self, args);\n\t\t\t}\n\n\t\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t\t// to allow future `callback` executions.\n\t\t\tfunction clear () {\n\t\t\t\ttimeoutID = undefined;\n\t\t\t}\n\n\t\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\t\texec();\n\t\t\t}\n\n\t\t\t// Clear any existing timeout.\n\t\t\tif ( timeoutID ) {\n\t\t\t\tclearTimeout(timeoutID);\n\t\t\t}\n\n\t\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t\t// `callback`.\n\t\t\t\texec();\n\n\t\t\t} else if ( noTrailing !== true ) {\n\t\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t\t// recent execution.\n\t\t\t\t//\n\t\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t\t// after `delay` ms.\n\t\t\t\t//\n\t\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t\t// execute after `delay` ms.\n\t\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t\t}\n\n\t\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t/*\n\t\t * If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t * to allow future `callback` executions.\n\t\t */\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t/*\n\t\t\t * Since `wrapper` is being called for the first time and\n\t\t\t * `debounceMode` is true (at begin), execute `callback`.\n\t\t\t */\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t/*\n\t\t\t * In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t * `callback`.\n\t\t\t */\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t/*\n\t\t\t * In trailing throttle mode, since `delay` time has not been\n\t\t\t * exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t * recent execution.\n\t\t\t *\n\t\t\t * If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t * after `delay` ms.\n\t\t\t *\n\t\t\t * If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t * execute after `delay` ms.\n\t\t\t */\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper() {\n\t for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {\n\t arguments_[_key] = arguments[_key];\n\t }\n\n\t var self = this;\n\t var elapsed = Date.now() - lastExec;\n\n\t if (cancelled) {\n\t return;\n\t } // Execute `callback` and update the `lastExec` timestamp.\n\n\n\t function exec() {\n\t lastExec = Date.now();\n\t callback.apply(self, arguments_);\n\t }\n\t /*\n\t * If `debounceMode` is true (at begin) this is used to clear the flag\n\t * to allow future `callback` executions.\n\t */\n\n\n\t function clear() {\n\t timeoutID = undefined;\n\t }\n\n\t if (debounceMode && !timeoutID) {\n\t /*\n\t * Since `wrapper` is being called for the first time and\n\t * `debounceMode` is true (at begin), execute `callback`.\n\t */\n\t exec();\n\t }\n\n\t clearExistingTimeout();\n\n\t if (debounceMode === undefined && elapsed > delay) {\n\t /*\n\t * In throttle mode, if `delay` time has been exceeded, execute\n\t * `callback`.\n\t */\n\t exec();\n\t } else if (noTrailing !== true) {\n\t /*\n\t * In trailing throttle mode, since `delay` time has not been\n\t * exceeded, schedule `callback` to execute `delay` ms after most\n\t * recent execution.\n\t *\n\t * If `debounceMode` is true (at begin), schedule `clear` to execute\n\t * after `delay` ms.\n\t *\n\t * If `debounceMode` is false (at end), schedule `callback` to\n\t * execute after `delay` ms.\n\t */\n\t timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t }\n\t }", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper() {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec() {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear() {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif (debounceMode && !timeoutID) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif (timeoutID) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif (debounceMode === undefined && elapsed > delay) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\t\t} else if (noTrailing !== true) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\t}", "function execcallback(error, stdout, stderr) {\n // if (stilltesting) {\n console.log('stdout: ' + stdout);\n console.log('stderr: ' + stderr);\n if (error !== null) {\n console.log('exec error: ' + error);\n }\n // }\n}", "runAfterInteractions(callback: Function) {\n invariant(\n typeof callback === 'function',\n 'Must specify a function to schedule.'\n );\n scheduleUpdate();\n _queue.push(callback);\n }", "function executingFirst(callback)\r\n{\r\n console.log(\"Executing current function...\");\r\n console.log(\"Calling callback function\")\r\n executingLast();//calling callback function\r\n /**callback function executes when it is invoked, no other script is running until the execution of callback function is completed\r\n * so it is synchronous\r\n */\r\n}", "function wrapper () {\n\t\n\t\t\tvar self = this;\n\t\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\t\tvar args = arguments;\n\t\n\t\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\t\tfunction exec () {\n\t\t\t\tlastExec = Number(new Date());\n\t\t\t\tcallback.apply(self, args);\n\t\t\t}\n\t\n\t\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t\t// to allow future `callback` executions.\n\t\t\tfunction clear () {\n\t\t\t\ttimeoutID = undefined;\n\t\t\t}\n\t\n\t\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\t\texec();\n\t\t\t}\n\t\n\t\t\t// Clear any existing timeout.\n\t\t\tif ( timeoutID ) {\n\t\t\t\tclearTimeout(timeoutID);\n\t\t\t}\n\t\n\t\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t\t// `callback`.\n\t\t\t\texec();\n\t\n\t\t\t} else if ( noTrailing !== true ) {\n\t\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t\t// recent execution.\n\t\t\t\t//\n\t\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t\t// after `delay` ms.\n\t\t\t\t//\n\t\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t\t// execute after `delay` ms.\n\t\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t\t}\n\t\n\t\t}", "function update_last_sync_time(func)\n{\n\tif(typeof static_local_db=='undefined')\n\t{\n\t\topen_local_db(function()\n\t\t{\n\t\t\tupdate_last_sync_time(func);\n\t\t});\n\t}\n\telse\n\t{\n\t\tvar objectStore=static_local_db.transaction(['user_preferences'],\"readwrite\").objectStore('user_preferences');\n\t\tvar time=get_my_time();\n\t\tvar row_data={id:'700',name:'last_sync_time',value:time,type:'other',display_name:'Last Sync Time',status:'active',last_updated:'1'};\n\n\t\tvar req=objectStore.put(row_data);\n\t\treq.onsuccess=function(e)\n\t\t{\n\t\t\tfunc();\n\t\t};\n\t\treq.onerror=function(e)\n\t\t{\n\t\t\tconsole.log(this.error);\n\t\t};\n\t}\n}", "function exec() {\n this._throttle[methodID] = {\n previous: (new Date()).getTime()\n };\n func.apply(this, arguments);\n }", "onUpdate(callback) {\n\t\tthis.onUpdateCallback = callback;\n\t}", "function iAmCallbackFunction(anyFunction) {\n console.log(\"We are executing code. Please wait couple of seconds.\");\n setTimeout(() => anyFunction(), 3000);\n}", "function callbackDriver() {\n cb();\n }", "function runAfterTxHook(cb) {\n self.emit('afterTx', results, cb);\n }", "function wrapper() {\n var self = this;\n var elapsed = Number(new Date()) - lastExec;\n var args = arguments; // Execute `callback` and update the `lastExec` timestamp.\n\n function exec() {\n lastExec = Number(new Date());\n callback.apply(self, args);\n } // If `debounceMode` is true (at begin) this is used to clear the flag\n // to allow future `callback` executions.\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n // Since `wrapper` is being called for the first time and\n // `debounceMode` is true (at begin), execute `callback`.\n exec();\n } // Clear any existing timeout.\n\n\n if (timeoutID) {\n clearTimeout(timeoutID);\n }\n\n if (debounceMode === undefined && elapsed > delay) {\n // In throttle mode, if `delay` time has been exceeded, execute\n // `callback`.\n exec();\n } else if (noTrailing !== true) {\n // In trailing throttle mode, since `delay` time has not been\n // exceeded, schedule `callback` to execute `delay` ms after most\n // recent execution.\n //\n // If `debounceMode` is true (at begin), schedule `clear` to execute\n // after `delay` ms.\n //\n // If `debounceMode` is false (at end), schedule `callback` to\n // execute after `delay` ms.\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n } // Return the wrapper function.", "function execCallback(error, stdout, stderr) { \n console.log(stdout);\n}", "function recomputeCallback() {\n var len = TO_CALL.length;\n CALL_TIMEOUT = null;\n while (len--) {\n (TO_CALL.shift() || NOOP).call();\n }\n\n TO_CALL.added = {};\n}", "function _callback(err, data) { _call(callback, err, data); }" ]
[ "0.7534715", "0.7534715", "0.74420613", "0.7414292", "0.72901076", "0.72901076", "0.72901076", "0.72901076", "0.72235554", "0.72235554", "0.72235554", "0.72235554", "0.72235554", "0.72182584", "0.7175835", "0.71624535", "0.71624535", "0.71268946", "0.63363063", "0.6257808", "0.59506655", "0.58979017", "0.5891062", "0.5891062", "0.5891062", "0.5891062", "0.5891062", "0.588714", "0.58516955", "0.58296007", "0.58069855", "0.5804655", "0.58005613", "0.58005613", "0.58005613", "0.58005613", "0.58005613", "0.57811314", "0.5773221", "0.5734023", "0.57265836", "0.57174534", "0.57174534", "0.5691841", "0.5691841", "0.56777537", "0.56777537", "0.56777537", "0.56367075", "0.56296605", "0.5603029", "0.558577", "0.558577", "0.558577", "0.558577", "0.558577", "0.558577", "0.558577", "0.558577", "0.558577", "0.558577", "0.558577", "0.558577", "0.558577", "0.558577", "0.558577", "0.558577", "0.558577", "0.55598867", "0.5545869", "0.55288213", "0.5513009", "0.54716194", "0.54637027", "0.5440297", "0.5439231", "0.5436933", "0.54182684", "0.5409283", "0.5333724", "0.5332216", "0.5314828", "0.5288774" ]
0.7207457
27
If `debounceMode` is true (at begin) this is used to clear the flag to allow future `callback` executions.
function clear () { timeoutID = undefined; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exec(){lastExec=Number(new Date());callback.apply(self,args);}// If `debounceMode` is true (at begin) this is used to clear the flag", "function exec(){lastExec=Number(new Date());callback.apply(self,args);}// If `debounceMode` is true (at begin) this is used to clear the flag", "function debounce(callback){\n var queued = false;\n return function () {\n if(!queued){\n queued = true;\n setTimeout(function () {\n queued = false;\n callback();\n }, 0);\n }\n };\n}", "debounce(fn, quietMillis, bindedThis) {\n let isWaiting = false;\n return function func() {\n if (isWaiting) return;\n\n if (bindedThis === undefined) {\n bindedThis = this;\n }\n\n fn.apply(bindedThis, arguments);\n isWaiting = true;\n\n setTimeout(function () {\n isWaiting = false;\n }, quietMillis);\n };\n }", "function wrapper(){var self=this;var elapsed=Number(new Date())-lastExec;var args=arguments;// Execute `callback` and update the `lastExec` timestamp.\nfunction exec(){lastExec=Number(new Date());callback.apply(self,args);}// If `debounceMode` is true (at begin) this is used to clear the flag\n// to allow future `callback` executions.\nfunction clear(){timeoutID=undefined;}if(debounceMode&&!timeoutID){// Since `wrapper` is being called for the first time and\n// `debounceMode` is true (at begin), execute `callback`.\nexec();}// Clear any existing timeout.\nif(timeoutID){clearTimeout(timeoutID);}if(debounceMode===undefined&&elapsed>delay){// In throttle mode, if `delay` time has been exceeded, execute\n// `callback`.\nexec();}else if(noTrailing!==true){// In trailing throttle mode, since `delay` time has not been\n// exceeded, schedule `callback` to execute `delay` ms after most\n// recent execution.\n//\n// If `debounceMode` is true (at begin), schedule `clear` to execute\n// after `delay` ms.\n//\n// If `debounceMode` is false (at end), schedule `callback` to\n// execute after `delay` ms.\ntimeoutID=setTimeout(debounceMode?clear:exec,debounceMode===undefined?delay-elapsed:delay);}}// Return the wrapper function.", "function debounce(f, t) {\n return f;\n}", "get debounce() { return this._debounce; }", "get debounce() { return this._debounce; }", "get debounce() { return this._debounce; }", "function debounce(fn) {\n\t if (!App.vars.debounceTimer) fn.call(this);\n\t if (App.vars.debounceTimer) global.clearTimeout(App.vars.debounceTimer);\n\t App.vars.debounceTimer = global.setTimeout(function() {\n\t App.vars.debounceTimer = null;\n\t fn.call(this);\n\t }, App.setup.debounce);\n\t}", "function wrapper(){var self=this;var elapsed=Number(new Date())-lastExec;var args=arguments;// Execute `callback` and update the `lastExec` timestamp.\n\tfunction exec(){lastExec=Number(new Date());callback.apply(self,args);}// If `debounceMode` is true (at begin) this is used to clear the flag\n\t// to allow future `callback` executions.\n\tfunction clear(){timeoutID=undefined;}if(debounceMode&&!timeoutID){// Since `wrapper` is being called for the first time and\n\t// `debounceMode` is true (at begin), execute `callback`.\n\texec();}// Clear any existing timeout.\n\tif(timeoutID){clearTimeout(timeoutID);}if(debounceMode===undefined&&elapsed>delay){// In throttle mode, if `delay` time has been exceeded, execute\n\t// `callback`.\n\texec();}else if(noTrailing!==true){// In trailing throttle mode, since `delay` time has not been\n\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t// recent execution.\n\t//\n\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t// after `delay` ms.\n\t//\n\t// If `debounceMode` is false (at end), schedule `callback` to\n\t// execute after `delay` ms.\n\ttimeoutID=setTimeout(debounceMode?clear:exec,debounceMode===undefined?delay-elapsed:delay);}}// Return the wrapper function.", "function exec() {\n lastExec = Number(new Date());\n callback.apply(self, args);\n } // If `debounceMode` is true (at begin) this is used to clear the flag", "function later() {\n // Nullify the variable that stores unique ID (number) after the\n // timeout passed.\n timeout = null;\n\n // If we set `func` not to run immediately after `debounce` being\n // called, run it anyway after the timeout passed.\n if (!immediate) {\n func.apply(context, args);\n }\n }", "function debounce(callback, delay){\n var timer;\n return function(){\n var args = arguments;\n var context = this;\n clearTimeout(timer);\n timer = setTimeout(function(){\n callback.apply(context, args);\n }, delay);\n }\n }", "function wrapper() {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec() {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear() {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif (debounceMode && !timeoutID) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif (timeoutID) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif (debounceMode === undefined && elapsed > delay) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\t\t} else if (noTrailing !== true) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\t}", "get debounce() {\n return this._debounce;\n }", "function debounce(fn, wait) {\n let timer = null;\n return function() {\n let context = this;\n clearTimeout(timer);\n timer = setTimeout(() => fn.apply(context, [...arguments]), wait);\n }\n}", "function debounce(fun, delay, immediate) {\n // triggers on either leading edge or trailing edge\n var timeout;\n return function() {\n var context = this,\n args = arguments;\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(function() {\n // when immediate is true, we just reset the timeout to null so that\n // the debounced function can run again when delay ms has passed\n timeout = null;\n if(!immediate) fun.apply(context, args);\n }, delay);\n if(callNow) fun.apply(context, args);\n };\n }", "function wrapper () {\n\t\n\t\t\tvar self = this;\n\t\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\t\tvar args = arguments;\n\t\n\t\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\t\tfunction exec () {\n\t\t\t\tlastExec = Number(new Date());\n\t\t\t\tcallback.apply(self, args);\n\t\t\t}\n\t\n\t\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t\t// to allow future `callback` executions.\n\t\t\tfunction clear () {\n\t\t\t\ttimeoutID = undefined;\n\t\t\t}\n\t\n\t\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\t\texec();\n\t\t\t}\n\t\n\t\t\t// Clear any existing timeout.\n\t\t\tif ( timeoutID ) {\n\t\t\t\tclearTimeout(timeoutID);\n\t\t\t}\n\t\n\t\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t\t// `callback`.\n\t\t\t\texec();\n\t\n\t\t\t} else if ( noTrailing !== true ) {\n\t\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t\t// recent execution.\n\t\t\t\t//\n\t\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t\t// after `delay` ms.\n\t\t\t\t//\n\t\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t\t// execute after `delay` ms.\n\t\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t\t}\n\t\n\t\t}", "function debounce() {\n var fn = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : noop;\n var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300;\n\n var timer = null;\n\n return function () {\n var context = this;\n var args = arguments;\n\n if (timer) {\n clearTimeout(timer);\n }\n\n timer = setTimeout(function () {\n fn.apply(context, args);\n }, delay);\n };\n }", "value() {\n return debounce(function debouncedInitializer(options, callback) {\n callback(new ActivitySource(options));\n }, 300);\n }", "function debounce ( func, wait, immediate ) {\n var timeout;\n return function () {\n var context = this,\n args = arguments;\n clearTimeout(timeout);\n timeout = setTimeout(function () {\n timeout = null;\n if ( !immediate ) {\n func.apply(context, args);\n }\n }, wait);\n if ( immediate && !timeout ) {\n func.apply(context, args);\n }\n };\n }", "function debounce(fn, ms){\n let startTime = 0;\n return function(){\n if (!startTime){ //run in the first call\n fn.apply(null, arguments);\n startTime = Date.now();\n }\n else if (Date.now() - startTime >= ms){ //check if ms amount time passed from the last call\n fn.apply(null, arguments);\n startTime = Date.now();\n }\n else {\n return;\n }\n } \n}", "function debounce(fn, delay) {\n var timer = null;\n return function () {\n var context = this, args = arguments;\n clearTimeout(timer);\n timer = setTimeout(function () {\n fn.apply(context, args);\n }, delay);\n };\n}", "function wrapper() {\n var self = this;\n var elapsed = Number(new Date()) - lastExec;\n var args = arguments; // Execute `callback` and update the `lastExec` timestamp.\n\n function exec() {\n lastExec = Number(new Date());\n callback.apply(self, args);\n } // If `debounceMode` is true (at begin) this is used to clear the flag\n // to allow future `callback` executions.\n\n\n function clear() {\n timeoutID = undefined;\n }\n\n if (debounceMode && !timeoutID) {\n // Since `wrapper` is being called for the first time and\n // `debounceMode` is true (at begin), execute `callback`.\n exec();\n } // Clear any existing timeout.\n\n\n if (timeoutID) {\n clearTimeout(timeoutID);\n }\n\n if (debounceMode === undefined && elapsed > delay) {\n // In throttle mode, if `delay` time has been exceeded, execute\n // `callback`.\n exec();\n } else if (noTrailing !== true) {\n // In trailing throttle mode, since `delay` time has not been\n // exceeded, schedule `callback` to execute `delay` ms after most\n // recent execution.\n //\n // If `debounceMode` is true (at begin), schedule `clear` to execute\n // after `delay` ms.\n //\n // If `debounceMode` is false (at end), schedule `callback` to\n // execute after `delay` ms.\n timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n }\n } // Return the wrapper function.", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t// to allow future `callback` executions.\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t// `callback`.\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t// recent execution.\n\t\t\t//\n\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t// after `delay` ms.\n\t\t\t//\n\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t// execute after `delay` ms.\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function debounce(func, wait) {\n var timeout;\n return function() {\n var context = this;\n var args = arguments;\n var later = function later() {\n timeout = null;\n func.apply(context, args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n };\n }", "function debounce (fn, delay) {\n var timer = null\n\n return function () {\n var context = this\n var args = arguments\n clearTimeout(timer)\n timer = setTimeout(function () {\n fn.apply(context, args)\n }, delay)\n }\n}", "function debounce(fn, delay) {\n var timer = null;\n\n return function () {\n var context = this,\n args = arguments;\n\n window.clearTimeout(timer);\n\n timer = window.setTimeout(function () {\n fn.apply(context, args);\n }, delay);\n };\n }", "function debounce(func,wait,immediate){if(immediate===void 0){immediate=false;}var timeout;var args;var context;var timestamp;var result;var later=function later(){var last=+new Date()-timestamp;if(last<wait){timeout=setTimeout(later,wait-last);}else{timeout=null;if(!immediate){result=func.apply(context,args);context=args=null;}}};return function(){context=this;args=arguments;timestamp=+new Date();var callNow=immediate&&!timeout;if(!timeout){timeout=setTimeout(later,wait);}if(callNow){result=func.apply(context,args);context=args=null;}return result;};}", "function wrapper () {\n\n\t\t\tvar self = this;\n\t\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\t\tvar args = arguments;\n\n\t\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\t\tfunction exec () {\n\t\t\t\tlastExec = Number(new Date());\n\t\t\t\tcallback.apply(self, args);\n\t\t\t}\n\n\t\t\t// If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t\t// to allow future `callback` executions.\n\t\t\tfunction clear () {\n\t\t\t\ttimeoutID = undefined;\n\t\t\t}\n\n\t\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t\t// Since `wrapper` is being called for the first time and\n\t\t\t\t// `debounceMode` is true (at begin), execute `callback`.\n\t\t\t\texec();\n\t\t\t}\n\n\t\t\t// Clear any existing timeout.\n\t\t\tif ( timeoutID ) {\n\t\t\t\tclearTimeout(timeoutID);\n\t\t\t}\n\n\t\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t\t// In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t\t// `callback`.\n\t\t\t\texec();\n\n\t\t\t} else if ( noTrailing !== true ) {\n\t\t\t\t// In trailing throttle mode, since `delay` time has not been\n\t\t\t\t// exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t\t// recent execution.\n\t\t\t\t//\n\t\t\t\t// If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t\t// after `delay` ms.\n\t\t\t\t//\n\t\t\t\t// If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t\t// execute after `delay` ms.\n\t\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t\t}\n\n\t\t}", "function debounce(fn, threshold) {\n var timeout;\n return function debounced() {\n if (timeout) {\n clearTimeout(timeout);\n }\n\n function delayed() {\n fn();\n timeout = null;\n }\n setTimeout(delayed, threshold || 100);\n }\n } // end used for packery: debounce", "function debounce(func, wait) {\n var timeout;\n return function debounce_run() {\n var context = this, args = arguments;\n var later = function() {\n timeout = null;\n func.apply(context, args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n };\n }", "function _debounce(func, wait, immediate) {\n var timeout;\n return function() {\n var context = this, args = arguments;\n var later = function() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n }", "function debounce(f, delay = 80) {\n let timer\n return function() {\n if (timer) {\n clearTimeout(timer)\n }\n timer = setTimeout(_ => f.apply(this, arguments), delay)\n }\n}", "function debounce(fn, duration) {\r\n\t\tlet timer;\r\n\t\treturn function() {\r\n\t\t\tclearTimeout(timer);\r\n\t\t\ttimer = setTimeout(fn, duration)\r\n\t\t}\r\n\t}", "function debounce(func, wait) {\n var timeout;\n return function() {\n var context = this;\n var args = arguments;\n var callback = function() {\n func.apply(context, args);\n };\n\n clearTimeout(timeout);\n timeout = setTimeout(callback, wait);\n };\n }", "function _debounce(func, wait, immediate) {\n var timeout;\n var result;\n\n return function() {\n var context = this;\n var args = arguments;\n var later = function() {\n timeout = null;\n if (!immediate) {\n result = func.apply(context, args);\n }\n };\n var callNow = immediate && !timeout;\n\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) {\n result = func.apply(context, args);\n }\n return result;\n };\n }", "function debounce( fn, threshold ) {\r\n var timeout;\r\n return function debounced() {\r\n if ( timeout ) {\r\n clearTimeout( timeout );\r\n }\r\n function delayed() {\r\n fn();\r\n timeout = null;\r\n }\r\n timeout = setTimeout( delayed, threshold || 100 );\r\n }\r\n}", "function debounce( fn, threshold ) {\n var timeout;\n return function debounced() {\n if ( timeout ) {\n clearTimeout( timeout );\n }\n function delayed() {\n fn();\n timeout = null;\n }\n setTimeout( delayed, threshold || 100 );\n };\n}", "function debounce(func, wait, immediate) {\n var timeout;\n return function() {\n var context = this, args = arguments;\n clearTimeout(timeout);\n //Moving this line above timeout assignment\n if (immediate && !timeout) {\n func.apply(context, args);\n }\n timeout = setTimeout(function() {\n timeout = null;\n if (!immediate) {\n func.apply(context, args);\n }\n }, wait);\n };\n}", "function debounce( fn, threshold ) {\n var timeout;\n return function debounced() {\n if ( timeout ) {\n clearTimeout( timeout );\n }\n function delayed() {\n fn();\n timeout = null;\n }\n setTimeout( delayed, threshold || 100 );\n };\n }", "function debounce(quietMillis, fn) {\n var timeout;\n return function() {\n window.clearTimeout(timeout);\n timeout = window.setTimeout(fn, quietMillis);\n };\n }", "function debounce( fn, threshold ) {\n var timeout;\n return function debounced() {\n if ( timeout ) {\n clearTimeout( timeout );\n }\n function delayed() {\n fn();\n timeout = null;\n }\n timeout = setTimeout( delayed, threshold || 100 );\n }\n}", "function debounce( fn, threshold ) {\n var timeout;\n return function debounced() {\n if ( timeout ) {\n clearTimeout( timeout );\n }\n function delayed() {\n fn();\n timeout = null;\n }\n timeout = setTimeout( delayed, threshold || 100 );\n }\n}", "function debounce(func, wait) {\n let timeout;\n \n return function executedFunction(...args) {\n // console.log(debouncing);\n const later = () => {\n clearTimeout(timeout);\n func(...args);\n };\n \n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n };\n }", "function debounce(func, wait, immediate) {\n var timeout;\n return function() {\n var context = this, args = arguments;\n clearTimeout(timeout);\n timeout = setTimeout(function() {\n\t timeout = null;\n\t if (!immediate) func.apply(context, args);\n }, wait);\n if (immediate && !timeout) func.apply(context, args);\n };\n} // debounce", "function wrapper () {\n\n\t\tvar self = this;\n\t\tvar elapsed = Number(new Date()) - lastExec;\n\t\tvar args = arguments;\n\n\t\t// Execute `callback` and update the `lastExec` timestamp.\n\t\tfunction exec () {\n\t\t\tlastExec = Number(new Date());\n\t\t\tcallback.apply(self, args);\n\t\t}\n\n\t\t/*\n\t\t * If `debounceMode` is true (at begin) this is used to clear the flag\n\t\t * to allow future `callback` executions.\n\t\t */\n\t\tfunction clear () {\n\t\t\ttimeoutID = undefined;\n\t\t}\n\n\t\tif ( debounceMode && !timeoutID ) {\n\t\t\t/*\n\t\t\t * Since `wrapper` is being called for the first time and\n\t\t\t * `debounceMode` is true (at begin), execute `callback`.\n\t\t\t */\n\t\t\texec();\n\t\t}\n\n\t\t// Clear any existing timeout.\n\t\tif ( timeoutID ) {\n\t\t\tclearTimeout(timeoutID);\n\t\t}\n\n\t\tif ( debounceMode === undefined && elapsed > delay ) {\n\t\t\t/*\n\t\t\t * In throttle mode, if `delay` time has been exceeded, execute\n\t\t\t * `callback`.\n\t\t\t */\n\t\t\texec();\n\n\t\t} else if ( noTrailing !== true ) {\n\t\t\t/*\n\t\t\t * In trailing throttle mode, since `delay` time has not been\n\t\t\t * exceeded, schedule `callback` to execute `delay` ms after most\n\t\t\t * recent execution.\n\t\t\t *\n\t\t\t * If `debounceMode` is true (at begin), schedule `clear` to execute\n\t\t\t * after `delay` ms.\n\t\t\t *\n\t\t\t * If `debounceMode` is false (at end), schedule `callback` to\n\t\t\t * execute after `delay` ms.\n\t\t\t */\n\t\t\ttimeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t\t}\n\n\t}", "function debounce(fn, wait, immediate) {\n var timeout;\n\n wait || (wait = 100);\n\n return function () {\n var context = this, args = arguments;\n\n var later = function() {\n timeout = null;\n\n if ( !immediate ) {\n fn.apply(context, args);\n }\n };\n\n var callNow = immediate && !timeout;\n\n clearTimeout(timeout);\n\n timeout = setTimeout(later, wait);\n\n if ( callNow ) {\n fn.apply(context, args);\n }\n };\n }", "function debounce( fn, threshold ) {\n var timeout;\n threshold = threshold || 100;\n return function debounced() {\n clearTimeout( timeout );\n var args = arguments;\n var _this = this;\n function delayed() {\n fn.apply( _this, args );\n }\n timeout = setTimeout( delayed, threshold );\n };\n }", "function debounce( fn, threshold ) {\n var timeout;\n threshold = threshold || 100;\n return function debounced() {\n clearTimeout( timeout );\n var args = arguments;\n var _this = this;\n function delayed() {\n fn.apply( _this, args );\n }\n timeout = setTimeout( delayed, threshold );\n };\n }", "function debounce(f, waitMs) {\n var lastTime = tfjs_core_1.util.now();\n var lastResult;\n var f2 = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var now = tfjs_core_1.util.now();\n if (now - lastTime < waitMs) {\n return lastResult;\n }\n lastTime = now;\n lastResult = f.apply(void 0, args);\n return lastResult;\n };\n return f2;\n}", "function debounce(f, waitMs) {\n var lastTime = tfjs_core_1.util.now();\n var lastResult;\n var f2 = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var now = tfjs_core_1.util.now();\n if (now - lastTime < waitMs) {\n return lastResult;\n }\n lastTime = now;\n lastResult = f.apply(void 0, args);\n return lastResult;\n };\n return f2;\n}", "function debounce(fn, threshold) {\r\n var timeout;\r\n return function debounced() {\r\n if (timeout) {\r\n clearTimeout(timeout);\r\n }\r\n function delayed() {\r\n fn();\r\n timeout = null;\r\n }\r\n timeout = setTimeout(delayed, threshold || 100);\r\n };\r\n}", "function debounce(targetCheck, func, wait, immediate) {\n targetDirtyFlag = targetCheck;\n var timeout;\n return function() {\n var context = this,\n args = arguments;\n var later = function() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n}", "function debounce(fn, delay) {\n\t\tvar timer = null;\n\n\t\treturn function () {\n\t\t\tvar context = this,\n\t\t\targs = arguments;\n\n\t\t\twindow.clearTimeout(timer);\n\n\t\t\ttimer = window.setTimeout(function () {\n\t\t\t\tfn.apply(context, args);\n\t\t\t}, delay);\n\t\t};\n\t}", "function debounce(func) {\n var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;\n var immediate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var timeout;\n return function () {\n var context = this,\n args = arguments;\n\n var later = function later() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n }", "function debounce(fn, threshold) {\n var timeout;\n return function debounced() {\n if (timeout) {\n clearTimeout(timeout);\n }\n function delayed() {\n fn();\n timeout = null;\n }\n timeout = setTimeout(delayed, threshold || 100);\n }\n}", "function debounce(func) {\n var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 166;\n var timeout;\n\n function debounced() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n // eslint-disable-next-line consistent-this\n var that = this;\n\n var later = function later() {\n func.apply(that, args);\n };\n\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n }\n\n debounced.clear = function () {\n clearTimeout(timeout);\n };\n\n return debounced;\n }", "function debounce(func, wait, immediate) {\r\n \tvar timeout;\r\n \treturn function() {\r\n \t\tvar context = this, args = arguments;\r\n \t\tvar later = function() {\r\n \t\t\ttimeout = null;\r\n \t\t\tif (!immediate) func.apply(context, args);\r\n \t\t};\r\n \t\tvar callNow = immediate && !timeout;\r\n \t\tclearTimeout(timeout);\r\n \t\ttimeout = setTimeout(later, wait);\r\n \t\tif (callNow) func.apply(context, args);\r\n \t};\r\n }", "function debounce(func, opt_threshold_ms) {\n let timeout;\n return function() {\n let context = this, args = arguments;\n let later = function() {\n timeout = null;\n func.apply(context, args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(later, opt_threshold_ms || DEBOUNCE_THRESH_MS);\n };\n}", "function debounce(func, wait, immediate) {\n var timeout;\n return function () {\n var context = this, args = arguments;\n clearTimeout(timeout);\n timeout = setTimeout(function () {\n timeout = null;\n if (!immediate) func.apply(context, args);\n }, wait);\n if (immediate && !timeout) func.apply(context, args);\n };\n }", "function debounce(func) {\n var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 166;\n var timeout;\n\n function debounced() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n } // eslint-disable-next-line consistent-this\n\n\n var that = this;\n\n var later = function later() {\n func.apply(that, args);\n };\n\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n }\n\n debounced.clear = function () {\n clearTimeout(timeout);\n };\n\n return debounced;\n}", "function debounce(func) {\n var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 166;\n var timeout;\n\n function debounced() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n } // eslint-disable-next-line consistent-this\n\n\n var that = this;\n\n var later = function later() {\n func.apply(that, args);\n };\n\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n }\n\n debounced.clear = function () {\n clearTimeout(timeout);\n };\n\n return debounced;\n}", "function debounce(fn, threshold) {\n var timeout;\n return function debounced() {\n if (timeout) {\n clearTimeout(timeout);\n }\n\n function delayed() {\n fn();\n timeout = null;\n }\n timeout = setTimeout(delayed, threshold || 100);\n };\n }", "function wrapper() {\n\t for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {\n\t arguments_[_key] = arguments[_key];\n\t }\n\n\t var self = this;\n\t var elapsed = Date.now() - lastExec;\n\n\t if (cancelled) {\n\t return;\n\t } // Execute `callback` and update the `lastExec` timestamp.\n\n\n\t function exec() {\n\t lastExec = Date.now();\n\t callback.apply(self, arguments_);\n\t }\n\t /*\n\t * If `debounceMode` is true (at begin) this is used to clear the flag\n\t * to allow future `callback` executions.\n\t */\n\n\n\t function clear() {\n\t timeoutID = undefined;\n\t }\n\n\t if (debounceMode && !timeoutID) {\n\t /*\n\t * Since `wrapper` is being called for the first time and\n\t * `debounceMode` is true (at begin), execute `callback`.\n\t */\n\t exec();\n\t }\n\n\t clearExistingTimeout();\n\n\t if (debounceMode === undefined && elapsed > delay) {\n\t /*\n\t * In throttle mode, if `delay` time has been exceeded, execute\n\t * `callback`.\n\t */\n\t exec();\n\t } else if (noTrailing !== true) {\n\t /*\n\t * In trailing throttle mode, since `delay` time has not been\n\t * exceeded, schedule `callback` to execute `delay` ms after most\n\t * recent execution.\n\t *\n\t * If `debounceMode` is true (at begin), schedule `clear` to execute\n\t * after `delay` ms.\n\t *\n\t * If `debounceMode` is false (at end), schedule `callback` to\n\t * execute after `delay` ms.\n\t */\n\t timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);\n\t }\n\t }", "function debounce(func, wait, immediate) {\n var timeout;\n return function() {\n var context = this, args = arguments;\n var later = function() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n }", "function debounce(func, wait, immediate) {\r\n\t var timeout;\r\n\t return function() {\r\n\t var context = this, args = arguments;\r\n\t var later = function() {\r\n\t timeout = null;\r\n\t if (!immediate) func.apply(context, args);\r\n\t };\r\n\t var callNow = immediate && !timeout;\r\n\t clearTimeout(timeout);\r\n\t timeout = setTimeout(later, wait);\r\n\t if (callNow) func.apply(context, args);\r\n\t }\r\n\t }", "function debounce(fn, threshold) {\n var timeout;\n return function debounced() {\n if (timeout) {\n clearTimeout(timeout);\n }\n\n function delayed() {\n fn();\n timeout = null;\n }\n timeout = setTimeout(delayed, threshold || 1000);\n }\n }", "function debounce(func, wait, immediate) {\n var timeout;\n return function() {\n var context = this,\n args = arguments;\n clearTimeout(timeout);\n timeout = setTimeout(function() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n }, wait);\n if (immediate && !timeout) func.apply(context, args);\n };\n}", "function debounce(func, wait, immediate) {\n var timeout;\n return function() {\n var context = this,\n args = arguments;\n clearTimeout(timeout);\n timeout = setTimeout(function() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n }, wait);\n if (immediate && !timeout) func.apply(context, args);\n };\n}", "function debounce(func, wait, immediate) {\n var timeout;\n return function() {\n var context = this,\n args = arguments;\n clearTimeout(timeout);\n timeout = setTimeout(function() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n }, wait);\n if (immediate && !timeout) func.apply(context, args);\n };\n}", "function debounce(func, wait, immediate) {\n var timeout;\n return function() {\n var context = this,\n args = arguments;\n clearTimeout(timeout);\n timeout = setTimeout(function() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n }, wait);\n if (immediate && !timeout) func.apply(context, args);\n };\n}", "function debounce(func, wait, immediate) {\n var timeout;\n return function() {\n var context = this,\n args = arguments;\n clearTimeout(timeout);\n timeout = setTimeout(function() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n }, wait);\n if (immediate && !timeout) func.apply(context, args);\n }\n}", "function debounce(event, method, delay) {\n clearTimeout(method._tId);\n method._tId= setTimeout(function(){\n method(event);\n }, delay);\n }", "function debounce(func, wait, immediate) {\n var timeout;\n return function() {\n var context = this, args = arguments;\n var later = function() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n }", "function debounce(func, wait, immediate) {\n var timeout;\n return function () {\n var context = this,\n args = arguments;\n clearTimeout(timeout);\n timeout = setTimeout(function () {\n timeout = null;\n if (!immediate) func.apply(context, args);\n }, wait);\n if (immediate && !timeout) func.apply(context, args);\n };\n}", "function debounce(func, wait, immediate) {\n var timeout;\n return function () {\n var context = this,\n args = arguments;\n clearTimeout(timeout);\n timeout = setTimeout(function () {\n timeout = null;\n if (!immediate) func.apply(context, args);\n }, wait);\n if (immediate && !timeout) func.apply(context, args);\n };\n}", "function debounce(func, wait, immediate) { // Debounce function (Bing it if you don't know)\n var timeout;\n return function () {\n var context = this, args = arguments;\n var later = function () {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n}", "function debounce(func, wait, immediate) {\n var timeout;\n return function _debounce() {\n var context = this; // eslint-disable-next-line prefer-rest-params\n\n var args = arguments;\n\n var later = function later() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n}", "function debounce(fn, threshold) {\n var timeout;\n return function debounced() {\n if (timeout) {\n clearTimeout(timeout);\n }\n\n function delayed() {\n fn();\n timeout = null;\n }\n timeout = setTimeout(delayed, threshold || 100);\n }\n }", "function debounce(func, wait, context) {\n var timer;\n return function debounced() {\n var context,\n args = Array.prototype.slice.call(arguments);\n $timeout.cancel(timer);\n timer = $timeout(function() {\n timer = undefined;\n func.apply(context, args);\n }, wait || 10);\n };\n }", "function debounce(quietMillis, fn, ctx) {\n\t ctx = ctx || undefined;\n\t var timeout;\n\t return function () {\n\t var args = arguments;\n\t window.clearTimeout(timeout);\n\t timeout = window.setTimeout(function() {\n\t fn.apply(ctx, args);\n\t }, quietMillis);\n\t };\n\t }", "function debounce(func, wait) {\n var timeout;\n var args;\n var context;\n var timestamp;\n var result;\n\n var later = function later() {\n var last = new Date().valueOf() - timestamp;\n\n if (last < wait) {\n timeout = setTimeout(later, wait - last);\n } else {\n timeout = null;\n result = func.apply(context, args);\n context = args = null;\n }\n };\n\n return function () {\n context = this;\n args = arguments;\n timestamp = new Date().valueOf();\n\n if (!timeout) {\n timeout = setTimeout(later, wait);\n }\n\n return result;\n };\n } // Number and Boolean are only types that defaults or not computed for", "function debounce(func, wait, immediate) {\n var timeout;\n return function () {\n var context = this, args = arguments;\n clearTimeout(timeout);\n timeout = setTimeout(function () {\n timeout = null;\n if (!immediate) func.apply(context, args);\n }, wait);\n if (immediate && !timeout) func.apply(context, args);\n };\n}" ]
[ "0.75899327", "0.75899327", "0.7187051", "0.6593778", "0.6560421", "0.6506219", "0.64902383", "0.64902383", "0.64902383", "0.64900494", "0.63927615", "0.63781947", "0.62871194", "0.6223693", "0.6153537", "0.6110939", "0.59642303", "0.5955426", "0.59527093", "0.59446585", "0.59370416", "0.59074354", "0.58973515", "0.5876974", "0.58766776", "0.5876344", "0.5876344", "0.5876344", "0.5876344", "0.5876344", "0.5876344", "0.5876344", "0.5876344", "0.5876344", "0.5876344", "0.5876344", "0.5876344", "0.5876344", "0.5876344", "0.5876344", "0.5876344", "0.5876344", "0.58626086", "0.5853788", "0.5850151", "0.5838039", "0.5837497", "0.58228374", "0.5818916", "0.58168554", "0.5786893", "0.5786376", "0.578609", "0.5779503", "0.5769889", "0.57666385", "0.57526004", "0.5749437", "0.57378983", "0.5716982", "0.5716982", "0.5710629", "0.5703048", "0.56908816", "0.5682617", "0.56805766", "0.56805766", "0.5668325", "0.5668325", "0.56638825", "0.5649908", "0.56427884", "0.5639955", "0.5635888", "0.5634259", "0.56266886", "0.56016195", "0.5601417", "0.55960053", "0.55960053", "0.5588859", "0.5587996", "0.5584272", "0.5579321", "0.5577817", "0.5575654", "0.5575654", "0.5575654", "0.55732334", "0.55692786", "0.5567946", "0.5565897", "0.5563864", "0.5563864", "0.5563771", "0.55605286", "0.5558007", "0.5557157", "0.55553794", "0.5553233", "0.5553031" ]
0.0
-1
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (render) { options.render = render options.staticRenderFns = staticRenderFns options._compiled = true } // functional template if (functionalTemplate) { options.functional = true } // scopedId if (scopeId) { options._scopeId = 'data-v-' + scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = shadowMode ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } : injectStyles } if (hook) { if (options.functional) { // for template-only hot-reload because in that case the render fn doesn't // go through the normalizer options._injectStyles = hook // register for functioal component in vue file var originalRender = options.render options.render = function renderWithStyleInjection (h, context) { hook.call(context) return originalRender(h, context) } } else { // inject component registration as beforeCreate hook var existing = options.beforeCreate options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } } return { exports: scriptExports, options: options } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (ctx.isDev && ctx.isClient) {\n config.devtool = \"source-map\";\n // if (isDev && process.isClient) {\n config.plugins.push(\n new StylelintPlugin({\n files: [\"**/*.vue\", \"**/*.scss\"],\n })\n ),\n config.module.rules.push({\n enforce: \"pre\",\n test: /\\.(js|vue)$/,\n loader: \"eslint-loader\",\n exclude: /(node_modules)/,\n options: {\n formatter: require(\"eslint-friendly-formatter\"),\n },\n });\n if (ctx.isDev) {\n config.mode = \"development\";\n }\n }\n for (const rule of config.module.rules) {\n if (rule.use) {\n for (const use of rule.use) {\n if (use.loader === \"sass-loader\") {\n use.options = use.options || {};\n use.options.includePaths = [\n \"node_modules/foundation-sites/scss\",\n \"node_modules/motion-ui/src\",\n ];\n }\n }\n }\n }\n // vue-svg-inline-loader\n const vueRule = config.module.rules.find((rule) =>\n rule.test.test(\".vue\")\n );\n vueRule.use = [\n {\n loader: vueRule.loader,\n options: vueRule.options,\n },\n {\n loader: \"vue-svg-inline-loader\",\n },\n ];\n delete vueRule.loader;\n delete vueRule.options;\n }", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}" ]
[ "0.5848589", "0.5729015", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493" ]
0.0
-1
.dirname, .basename, and .extname methods are extracted from Node.js v8.11.1, backported and transplited with Babel, with backwardscompat fixes Copyright Joyent, Inc. and other Node contributors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. resolves . and .. elements in a path array with directory names there must be no slashes, empty elements, or device names (c:\) in the array (so also no leading and trailing slashes it does not distinguish relative and absolute paths)
function normalizeArray(parts, allowAboveRoot) { // if the path tries to go above the root, `up` ends up > 0 var up = 0; for (var i = parts.length - 1; i >= 0; i--) { var last = parts[i]; if (last === '.') { parts.splice(i, 1); } else if (last === '..') { parts.splice(i, 1); up++; } else if (up) { parts.splice(i, 1); up--; } } // if the path is allowed to go above the root, restore leading ..s if (allowAboveRoot) { for (; up--; up) { parts.unshift('..'); } } return parts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function normalizeArray(parts,allowAboveRoot){// if the path tries to go above the root, `up` ends up > 0\nvar up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==='.'){parts.splice(i,1);}else if(last==='..'){parts.splice(i,1);up++;}else if(up){parts.splice(i,1);up--;}}// if the path is allowed to go above the root, restore leading ..s\nif(allowAboveRoot){for(;up--;up){parts.unshift('..');}}return parts;}// Split a filename into [root, dir, basename, ext], unix version", "function normalizeArray(parts,allowAboveRoot){ // if the path tries to go above the root, `up` ends up > 0\nvar up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==='.'){parts.splice(i,1);}else if(last==='..'){parts.splice(i,1);up++;}else if(up){parts.splice(i,1);up--;}} // if the path is allowed to go above the root, restore leading ..s\nif(allowAboveRoot){for(;up--;up){parts.unshift('..');}}return parts;} // Split a filename into [root, dir, basename, ext], unix version", "function win32SplitPath(filename){// Separate device+slash from tail\nvar result=splitDeviceRe.exec(filename),device=(result[1]||\"\")+(result[2]||\"\"),tail=result[3]||\"\";// Split the tail into dir, basename and extension\nvar result2=splitTailRe.exec(tail),dir=result2[1],basename=result2[2],ext=result2[3];return[device,dir,basename,ext]}", "function dirname(path) {\r\n return path.replace(/\\\\/g,'/').replace(/\\/[^\\/]*$/, '');;\r\n}", "function sc_dirname(p) {\n var i = p.lastIndexOf('/');\n\n if(i >= 0)\n return p.substring(0, i);\n else\n return '';\n}", "function parsePath(p) {\n var extname = path.extname(p);\n return {\n dirname: path.dirname(p),\n basename: path.basename(p, extname),\n extname: extname\n };\n}", "function dirname(path) {\n return path.replace(/\\\\/g, '/').replace(/\\/[^\\/]*$/, '');;\n}", "function dirname(path) {\n return path.replace(/\\\\/g, '/').replace(/\\/[^\\/]*$/, '');;\n}", "function dirname(path) {\n var s = ('./' + path).replace(/(.*)?\\/.*/, '$1').substring(2);\n return (s ? s : '.') + '/';\n }", "function resolvePathDots(input) {\r\n\t\tvar output = [];\r\n\t\tinput.replace(/^(\\.\\.?(\\/|$))+/, '')\r\n\t\t .replace(/\\/(\\.(\\/|$))+/g, '/')\r\n\t\t .replace(/\\/\\.\\.$/, '/../')\r\n\t\t .replace(/\\/?[^\\/]*/g, function (part) { part === '/..' ? output.pop() : output.push(part); });\r\n\t\treturn output.join('').replace(/^\\//, input.charAt(0) === '/' ? '/' : '');\r\n\t}", "get dirname() {\n return typeof this.path === 'string' ? path__default[\"default\"].dirname(this.path) : undefined\n }", "function splitPath(p) {\n if (typeof p === 'string') {\n return splitPath({'path' : p});\n }\n\n var a = p.path.split(\"/\");\n p.name = a.pop();\n // console.log(a);\n p.cpath = a.join(\"/\");\n // a.shift();\n // console.log(a);\n p.topname = a.shift(); // get the name of the top dir\n // console.log(a);\n a.unshift(\"\");\n // console.log(a);\n p.cpath1 = a.join(\"/\"); // remove the topdir\n\n var e = p.name.split(\".\");\n if (e.length < 2) {\n p.ext = \"\";\n p.bname = p.name;\n } else {\n p.ext = e.pop();\n p.bname = e.join(\".\");\n }\n return p;\n}", "function dirname(p) {\n // Normalize slashes and trim unnecessary trailing slash\n p = safeTrimTrailingSeparator(p);\n // Windows UNC root, e.g. \\\\hello or \\\\hello\\world\n if (IS_WINDOWS && /^\\\\\\\\[^\\\\]+(\\\\[^\\\\]+)?$/.test(p)) {\n return p;\n }\n // Get dirname\n let result = path.dirname(p);\n // Trim trailing slash for Windows UNC root, e.g. \\\\hello\\world\\\n if (IS_WINDOWS && /^\\\\\\\\[^\\\\]+\\\\[^\\\\]+\\\\$/.test(result)) {\n result = safeTrimTrailingSeparator(result);\n }\n return result;\n}", "function dirname(p) {\n // Normalize slashes and trim unnecessary trailing slash\n p = safeTrimTrailingSeparator(p);\n // Windows UNC root, e.g. \\\\hello or \\\\hello\\world\n if (IS_WINDOWS && /^\\\\\\\\[^\\\\]+(\\\\[^\\\\]+)?$/.test(p)) {\n return p;\n }\n // Get dirname\n let result = path.dirname(p);\n // Trim trailing slash for Windows UNC root, e.g. \\\\hello\\world\\\n if (IS_WINDOWS && /^\\\\\\\\[^\\\\]+\\\\[^\\\\]+\\\\$/.test(result)) {\n result = safeTrimTrailingSeparator(result);\n }\n return result;\n}", "function dirname(p) {\n // Normalize slashes and trim unnecessary trailing slash\n p = safeTrimTrailingSeparator(p);\n // Windows UNC root, e.g. \\\\hello or \\\\hello\\world\n if (IS_WINDOWS && /^\\\\\\\\[^\\\\]+(\\\\[^\\\\]+)?$/.test(p)) {\n return p;\n }\n // Get dirname\n let result = path.dirname(p);\n // Trim trailing slash for Windows UNC root, e.g. \\\\hello\\world\\\n if (IS_WINDOWS && /^\\\\\\\\[^\\\\]+\\\\[^\\\\]+\\\\$/.test(result)) {\n result = safeTrimTrailingSeparator(result);\n }\n return result;\n}", "function dirname(p) {\n // Normalize slashes and trim unnecessary trailing slash\n p = safeTrimTrailingSeparator(p);\n // Windows UNC root, e.g. \\\\hello or \\\\hello\\world\n if (IS_WINDOWS && /^\\\\\\\\[^\\\\]+(\\\\[^\\\\]+)?$/.test(p)) {\n return p;\n }\n // Get dirname\n let result = path.dirname(p);\n // Trim trailing slash for Windows UNC root, e.g. \\\\hello\\world\\\n if (IS_WINDOWS && /^\\\\\\\\[^\\\\]+\\\\[^\\\\]+\\\\$/.test(result)) {\n result = safeTrimTrailingSeparator(result);\n }\n return result;\n}", "function dirname(p) {\n // Normalize slashes and trim unnecessary trailing slash\n p = safeTrimTrailingSeparator(p);\n // Windows UNC root, e.g. \\\\hello or \\\\hello\\world\n if (IS_WINDOWS && /^\\\\\\\\[^\\\\]+(\\\\[^\\\\]+)?$/.test(p)) {\n return p;\n }\n // Get dirname\n let result = path.dirname(p);\n // Trim trailing slash for Windows UNC root, e.g. \\\\hello\\world\\\n if (IS_WINDOWS && /^\\\\\\\\[^\\\\]+\\\\[^\\\\]+\\\\$/.test(result)) {\n result = safeTrimTrailingSeparator(result);\n }\n return result;\n}", "function dirname(p) {\n // Normalize slashes and trim unnecessary trailing slash\n p = safeTrimTrailingSeparator(p);\n // Windows UNC root, e.g. \\\\hello or \\\\hello\\world\n if (IS_WINDOWS && /^\\\\\\\\[^\\\\]+(\\\\[^\\\\]+)?$/.test(p)) {\n return p;\n }\n // Get dirname\n let result = path.dirname(p);\n // Trim trailing slash for Windows UNC root, e.g. \\\\hello\\world\\\n if (IS_WINDOWS && /^\\\\\\\\[^\\\\]+\\\\[^\\\\]+\\\\$/.test(result)) {\n result = safeTrimTrailingSeparator(result);\n }\n return result;\n}", "function dirname( path ){\n\treturn path.match( DIRNAME_RE )[ 0 ]\n}", "get extname() {\n return typeof this.path === 'string' ? path__default[\"default\"].extname(this.path) : undefined\n }", "function formatPathname(urlobj)\n{\n\tvar pathname = joinDirs(urlobj.extra.directory, urlobj.extra.directoryLeadingSlash);\n\t\n\tif (urlobj.extra.filename !== null)\n\t{\n\t\tpathname += urlobj.extra.filename;\n\t}\n\t\n\treturn pathname;\n}", "get extname() {\n return typeof this.path === 'string' ? path$1.extname(this.path) : undefined\n }", "function pathJoin( dirname, filename ) { return dirname + '/' + filename }", "get dirname() {\n return typeof this.path === 'string' ? path$1.dirname(this.path) : undefined\n }", "function win32SplitPath(filename) {\r\n\t // Separate device+slash from tail\r\n\t var result = splitDeviceRe.exec(filename),\r\n\t device = (result[1] || '') + (result[2] || ''),\r\n\t tail = result[3] || '';\r\n\t // Split the tail into dir, basename and extension\r\n\t var result2 = splitTailRe.exec(tail),\r\n\t dir = result2[1],\r\n\t basename = result2[2],\r\n\t ext = result2[3];\r\n\t return [device, dir, basename, ext];\r\n\t}", "function win32SplitPath(filename) {\r\n\t // Separate device+slash from tail\r\n\t var result = splitDeviceRe.exec(filename),\r\n\t device = (result[1] || '') + (result[2] || ''),\r\n\t tail = result[3] || '';\r\n\t // Split the tail into dir, basename and extension\r\n\t var result2 = splitTailRe.exec(tail),\r\n\t dir = result2[1],\r\n\t basename = result2[2],\r\n\t ext = result2[3];\r\n\t return [device, dir, basename, ext];\r\n\t}", "function dirname(path) {\r\n return path.split(\"/\").slice(0, -1).join(\"/\") + \"/\";\r\n }", "function win32SplitPath( filename ) {\n\t\t// Separate device+slash from tail\n\t\tvar result = splitDeviceRe.exec( filename ),\n\t\t\tdevice = ( result[ 1 ] || '' ) + ( result[ 2 ] || '' ),\n\t\t\ttail = result[ 3 ] || ''; // Split the tail into dir, basename and extension\n\n\t\tvar result2 = splitTailRe.exec( tail ),\n\t\t\tdir = result2[ 1 ],\n\t\t\tbasename = result2[ 2 ],\n\t\t\text = result2[ 3 ];\n\t\treturn [ device, dir, basename, ext ];\n\t}", "function toFilePath(pathArray){\n\tif (typeof(pathArray) === 'string') return pathArray;\n\tvar expanded = '';\n\tfor(var i=0; i < pathArray.length; i++){\n\t\texpanded = OS.Path.join(pathArray, dirName[i]);\n\t}\n\treturn expanded;\n}", "function win32SplitPath(filename) {\n\t // Separate device+slash from tail\n\t var result = splitDeviceRe.exec(filename),\n\t device = (result[1] || '') + (result[2] || ''),\n\t tail = result[3] || '';\n\t // Split the tail into dir, basename and extension\n\t var result2 = splitTailRe.exec(tail),\n\t dir = result2[1],\n\t basename = result2[2],\n\t ext = result2[3];\n\t return [device, dir, basename, ext];\n\t}", "get extname() {\n return typeof this.path === 'string' ? path.extname(this.path) : undefined\n }", "function normalizeFilePath (x) {\n if (!x || typeof x !== 'string') {\n throw new TypeError(`Invalid file path ${x}`)\n }\n return x.charAt(0) === '/' ? x : path.join(__dirname, '../..', x)\n}", "function win32SplitPath(filename) {\n // Separate device+slash from tail\n var result = splitDeviceRe.exec(filename),\n device = (result[1] || '') + (result[2] || ''),\n tail = result[3] || '';\n // Split the tail into dir, basename and extension\n var result2 = splitTailRe.exec(tail),\n dir = result2[1],\n basename = result2[2],\n ext = result2[3];\n return [device, dir, basename, ext];\n }", "function win32SplitPath(filename) {\n // Separate device+slash from tail\n var result = splitDeviceRe.exec(filename),\n device = (result[1] || '') + (result[2] || ''),\n tail = result[3] || ''; // Split the tail into dir, basename and extension\n\n var result2 = splitTailRe.exec(tail),\n dir = result2[1],\n basename = result2[2],\n ext = result2[3];\n return [device, dir, basename, ext];\n }", "dirname(entry = this.cwd) {\n if (typeof entry === 'string') {\n entry = this.cwd.resolve(entry);\n }\n return (entry.parent || entry).fullpath();\n }", "set dirname(dirname) {\n assertPath(this.basename, 'dirname');\n this.path = path__default[\"default\"].join(dirname || '', this.basename);\n }", "static getFilename(path) {\n let index = Math.max(path.lastIndexOf(\"/\"), path.lastIndexOf(\"\\\\\"));\n return path.substring((index >= 0 && index < path.length - 1 ? index + 1 : 0), path.length);\n }", "function urldir(pathname) {\n var path = pathname.slice(1);\n if (path.slice(-1) === '/') {\n path = path.slice(0, -1);\n }\n if (path.indexOf('/') > 0) {\n var parts = path.split('/');\n } else {\n return path;\n }\n var filedir = parts[(parts.length - 1)];\n if (filedir.indexOf('.') > 0) {\n return parts[(parts.length - 2)];\n } else {\n return filedir;\n }\n}", "function win32SplitPath(filename) {\r\n // Separate device+slash from tail\r\n var result = splitDeviceRe.exec(filename),\r\n device = (result[1] || '') + (result[2] || ''),\r\n tail = result[3] || '';\r\n // Split the tail into dir, basename and extension\r\n var result2 = splitTailRe.exec(tail),\r\n dir = result2[1],\r\n basename = result2[2],\r\n ext = result2[3];\r\n return [device, dir, basename, ext];\r\n}", "function dirname(path) {\n return path.split(\"/\").slice(0, -1).join(\"/\") + \"/\";\n }", "function win32SplitPath(filename) {\n // Separate device+slash from tail\n var result = splitDeviceRe.exec(filename),\n device = (result[1] || '') + (result[2] || ''),\n tail = result[3] || '';\n // Split the tail into dir, basename and extension\n var result2 = splitTailRe.exec(tail),\n dir = result2[1],\n basename = result2[2],\n ext = result2[3];\n return [device, dir, basename, ext];\n}", "function win32SplitPath(filename) {\n // Separate device+slash from tail\n var result = splitDeviceRe.exec(filename),\n device = (result[1] || '') + (result[2] || ''),\n tail = result[3] || '';\n // Split the tail into dir, basename and extension\n var result2 = splitTailRe.exec(tail),\n dir = result2[1],\n basename = result2[2],\n ext = result2[3];\n return [device, dir, basename, ext];\n}", "function win32SplitPath(filename) {\n // Separate device+slash from tail\n var result = splitDeviceRe.exec(filename),\n device = (result[1] || '') + (result[2] || ''),\n tail = result[3] || '';\n // Split the tail into dir, basename and extension\n var result2 = splitTailRe.exec(tail),\n dir = result2[1],\n basename = result2[2],\n ext = result2[3];\n return [device, dir, basename, ext];\n}", "function win32SplitPath(filename) {\n // Separate device+slash from tail\n var result = splitDeviceRe.exec(filename),\n device = (result[1] || '') + (result[2] || ''),\n tail = result[3] || '';\n // Split the tail into dir, basename and extension\n var result2 = splitTailRe.exec(tail),\n dir = result2[1],\n basename = result2[2],\n ext = result2[3];\n return [device, dir, basename, ext];\n}", "function win32SplitPath(filename) {\n // Separate device+slash from tail\n var result = splitDeviceRe.exec(filename),\n device = (result[1] || '') + (result[2] || ''),\n tail = result[3] || '';\n // Split the tail into dir, basename and extension\n var result2 = splitTailRe.exec(tail),\n dir = result2[1],\n basename = result2[2],\n ext = result2[3];\n return [device, dir, basename, ext];\n}", "function win32SplitPath(filename) {\n // Separate device+slash from tail\n var result = splitDeviceRe.exec(filename),\n device = (result[1] || '') + (result[2] || ''),\n tail = result[3] || '';\n // Split the tail into dir, basename and extension\n var result2 = splitTailRe.exec(tail),\n dir = result2[1],\n basename = result2[2],\n ext = result2[3];\n return [device, dir, basename, ext];\n}", "function win32SplitPath(filename) {\n // Separate device+slash from tail\n var result = splitDeviceRe.exec(filename),\n device = (result[1] || '') + (result[2] || ''),\n tail = result[3] || '';\n // Split the tail into dir, basename and extension\n var result2 = splitTailRe.exec(tail),\n dir = result2[1],\n basename = result2[2],\n ext = result2[3];\n return [device, dir, basename, ext];\n}", "function win32SplitPath(filename) {\n // Separate device+slash from tail\n var result = splitDeviceRe.exec(filename),\n device = (result[1] || '') + (result[2] || ''),\n tail = result[3] || '';\n // Split the tail into dir, basename and extension\n var result2 = splitTailRe.exec(tail),\n dir = result2[1],\n basename = result2[2],\n ext = result2[3];\n return [device, dir, basename, ext];\n}", "function win32SplitPath(filename) {\n // Separate device+slash from tail\n var result = splitDeviceRe.exec(filename),\n device = (result[1] || '') + (result[2] || ''),\n tail = result[3] || '';\n // Split the tail into dir, basename and extension\n var result2 = splitTailRe.exec(tail),\n dir = result2[1],\n basename = result2[2],\n ext = result2[3];\n return [device, dir, basename, ext];\n}", "function win32SplitPath(filename) {\n // Separate device+slash from tail\n var result = splitDeviceRe.exec(filename),\n device = (result[1] || '') + (result[2] || ''),\n tail = result[3] || '';\n // Split the tail into dir, basename and extension\n var result2 = splitTailRe.exec(tail),\n dir = result2[1],\n basename = result2[2],\n ext = result2[3];\n return [device, dir, basename, ext];\n}", "function win32SplitPath(filename) {\n // Separate device+slash from tail\n var result = splitDeviceRe.exec(filename),\n device = (result[1] || '') + (result[2] || ''),\n tail = result[3] || '';\n // Split the tail into dir, basename and extension\n var result2 = splitTailRe.exec(tail),\n dir = result2[1],\n basename = result2[2],\n ext = result2[3];\n return [device, dir, basename, ext];\n}", "function splitPath(path)\n{\n var parts = path.split(\"/\");\n var idx = -1;\n for (var i = parts.length - 2; i >= 0; --i)\n {\n var lcpath = parts[i].toLowerCase();\n if (lcpath.endsWith(\".zip\") ||\n lcpath.endsWith(\".tgz\"))\n {\n idx = i;\n break;\n }\n }\n \n if (idx != -1)\n {\n var outerPath = parts.slice(0, idx + 1).join(\"/\");\n var innerPath = parts.slice(idx + 1).join(\"/\");\n //console.log(\"vfs.splitPath: \" + path + \" -> \" + outerPath + \"#\" + innerPath);\n return [outerPath, innerPath];\n }\n else\n {\n return [\"\", \"\"];\n }\n}", "getExtension(path) {\n let basename = path.split(/[\\\\/]/).pop()\n ,pos = basename.lastIndexOf(\".\");\n\n if (basename === \"\" || pos < 1) return \"\";\n\n return basename.slice(pos + 1);\n }", "normalizeExtension(path) {\r\n if (path_1.default.extname(path) == \".js\")\r\n path = path.substring(0, path.length - path_1.default.extname(path).length);\r\n if (path_1.default.extname(path) == \"\")\r\n path += \".json\";\r\n return path;\r\n }", "function dirname(dir) {\r\n dir = path.resolve(dir || '');\r\n try {\r\n var stat = fs.statSync(dir);\r\n if (stat.isFile()) {\r\n dir = path.dirname(dir);\r\n }\r\n return path.basename(dir);\r\n } catch (err) {}\r\n return null;\r\n}", "function dirname(file, n) {\n let i;\n if (n <= 1) {\n i = file.lastIndexOf('/');\n if (i < 0) {\n return '';\n }\n }\n else {\n i = file.length;\n while (--n >= 0) {\n i = i ? file.lastIndexOf('/', i - 1) : -1;\n if (i < 0) {\n return n || file[0] == '/' ? null : '';\n }\n }\n }\n return i ? file.slice(0, i) : '/';\n}", "function dirname(path) {\n const output = normalize(path).split('/');\n return output.splice(0, output.length - 1).join('/');\n }", "static dirname(path) {\n return Path.join(path, '..');\n }", "get dirname() {\n return typeof this.path === 'string' ? path.dirname(this.path) : undefined\n }", "function basename (filename, ext) {\n return path__WEBPACK_IMPORTED_MODULE_0___default.a.basename(\n filename.replace(/^[a-zA-Z]:/, '').replace(/\\\\/g, '/'),\n ext\n )\n}", "static dir(path) {\n const n = path.lastIndexOf(\"/\");\n return path.substring(0, n + 1);\n }", "function dirname(path) {\n\t return path.match(DIRNAME_RE)[0]\n\t}", "function normalizeArray(parts, allowAboveRoot) {\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n\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 } // if the path is allowed to go above the root, restore leading ..s\n\n\n if (allowAboveRoot) {\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n\n return parts;\n } // Split a filename into [root, dir, basename, ext], unix version", "function __getFilename(path) {\n\treturn require(\"path\").resolve(__dirname + \"/\" + path);\n}", "get basename() {\n return typeof this.path === 'string' ? path__default[\"default\"].basename(this.path) : undefined\n }", "function i(e){var t=e,n=r(e);if(n){if(!n.path)return e;t=n.path}for(var i,a=\"/\"===t.charAt(0),s=t.split(/\\/+/),l=0,u=s.length-1;u>=0;u--)i=s[u],\".\"===i?s.splice(u,1):\"..\"===i?l++:l>0&&(\"\"===i?(// The first part is blank if the path is absolute. Trying to go\n// above the root is a no-op. Therefore we can remove all '..' parts\n// directly after the root.\ns.splice(u+1,l),l=0):(s.splice(u,2),l--));return t=s.join(\"/\"),\"\"===t&&(t=a?\"/\":\".\"),n?(n.path=t,o(n)):t}", "function posixify_path(str) {\n\treturn str.split(path.sep).join(path.posix.sep);\n}", "function dirname(path) {\n return path.match(DIRNAME_RE)[0]\n }", "function dirname(path) {\n return path.match(DIRNAME_RE)[0]\n}", "getFileExtension1(filename) {\r\n return /[.]/.exec(filename) ? /[^.]+$/.exec(filename)[0] : undefined;\r\n }", "static getDirAndFilenameFromURI(uri) {\n let directory = \"\";\n let filename = \"\";\n // const regexMatch = this.uri.match(/(.*\\/)([^\\/]*)$/);\n const regexMatch = uri.match(/(.*\\/)?([^\\/]*)$/);\n if (regexMatch !== null) {\n // files on root directoy will lead to first match to be undefined\n directory = regexMatch[1] || \"\";\n filename = regexMatch[2];\n }\n return [directory, filename];\n }", "function dirname(path) {\n let dir = removeSlash(posix.dirname(path));\n return dir === '.' ? '' : dir;\n }", "function dirname(path) {\n var dir = path.replace(/\\\\/g, '/').replace(/\\/[^\\/]*$/, '');\n if (dir == '') {\n return '/';\n } else {\n return dir;\n }\n}", "function path(input) {\n if(input == null) return input\n let returnObj = {}\n\n returnObj.root = input.startsWith('/') ? '/' : ''\n\n let dirs = input.split('/')\n returnObj.base = dirs.pop()\n returnObj.dir = dirs.join('/')\n\n let file = returnObj.base.split('.')\n returnObj.ext = '.' + file.pop()\n returnObj.name = file.shift()\n\n return returnObj\n}", "basename(entry = this.cwd) {\n if (typeof entry === 'string') {\n entry = this.cwd.resolve(entry);\n }\n return entry.name;\n }", "function __getDirname(path) {\n\treturn require(\"path\").resolve(__dirname + \"/\" + path + \"/../\");\n}", "function basename(dir) {\n if ( dir && dir.split ) {\n var expl = dir.split(\"/\");\n return expl.length ? (expl[expl.length - 1]) : null;\n }\n\n return dir;\n}", "function basename(path) {\r\n return path.replace(/\\\\/g,'/').replace( /.*\\//, '' );\r\n}", "function basename(path) {\n return path.replace(/\\\\/g, '/').replace(/.*\\//, '');\n}", "function basename(path) { return path.replace( /.*\\//, \"\" ); }", "function a(e){var t=e,n=o(e);if(n){if(!n.path)return e;t=n.path}for(var r,a=\"/\"===t.charAt(0),s=t.split(/\\/+/),l=0,u=s.length-1;u>=0;u--)r=s[u],\".\"===r?s.splice(u,1):\"..\"===r?l++:l>0&&(\"\"===r?(\n// The first part is blank if the path is absolute. Trying to go\n// above the root is a no-op. Therefore we can remove all '..' parts\n// directly after the root.\ns.splice(u+1,l),l=0):(s.splice(u,2),l--));return t=s.join(\"/\"),\"\"===t&&(t=a?\"/\":\".\"),n?(n.path=t,i(n)):t}", "function l(e,t){\"\"===e&&(e=\".\"),e=e.replace(/\\/$/,\"\");\n// XXX: It is possible to remove this block, and the tests still pass!\nvar n=o(e);return\"/\"==t.charAt(0)&&n&&\"/\"==n.path?t.slice(1):0===t.indexOf(e+\"/\")?t.substr(e.length+1):t}", "function dirname(path) {\r\n\t\treturn path.match(DIRNAME_RE)[0]\r\n\t}", "function dirname(url) {\n const slashIndex = url && url.lastIndexOf('/');\n return slashIndex >= 0 ? url.substr(0, slashIndex) : '';\n}", "function dirname(url) {\n const slashIndex = url && url.lastIndexOf('/');\n return slashIndex >= 0 ? url.substr(0, slashIndex) : '';\n}", "function dirname(path) {\n\treturn path.match(DIRNAME_RE)[0];\n}", "function r(r){let e,t;return r.replace(/^(.*\\/)?([^/]*)$/,((r,a,i)=>(e=a||\"\",t=i||\"\",\"\"))),{dirPart:e,filePart:t}}", "function combFiles(files, delim)\r\n{\r\n var ret = \"\";\r\n for (var i = 1; i <= files.Count; ++i)\r\n {\r\n if (ret != \"\")\r\n ret += delim;\r\n ret += files.Item(i).RelativePath;\r\n }\r\n return ret;\r\n}", "function actualPath(p, failIfNotExist) {\n if (typeof failIfNotExist === \"undefined\") {\n failIfNotExist = false;\n }\n var expected = p.replace(/\\/\\//g, '/').replace(/\\\\\\\\/g, '\\\\').split(path.sep);\n var actual = '';\n var next = null;\n var index = 1;\n var failed = false;\n expected.forEach(function(item) {\n if (failed === false) {\n if (next === null) {\n actual += item + path.sep\n } else {\n for (var i = 0; i < next.length; i++) {\n if (next[i] === item) {\n if (index === expected.length) {\n actual += next[i];\n } else {\n actual += next[i] + path.sep;\n }\n break;\n } else if (next[i].toLowerCase() === item.toLowerCase()) {\n if (index === expected.length) {\n actual += next[i];\n } else {\n actual += next[i] + path.sep;\n }\n break;\n }\n }\n }\n try {\n files = fs.readdirSync(actual);\n next = files;\n index++;\n } catch (e) {\n failed = true;\n }\n }\n });\n if (failIfNotExist === true && failed === true && p.toLowerCase() !== actual.toLowerCase()) {\n return null;\n } else {\n return actual;\n }\n}", "function parseLocalPath(path) {\n var obj = {\n filename: '',\n directory: '',\n basename: '',\n extension: ''\n },\n sep = getPathSep(path),\n parts = path.split(sep),\n lastPart = parts.pop(),\n // try to match typical extensions but reject directory names with dots\n extRxp = /\\.([a-z][a-z0-9]*)$/i,\n extMatch = extRxp.test(lastPart) ? extRxp.exec(lastPart)[0] : '';\n\n if (extMatch || lastPart.includes('*')) {\n obj.filename = lastPart;\n obj.extension = extMatch ? extMatch.slice(1) : '';\n obj.basename = lastPart.slice(0, lastPart.length - extMatch.length);\n obj.directory = parts.join(sep);\n } else if (!lastPart) { // path ends with separator\n obj.directory = parts.join(sep);\n } else {\n obj.directory = path;\n }\n return obj;\n }", "function xnormalize(fpath) {\n if (!fpath) return \"\";\n var parts = fpath.split(/[\\\\\\/]/g);\n var roots = [];\n parts.forEach( function(part) {\n if (!part || part===\".\") {\n /* nothing */\n }\n else if (part===\"..\") {\n if (roots.length > 0 && roots[roots.length-1] !== \".parent\") {\n roots.pop();\n }\n else {\n roots.push(\".parent\");\n }\n }\n else {\n roots.push(part);\n }\n });\n return roots.join(\"/\");\n}", "function sc_basename(p) {\n var i = p.lastIndexOf('/');\n\n if(i >= 0)\n return p.substring(i + 1, p.length);\n else\n return p;\n}", "function dirname(path) {\n var dir = removeSlash(posix.dirname(path));\n return dir === '.' ? '' : dir;\n }", "resolveAsPath() { }", "get basename() {\n return typeof this.path === 'string' ? path$1.basename(this.path) : undefined\n }", "get stem() {\n return typeof this.path === 'string'\n ? path__default[\"default\"].basename(this.path, this.extname)\n : undefined\n }", "function getFileNameFromPath(path) {\n var index = path.lastIndexOf('/');\n var extIndex = path.lastIndexOf('.');\n return path.substring(index , extIndex);\n}", "function extname(path) {\n return posix.extname(path);\n }", "function extname(path) {\n return posix.extname(path);\n }", "function r$1(r){let e,t;return r.replace(/^(.*\\/)?([^/]*)$/,((r,a,i)=>(e=a||\"\",t=i||\"\",\"\"))),{dirPart:e,filePart:t}}", "function basename(path) {\n return path.split(/[\\\\/]/).pop();\n}" ]
[ "0.6246232", "0.62140876", "0.6013123", "0.5982529", "0.5973695", "0.5966872", "0.58964515", "0.58964515", "0.58888525", "0.5883687", "0.58758354", "0.58038723", "0.5782002", "0.5782002", "0.5782002", "0.5782002", "0.5782002", "0.5782002", "0.5778279", "0.57694095", "0.5763922", "0.5763349", "0.5745573", "0.57092416", "0.5705924", "0.5705924", "0.5684112", "0.56837004", "0.56811595", "0.5672957", "0.5657494", "0.5654145", "0.56514883", "0.56352484", "0.5623968", "0.5617281", "0.5615792", "0.5610053", "0.5607131", "0.5592685", "0.55902034", "0.55902034", "0.55902034", "0.55902034", "0.55902034", "0.55902034", "0.55902034", "0.55902034", "0.55902034", "0.55902034", "0.55902034", "0.5570385", "0.5568393", "0.556765", "0.5566278", "0.55650324", "0.55566424", "0.55445355", "0.55355793", "0.55344886", "0.5533036", "0.55090046", "0.5503945", "0.5488504", "0.5482558", "0.5476842", "0.54642683", "0.54542875", "0.54468095", "0.5427372", "0.5424651", "0.5417932", "0.5414911", "0.54122263", "0.5406052", "0.5400189", "0.539719", "0.53930736", "0.53917265", "0.53893846", "0.53864413", "0.53864413", "0.5380817", "0.5371235", "0.5371235", "0.5359172", "0.53513587", "0.5348747", "0.5346361", "0.5336913", "0.5336218", "0.5335165", "0.5334991", "0.5333839", "0.5315529", "0.5296512", "0.5295505", "0.52922463", "0.52922463", "0.52914697", "0.52893186" ]
0.0
-1
Data in excludeDimensions is copied, otherwise transfered.
function cloneListForMapAndSample(original, excludeDimensions) { var allDimensions = original.dimensions; var list = new List(zrUtil.map(allDimensions, original.getDimensionInfo, original), original.hostModel); // FIXME If needs stackedOn, value may already been stacked transferProperties(list, original); var storage = list._storage = {}; var originalStorage = original._storage; // Init storage for (var i = 0; i < allDimensions.length; i++) { var dim = allDimensions[i]; if (originalStorage[dim]) { // Notice that we do not reset invertedIndicesMap here, becuase // there is no scenario of mapping or sampling ordinal dimension. if (zrUtil.indexOf(excludeDimensions, dim) >= 0) { storage[dim] = cloneDimStore(originalStorage[dim]); list._rawExtent[dim] = getInitialExtent(); list._extent[dim] = null; } else { // Direct reference for other dimensions storage[dim] = originalStorage[dim]; } } } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function exclude_data() {\n\t new_data = _.difference(data, actives());\n\t if (new_data.length == 0) {\n\t alert(\"I don't mean to be rude, but I can't let you remove all the data.\\n\\nTry selecting just a few data points then clicking 'Exclude'.\");\n\t return false;\n\t }\n\t data = new_data;\n\t rescale();\n\t}", "function exclude_data() {\n new_data = _.difference(data, actives());\n if (new_data.length == 0) {\n alert(\"I don't mean to be rude, but I can't let you remove all the data.\\n\\nTry selecting just a few data points then clicking 'Exclude'.\");\n return false;\n }\n data = new_data;\n rescale();\n}", "function copyDataset(dataset) {\n var d2 = utils.extend({}, dataset);\n d2.layers = d2.layers.map(copyLayer);\n if (d2.arcs) {\n d2.arcs = d2.arcs.getFilteredCopy();\n }\n return d2;\n }", "function copyDatasetForExport(dataset) {\n var d2 = utils.extend({}, dataset);\n d2.layers = d2.layers.map(copyLayerShapes);\n if (d2.arcs) {\n d2.arcs = d2.arcs.getFilteredCopy();\n }\n return d2;\n }", "copy(other) {\n this.data.set(other.data);\n }", "getDataCopy() {\n return [].concat(this.data);\n }", "copyXYZ() {\nreturn E3Vec.copyOfV3(this.xyz);\n}", "function _filteredDeepCopy(src, dst) {\n if (Array.isArray(src)) {\n src.forEach(function (item) {\n switch (typeof item) {\n case 'function':\n ABeamer.throwI8n(ABeamer.Msgs.NoCode);\n break;\n case 'object':\n dst.push(_filteredDeepCopy(item, Array.isArray(item) ? [] : {}));\n break;\n default:\n dst.push(item);\n }\n });\n }\n else {\n Object.keys(src).forEach(function (key) {\n if (key[0] !== '_') {\n var item = src[key];\n switch (typeof item) {\n case 'function':\n ABeamer.throwI8n(ABeamer.Msgs.NoCode);\n break;\n case 'object':\n dst[key] = Array.isArray(item) ? [] : {};\n _filteredDeepCopy(item, dst[key]);\n break;\n default:\n dst[key] = item;\n }\n }\n });\n }\n return dst;\n }", "copy(copy){\r\n for(let element in this){\r\n // Don't try to copy hand, image or deck elements\r\n if ([\"hand\",\"deck\",\"image\"].includes(element)) continue;\r\n let value = this[element]\r\n if (Array.isArray(value)){\r\n copy[element] = Array.from(value);\r\n }\r\n else if (typeof value == \"object\"){\r\n if (value != null){\r\n copy[element] = {}; // Copy's element must be object before assign\r\n Object.assign(copy[element], value);\r\n }\r\n else copy[element] = null;\r\n }\r\n else{\r\n // Otherwise its a \"simple\" data-type\r\n copy[element] = value;\r\n }\r\n }\r\n return copy;\r\n }", "function hideAllData(layer, except) {\n if (layer[\"temporal\"]) {\n for (let i = 0; i < layer[\"data\"].length; i++) {\n if (layer[\"data\"][i]) {\n for (let j = -1; j < layer[\"data\"][i].length; j++) {\n if (layer[\"data\"][i][j]\n && (typeof except === 'undefined' || except[0] !== i || except[1] !== j)\n ) {\n layer[\"data\"][i][j].setMap(null);\n }\n }\n }\n }\n }\n else {\n for (let i = 0; i < layer[\"data\"].length; i++) {\n if (layer[\"data\"][i]\n && (typeof except === 'undefined' || except !== i)\n ) {\n layer[\"data\"][i].setMap(null);\n }\n }\n }\n}", "static filter(data) {\n const copy = { ...data };\n copy.a = copy.newA;\n delete copy['newA'];\n return copy;\n }", "takeDiscardedTile(meldType, discarded, ...others){\n this.addTile(discarded);\n others.push(discarded);\n this.meld(meldType, others);\n }", "static CopyImageData(source, out)\n {\n for(let i = 0; i < source.length; i++)\n {\n for(let j = 0; j < source[i].length; j++)\n {\n for(let k = 0; k < source[i][j].length; k++)\n {\n out[i][j][k] = source[i][j][k];\n }\n }\n }\n }", "function copyVertex(dest, orig) {\n\tfor (var prop in orig) {\n\t\tif (orig.hasOwnProperty(prop))\n\t\t\tdest[prop] = orig[prop];\n\t}\n\t/*dest.x = orig.x;\n\tdest.y = orig.y;\n\tdest.z = orig.z;\n\tdest.r = orig.r;\n\tdest.g = orig.g;\n\tdest.b = orig.b;\n\tdest.u = orig.u;\n\tdest.v = orig.v;\n\tdest.w = orig.w;\n\tdest.a = orig.a;\n\tdest.nx = orig.nx;\n\tdest.ny = orig.ny;\n\tdest.nz = orig.nz;\n\tdest.U = orig.U;\n\tdest.V = orig.V;*/\n}", "function trimDataSetInput(totalCatchDataset){\n\ttotalCatchDataset.splice(0,2);\n\treturn totalCatchDataset;\n}", "function copyLayer(lyr) {\n var copy = copyLayerShapes(lyr);\n if (copy.data) {\n copy.data = copy.data.clone();\n }\n return copy;\n }", "function copyCurrentGravityCalculationAreaToCurrentCalculationArea() {\n const numberOfRows = currentGravityCalculationArea.length;\n const numberOfColumns = currentGravityCalculationArea[0].length;\n for (let y = 0; y < numberOfRows; y++) {\n for (let x = 0; x < numberOfColumns; x++) {\n currentCalculationArea[y][x] = currentGravityCalculationArea[y][x];\n }\n }\n }", "function selectiveNotDeepExtend(propsToExclude, a, b) {\n var allowDeletion = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\n // TODO: add support for Arrays to deepExtend\n // NOTE: array properties have an else-below; apparently, there is a problem here.\n if (isArray$3(b)) {\n throw new TypeError(\"Arrays are not supported by deepExtend\");\n }\n\n for (var prop in b) {\n if (!Object.prototype.hasOwnProperty.call(b, prop)) {\n continue;\n } // Handle local properties only\n\n\n if (indexOf$3(propsToExclude).call(propsToExclude, prop) !== -1) {\n continue;\n } // In exclusion list, skip\n\n\n if (b[prop] && b[prop].constructor === Object) {\n if (a[prop] === undefined) {\n a[prop] = {};\n }\n\n if (a[prop].constructor === Object) {\n deepExtend(a[prop], b[prop]); // NOTE: allowDeletion not propagated!\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n } else if (isArray$3(b[prop])) {\n a[prop] = [];\n\n for (var i = 0; i < b[prop].length; i++) {\n a[prop].push(b[prop][i]);\n }\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n }\n\n return a;\n}", "function selectiveNotDeepExtend(propsToExclude, a, b) {\n var allowDeletion = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\n // TODO: add support for Arrays to deepExtend\n // NOTE: array properties have an else-below; apparently, there is a problem here.\n if (isArray$5(b)) {\n throw new TypeError(\"Arrays are not supported by deepExtend\");\n }\n\n for (var prop in b) {\n if (!Object.prototype.hasOwnProperty.call(b, prop)) {\n continue;\n } // Handle local properties only\n\n\n if (indexOf$3(propsToExclude).call(propsToExclude, prop) !== -1) {\n continue;\n } // In exclusion list, skip\n\n\n if (b[prop] && b[prop].constructor === Object) {\n if (a[prop] === undefined) {\n a[prop] = {};\n }\n\n if (a[prop].constructor === Object) {\n deepExtend(a[prop], b[prop]); // NOTE: allowDeletion not propagated!\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n } else if (isArray$5(b[prop])) {\n a[prop] = [];\n\n for (var i = 0; i < b[prop].length; i++) {\n a[prop].push(b[prop][i]);\n }\n } else {\n copyOrDelete(a, b, prop, allowDeletion);\n }\n }\n\n return a;\n}", "function copy() {\n var subGraph = { vertices: {}, edges: {} };\n var subLayout = { vertices: {}, edges: {} };\n [ EDGES, VERTICES ].forEach( function( collection ) {\n var graphSource = model[ collection ];\n var graphDest = subGraph[ collection ];\n var layoutSource = layoutModel[ collection ];\n var layoutDest = subLayout[ collection ];\n Object.keys( selection[ collection ] ).forEach( function( id ) {\n if( layoutSource[ id ] ) {\n layoutDest[ id ] = { left: layoutSource[ id ].left, top: layoutSource[ id ].top };\n }\n graphDest[ id ] = ng.copy( graphSource[ id ] );\n if( collection === VERTICES ) {\n traverse.eachPort( graphDest[ id ], function( port ) {\n if( !selection.edges[ port.edgeId ] ) {\n port.edgeId = null;\n }\n } );\n }\n } );\n } );\n return {\n graph: subGraph,\n layout: subLayout\n };\n }", "copyXYZW() {\nreturn RQ.copyOfQV(this.xyzw);\n}", "_removeDimensionFromJSArray() {\n const that = this;\n\n if (that.arrayIndexingMode === 'LabVIEW') {\n that.value = that.value[0];\n }\n else {\n const dimensions = that.dimensions + 1,\n recursion = function (arr, level, parent, index) {\n for (let i = 0; i < arr.length; i++) {\n if (level !== dimensions && arr[i].length > 0) {\n recursion(arr[i], level + 1, arr, i);\n }\n else {\n if (parent !== undefined) {\n parent[index] = arr[0];\n }\n else {\n that.value = that.value[0];\n }\n }\n }\n };\n\n recursion(that.value, 1);\n }\n }", "function copy(obj, exclude) {\n var newObj = {};\n $.each(obj, function(key, value) {\n if ($.inArray(key, exclude) === -1) {\n // exclude array doesnt contain key so\n // we need to add it to our newObj\n newObj[key] = value;\n }\n });\n return newObj;\n}", "static copyBoard( oldBoard ){\n\n let newBoard = new Array(oldBoard.length);\n\n for (let i = 0; i < oldBoard.length; i++){\n newBoard[i] = Object.assign([], oldBoard[i]);\n }\n\n return newBoard\n }", "function copy(data) {\n return isDef(data) ? JSON.parse(JSON.stringify(data)) : null;\n}", "function transfer(source, destination) {\n if (elements.styles[source]) \n {\n elements.styles[destination] = elements.styles[source];\n updateStylesInDataStore();\n }\n}", "function exclude(array, excluded) {\r\n let copiedArray = [...array]; //copy array to avoid destroying original.\r\n for (const excludedItem of excluded) {\r\n for (const key in copiedArray) {\r\n if (copiedArray[key] === excludedItem) copiedArray.splice(key, 1);\r\n }\r\n }\r\n\r\n /*Moshes Approach - Cleaner, but thought using .includes was cheating...\r\n const output = [];\r\n for (let element of array) {\r\n if (!excluded.includes(element)) {\r\n output.push(elemtnt);\r\n }\r\n }\r\n return output;\r\n */\r\n return copiedArray;\r\n}", "_cleanVisData() {\n const visData = this.getVisData();\n if (this.type === 'slices') {\n this._cleanPieChartData(visData);\n }\n }", "function copyDatasetForRenaming(dataset) {\n return utils.defaults({\n layers: dataset.layers.map(function(lyr) {return utils.extend({}, lyr);})\n }, dataset);\n }", "function clearFilter() {\n\t\tfilteredDimensions.forEach(function(v, i) {\n\t\t\tv.filterAll();\n\t\t});\n\n\t\tfilteredDimensions = [];\n\t}", "function Assign(toCopy : MeshData)\n\t{\n\t\tterrainPath = toCopy.terrainPath;\n\t\tmaterial = toCopy.material;\n\t\twidth = toCopy.width;\n\t\theight = toCopy.height; \n\t\tdist = toCopy.dist;\n\t\t\n\t\troundStep = toCopy.roundStep;\n\t\tantialiasingLevel = toCopy.antialiasingLevel;\n\t\tsteepness = toCopy.steepness;\n\t lavaElevation = toCopy.lavaElevation;\n\t\tautoDist = toCopy.autoDist;\t\n\t\tisConfigured = toCopy.isConfigured;\n\t}", "copyPoints() { return PointHelpers_1.Point3dArray.unpackNumbersToNestedArrays(this._bcurve.packedData, 3); }", "function keep_data() {\n\t new_data = actives();\n\t if (new_data.length == 0) {\n\t alert(\"I don't mean to be rude, but I can't let you remove all the data.\\n\\nTry removing some brushes to get your data back. Then click 'Keep' when you've selected data you want to look closer at.\");\n\t return false;\n\t }\n\t data = new_data;\n\t rescale();\n\t}", "function copy_(x, y) {\n var i;\n var k = x.length < y.length ? x.length : y.length;\n for (i = 0; i < k; i++)\n x[i] = y[i];\n for (i = k; i < x.length; i++)\n x[i] = 0;\n }", "function filterObject() {\n\n\tnewData = data.splice(NUMBER_OF_ELEMENTS) ;\n\tnewData = data.slice(FROM - 1, TO);\n}", "copyUvs() {\n this.eachPoint((point, indexOfVertexInFace) => {\n point.uvs.add(this.myFaceUvs[indexOfVertexInFace]);\n });\n }", "function UpdateCharts(exclude, args) {\n for ([key, value] of Object.entries(args)) {\n CurrentFilters[key] = value\n }\n console.log(CurrentFilters)\n // Copy the CurrentFilters because otherwise the chart type\n // ends up in the current filters, breaking visualizations\n var cf = $.extend(true, {}, CurrentFilters)\n\n // Apply filters on every chart except for the excluded one\n ChartList.forEach(chart => {\n if (chart.chart != exclude) {\n chart.update(cf)\n }\n });\n\n}", "function copy(copyArr, originalArr) { \n copyArr = [...originalArr]; \n return copyArr;\n}", "function copySelection() {\n\tcopiedEndX = endX;\n\tcopiedEndY = endY;\n\n\tcopiedStartX = startX;\n\tcopiedStartY = startY;\n\t// Getting the selected pixels\n\tclipboardData = currentLayer.context.getImageData(startX, startY, endX - startX + 1, endY - startY + 1);\n}", "assign(target, data, omitFields = [] ) {\n let changes = super.assign(target, data, omitFields);\n if (target.subType === undefined) {\n target.subType = 'columns'\n changes.subType = ''\n }\n // image is allowed but should exist withing the current layout\n if (LayoutSubTypes.indexOf(target.subType) < 0) {\n target.subType = 'columns'\n }\n if (!target.image) {\n target.image = ImageUtil.randomImage('layout');\n if (!target.image) {\n delete target.image\n }\n }\n return target;\n }", "function _copy(src, dest) {\n\t if (dest)\n\t Object.keys(dest).forEach(function (key) { return delete dest[key]; });\n\t if (!dest)\n\t dest = {};\n\t return exports.extend(dest, src);\n\t}", "function _copy(src, dest) {\n\t if (dest)\n\t Object.keys(dest).forEach(function (key) { return delete dest[key]; });\n\t if (!dest)\n\t dest = {};\n\t return exports.extend(dest, src);\n\t}", "_trimData(min, max, scatterData) {\n let result = [];\n for (let n = 0; n < scatterData.length; n++) {\n // trim\n result.push(scatterData[n].filter((coordinates) => {\n return (((new Date(coordinates[0])) >= min) && ((new Date(coordinates[0])) <= max));\n }));\n }\n return result;\n }", "clearAllExcept (state, payload) {\n state.list = state.list.filter(data => data.row === payload.row && data.col === payload.col)\n }", "function copyGrid() {\n return JSON.parse(JSON.stringify(grid))\n}", "function copyData (dest, sourceData) {\n var parsedProperty;\n var key;\n for (key in sourceData) {\n if (sourceData[key] === undefined) { continue; }\n parsedProperty = sourceData[key];\n dest[key] = isObjectOrArray(parsedProperty)\n ? utils.clone(parsedProperty)\n : parsedProperty;\n }\n return dest;\n}", "function doCopy(copy, original) {\n\t\t\tvar value, key;\n\t\t\t\n\t\t\tfor (key in original) {\n\t\t\t\tvalue = original[key];\n\t\t\t\tif (value && typeof value === 'object' && value.constructor !== Array &&\n\t\t\t\t\t\ttypeof value.nodeType !== 'number') {\n\t\t\t\t\tcopy[key] = doCopy(copy[key] || {}, value); // copy\n\n\t\t\t\t} else {\n\t\t\t\t\tcopy[key] = original[key];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn copy;\n\t\t}", "function copyOrder(dest, src) {\n dest.length = 0;\n\n for (var i = 0; i < src.length; i++) {\n dest.push(src[i].slice(0));\n }\n }", "function _copyDataFolder() {\n return gulp.src(src + '/data/*').pipe(gulp.dest('./data'));\n}", "function copy(arrayFrom, arrayTo) {\n arrayTo = [];\n arrayFrom.forEach(function (item) {\n arrayTo.push(item.clone());\n });\n }", "function copyArray( to, from ) {\n cleanArray( to );\n\n for ( var i = 0; i < from.length; i++ ) {\n to[ i ] = from[ i ];\n }\n }", "function callDidDrop ($src, $dst) {\n if (pluginOptions.didDrop && typeof pluginOptions.didDrop === \"function\") {\n pluginOptions.didDrop($src, $dst);\n } else {\n $dst.css(pluginOptions.transferProperty, $src.css(pluginOptions.transferProperty));\n\n }\n }", "copyResults() {\n for(let col = 0; col < this.width; col++) {\n for(let row = 0; row < this.height; row++) {\n this.grid[col][row] = this.resultGrid[col][row]\n }\n }\n }", "clone(){\n return this.select([], \"drop\");\n }", "createCopy() {\n let copy = new SketchLayer();\n if (this.name) {\n copy.name = this.name;\n }\n if (this.uniqueIdentifier) {\n copy.uniqueIdentifier = this.uniqueIdentifier;\n }\n if (this.objects) {\n copy.objects = [];\n for (let i = 0; i < this.objects.length; i++) {\n let child = this.objects[i].createCopy();\n copy.objects.push(child);\n }\n }\n if (this.visible) {\n copy.visible = this.visible;\n }\n return copy;\n }", "function except(array, excluded) {//This function takes in two arrays\n const output = []; //set output to an empty array, we will store exluded numbers in this array.\n for (let element of array) //itereate through each element of the first array\n if (!excluded.includes(element)) //check to see if the current element is in the excluded array\n output.push(element);// If it's not then we'll add this element to our output array.\n return output; \n}", "function gray_copy(source, target) {\n\t var pixels = source.getImageData(0,0,w,h);\n\t target.putImageData(grayscale(pixels),0,0);\n\t}", "function filter_data(){\n //console.log(sliderValues)\n new_data = []\n for(i =0; i < dataset_size; i++){\n filtered_out = false;\n for(let slider in sliderValues){\n min = parseFloat(sliderValues[slider][0])\n max = parseFloat(sliderValues[slider][1])\n attr = sliderIdToAttr[slider]\n val = parseFloat(data[i][attr])\n //console.log(val, min, max)\n if(val < min || val>max){\n //remove from screen if dataset doesnt meet any filter range\n filtered_out = true\n }\n }\n if (!filtered_out) {\n new_data.push(data[i])\n }\n }\n return new_data\n }", "copy() {\n if (this.isEmpty) {\n return;\n }\n this.copySelectedContent(false);\n }", "function copyFloatArrayIntoArray(x, y) {\n var N = x.length;\n for (var i = 0; i < N; i++) {\n y[i] = x[i];\n }\n }", "excludes(other) {\n return this.excluded.indexOf(other) > -1;\n }", "function copyOperation (o) {\n o = copyObject(o)\n if (o.content != null) {\n o.content = o.content.map(function (c) { return c })\n }\n return o\n }", "function copy_(x,y) {\n var i;\n var k=x.length<y.length ? x.length : y.length;\n for (i=0;i<k;i++)\n x[i]=y[i];\n for (i=k;i<x.length;i++)\n x[i]=0;\n }", "function deepCopy(currentArray) {\n var newArray = [];\n\n for (var i = 0; i < currentArray.length; i++)\n newArray[i] = currentArray[i].slice();\n\n return newArray\n}", "function shallowClearAndCopy(src, dst) {\n dst = dst || {};\n\n angular.forEach(dst, function(value, key){\n delete dst[key];\n });\n\n for (var key in src) {\n if (src.hasOwnProperty(key) && key.substr(0, 2) !== '$$') {\n dst[key] = src[key];\n }\n }\n\n return dst;\n}", "copy(){\n let handCopy = new Hand();\n handCopy.numUnmeldedTiles = this.numUnmeldedTiles;\n handCopy.melds = this.melds.slice();\n handCopy.inPlayTiles = [];\n for (let i = 0; i < this.inPlayTiles.length; i++){\n handCopy.inPlayTiles.push(this.inPlayTiles[i].slice());\n }\n return handCopy;\n }", "function arrBufferCopy(sourceArr,destArr,sourceStartIdx,destStartIdx,numVals){\n var i = 0;\n while(sourceArr[sourceStartIdx+i] !== undefined && destArr[destStartIdx+i] !== undefined && numVals > 0){\n destArr[destStartIdx+i] = sourceArr[sourceStartIdx+i];\n numVals--;\n i++;\n }\n}", "function $mkoQ$var$copyProps(src, dst) {\n for (var key in src) {\n dst[key] = src[key];\n }\n}", "function optCopy(names) {\n\t\tnames.forEach(function(name) {\n\t\t\tdata[name] = input[name] || options[name];\n\t\t})\n\t}", "function filterAll() {\n emptyDatasets();\n filters[dimensionName] = members;\n return dimensionObj;\n }", "function copyArgs(args) {\n return Array.prototype.slice(args);\n }", "copy() {\n return new TensorList([...this.tensors], this.elementShape, this.elementDtype);\n }", "copy() {\n return new TensorList([...this.tensors], this.elementShape, this.elementDtype);\n }", "copyFrom(other) {\n // console.log('copyfrom', other, 'to', this)\n // for (let i = 0; i < other.nPoints; i++) {\n // this.addPoint(other.xPoints[i], other.yPoints[i])\n // }\n // for (let i = 0; i < other.nLines; i++) {\n // this.addLineTo(other.nLine[i])\n // }\n this.nPoints = other.nPoints\n this.nLines = other.nLines\n this.xPoints = [...other.xPoints]\n this.yPoints = [...other.yPoints]\n this.nLine = [...other.nLine]\n this.x1 = other.x1\n this.x2 = other.x2\n this.y1 = other.y1\n this.y2 = other.y2\n }", "copyFrom(data) {\n if (data instanceof NDArray) {\n this.lib.checkCall(this.lib.exports.TVMArrayCopyFromTo(data.handle, this.handle, 0));\n return this;\n }\n else {\n const size = this.shape.reduce((a, b) => {\n return a * b;\n }, 1);\n if (data.length != size) {\n throw new Error(\"data size and shape mismatch data.length\" +\n data.length +\n \" vs \" +\n size);\n }\n let buffer;\n if (this.dtype == \"float32\") {\n buffer = Float32Array.from(data).buffer;\n }\n else if (this.dtype == \"float64\") {\n buffer = Float64Array.from(data).buffer;\n }\n else if (this.dtype == \"int32\") {\n buffer = Int32Array.from(data).buffer;\n }\n else if (this.dtype == \"int8\") {\n buffer = Int8Array.from(data).buffer;\n }\n else if (this.dtype == \"uint8\") {\n buffer = Uint8Array.from(data).buffer;\n }\n else {\n throw new Error(\"Unsupported data type \" + this.dtype);\n }\n return this.copyFromRawBytes(new Uint8Array(buffer));\n }\n }", "negateMat4(m, dest) {\n if (!dest) {\n dest = m;\n }\n dest[0] = -m[0];\n dest[1] = -m[1];\n dest[2] = -m[2];\n dest[3] = -m[3];\n dest[4] = -m[4];\n dest[5] = -m[5];\n dest[6] = -m[6];\n dest[7] = -m[7];\n dest[8] = -m[8];\n dest[9] = -m[9];\n dest[10] = -m[10];\n dest[11] = -m[11];\n dest[12] = -m[12];\n dest[13] = -m[13];\n dest[14] = -m[14];\n dest[15] = -m[15];\n return dest;\n }", "wipeUnusedSpace() {\n // Mark internal only to be true so that the render doesn't treat it like\n // a new file, all existing data is kept\n this.onDataChange(undefined, false, true);\n }", "function filteredAssign(isAllowed, target) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n target = target || {};\n for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {\n var sourceObject = args_1[_a];\n if (sourceObject) {\n for (var propName in sourceObject) {\n if (sourceObject.hasOwnProperty(propName) &&\n !isAllowed || isAllowed(propName)) {\n target[propName] = sourceObject[propName];\n }\n }\n }\n }\n return target;\n}", "_addDimensionToJSArray(dimensions) {\n const that = this;\n\n if (that.arrayIndexingMode === 'LabVIEW') {\n that.value = [that.value];\n }\n else {\n if (dimensions === undefined) {\n dimensions = that.dimensions - 1;\n }\n\n const recursion = function (arr, level) {\n for (let i = 0; i < arr.length; i++) {\n if (level !== dimensions) {\n recursion(arr[i], level + 1);\n }\n else {\n arr[i] = [arr[i]];\n }\n }\n };\n\n recursion(that.value, 1);\n }\n }", "copy()\r\n {\r\n return new Vector2D(this.x, this.y);\r\n }", "function shallowCopy(src,dst){if(isArray(src)){dst=dst||[];for(var i=0,ii=src.length;i<ii;i++){dst[i]=src[i];}}else if(isObject(src)){dst=dst||{};for(var key in src){if(!(key.charAt(0)==='$'&&key.charAt(1)==='$')){dst[key]=src[key];}}}return dst||src;}", "function shallowCopy(src,dst){if(isArray(src)){dst=dst||[];for(var i=0,ii=src.length;i<ii;i++){dst[i]=src[i];}}else if(isObject(src)){dst=dst||{};for(var key in src){if(!(key.charAt(0)==='$'&&key.charAt(1)==='$')){dst[key]=src[key];}}}return dst||src;}", "copyPointsFloat64Array() { return this._bcurve.packedData.slice(); }", "function sourceOverFilter(src, dst) {\n return src;\n }", "function deepObjectAssign() {\n var merged = deepObjectAssignNonentry.apply(void 0, arguments);\n stripDelete(merged);\n console.log(merged);\n return merged;\n}", "function deepObjectAssign() {\n var merged = deepObjectAssignNonentry.apply(void 0, arguments);\n stripDelete(merged);\n console.log(merged);\n return merged;\n}", "function transferArray(destArray, srcArray, operatorArray, operatorSet, replaceMode ) {\n\tvar i, imax=srcArray.length,v;\n\tfor(i=0;i<imax;i++){\n\t\tv= transferValue(srcArray[i], operatorArray, operatorSet, replaceMode );\n\t\tif( v instanceof Error ){\n\t\t\treturn Error( \"transferArray fail at i=\" + i +\", \" + (v.message || \"transferValue fail\") );\n\t\t}\n\t\tdestArray[i]= v;\n\t}\n\treturn destArray;\n}", "xfer(other) {\n\t\tsuper.xfer(other);\n\t\tthis._firstEp = other._firstEp;\n\t\tthis._left = other._left; this._right = other._right;\n\t\tthis._weight = other._weight;\n\t\tthis._edges = other._edges; this._epLists = other._epLists;\n\t\tother._firstEp = other._left = other._right = other._weight = null;\n\t\tother._edges = null; other._epLists = null;\n\t}", "removeDimension(propertyChangedHandler, changeValueDimensions) {\n const that = this,\n index = that._dimensions.length - 1;\n\n if (that._dimensions.length < 2) {\n return;\n }\n\n if (that._dimensions.length === 2) {\n const oldRowsCount = that.rows;\n\n that.rows = 1;\n that._changeRowsColumns('rows', oldRowsCount, 1, undefined, true);\n }\n\n that.$.indexerContainer.removeChild(that._dimensions[index].indexer);\n that._dimensions.pop();\n\n let indexerValue;\n\n if (that.arrayIndexingMode === 'LabVIEW') {\n indexerValue = that._coordinates[0];\n that._indexers.splice(0, 1);\n that._coordinates.splice(0, 1);\n }\n else {\n indexerValue = that._coordinates[index];\n that._indexers.pop();\n that._coordinates.pop();\n }\n\n if (that._suppressDimensionChange !== true) {\n that.dimensions -= 1;\n that.$.fireEvent('dimensionChange', { 'type': 'remove' });\n }\n\n if (changeValueDimensions !== false) {\n that._removeDimensionFromJSArray();\n\n if (that.arrayIndexingMode === 'LabVIEW') {\n that._filledUpTo.splice(0, 1);\n }\n else {\n that._filledUpTo.pop();\n }\n }\n\n if (that._absoluteSelectionStart !== undefined) {\n if (that.arrayIndexingMode === 'LabVIEW') {\n that._absoluteSelectionStart.splice(0, 1);\n }\n else {\n that._absoluteSelectionStart.pop();\n }\n }\n\n if (that._absoluteSelectionEnd !== undefined) {\n if (that.arrayIndexingMode === 'LabVIEW') {\n that._absoluteSelectionEnd.splice(0, 1);\n }\n else {\n that._absoluteSelectionEnd.pop();\n }\n }\n\n if (indexerValue > 0) {\n that._scroll();\n }\n\n if ((that.dimensions > 1 && that._suppressDimensionChange === false && that.showIndexDisplay === true && ((that.dimensions + 1) * (that.indexerHeight + 4) - 2 >= that._cachedHeight)) || that.dimensions === 1 && propertyChangedHandler !== true) {\n that._updateWidgetHeight('dimensions');\n if (that.dimensions === 1 && that.showVerticalScrollbar) {\n that._showVerticalScrollbar(false);\n }\n }\n }", "get excluded () {\n\t\treturn this._excluded;\n\t}", "function copyProps(src, dst) {\n for (var key in src) {\n dst[key] = src[key];\n }\n }", "function copy(x) {\r\n return JSON.parse(JSON.stringify(x))\r\n}", "static copyPos(a, b, doMinMax = false) {\r\n a.x = b.x;\r\n a.y = b.y;\r\n a.w = b.w;\r\n a.h = b.h;\r\n if (doMinMax) {\r\n if (b.minW)\r\n a.minW = b.minW;\r\n if (b.minH)\r\n a.minH = b.minH;\r\n if (b.maxW)\r\n a.maxW = b.maxW;\r\n if (b.maxH)\r\n a.maxH = b.maxH;\r\n }\r\n return a;\r\n }", "function filteredAssign(isAllowed, target) {\r\n var args = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n args[_i - 2] = arguments[_i];\r\n }\r\n target = target || {};\r\n for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {\r\n var sourceObject = args_1[_a];\r\n if (sourceObject) {\r\n for (var propName in sourceObject) {\r\n if (sourceObject.hasOwnProperty(propName) && (!isAllowed || isAllowed(propName))) {\r\n target[propName] = sourceObject[propName];\r\n }\r\n }\r\n }\r\n }\r\n return target;\r\n}", "function filteredAssign(isAllowed, target) {\r\n var args = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n args[_i - 2] = arguments[_i];\r\n }\r\n target = target || {};\r\n for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {\r\n var sourceObject = args_1[_a];\r\n if (sourceObject) {\r\n for (var propName in sourceObject) {\r\n if (sourceObject.hasOwnProperty(propName) && (!isAllowed || isAllowed(propName))) {\r\n target[propName] = sourceObject[propName];\r\n }\r\n }\r\n }\r\n }\r\n return target;\r\n}", "function copyPix(originX,originY,destX,destY) {\n var origin = (originY * img.width + originX) * 4; //convert to 1D pixels index\n var dest = (destY * img.width + destX) * 4;//convert to 1D pixels index\n pixels[dest] = pixels[origin];\n pixels[dest+1] = pixels[origin+1];\n pixels[dest+2] = pixels[origin+2];\n pixels[dest+3] = pixels[origin+3];\n}" ]
[ "0.6004552", "0.58761233", "0.5863451", "0.5723548", "0.5459735", "0.5356632", "0.5327947", "0.526774", "0.5105735", "0.5102186", "0.5066668", "0.50662035", "0.502312", "0.5011056", "0.49681273", "0.49657607", "0.49570408", "0.49260467", "0.49256632", "0.491796", "0.49178806", "0.48863652", "0.48639885", "0.48600584", "0.48320168", "0.48317093", "0.47937036", "0.47790766", "0.4753598", "0.4751469", "0.47245502", "0.4723536", "0.47081468", "0.47073022", "0.470112", "0.46972188", "0.46965718", "0.46948949", "0.46848494", "0.46829405", "0.46769652", "0.46769652", "0.46767798", "0.4664663", "0.46553442", "0.46541187", "0.4634924", "0.46316501", "0.4623134", "0.4619137", "0.4617639", "0.46154976", "0.46064243", "0.46006915", "0.4597475", "0.45938525", "0.459004", "0.45829743", "0.45776448", "0.4576359", "0.45762566", "0.4572595", "0.45696577", "0.45681795", "0.45671093", "0.45651275", "0.4557525", "0.45507407", "0.45420554", "0.454063", "0.4540619", "0.45359042", "0.45359042", "0.45331365", "0.45325965", "0.45272088", "0.45238617", "0.45235005", "0.4520468", "0.45185626", "0.45179698", "0.45179698", "0.451746", "0.45145917", "0.45069975", "0.45069975", "0.4506195", "0.45055518", "0.45023516", "0.45020995", "0.44970557", "0.44962686", "0.44958913", "0.44947967", "0.44947967", "0.44942105" ]
0.57861066
7
Do some preprocess to avoid error happened when interpolating from arr0 to arr1
function fillArr(arr0, arr1, arrDim) { var arr0Len = arr0.length; var arr1Len = arr1.length; if (arr0Len !== arr1Len) { // FIXME Not work for TypedArray var isPreviousLarger = arr0Len > arr1Len; if (isPreviousLarger) { // Cut the previous arr0.length = arr1Len; } else { // Fill the previous for (var i = arr0Len; i < arr1Len; i++) { arr0.push(arrDim === 1 ? arr1[i] : arraySlice.call(arr1[i])); } } } // Handling NaN value var len2 = arr0[0] && arr0[0].length; for (var i = 0; i < arr0.length; i++) { if (arrDim === 1) { if (isNaN(arr0[i])) { arr0[i] = arr1[i]; } } else { for (var j = 0; j < len2; j++) { if (isNaN(arr0[i][j])) { arr0[i][j] = arr1[i][j]; } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function interpolate (arr0, arr1, p) {\n var q = 1 - p;\n return [q * arr0[0] + p * arr1[0], q * arr0[1] + p * arr1[1], q * arr0[2] + p * arr1[2]];\n }", "function prioritize(arr1, callback){}", "function doubleTrouble(arr){\n arr.length *= 2;\n for(var i = arr.length -1; i > 0; i -= 2){\n arr[i] = arr[0.5 * (i - 1)];\n arr[i -1] = arr[i];\n }\n return arr\n }", "function DoubleTrouble(arr){\n let arr2=[];\n for(let i=0; i< arr.length; i++){\n arr2.push(arr[i]);\n arr2.push(arr[i]);\n }\n return arr2;\n}", "function fillArr(arr0, arr1, arrDim) {\n var arr0Len = arr0.length;\n var arr1Len = arr1.length;\n if (arr0Len !== arr1Len) {\n // FIXME Not work for TypedArray\n var isPreviousLarger = arr0Len > arr1Len;\n if (isPreviousLarger) {\n // Cut the previous\n arr0.length = arr1Len;\n }\n else {\n // Fill the previous\n for (var i = arr0Len; i < arr1Len; i++) {\n arr0.push(\n arrDim === 1 ? arr1[i] : arraySlice.call(arr1[i])\n );\n }\n }\n }\n // Handling NaN value\n var len2 = arr0[0] && arr0[0].length;\n for (var i = 0; i < arr0.length; i++) {\n if (arrDim === 1) {\n if (isNaN(arr0[i])) {\n arr0[i] = arr1[i];\n }\n }\n else {\n for (var j = 0; j < len2; j++) {\n if (isNaN(arr0[i][j])) {\n arr0[i][j] = arr1[i][j];\n }\n }\n }\n }\n }", "function fillArr(arr0, arr1, arrDim) {\n var arr0Len = arr0.length;\n var arr1Len = arr1.length;\n if (arr0Len !== arr1Len) {\n // FIXME Not work for TypedArray\n var isPreviousLarger = arr0Len > arr1Len;\n if (isPreviousLarger) {\n // Cut the previous\n arr0.length = arr1Len;\n }\n else {\n // Fill the previous\n for (var i = arr0Len; i < arr1Len; i++) {\n arr0.push(\n arrDim === 1 ? arr1[i] : arraySlice.call(arr1[i])\n );\n }\n }\n }\n // Handling NaN value\n var len2 = arr0[0] && arr0[0].length;\n for (var i = 0; i < arr0.length; i++) {\n if (arrDim === 1) {\n if (isNaN(arr0[i])) {\n arr0[i] = arr1[i];\n }\n }\n else {\n for (var j = 0; j < len2; j++) {\n if (isNaN(arr0[i][j])) {\n arr0[i][j] = arr1[i][j];\n }\n }\n }\n }\n }", "function fillArr(arr0, arr1, arrDim) {\n\t var arr0Len = arr0.length;\n\t var arr1Len = arr1.length;\n\t if (arr0Len !== arr1Len) {\n\t // FIXME Not work for TypedArray\n\t var isPreviousLarger = arr0Len > arr1Len;\n\t if (isPreviousLarger) {\n\t // Cut the previous\n\t arr0.length = arr1Len;\n\t } else {\n\t // Fill the previous\n\t for (var i = arr0Len; i < arr1Len; i++) {\n\t arr0.push(arrDim === 1 ? arr1[i] : arraySlice.call(arr1[i]));\n\t }\n\t }\n\t }\n\t // Handling NaN value\n\t var len2 = arr0[0] && arr0[0].length;\n\t for (var i = 0; i < arr0.length; i++) {\n\t if (arrDim === 1) {\n\t if (isNaN(arr0[i])) {\n\t arr0[i] = arr1[i];\n\t }\n\t } else {\n\t for (var j = 0; j < len2; j++) {\n\t if (isNaN(arr0[i][j])) {\n\t arr0[i][j] = arr1[i][j];\n\t }\n\t }\n\t }\n\t }\n\t}", "function fillArr(arr0, arr1, arrDim) {\n var arr0Len = arr0.length;\n var arr1Len = arr1.length;\n if (arr0Len !== arr1Len) {\n // FIXME Not work for TypedArray\n var isPreviousLarger = arr0Len > arr1Len;\n if (isPreviousLarger) {\n // Cut the previous\n arr0.length = arr1Len;\n } else {\n // Fill the previous\n for (var i = arr0Len; i < arr1Len; i++) {\n arr0.push(arrDim === 1 ? arr1[i] : arraySlice.call(arr1[i]));\n }\n }\n }\n // Handling NaN value\n var len2 = arr0[0] && arr0[0].length;\n for (var i = 0; i < arr0.length; i++) {\n if (arrDim === 1) {\n if (isNaN(arr0[i])) {\n arr0[i] = arr1[i];\n }\n } else {\n for (var j = 0; j < len2; j++) {\n if (isNaN(arr0[i][j])) {\n arr0[i][j] = arr1[i][j];\n }\n }\n }\n }\n}", "function preProcess($elem){\n\t\t_preProcess0($elem, REPLACERS[0]);\n\t\t_preProcess0($elem, REPLACERS[1]);\n\t\t_preProcess0($elem, REPLACERS[2]);\n\t\t_preProcess1($elem, REPLACERS[0]);\n\t\t_preProcess1($elem, REPLACERS[1]);\n\t\t_preProcess1($elem, REPLACERS[2]);\n\t\treturn $elem;\n\t}", "function s_array_op(arr1, arr2, what_to_do, sort_function)\n{\n\t// http://stackoverflow.com/questions/10866756/fast-intersection-of-two-sorted-integer-arrays\n\t\n\tif (!isArray(arr1) || !isArray(arr2))\n\t\treturn [];\n\t// need at least one to be be longer than zero\n\tif (arr1.length == 0 && arr2.length == 0)\n\t\treturn [];\n\t\t\n\t// intersection check that both are longer than zero\n\tif (what_to_do == \"i\" && (arr1.length == 0 || arr2.length == 0))\n\t\treturn [];\n\t\t\n\t// counters\n\tvar i=0, j=0;\n\t// values\n\tvar a=0, b=0;\n\t\n\tvar out = [];\n\t\n\t// comparison function\n\tvar the_compare;\n\tif (typeof(sort_function) != \"function\")\n\t\tthe_compare = function(a1,b1) { return [a1,b1].sort()[0] == a1 ? -1 : 1; };\n\telse\n\t\tthe_compare = sort_function;\n\t// push functions\n\tvar eq_push;\n\tvar lt_push;\n\tvar gte_push;\n\t\n\tswitch(what_to_do)\n\t{\n\t\tcase \"i\":\n\t\t\teq_push = function(in1) { return out.push(in1); };\n\t\t\tlt_push = function() { return; };\n\t\t\tgte_push = function() { return; };\n\t\tbreak;\n\t\tcase \"u\":\n\t\t\teq_push = function(in1) { return out.push(in1); };\n\t\t\tlt_push = function(in1) { return out.push(in1); };\n\t\t\tgte_push = function(in1) { return out.push(in1); };\n\t\tbreak;\n\t\tcase \"x\":\n\t\t\teq_push = function() { return; };\n\t\t\tlt_push = function(in1) { return out.push(in1); };\n\t\t\tgte_push = function(in1) { return out.push(in1); };\n\t\tbreak;\n\t\tdefault:\n\t\t\treturn [];\n\t}\n\t\n\t// the continues should speed up execution ...\n\twhile (i < arr1.length && j < arr2.length)\n\t{\n\t\ta = arr1[i];\n\t\tb = arr2[j];\n\t\t\n\t\tif (a === b)\n\t\t{\n\t\t\teq_push(a);\n\t\t\ti++;\n\t\t\tj++;\n\t\t\tcontinue;\n\t\t}\n\t\t// a < b\n\t\telse if (the_compare(a,b) == -1)\n\t\t{\n\t\t\tlt_push(a);\n\t\t\ti++;\n\t\t\tcontinue;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tgte_push(b);\n\t\t\tj++;\n\t\t\tcontinue;\n\t\t}\n\t}\n\t\n\tif (what_to_do == \"u\" || what_to_do == \"x\")\n\t{\n\t\t// add any remainders\n\t\tfor (; i<arr1.length; i++)\n\t\t\tout.push(arr1[i]);\n\t\tfor (; j<arr2.length; j++)\n\t\t\tout.push(arr2[j]);\n\t}\n\t\n\treturn out;\n}", "function fillArr(arr0,arr1,arrDim){var arr0Len=arr0.length;var arr1Len=arr1.length;if(arr0Len !== arr1Len){ // FIXME Not work for TypedArray\n var isPreviousLarger=arr0Len > arr1Len;if(isPreviousLarger){ // Cut the previous\n arr0.length = arr1Len;}else { // Fill the previous\n for(var i=arr0Len;i < arr1Len;i++) {arr0.push(arrDim === 1?arr1[i]:arraySlice.call(arr1[i]));}}} // Handling NaN value\n var len2=arr0[0] && arr0[0].length;for(var i=0;i < arr0.length;i++) {if(arrDim === 1){if(isNaN(arr0[i])){arr0[i] = arr1[i];}}else {for(var j=0;j < len2;j++) {if(isNaN(arr0[i][j])){arr0[i][j] = arr1[i][j];}}}}}", "function mergeXYArrays(arrX1, arrX2, arrY1, arrY2) {\n for (let i = 0; i < arrX2.length; i++) {\n if (!isNaN(arrX2[i] + arrY2[i])) {\n arrX1.push(arrX2[i]);\n arrY1.push(arrY2[i]);\n }\n }\n}", "function interpolateRawValues(data, precision, sourceValue, targetValue, percent) {\n\t var isAutoPrecision = precision == null || precision === 'auto';\n\t\n\t if (targetValue == null) {\n\t return targetValue;\n\t }\n\t\n\t if (typeof targetValue === 'number') {\n\t var value = interpolateNumber(sourceValue || 0, targetValue, percent);\n\t return round(value, isAutoPrecision ? Math.max(getPrecisionSafe(sourceValue || 0), getPrecisionSafe(targetValue)) : precision);\n\t } else if (typeof targetValue === 'string') {\n\t return percent < 1 ? sourceValue : targetValue;\n\t } else {\n\t var interpolated = [];\n\t var leftArr = sourceValue;\n\t var rightArr = targetValue;\n\t var length_1 = Math.max(leftArr ? leftArr.length : 0, rightArr.length);\n\t\n\t for (var i = 0; i < length_1; ++i) {\n\t var info = data.getDimensionInfo(i); // Don't interpolate ordinal dims\n\t\n\t if (info.type === 'ordinal') {\n\t // In init, there is no `sourceValue`, but should better not to get undefined result.\n\t interpolated[i] = (percent < 1 && leftArr ? leftArr : rightArr)[i];\n\t } else {\n\t var leftVal = leftArr && leftArr[i] ? leftArr[i] : 0;\n\t var rightVal = rightArr[i];\n\t var value = interpolateNumber(leftVal, rightVal, percent);\n\t interpolated[i] = round(value, isAutoPrecision ? Math.max(getPrecisionSafe(leftVal), getPrecisionSafe(rightVal)) : precision);\n\t }\n\t }\n\t\n\t return interpolated;\n\t }\n\t }", "function interpolateRawValues(data, precision, sourceValue, targetValue, percent) {\n var isAutoPrecision = precision == null || precision === 'auto';\n\n if (targetValue == null) {\n return targetValue;\n }\n\n if (typeof targetValue === 'number') {\n var value = Object(zrender_lib_animation_Animator__WEBPACK_IMPORTED_MODULE_3__[/* interpolateNumber */ \"c\"])(sourceValue || 0, targetValue, percent);\n return Object(_number__WEBPACK_IMPORTED_MODULE_2__[/* round */ \"t\"])(value, isAutoPrecision ? Math.max(Object(_number__WEBPACK_IMPORTED_MODULE_2__[/* getPrecisionSafe */ \"g\"])(sourceValue || 0), Object(_number__WEBPACK_IMPORTED_MODULE_2__[/* getPrecisionSafe */ \"g\"])(targetValue)) : precision);\n } else if (typeof targetValue === 'string') {\n return percent < 1 ? sourceValue : targetValue;\n } else {\n var interpolated = [];\n var leftArr = sourceValue;\n var rightArr = targetValue;\n var length_1 = Math.max(leftArr ? leftArr.length : 0, rightArr.length);\n\n for (var i = 0; i < length_1; ++i) {\n var info = data.getDimensionInfo(i); // Don't interpolate ordinal dims\n\n if (info.type === 'ordinal') {\n // In init, there is no `sourceValue`, but should better not to get undefined result.\n interpolated[i] = (percent < 1 && leftArr ? leftArr : rightArr)[i];\n } else {\n var leftVal = leftArr && leftArr[i] ? leftArr[i] : 0;\n var rightVal = rightArr[i];\n var value = Object(zrender_lib_animation_Animator__WEBPACK_IMPORTED_MODULE_3__[/* interpolateNumber */ \"c\"])(leftVal, rightVal, percent);\n interpolated[i] = Object(_number__WEBPACK_IMPORTED_MODULE_2__[/* round */ \"t\"])(value, isAutoPrecision ? Math.max(Object(_number__WEBPACK_IMPORTED_MODULE_2__[/* getPrecisionSafe */ \"g\"])(leftVal), Object(_number__WEBPACK_IMPORTED_MODULE_2__[/* getPrecisionSafe */ \"g\"])(rightVal)) : precision);\n }\n }\n\n return interpolated;\n }\n}", "function swap( array1, array2 ) {\n\t\tfor ( var i = 0; i < array1.length; i++ ) {\n\t\t\tvar swapIndex = ( array1.length -1 ) - i;\n\t\t\tvar array00 = array1[i][0];\n\t\t\tvar arrayStr = array1[i][1];\n\t\t\tconsole.log(\"arrayStr: \"+arrayStr);\n\t\t\tconsole.log(typeof(arrayStr));\n\t\t\tvar array01 = parseFloat( arrayStr );\n\t\t\t//var array01 = Math.round( arrayStr * 100 )/100;\n\t\t\tconsole.log(\"array01: \"+array01);\n\t\t\tconsole.log(typeof(array01));\n\t\t\tarray2[swapIndex] = [array00, array01];\n\t\t}\n\t\treturn array2;\n\t}//swap()-end", "interpolate_( /* i1, t0, t, t1 */ ) {\n\n\t\tthrow new Error( 'call to abstract method' );\n\t\t// implementations shall return this.resultBuffer\n\n\t}", "function interpolateArray(data, newSampleRate, oldSampleRate) {\n var fitCount = Math.round(data.length * (newSampleRate / oldSampleRate));\n //var newData = new Array();\n var newData = [];\n //var springFactor = new Number((data.length - 1) / (fitCount - 1));\n var springFactor = Number((data.length - 1) / (fitCount - 1));\n newData[0] = data[0]; // for new allocation\n for (var i = 1; i < fitCount - 1; i++) {\n var tmp = i * springFactor;\n //var before = new Number(Math.floor(tmp)).toFixed();\n //var after = new Number(Math.ceil(tmp)).toFixed();\n var before = Number(Math.floor(tmp)).toFixed();\n var after = Number(Math.ceil(tmp)).toFixed();\n var atPoint = tmp - before;\n newData[i] = linearInterpolate(data[before], data[after], atPoint);\n }\n newData[fitCount - 1] = data[data.length - 1]; // for new allocation\n return newData;\n }", "function compute(arr) // does not check for operation priorities\n{\n let tempArr = arr.map(x=>x);\n if (tempArr.length>2){\n let rslt = 'argtttt';\n if (tempArr[1]==='+') {\n rslt = add(tempArr[0],tempArr[2]);\n }\n else if (tempArr[1]==='-') {\n rslt = substract(tempArr[0],tempArr[2]);\n }\n tempArr.splice(0,3,rslt);\n return compute(tempArr);\n }\n else return tempArr[0];\n}", "function extrapolate(val, arr1, arr2) {\n var x1, x2, y1, y2;\n var pos = arr1.findIndex(function(element) {\n return val < element;\n });\n if (pos < 1) {\n x1 = arr1[0];\n x2 = arr1[1];\n y1 = arr2[0];\n y2 = arr2[1];\n } else if (pos > arr1.length - 1) {\n x1 = arr1[arr1.length - 2];\n x2 = arr1[arr1.length - 1];\n y1 = arr2[arr2.length - 2];\n y2 = arr2[arr2.length - 1];\n } else {\n x1 = arr1[pos - 1];\n x2 = arr1[pos];\n y1 = arr2[pos - 1];\n y2 = arr2[pos];\n }\n return y1 + (val - x1) * (y1 - y2) / (x1 - x2);\n}", "bypass(inBuffer, outBuffer){\n for (let i = 0; i < inBuffer.length; i++){\n outBuffer[i] = inBuffer[i];\n }\n }", "function arr_scaler( arr ) {\n\n var tmp_arr = [0, 0, 0, 0, 0, 0, 0];\n var sum_arr = 0;\n\n if ( arr.length === 0 ) {\n return -1;\n }\n\n /* Find sum of all elements in array */\n for ( var i = 0; i < arr.length; i++ ) {\n sum_arr = sum_arr + arr[i];\n }\n\n /* Scale original array elements from 0 - 1 */\n for ( var j = 0; j < arr.length; j++ ) {\n tmp_arr[j] = (arr[j] / sum_arr);\n }\n\n return tmp_arr;\n\n}", "function mixedNumbers(arr) {\r\n // Only change code below this line\r\n arr.unshift('I', 2,'three')\r\n arr.push(7, 'VIII', 9)\r\n // Only change code above this line\r\n return arr;\r\n}", "function update (arr, start, end) {\n\t\tif (typeof arr === 'number' || arr == null) {\n\t\t\tend = start;\n\t\t\tstart = arr;\n\t\t\tarr = null;\n\t\t}\n\t\t//update array, if passed one\n\t\telse {\n\t\t\tif (arr.length == null) throw Error('New data should be array[ish]')\n\n\t\t\t//reset lengths if new data is smaller\n\t\t\tif (arr.length < scales[0].length) {\n\t\t\t\tfor (let group = 2, idx = 1; group <= maxScale; group*=2, idx++) {\n\t\t\t\t\tlet len = Math.ceil(arr.length/group);\n\t\t\t\t\tscales[idx].length = len;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tscales[0] = arr;\n\t\t}\n\n\t\tif (start == null) start = 0;\n\t\tif (end == null) end = scales[0].length;\n\n\t\tstart = nidx(start, scales[0].length);\n\t\tend = nidx(end, scales[0].length);\n\n\t\tfor (let group = 2, idx = 1; group <= maxScale; group*=2, idx++) {\n\t\t\tlet scaleBuffer = scales[idx];\n\t\t\tlet prevScaleBuffer = scales[idx - 1];\n\t\t\tlet len = Math.ceil(end/group);\n\n\t\t\t//ensure size\n\t\t\tif (scaleBuffer.length < len) scaleBuffer.length = len;\n\n\t\t\tlet groupStart = Math.floor(start/group);\n\n\t\t\tfor (let i = groupStart; i < len; i++) {\n\t\t\t\tlet left = prevScaleBuffer[i*2];\n\t\t\t\tif (left === undefined) left = 0;\n\t\t\t\tlet right = prevScaleBuffer[i*2+1];\n\t\t\t\tif (right === undefined) right = left;\n\t\t\t\tscaleBuffer[i] = reduce(left, right, i*2, idx-1);\n\t\t\t}\n\t\t}\n\n\t\treturn scales;\n\t}", "function mixedNumbers(arr) {\n // Only change code below this line\narr.unshift('I', 2, 'three');\narr.push(7, 'VIII', 9);\n // Only change code above this line\n return arr;\n}", "function arr_decier( arr ) {\n\n var tmp_arr = [0, 0, 0, 0, 0, 0, 0];\n\n if ( arr.length === 0 ) {\n return -1;\n }\n\n for ( var i = 0; i < arr.length; i++ ) {\n // tmp_arr[i] = Math.round( arr[i] * 100 ) / 100;\n tmp_arr[i] = Math.round( arr[i] * 100 );\n }\n\n return tmp_arr;\n\n}", "function ZeroOutArrayNegativeVals(arr){\n}", "function treatArray(raw_arr)\n{\n var arr;\narr=sortArray(raw_arr)\narr=filterArray(arr)\nreturn arr\n}", "function _pre(){\n\tb2d.divPoints = b2d.divPts = b2d.vs = function () {\n\t\tvar g = G(arguments)\n\t\t//all this does is to 'scale down' a series of points\n\t\t//can pass in pts naked OR in an array\n\t\treturn _.m(\n\t\t\t\tg.s ? g : //passed in verts ([],[],[])\n\t\t\t\t\t\tg.f,\n\t\t\t\tb2d.div\n\t\t) //passed an array [[],[],[]]\n\t\t//b2d.div <- function div(v){return V(v).div()}\t\n\t}}", "function merge (arr1, arr2) {\n const ret = []\n\n for ( let i = 0 , j = 0; ret.length < (arr1.length + arr2.length); ) {\n if(arr1[i] < (typeof arr2[j] === 'undefined' ? Infinity : arr2[j])) {\n ret.push(arr1[i])\n i++\n }\n else {\n ret.push(arr2[j])\n j++\n }\n }\n return ret\n}", "function mixedNumbers(arr) {\n // change code below this line\narr.unshift('I', 2, 'three');\narr.push(7, 'VIII', 9);\n // change code above this line\n return arr;\n}", "function doubleTrouble(arr){\n var newArr = [];\n for(var i = 0; i < arr.length; i++){\n newArr.push(arr[i]);\n newArr.push(arr[i]);\n }\n arr = newArr;\n return arr;\n}", "function sk_linearInterpArray(arrayX, arrayY, x)\n{\n if( (arrayX.length * 1) != (arrayY.length * 1))\n throw \"Found arrayX to have length: \" + String(arrayX.length) + \" and arrayY to have length: \" \n + String(arrayY.length) + \". They need to have equal length.\";\n \n var indexBelow = -1;\n var indexAbove = -1;\n for( var i = 0; i < arrayX.length ; i++)\n {\n if (arrayX[i]*1 <= x) // multiply by 1 to force convertion to a Number.\n indexBelow = i;\n\n if ((arrayX[i]*1 > x) && (indexAbove == -1))\n indexAbove = i;\n\n if((i > 0) && ( arrayX[i]*1 <= arrayX[i-1])) \n throw \"For i = \" + String(i) + \" found arrayX[i] = \" + String(arrayX[i]) \n + \", which is not strictly greater than arrayX[i-1] = \" + String(arrayX[i-1]);\n }\n \n if(indexAbove == -1) // i.e. all arrayX[i]'s are below x \n return arrayY[indexBelow];\n\n if(indexBelow == -1) // i.e. all arrayX[i]'s are above x\n return arrayY[indexAbove];\n\n return sk_linearInterp(arrayX[indexBelow], arrayX[indexAbove], arrayY[indexBelow], arrayY[indexAbove], x);\n}", "function formatArray(arr)\n{\n try\n {\n return arr.toSource();\n }\n catch(e)\n {\n return toSource(arr);\n }\n}", "function setup() {\n for (var i = 0; i < arr.length - 1; i++)\n {\n var index = i;\n for (var j = i + 1; j < arr.length; j++)\n if (arr[j] < arr[index])\n index = j;\n \t\t // Swapping Code\n var smallerNumber = arr[index];\n arr[index] = arr[i];\n arr[i] = smallerNumber;\n }\n}", "function interpolateValues(values, year) {\n for (i in values) {\n if (year == values[i][0] && null != values[i][1]) {\n return values[i][1]\n }\n }\n return null\n }", "function arrayMapper(targetArr, operator, effect) {\n switch (operator){\n case \"+\":\n for (var i = 0; i < targetArr.length; i++){\n targetArr[i] += effect;\n }\n break;\n case \"-\":\n for (var i = 0; i < targetArr.length; i++){\n targetArr[i] -= effect;\n }\n break;\n case \"*\":\n for (var i = 0; i < targetArr.length; i++){\n targetArr[i] *= effect;\n }\n break;\n case \"/\":\n for (var i = 0; i < targetArr.length; i++){\n targetArr[i] /= effect;\n }\n break;\n case \"===\":\n for (var i = 0; i < targetArr.length; i++){\n if (targetArr[i] === effect){\n targetArr[i] = true;\n } else {\n targetArr[i] = false;\n }\n }\n break;\n }\n return targetArr\n}", "function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length);\n var lengthDiff = Math.abs(array1.length - array2.length);\n var diffs = 0;\n var i;\n for (i = 0; i < len; i++) {\n if ((dontConvert && array1[i] !== array2[i])\n || (!dontConvert && __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__type_checks__[\"a\" /* toInt */])(array1[i]) !== __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__type_checks__[\"a\" /* toInt */])(array2[i]))) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n}", "function interpolateX(y, y0, y1){\n return (y - y0) / (y1 - y0);\n }", "function interpolateX(y, y0, y1){\n return (y - y0) / (y1 - y0);\n }", "function interpolateValues(values, year) {\n var i = bisect.right(values, year, 0, values.length - 1),\n a = values[i];\n if (i > 0) {\n var b = values[i - 1],\n t = (year - a[0]) / (b[0] - a[0]);\n if (b[1] == 0) { return 0; }\n else { return a[1] * (1 - t) + b[1] * t; }\n }\n return a[1];\n }", "function coalesceInPlace(array) {\n if (!array) {\n return;\n }\n\n var to = 0;\n\n for (var i = 0; i < array.length; i++) {\n if (!!array[i]) {\n array[to] = array[i];\n to += 1;\n }\n }\n\n array.length = to;\n}", "function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if ((dontConvert && array1[i] !== array2[i]) ||\n (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }", "function bouncerFor(arr) {\n let newArr = [];\n for (let i=0; i<arr.length; i++){\n if (arr[i]){\n newArr.push(arr[i]);\n }\n }\n return newArr;\n}", "function SwapStringForArrayNegativeVals(arr){\n}", "function evaluate1(numArr, opArr) {\n const left = evalPair(parseFloat(numArr[0]),parseFloat(numArr[1]),opArr[0]);\n const right = evalPair(parseFloat(numArr[2]),parseFloat(numArr[3]),opArr[2]);\n \n return evalPair(left,right,opArr[1]);\n}", "function concatArrays (arr1, arr2) {\n return;\n}", "function mixingArrays(a,b){\r\n var und = 'undefined';\r\n\tvar mixedArray = [];\r\n\tvar mixedArrayPos = 0;\r\n//if A is longer than B i'll check for the end of B to stop writing undefined B positions.\r\n\tif(a.length >= b.length){\r\n\t\tfor(var i=0, alen=a.length; i < alen;i++){\r\n\t\t\tmixedArray[mixedArrayPos] = a[i];\r\n\t\t\tmixedArrayPos++;\r\n//checking if we reach the end of B, if not we should write the element\r\n\t\t\tif (typeof b[i] != und){\r\n\t\t\t\tmixedArray[mixedArrayPos] = b[i];\r\n\t\t\t\tmixedArrayPos++;\r\n\t\t\t}\r\n\t\t}\t\r\n\t} else {\r\n//if B is longer than A we check for the end of A to stop writing undefined B positions.\r\n\t\tfor(var j=0, blen=b.length; j < blen;j++){\r\n//checking if we reach the end of A, if not we write the element\r\n\t\t\tif (typeof a[j] != und){\r\n\t\t\t\tmixedArray[mixedArrayPos] = a[j];\r\n\t\t\t\tmixedArrayPos++;\r\n\t\t\t}\r\n\t\t\tmixedArray[mixedArrayPos] = b[j];\r\n\t\t\tmixedArrayPos++;\r\n }\r\n\t}\r\n\treturn mixedArray;\r\n}", "function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if ((dontConvert && array1[i] !== array2[i]) ||\n (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }", "function mutation(arr) {\n let convertArr1 = arr[0].toLowerCase();\n let convertArr2 = arr[1].toLowerCase();\n\n for (let i = 0; i < convertArr2.length; i++) {\n if (convertArr1.indexOf(convertArr2[i]) < 0) {\n return false\n }\n }\n return true\n}", "function prepend(arr, other) {\n while (arr.length < fullLength) {\n\n // Move to, line to or curve to?\n arr[0] = other[fullLength - arr.length];\n\n // Prepend a copy of the first point\n insertSlice(arr, arr.slice(0, numParams), 0);\n\n // For areas, the bottom path goes back again to the left, so we need\n // to append a copy of the last point.\n if (isArea) {\n insertSlice(arr, arr.slice(arr.length - numParams), arr.length);\n i--;\n }\n }\n arr[0] = 'M';\n }", "function bouncer(arr) {\n let newArray = [];\n for (let i = 0; i < arr.length; i++) {\n if (arr[i]) newArray.push(arr[i]);\n }\n return newArray;\n}", "function merge(arr1,arr2, comparator){\n// take two arrays\nif(arr1.length<=0||arr2.length<=0){return console.warn('provide valid array')}\nlet resArr=[], i=0,j=0,end=true;\n\n\ncomparator= comparator!==undefined?comparator:baseCkeck\n//let resComp=comparator!==undefined?comparator(arr1[i],arr2[j]):baseCheck(arr1[i]>arr2[j])\nwhile(end){\n if(i>=arr1.length-1&&j>=arr2.length-1){\n end=false\n }\n if(comparator(arr1[i],arr2[j])<0){\n resArr.push(arr1[i])\n i++\n }\n else if(comparator(arr1[i],arr2[j])>0){\n resArr.push(arr2[j])\n j++\n }\n else if(comparator(arr1[i],arr2[j])===0){\n resArr.push(arr1[i])\n resArr.push(arr2[j])\n i++\n j++\n }\n //end condition\n if(i===arr1.length){\n for(j;j<arr2.length;j++){\n resArr.push(arr2[j])\n end=false\n }\n }else if(j===arr2.length){\n for(i;i<arr1.length;i++){\n resArr.push(arr1[i])\n }\n end=false\n }\n}\nreturn resArr\n}", "function number_update(array1, array2) {\n var array_output = [];\n var str_output = '';\n for (i = 0; i < array1.length; i++) {\n if (array2.length < array1.length) {\n if (array2[0] > 9) throw \"number in array2 must be < 10\";\n if (array2[0] < -9) throw \"number in array2 must be > -10\";\n var correct_num = array1[i] + array2[0]; // if array2 is shorter than array1, always add the first element of array2 to each element in array1\n } else if (array1.length == array2.length) {\n if (array2[i] > 9) throw \"number in array2 must be < 10\";\n if (array2[i] < -9) throw \"number in array2 must be > -10\";\n var correct_num = array1[i] + array2[i];\n };\n if (correct_num < 0) {\n correct_num += 10;\n } else if (correct_num > 9) {\n correct_num -= 10;\n }\n str_output = str_output.concat(correct_num.toString()); // concat string integers\n array_output.push(correct_num);\n }\n return [array_output, str_output]\n}", "function concat(arr, arr2) {\n const result = [];\n const aLen = arr.length;\n const bLen = arr2.length;\n\n // 2개 포인터\n let point1 = 0;\n let point2 = 0;\n\n // for 문을 쓸 수는 없을 것 같다. for 문은 모든 경우의 수를 다 탐색 1 -> 2, 3, 6, 7, 9 / 3 -> 2, 3, 6, 7, 9\n\n while (point1 < aLen && point2 < bLen) {\n\n if (arr[point1] <= arr2[point2]) {\n result.push(arr[point1]);\n point1++;\n } else {\n result.push(arr2[point2]);\n point2++;\n }\n }\n\n // 1번째 배열 나머지 값 처리\n while (point1 < aLen) {\n\t\tresult.push(arr[point1]);\n\t\tpoint1++;\n\t}\n\n // 2번째 배열 나머지 값 처리\n while (point2 < bLen) {\n result.push(arr2[point2]);\n point2++;\n }\n\n return result;\n}", "static div(array1, array2) {\n if (!Array.isArray(array2)) {\n array2 = Kbase_1.Kbase.repeat(array2, array1.length);\n }\n let div = [];\n if (array1.length === array2.length) {\n //div only when two arraies have the save length\n for (let i = 0; i < array1.length; i++) {\n if (array2[i] === undefined || isNaN(array2[i]) || array2[i] === 0 || array1[i] === undefined || isNaN(array1[i])) {\n //illegal oprand check\n div.push(NaN);\n }\n else {\n div.push(array1[i] / array2[i]);\n }\n }\n }\n else {\n throw new Error(\"must have the same length\");\n }\n return div;\n }", "function merge(arr1, arr2) {\n return arr1.length === 0\n ? arr2\n : arr2.length === 0\n ? arr1\n : is_earlier(arr1[0], arr2[0])\n ? [arr1[0]].concat(merge(arr1.splice(1), arr2))\n : [arr2[0]].concat(merge(arr1, arr2.splice(1)));\n }", "function normalizeValue(val, ind) {\n var i;\n\n if (typeof val === 'function') {\n return Array.isArray(ind) ? ind.map(val) : val(ind);\n }\n if (!Array.isArray(val)) { return utils.singleMissing(val); }\n for (i = 0; i < val.length; i += 1) { val[i] = utils.singleMissing(val[i]); }\n return val;\n }", "function compareArrays(array1, array2, dontConvert) {\n\t var len = Math.min(array1.length, array2.length),\n\t lengthDiff = Math.abs(array1.length - array2.length),\n\t diffs = 0,\n\t i;\n\t for (i = 0; i < len; i++) {\n\t if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {\n\t diffs++;\n\t }\n\t }\n\t return diffs + lengthDiff;\n\t }", "function compareArrays(array1, array2, dontConvert) {\n\t var len = Math.min(array1.length, array2.length),\n\t lengthDiff = Math.abs(array1.length - array2.length),\n\t diffs = 0,\n\t i;\n\t for (i = 0; i < len; i++) {\n\t if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {\n\t diffs++;\n\t }\n\t }\n\t return diffs + lengthDiff;\n\t }", "function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if ((dontConvert && array1[i] !== array2[i]) ||\n (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }", "function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if ((dontConvert && array1[i] !== array2[i]) ||\n (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }", "function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if ((dontConvert && array1[i] !== array2[i]) ||\n (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }", "function interpolateArrays(entries, v) {\n var current = entries[0];\n if (v <= current[0]) {\n return current.slice(1);\n }\n\n var i = 1;\n var next;\n while ((next = entries[i++])) {\n if (v <= next[0]) {\n // interpolate\n var p = (v - current[0]) / (next[0] - current[0]);\n var interpolated = [];\n var length = Math$max(current.length, next.length);\n for (var j = 1; j < current.length; j++) {\n interpolated.push((current[j] || 0) + p * ((next[j] || 0) - (current[j] || 0)));\n }\n return interpolated;\n }\n current = next;\n }\n\n return current.slice(1);\n}", "function arrayPlusArray(arr1, arr2) {\n let sum1 = arr1.reduce(function (a, b) {\n return a + b;\n }, 0);\n\n let sum2 = arr2.reduce(function (a, b) {\n return a + b;\n }, 0);\n return sum1 + sum2; //something went wrong\n}", "__convert_2D_to_1D(data) {\n let new_data = []\n data.map(val => {\n if (this.__is_object(val)) {\n new_data.push(JSON.stringify(val))\n } else {\n new_data.push(`${val}`)\n\n }\n })\n return new_data\n }", "_set_value_from_arr(v) {\n if (v === null) { \n if (this.v.r === null)\n return false\n this.v.r = null; this.v.g = null; this.v.b = null; this.v.alpha = null; this.v.alphai = null\n return true\n }\n const r = color_comp_clamp(v[0])\n const g = color_comp_clamp(v[1])\n const b = color_comp_clamp(v[2])\n let alpha, alphai\n if (v.length === 3) { // expr result can be either vec3 or vec4\n alphai = 255\n alpha = 1\n }\n else {\n alphai = color_comp_clamp(v[3])\n alpha = this.v.alphai/255\n } \n if (this.v.r == r && this.v.g == g && this.v.b == b && this.v.alphai == alphai)\n return false\n this.v.r = r; this.v.g = g; this.v.b = b; this.v.alpha = alpha; this.v.alphai = alphai\n return true\n }", "function bouncer(arr) {\r\n let newArray = [];\r\n for (let i = 0; i < arr.length; i++) {\r\n if (arr[i]) newArray.push(arr[i]);\r\n }\r\n return newArray;\r\n}", "function _interpolate(a, b, t) {\n\t return ((1 - t) * a) + (t * b);\n\t }", "function inverti_coordinate(array,coordinata1,coordinata2){\n for(var i=0;i<array.length;i++){\n //inverto x e y\n if(coordinata1 === 0 && coordinata2 === 1 || coordinata1 === 1 && coordinata2 === 0){\n var a_supp = array[i][0];\n array[i][0] = array[i][1];\n array[i][1] = a_supp ;\n }\n else if(coordinata1 === 0 && coordinata2 === 2 || coordinata1 === 2 && coordinata2 === 0){\n var a_supp = array[i][0];\n array[i][0] = array[i][2];\n array[i][2] = a_supp ;\n }\n else if(coordinata1 === 2 && coordinata2 === 1 || coordinata1 === 1 && coordinata2 === 2){\n var a_supp = array[i][2];\n array[i][2] = array[i][1];\n array[i][1] = a_supp ;\n }\n\n else\n console.log(\"coordinata errata\");\n }\n return array;\n}", "function interpolateValues(values, year) {\n var i = bisect.left(values, year, 0, values.length - 1),\n a = values[i];\n if (i > 0) {\n var b = values[i - 1],\n t = (year - a[0]) / (b[0] - a[0]);\n return a[1] * (1 - t) + b[1] * t;\n }\n return a[1];\n }", "function interpolateValues(values, year) {\n var i = bisect.left(values, year, 0, values.length - 1),\n a = values[i];\n if (i > 0) {\n var b = values[i - 1],\n t = (year - a[0]) / (b[0] - a[0]);\n return a[1] * (1 - t) + b[1] * t;\n }\n return a[1];\n }", "function interpolateValues(values, year) {\n var i = bisect.left(values, year, 0, values.length - 1),\n a = values[i];\n if (i > 0) {\n var b = values[i - 1],\n t = (year - a[0]) / (b[0] - a[0]);\n return a[1] * (1 - t) + b[1] * t;\n }\n return a[1];\n }", "function interpolateValues(values, year) {\n let i = bisect.left(values, year, 0, values.length - 1),\n a = values[i];\n if (i > 0) {\n let b = values[i - 1],\n t = (year - a[0]) / (b[0] - a[0]);\n return a[1] * (1 - t) + b[1] * t;\n }\n return a[1];\n }", "radiansArraytoPositivePeriodicFractions(data) {\n const n = data.length;\n for (let i = 0; i < n; i++) {\n data.reassign(i, this.radiansToPositivePeriodicFraction(data.at(i)));\n }\n }", "function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (\n (dontConvert && array1[i] !== array2[i]) ||\n (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))\n ) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }", "function minAvgTwoSlice(arr) {\n let index = null\n let arrAverage = [arr[0]]\n for (let i = 1; i < arr.length; i++) {\n\n }\n}", "convertColorSpace(output, arr, destColorSpace) {\n\t\tconst width = arr.shape[0];\n\t\tconst height = arr.shape[1];\n\t\tlet x = 0;\n\t\tlet y = 0;\n\n\t\tlet r = 0;\n\t\tlet g = 0;\n\t\tlet b = 0;\n\n\t\tlet co = 0;\n\t\tlet tmp = 0;\n\t\tlet cg = 0;\n\t\tlet luma = 0;\n\t\t\n\t\t// Necessary duplication of inner loop for optimization\n\t\t// One check on the outside vs checks at each inner loop\n\t\tif (destColorSpace == 'YCoCg') {\n\t\t\tfor (x = 0; x < width; x++) {\n\t\t\t\tfor (y = 0; y < height; y++) {\n\t\t\t\t\tr = arr.get(x, y, 0);\n\t\t\t\t\tg = arr.get(x, y, 1);\n\t\t\t\t\tb = arr.get(x, y, 2);\n\t\t\t\t\ttmp = (r + b) >> 2;\n\t\t\t\t\tluma = (g >> 1) + tmp;\n\t\t\t\t\tco = 128 + ((r >> 1) - (b >> 1));\n\t\t\t\t\tcg = 128 + (g >> 1) - tmp;\n\t\t\t\t\toutput.set(x, y, 0, luma);\n\t\t\t\t\toutput.set(x, y, 1, co);\n\t\t\t\t\toutput.set(x, y, 2, cg);\n\t\t\t\t\toutput.set(x, y, 3, 255);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (destColorSpace == 'RGB') {\n\t\t\tfor (x = 0; x < width; x++) {\n\t\t\t\tfor (y = 0; y < height; y++) {\n\t\t\t\t\tluma = arr.get(x, y, 0);\n\t\t\t\t\tco = arr.get(x, y, 1) - 128;\n\t\t\t\t\tcg = arr.get(x, y, 2) - 128;\n\t\t\t\t\tr = luma - cg + co;\n\t\t\t\t\tg = luma + cg;\n\t\t\t\t\tb = luma - cg - co;\n\t\t\t\t\toutput.set(x, y, 0, r);\n\t\t\t\t\toutput.set(x, y, 1, g);\n\t\t\t\t\toutput.set(x, y, 2, b);\n\t\t\t\t\toutput.set(x, y, 3, 255);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow Error('Unrecognized color space' + destColorSpace);\n\t\t}\n\n\t\treturn output;\n\t}", "function mergingTripletsAndQuints(array1, array2) {\n\t// ADD CODE HERE\n\t// EDGE CASE:\n\t// if the lengths of both arrays doesn't equal each other\n\tif (array1.length !== array2.length) {\n\t\t// return []\n\t\treturn [];\n\t}\n\t// create a result array copy of array1\n\tlet result = array1.slice();\n\t// iterate through the array1\n\tfor (let i = 0; i < array1.length; i++) {\n\t\t// if the element is divisble by 3 or 5\n\t\tif (array1[i] % 3 === 0 || array1[i] % 5 === 0) {\n\t\t\t// then at the index of result add the two elements\n\t\t\tresult[i] = array1[i] + array2[i];\n\t\t}\n\t}\n\t// return result array\n\treturn result;\n}", "function doubleTrouble(arr){\n var newArray = [];\n for (var i=0; i<arr.length; i++) {\n newArray.push(arr[i], arr[i])\n }\n return newArray;\n}", "function bouncer(arr) {\n // let arr1mod;\n // arr.forEach((e,i)=> {\n // // if (!e) {\n // // console.log('false ' + e)\n // // // arr.filter(x=> x == false)\n // // } else {\n // // console.log('true ' + e)\n // // }\n // if (!e) {\n // arr1mod = arr.filter(x=> x == e)\n // }\n // })\n // return arr1mod;\n let arr1mod;\n arr.forEach((e,i)=> {\n\n if (!e || e == 0 || e == undefined || e == \"\" || e == NaN || e == e) {\n arr1mod = arr.filter(x=> x)\n }\n })\n return arr1mod;\n\n}", "function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }", "function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }", "function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }", "function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }", "function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }", "function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }", "function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }", "function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }", "function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }", "function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }", "function compareArrays(array1, array2, dontConvert) {\n\t var len = Math.min(array1.length, array2.length),\n\t lengthDiff = Math.abs(array1.length - array2.length),\n\t diffs = 0,\n\t i;\n\t for (i = 0; i < len; i++) {\n\t if ((dontConvert && array1[i] !== array2[i]) ||\n\t (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {\n\t diffs++;\n\t }\n\t }\n\t return diffs + lengthDiff;\n\t }" ]
[ "0.6116968", "0.56331503", "0.53370744", "0.5176731", "0.5164284", "0.5164284", "0.51372236", "0.51000935", "0.508971", "0.5086835", "0.5077008", "0.5048154", "0.504141", "0.5031001", "0.5022402", "0.4969825", "0.49393553", "0.48832396", "0.4880707", "0.4873582", "0.48699877", "0.48651975", "0.48600295", "0.4859682", "0.48552176", "0.48409438", "0.48390764", "0.48352078", "0.4833358", "0.4830516", "0.48238164", "0.48232365", "0.48166475", "0.47985005", "0.47935218", "0.4763707", "0.47615758", "0.4758609", "0.4758609", "0.47548962", "0.47417277", "0.47363842", "0.47356224", "0.47347572", "0.47179297", "0.47166026", "0.471539", "0.47083974", "0.47076708", "0.47062045", "0.47038284", "0.4702868", "0.47018653", "0.46973675", "0.46954775", "0.4693192", "0.46864223", "0.46826425", "0.46826425", "0.4680956", "0.4680956", "0.4680956", "0.4677936", "0.46746102", "0.46724224", "0.4661971", "0.46610343", "0.46602485", "0.46590656", "0.4658164", "0.4658164", "0.4658164", "0.46580777", "0.46567082", "0.46562484", "0.46513227", "0.4649895", "0.46408844", "0.463755", "0.46375066", "0.46338105", "0.46338105", "0.46338105", "0.46338105", "0.46338105", "0.46338105", "0.46338105", "0.46338105", "0.46338105", "0.46338105", "0.46309122" ]
0.51098967
16
Prepare dataIndex for outside usage, where dataIndex means rawIndex, and dataIndexInside means filtered index.
function makeHighDownBatch(batch, visualMapModel) { zrUtil.each(batch || [], function (batchItem) { if (batchItem.dataIndex != null) { batchItem.dataIndexInside = batchItem.dataIndex; batchItem.dataIndex = null; } batchItem.highlightKey = 'visualMap' + (visualMapModel ? visualMapModel.componentIndex : ''); }); return batch; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function createInternalItemsSource() {\n internalItemsSource = options.itemsSource;\n internalItemsSource = setupSorting(internalItemsSource);\n internalItemsSource = setupFilters(internalItemsSource);\n internalItemsSource = setupIndex(internalItemsSource);\n }", "function createInternalItemsSource() {\n internalItemsSource = options.itemsSource;\n internalItemsSource = setupSorting(internalItemsSource);\n internalItemsSource = setupFilters(internalItemsSource);\n internalItemsSource = setupIndex(internalItemsSource);\n }", "function updateCache(dataIndexInside) {\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n\n if (currDirty) {\n currItemModel = data.getItemModel(dataIndexInside);\n currLabelNormalModel = currItemModel.getModel(LABEL_NORMAL);\n currLabelEmphasisModel = currItemModel.getModel(LABEL_EMPHASIS);\n currVisualColor = data.getItemVisual(dataIndexInside, 'color');\n currDirty = false;\n }\n }", "function updateCache(dataIndexInside) {\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n\n if (currDirty) {\n currItemModel = data.getItemModel(dataIndexInside);\n currLabelNormalModel = currItemModel.getModel(LABEL_NORMAL);\n currLabelEmphasisModel = currItemModel.getModel(LABEL_EMPHASIS);\n currVisualColor = data.getItemVisual(dataIndexInside, 'color');\n currDirty = false;\n }\n }", "function updateCache(dataIndexInside) {\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n\n if (currDirty) {\n currItemModel = data.getItemModel(dataIndexInside);\n currLabelNormalModel = currItemModel.getModel(LABEL_NORMAL);\n currLabelEmphasisModel = currItemModel.getModel(LABEL_EMPHASIS);\n currVisualColor = data.getItemVisual(dataIndexInside, 'color');\n currDirty = false;\n }\n }", "function updateCache(dataIndexInside) {\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n\n if (currDirty) {\n currItemModel = data.getItemModel(dataIndexInside);\n currLabelNormalModel = currItemModel.getModel(LABEL_NORMAL);\n currLabelEmphasisModel = currItemModel.getModel(LABEL_EMPHASIS);\n currLabelValueDim = findLabelValueDim(data);\n currVisualColor = data.getItemVisual(dataIndexInside, 'color');\n currDirty = false;\n }\n }", "function updateCache(dataIndexInside) {\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n\n if (currDirty) {\n currItemModel = data.getItemModel(dataIndexInside);\n currLabelNormalModel = currItemModel.getModel(LABEL_NORMAL);\n currLabelEmphasisModel = currItemModel.getModel(LABEL_EMPHASIS);\n currLabelValueDim = findLabelValueDim(data);\n currVisualColor = data.getItemVisual(dataIndexInside, 'color');\n currDirty = false;\n }\n }", "function updateCache(dataIndexInside) {\n dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n\n if (currDirty) {\n currItemModel = data.getItemModel(dataIndexInside);\n currLabelNormalModel = currItemModel.getModel(LABEL_NORMAL);\n currLabelEmphasisModel = currItemModel.getModel(LABEL_EMPHASIS);\n currLabelValueDim = findLabelValueDim(data);\n currVisualColor = data.getItemVisual(dataIndexInside, 'color');\n currDirty = false;\n }\n }", "function updateCache(dataIndexInside) {\n\t dataIndexInside == null && (dataIndexInside = currDataIndexInside);\n\t if (currDirty) {\n\t currItemModel = data.getItemModel(dataIndexInside);\n\t currLabelNormalModel = currItemModel.getModel(LABEL_NORMAL);\n\t currLabelEmphasisModel = currItemModel.getModel(LABEL_EMPHASIS);\n\t currLabelValueDim = labelHelper.findLabelValueDim(data);\n\t currVisualColor = data.getItemVisual(dataIndexInside, 'color');\n\n\t currDirty = false;\n\t }\n\t }", "static GetDataAdaptorFromIndex(dataElement, niType, options) {\n switch (niType.getName()) {\n case NITypeNames.BOOLEAN:\n return new NationalInstruments.PackedData.NIPackedValueAdaptor(new NationalInstruments.PackedData.PackedBooleanValue().__init(dataElement.bb_pos, dataElement.bb), niType, options);\n case NITypeNames.UINT8:\n return new NationalInstruments.PackedData.NIPackedValueAdaptor(new NationalInstruments.PackedData.PackedUInt8Value().__init(dataElement.bb_pos, dataElement.bb), niType, options);\n case NITypeNames.UINT16:\n return new NationalInstruments.PackedData.NIPackedValueAdaptor(new NationalInstruments.PackedData.PackedUInt16Value().__init(dataElement.bb_pos, dataElement.bb), niType, options);\n case NITypeNames.UINT32:\n return new NationalInstruments.PackedData.NIPackedValueAdaptor(new NationalInstruments.PackedData.PackedUInt32Value().__init(dataElement.bb_pos, dataElement.bb), niType, options);\n case NITypeNames.UINT64:\n return new NationalInstruments.PackedData.NIPackedValueAdaptor(new NationalInstruments.PackedData.PackedUInt64Value().__init(dataElement.bb_pos, dataElement.bb), niType, options);\n case NITypeNames.INT8:\n return new NationalInstruments.PackedData.NIPackedValueAdaptor(new NationalInstruments.PackedData.PackedInt8Value().__init(dataElement.bb_pos, dataElement.bb), niType, options);\n case NITypeNames.INT16:\n return new NationalInstruments.PackedData.NIPackedValueAdaptor(new NationalInstruments.PackedData.PackedInt16Value().__init(dataElement.bb_pos, dataElement.bb), niType, options);\n case NITypeNames.INT32:\n return new NationalInstruments.PackedData.NIPackedValueAdaptor(new NationalInstruments.PackedData.PackedInt32Value().__init(dataElement.bb_pos, dataElement.bb), niType, options);\n case NITypeNames.INT64:\n return new NationalInstruments.PackedData.NIPackedValueAdaptor(new NationalInstruments.PackedData.PackedInt64Value().__init(dataElement.bb_pos, dataElement.bb), niType, options);\n case NITypeNames.SINGLE:\n return new NationalInstruments.PackedData.NIPackedValueAdaptor(new NationalInstruments.PackedData.PackedFloat32Value().__init(dataElement.bb_pos, dataElement.bb), niType, options);\n case NITypeNames.DOUBLE:\n return new NationalInstruments.PackedData.NIPackedValueAdaptor(new NationalInstruments.PackedData.PackedFloat64Value().__init(dataElement.bb_pos, dataElement.bb), niType, options);\n case NITypeNames.STRING:\n return new NationalInstruments.PackedData.NIPackedValueAdaptor(new NationalInstruments.PackedData.PackedStringValue().__init(dataElement.bb_pos, dataElement.bb), niType, options);\n case NITypeNames.CLUSTER:\n return new NationalInstruments.PackedData.NIPackedClusterDataAdaptor(new NationalInstruments.PackedData.PackedGenericClusterValue(dataElement.bb_pos, dataElement.bb), niType, options);\n case NITypeNames.ARRAY:\n return new NationalInstruments.PackedData.NIPackedArrayDataAdaptor(new NationalInstruments.PackedData.PackedArrayValue().__init(dataElement.bb_pos, dataElement.bb), niType, options);\n case NITypeNames.COMPLEXSINGLE:\n return new NationalInstruments.PackedData.NIPackedComplexSingleAdaptor(new NationalInstruments.PackedData.PackedComplexFloat32Value().__init(dataElement.bb_pos, dataElement.bb), niType, options);\n case NITypeNames.COMPLEXDOUBLE:\n return new NationalInstruments.PackedData.NIPackedComplexDoubleAdaptor(new NationalInstruments.PackedData.PackedComplexFloat64Value().__init(dataElement.bb_pos, dataElement.bb), niType, options);\n case NITypeNames.TIMESTAMP:\n return new NationalInstruments.PackedData.NIPackedTimestampAdaptor(new NationalInstruments.PackedData.PackedTimestampValue().__init(dataElement.bb_pos, dataElement.bb), niType, options);\n case NITypeNames.ANALOGWAVEFORM:\n return new NationalInstruments.PackedData.NIPackedWaveformAdaptor(new NationalInstruments.PackedData.PackedWaveformValue().__init(dataElement.bb_pos, dataElement.bb), niType, options);\n }\n return undefined;\n }", "parseData (index) {\n // Used in conditional.\n let data = cloneDeep(this.props.data)\n\n // Ensure index exists.\n if (utils.exists(index)) {\n let field = this.props.columns[index].field\n\n // Loop through data.\n data = sortBy(data, function (arr) {\n return arr[field]\n })\n\n // Reverse direction?\n if (this.state.sortDirection === 'desc') {\n data.reverse()\n }\n }\n\n const pageCurrent = this.state.pageCurrent\n const pageSize = this.props.pageSize\n const start = pageCurrent * pageSize\n const end = start + pageSize\n\n if (pageSize) {\n data = data.slice(start, end)\n }\n\n return data\n }", "filterRef(event) {\n var mode = event.data.mode;\n var data = this.getValueToLoadData();\n if (mode == 1) {\n data.OffsetRow = 0;\n }\n if ($(event.currentTarget).attr(\"filtername\") == \"RefType\") {\n\n } else {\n this.loadDataMaster(data);\n }\n }", "prepareData(newData = null, idField = null, rebuild = false, displayfield = null) {\n\t\t// The data will be inmutable inside the component\n\t\tlet data = newData || this.props.data, index = 0, rdataIndex = 0, idSet = new Set(), field = idField || this.state.idField, fieldValue;\n\t\tlet indexed = [], parsed = [], rawdata, hasNulls = false;\n\n\t\t// If not Immutable.\n\t\t// If an Immutable is received in props.data at the components first building the component will work with that data. In that case\n\t\t// the component should get indexed and rawdata in props. It's up to the developer if he / she wants to work with data from outside\n\t\t// but it's important to keep in mind that you need a similar data structure (_selected, _rowIndex, idField...)\n\t\tif (!Immutable.Iterable.isIterable(data) || rebuild) {\n\t\t\tdata = Immutable.fromJS(data); // If data it's already Immutable the method .fromJS return the same object\n\n\t\t\t// Parsing data to add new fields (selected or not, field, rowIndex)\n\t\t\tparsed = data.map(row => {\n\t\t\t\tfieldValue = row.get(field, false);\n\n\t\t\t\tif (!fieldValue) {\n\t\t\t\t\tfieldValue = _.uniqueId();\n\t\t\t\t}\n\n\t\t\t\t// No rows with same idField. The idField must be unique and also don't render the empty values\n\t\t\t\tif (!idSet.has(fieldValue) && fieldValue !== '' && row.get(displayfield, '') !== '') {\n\t\t\t\t\tidSet.add(fieldValue);\n\t\t\t\t\trow = row.set(field, fieldValue.toString());\n\n\t\t\t\t\tif (!row.get('_selected', false)) {\n\t\t\t\t\t\trow = row.set('_selected', false);\n\t\t\t\t\t}\n\n\t\t\t\t\trow = row.set('_rowIndex', index++); // data row index\n\t\t\t\t\trow = row.set('_rawDataIndex', rdataIndex++); // rawData row index\n\n\t\t\t\t\treturn row;\n\t\t\t\t}\n\n\t\t\t\trdataIndex++; // add 1 to jump over duplicate values\n\t\t\t\thasNulls = true;\n\t\t\t\treturn null;\n\t\t\t});\n\n\t\t\t// Clear null values if exist\n\t\t\tif (hasNulls) {\n\t\t\t\tparsed = parsed.filter(element => !_.isNull(element));\n\t\t\t}\n\n\t\t\t// Prepare indexed data.\n\t\t\tindexed = _.indexBy(parsed.toJSON(), field);\n\n\t\t} else { // In case received Inmutable data, indexed data and raw data in props.\n\t\t\tdata = this.props.rawdata;\n\t\t\tparsed = this.props.data;\n\t\t\tindexed = this.props.indexed;\n\t\t}\n\n\n\t\treturn {\n\t\t\trawdata: data,\n\t\t\tdata: parsed,\n\t\t\tindexed: indexed\n\t\t};\n\t}", "function testTree_IndexRangeScan_CrossColumnIndex_Unaffected() {\n var treeBefore =\n 'project()\\n' +\n '-order_by(DummyTable.string ASC, DummyTable.number DESC)\\n' +\n '--select(value_pred(DummyTable.boolean eq false))\\n' +\n '---table_access_by_row_id(DummyTable)\\n' +\n '----index_range_scan(DummyTable.pkDummyTable, ' +\n '[unbound, unbound],[unbound, 10], natural)\\n';\n\n var rootNodeBefore = constructTree3(lf.Order.ASC, lf.Order.DESC);\n assertEquals(treeBefore, lf.tree.toString(rootNodeBefore));\n\n var pass = new lf.proc.OrderByIndexPass(hr.db.getGlobal());\n var rootNodeAfter = pass.rewrite(rootNodeBefore);\n assertEquals(treeBefore, lf.tree.toString(rootNodeAfter));\n}", "processIndex(indexName) {\n if (!this.isSchemaAttached) return;\n\n check(indexName, String);\n var index = this.getIndexDatum(indexName);\n\n if (index && this.collection) {\n //the index has already been attached. We can proceed.\n var self = this;\n Meteor.startup(function() {\n if (index.needsDrop) {\n SchemaIndex.dropIndex(self.collection, indexName);\n }\n\n if (index.needsBuild) {\n SchemaIndex.ensureIndex(self.collection, indexName, index.fields,\n index.options\n );\n }\n }\n );\n }\n }", "function addDataToIndex(data){\n\t\t\t\t\t\tif ($scope.mmShowType) {\n\t\t\t\t\t\t\tcreateIndexWithType(data);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcreateIndex(data);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcreateTypedModel();\n\t\t\t\t\t\tif(!$scope.mmModel.fullObjects){\n\t\t\t\t\t\t\t$scope.mmModel.fullObjects = {};\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "resetIndex() {\n var n = this.data.intervalls.length; \n var index = Array.apply(null, {length: n}).map(Number.call, Number)\n\n this.upsertColumn(\"index\", index);\n\n return true;\n }", "bindLocalOnFilter(grid, dataView) {\n this._filtersMetadata = [];\n this._dataView = dataView;\n dataView.setFilterArgs({ columnFilters: this._columnFilters, grid: this._grid, dataView });\n dataView.setFilter(this.customLocalFilter.bind(this));\n this._eventHandler.subscribe(this._onSearchChange, (e, args) => {\n const columnId = args.columnId;\n if (columnId != null) {\n dataView.refresh();\n }\n // emit an onFilterChanged event when it's not called by a clear filter\n if (args && !args.clearFilterTriggered) {\n this.emitFilterChanged(EmitterType.local);\n }\n });\n // subscribe to SlickGrid onHeaderRowCellRendered event to create filter template\n this._eventHandler.subscribe(grid.onHeaderRowCellRendered, (e, args) => {\n this.addFilterTemplateToHeaderRow(args);\n });\n }", "downgradeFilterExpressionsToInputData(variable, inputData) {\n if (inputData.hasOwnProperty('getFilterFields')) {\n inputData = inputData.getFilterFields();\n }\n _.forEach(inputData.rules, function (ruleObj) {\n if (!_.isNil(ruleObj.target) && ruleObj.target !== '') {\n inputData[ruleObj.target] = {\n 'value': ruleObj.value,\n 'matchMode': ruleObj.matchMode\n };\n }\n });\n return inputData;\n }", "prepareIndiceForUpdate(indexData) {\n return Promise.resolve();\n }", "function convertDataIndex(batch) {\n zrUtil.each(batch || [], function (batchItem) {\n if (batch.dataIndex != null) {\n batch.dataIndexInside = batch.dataIndex;\n batch.dataIndex = null;\n }\n });\n return batch;\n}", "function convertDataIndex(batch) {\n zrUtil.each(batch || [], function (batchItem) {\n if (batch.dataIndex != null) {\n batch.dataIndexInside = batch.dataIndex;\n batch.dataIndex = null;\n }\n });\n return batch;\n}", "function convertDataIndex(batch) {\n zrUtil.each(batch || [], function (batchItem) {\n if (batch.dataIndex != null) {\n batch.dataIndexInside = batch.dataIndex;\n batch.dataIndex = null;\n }\n });\n return batch;\n}", "function convertDataIndex(batch) {\n zrUtil.each(batch || [], function (batchItem) {\n if (batch.dataIndex != null) {\n batch.dataIndexInside = batch.dataIndex;\n batch.dataIndex = null;\n }\n });\n return batch;\n}", "function convertDataIndex(batch) {\n zrUtil.each(batch || [], function (batchItem) {\n if (batch.dataIndex != null) {\n batch.dataIndexInside = batch.dataIndex;\n batch.dataIndex = null;\n }\n });\n return batch;\n}", "function filteredData(ds){\n\t\treturn ds.filter(function(entry){\n\t\t\t\treturn (UniNameFilter === null || UniNameFilter === String(entry[\"VIEW_NAME\"]))\n\t\t\t\t\t&& (UOAFilter === null || UOAFilter === String(entry[\"Unit of assessment name\"])); // keep if no year filter or year filter set to year being read,\n\t\t\t})\n\t}", "fnPrepareData() {\n const { perpage, currPage } = this.state;\n let end = perpage * currPage;\n let start = end - perpage;\n let data = this.state.data.slice(start, end);\n this.setState({\n tableData: data,\n });\n }", "toggleFilter(e) {\n if (\n e === undefined ||\n (this.filterColumn == e.detail.columnNumber && this.filtered)\n ) {\n this.filtered = false;\n this.filterText = null;\n this.filterColumn = null;\n } else {\n this.filterText = e.detail.text;\n this.filterColumn = e.detail.columnNumber;\n this.filtered = true;\n }\n }", "function editUnindexed(docid) {\n\t\t\tvar doc = _.find(self.unindexedList.data, function (dc) {\n\t\t\t\tif (dc.id == docid) {\n\t\t\t\t\tdc.editable = 1;\n\t\t\t\t}\n\t\t\t\treturn dc.id == docid;\n\t\t\t});\n\t\t\tself.editDocDetails[docid] = doc;\n\t\t}", "function testTree_TableAccess_CrossColumnIndex_Unaffected() {\n var treeBefore =\n 'project()\\n' +\n '-order_by(DummyTable.string DESC, DummyTable.number ASC)\\n' +\n '--select(value_pred(DummyTable.boolean eq false))\\n' +\n '---table_access(DummyTable)\\n';\n\n var rootNodeBefore = constructTree2(lf.Order.DESC, lf.Order.ASC);\n assertEquals(treeBefore, lf.tree.toString(rootNodeBefore));\n\n var pass = new lf.proc.OrderByIndexPass(hr.db.getGlobal());\n var rootNodeAfter = pass.rewrite(rootNodeBefore);\n assertEquals(treeBefore, lf.tree.toString(rootNodeAfter));\n}", "function prepareData(dataSource) {\n for (i = 0, l = dataSource.length; i < l; i++) {\n datum = dataSource[i];\n time = datum.createdAt.split('/');\n time = time.map(arrayMapStrToInt);\n time = Date.UTC(time[0],time[1]-1,time[2], time[3], time[4]);\n property = datum.testName.split('_')[1];\n\n for (j = 0; j < jl; j++) {\n renderData[j].series[property] = renderData[j].series[property] || {name: property, data : []};\n }\n for (j = 0; j < jl; j++) {\n try{\n renderData[j].series[property].data.push({\n x: time,\n y: datum.data[renderData[j].percentile][renderData[j].field],\n name: datum.taskId\n });\n } catch (e) {\n console.log(e);\n }\n\n }\n\n }\n\n updateFields(true);\n console.log(renderData);\n }", "onStoreFilter() {\n if (!this.storeTrackingSupended) {\n this.updateColumnFilterFields();\n }\n }", "onStoreFilter() {\n if (!this.storeTrackingSupended && this.rendered) {\n this.updateColumnFilterFields();\n }\n }", "function prepareWheres(select, filter)\n{\n\tvar constrainedFields = filter.getConstrainedFields();\n\tfor (var index in constrainedFields)\n\t{\n\t\tvar constraintField = constrainedFields[index];\n\t\tif (constraintField in allowed_filters)\n\t\t{\n\t\t\tvar constraintDataArr = filter.getConstraint(constraintField);\n\t\t\tsimple_filter(select, constraintField, constraintDataArr);\n\t\t}\n\t\telse if (constraintField == 'q'){\n\t\t\t\tvar constraintDataArr = filter.getConstraint(constraintField);\n\t\t\t\tselect.where(\"LOWER(instrument_name) like LOWER('%\"+constraintDataArr[0]['data']+\"%') OR LOWER(instrument_id) like LOWER('%\"+constraintDataArr[0]['data']+\"%')\")\n\n\t\t}\n\n\t}\n}", "repairLayoutIndices(current, parentLocationInLayout, index) {\n\n //console.log('RLC ' + current.id + ' ' + current.locationInLayout + ' ' + index);\n if (current === undefined) {\n return;\n }\n\n if (parentLocationInLayout && index !== undefined) {\n\n //console.log(current.blocktype);\n //console.log(' Old LIL: ' + current.locationInLayout);\n\n let newLil = parentLocationInLayout.slice();\n newLil.push(index);\n current.locationInLayout = newLil;\n current.index = index;\n\n //console.log(' New LIL: ' + current.locationInLayout);\n\n this.state.layoutBlockLocations[current.id] = newLil;\n }//else {\n //console.log('PARENT ' + current.blocktype);\n //}\n\n let childrenKeys = Object.keys(current.children);\n for (var i = 0; i < childrenKeys.length; i++) {\n this.repairLayoutIndices(current.children[childrenKeys[i]], current.locationInLayout.slice(), i);\n }\n }", "function massageCreateIndexRequest(requestDef) {\n requestDef = Object(__WEBPACK_IMPORTED_MODULE_0_pouchdb_utils__[\"b\" /* clone */])(requestDef);\n\n if (!requestDef.index) {\n requestDef.index = {};\n }\n\n ['type', 'name', 'ddoc'].forEach(function (key) {\n if (requestDef.index[key]) {\n requestDef[key] = requestDef.index[key];\n delete requestDef.index[key];\n }\n });\n\n if (requestDef.fields) {\n requestDef.index.fields = requestDef.fields;\n delete requestDef.fields;\n }\n\n if (!requestDef.type) {\n requestDef.type = 'json';\n }\n return requestDef;\n}", "handleChange(vis, element) {\n // if born in NV is checked, disable non-USA\n if (element.id === \"checkbox-NV\") {\n $(\"#checkbox-non-USA\").prop(\"checked\", false);\n }\n if (element.id === \"checkbox-non-USA\") {\n $(\"#checkbox-NV\").prop(\"checked\", false);\n }\n let tempFilteredData = vis.preProcessedData;\n vis.filters = [];\n let allCheckBoxes = $(\".v2-checkbox-input\");\n // get all the checked boxes\n allCheckBoxes.each(i => {\n if (allCheckBoxes[i].checked) {\n vis.filters.push(allCheckBoxes[i].id);\n }\n });\n // console.log(\"filtered boxes\", vis.filters);\n // filter for each box checked\n if (vis.filters.length == 0) {\n vis.filteredData = vis.preProcessedData;\n } else {\n // console.log(\"filtering on \",vis.filters );\n vis.filters.forEach(f => {\n let filter = v2CheckBoxGuide[f];\n if (filter) {\n // console.log(\"start time\", new Date(), \"filtered data length\", tempFilteredData.length);\n tempFilteredData = tempFilteredData.filter(d => {\n let result = vis.testCondition(d, filter);\n return result;\n });\n // console.log(\"end time\", new Date(), \"filtered data length\", tempFilteredData.length);\n }\n })\n }\n vis.filteredData = tempFilteredData;\n // console.log(\"filtered Data\", vis.filteredData.length, vis.filteredData);\n vis.wrangleData();\n }", "function onEditorPreparing(e) {\n if (e.parentType === \"dataRow\" && e.dataField === \"MicrodistrictId\") {\n e.editorOptions.disabled = (typeof e.row.data.DistrictId !== \"number\");\n }\n}", "function prepareDataFromGrid() {\r\n var grid = ogrid;\r\n var startCol = ostartCol;\r\n var type = otype;\r\n\r\n var gridTbl = getSingleObject(grid);\r\n var gridXML = getSingleObject(grid + '1');\r\n var retVal = '';\r\n var gridRecCount = eval(gridTbl.id + '1.recordset.RecordCount');\r\n\r\n // Make the data page size the same as the record count.\r\n gridTbl.dataPageSize = gridRecCount;\r\n // Go to the first page.\r\n gridTbl.firstPage();\r\n}", "returnTableData(data, field){\n const editable = this.state.editableRowIndex;\n let check = 0;\n let dec = (field === \"dollarPerMile\" || field === 'dispatchFee') ? 2 : 0;\n let dollar = field === \"mileage\" ? '' : '$';\n\n if (editable.length === 0) return this.toFormatNumber(data[field],dec,dollar);\n for(let index of editable){\n check++;\n if( this.props.load[index].id === data.id ) return null;\n if( this.props.load[index].id !== data.id && check === editable.length)\n return this.toFormatNumber(data[field],dec,'$')\n }\n }", "if (fieldTag !== this.getTag(offset)) {\n this.maskPartialDataBytes(members.partialDataBytes);\n this.zeroDataBytes(members.dataBytes);\n this.zeroPointersBytes(members.pointersBytes);\n encodeTag(fieldTag, this.segment.raw, this.layout.dataSection + offset);\n }", "wipeUnusedSpace() {\n // Mark internal only to be true so that the render doesn't treat it like\n // a new file, all existing data is kept\n this.onDataChange(undefined, false, true);\n }", "function getLocalIndexQuery(indexName) {\n if (!dbConfig.LocalSecondaryIndexes) return null\n const locIdx = dbConfig.LocalSecondaryIndexes.find(item => item.IndexName===indexName)\n if (!locIdx) return null\n return configureIndex(locIdx)\n }", "function loadFromIndex(storeName, indexName, innerFunction, callback) {\n var cursor = db.transaction([storeName], 'readonly').objectStore(storeName).index(indexName).openCursor();\n \n cursor.onsuccess = function(event) {\n var result = this.result;\n if (result) {\n innerFunction(result);\n result.continue();\n }\n else {\n callback();\n }\n };\n \n }", "computeIndex(extent,incs, xyz)\n {\n return ( ( ((xyz[0] - extent[0]) * incs[0]) +((xyz[1] - extent[2]) * incs[1]) + ((xyz[2] - extent[4]) * incs[2])) | 0);\n }", "function prepare (expr, metadata = PRICE_METADATA, viewportData = PRICE_VALUES) {\n expr._resolveAliases();\n expr._bindMetadata(metadata);\n expr._resetViewportAgg(metadata);\n\n viewportData.forEach((data) => {\n expr.accumViewportAgg(data);\n });\n }", "function massageCreateIndexRequest(requestDef) {\n\t requestDef = clone$1(requestDef);\n\n\t if (!requestDef.index) {\n\t requestDef.index = {};\n\t }\n\n\t ['type', 'name', 'ddoc'].forEach(function (key) {\n\t if (requestDef.index[key]) {\n\t requestDef[key] = requestDef.index[key];\n\t delete requestDef.index[key];\n\t }\n\t });\n\n\t if (requestDef.fields) {\n\t requestDef.index.fields = requestDef.fields;\n\t delete requestDef.fields;\n\t }\n\n\t if (!requestDef.type) {\n\t requestDef.type = 'json';\n\t }\n\t return requestDef;\n\t}", "_updateRowIndexContext() {\n const viewContainer = this._rowOutlet.viewContainer;\n for (let renderIndex = 0, count = viewContainer.length; renderIndex < count; renderIndex++) {\n const viewRef = viewContainer.get(renderIndex);\n const context = viewRef.context;\n context.count = count;\n context.first = renderIndex === 0;\n context.last = renderIndex === count - 1;\n context.even = renderIndex % 2 === 0;\n context.odd = !context.even;\n if (this.multiTemplateDataRows) {\n context.dataIndex = this._renderRows[renderIndex].dataIndex;\n context.renderIndex = renderIndex;\n }\n else {\n context.index = this._renderRows[renderIndex].dataIndex;\n }\n }\n }", "function filter(query, data, attachIndex) {\n\n query = (\"\" + query).toLowerCase();\n var result = {\n indexes: [],\n data: []\n };\n\n for (var i = 0, l = data.length; i < l; i++) {\n var found = false;\n for (var c = 0, lc = options.columns.length; c < lc; c++) {\n attachIndex && (data[i]._original_index = i); // store original index\n var str = data[i][options.columns[c].key];\n if ((\"\" + str).toLowerCase().indexOf(query) != -1) {\n result.indexes.push(i);\n var currentIndex = result.data.push(data[i]);\n attachIndex && (data[i]._current_index = (currentIndex - 1));\n found = true;\n break;\n }\n }\n if (!found && attachIndex) data[i]._current_index = i;\n }\n return result;\n }", "_beforeSelect (data, preserve) {\n if (this.callEvent(\"onStartWith\", [data.row, \"0$\"]) ||\n data.column == 'action' ||\n data.column == 'edit' ||\n data.column == 'checkbox') {\n return false;\n }\n }", "_getRenderRowsForData(data, dataIndex, cache) {\n const rowDefs = this._getRowDefs(data, dataIndex);\n return rowDefs.map(rowDef => {\n const cachedRenderRows = (cache && cache.has(rowDef)) ? cache.get(rowDef) : [];\n if (cachedRenderRows.length) {\n const dataRow = cachedRenderRows.shift();\n dataRow.dataIndex = dataIndex;\n return dataRow;\n }\n else {\n return { data, rowDef, dataIndex };\n }\n });\n }", "_getRowDefs(data, dataIndex) {\n if (this._rowDefs.length == 1) {\n return [this._rowDefs[0]];\n }\n let rowDefs = [];\n if (this.multiTemplateDataRows) {\n rowDefs = this._rowDefs.filter(def => !def.when || def.when(dataIndex, data));\n }\n else {\n let rowDef = this._rowDefs.find(def => def.when && def.when(dataIndex, data)) || this._defaultRowDef;\n if (rowDef) {\n rowDefs.push(rowDef);\n }\n }\n if (!rowDefs.length && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n throw getTableMissingMatchingRowDefError(data);\n }\n return rowDefs;\n }", "function massageCreateIndexRequest(requestDef) {\n requestDef = clone(requestDef);\n\n if (!requestDef.index) {\n requestDef.index = {};\n }\n\n ['type', 'name', 'ddoc'].forEach(function (key) {\n if (requestDef.index[key]) {\n requestDef[key] = requestDef.index[key];\n delete requestDef.index[key];\n }\n });\n\n if (requestDef.fields) {\n requestDef.index.fields = requestDef.fields;\n delete requestDef.fields;\n }\n\n if (!requestDef.type) {\n requestDef.type = 'json';\n }\n return requestDef;\n}", "function prepareRegionData(isocode){\t\t\n\t\t//console.log(\"================= Preparing region data on click of function. ===================\");\n\t\t//console.log(param);\n\t\t//console.log(dureUtil.getDataLevel());\n\t\tvar region; \n\t\t\n\t\ttry{\n\t\t\tif(dureUtil.getDataLevel() == 'world'){\n\n\t\t\t\tregion = param[0]; // TODO 16/3/2015\n\t\t\t}else if(dureUtil.getDataLevel() == 'country'){\n\n\t\t\t\tif (iHealthMap.getIndicatorDataType() == \"Standard\") {\n\t\t\t\t\tregion = province.jsondata.indicators[1].indicatorData[0];\n\t\t\t\t} else {\n\t\t\t\t\tregion = province.jsondata.indicators[2].indicatorDataExtension[0];\n\t\t\t\t}\n\t\t\t}else if(dureUtil.getDataLevel() == 'province'){\t\t\t\n\t\t\t\t\n\t\t\t\tif (iHealthMap.getIndicatorDataType() == \"Standard\") {\n\t\t\t\t\tregion = param.indicators[2].districtIndicatorData[0];\n\t\t\t\t} else {\n\t\t\t\t\tregion = param.indicators[3].districtIndicatorDataExt[0];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else if(dureUtil.getDataLevel() == 'subprovince'){\n\t\t\t\tregion = param;\n\t\t\t}\n\t\t\n\t\t}catch(e){console.log(e)}\n\t\tvar key = 'regionData_'+dureUtil.appId+'_'+dureUtil.targetId+'_'+dureUtil.regionId;\n\t\tif(dureUtil.retrieveFromLocal(key) == undefined){\n\t\t\tdureUtil.setRegionDataForChart(region,isocode); \n\t\t}\n\t\treturn true;\n\t}", "function dataIndex(data, mouse) {\n\treturn d3.bisector(function(d) { return d.season; }).left(data, mouse);\n}", "function filterLayerInPlace(lyr, filter, invert) {\n var records = lyr.data ? lyr.data.getRecords() : null,\n shapes = lyr.shapes || null,\n n = getFeatureCount(lyr),\n filteredShapes = shapes ? [] : null,\n filteredRecords = records ? [] : null;\n utils.repeat(n, function(shapeId) {\n var result = filter(shapeId);\n if (invert) result = !result;\n if (result === true) {\n if (shapes) filteredShapes.push(shapes[shapeId] || null);\n if (records) filteredRecords.push(records[shapeId] || null);\n } else if (result !== false) {\n stop(\"Expression must return true or false\");\n }\n });\n lyr.shapes = filteredShapes;\n lyr.data = filteredRecords ? new DataTable(filteredRecords) : null;\n }", "function cleanData(index, candidate) {\r\n\t//console.log('cleanData', candidate);\r\n\t\r\n\tcandidate._row = index + 1;\r\n\tcandidate.__filters = [];\r\n\t\r\n\t// Parse integer values\r\n\tcandidate.id = candidate.id === '' ? '' : parseInt(candidate.id);\r\n\tcandidate.party_list_position = candidate.party_list_position === '' ? '' : parseInt(candidate.party_list_position);\r\n\t\r\n\t// Parse boolean values\r\n\t// TODO: parse party_list_position here?\r\n\tcandidate.election_current = candidate.election_current == 'True';\r\n\tcandidate.party_lists_in_use = candidate.party_lists_in_use == 'True';\r\n\tcandidate.elected = candidate.elected == 'True';\r\n\t\r\n\t// Tweak historical general election IDs for consistency\r\n\tcandidate._election = \r\n\t\tcandidate.election == '2010' ? 'parl.2010-05-06' :\r\n\t\tcandidate.election == '2015' ? 'parl.2015-05-07' :\r\n\t\tcandidate.election;\r\n\t\r\n\t// Tweak ward names\r\n\t// TODO: make a separate column for this?\r\n\tcandidate.post_label = candidate.post_label.replace(/^Police and Crime Commissioner for | ward$/, '');\r\n\tif (candidate.post_label == 'Sheffield Brightside and Hillsborough') candidate.post_label = 'Sheffield, Brightside and Hillsborough';\r\n\t\r\n\t// Election\r\n\t// TODO: election type should be sp.r not sp?\r\n\tvar electionMatch = candidate._election.match(/^(parl|pcc|nia|(local|sp|naw|gla|mayor)\\.[^\\.]+)\\.(.+\\.)?(\\d{4}-\\d{2}-\\d{2})$/);\r\n\tcandidate._election_area = electionMatch[1];\r\n\tcandidate._election_name = electionMappings[candidate._election_area];\r\n\tcandidate._byelection = electionMatch[3] ? electionMatch[3] : '';\r\n\tcandidate._election_type = candidate._election_area.split('.')[0];\r\n\t\r\n\t// Country\r\n\tvar place = candidate._election_area + (candidate._election_area == candidate._election_type ? '.' + candidate.post_label.toLowerCase().trim().replace(/\\s+/g, '-') : '');\r\n\tcandidate._country = getCountryForElection(place);\r\n\t\r\n\t// Election year and age at election\r\n\t// TODO: fix sorting of ages outside the range 10-99\r\n\tcandidate._election_year = +candidate.election_date.substr(0, 4);\r\n\tif (candidate.birth_date) {\r\n\t\tif (candidate.birth_date.length == 4) {\r\n\t\t\tvar ageThisYear = candidate._election_year - candidate.birth_date;\r\n\t\t\tcandidate._age_at_election = (ageThisYear - 1) + '-' + ageThisYear;\r\n\t\t} else {\r\n\t\t\tcandidate._age_at_election = '' + moment(candidate.election_date).diff(moment(candidate.birth_date), 'years');\r\n\t\t}\r\n\t} else {\r\n\t\tcandidate._age_at_election = '';\r\n\t}\r\n\t\r\n\t// Split name\r\n\t// TODO: deal with peerage titles like Lord Cameron of Roundwood\r\n\tvar name = candidate.name.trim();\r\n\tvar nameMatch = name.match(/^(.*?)\\s+([JS]n?r\\.?)$/);\r\n\tif (nameMatch) {\r\n\t\tcandidate._suffix = nameMatch[2];\r\n\t\tname = nameMatch[1];\r\n\t} else {\r\n\t\tcandidate._suffix = '';\r\n\t}\r\n\tnameMatch = name.match(/^(.*?)\\s+(((st\\.?|de|de la|le|van|van de|van der|von|di|da|ab|ap|\\u00D3|N\\u00ED|al|el)\\s+.*?)|\\S+)$/i);\r\n\tif (nameMatch) {\r\n\t\tcandidate._last_name = nameMatch[2];\r\n\t\tnameMatch = nameMatch[1].match(/^(\\S+)(\\s+(.*?))?$/);\r\n\t\tcandidate._first_name = nameMatch[1];\r\n\t\tcandidate._middle_names = nameMatch[3] ? nameMatch[3] : '';\r\n\t} else {\r\n\t\tcandidate._last_name = name;\r\n\t\tcandidate._first_name = '';\r\n\t\tcandidate._middle_names = '';\r\n\t}\r\n\tcandidate._short_name = (candidate._first_name + ' ' + candidate._last_name).trim();\r\n\tcandidate._normal_name = (nameNorms[candidate._first_name] ? nameNorms[candidate._first_name] : candidate._first_name) + ' ' + candidate._last_name;\r\n\t\r\n\t// Gender\r\n\t// TODO: clean up name-gender mapping file and put on Github\r\n\tcandidate.gender = candidate.gender.trim();\r\n\tcandidate._gender = \r\n\t\tcandidate.gender === '' ? '' : \r\n\t\tcandidate.gender.match(/^(m|male|mr\\.?)$/i) ? 'm' :\r\n\t\tcandidate.gender.match(/^(f|female|(mrs|miss|ms)\\.?)$/i) ? 'f' :\r\n\t\t'?';\r\n\tcandidate._gender_icon = {'m': '\\u2642', 'f': '\\u2640', '?': '?', '': ''}[candidate._gender];\r\n\tcandidate._maleness = candidate._gender ? ['f', '?', 'm'].indexOf(candidate._gender) / 2 : genderData[candidate._first_name] ? genderData[candidate._first_name].est.male : 0.5;\r\n\t\r\n\t// Party group\r\n\t// TODO: group \"Independent\" parties together\r\n\tcandidate._party_group = \r\n\t\tpartyGroups[candidate.party_id] ? partyGroups[candidate.party_id] : \r\n\t\t//candidate.party_id == 'ynmp-party:2' ? null :\r\n\t\tcandidate.party_name.indexOf('Independent') >= 0 ? 'Independent' :\r\n\t\tcandidate.party_name;\r\n\t\r\n\treturn candidate;\r\n\t\r\n}", "setField(type, x, y, data) {\n //if withing interestign range\n if (x && x <= 20 && y && y <= 12) {\n //decrement both to compensate for edges\n x--\n y--\n\n //create row if missing\n if (!this.field[y]) {\n this.field[y] = []\n }\n\n //create field if missing\n if (!this.field[y][x]) {\n this.field[y][x] = []\n }\n\n //set at position\n this.field[y][x][type] = data\n }\n }", "function filterit(e)\n{\n var data = [];\n var sorted = [];\n var values = [];\n for (var i=0;i<e.byfieldid.length;i++) {\n if (e.byfieldid[i].length === 0) continue;\n sorted.push(i);\n values.push(e.byfieldid[i].toLowerCase());\n }\n\n if (sorted.length == 0) {\n filtered_data = null;\n sortit(last_sort);\n return;\n }\n\n var new_data = [], found;\n\n for (var row=0;row < raw_data.length;row++) {\n found = true;\n for(i=0;i<sorted.length;i++) {\n if (raw_data[row][sorted[i]] == null || raw_data[row][sorted[i]].toLowerCase().indexOf(values[i]) == -1) {\n found=false; i=sorted.length;\n }\n }\n if (found) {\n new_data.push(raw_data[row]);\n }\n }\n\n filtered_data = new_data;\n if (new_data.length == 0) {\n new_data[0] = [];\n for(i=0;i<raw_data[0].length;i++) new_data[0][i] = \"No Data Found\";\n }\n\n sortit(last_sort);\n}", "function prepareSeries(data){\n var result = data.result;\n\n // Keep only series when needed\n if(seriesFilter && (!filtersOnlySampleSeries || result.supportsControllersDiscrimination)){\n // Insensitive case matching\n var regexp = new RegExp(seriesFilter, 'i');\n result.series = $.grep(result.series, function(series, index){\n return regexp.test(series.label);\n });\n }\n\n // Keep only controllers series when supported and needed\n if(result.supportsControllersDiscrimination && showControllersOnly){\n result.series = $.grep(result.series, function(series, index){\n return series.isController;\n });\n }\n\n // Sort data and mark series\n $.each(result.series, function(index, series) {\n series.data.sort(compareByXCoordinate);\n series.color = index;\n });\n}", "function setTempRowData(){\n\t\ttempRowData = CurrentRow.getRowData(thisRow); \n\t }", "nuke() {\n this._clearSpatialIndex();\n this.byId = [];\n this.fieldIndexes = {};\n this.fieldsToIndex.forEach(field => {\n this.fieldIndexes[field] = {};\n });\n }", "function checkFieldsFilter(indexString) {\n\tvar grid = Ab.view.View.getControl('', 'fields_grid');\n\t\t\n\t// continue regular index\n\tgrid.onClickFilter(indexString); \n\t\n\t// check checkboxes of previously selected standards\n\tcheckBoxesForSelectedFields(); \n}", "rebuildIndices() {\n const me = this,\n isFiltered = me.isFiltered,\n indices = me._indices || (me._indices = {}),\n keyProps = Object.keys(indices),\n indexCount = keyProps.length,\n values = me._values,\n count = values.length;\n\n let i, j;\n\n // First, clear indices.\n if (isFiltered) {\n indices[filteredIndicesProperty] = {};\n }\n for (i = 0; i < indexCount; i++) {\n indices[keyProps[i]] = {};\n if (isFiltered) {\n indices[filteredIndicesProperty][keyProps[i]] = {};\n }\n }\n\n /*\n * Rebuild the indices object.\n * Loop through all items adding an entry for each one to each index.\n * So collection.add({id : foo, name : 'Nige'}, {id : 'bar', name : 'Faye'}) where collection has had an index\n * added for the \"name\" property would result in:\n *\n * {\n * id : {\n * foo : 0,\n * bar : 1\n * },\n * name : {\n * Nige : 0,\n * Faye : 1\n * }\n * }\n */\n for (i = 0; i < count; i++) {\n const item = values[i];\n\n for (j = 0; j < indexCount; j++) {\n const keyProp = keyProps[j];\n // This does indices.name['Nige'] = 0\n indices[keyProp][safeIndexKey(item[keyProp])] = i;\n }\n }\n\n // Create a parallel lookup structure into the _filteredValues\n if (isFiltered) {\n const values = me._filteredValues,\n count = values.length,\n indices = me._indices[filteredIndicesProperty];\n\n for (i = 0; i < count; i++) {\n const item = values[i];\n\n for (j = 0; j < indexCount; j++) {\n const keyProp = keyProps[j];\n // This does indices[filteredIndicesProperty].name['Nige'] = 0\n indices[keyProp][safeIndexKey(item[keyProp])] = i;\n }\n }\n }\n\n me._indicesInvalid = false;\n }", "function prepareOutputData(dataObject, searchResultDataArray){\r\n //grab the search data from variables\r\n let keyword = searchResultDataArray.keyword;\r\n let description = searchResultDataArray.description;\r\n let resourceUrl = searchResultDataArray.resourceUrl;\r\n let ontology = searchResultDataArray.ontology;\r\n\r\n let combinedKeyName = (keyword.toLowerCase() + ontology.toUpperCase()); //creating a combined name for the ease of reading back data\r\n combinedKeyName = combinedKeyName.replace(/\\s+/g, '_'); //replacing middle spaces with \"_\" to be more clear.\r\n //console.log(\"COMBINED PRIMARY KEY : \"+ combinedKeyName);\r\n \r\n var myObject = dataObject; //create empty object to pass values\r\n myObject[combinedKeyName] = {keyword: keyword, description: description, resourceUrl: resourceUrl, ontology: ontology}; //passing values to empty object\r\n\r\n return myObject;\r\n}", "function massageCreateIndexRequest(requestDef) {\n requestDef = clone$1(requestDef);\n\n if (!requestDef.index) {\n requestDef.index = {};\n }\n\n ['type', 'name', 'ddoc'].forEach(function (key) {\n if (requestDef.index[key]) {\n requestDef[key] = requestDef.index[key];\n delete requestDef.index[key];\n }\n });\n\n if (requestDef.fields) {\n requestDef.index.fields = requestDef.fields;\n delete requestDef.fields;\n }\n\n if (!requestDef.type) {\n requestDef.type = 'json';\n }\n return requestDef;\n}", "useIndex(fieldPath) {\n this.index = fieldPath;\n return this;\n }", "bindLocalOnSort(grid, dataView) {\n this._isBackendGrid = false;\n this._grid = grid;\n this._dataView = dataView;\n this._eventHandler.subscribe(grid.onSort, (e, args) => {\n if (args && (args.sortCols || args.sortCol)) {\n // multiSort and singleSort are not exactly the same, but we want to structure it the same for the (for loop) after\n // also to avoid having to rewrite the for loop in the sort, we will make the singleSort an array of 1 object\n const sortColumns = (args.multiColumnSort) ? args.sortCols : new Array({ sortAsc: args.sortAsc, sortCol: args.sortCol });\n // keep current sorters\n this._currentLocalSorters = []; // reset current local sorters\n if (Array.isArray(sortColumns)) {\n sortColumns.forEach((sortColumn) => {\n if (sortColumn.sortCol) {\n this._currentLocalSorters.push({\n columnId: sortColumn.sortCol.id,\n direction: sortColumn.sortAsc ? SortDirection.ASC : SortDirection.DESC\n });\n }\n });\n }\n this.onLocalSortChanged(grid, dataView, sortColumns);\n this.emitSortChanged(EmitterType.local);\n }\n });\n }", "function globalRowHandlerNoData(ix) {\n let z = activeParsers[ix];\n z.rowHandler(null, z.ctx, z);\n }", "function testTree_IndexRangeScan_CrossColumnIndex() {\n var treeBefore =\n 'project()\\n' +\n '-order_by(DummyTable.string DESC, DummyTable.number DESC)\\n' +\n '--select(value_pred(DummyTable.boolean eq false))\\n' +\n '---table_access_by_row_id(DummyTable)\\n' +\n '----index_range_scan(DummyTable.pkDummyTable, ' +\n '[unbound, unbound],[unbound, 10], natural)\\n';\n\n var treeAfter =\n 'project()\\n' +\n '-select(value_pred(DummyTable.boolean eq false))\\n' +\n '--table_access_by_row_id(DummyTable)\\n' +\n '---index_range_scan(DummyTable.pkDummyTable, ' +\n '[unbound, unbound],[unbound, 10], reverse)\\n';\n\n var rootNodeBefore = constructTree3(lf.Order.DESC, lf.Order.DESC);\n assertEquals(treeBefore, lf.tree.toString(rootNodeBefore));\n\n var pass = new lf.proc.OrderByIndexPass(hr.db.getGlobal());\n var rootNodeAfter = pass.rewrite(rootNodeBefore);\n assertEquals(treeAfter, lf.tree.toString(rootNodeAfter));\n}", "function originalIndexToCurrentIndex(index) {\n if (!isFiltered()) return index;\n var datum = _data[index];\n if (datum._current_index === undefined) return index;\n return datum._current_index;\n }", "function lookInOneSide(x, y) {\n\t\t\t//\tmake sure the current (x,y) coordinates are not out of grid\n\t\t\tif (x >= 0 && y >= 0 && x < this.grid.width && y < this.grid.height) {\n\t\t\t\t// transform x,y position in grid array index\n\t\t\t\tconst index = x + this.grid.width * y;\n\t\t\t\telementsAround.push({\n\t\t\t\t\ttype: this.grid.array[index].type,\n\t\t\t\t\tindex: index\n\t\t\t\t});\n\t\t\t}\n\t\t}", "function loadEocColumn(benefits, startIndex, itemLimit) {\n \t\tvar items = new Array();\n \t\tfor (var itemIndex = 0; itemIndex < itemLimit; itemIndex++) {\n \t\t\titems.push(benefits[startIndex + itemIndex]);\n \t\t}\n \t\treturn items;\n \t}", "function mapyst_outsideBuilding(campus, buildingIndex) {\n\tif (campus.buildings[buildingIndex].type == OUTSIDE) {\n\t\treturn true;\n\t}\n\treturn false;\n}", "function prepDataForDB(data) {\n if (data.hasOwnProperty('active') === true) {\n data.active = data.active === true\n ? 1\n : 0\n }\n if (data.hasOwnProperty('type') === true) {\n delete data.type\n }\n return data;\n}", "function prepareBoxplotData(rawData, opt) {\n\t opt = opt || {};\n\t var boxData = [];\n\t var outliers = [];\n\t var boundIQR = opt.boundIQR;\n\t var useExtreme = boundIQR === 'none' || boundIQR === 0;\n\t\n\t for (var i = 0; i < rawData.length; i++) {\n\t var ascList = asc(rawData[i].slice());\n\t var Q1 = quantile(ascList, 0.25);\n\t var Q2 = quantile(ascList, 0.5);\n\t var Q3 = quantile(ascList, 0.75);\n\t var min = ascList[0];\n\t var max = ascList[ascList.length - 1];\n\t var bound = (boundIQR == null ? 1.5 : boundIQR) * (Q3 - Q1);\n\t var low = useExtreme ? min : Math.max(min, Q1 - bound);\n\t var high = useExtreme ? max : Math.min(max, Q3 + bound);\n\t var itemNameFormatter = opt.itemNameFormatter;\n\t var itemName = isFunction(itemNameFormatter) ? itemNameFormatter({\n\t value: i\n\t }) : isString(itemNameFormatter) ? itemNameFormatter.replace('{value}', i + '') : i + '';\n\t boxData.push([itemName, low, Q1, Q2, Q3, high]);\n\t\n\t for (var j = 0; j < ascList.length; j++) {\n\t var dataItem = ascList[j];\n\t\n\t if (dataItem < low || dataItem > high) {\n\t var outlier = [itemName, dataItem];\n\t outliers.push(outlier);\n\t }\n\t }\n\t }\n\t\n\t return {\n\t boxData: boxData,\n\t outliers: outliers\n\t };\n\t }", "function currentIndexToOriginalIndex(index) {\n if (!isFiltered()) return index;\n var datum = _currentData[index];\n if (datum._original_index === undefined) return index;\n return datum._original_index;\n }", "_updateNoDataRow() {\n if (this._noDataRow) {\n const shouldShow = this._rowOutlet.viewContainer.length === 0;\n if (shouldShow !== this._isShowingNoDataRow) {\n const container = this._noDataRowOutlet.viewContainer;\n shouldShow ? container.createEmbeddedView(this._noDataRow.templateRef) : container.clear();\n this._isShowingNoDataRow = shouldShow;\n }\n }\n }", "function generateExportColumnsForNoConfigurationFields(gridId, exportHideIndex, hideColumnArray) {\r\n var hiddenColumnName = \"\";\r\n var XMLData = getXMLDataForGridName(gridId);\r\n //check the xmldata is empty.\r\n if (XMLData.recordset && XMLData.recordset.Fields) {\r\n\r\n //loop the node array to get the field which not exist in visible/hide array.\r\n\r\n for (var i = 0; i < XMLData.recordset.Fields.Count; i++) {\r\n var nodeName = XMLData.recordset.Fields(i).Name.toUpperCase();\r\n\r\n //exclude attributes.\r\n var isExcludeColumns = nodeName == \"ID\" || nodeName == \"INDEX\" || nodeName == \"COL\";\r\n //exclude DATE_ and URL_.\r\n isExcludeColumns = isExcludeColumns || nodeName.startsWith(\"DATE_\") || nodeName.startsWith(\"URL_\");\r\n //exclude indicator.\r\n isExcludeColumns = isExcludeColumns || nodeName == \"UPDATE_IND\" || nodeName == \"DISPLAY_IND\" || nodeName == \"EDIT_IND\";\r\n //exclude obr fields.\r\n isExcludeColumns = isExcludeColumns || nodeName == \"OBR_ENFORCED_RESULT\";\r\n //exclude others.\r\n isExcludeColumns = isExcludeColumns || nodeName == \"$TEXT\";\r\n if(isExcludeColumns){\r\n continue;\r\n }\r\n\r\n var isDisposed = false;\r\n var excludeColumnArray = [];\r\n //Copy the visible and hide column array in a new exclude column array.\r\n excludeColumnArray = excludeColumnArray.concat(exportVisibleColumnIds).concat(hideColumnArray);\r\n //loop the exclude column array\r\n for (var j = 0; j < excludeColumnArray.length; j++) {\r\n if (excludeColumnArray[j].toUpperCase() == nodeName) {\r\n isDisposed = true;\r\n break;\r\n }\r\n }\r\n //if not found in visible and hidden column array. Add it to exportHideColumnIds array.\r\n if (!isDisposed) {\r\n exportHideColumnIds[exportHideIndex++] = nodeName;\r\n hiddenColumnName += nodeName + \",\";\r\n }\r\n }\r\n }\r\n return hiddenColumnName;\r\n}", "prepareForStorage(req, doc) {\n const can = (field) => {\n return (!field.withType && !field.editPermission && !field.viewPermission) ||\n (field.withType && self.apos.permission.can(req, 'view', field.withType)) ||\n (field.editPermission && self.apos.permission.can(req, field.editPermission.action, field.editPermission.type)) ||\n (field.viewPermission && self.apos.permission.can(req, field.viewPermission.action, field.viewPermission.type)) ||\n false;\n };\n\n const handlers = {\n arrayItem: (field, object) => {\n if (!can(field)) {\n return;\n }\n\n object._id = object._id || self.apos.util.generateId();\n object.metaType = 'arrayItem';\n object.scopedArrayName = field.scopedArrayName;\n },\n object: (field, object) => {\n if (!can(field)) {\n return;\n }\n\n object.metaType = 'object';\n object.scopedObjectName = field.scopedObjectName;\n },\n relationship: (field, doc) => {\n if (!can(field)) {\n return;\n }\n\n doc[field.idsStorage] = doc[field.name].map(relatedDoc => self.apos.doc.toAposDocId(relatedDoc));\n if (field.fieldsStorage) {\n const fieldsById = doc[field.fieldsStorage] || {};\n for (const relatedDoc of doc[field.name]) {\n if (relatedDoc._fields) {\n fieldsById[self.apos.doc.toAposDocId(relatedDoc)] = relatedDoc._fields;\n }\n }\n doc[field.fieldsStorage] = fieldsById;\n }\n }\n };\n\n self.apos.doc.walkByMetaType(doc, handlers);\n }", "forceColIndex(facets) {\n const self = this;\n const leafs = [];\n let index = 0;\n facets.forEach(function(facet) {\n if (self.isLeaf(facet)) {\n leafs.push(facet);\n facet.colIndex = index;\n index++;\n }\n });\n\n leafs.forEach(function(facet) {\n facet.cols = leafs.length;\n });\n const maxLevel = self.fields.length;\n for (let i = maxLevel - 1; i >= 0; i--) {\n const levelFacets = self.getFacetsByLevel(facets, i);\n // var yIndex = maxLevel - i;\n for (let j = 0; j < levelFacets.length; j++) {\n const facet = levelFacets[j];\n if (!self.isLeaf(facet)) {\n facet.originColIndex = facet.colIndex;\n facet.colIndex = self.getRegionIndex(facet.children);\n facet.cols = leafs.length;\n }\n }\n }\n\n }", "prepareOffsetQuery(offset) {\n if (Number.isInteger(offset)) {\n return offset;\n }\n return 0;\n }", "makeLeftColumn_() {}", "function applyFilter(in_filterCriteria, in_arrayFieldName){\n\tvar arylen = filteredConceptCodeListIndex.getArySize();\n\t\n\tfor(var i = 0; i < arylen; i++){\n\t\tvar curIndex = filteredConceptCodeListIndex.getCodeIndex(i);\n\t\tvar curCode = conceptCodeListDataStore.getConceptCodeByIndex(curIndex);\n\t\tif(curCode[in_arrayFieldName] != in_filterCriteria){\n\t\t\tfilteredConceptCodeListIndex.removeCodeIndex(i);\n\t\t\ti--;\n\t\t\tarylen--;\n\t\t}\n\t}\n}", "function xindex() {\n var I = {};\n\n VIZ.conf['xindex'] = [];\n VIZ.data.map(function(d) {\n if (!I[''+ d.x]) {\n VIZ.conf['xindex'].push(d.x);\n I[''+ d.x] = 1;\n }\n });\n VIZ.conf['xindex'].sort(function(a,b){ return a-b; });\n\n data = [];\n Z.map(function(z) {\n data.push(VIZ.conf['xindex']\n .map(function(d){ return { x:d, y:null }; }));\n });\n }", "function createPrimaryData() {\n //Only keep the ICH elements and biomes and whc\n nodes_primary = nodes.filter(function (d) {\n return d.type === 'element' || d.group === 'biome';\n });\n var node_by_id_primary = {};\n nodes_primary.forEach(function (d) {\n node_by_id_primary[d.id] = d;\n }); //Only keep the edges which have both source and target remaining\n\n edges_primary = edges.filter(function (d) {\n return node_by_id_primary[d.source] && node_by_id_primary[d.target];\n });\n edges_primary.forEach(function (d) {\n d.focus = 'primary';\n d.opacity = edge_primary_opacity;\n }); // console.log(nodes_primary.length, edges_primary.length)\n } //function createPrimaryData", "filterData(type,value){\n\t\tvar arr = [];\n\t\tthis.state.data.forEach((d,i) => {\n\t\t\tif (!this.isFiltered(d,type,value))\n\t\t\t\tarr.push(i);\n\t\t});\n\t\tif(type === 'machine'){\n\t\t\tthis.setState({\n\t\t\t\tfilteredIndexes:arr,\n\t\t\t\tmachineFilter:value,\n\t\t\t\tselected:[],\n\t\t\t});\n\t\t} else if (type === 'username'){\n\t\t\tthis.setState({\n\t\t\t\tfilteredIndexes:arr,\n\t\t\t\tusernameFilter:value,\n\t\t\t\tselected:[],\n\t\t\t});\n\t\t} else if (type === 'time'){\n\t\t\tthis.setState({\n\t\t\t\tfilteredIndexes:arr,\n\t\t\t\ttimeFilter:value,\n\t\t\t\tselected:[],\n\t\t\t});\n\t\t}else {\n\t\t\tthis.setState({\n\t\t\t\tfilteredIndexes:arr,\n\t\t\t\tselected:[],\n\t\t\t});\n\t\t}\n\t}", "async function prepareData( param ) {\n\n // get source data\n const source = DataStore.getDataset( param.data_id ),\n cols = source.getColumnMeta(),\n srcData = source.getData(),\n rowCount = source.getRowCount();\n\n // shortcuts\n const namecol = srcData[ param.name ],\n sizecol = srcData[ param.size ];\n\n // collect data per column set\n const result = [];\n for( let i=0; i<rowCount; i++ ) {\n\n // add value\n result.push( {\n n: namecol[i],\n s: sizecol[i],\n });\n\n }\n\n return {\n values: result,\n };\n\n }", "function prepareItem(def, idx) {\n // updateData is called in response to UI events; it tells\n // the dataProvider to update the data to match the UI.\n //\n // updateData must be inside prepareItem() since it uses idx;\n // d3's listener method cannot guarantee the index passed to\n // updateData will be correct:\n function updateData(data) {\n // data.selectedGen++;\n // model.provider.updateField(data.name, { active: data.selected });\n model.provider.toggleFieldSelection(data.name);\n }\n\n // get existing sub elements\n const ttab = d3.select(this);\n let trow1 = ttab.select(`tr.${style.jsLegendRow}`);\n let trow2 = ttab.select(`tr.${style.jsTr2}`);\n let tdsl = trow2.select(`td.${style.jsSparkline}`);\n let legendCell = trow1.select(`.${style.jsLegend}`);\n let fieldCell = trow1.select(`.${style.jsFieldName}`);\n let iconCell = trow1.select(`.${style.jsLegendIcons}`);\n let iconCellViz = iconCell.select(`.${style.jsLegendIconsViz}`);\n let svgGr = tdsl.select('svg').select(`.${style.jsGHist}`);\n // let svgOverlay = svgGr.select(`.${style.jsOverlay}`);\n\n // if they are not created yet then create them\n if (trow1.empty()) {\n trow1 = ttab\n .append('tr')\n .classed(style.legendRow, true)\n .on(\n 'click',\n multiClicker([\n function singleClick(d, i) {\n // single click handler\n // const overCoords = d3.mouse(model.listContainer);\n updateData(d);\n },\n // double click handler\n toggleSingleModeEvt,\n ])\n );\n trow2 = ttab.append('tr').classed(style.jsTr2, true);\n tdsl = trow2\n .append('td')\n .classed(style.sparkline, true)\n .attr('colspan', '3');\n legendCell = trow1.append('td').classed(style.legend, true);\n\n fieldCell = trow1.append('td').classed(style.fieldName, true);\n iconCell = trow1.append('td').classed(style.legendIcons, true);\n iconCellViz = iconCell\n .append('span')\n .classed(style.legendIconsViz, true);\n scoreHelper.createScoreIcons(iconCellViz);\n iconCellViz\n .append('i')\n .classed(style.expandIcon, true)\n .on('click', toggleSingleModeEvt);\n\n // Create SVG, and main group created inside the margins for use by axes, title, etc.\n svgGr = tdsl\n .append('svg')\n .classed(style.sparklineSvg, true)\n .append('g')\n .classed(style.jsGHist, true)\n .attr(\n 'transform',\n `translate( ${model.histMargin.left}, ${model.histMargin.top} )`\n );\n // nested groups inside main group\n svgGr.append('g').classed(style.axis, true);\n svgGr.append('g').classed(style.jsGRect, true);\n // scoring interface\n scoreHelper.createGroups(svgGr);\n svgGr\n .append('rect')\n .classed(style.overlay, true)\n .style('cursor', 'default');\n }\n const dataActive = def.active;\n // Apply legend\n if (model.provider.isA('LegendProvider')) {\n const { color, shape } = model.provider.getLegend(def.name);\n legendCell.html(`<svg class='${style.legendSvg}' width='${legendSize}' height='${legendSize}' viewBox='${shape.viewBox}'\n fill='${color}' stroke='black'><use xlink:href='#${shape.id}'/></svg>`);\n } else {\n legendCell.html('<i></i>').select('i');\n }\n trow1\n .classed(\n !dataActive ? style.selectedLegendRow : style.unselectedLegendRow,\n false\n )\n .classed(\n dataActive ? style.selectedLegendRow : style.unselectedLegendRow,\n true\n );\n // selection outline\n ttab\n .classed(style.hiddenBox, false)\n .classed(!dataActive ? style.selectedBox : style.unselectedBox, false)\n .classed(dataActive ? style.selectedBox : style.unselectedBox, true);\n\n // Change interaction icons based on state.\n // scoreHelper has save icon and score icon.\n const numIcons =\n (model.singleModeSticky ? 0 : 1) + scoreHelper.numScoreIcons(def);\n iconCell.style('width', `${numIcons * iconSize + 2}px`);\n scoreHelper.updateScoreIcons(iconCellViz, def);\n iconCellViz\n .select(`.${style.jsExpandIcon}`)\n .attr(\n 'class',\n model.singleModeName === null ? style.expandIcon : style.shrinkIcon\n )\n .style('display', model.singleModeSticky ? 'none' : null);\n // + 2 accounts for internal padding.\n const allIconsWidth =\n Math.ceil(iconCellViz.node().getBoundingClientRect().width) + 2;\n // reset to the actual width used.\n iconCell.style('width', `${allIconsWidth}px`);\n // Apply field name\n fieldCell\n .style(\n 'width',\n `${model.boxWidth - (10 + legendSize + 6 + allIconsWidth)}px`\n )\n .text(def.name);\n\n // adjust some settings based on current size\n tdsl\n .select('svg')\n .attr('width', publicAPI.svgWidth())\n .attr('height', publicAPI.svgHeight());\n\n // get the histogram data and rebuild the histogram based on the results\n const hobj = def.hobj;\n if (hobj) {\n const cmax = 1.0 * d3.max(hobj.counts);\n const hsize = hobj.counts.length;\n const hdata = svgGr\n .select(`.${style.jsGRect}`)\n .selectAll(`.${style.jsHistRect}`)\n .data(hobj.counts);\n\n hdata.enter().append('rect');\n // changes apply to both enter and update data join:\n hdata\n .attr('class', (d, i) =>\n i % 2 === 0 ? style.histRectEven : style.histRectOdd\n )\n .attr('pname', def.name)\n .attr('y', (d) => model.histHeight * (1.0 - d / cmax))\n .attr('x', (d, i) => (model.histWidth / hsize) * i)\n .attr('height', (d) => model.histHeight * (d / cmax))\n .attr('width', Math.ceil(model.histWidth / hsize));\n\n hdata.exit().remove();\n\n const svgOverlay = svgGr.select(`.${style.jsOverlay}`);\n svgOverlay\n .attr('x', -model.histMargin.left)\n .attr('y', -model.histMargin.top)\n .attr('width', publicAPI.svgWidth())\n .attr('height', publicAPI.svgHeight()); // allow clicks inside x-axis.\n\n if (!scoreHelper.editingScore(def)) {\n if (model.provider.isA('HistogramBinHoverProvider')) {\n svgOverlay\n .on('mousemove.hs', (d, i) => {\n const mCoords = publicAPI.getMouseCoords(tdsl);\n const binNum = Math.floor(\n (mCoords[0] / model.histWidth) * hsize\n );\n const state = {};\n state[def.name] = [binNum];\n model.provider.setHoverState({ state });\n })\n .on('mouseout.hs', (d, i) => {\n const state = {};\n state[def.name] = [-1];\n model.provider.setHoverState({ state });\n });\n }\n svgOverlay.on('click.hs', (d) => {\n const overCoords = publicAPI.getMouseCoords(tdsl);\n if (overCoords[1] <= model.histHeight) {\n updateData(d);\n }\n });\n } else {\n // disable when score editing is happening - it's distracting.\n // Note we still respond to hovers over other components.\n svgOverlay.on('.hs', null);\n }\n\n // Show an x-axis with just min/max displayed.\n // Attach scale, axis objects to this box's\n // data (the 'def' object) to allow persistence when scrolled.\n if (typeof def.xScale === 'undefined') {\n def.xScale = d3.scale.linear();\n }\n const [minRange, maxRange] = scoreHelper.getHistRange(def);\n def.xScale\n .rangeRound([0, model.histWidth])\n .domain([minRange, maxRange]);\n\n if (typeof def.xAxis === 'undefined') {\n const formatter = d3.format('.3s');\n def.xAxis = d3.svg.axis().tickFormat(formatter).orient('bottom');\n }\n def.xAxis.scale(def.xScale);\n let numTicks = 2;\n if (model.histWidth >= model.moreTicksSize) {\n numTicks = 5;\n // using .ticks() results in skipping min/max values,\n // if they aren't 'nice'. Make exactly 5 ticks.\n const myTicks = d3\n .range(numTicks)\n .map(\n (d) => minRange + (d / (numTicks - 1)) * (maxRange - minRange)\n );\n def.xAxis.tickValues(myTicks);\n } else {\n def.xAxis.tickValues(def.xScale.domain());\n }\n // nested group for the x-axis min/max display.\n const gAxis = svgGr.select(`.${style.jsAxis}`);\n gAxis\n .attr('transform', `translate(0, ${model.histHeight})`)\n .call(def.xAxis);\n const tickLabels = gAxis\n .selectAll('text')\n .classed(style.axisText, true);\n numTicks = tickLabels.size();\n tickLabels.style('text-anchor', (d, i) =>\n i === 0 ? 'start' : i === numTicks - 1 ? 'end' : 'middle'\n );\n gAxis.selectAll('line').classed(style.axisLine, true);\n gAxis.selectAll('path').classed(style.axisPath, true);\n\n scoreHelper.prepareItem(def, idx, svgGr, tdsl);\n }\n }", "function buildIndexData(candidateName, candidateLocation, totalWorkEx, skillsdata, transactionIdVar, candidateIdVar) {\r\n let dataJson = {};\r\n dataJson.candidate_name = candidateName;\r\n dataJson.candidate_location = candidateLocation;\r\n dataJson.workExperience = parseInt(totalWorkEx);\r\n dataJson.skillSet = skillsdata;\r\n dataJson.candidate_trans_id = transactionIdVar;\r\n dataJson.candidate_id = candidateIdVar;\r\n return dataJson;\r\n}", "function createGridWithFilteredInfluenza( menuPath,id, methodName, methodArgs,gridType ) {\r\n\t//menuPath - the original path of the menu for which the grid is created\r\n\t//id - the html element id on the page\r\n\t//methodName - javascript method to be called for the click event on the grid items\r\n\t//methodArgs - javascript method arguments\r\n\tif(!id)\r\n\t\tid = menuPath;\r\n\tvar root = $(id);\r\n\tvar grid = $(id+'-grid');\r\n\tif (root.getAttribute( 'gridOffset' )==null) {\r\n\t\troot.setAttribute( 'gridOffset', grid.getAttribute( 'gridOffset'));\r\n\t\troot.setAttribute( 'gridSortCol', grid.getAttribute( 'gridSortCol'));\r\n\t\troot.setAttribute( 'gridSortDir', grid.getAttribute( 'gridSortDir'));\r\n\t\troot.setAttribute( 'filterValue', \"\");\r\n\t\troot.setAttribute( 'menuPath', menuPath);\r\n\r\n//\t\troot.setAttribute( 'gridPreset', grid.getAttribute( 'gridPreset' ));\r\n\t}\r\n\r\n\tvar methodNameValue = methodName;\r\n\tvar methodArgsValue = methodArgs;\r\n\r\n\tif (methodName == undefined)\r\n\t{\r\n\t\tmethodNameValue = \"\";\r\n\t}\r\n\r\n\tif (methodArgs == undefined)\r\n\t{\r\n\t\tmethodArgsValue = \"\";\r\n\t}\r\n\r\n\tliveGrids[id] = new Rico.LiveGrid( id+\"-LG\",\r\n\t\t1*grid.getAttribute('visibleRows'),\r\n\t\t1*grid.getAttribute('totalRows'),\r\n\t\t'menuDataWithFilteredInfluenza.ajaxcchit',\r\n\t\t{\tprefetchBuffer: true,\r\n\t\t\ttableClass: 'gridBody',\r\n\t\t\tloadingClass: 'gridLoading',\r\n scrollerBorderRight: '0px solid #FF0000',\r\n\t\t\toffset: 1*root.getAttribute('gridOffset'),\r\n\t\t\tsortCol: root.getAttribute('gridSortCol'),\r\n\t\t\tsortDir: root.getAttribute('gridSortDir'),\r\n\t\t\tlargeBufferSize: 5.0,\r\n\t\t\tnearLimitFactor: 0.4,\r\n\t\t\trootId: id,\r\n\t\t\tonscroll : updateOffset,\r\n\t\t\tonRefreshComplete: updateSortInfo,\r\n\t\t\trequestParameters: [{name: 'element', value: menuPath},\r\n\t\t\t\t\t\t\t\t{name: 'filter', value: root.getAttribute('filterValue')},\r\n\t\t\t\t\t\t\t\t{name: 'methodName', value: methodNameValue},\r\n\t\t\t\t\t\t\t\t{name: 'methodArgs', value: methodArgsValue },\r\n\t\t\t\t\t\t\t\t{name: 'gridType', value: gridType }],\r\n\t\t\tsortAscendImg: '../images/sort_asc.gif',\r\n\t\t\tsortDescendImg:'../images/sort_desc.gif'\r\n\t\t});\r\n\r\n\tgrid.style.width=($(id+'-LG_header').offsetWidth+19)*2+'px';\r\n\tgrid.style.width=($(id+'-LG_header').offsetWidth+19)+'px';\r\n\tgrid.style.border='#999999 solid 1px';\r\n\t$(id+\"-filter\").value=root.getAttribute('filterValue');\r\n\tnew Form.Element.Observer( $(id+\"-filter\"), 1, function(element, val) {checkUserInputFiltered(element, val, id, methodNameValue, methodArgsValue,menuPath);} );\r\n\tif( $(id).getAttribute('filterValue') != null && $(id).getAttribute('filterValue') != \"\" ) {\r\n\t filterValueChange($(id + \"-filter\"), $(id).getAttribute('filterValue'), id, methodNameValue, methodArgsValue ,menuPath );\r\n\t}\r\n\r\n\t// Move Focus to Filter textbox.\r\n\tvar filterBoxId = id + \"-filter\";\r\n\tsetFocus(filterBoxId );\r\n\t\r\n\t//reset the popup grid width after the grid is created\r\n\t//this fix is needed only for IE. ok to keep for FF too.\r\n\tif($(id).className==\"popupgrid\"){\r\n\t\t$(id).style.width = $(id+\"-grid\").getWidth();\r\n\t}\r\n}", "prepareIndiceForInstall(indexData) {\n return Promise.resolve();\n }", "transformIndex( index ){\r\n let i = 2;\r\n let j = 0;\r\n if( index == this.var.l - 1 )\r\n return createVector( i, j );\r\n\r\n if( index < this.array.vertex[0].length ){\r\n i = 0;\r\n j = index;\r\n }\r\n else{\r\n i = 1;\r\n j = index - this.array.vertex[0].length;\r\n }\r\n return createVector( i, j );\r\n }", "function createNewElementWithFormat(inputFormat, dataIndex) {\n\tvar innerPage = $('.inner-page');\n\tvar prevTag = currentElement();\n\tdataIndex++;\n\n\tprevTag.after('<p contenteditable=\"true\" data-index=\"' + dataIndex + '\" class=\"' + inputFormat + '\"><br></p>');\n\tmoveCursor(dataIndex);\n\tif (inputFormat == 'character') {\n\t\tgiveCharacterSuggestions(currentElement());\n\t}\n\t\n\treturn dataIndex;\n}", "function loadInternal(index, arr) {\n ngDevMode && assertDataInRangeInternal(index + HEADER_OFFSET, arr);\n return arr[index + HEADER_OFFSET];\n}", "poleIndexToDataIndex(poleIndex) {\n if (poleIndex >= 0 && poleIndex < this.numPoles)\n return poleIndex * this._bcurve.poleLength;\n return undefined;\n }", "function prepareToRead() {\n if (fields) return; // already initialized\n var headerEncoding = 'ascii';\n initEncoding();\n if (getNonAsciiHeaders().length > 0) {\n headerEncoding = getEncoding();\n }\n fields = header.fields.map(function(f) {\n var copy = utils.extend({}, f);\n copy.name = decodeString(f.namebuf, headerEncoding);\n return copy;\n });\n // Uniqify header names\n getUniqFieldNames(utils.pluck(fields, 'name')).forEach(function(name2, i) {\n fields[i].name = name2;\n });\n }", "handleChange(event, index, value, type){\n\t\tthis.filterData(type, value)\n\t}", "function PrepareExternalCalendarData(DataFromSB, EventType) {\n\t\tif($.isArray(EventType)) {\n\t\t\tvar ExtEvtType = '', LocalEvtType = '';\n\t\t\t$.each(EventType, function(ind, val) {\n\t\t\t\tInitPartReadyExtCalendarData(val);\n\t\t\t});\n\t\t\t$.each(DataFromSB, function(inx, calendar_data) {\n\t\t\t\tif(calendar_data.hasOwnProperty('endDate') && calendar_data.hasOwnProperty('id') && calendar_data.id.length > 0) {\n\t\t\t\t\tif(calendar_data.hasOwnProperty('type')) {\n\t\t\t\t\t\tExtEvtType = calendar_data.type;\n\t\t\t\t\t\tif(ExtEvtType.length > 0 && AppCalendarEventSupport.SB2AppTypes.hasOwnProperty(ExtEvtType)) {\n\t\t\t\t\t\t\tLocalEvtType = AppCalendarEventSupport.SB2AppTypes[ExtEvtType];\n\t\t\t\t\t\t\tif(LocalEvtType.length > 0 && ReadyExtCalendarData.Data.hasOwnProperty(LocalEvtType)) {\n\t\t\t\t\t\t\t\tReadyExtCalendarData.Data[LocalEvtType][calendar_data.id] = calendar_data;\n\t\t\t\t\t\t\t\tif(calendar_data.hasOwnProperty('groupID')) {\n\t\t\t\t\t\t\t\t\tif(!ReadyExtCalendarData.GroupIDs[LocalEvtType].hasOwnProperty(calendar_data.groupID)) {\n\t\t\t\t\t\t\t\t\t\tReadyExtCalendarData.GroupIDs[LocalEvtType][calendar_data.groupID] = [];\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tReadyExtCalendarData.GroupIDs[LocalEvtType][calendar_data.groupID][ReadyExtCalendarData.GroupIDs[LocalEvtType][calendar_data.groupID].length] = calendar_data.id;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t });\n\t\t} else {\n\t\t\tInitPartReadyExtCalendarData(EventType);\n\t\t\t$.each(DataFromSB, function(inx, calendar_data) {\n\t\t\t\tif(calendar_data.hasOwnProperty('endDate') && calendar_data.hasOwnProperty('id') && calendar_data.id.length > 0) {\n\t\t\t\t\tReadyExtCalendarData.Data[EventType][calendar_data.id] = calendar_data;\n\t\t\t\t\tif(calendar_data.hasOwnProperty('groupID')) {\n\t\t\t\t\t\tif(!ReadyExtCalendarData.GroupIDs[EventType].hasOwnProperty(calendar_data.groupID)) {\n\t\t\t\t\t\t\tReadyExtCalendarData.GroupIDs[EventType][calendar_data.groupID] = [];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tReadyExtCalendarData.GroupIDs[EventType][calendar_data.groupID][ReadyExtCalendarData.GroupIDs[EventType][calendar_data.groupID].length] = calendar_data.id;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t });\n\t\t}\n\t}", "function correctIndexFields(fields) {\n // Every index has to have deleted at the front, because when we do a query\n // we need to filter out deleted documents.\n return ['deleted'].concat(\n fields.map(function (field) {\n if (['_id', '_rev', '_deleted', '_attachments'].includes(field)) {\n // These properties are stored at the top level without the underscore\n return field.substr(1);\n } else {\n // The custom document fields are inside the `data` property\n return 'data.' + sanitise(field, true);\n }\n })\n );\n}", "function toDatastore(obj, nonIndexed) {\n\t\tnonIndexed = nonIndexed || [];\n\t\tvar results = [];\n\t\tObject.keys(obj).forEach(function(k) {\n\t\t if (obj[k] === undefined) { return; }\n\t\t results.push({\n\t\t name: k,\n\t\t value: obj[k],\n\t\t excludeFromIndexes: nonIndexed.indexOf(k) !== -1\n\t\t });\n\t\t});\n\t\treturn results;\n\t}" ]
[ "0.51373285", "0.51373285", "0.48970872", "0.48970872", "0.48970872", "0.482369", "0.482369", "0.482369", "0.48140103", "0.47091633", "0.45909852", "0.44129932", "0.43725613", "0.42502397", "0.42042467", "0.4197168", "0.41751447", "0.41635278", "0.4151749", "0.41436946", "0.40953943", "0.40953943", "0.40953943", "0.40953943", "0.40953943", "0.40761873", "0.40670207", "0.40463513", "0.40336972", "0.4017125", "0.40019196", "0.3988136", "0.39661846", "0.39543346", "0.39395472", "0.39329123", "0.39317602", "0.39294472", "0.39202216", "0.39199606", "0.391925", "0.39174965", "0.39096493", "0.38980213", "0.38951308", "0.38860616", "0.38769877", "0.38755003", "0.3870191", "0.38655558", "0.3858216", "0.3856413", "0.3849219", "0.383817", "0.38245502", "0.38213623", "0.38202205", "0.3817842", "0.38168183", "0.38146126", "0.3809963", "0.38071078", "0.3806088", "0.37970576", "0.3795468", "0.37932572", "0.37869132", "0.3786835", "0.3782629", "0.37822896", "0.37811822", "0.37787881", "0.3777051", "0.37744942", "0.37666962", "0.37376672", "0.37290934", "0.37287894", "0.3722028", "0.3721312", "0.37178046", "0.37146285", "0.37097073", "0.3707665", "0.37005004", "0.36954212", "0.3691503", "0.36727354", "0.36712188", "0.36693665", "0.36690417", "0.36657506", "0.36620015", "0.3661791", "0.36601347", "0.36588714", "0.3656904", "0.36534837", "0.36534327", "0.36519572", "0.36509407" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function _default(nodes, edges, seriesModel, directed, beforeLink) { // ??? TODO // support dataset? var graph = new Graph(directed); for (var i = 0; i < nodes.length; i++) { graph.addNode(zrUtil.retrieve( // Id, name, dataIndex nodes[i].id, nodes[i].name, i), i); } var linkNameList = []; var validEdges = []; var linkCount = 0; for (var i = 0; i < edges.length; i++) { var link = edges[i]; var source = link.source; var target = link.target; // addEdge may fail when source or target not exists if (graph.addEdge(source, target, linkCount)) { validEdges.push(link); linkNameList.push(zrUtil.retrieve(link.id, source + ' > ' + target)); linkCount++; } } var coordSys = seriesModel.get('coordinateSystem'); var nodeData; if (coordSys === 'cartesian2d' || coordSys === 'polar') { nodeData = createListFromArray(nodes, seriesModel); } else { var coordSysCtor = CoordinateSystem.get(coordSys); var coordDimensions = coordSysCtor && coordSysCtor.type !== 'view' ? coordSysCtor.dimensions || [] : []; // FIXME: Some geo do not need `value` dimenson, whereas `calendar` needs // `value` dimension, but graph need `value` dimension. It's better to // uniform this behavior. if (zrUtil.indexOf(coordDimensions, 'value') < 0) { coordDimensions.concat(['value']); } var dimensionNames = createDimensions(nodes, { coordDimensions: coordDimensions }); nodeData = new List(dimensionNames, seriesModel); nodeData.initData(nodes); } var edgeData = new List(['value'], seriesModel); edgeData.initData(validEdges, linkNameList); beforeLink && beforeLink(nodeData, edgeData); linkList({ mainData: nodeData, struct: graph, structAttr: 'graph', datas: { node: nodeData, edge: edgeData }, datasAttr: { node: 'data', edge: 'edgeData' } }); // Update dataIndex of nodes and edges because invalid edge may be removed graph.update(); return graph; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "started () {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "function SigV4Utils() { }", "started() {\r\n\r\n\t}", "static get NOT_READY () {return 0}", "initialize() {\n\n }", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "function getImplementation( cb ){\n\n }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "heartbeat () {\n }", "static final private internal function m106() {}", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "get WSAPlayerX64() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }" ]
[ "0.53504926", "0.4896905", "0.48514667", "0.48116106", "0.4775166", "0.4743932", "0.47342455", "0.47035336", "0.4694186", "0.4694186", "0.46744877", "0.46453032", "0.46394095", "0.4629355", "0.46211302", "0.45832416", "0.45812932", "0.45752546", "0.45698234", "0.45625272", "0.4557475", "0.4549714", "0.45494938", "0.4545794", "0.45383474", "0.4523037", "0.45180768", "0.45005357", "0.4496748", "0.4486438", "0.447462", "0.44716924", "0.4468301", "0.44601226", "0.4456266", "0.4455926", "0.44557476", "0.4445067", "0.44378054", "0.44258687", "0.44258553", "0.4424118", "0.44097725", "0.4406038", "0.4404498", "0.4404498", "0.4404498", "0.43926418", "0.43781474", "0.43708664", "0.43657827", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43526813", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4349645", "0.43450522", "0.43440443", "0.43390423", "0.43347356", "0.43347356", "0.43332103", "0.43318707" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Grid is a region which contains at most 4 cartesian systems TODO Default cartesian Depends on GridModel, AxisModel, which performs preprocess. Check if the axis is used in the specified grid
function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) { return axisModel.getCoordSysModel() === gridModel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function isAxisUsedInTheGrid(axisModel,gridModel,ecModel){return ecModel.getComponent('grid',axisModel.get('gridIndex')) === gridModel;}", "function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {\n return axisModel.getCoordSysModel() === gridModel;\n}", "function isAxisUsedInTheGrid(axisModel, gridModel) {\n return axisModel.getCoordSysModel() === gridModel;\n}", "function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {\n\t return axisModel.getCoordSysModel() === gridModel;\n\t}", "function isAxisUsedInTheGrid(axisModel, gridModel) {\n\t return axisModel.getCoordSysModel() === gridModel;\n\t }", "function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {\n return axisModel.getCoordSysModel() === gridModel;\n }", "function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {\n return axisModel.getCoordSysModel() === gridModel;\n }", "function cartesianAxisHelper_layout(gridModel, axisModel, opt) {\n opt = opt || {};\n var grid = gridModel.coordinateSystem;\n var axis = axisModel.axis;\n var layout = {};\n var otherAxisOnZeroOf = axis.getAxesOnZeroOf()[0];\n var rawAxisPosition = axis.position;\n var axisPosition = otherAxisOnZeroOf ? 'onZero' : rawAxisPosition;\n var axisDim = axis.dim;\n var rect = grid.getRect();\n var rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height];\n var idx = {\n left: 0,\n right: 1,\n top: 0,\n bottom: 1,\n onZero: 2\n };\n var axisOffset = axisModel.get('offset') || 0;\n var posBound = axisDim === 'x' ? [rectBound[2] - axisOffset, rectBound[3] + axisOffset] : [rectBound[0] - axisOffset, rectBound[1] + axisOffset];\n\n if (otherAxisOnZeroOf) {\n var onZeroCoord = otherAxisOnZeroOf.toGlobalCoord(otherAxisOnZeroOf.dataToCoord(0));\n posBound[idx.onZero] = Math.max(Math.min(onZeroCoord, posBound[1]), posBound[0]);\n } // Axis position\n\n\n layout.position = [axisDim === 'y' ? posBound[idx[axisPosition]] : rectBound[0], axisDim === 'x' ? posBound[idx[axisPosition]] : rectBound[3]]; // Axis rotation\n\n layout.rotation = Math.PI / 2 * (axisDim === 'x' ? 0 : 1); // Tick and label direction, x y is axisDim\n\n var dirMap = {\n top: -1,\n bottom: 1,\n left: -1,\n right: 1\n };\n layout.labelDirection = layout.tickDirection = layout.nameDirection = dirMap[rawAxisPosition];\n layout.labelOffset = otherAxisOnZeroOf ? posBound[idx[rawAxisPosition]] - posBound[idx.onZero] : 0;\n\n if (axisModel.get(['axisTick', 'inside'])) {\n layout.tickDirection = -layout.tickDirection;\n }\n\n if (util[\"O\" /* retrieve */](opt.labelInside, axisModel.get(['axisLabel', 'inside']))) {\n layout.labelDirection = -layout.labelDirection;\n } // Special label rotation\n\n\n var labelRotate = axisModel.get(['axisLabel', 'rotate']);\n layout.labelRotate = axisPosition === 'top' ? -labelRotate : labelRotate; // Over splitLine and splitArea\n\n layout.z2 = 1;\n return layout;\n}", "function layout$1(gridModel, axisModel, opt) {\n\t opt = opt || {};\n\t var grid = gridModel.coordinateSystem;\n\t var axis = axisModel.axis;\n\t var layout = {};\n\t var otherAxisOnZeroOf = axis.getAxesOnZeroOf()[0];\n\t var rawAxisPosition = axis.position;\n\t var axisPosition = otherAxisOnZeroOf ? 'onZero' : rawAxisPosition;\n\t var axisDim = axis.dim;\n\t var rect = grid.getRect();\n\t var rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height];\n\t var idx = {\n\t left: 0,\n\t right: 1,\n\t top: 0,\n\t bottom: 1,\n\t onZero: 2\n\t };\n\t var axisOffset = axisModel.get('offset') || 0;\n\t var posBound = axisDim === 'x' ? [rectBound[2] - axisOffset, rectBound[3] + axisOffset] : [rectBound[0] - axisOffset, rectBound[1] + axisOffset];\n\t\n\t if (otherAxisOnZeroOf) {\n\t var onZeroCoord = otherAxisOnZeroOf.toGlobalCoord(otherAxisOnZeroOf.dataToCoord(0));\n\t posBound[idx.onZero] = Math.max(Math.min(onZeroCoord, posBound[1]), posBound[0]);\n\t } // Axis position\n\t\n\t\n\t layout.position = [axisDim === 'y' ? posBound[idx[axisPosition]] : rectBound[0], axisDim === 'x' ? posBound[idx[axisPosition]] : rectBound[3]]; // Axis rotation\n\t\n\t layout.rotation = Math.PI / 2 * (axisDim === 'x' ? 0 : 1); // Tick and label direction, x y is axisDim\n\t\n\t var dirMap = {\n\t top: -1,\n\t bottom: 1,\n\t left: -1,\n\t right: 1\n\t };\n\t layout.labelDirection = layout.tickDirection = layout.nameDirection = dirMap[rawAxisPosition];\n\t layout.labelOffset = otherAxisOnZeroOf ? posBound[idx[rawAxisPosition]] - posBound[idx.onZero] : 0;\n\t\n\t if (axisModel.get(['axisTick', 'inside'])) {\n\t layout.tickDirection = -layout.tickDirection;\n\t }\n\t\n\t if (retrieve(opt.labelInside, axisModel.get(['axisLabel', 'inside']))) {\n\t layout.labelDirection = -layout.labelDirection;\n\t } // Special label rotation\n\t\n\t\n\t var labelRotate = axisModel.get(['axisLabel', 'rotate']);\n\t layout.labelRotate = axisPosition === 'top' ? -labelRotate : labelRotate; // Over splitLine and splitArea\n\t\n\t layout.z2 = 1;\n\t return layout;\n\t }", "function drawAxis(self) {\r\n ////DRAW MAIN AXIS\r\n //Draw grid lines\r\n geometry = new THREE.Geometry();\r\n let material = new THREE.LineBasicMaterial( { color: '#'+self.data.graphColor } );\r\n let scale = self.el.getAttribute('plot').scale;\r\n geometry.vertices.push(new THREE.Vector3( 0, 0, scale[2]) );\r\n geometry.vertices.push(new THREE.Vector3( 0, 0, 0) );\r\n geometry.vertices.push(new THREE.Vector3( 0, scale[1], 0) );\r\n geometry.vertices.push(new THREE.Vector3( 0, 0, 0) );\r\n geometry.vertices.push(new THREE.Vector3( scale[0], 0, 0) );\r\n var grid = new THREE.Line(geometry, material);\r\n //add axis lines to sceneEl\r\n let el = self.el;\r\n el.setObject3D('axis', grid);\r\n el.getObject3D('axis').visible = self.data.enableAxis;\r\n}", "function showGrid(ctx, axis, color = '#000000') {\n\tif (!axis.displayGrid) /* do not show grid */\n\t\treturn;\n\tif (!axis.set) { /* haven't set axis */\n\t\talert('You must set AXIS first!');\n\t\treturn;\n\t}\n\tlet lineSize = 1;\n\tlet i = 0;\n\tfor (; i < axis.xDivision.length; ++i) {\n\t\tx = axis.xDivision[i];\n\t\tdrawLine(ctx, x, axis.yLeftRange, x, axis.yRightRange,\n\t\t\tcolor, lineSize);\n\t}\n\t/* yLeft is pos and yRight is neg */\n\tfor (i = 0; i < axis.yDivision.length; ++i) {\n\t\ty = axis.yDivision[i];\n\t\tdrawLine(ctx, axis.xLeftRange, y, axis.xRightRange, y,\n\t\t\tcolor, lineSize);\n\t}\n}", "function parseGridAxis(channel, model) {\n // FIXME: support adding ticks for grid axis that are inner axes of faceted plots.\n return parseAxis(channel, model, true);\n}", "function grid(scaleType, fieldDef) {\n return !hasDiscreteDomain(scaleType) && !fieldDef.bin;\n }", "function grid(scaleType, fieldDef) {\n return !scale_1.hasDiscreteDomain(scaleType) && !fieldDef.bin;\n}", "createGrids () {\n }", "get gridMode() {\n return this.i.ni;\n }", "noGrid() {\n this._gridParams = false;\n }", "function axisProvider(){\n\t/*\n\t * setAxisContainer(svg);\n\t * setXScale(makeLinearScale([0,width],[0,d3.max(data, function(d) { return d.x; })]));\n\t * setYScale(makeLinearScale([height,0],[0,d3.max(data, function(d) { return d.y; })]));\n\t * draw()\n\t * */\n\tvar axisProviderImpl = {\n\t\t\theight \t: 0,\n\t\t\twidth\t: 0,\n\t\t\tsvg\t\t: null,\n\t\t\txScale\t: null,\n\t\t\tyScale\t: null,\n\t\t\txAxis\t: null,\n\t\t\txGrid\t: null,\n\t\t\tyAxis\t: null,\n\t\t\tyGrid\t: null,\n\t\t\tdrawXGrid: true,\n\t\t\tdrawYGrid: true,\n\t\t\tdrawGrid: true,\n\t\t\txScaleOrient : \"bottom\",\n\t\t\tyScaleOrient : \"left\",\n\t\t\txTitle:\"\",\n\t\t\tyTitle:\"\",\n\t\t\ttitle:\"\",\n\t\t\tticks\t: 10,\n\t\t\tgridTicks : 10,\n\t\t\ttickFormat:\",r\",\n\t\t\tsetAxisContainer: function(svg){\n\t\t\t\tif(!isDefined(svg) || isNull(svg)){\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\tthis.height = svg.attr(\"height\");\n\t\t\t\tthis.width = svg.attr(\"width\");\n\t\t\t\tthis.svg\t= svg;\n\t\t\t},\n\t\t\tmakeLinearScale : function(range,domain){\n\t\t\t\treturn d3.scale.linear().range(range).domain(domain).nice();\n\t\t\t},\n\t\t\tsetXScale\t: function(xScale){\n\t\t\t\tthis.xScale = xScale;\n\t\t\t\tthis.xAxis = d3.svg.axis().scale(xScale).orient(this.xScaleOrient).ticks(this.ticks, this.tickFormat);\n\t\t\t this.xGrid = d3.svg.axis().scale(xScale).orient(this.xScaleOrient).tickSize(-this.height, 0, 0).ticks(this.gridTicks).tickFormat(\"\");\n\t\t\t},\n\t\t\tsetYScale\t:function(yScale){\n\t\t\t\tthis.yScale = yScale;\n\t\t\t\tthis.yAxis = d3.svg.axis().scale(yScale).orient(this.yScaleOrient).ticks(this.ticks, this.tickFormat);\n\t\t\t this.yGrid = d3.svg.axis().scale(yScale).orient(this.yScaleOrient).tickSize(-this.width, 0, 0).ticks(this.gridTicks).tickFormat(\"\");\n\t\t\t},\n\t\t\tdraw\t: function(){\n\t\t\t\tconsole.log(\"Drawing Axis.\");\n\t\t\t\tthis.clear();\n\t\t\t\tif(this.drawGrid && this.drawYGrid){\n\t\t\t\t\tthis.svg.insert(\"g\",\":first-child\").attr(\"class\", \"grid\").call(this.yGrid);\n\t\t\t\t}\n\t\t\t\tthis.svg.insert(\"g\",\":first-child\").attr(\"class\",\"axis\").call(this.yAxis);\n\t\t\t\t//Y axis title\n\t\t\t\tthis.svg.append(\"g\")\n\t\t\t\t.attr(\"class\",\"axisLabel\")\n\t\t\t .append(\"text\")\n\t\t\t .attr(\"class\",\"axisLabel\")\n\t\t\t .attr(\"transform\", \"rotate(-90)\")\n\t\t\t .text(this.yTitle)\n\t\t\t .attr(\"text-anchor\",\"middle\")\n\t\t\t .attr(\"x\",-((this.height/2)))\n\t\t\t .attr(\"y\",-30);\n\t\t\t\t\n\t\t\t\tif(this.drawGrid && this.drawXGrid){\n\t\t\t\t\tthis.svg.insert(\"g\",\":first-child\").attr(\"class\", \"grid\").attr(\"transform\", \"translate(0,\" + this.height + \")\").call(this.xGrid);\n\t\t\t\t}\n\t\t\t\tthis.svg.insert(\"g\",\":first-child\").attr(\"class\",\"axis\").attr(\"transform\", \"translate(0,\" + this.height + \")\").call(this.xAxis);\n\t\t\t\t//X axis title\n\t\t\t this.svg.append(\"g\")\n\t\t\t .attr(\"class\",\"axisLabel\")\n\t\t\t .append(\"text\")\n\t\t\t .attr(\"transform\", \"translate(0,\" + this.height + \")\")\n\t\t\t .attr(\"class\",\"axisLabel\")\n\t\t\t .attr(\"text-anchor\",\"middle\")\n\t\t\t .text(this.xTitle)\n\t\t\t .attr(\"x\",(this.width/2))\n\t\t\t .attr(\"y\",30);\n\t\t\t //chart Title\n\t\t\t this.svg.append(\"g\")\n\t\t\t .attr(\"class\",\"axisLabel\")\n\t\t\t .append(\"text\")\n\t\t\t .attr(\"class\",\"chartTitle\")\n\t\t\t .text(this.title)\n\t\t\t .attr(\"text-anchor\",\"middle\")\n\t\t\t .attr(\"x\",(this.width/2))\n\t\t\t .attr(\"y\",0);\n\t\t\t},\n\t\t\tclear : function(){\n\t\t\t\tthis.svg.selectAll(\".grid\").remove();\n\t\t\t\tthis.svg.selectAll(\".axis\").remove();\n\t\t\t\tthis.svg.selectAll(\".axisLabel\").remove();\n\t\t\t}\n\t};\n\t\n\tthis.$get = function(){\n\t\treturn axisProviderImpl;\n\t};\n}", "function grid_x_axis()\r\n\t{\r\n\t\treturn d3.svg.axis()\r\n\t\t\t.scale(xScale)\r\n\t\t\t.orient(\"bottom\")\r\n\t\t\t.ticks(x_ticks);\r\n\t}", "convertGrid( vec ){\n if( vec == undefined )\n return null;\n\n return vec.y * this.const.m + vec.x;\n }", "function Grid() {\n $.jqplot.ElemContainer.call(this);\n // Group: Properties\n \n // prop: drawGridlines\n // wether to draw the gridlines on the plot.\n this.drawGridlines = true;\n // prop: gridLineColor\n // color of the grid lines.\n this.gridLineColor = '#cccccc';\n // prop: gridLineWidth\n // width of the grid lines.\n this.gridLineWidth = 1.0;\n // prop: background\n // css spec for the background color.\n this.background = '#fffdf6';\n // prop: borderColor\n // css spec for the color of the grid border.\n this.borderColor = '#999999';\n // prop: borderWidth\n // width of the border in pixels.\n this.borderWidth = 2.0;\n // prop: drawBorder\n // True to draw border around grid.\n this.drawBorder = true;\n // prop: shadow\n // wether to show a shadow behind the grid.\n this.shadow = true;\n // prop: shadowAngle\n // shadow angle in degrees\n this.shadowAngle = 45;\n // prop: shadowOffset\n // Offset of each shadow stroke from the border in pixels\n this.shadowOffset = 1.5;\n // prop: shadowWidth\n // width of the stoke for the shadow\n this.shadowWidth = 3;\n // prop: shadowDepth\n // Number of times shadow is stroked, each stroke offset shadowOffset from the last.\n this.shadowDepth = 3;\n // prop: shadowColor\n // an optional css color spec for the shadow in 'rgba(n, n, n, n)' form\n this.shadowColor = null;\n // prop: shadowAlpha\n // Alpha channel transparency of shadow. 0 = transparent.\n this.shadowAlpha = '0.07';\n this._left;\n this._top;\n this._right;\n this._bottom;\n this._width;\n this._height;\n this._axes = [];\n // prop: renderer\n // Instance of a renderer which will actually render the grid,\n // see <$.jqplot.CanvasGridRenderer>.\n this.renderer = $.jqplot.CanvasGridRenderer;\n // prop: rendererOptions\n // Options to pass on to the renderer,\n // see <$.jqplot.CanvasGridRenderer>.\n this.rendererOptions = {};\n this._offsets = {top:null, bottom:null, left:null, right:null};\n }", "function Grid(engine) {\n var _this;\n\n classCallCheck_default()(this, Grid);\n\n _this = possibleConstructorReturn_default()(this, getPrototypeOf_default()(Grid).call(this, engine));\n\n defineProperty_default()(assertThisInitialized_default()(_this), \"cellSize\", void 0);\n\n defineProperty_default()(assertThisInitialized_default()(_this), \"movingMatrix\", []);\n\n _this.shaderProgram = _this.engine.shaders.grid;\n _this.cellSize = [1000, 1000];\n _this.name = \"Just a gird :)\";\n return _this;\n }", "function GridPosition(nx, ny, nz) {\n \"use strict\";\n this.nx = nx;\n this.ny = ny;\n this.nz = nz;\n}", "get grid() {\n return this._grid;\n }", "function drawGrid(){\n var i, y,\n gridLine,\n gridLines = graph.paper.set(),\n avalaibleArea = graph.height - graph.padding.top - graph.padding.bottom;\n\n if (graph.options.grid.show) {\n for (i = 0; i < graph.options.grid.numYLabels; i++) {\n y = graph.height -\n i / (graph.options.grid.numYLabels - 1) * avalaibleArea -\n graph.padding.bottom +\n graph.padding.top;\n gridLine = graph.paper.path(\"M0\" + \" \" + y + \"L\" + graph.width + \" \" + y).attr('stroke', '#ddd');\n gridLines.push(gridLine);\n }\n } else if (graph.options.grid.showBaseline) {\n y = graph.height -\n graph.padding.bottom +\n graph.padding.top;\n gridLine = graph.paper.path(\"M0\" + \" \" + y + \"L\" + graph.width + \" \" + y).attr('stroke', '#ddd');\n gridLines.push(gridLine);\n }\n\n graph.grid = {\n lines: gridLines\n };\n }", "function drawGrid(){\n\t\t\tctx.save();\n\t\t\tctx.translate(plotOffset.left, plotOffset.top);\n\t\n\t\t\t/**\n\t\t\t * Draw grid background, when defined.\n\t\t\t */\n\t\t\tif(options.grid.backgroundColor != null){\n\t\t\t\tctx.fillStyle = options.grid.backgroundColor;\n\t\t\t\tctx.fillRect(0, 0, plotWidth, plotHeight);\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Draw grid lines in vertical direction.\n\t\t\t */\n\t\t\tctx.lineWidth = 1;\n\t\t\tctx.strokeStyle = options.grid.tickColor;\n\t\t\tctx.beginPath();\n\t\t\tfor(var i = 0, v = null; i < xaxis.ticks.length; ++i){\n\t\t\t\tv = xaxis.ticks[i].v;\n\t\t\t\t/**\n\t\t\t\t * Don't show lines on upper and lower bounds.\n\t\t\t\t */\n\t\t\t\tif (v == xaxis.min || v == xaxis.max)\n\t\t\t\t\tcontinue;\n\t\n\t\t\t\tctx.moveTo(Math.floor(tHoz(v)) + ctx.lineWidth/2, 0);\n\t\t\t\tctx.lineTo(Math.floor(tHoz(v)) + ctx.lineWidth/2, plotHeight);\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Draw grid lines in horizontal direction.\n\t\t\t */\n\t\t\tfor(var j = 0, v = null; j < yaxis.ticks.length; ++j){\n\t\t\t\tv = yaxis.ticks[j].v;\n\t\t\t\t/**\n\t\t\t\t * Don't show lines on upper and lower bounds.\n\t\t\t\t */\n\t\t\t\tif (v == yaxis.min || v == yaxis.max)\n\t\t\t\t\tcontinue;\n\t\n\t\t\t\tctx.moveTo(0, Math.floor(tVert(v)) + ctx.lineWidth/2);\n\t\t\t\tctx.lineTo(plotWidth, Math.floor(tVert(v)) + ctx.lineWidth/2);\n\t\t\t}\n\t\t\tctx.stroke();\n\t\t\t\n\t\t\t/**\n\t\t\t * Draw axis/grid border.\n\t\t\t */\n\t\t\tctx.lineWidth = 2;\n\t\t\tctx.strokeStyle = options.grid.color;\n\t\t\tctx.lineJoin = 'round';\n\t\t\tctx.strokeRect(0, 0, plotWidth, plotHeight);\n\t\t\tctx.restore();\n\t\t}", "axisPlot() {\n this.ctx = this.canvas.getContext(\"2d\");\n\n /**\n * Grid grid\n */\n if (this.grid.grid) {\n this.ctx.beginPath();\n this.ctx.font = 'italic 18pt Calibri';\n this.ctx.strokeStyle = '#979797';\n this.ctx.lineWidth = 1;\n this.ctx.setLineDash([10, 15]);\n for (let i = 30; i < this.field.width; i+= 100) {\n this.ctx.fillText(Math.ceil(this.ScreenToWorldY(i)*1000)/1000, 0, i);\n this.ctx.moveTo(0, i);\n this.ctx.lineTo(this.field.width, i);\n }\n for (let i = 100; i < this.field.width; i+= 100) {\n this.ctx.fillText(Math.ceil(this.ScreenToWorldX(i)*1000)/1000, i, this.field.height);\n this.ctx.moveTo(i, 0);\n this.ctx.lineTo(i, this.field.height);\n }\n this.ctx.stroke();\n this.ctx.closePath();\n }\n\n\n /**\n * Grid axiss\n */\n if (this.grid.axiss) {\n this.ctx.beginPath();\n this.ctx.strokeStyle = '#b10009';\n this.ctx.lineWidth = 2;\n this.ctx.setLineDash([]);\n\n this.ctx.moveTo(this.center.x, 0);\n this.ctx.lineTo(this.center.x, this.field.height);\n\n this.ctx.moveTo(0, this.center.y);\n this.ctx.lineTo(this.field.width, this.center.y);\n\n this.ctx.stroke();\n this.ctx.closePath();\n }\n\n\n if (this.grid.serifs) {\n this.ctx.beginPath();\n this.ctx.strokeStyle = '#058600';\n this.ctx.fillStyle = '#888888'\n this.ctx.lineWidth = 2;\n this.ctx.setLineDash([]);\n\n let start = 0;\n if (!this.grid.serifsStep){\n return;\n }\n\n let s = Math.abs(\n this.ScreenToWorldY(0) -\n this.ScreenToWorldY(this.grid.serifsSize)\n );\n\n /**\n * To right & to left\n */\n if ((this.center.y > 0) && (this.center.y < this.field.height)) {\n\n let finish = this.ScreenToWorldX(this.field.width);\n\n for (let i = start; i < finish; i+=this.grid.serifsStep) {\n this.moveTo(i+this.grid.serifsStep/2,(s/2));\n this.lineTo(i+this.grid.serifsStep/2,-(s/2));\n this.ctx.fillText(i+this.grid.serifsStep/2, this.WorldToScreenX(i+this.grid.serifsStep/2), this.WorldToScreenY(s/2));\n\n this.moveTo(i+this.grid.serifsStep,s);\n this.lineTo(i+this.grid.serifsStep,-s);\n this.ctx.fillText(i+this.grid.serifsStep, this.WorldToScreenX(i+this.grid.serifsStep), this.WorldToScreenY(s));\n }\n\n finish = this.ScreenToWorldX(0);\n\n for (let i = start; i > finish; i-=this.grid.serifsStep) {\n this.moveTo(i-this.grid.serifsStep/2,(s/2));\n this.lineTo(i-this.grid.serifsStep/2,-(s/2));\n this.ctx.fillText(i-this.grid.serifsStep/2, this.WorldToScreenX(i-this.grid.serifsStep/2), this.WorldToScreenY(s/2));\n\n this.moveTo(i-this.grid.serifsStep,s);\n this.lineTo(i-this.grid.serifsStep,-s);\n this.ctx.fillText(i-this.grid.serifsStep, this.WorldToScreenX(i-this.grid.serifsStep), this.WorldToScreenY(s));\n }\n }\n\n /**\n * To top & to bot\n */\n if ((this.center.x > 0) && (this.center.x < this.field.width)) {\n\n start = 0;\n let finish = this.ScreenToWorldY(0);\n\n for (let i = start; i < finish; i+=this.grid.serifsStep) {\n this.moveTo((s/2),i+this.grid.serifsStep/2);\n this.lineTo(-(s/2),i+this.grid.serifsStep/2);\n this.ctx.fillText(i+this.grid.serifsStep/2, this.WorldToScreenX(s/2), this.WorldToScreenY(i+this.grid.serifsStep/2));\n\n this.moveTo(s, i+this.grid.serifsStep);\n this.lineTo(-s, i+this.grid.serifsStep);\n this.ctx.fillText(i+this.grid.serifsStep, this.WorldToScreenX(s), this.WorldToScreenY(i+this.grid.serifsStep));\n }\n\n finish = this.ScreenToWorldY(this.field.width);\n\n for (let i = start; i > finish-this.grid.serifsStep; i-=this.grid.serifsStep) {\n this.moveTo((s/2),i+this.grid.serifsStep/2);\n this.lineTo(-(s/2),i+this.grid.serifsStep/2);\n this.ctx.fillText(i+this.grid.serifsStep/2, this.WorldToScreenX(s/2), this.WorldToScreenY(i+this.grid.serifsStep/2));\n\n this.moveTo(s, i+this.grid.serifsStep);\n this.lineTo( -s, i+this.grid.serifsStep);\n this.ctx.fillText(i+this.grid.serifsStep, this.WorldToScreenX(s), this.WorldToScreenY(i+this.grid.serifsStep));\n }\n }\n this.ctx.stroke();\n this.ctx.closePath();\n }\n }", "function renderGrid(grid) {\r\n let modules = grid.modules;\r\n let svg = document.getElementById('root');\r\n let i;\r\n\r\n for (i = 0; i < modules.length; i++) {\r\n svg.appendChild(createModule(modules[i], svg.namespaceURI));\r\n }\r\n}", "renderGrid() {\n this.gridCanvas.background(240);\n this.gridCanvas.fill(70, 70, 200);\n \n for (let w = 0; w < this.plotterGridSize.width; w++) {\n for (let h = 0; h < this.plotterGridSize.height; h++) {\n if (!this.plotterGrid.getCellState(w, h)) {\n continue;\n }\n\n this.gridCanvas.rect(w * this.cellSize, h * this.cellSize, this.cellSize, this.cellSize);\n }\n }\n\n this.lastRenderedCanvasStep = this.plotterGrid.getCurrentStep();\n }", "getGrid() {\n return this.gridCells;\n }", "getGridPlane() {\n const geometry = new THREE.PlaneBufferGeometry(2000, 2000);\n geometry.rotateX(-Math.PI / 2);\n\n const plane = new THREE.Mesh(\n geometry,\n new THREE.MeshBasicMaterial({ visible: false })\n );\n\n return plane;\n }", "constructor() {\n this.grid = [];\n }", "function defaultGrid(scaleType, fieldDef) {\n return !hasDiscreteDomain(scaleType) && isFieldDef(fieldDef) && !isBinning(fieldDef === null || fieldDef === void 0 ? void 0 : fieldDef.bin);\n }", "getOptions() {\n let grids = []\n let xAxies = []\n let yAxies = []\n let series = []\n \n let sampleRate = store.getState().sampleRate\n let keysArray = Object.keys(this.state.eegData)\n // Remove deleted keys\n keysArray = keysArray.filter((key) => {\n return !this.removedAxies.includes(key);\n });\n\n // Layout configuration\n function generateGridTops(grid_height, num_grids) {\n // Returns an array of the top value for each\n // grid to be represented by keysArray\n let padding = 4\n let render_limits = [0+padding, 100-padding]\n let jump_width = (100 - 2*padding) / num_grids\n var list = [];\n for (var i = render_limits[0]; i <= render_limits[1]; i += jump_width) {\n let adjusted_top = i - (grid_height / 2) \n list.push(Math.ceil(adjusted_top));\n }\n return list\n }\n let height = 40\n let topsList = generateGridTops(height, keysArray.length)\n\n keysArray.forEach((key) => {\n let i = keysArray.indexOf(key)\n let grid_top = topsList[i] + \"%\"\n\n grids.push({\n id: key,\n left: '10%',\n right: '2%',\n top: grid_top,\n height: height + \"%\",\n show: true,\n name: key,\n tooltip: {\n show: false,\n trigger: 'axis',\n showDelay: 25\n },\n containLabel: false, // Help grids aligned by axis\n borderWidth: 0\n })\n\n xAxies.push({\n id: key,\n name: key,\n // Index of data as categories, for now\n data: [...Array(this.state.eegData[key].length).keys()],\n type: 'category',\n gridIndex: i,\n showGrid: false,\n axisTick: {\n show: false,\n },\n axisLabel: {\n show: (i == keysArray.length - 1), // Only show on last grid\n interval: sampleRate - 1,\n formatter: (value, index) => {\n return (this.bufferStartIndex + parseInt(value)) / sampleRate\n }\n },\n axisLine: {\n show: false,\n },\n splitLine: {\n show: true,\n interval: sampleRate - 1,\n },\n // Trigger event means you can click on name to register event\n triggerEvent: true,\n nameLocation: 'start',\n })\n\n // let scaleMax = new MyMaths().roundToNextDigit(Math.max(...this.state.eegData[key]))\n let scaleMax = 1\n let scaleMin = -scaleMax\n\n yAxies.push({\n id: key,\n type: 'value',\n gridIndex: i,\n axisLabel: {\n show: false,\n },\n axisLine: {\n show: false,\n },\n splitLine: {\n show: false,\n },\n showGrid: false,\n // Programatically scale min/max\n min: scaleMin,\n max: scaleMax\n })\n\n // Add a line config to series object\n series.push({\n name: key,\n type: 'line',\n symbol: 'none',\n lineStyle: {\n width: 0.5,\n color: 'black',\n },\n gridIndex: i,\n yAxisIndex: i,\n xAxisIndex: i,\n smooth: false,\n sampling: 'lttb',\n\n data: this.state.eegData[key],\n })\n })\n\n /**\n * Configure backsplash grid for highlights and such\n * Adds a grid at backsplashGridIndex that takes full height\n * Adds an xAxis identical to the others\n * Adds a series of 0s meant to be undisplayed,\n * just for markAreas to be applied to\n */\n let timestampFormatter = (value) => {\n let secs = ((value + this.bufferStartIndex) / sampleRate) + this.time_adjustment_secs\n var date = new Date(0);\n date.setSeconds(secs);\n return date.toISOString().substr(11, 8);\n }\n\n this.backsplashGridIndex = keysArray.length\n let backsplashGridIndex = this.backsplashGridIndex\n let configureBacksplashGrid = () => {\n if (backsplashGridIndex == 0) {\n // Catch before data loads in\n return\n }\n let arbitraryKey = keysArray[0]\n\n grids.push({\n left: '10%',\n right: '4%',\n top: '0%',\n bottom: '4%',\n show: false,\n containLabel: false, // Help grids aligned by axis\n })\n yAxies.push({\n type: 'value',\n gridIndex: backsplashGridIndex,\n axisLabel: {\n show: false,\n },\n axisLine: {\n show: false,\n },\n splitLine: {\n show: false,\n },\n showGrid: false,\n min: -1e-3,\n max: 1e-3,\n })\n xAxies.push({\n // Index of data as categories, for now\n data: [...Array(this.state.eegData[arbitraryKey].length).keys()],\n type: 'category',\n gridIndex: backsplashGridIndex,\n showGrid: false,\n axisTick: {\n show: false,\n },\n axisLabel: {\n show: true,\n interval: sampleRate - 1,\n formatter: (value, index) => {\n return timestampFormatter(value)\n }\n },\n axisLine: {\n show: false,\n },\n })\n series.push({\n type: 'line',\n symbol: 'none',\n lineStyle: {\n width: 0,\n color: '#00000000',\n },\n gridIndex: backsplashGridIndex,\n yAxisIndex: backsplashGridIndex,\n xAxisIndex: backsplashGridIndex,\n sampling: 'lttb',\n \n name: 'backSplashSeries',\n \n data: new Array(this.state.eegData[arbitraryKey].length).fill(0),\n })\n }\n configureBacksplashGrid()\n\n /**\n * \n * The actual configuration for the chart\n * Loads in all of the previously filled grids, xAxies, yAxies, and series\n * \n */\n let options = {\n // Use the values configured above\n grid: grids,\n xAxis: xAxies,\n yAxis: yAxies,\n series: series,\n\n // Other Configuration options\n animation: false,\n\n tooltip: {\n show: false,\n },\n\n // toolbox hidden\n toolbox: {\n orient: 'vertical',\n show: false,\n },\n\n // Brush allows for selection that gets turned into markAreas\n brush: {\n toolbox: ['lineX', 'keep'],\n xAxisIndex: backsplashGridIndex\n },\n\n dataZoom: [\n {\n show: false,\n xAxisIndex: Object.keys(series),\n type: 'slider',\n bottom: '2%',\n startValue: this.dz_start,\n endValue: this.dz_end,\n preventDefaultMouseMove: true,\n\n zoomOnMouseWheel: false,\n moveOnMouseWheel: false,\n moveOnMouseMove: false,\n },\n {\n yAxisIndex: Object.keys(series),\n type: 'slider',\n top: '45%',\n filterMode: 'none',\n show: false,\n\n zoomOnMouseWheel: false,\n moveOnMouseWheel: false,\n moveOnMouseMove: false,\n\n id: 'eegGain',\n start: 50 - this.yZoom,\n end: 50 + this.yZoom,\n },{\n type: 'inside',\n yAxisIndex: Object.keys(series),\n\n zoomOnMouseWheel: false,\n moveOnMouseWheel: false,\n moveOnMouseMove: false,\n }\n ],\n }\n\n return options\n }", "isGridValid () {\n return this.grid === this.results\n }", "function getGridSize() {\n\t\t\t\t return (window.innerWidth < 500) ? 1 :\n\t\t\t\t (window.innerWidth < 1179) ? 2 : 3;\n\t\t\t\t}", "function drawMyActualGrid(){\n for(i =0;i<col;i++){\n for(j=0;j<row;j++){\n x = i *resolution;\n y = j * resolution;\n if(grid[i][j]==1){\n fill(255);\n stroke(1);\n rect(x,y,resolution,resolution);\n }\n }\n }\n}", "function renderGrid() {\n let { C, cols, rows, px, grid_color, render_border } = state\n C.gx.clearRect(\n -render_border,\n -render_border,\n C.gx.canvas.width,\n C.gx.canvas.height\n )\n C.gx.strokeStyle = grid_color\n C.gx.lineWidth = 1\n C.gx.strokeRect(0.5, 0.5, sub(mul(cols, px), 1), sub(mul(rows, px), 1))\n C.gx.lineWidth = 2\n for (let c = 1; c < state.cols; c++) {\n C.gx.beginPath()\n C.gx.moveTo(mul(c, px), 0)\n C.gx.lineTo(mul(c, px), mul(rows, px))\n C.gx.stroke()\n }\n for (let r = 1; r < state.rows; r++) {\n C.gx.beginPath()\n C.gx.moveTo(0, mul(r, px))\n C.gx.lineTo(mul(cols, px), mul(r, px))\n C.gx.stroke()\n }\n}", "function manageGrid() {\n CanvasGrid.prop('checked') ?\n Canvas.addClass('borders') :\n Canvas.removeClass('borders');\n if (CanvasBgr.css('display') === 'block') {\n manageHistory('update');\n manageUndoRedoBtn();\n };\n }", "function grid_y_axis()\r\n\t{\r\n\t\treturn d3.svg.axis()\r\n\t\t\t.scale(yScale)\r\n\t\t\t.orient(\"left\")\r\n\t\t\t.ticks(y_ticks);\r\n\t}", "_drawXGrid() {\n const layout = this._chartLayout;\n const xAxisConfig = this.displayOptions.xAxis;\n\n this._context.textAlign = \"center\";\n this._context.textBaseline = \"top\";\n this._context.font = xAxisConfig.fontSize + \"px \" + this.displayOptions.chartArea.fontName;\n\n let prevLblX = NaN;\n let prevLblHalfW = NaN;\n let tickT = layout.plotAreaRect.bottom + layout.canvasYOffset;\n let tickB = tickT + xAxisConfig.majorTickSize - 1;\n let minorTickB = tickT + xAxisConfig.minorTickSize - 1;\n let gridT = layout.plotAreaRect.top + layout.canvasYOffset + 1;\n let gridB = gridT + layout.plotAreaRect.height - 3;\n let labelMarginT = scada.chart.DisplayOptions.getMargin(xAxisConfig.labelMargin, 0);\n let labelMarginR = scada.chart.DisplayOptions.getMargin(xAxisConfig.labelMargin, 1);\n let labelMarginB = scada.chart.DisplayOptions.getMargin(xAxisConfig.labelMargin, 2);\n let labelMarginL = scada.chart.DisplayOptions.getMargin(xAxisConfig.labelMargin, 3);\n let lblY = tickB + labelMarginT + 1;\n let lblDateY = lblY + xAxisConfig.fontSize + labelMarginB + labelMarginT;\n let gridStep = layout.xAxisLayout.gridStep;\n let minorTickStep = this.displayOptions.xAxis.showMinorTicks ? layout.xAxisLayout.minorTickStep : 0;\n let showSeconds = this._xAxisTag.max - this._xAxisTag.min <= Chart.SHOW_SEC_THRESHOLD;\n let dayBegTimeText = new Date(0).toLocaleString(this.controlOptions.locale,\n showSeconds ? Chart._TIME_OPTIONS_SEC : Chart._TIME_OPTIONS);\n\n for (let x = this._xAxisTag.min; x <= this._xAxisTag.max; x += gridStep) {\n let ptX = this._trendXToCanvasX(x);\n\n // vertical grid line\n if (xAxisConfig.showGridLines) {\n this._setColor(this.displayOptions.plotArea.gridColor);\n this._drawLine(ptX, gridT, ptX, gridB);\n }\n\n // major tick\n this._setColor(xAxisConfig.lineColor);\n this._drawLine(ptX, tickT, ptX, tickB);\n\n // minor ticks\n if (minorTickStep > 0) {\n for (let minorTickX = x + minorTickStep,\n maxMinorTickX = Math.min(x + gridStep, this._xAxisTag.max);\n minorTickX < maxMinorTickX; minorTickX += minorTickStep) {\n\n let minorTickCnvX = this._trendXToCanvasX(minorTickX);\n this._drawLine(minorTickCnvX, tickT, minorTickCnvX, minorTickB);\n }\n }\n\n // label\n this._setColor(xAxisConfig.textColor);\n let lblX = ptX;\n let timeText = this._trendXToTimeString(x, showSeconds);\n let lblHalfW = this._context.measureText(timeText).width / 2;\n\n if (isNaN(prevLblX) || lblX - lblHalfW - labelMarginL > prevLblX + prevLblHalfW + labelMarginR) {\n this._context.fillText(timeText, lblX, lblY);\n\n if (xAxisConfig.showDates && timeText === dayBegTimeText) {\n this._context.fillText(this._trendXToDateString(x), lblX, lblDateY);\n }\n\n prevLblX = lblX;\n prevLblHalfW = lblHalfW;\n }\n }\n }", "function drawGrid(grid,width,height,xOffset,yOffset){ //OFFSETS DONT WORK, PLEASE FIX LATER\n\tfor(var x=1;x<width;x++){\n\t\tfor(var y=1;y<height;y++){\n\t\t\tdrawTile(grid[x][y][\"entityContent\"][\"name\"]+\".png\",x,y);\n\t\t}\n\t}\n}", "drawGrid() {\n translate(this.xOffset, this.yOffset);\n background(color('black'));\n for (let x = 0; x <= this.width; x++) {\n\n for (let y = 0; y <= this.height; y++) {\n fill(color('white'))\n strokeWeight(1);\n rect(x * this.boxSize, y * this.boxSize, this.boxSize, this.boxSize);\n\n // Draw the position of the entry\n fill(color('gray'));\n if (this.gridLayout[x][y] != null)\n text(x + \",\" + y + \"\\n\" + this.gridLayout[x][y].name, x * this.boxSize, y * this.boxSize, this.boxSize, this.boxSize);\n else\n text(x + \",\" + y + \"\\n\", x * this.boxSize, y * this.boxSize, this.boxSize, this.boxSize);\n }\n }\n }", "function loadGrid() {\n \n }", "determineDrawGrid() {\n\n\t\tfor(let i = 0; i < this.w; i++) { // x\n\t\t\tlet horizontal = false;\n\t\t\tif(i == 0 || i == (this.w - 1)) horizontal = true; // determine if voxel is on the left or right edge of the terrain\n\t\t\tfor(let j = 0; j < this.h; j++) {\n\t\t\t\tlet vertical = false;\n\t\t\t\tif(j == 0 || j == (this.h - 1)) vertical = true; // determine if voxel is on the upper or lower edge of the terrain\n\t\t\t\tfor(let k = 0; k < this.voxelGrid[i][j]; k++) {\n\t\t\t\t\tif(horizontal || vertical) { // if voxel is on an edge\n\t\t\t\t\t\tthis.drawGrid[i][j][k] = true; // draw it\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t// if voxel is not on an edge, check if the surrounding voxel stacks are taller\n\t\t\t\t\t// if yes, then don't draw it (because it's not visible anyway)\n\t\t\t\t\tif((this.voxelGrid[i-1][j] > k) &&\n\t\t\t\t\t (this.voxelGrid[i+1][j] > k) &&\n\t\t\t\t\t (this.voxelGrid[i][j-1] > k) &&\n\t\t\t\t\t (this.voxelGrid[i][j+1] > k)) {\n\t\t\t\t\t\tthis.drawGrid[i][j][k] = false;\n\t\t\t\t\t} else this.drawGrid[i][j][k] = true;\n\t\t\t\t}\n\n\t\t\t\t// always draw the top voxel of a stack\n\t\t\t\tthis.drawGrid[i][j][this.voxelGrid[i][j] - 1] = true;\n\t\t\t}\n\t\t}\n\t}", "function hasShip(grid, row, column){\n return (grid[row][column] === 1 ? true : false)\n}", "function loadGrid() {\n\n // Establishing View Delta\n var maxCorner = vec3.fromValues(0.01,-0.49,0.75); // bbox corner\n var minCorner = vec3.fromValues(0.99,1.49,0.85); // other corner\n var temp = vec3.create();\n viewDelta = vec3.length(vec3.subtract(temp,maxCorner,minCorner)) / 100; // set globalQ\n\n var triangles = [[0,1,2],[2,3,0]];\n var gridColor = [0.4,0.4,0.4];\n \n var y1 = 1.4; // min y\n var y2 = 1.5; // max y\n var lineThick = 0.005;\n\n var rows = 20;\n var cols = 10;\n\n numTriangleSets = rows * cols; // remember how many tri sets\n\n // For Each Set ...\n for (var rowNum = 0; rowNum < rows; rowNum++) {\n\n var x1 = 0.9; // min x\n var x2 = 1.0; // max x\n\n for (var colNum = 0; colNum < cols; colNum++) {\n\n var setNum = (rowNum * cols) + colNum;\n\n // Storing Centers, Translations, Axis \n centerArray[setNum] = vec3.fromValues(0,0,0);\n transArray[setNum] = vec3.fromValues(0,0,0);\n xAxisArray[setNum] = vec3.fromValues(1,0,0);\n yAxisArray[setNum] = vec3.fromValues(0,1,0);\n\n // Color \n colorArray[setNum] = gridColor;\n\n // Tris\n gridTriArray[setNum] = triangles;\n\n var vertices = [[x1 + lineThick, y1 + lineThick, 0.75], [x1 + lineThick, y2 - lineThick, 0.75], \n [x2 - lineThick, y2 - lineThick, 0.75], [x2 - lineThick, y1 + lineThick, 0.75]];\n\n gridVertexArray[setNum] = vertices; \n\n x1 = x1 - 0.1;\n x2 = x2 - 0.1;\n }\n\n y1 = y1 - 0.1;\n y2 = y2 - 0.1;\n }\n\n // Set Helper Variables\n var whichSetVert; // index of vertex in current triangle set\n var whichSetTri; // index of triangle in current triangle set\n var vtxToAdd; // vtx coords to add to the coord array\n var normToAdd; // vtx normal to add to the coord array\n var triToAdd; // tri indices to add to the index array\n \n // process each triangle set to load webgl vertex and triangle buffers\n for (var whichSet=0; whichSet<numTriangleSets; whichSet++) { // for each tri set\n\n // set up the vertex and normal arrays, define model center and axes\n var glVertices = []; // flat coord list for webgl\n\n var numVerts = gridVertexArray[whichSet].length; // num vertices in tri set\n\n for (whichSetVert=0; whichSetVert<numVerts; whichSetVert++) { // verts in set\n\n vtxToAdd = gridVertexArray[whichSet][whichSetVert]; // get vertex to add\n\n glVertices.push(vtxToAdd[0],vtxToAdd[1],vtxToAdd[2]); // put coords in set coord list\n\n } // end for vertices in set\n\n vec3.scale(centerArray[whichSet],centerArray[whichSet],1/numVerts); // avg ctr sum\n\n // send the vertex coords and normals to webGL\n vertexBuffers[whichSet] = gl.createBuffer(); // init empty webgl set vertex coord buffer\n gl.bindBuffer(gl.ARRAY_BUFFER,vertexBuffers[whichSet]); // activate that buffer\n gl.bufferData(gl.ARRAY_BUFFER,new Float32Array(glVertices),gl.STATIC_DRAW); // data in\n \n // set up the triangle index array, adjusting indices across sets\n var glTriangles = []; // flat index list for webgl\n\n triSetSizes[whichSet] = gridTriArray[whichSet].length; // number of tris in this set\n\n for (whichSetTri=0; whichSetTri<triSetSizes[whichSet]; whichSetTri++) {\n triToAdd = gridTriArray[whichSet][whichSetTri]; // get tri to add\n glTriangles.push(triToAdd[0],triToAdd[1],triToAdd[2]); // put indices in set list\n } // end for triangles in set\n\n // send the triangle indices to webGL\n triangleBuffers.push(gl.createBuffer()); // init empty triangle index buffer\n gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, triangleBuffers[whichSet]); // activate that buffer\n gl.bufferData(gl.ELEMENT_ARRAY_BUFFER,new Uint16Array(glTriangles),gl.STATIC_DRAW); // data in\n\n } // end for each triangle set \n\n\n} // end load models", "isValidPosition (column, row) {\n // add logic that checks if the column and row exist in the grid\n // return true if they are valid and false if they are not\n var validColumn = column >= 0 && column < this.numberOfColumns;\n var validRow = row >= 0 && row < this.numberOfRows;\n\n return validColumn && validRow;\n \n}", "get_internal_grid() {\n\t\t\treturn this._internal_grid\n\t\t}", "getGrid(_x, _y)\n\t{\n\t\tlet x = _x - this.leftBound;\n\t\tlet y = _y - this.upperBound;\n\t\tx=constrain(Math.floor(x/this.cellWidth), 0, this.column);\n\t\ty=constrain(Math.floor(y/this.cellWidth), 0, this.row);\n\t\treturn [x,y];\n\t}", "onGridReady(params) {\n\t\tthis.gridApi = params.api;\n\t\tthis.gridColumnApi = params.columnApi;\n\t}", "cols() {\n return this.grid[0].length;\n }", "function Grid( )\n{\n\tthis.lowerLeft = [37.74027582404923, -122.51225523839999];\n\tthis.upperRight = [37.81323020595205, -122.38651514053345];\n\tthis.latStep = 0.004053 / 3;\n\tthis.lngStep = 0.006287 / 4;\n\tthis.widthN = (this.upperRight[1] - this.lowerLeft[1]) / this.lngStep;\n\tthis.heightN = (this.upperRight[0] - this.lowerLeft[0]) / this.latStep;\n\t\n\tthis.plotGrid = function( bbox, row, column ) {\n\t\tvar grid = drawRegion_bbox( bbox );\n\t\tgrid.row = row;\n\t\tgrid.column = column;\n\t\tgrid.id = row * this.widthN + column;\n\t\t\n\t\tgoogle.maps.event.addListener(grid, 'mouseover', function(event) {\n\t\t\tmessage('Grid row ' + this.row + ' column ' + this.column + ' id ' + this.id);\n\t\t});\n\t\t\n\t\tgoogle.maps.event.addListener(grid, 'mouseout', function(event) {\n\t\t\tmessage('');\n\t\t});\n\t\t\n\t\treturn grid;\n\t};\n\t\n\tthis.plotAllGrids= function() {\n\t\tfor (var row = 0; row < this.heightN; row ++)\n\t\t{\n\t\t\tfor (var column = 0; column < this.widthN; column ++)\n\t\t\t{\n\t\t\t\tbbox = [ this.lowerLeft[0] + this.latStep * (this.heightN - row -1), \n\t\t\t\t\t\tthis.lowerLeft[1] + this.lngStep * column,\n\t\t\t\t\t\tthis.upperRight[0] - this.latStep * row, \n\t\t\t\t\t\tthis.upperRight[1] - this.lngStep * (this.widthN - 1 - column)];\n\t\t\t\t\n\t\t\t\tthis.plotGrid( bbox, row, column );\n\t\t\t}\n\t\t}\n\t};\n\t\n\t\n\tthis.plotByID = function( id ) {\n\t\tvar row = Math.floor(id / this.widthN);\n\t\tvar column = id % this.widthN;\n\t\tvar bbox = [ this.lowerLeft[0] + this.latStep * (this.heightN - row -1), \n\t\t\t\t\t\tthis.lowerLeft[1] + this.lngStep * column,\n\t\t\t\t\t\tthis.upperRight[0] - this.latStep * row, \n\t\t\t\t\t\tthis.upperRight[1] - this.lngStep * (this.widthN - 1 - column)];\n\t\treturn this.plotGrid( bbox, row, column );\n\t};\n}", "function drawGrid(ctx, gridSpacing) {\n ctx.strokeStyle = 'rgb(134, 173, 240)';\n ctx.lineWidth = 1;\n ctx.beginPath();\n\n // Draw vertical grid lines\n for (let x = 0; x <= plane.width; x += gridSpacing) {\n // 0.5 adjustments fix Canvas boundary mismatches, sharpening the lines\n ctx.moveTo(x+0.5, 0);\n ctx.lineTo(x+0.5, plane.height);\n ctx.stroke();\n }\n\n // Draw horizontal grid lines\n for (let y = 0; y <= plane.height; y += gridSpacing) {\n // 0.5 adjustments fix Canvas boundary mismatches, sharpening the lines\n ctx.moveTo(0, y+0.5);\n ctx.lineTo(plane.width, y+0.5);\n ctx.stroke();\n }\n}", "function AxisGroupLayout() {\n go.Layout.call(this);\n // go.GridLayout.call(this);\n // this.cellSize = new go.Size(1, 1);\n // this.wrappingColumn = Infinity;\n // this.wrappingWidth = Infinity;\n // this.spacing = new go.Size(0, 0);\n // this.alignment = go.GridLayout.Position;\n}", "defineGrids() {\n this.columnDefinitions1 = [\n { id: 'title', name: 'Title', field: 'title', sortable: true, type: FieldType.string },\n { id: 'duration', name: 'Duration (days)', field: 'duration', sortable: true, type: FieldType.number },\n { id: 'complete', name: '% Complete', field: 'percentComplete', formatter: Formatters.percentCompleteBar, type: FieldType.number, sortable: true },\n { id: 'start', name: 'Start', field: 'start', formatter: Formatters.dateIso, sortable: true, type: FieldType.dateIso, exportWithFormatter: true },\n { id: 'finish', name: 'Finish', field: 'finish', formatter: Formatters.dateIso, sortable: true, type: FieldType.date, exportWithFormatter: true },\n { id: 'effort-driven', name: 'Effort Driven', field: 'effortDriven', formatter: Formatters.checkmark, type: FieldType.number, sortable: true }\n ];\n this.columnDefinitions2 = [\n { id: 'title', name: 'Title', field: 'title', sortable: true, type: FieldType.string },\n { id: 'duration', name: 'Duration (days)', field: 'duration', sortable: true, type: FieldType.number },\n { id: 'complete', name: '% Complete', field: 'percentComplete', formatter: Formatters.percentCompleteBar, type: FieldType.number, sortable: true },\n { id: 'start', name: 'Start', field: 'start', formatter: Formatters.dateIso, sortable: true, type: FieldType.dateIso, exportWithFormatter: true },\n { id: 'finish', name: 'Finish', field: 'finish', formatter: Formatters.dateIso, sortable: true, type: FieldType.date, exportWithFormatter: true },\n { id: 'effort-driven', name: 'Effort Driven', field: 'effortDriven', formatter: Formatters.checkmark, type: FieldType.number, sortable: true }\n ];\n this.gridOptions1 = {\n enableAutoResize: false,\n gridHeight: 200,\n gridWidth: 800,\n enableCellNavigation: true,\n enableCheckboxSelector: true,\n checkboxSelector: {\n // remove the unnecessary \"Select All\" checkbox in header when in single selection mode\n hideSelectAllCheckbox: true\n },\n rowSelectionOptions: {\n // True (Single Selection), False (Multiple Selections)\n selectActiveRow: true\n },\n enableRowSelection: true\n };\n\n this.gridOptions2 = {\n enableAutoResize: false,\n gridHeight: 200,\n gridWidth: 800,\n enableCellNavigation: true,\n rowSelectionOptions: {\n // True (Single Selection), False (Multiple Selections)\n selectActiveRow: false\n },\n enableCheckboxSelector: true,\n enableRowSelection: true,\n preselectedRows: [0, 2]\n };\n }", "function makeGrid() {\n\n\n}", "function drawGrid ( ctx ) {\n\n var yM = FIELD_HEIGHT,\n xM = FIELD_WIDTH,\n y, x;\n\n for ( y = 0; y < yM; y += ELEMENT_SIZE ) {\n\n ctx.moveTo( y, 0 );\n ctx.lineTo( y, xM );\n\n for ( x = 0; x < xM; x += ELEMENT_SIZE ) {\n\n ctx.moveTo( 0, x );\n ctx.lineTo( yM, x );\n }\n }\n\n ctx.stroke();\n }", "get axis() {\n return {\n index: this.$index,\n columns: this.$columns\n };\n }", "function clearGrid(renderGrid, cartesianOn, gridSpacing) {\n \"use strict\";\n ctx.clearRect(0, 0, 800, 600);\n if (renderGrid === true) {\n drawGrid(gridSpacing);\n }\n if (cartesianOn === true) {\n drawCartesianOverlay();\n }\n}", "function onIrrelevantElement(e, api, targetCoordSysModel) {\n\t var model = api.getComponentByElement(e.topTarget); // If model is axisModel, it works only if it is injected with coordinateSystem.\n\t\n\t var coordSys = model && model.coordinateSystem;\n\t return model && model !== targetCoordSysModel && !IRRELEVANT_EXCLUDES.hasOwnProperty(model.mainType) && coordSys && coordSys.model !== targetCoordSysModel;\n\t }", "checkCell( grid ){\n let flag = true;\n\n if( grid.x < 0 || grid.y < 0 || grid.x > this.const.m - 1 || grid.y > this.const.n - 1 )\n flag = false;\n\n return flag;\n }", "function createGrid(fields) {\n var columns = fields.filter(function(field, i) {\n if (gridFields.indexOf(field.name) !== -1) {\n return field;\n }\n \n }).map(function(field) {\n if (field.name === \"APN\" || field.name === \"JURISDICTION\" || field.name === \"OWNERSHIP_TYPE\"|| field.name === \"TRPA_LANDUSE_DESCRIPTION\") {\n return {\n field: field.name,\n label: field.alias,\n sortable: true,\n hidden: false\n };\n } else {\n return {\n field: field.name,\n label: field.alias,\n sortable: true,\n hidden: true\n };\n }\n });\n\n // create a new onDemandGrid with its selection and columnhider\n // extensions. Set the columns of the grid to display attributes\n // the hurricanes cvslayer\n grid = new(OnDemandGrid.createSubclass([Selection, ColumnHider]))({\n columns: columns\n }, \"grid\");\n\n // add a row-click listener on the grid. This will be used\n // to highlight the corresponding feature on the view\n grid.on(\"dgrid-select\", selectFeatureFromGrid);\n }", "get_grid_width() {\n\t\t\treturn this._internal_grid_size[0]\n\t\t}", "function gridify_the_canvas(canvas){\n\t\n\t\n\tvar counter = 0, row = 0, column = 0 ;\n\t\t\n\tfor(y=0 ; y< canvas.height; y+= gridSpace_height){ \t\n\t\tfor(x=0 ; x < canvas.width; x+= gridSpace_width){ \n\t\t\t\n\t\t\t\n\t\t\tcenterPoint = {'x': column*gridSpace_width + gridSpace_width/2 ,\n\t\t\t\t'y': row*gridSpace_height + gridSpace_height/2 };\n\t\t\tvar topLeft = {'x': x, 'y': y}, topRight = {'x': x +gridSpace_width, 'y': y},\n\t\t\tbottomLeft = { 'x' : x, 'y': y + gridSpace_height }, \n\t\t\tbottomRight = {'x' : x+gridSpace_width, 'y': y + gridSpace_height }\t\n\t\t\t\n\t\t\tvar grid = new createjs.Grid({ 'width' : gridSpace_width,\n\t\t\t 'height' : gridSpace_height, 'row' : row, 'column': column,\n\t\t\t 'centerPoint': centerPoint, 'topLeft': topLeft ,\n\t\t\t 'topRight': topRight, 'bottomLeft': bottomLeft, 'bottomRight': bottomRight,\n\t\t\t 'order': counter, 'name' : 'grid_' + counter\t\t\t \n\t\t\t });\n\t\t\t\n\t\t\tgrids.push( grid);//I want global access to them\n\t\t\tstage.addChild(grid);\n\t\t\t\n\t\t\tcounter++;\n\t\t\tcolumn++; \t\n\t\t\t\n\t\t\t\n\t\t}\n\t\trow++; column = 0;\t\n\t}\n\t\n\t//Lets set some general grid information for snapping\n\tvar number_of_grids_in_one_row = canvas.width / gridSpace_width,\n\t number_of_grids_in_one_column = canvas.height / gridSpace_height;\n\t\t\n\tgridInformation.number_of_grids_in_one_row =number_of_grids_in_one_row;\n\tgridInformation.number_of_grids_in_one_column = number_of_grids_in_one_column;\n\tgridInformation.number_of_grids = number_of_grids_in_one_row\n\t\t* number_of_grids_in_one_column;\n\t\n\tgridInformation.row_index = function(me){\n\t\tvar row_index = [];\n\t\tfor (var i = 0; i <= me.number_of_grids_in_one_column; i++) {\n\t\t\trow_index.push(i);\n\t\t}\n\t\t \n\t\treturn row_index;\t\n\t}(gridInformation)\n\t\n\t\t\t\n\t\t\n}", "function xgrid() { \r\n return d3.svg.axis()\r\n .scale(x0)\r\n .orient(\"bottom\")\r\n .ticks(15)\r\n}", "function drawGrid() {\n noFill();\n stroke(230, 50);\n strokeWeight(2);\n\n for (let j = 0; j < config.numRows; j++) {\n for (let i = 0; i < config.numCols; i++) {\n rect(i * colWidth, j * rowHeight, colWidth, rowHeight)\n }\n }\n }", "noFeatureElementsInAxis() {}", "noFeatureElementsInAxis() {}", "function checkLocalGrid(gridId, xoClass) {\n const localGrid = document.querySelector(gridId)\n console.log(localGrid)\n console.log(localGrid.classList.contains(xoClass))\n return localGrid.classList.contains(xoClass)\n}", "draw_axis(){\n //Y-axis and horizontal grid\n let axis_left = d3.axisLeft(this.y)\n .ticks(this.TICKS)\n .tickFormat(d => d)\n\n this.svg.append('g')\n .attr('transform', `translate(${this.X0}, 0)`)\n .style('font', '14px times')\n .attr('class', 'axis_y')\n .call(axis_left)\n\n let h_grid = d3.axisLeft(this.y)\n .tickSize(-this.W + this.X0)\n .tickFormat('')\n .ticks(this.TICKS)\n\n\n\n this.svg.append('g')\n .attr('transform', `translate(${this.X0}, 0)`)\n .attr('class', 'h_grid')\n .call(h_grid)\n\n\n //X-axis and vertical grid\n this.axis_bottom = d3.axisBottom(this.x)\n .ticks(10)\n .tickFormat(d => 2018 - d)\n\n this.axis_x = this.svg.append('g')\n .style('font', '14px times')\n .attr('transform', `translate(0, ${this.AXIS_HEIGHT})`)\n .attr('class', 'axis_x')\n .call(this.axis_bottom)\n\n\n\n }", "function ifAxisCrossZero(axis) {\n\t var dataExtent = axis.scale.getExtent();\n\t var min = dataExtent[0];\n\t var max = dataExtent[1];\n\t return !(min > 0 && max > 0 || min < 0 && max < 0);\n\t }", "function drawAxes() {\n canvas.select(\"#layer1\").append(\"g\")\n .attr(\"class\", \"grid\")\n .attr(\"transform\", \"translate(0,\" + h + \")\")\n .call(xAxis);\n canvas.select(\"#layer1\").append(\"g\")\n .attr(\"class\", \"grid\")\n .call(yAxis);\n}", "constructor() {\n\t\tthis.grid = [];\n\t\tthis.rows = 0;\n\t\tthis.cols = 0;\n\t}", "function gridYaxis() {\t\t\n return d3.axisLeft(y)\n .ticks(5)\n \n}", "function GridMaker(id, params, master_grid) {\n if (master_grid === void 0) {\n master_grid = null;\n }\n\n var sub = params.sub,\n interval = params.interval,\n range = params.range,\n ctx = params.ctx,\n $p = params.$p,\n layers_meta = params.layers_meta,\n height = params.height,\n y_t = params.y_t,\n ti_map = params.ti_map,\n grid = params.grid,\n timezone = params.timezone;\n var self = {\n ti_map: ti_map\n };\n var lm = layers_meta[id];\n var y_range_fn = null;\n var ls = grid.logScale;\n\n if (lm && Object.keys(lm).length) {\n // Gets last y_range fn()\n var yrs = Object.values(lm).filter(function (x) {\n return x.y_range;\n }); // The first y_range() determines the range\n\n if (yrs.length) y_range_fn = yrs[0].y_range;\n } // Calc vertical ($/₿) range\n\n\n function calc_$range() {\n if (!master_grid) {\n // $ candlestick range\n if (y_range_fn) {\n var _y_range_fn = y_range_fn(hi, lo),\n _y_range_fn2 = _slicedToArray(_y_range_fn, 2),\n hi = _y_range_fn2[0],\n lo = _y_range_fn2[1];\n } else {\n hi = -Infinity, lo = Infinity;\n\n for (var i = 0, n = sub.length; i < n; i++) {\n var x = sub[i];\n if (x[2] > hi) hi = x[2];\n if (x[3] < lo) lo = x[3];\n }\n }\n } else {\n // Offchart indicator range\n hi = -Infinity, lo = Infinity;\n\n for (var i = 0; i < sub.length; i++) {\n for (var j = 1; j < sub[i].length; j++) {\n var v = sub[i][j];\n if (v > hi) hi = v;\n if (v < lo) lo = v;\n }\n }\n\n if (y_range_fn) {\n var _y_range_fn3 = y_range_fn(hi, lo),\n _y_range_fn4 = _slicedToArray(_y_range_fn3, 3),\n hi = _y_range_fn4[0],\n lo = _y_range_fn4[1],\n exp = _y_range_fn4[2];\n }\n } // Fixed y-range in non-auto mode\n\n\n if (y_t && !y_t.auto && y_t.range) {\n self.$_hi = y_t.range[0];\n self.$_lo = y_t.range[1];\n } else {\n if (!ls) {\n exp = exp === false ? 0 : 1;\n self.$_hi = hi + (hi - lo) * $p.config.EXPAND * exp;\n self.$_lo = lo - (hi - lo) * $p.config.EXPAND * exp;\n } else {\n self.$_hi = hi;\n self.$_lo = lo;\n log_scale.expand(self, height);\n }\n\n if (self.$_hi === self.$_lo) {\n if (!ls) {\n self.$_hi *= 1.05; // Expand if height range === 0\n\n self.$_lo *= 0.95;\n } else {\n log_scale.expand(self, height);\n }\n }\n }\n }\n\n function calc_sidebar() {\n if (sub.length < 2) {\n self.prec = 0;\n self.sb = $p.config.SBMIN;\n return;\n } // TODO: improve sidebar width calculation\n // at transition point, when one precision is\n // replaced with another\n // Gets formated levels (their lengths),\n // calculates max and measures the sidebar length\n // from it:\n // TODO: add custom formatter f()\n\n\n self.prec = calc_precision(sub);\n var lens = [];\n lens.push(self.$_hi.toFixed(self.prec).length);\n lens.push(self.$_lo.toFixed(self.prec).length);\n var str = '0'.repeat(Math.max.apply(Math, lens)) + ' ';\n self.sb = ctx.measureText(str).width;\n self.sb = Math.max(Math.floor(self.sb), $p.config.SBMIN);\n self.sb = Math.min(self.sb, $p.config.SBMAX);\n } // Calculate $ precision for the Y-axis\n\n\n function calc_precision(data) {\n var max_r = 0,\n max_l = 0;\n var min = Infinity;\n var max = -Infinity; // Speed UP\n\n for (var i = 0, n = data.length; i < n; i++) {\n var x = data[i];\n if (x[1] > max) max = x[1];else if (x[1] < min) min = x[1];\n } // Get max lengths of integer and fractional parts\n\n\n [min, max].forEach(function (x) {\n // Fix undefined bug\n var str = x != null ? x.toString() : '';\n\n if (x < 0.000001) {\n // Parsing the exponential form. Gosh this\n // smells trickily\n var _str$split = str.split('e-'),\n _str$split2 = _slicedToArray(_str$split, 2),\n ls = _str$split2[0],\n rs = _str$split2[1];\n\n var _ls$split = ls.split('.'),\n _ls$split2 = _slicedToArray(_ls$split, 2),\n l = _ls$split2[0],\n r = _ls$split2[1];\n\n if (!r) r = '';\n r = {\n length: r.length + parseInt(rs) || 0\n };\n } else {\n var _str$split3 = str.split('.'),\n _str$split4 = _slicedToArray(_str$split3, 2),\n l = _str$split4[0],\n r = _str$split4[1];\n }\n\n if (r && r.length > max_r) {\n max_r = r.length;\n }\n\n if (l && l.length > max_l) {\n max_l = l.length;\n }\n }); // Select precision scheme depending\n // on the left and right part lengths\n //\n\n var even = max_r - max_r % 2 + 2;\n\n if (max_l === 1) {\n return Math.min(8, Math.max(2, even));\n }\n\n if (max_l <= 2) {\n return Math.min(4, Math.max(2, even));\n }\n\n return 2;\n }\n\n function calc_positions() {\n if (sub.length < 2) return;\n var dt = range[1] - range[0]; // A pixel space available to draw on (x-axis)\n\n self.spacex = $p.width - self.sb; // Candle capacity\n\n var capacity = dt / interval;\n self.px_step = self.spacex / capacity; // px / time ratio\n\n var r = self.spacex / dt;\n self.startx = (sub[0][0] - range[0]) * r; // Candle Y-transform: (A = scale, B = shift)\n\n if (!grid.logScale) {\n self.A = -height / (self.$_hi - self.$_lo);\n self.B = -self.$_hi * self.A;\n } else {\n self.A = -height / (math.log(self.$_hi) - math.log(self.$_lo));\n self.B = -math.log(self.$_hi) * self.A;\n }\n } // Select nearest good-loking t step (m is target scale)\n\n\n function time_step() {\n var k = ti_map.ib ? 60000 : 1;\n var xrange = (range[1] - range[0]) * k;\n var m = xrange * ($p.config.GRIDX / $p.width);\n var s = grid_maker_TIMESCALES;\n return utils.nearest_a(m, s)[1] / k;\n } // Select nearest good-loking $ step (m is target scale)\n\n\n function dollar_step() {\n var yrange = self.$_hi - self.$_lo;\n var m = yrange * ($p.config.GRIDY / height);\n var p = parseInt(yrange.toExponential().split('e')[1]);\n var d = Math.pow(10, p);\n var s = grid_maker_$SCALES.map(function (x) {\n return x * d;\n }); // TODO: center the range (look at RSI for example,\n // it looks ugly when \"80\" is near the top)\n\n return utils.strip(utils.nearest_a(m, s)[1]);\n }\n\n function dollar_mult() {\n var mult_hi = dollar_mult_hi();\n var mult_lo = dollar_mult_lo();\n return Math.max(mult_hi, mult_lo);\n } // Price step multiplier (for the log-scale mode)\n\n\n function dollar_mult_hi() {\n var h = Math.min(self.B, height);\n if (h < $p.config.GRIDY) return 1;\n var n = h / $p.config.GRIDY; // target grid N\n\n var yrange = self.$_hi;\n\n if (self.$_lo > 0) {\n var yratio = self.$_hi / self.$_lo;\n } else {\n yratio = self.$_hi / 1; // TODO: small values\n }\n\n var m = yrange * ($p.config.GRIDY / h);\n var p = parseInt(yrange.toExponential().split('e')[1]);\n return Math.pow(yratio, 1 / n);\n }\n\n function dollar_mult_lo() {\n var h = Math.min(height - self.B, height);\n if (h < $p.config.GRIDY) return 1;\n var n = h / $p.config.GRIDY; // target grid N\n\n var yrange = Math.abs(self.$_lo);\n\n if (self.$_hi < 0 && self.$_lo < 0) {\n var yratio = Math.abs(self.$_lo / self.$_hi);\n } else {\n yratio = Math.abs(self.$_lo) / 1;\n }\n\n var m = yrange * ($p.config.GRIDY / h);\n var p = parseInt(yrange.toExponential().split('e')[1]);\n return Math.pow(yratio, 1 / n);\n }\n\n function grid_x() {\n // If this is a subgrid, no need to calc a timeline,\n // we just borrow it from the master_grid\n if (!master_grid) {\n self.t_step = time_step();\n self.xs = [];\n var dt = range[1] - range[0];\n var r = self.spacex / dt;\n /* TODO: remove the left-side glitch\n let year_0 = Utils.get_year(sub[0][0])\n for (var t0 = year_0; t0 < range[0]; t0 += self.t_step) {}\n let m0 = Utils.get_month(t0)*/\n\n for (var i = 0; i < sub.length; i++) {\n var p = sub[i];\n var prev = sub[i - 1] || [];\n var prev_xs = self.xs[self.xs.length - 1] || [0, []];\n var x = Math.floor((p[0] - range[0]) * r);\n insert_line(prev, p, x); // Filtering lines that are too near\n\n var xs = self.xs[self.xs.length - 1] || [0, []];\n if (prev_xs === xs) continue;\n\n if (xs[1][0] - prev_xs[1][0] < self.t_step * 0.8) {\n // prev_xs is a higher \"rank\" label\n if (xs[2] <= prev_xs[2]) {\n self.xs.pop();\n } else {\n // Otherwise\n self.xs.splice(self.xs.length - 2, 1);\n }\n }\n } // TODO: fix grid extension for bigger timeframes\n\n\n if (interval < grid_maker_WEEK && r > 0) {\n extend_left(dt, r);\n extend_right(dt, r);\n }\n } else {\n self.t_step = master_grid.t_step;\n self.px_step = master_grid.px_step;\n self.startx = master_grid.startx;\n self.xs = master_grid.xs;\n }\n }\n\n function insert_line(prev, p, x, m0) {\n var prev_t = ti_map.ib ? ti_map.i2t(prev[0]) : prev[0];\n var p_t = ti_map.ib ? ti_map.i2t(p[0]) : p[0];\n\n if (ti_map.tf < grid_maker_DAY) {\n prev_t += timezone * grid_maker_HOUR;\n p_t += timezone * grid_maker_HOUR;\n }\n\n var d = timezone * grid_maker_HOUR; // TODO: take this block =========> (see below)\n\n if ((prev[0] || interval === grid_maker_YEAR) && utils.get_year(p_t) !== utils.get_year(prev_t)) {\n self.xs.push([x, p, grid_maker_YEAR]); // [px, [...], rank]\n } else if (prev[0] && utils.get_month(p_t) !== utils.get_month(prev_t)) {\n self.xs.push([x, p, grid_maker_MONTH]);\n } // TODO: should be added if this day !== prev day\n // And the same for 'botbar.js', TODO(*)\n else if (utils.day_start(p_t) === p_t) {\n self.xs.push([x, p, grid_maker_DAY]);\n } else if (p[0] % self.t_step === 0) {\n self.xs.push([x, p, interval]);\n }\n }\n\n function extend_left(dt, r) {\n if (!self.xs.length || !isFinite(r)) return;\n var t = self.xs[0][1][0];\n\n while (true) {\n t -= self.t_step;\n var x = Math.floor((t - range[0]) * r);\n if (x < 0) break; // TODO: ==========> And insert it here somehow\n\n if (t % interval === 0) {\n self.xs.unshift([x, [t], interval]);\n }\n }\n }\n\n function extend_right(dt, r) {\n if (!self.xs.length || !isFinite(r)) return;\n var t = self.xs[self.xs.length - 1][1][0];\n\n while (true) {\n t += self.t_step;\n var x = Math.floor((t - range[0]) * r);\n if (x > self.spacex) break;\n\n if (t % interval === 0) {\n self.xs.push([x, [t], interval]);\n }\n }\n }\n\n function grid_y() {\n // Prevent duplicate levels\n var m = Math.pow(10, -self.prec);\n self.$_step = Math.max(m, dollar_step());\n self.ys = [];\n var y1 = self.$_lo - self.$_lo % self.$_step;\n\n for (var y$ = y1; y$ <= self.$_hi; y$ += self.$_step) {\n var y = Math.floor(y$ * self.A + self.B);\n if (y > height) continue;\n self.ys.push([y, utils.strip(y$)]);\n }\n }\n\n function grid_y_log() {\n // TODO: Prevent duplicate levels, is this even\n // a problem here ?\n self.$_mult = dollar_mult();\n self.ys = [];\n if (!sub.length) return;\n var v = Math.abs(sub[sub.length - 1][1] || 1);\n var y1 = search_start_pos(v);\n var y2 = search_start_neg(-v);\n var yp = -Infinity; // Previous y value\n\n var n = height / $p.config.GRIDY; // target grid N\n\n var q = 1 + (self.$_mult - 1) / 2; // Over 0\n\n for (var y$ = y1; y$ > 0; y$ /= self.$_mult) {\n y$ = log_rounder(y$, q);\n var y = Math.floor(math.log(y$) * self.A + self.B);\n self.ys.push([y, utils.strip(y$)]);\n if (y > height) break;\n if (y - yp < $p.config.GRIDY * 0.7) break;\n if (self.ys.length > n + 1) break;\n yp = y;\n } // Under 0\n\n\n yp = Infinity;\n\n for (var y$ = y2; y$ < 0; y$ /= self.$_mult) {\n y$ = log_rounder(y$, q);\n\n var _y = Math.floor(math.log(y$) * self.A + self.B);\n\n if (yp - _y < $p.config.GRIDY * 0.7) break;\n self.ys.push([_y, utils.strip(y$)]);\n if (_y < 0) break;\n if (self.ys.length > n * 3 + 1) break;\n yp = _y;\n } // TODO: remove lines near to 0\n\n } // Search a start for the top grid so that\n // the fixed value always included\n\n\n function search_start_pos(value) {\n var N = height / $p.config.GRIDY; // target grid N\n\n var y = Infinity,\n y$ = value,\n count = 0;\n\n while (y > 0) {\n y = Math.floor(math.log(y$) * self.A + self.B);\n y$ *= self.$_mult;\n if (count++ > N * 3) return 0; // Prevents deadloops\n }\n\n return y$;\n }\n\n function search_start_neg(value) {\n var N = height / $p.config.GRIDY; // target grid N\n\n var y = -Infinity,\n y$ = value,\n count = 0;\n\n while (y < height) {\n y = Math.floor(math.log(y$) * self.A + self.B);\n y$ *= self.$_mult;\n if (count++ > N * 3) break; // Prevents deadloops\n }\n\n return y$;\n } // Make log scale levels look great again\n\n\n function log_rounder(x, quality) {\n var s = Math.sign(x);\n x = Math.abs(x);\n\n if (x > 10) {\n for (var div = 10; div < MAX_INT; div *= 10) {\n var nice = Math.floor(x / div) * div;\n\n if (x / nice > quality) {\n // More than 10% off\n break;\n }\n }\n\n div /= 10;\n return s * Math.floor(x / div) * div;\n } else if (x < 1) {\n for (var ro = 10; ro >= 1; ro--) {\n var _nice = utils.round(x, ro);\n\n if (x / _nice > quality) {\n // More than 10% off\n break;\n }\n }\n\n return s * utils.round(x, ro + 1);\n } else {\n return s * Math.floor(x);\n }\n }\n\n function apply_sizes() {\n self.width = $p.width - self.sb;\n self.height = height;\n }\n\n calc_$range();\n calc_sidebar();\n return {\n // First we need to calculate max sidebar width\n // (among all grids). Then we can actually make\n // them\n create: function create() {\n calc_positions();\n grid_x();\n\n if (grid.logScale) {\n grid_y_log();\n } else {\n grid_y();\n }\n\n apply_sizes(); // Link to the master grid (candlesticks)\n\n if (master_grid) {\n self.master_grid = master_grid;\n }\n\n self.grid = grid; // Grid params\n // Here we add some helpful functions for\n // plugin creators\n\n return layout_fn(self, range);\n },\n get_layout: function get_layout() {\n return self;\n },\n set_sidebar: function set_sidebar(v) {\n return self.sb = v;\n },\n get_sidebar: function get_sidebar() {\n return self.sb;\n }\n };\n}", "function getGridSize() {\n\t\t\treturn\t((window.innerWidth || document.documentElement.clientWidth) < 480) ? 1 :\n\t\t\t\t\t((window.innerWidth || document.documentElement.clientWidth) > 479 && (window.innerWidth || document.documentElement.clientWidth) < 768) ? 2 :\n\t\t\t\t\t((window.innerWidth || document.documentElement.clientWidth) > 767 && (window.innerWidth || document.documentElement.clientWidth) < 980) ? 4 : 4;\n\t\t\t}", "function drawGrid() {\r\n var gridOptions = {\r\n majorLines: {\r\n separation: majorSeperation,\r\n color: \"#d3d3d3\",\r\n },\r\n }\r\n ctx.clearRect(0, 0, cnv.width, cnv.height)\r\n cnv.width = canvasWidth\r\n cnv.height = canvasHeight\r\n drawGridLines(cnv, gridOptions.majorLines)\r\n\r\n return\r\n}", "function gridXaxis() {\t\t\n return d3.axisBottom(x)\n .ticks(5)\n}", "createGridPoints() {\n\n\t\tconst gridPoints = this.gridPoints;\n\n\t\tconst s = this.cellSize;\n\t\tconst n = HermiteData.resolution;\n\n\t\tconst base = this.cellPosition;\n\t\tconst offset = new Vector3();\n\t\tconst gridPointGeometry = new SphereBufferGeometry(0.05, 8, 8);\n\t\tconst gridPointMaterial = this.gridPointMaterials[0];\n\n\t\tfor(let z = 0; z <= n; ++z) {\n\n\t\t\toffset.z = z * s / n;\n\n\t\t\tfor(let y = 0; y <= n; ++y) {\n\n\t\t\t\toffset.y = y * s / n;\n\n\t\t\t\tfor(let x = 0; x <= n; ++x) {\n\n\t\t\t\t\toffset.x = x * s / n;\n\n\t\t\t\t\tconst gridPoint = new Mesh(gridPointGeometry, gridPointMaterial);\n\t\t\t\t\tgridPoint.position.copy(base).add(offset);\n\t\t\t\t\tgridPoints.add(gridPoint);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t}", "function inGrid(width, height, point)\n{\n if(point.x >=0 && point.x<width && point.y >=0 && point.y < height)\n {\n return true;\n }\n return false;\n}", "function GridTrack(name) {\n Track.call(this, name, name, true, function() {});\n}", "function grid() {\r\n\t\tvar grid = document.getElementById(\"grid\"); \r\n\t\tif (grid.checked === true) {\r\n\t\t myDiagram.grid.visible = true;\r\n\t\t return;\r\n\t\t} else {\r\n\t\t myDiagram.grid.visible = false; \r\n\t\t}\r\n\t }", "function objectBuildAxisX(colorGrid, colorTick) {\n var axisX = {\n gridColor : colorGrid,\n tickColor : colorTick,\n labelFormatter : function(e) {\n return e.value;\n },\n margin : 20,\n interlacedColor : \"#E1FCFF\"\n };\n return axisX;\n}", "onGridReady(params) {\n\t\tgridApi = params.api;\n\t\tgridColumnApi = params.columnApi;\n\t\tgridApi.axios = axios;\n\t\tgridOptions = this.context.componentParent.state.gridOptions;\n\n\t\tgridOptions.api = gridApi;\n\t\tgridOptions.columnApi = gridColumnApi;\n\t\tif(localStorage.getItem(this.context.componentParent.state.report.reportid + 'GridGroups')) {\n\t\t\tlet groups = JSON.parse(localStorage.getItem(this.context.componentParent.state.report.reportid + 'GridGroups'));\n\t\t\tsetTimeout(()=> {\n\t\t\t\tgroups.forEach(groupId => {\n\t\t\t\t\tlet node = gridOptions.api.getRowNode(groupId);\n\t\t\t\t\tnode.setExpanded(true);\n\t\t\t\t });\n\t\t\t });\n\t\t}\n\t\n\t\tif(gridOptions.setFilter) {\n\t\t\ttry {\n\t\t\t\tgridOptions.api.setFilterModel(gridOptions.setFilter());\n\t\t\t} catch(error) {console.log(error)};\n\t\t} \n\t\tgridOptions.api.onFilterChanged();\n\t}", "function setupGrid() {\n\n // Initialize the grid with all false values, i.e. the inactive state\n for (let i = 0; i < numRectanglesWide; i++) {\n grid.push([]);\n for (let j = 0; j < numRectanglesHigh; j++) {\n grid[i].push(false);\n }\n }\n\n ctx.strokeStyle = gridColor;\n ctx.lineWidth = gridThickness;\n\n const drawLine = (x1, y1, x2, y2) => {\n ctx.beginPath();\n ctx.moveTo(x1, y1);\n ctx.lineTo(x2, y2);\n ctx.stroke();\n };\n\n // Since we draw the lines on the left and top sides of each rectangle,\n // we need to use <= instead of < so that the last border is drawn\n\n // Draws vertical grid lines\n for (let i = 0; i <= numRectanglesWide; i++) {\n const x = i * rectangleWidth + i * gridThickness;\n drawLine(x, 0, x, canvas.height);\n }\n\n // Draws horizontal grid lines\n for (let i = 0; i <= numRectanglesHigh; i++) {\n const y = i * rectangleHeight + i * gridThickness;\n drawLine(0, y, canvas.width, y);\n }\n }", "function drawGrid() {\n\t\tcontext.fillStyle = GRID_COLOR;\n\t\tfor (var i = GRID_CELL_WIDTH; i < canvas.width; i = i + GRID_CELL_WIDTH) {\n\t\t\tfor (var j = GRID_CELL_WIDTH; j < canvas.height; j = j + GRID_CELL_WIDTH) {\n\t\t\t\tcontext.fillRect(i, j, 1, 1);\n\t\t\t}\n\t\t}\n\t}", "function isEmpty(x,y, grid)\n {\n if(math.subset(grid, math.index(x,y)) == 0) {\n return false;\n }\n else{\n return true;\n }\n }", "function drawHlGrid(){\n\tvar obj = gridSize();\n\tvar canvas = document.getElementById('hl_grid');\n\t\n\tvar context = canvas.getContext('2d');\n\tcontext.scale(dpr,dpr);\n\t\n\t//Set the canvas size\n\tcanvas.width = (obj.colWidth * obj.cols+0.5)*dpr;\n\tcanvas.height = (obj.rowHeight*obj.rows+0.5)*dpr;\n\t\n\tcanvas.style.width = `${obj.colWidth * obj.cols+0.5}px`;\n\tcanvas.style.height = `${obj.rowHeight*obj.rows+0.5}px`;\n\tcontext.scale(dpr,dpr);\n\n}", "function checkPosition(target) {\n let gridNames = [];\n let pointSize = master.size / 2;\n gridNames.push(String(\"Grid\" + Math.floor((target.pos.x + pointSize) / master.gridSize) + Math.floor((target.pos.y + pointSize) / master.gridSize)));\n gridNames.push(String(\"Grid\" + Math.floor((target.pos.x + pointSize) / master.gridSize) + Math.floor((target.pos.y - pointSize) / master.gridSize)));\n gridNames.push(String(\"Grid\" + Math.floor((target.pos.x - pointSize) / master.gridSize) + Math.floor((target.pos.y + pointSize) / master.gridSize)));\n gridNames.push(String(\"Grid\" + Math.floor((target.pos.x - pointSize) / master.gridSize) + Math.floor((target.pos.y - pointSize) / master.gridSize)));\n\n let used = [];\n // Stop repetitive names\n for (let i = 0; i < gridNames.length; i++) {\n if (used.includes(gridNames[i])) {\n gridNames.splice(i);\n } else {\n used.push(gridNames[i])\n }\n }\n return gridNames;\n}", "function drawGrid(grid, x, y, size=16, gridLines=true){\n\tfor (var r=0; r<grid.length; r++){\n\t\tfor(var c=0; c<grid[0].length; c++){\n\t\t\tif (gridLines == true)drawRectStroke(x + r*size, y + c*size, size, size);\n\t\t\tif (grid[r][c] != -1)continue;\n\t\t\tdrawRect(x + c*size, y + r*size, size, size);\n\t\t}\n\t}\n}", "function create(ecModel, api) {\n var singles = [];\n ecModel.eachComponent('singleAxis', function (axisModel, idx) {\n var single = new single_Single(axisModel, ecModel, api);\n single.name = 'single_' + idx;\n single.resize(axisModel, api);\n axisModel.coordinateSystem = single;\n singles.push(single);\n });\n ecModel.eachSeries(function (seriesModel) {\n if (seriesModel.get('coordinateSystem') === 'singleAxis') {\n var singleAxisModel = seriesModel.getReferringComponents('singleAxis', util_model[\"b\" /* SINGLE_REFERRING */]).models[0];\n seriesModel.coordinateSystem = singleAxisModel && singleAxisModel.coordinateSystem;\n }\n });\n return singles;\n}", "function createGrid(xCols, yRows, zMod) {\n // grid\n for (var i = 0; i < objects.length; i++) {\n var object = new THREE.Object3D();\n object.position.x = ((i % xCols) * 300) - 800;\n object.position.y = (-(Math.floor(i / 5) % yRows) * 400) + 800;\n object.position.z = (Math.floor(i / zMod)) * 500 - 2000;\n object.id = Math.random() * 300;\n targets.grid.push(object);\n }\n}" ]
[ "0.7949989", "0.7594166", "0.74707824", "0.74536157", "0.744521", "0.73065215", "0.73065215", "0.60898906", "0.60467076", "0.5842424", "0.58246017", "0.564273", "0.5627384", "0.551221", "0.54815674", "0.54344904", "0.54317445", "0.5330635", "0.5321357", "0.53115165", "0.53012055", "0.5288634", "0.52684015", "0.52435255", "0.519513", "0.514024", "0.51342386", "0.5121857", "0.51190585", "0.5101305", "0.5077298", "0.5073814", "0.5070925", "0.50624293", "0.5060637", "0.5036289", "0.50266916", "0.5022505", "0.5006545", "0.49759787", "0.4970205", "0.49603587", "0.4959962", "0.4959091", "0.49583513", "0.4954547", "0.49532753", "0.49408516", "0.49345744", "0.493173", "0.49316382", "0.49153286", "0.49126104", "0.49121898", "0.4912062", "0.49118036", "0.4911288", "0.48847345", "0.48806432", "0.48727214", "0.48717743", "0.48416907", "0.48403278", "0.48348233", "0.48308045", "0.4830765", "0.48266834", "0.48216364", "0.48216364", "0.48215666", "0.4818532", "0.48172608", "0.4815329", "0.48122388", "0.48096356", "0.48094794", "0.48066825", "0.480063", "0.47998124", "0.47988898", "0.4796882", "0.47967488", "0.47953275", "0.47926524", "0.47920424", "0.47915792", "0.47830877", "0.47829038", "0.47827712", "0.47789374", "0.4777614", "0.4776035", "0.47754297" ]
0.75602084
9
The implementation of this function was originally copied from "d3.js" < with some modifications made for this program. See the license statement at the head of this file.
function defaultSeparation(node1, node2) { return node1.parentNode === node2.parentNode ? 1 : 2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dd3(s) {\n\t//Create a svg\n\tvar width = 800;\n\tvar height = 400;\n\tvar svg = d3.select(\"body\")\n\t\t\t\t.append(\"svg\")\n\t\t\t\t.attr(\"width\", width)\n\t\t\t\t.attr(\"height\", height);\n\n\t//Put information from the object into an array\n\tvar data = [];\n\tfor(var k in s) {\n\t\tdata.push({\n\t\t\t\"key\": k,\n\t\t\t\"value\": s[k],\n\t\t});\n\t}\n\n\t//Create nodes that group circles and texts together\n\tvar nodes = svg.selectAll(\"g\")\n\t\t\t\t\t.data(data)\n\t\t\t\t\t.enter()\n\t\t\t\t\t.append(\"g\")\n\t\t\t\t\t.attr(\"class\", \"nodes\")\n\n\tvar circles = nodes.append(\"circle\");\n\n\tvar texts = nodes.append(\"text\")\n\n\t//Create a list of random numbers to position the circles and texts\n\trandomx = [];\n\trandomy = [];\n\n\tfor (var i=0; i<data.length; i++) {\n\t\trandomx[i] = Math.random()*width;\n\t\trandomy[i] = Math.random()*height;\n\t}\n\n\n\t//Create a scale to scale the font sizes\n\tvar textScale = d3.scale.linear()\n\t\t\t\t\t\t.domain([getMin(s), getMax(s)])\n\t\t\t\t\t\t.range([100, 600]);\n\t//Scale for radius\n\tvar circleScale = d3.scale.linear()\n\t\t\t\t\t\t.domain([getMin(s), getMax(s)])\n\t\t\t\t\t\t.range([1, 200]);\n\n\t//Set attributes to circles\n\tcircles.attr(\"cx\", function(d, i){\n\t\t\t\treturn randomx[i]; //Need to take care of collisions\n\t\t\t})\t\t\t\t\t\t\t\t//The circle may fall off the svg\n\t\t\t.attr(\"cy\", function(d, i){\n\t\t\t\treturn randomy[i]; //Need to take care of collisions\n\t\t\t})\n\t\t\t.attr(\"r\", function(d){\n\t\t\t\treturn circleScale(d.value);\n\t\t\t})\n\t\t\t.style(\"fill\", \"transparent\")\n\t\t\t.style(\"stroke\", \"blue\")\n\t\n\t//Set attributes to texts\n\ttexts.attr(\"text-anchor\", \"middle\")\n\t\t\t.text(function(d) {\n\t\t\t\treturn d.key;\n\t\t\t})\n\t\t\t.attr(\"x\", function(d, i) {\n\t\t\t\treturn randomx[i];\n\t\t\t})\n\t\t\t.attr(\"y\", function(d, i) {\n\t\t\t\treturn randomy[i];\n\t\t\t})\n\t\t\t.attr(\"font-size\", function(d) {\n\t\t\t\treturn textScale(d.value)+\"%\";\n\t\t\t})\n\n\t//maybe I should use rectangles instead of circles. Circles have too much empty space for each word\n}", "function getInfo(){\n\nd3.json(\"https://raw.githubusercontent.com/3milychu/met-erials/master/data/top8_compressed.json\", function(data) {\n\t\t\tdata = lzwCompress.unpack(data);\n\t \t\tshowTile();\n\t \t\tdata.forEach(function(d) {\n\t \t\t\td.objectBeginDate = +d.objectBeginDate;\n\t \t\t\t });\n\t \t\t\t// console.log(data);\n\t \t\tconsole.log(data);\n\t\t\tvar yearMin = d3.min(data, function(d) { return d.objectBeginDate; });\n\t\t\t// console.log(\"The smallest year in the dataset is \" + yearMin);\n\n\t\t\tvar yearMax = d3.max(data, function(d) { return d.objectBeginDate; });\n\t\t\t// console.log(\"The largest year in the dataset is \" + yearMax);\n\t \t\t\n\t \t\t// key value pairs with key:\"year\"; value:\"object count\"\n\n\t\t\tvar groupByYear = d3.nest()\n\t\t\t\t.key(function(d) { return d.objectBeginDate; })\n\t\t\t\t.entries(data);\n\t \t\t\t// console.log(groupByYear);\n\n\t\t\t// key value pairs with key=year; value=number of objects in year\n\n\t\t\tvar countByYear = d3.nest()\n\t\t\t .key(function(d) { return d.objectBeginDate; })\n\t\t\t .rollup(function(v) { return v.length; })\n\t\t\t .object(data);\n\t\t\t\t// console.log(JSON.stringify(countByYear[0]));\n\n\t\t\t// create subsets of data for each medium selector\n\t\t\t\tdata = data;\n\n\t\t \t\ttotal = d3.nest()\n\t\t\t \t\t.key(function(d) { return d.objectBeginDate; })\n\t\t\t\t \t.rollup(function(v) { return v.length; })\n\t\t\t\t \t.entries(data)\n\t\t\t\t \t.sort(function(a,b) {return d3.ascending(a.key,b.key);});\n\n\t\t\t// Data for \"all\" selection\n\t\t\t allData = data.filter(function(d) { \n\t\t\t \treturn d.hasWood == 1 | d.hasSilk == 1 | d.hasInk == 1 | d.hasSilver ==1 | d.hasGlass == 1 | d.hasAlbumen == 1\n\t\t\t \t| d.hasGold ==1 | d.hasPaper ==1 | d.hasPorcelain ==1\n\t\t\t \t});\n\n\n\t\t \t\t// Data for \"paper\" selection\n\t\t\t paperData = data.filter(function(d) { \n\t\t\t \treturn d.hasPaper == 1 \n\t\t\t \t});\n\n\t\t \t\t// Data for \"pen\" selection\n\t\t\t penData = data.filter(function(d) { \n\t\t\t \treturn d.hasPen == 1 \n\t\t\t \t});\n\n\t\t \t\t// Data for \"wood\" selection\n\t\t\t woodData = data.filter(function(d) { \n\t\t\t \treturn d.hasWood == 1 \n\t\t\t \t});\n\n\t\t\t // Data for \"silk\" selection\n\t\t\t silkData = data.filter(function(d) { \n\t\t\t \treturn d.hasSilk == 1 \n\t\t\t \t});\n\n\t\t\t // Data for \"ink\" selection\n\t\t\t inkData = data.filter(function(d) { \n\t\t\t \treturn (d.hasInk == 1) & (d.URL != \"NA\") & (d.isPublic == \"True\")\n\t\t\t \t});\n\n\t\t\t // Data for \"silver\" selection\n\t\t\t silverData = data.filter(function(d) { \n\t\t\t \treturn d.hasSilver== 1\n\t\t\t \t});\n\n\t\t\t // Data for \"glass\" selection\n\t\t\t glassData = data.filter(function(d) { \n\t\t\t \treturn d.hasGlass == 1 \n\t\t\t \t});\n\n\t\t\t // Data for \"albumen\" selection\n\t\t\t albumenData = data.filter(function(d) { \n\t\t\t \treturn d.hasAlbumen == 1 \n\t\t\t \t});\n\n\t\t\t // Data for \"gold\" selection\n\t\t\t goldData = data.filter(function(d) { \n\t\t\t \treturn d.hasGold == 1 \n\t\t\t \t});\n\n\t\t \t\t// Data for \"porcelain\" selection\n\t\t\t porcelainData = data.filter(function(d) { \n\t\t\t \treturn d.hasPorcelain == 1 \n\t\t\t \t});\n\n\t\t\t\tchange(allData);\n\t\t\t\tgallery(allData);\n\t\t\t\torigins(allData);\n\t\t\t\t$(\"input[type=\\\"image\\\"][src=\\\"assets/all.jpg\\\"]\").css(\"opacity\", \"1\");\n\t\t\t\td3.select(\"input[value=\\\"All\\\"]\").property(\"checked\", true);\n\t\t\t\t\n\n\n\n\n// Load materials upon selection in \"Select Your Met.erial\"\nfunction change(dataset) {\n\n\tvar name;\n\tvar totalRows = dataset.length;\n\n\tdocument.getElementById(\"loading\").style.display=\"none\";\n\tdocument.getElementById(\"title\").style.display=\"inline\";\n\tdocument.getElementById(\"top\").style.display=\"inline-block\";\n\tdocument.getElementById(\"arrow\").style.display=\"inline\";\n\n\tif (dataset == woodData){\n\t\tname = \"What's made out of Wood at the MET?\";\n\t\t$(\"input[value=\\\"All\\\"]\").css(\"opacity\", \"0.5\");\n\t} else if (dataset == paperData) {\n\t\tname = \"What's made out of Paper at the MET?\";\n\t\t$(\"input[value=\\\"All\\\"]\").css(\"opacity\", \"0.5\");\n\t} else if (dataset == porcelainData) {\n\t\tname = \"What's made out of Porcelain at the MET?\";\n\t\t$(\"input[value=\\\"All\\\"]\").css(\"opacity\", \"0.5\");\n\t} else if (dataset == silkData) {\n\t\tname = \"What's made out of Silk at the MET?\";\n\t\t$(\"input[value=\\\"All\\\"]\").css(\"opacity\", \"0.5\");\n\t} else if (dataset == inkData) {\n\t\tname = \"What's made out of Ink at the MET?\";\n\t\t$(\"input[value=\\\"All\\\"]\").css(\"opacity\", \"0.5\");\n\t} else if (dataset == silverData) {\n\t\tname = \"What's made out of Silver at the MET?\";\n\t\t$(\"input[value=\\\"All\\\"]\").css(\"opacity\", \"0.5\");\n\t} else if (dataset == glassData) {\n\t\tname = \"What's made out of Glass at the MET?\";\n\t\t$(\"input[value=\\\"All\\\"]\").css(\"opacity\", \"0.5\");\n\t} else if (dataset == albumenData) {\n\t\tname = \"What's made out of Albumen at the MET?\";\n\t\t$(\"input[value=\\\"All\\\"]\").css(\"opacity\", \"0.5\");\n\t} else if (dataset == goldData) {\n\t\tname = \"What's made out of Gold at the MET?\";\n\t\t$(\"input[value=\\\"All\\\"]\").css(\"opacity\", \"0.5\");\n\t} else if (dataset == allData) {\n\t\tname = \"What's made out of the MET's Top Materials?\";\n\t\t$(\"input[type=\\\"image\\\"][src=\\\"assets/all.jpg\\\"]\").css(\"opacity\", \"1\");\n\t};\n\n\td3.select(\".section-header\").selectAll(\"text\").remove()\n\n\tvar prompt = d3.select(\".section-header\").selectAll(\"#section-one\")\n\t\t \t.data(dataset.filter(function (d, i) { return i === 0;}))\n\t .enter()\n\t .append(\"text\")\n\t .text(name)\n\t .exit();\n\t\n// end change dataset function\n};\n\n// UPDATE FUNCTION: Update origin stats for each selected dataset\nfunction origins(dataset) {\n\n\tvar totalRows = dataset.length;\n\t// console.log(totalRows);\n\n\tvar format = d3.format(\".0%\");\n\t\n\n\tvar origins = d3.nest()\n \t\t.key(function(d) { return d.Culture; })\n\t \t.rollup(function(v) { return v.length; })\n\t \t.entries(dataset)\n\t \t.sort(function(a,b) {return d3.descending(a.value,b.value);});\n\t// console.log(origins);\n\n\td3.select(\".culture\").selectAll(\"text\").remove()\n\n\tvar culture1 = d3.select(\".culture\").selectAll(\"#ranks\")\n\t\t \t.data(origins.filter(function (d, i) { return i === 0;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"culture1\")\n\t .text(function(d) { return d.key + \" \" + format(d.value/totalRows); })\n\t .exit();\n\n\tvar culture2 = d3.select(\".culture\").selectAll(\"#ranks\")\n\t\t \t.data(origins.filter(function (d, i) { return i === 1;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"culture2\")\n\t .text(function(d) { return d.key + \" \" + format(d.value/totalRows); })\n\t .exit();\n\n\tvar culture3 = d3.select(\".culture\").selectAll(\"#ranks\")\n\t\t \t.data(origins.filter(function (d, i) { return i === 2;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"culture3\")\n\t .text(function(d) { return d.key + \" \" + format(d.value/totalRows); })\n\t .exit();\n\n\tvar culture4 = d3.select(\".culture\").selectAll(\"#ranks\")\n\t\t \t.data(origins.filter(function (d, i) { return i === 3;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"culture4\")\n\t .text(function(d) { return d.key + \" \" + format(d.value/totalRows); })\n\t .exit();\n\n\tvar culture5= d3.select(\".culture\").selectAll(\"#ranks\")\n\t\t \t.data(origins.filter(function (d, i) { return i === 4;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"culture5\")\n\t .text(function(d) { return d.key + \" \" + format(d.value/totalRows); })\n\t .exit();\n\n\tvar culture6 = d3.select(\".culture\").selectAll(\"#ranks\")\n\t\t \t.data(origins.filter(function (d, i) { return i === 5;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"culture6\")\n\t .text(function(d) { return d.key + \" \" + format(d.value/totalRows); })\n\t .exit();\n\n\tvar culture7 = d3.select(\".culture\").selectAll(\"#ranks\")\n\t\t \t.data(origins.filter(function (d, i) { return i === 6;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"culture7\")\n\t .text(function(d) { return d.key + \" \" + format(d.value/totalRows); })\n\t .exit();\n\n\n\t// Origins Gauge\n\n\td3.select(\".gauge\").selectAll(\"div\").remove();\n\tvar gauge1 = d3.select(\".gauge\").selectAll(\"#gaugeFill\")\n\t\t\t.data(origins.filter(function (d, i) { return i === 0;}))\n\t .enter()\n\t .append(\"div\")\n\t .attr(\"id\", \"gauge1\")\n\t .attr(\"cursor\", \"pointer\")\n\t .attr(\"onmouseover\", \"boldCulture1();\")\n\t .attr(\"onmouseout\", \"restoreCulture1();\")\n\t .style(\"width\",function(d) {return format(d.value/totalRows); })\n\t .exit();\n\tvar div1 = d3.select(\".gauge\").selectAll(\"#gaugeFill\")\n\t\t\t.data(origins.filter(function (d, i) { return i === 0;}))\n\t .enter()\n\t .append(\"div\")\n\t .style(\"width\",\"0%\")\n\t .exit();\n\n\tvar gauge2 = d3.select(\".gauge\").selectAll(\"#gaugeFill\")\n\t\t\t.data(origins.filter(function (d, i) { return i === 1;}))\n\t .enter()\n\t .append(\"div\")\n\t .attr(\"id\", \"gauge2\")\n\t .attr(\"cursor\", \"pointer\")\n\t .attr(\"onmouseover\", \"boldCulture2();\")\n\t .attr(\"onmouseout\", \"restoreCulture2();\")\n\t .style(\"width\",function(d) {return format(d.value/totalRows); })\n\t .exit();\n\n\tvar div2 = d3.select(\".gauge\").selectAll(\"#gaugeFill\")\n\t\t.data(origins.filter(function (d, i) { return i === 1;}))\n .enter()\n .append(\"div\")\n .style(\"width\",\"0%\")\n .exit();\n\n\tvar gauge3 = d3.select(\".gauge\").selectAll(\"#gaugeFill\")\n\t\t\t.data(origins.filter(function (d, i) { return i === 2;}))\n\t .enter()\n\t .append(\"div\")\n\t .attr(\"id\", \"gauge3\")\n\t .attr(\"cursor\", \"pointer\")\n\t .attr(\"onmouseover\", \"boldCulture3();\")\n\t .attr(\"onmouseout\", \"restoreCulture3();\")\n\t .style(\"width\",function(d) {return format(d.value/totalRows); })\n\t .exit();\n\n\tvar div3 = d3.select(\".gauge\").selectAll(\"#gaugeFill\")\n\t\t.data(origins.filter(function (d, i) { return i === 2;}))\n .enter()\n .append(\"div\")\n .style(\"width\",\"0%\")\n .exit();\n\n\tvar gauge4 = d3.select(\".gauge\").selectAll(\"#gaugeFill\")\n\t\t\t.data(origins.filter(function (d, i) { return i === 3;}))\n\t .enter()\n\t .append(\"div\")\n\t .attr(\"id\", \"gauge4\")\n\t .attr(\"cursor\", \"pointer\")\n\t .attr(\"onmouseover\", \"boldCulture4();\")\n\t .attr(\"onmouseout\", \"restoreCulture4();\")\n\t .style(\"width\",function(d) {return format(d.value/totalRows); })\n\t .exit();\n\n\tvar div4 = d3.select(\".gauge\").selectAll(\"#gaugeFill\")\n\t\t.data(origins.filter(function (d, i) { return i === 4;}))\n .enter()\n .append(\"div\")\n .style(\"width\",\"0%\")\n .exit();\n\n\tvar gauge5 = d3.select(\".gauge\").selectAll(\"#gaugeFill\")\n\t\t\t.data(origins.filter(function (d, i) { return i === 4;}))\n\t .enter()\n\t .append(\"div\")\n\t .attr(\"id\", \"gauge5\")\n\t .attr(\"cursor\", \"pointer\")\n\t .attr(\"onmouseover\", \"boldCulture5();\")\n\t .attr(\"onmouseout\", \"restoreCulture5();\")\n\t .style(\"width\",function(d) {return format(d.value/totalRows); })\n\t .exit();\n\n\tvar div5 = d3.select(\".gauge\").selectAll(\"#gaugeFill\")\n\t\t.data(origins.filter(function (d, i) { return i === 4;}))\n .enter()\n .append(\"div\")\n .style(\"width\",\"0%\")\n .exit();\n\n\tvar gauge6 = d3.select(\".gauge\").selectAll(\"#gaugeFill\")\n\t\t\t.data(origins.filter(function (d, i) { return i === 5;}))\n\t .enter()\n\t .append(\"div\")\n\t .attr(\"id\", \"gauge6\")\n\t .attr(\"cursor\", \"pointer\")\n\t .attr(\"onmouseover\", \"boldCulture6();\")\n\t .attr(\"onmouseout\", \"restoreCulture6();\")\n\t .style(\"width\",function(d) {return format(d.value/totalRows); })\n\t .exit();\n\n\tvar div6 = d3.select(\".gauge\").selectAll(\"#gaugeFill\")\n\t\t.data(origins.filter(function (d, i) { return i === 5;}))\n .enter()\n .append(\"div\")\n .style(\"width\",\"0%\")\n .exit();\n\n\tvar gauge7 = d3.select(\".gauge\").selectAll(\"#gaugeFill\")\n\t\t\t.data(origins.filter(function (d, i) { return i === 6;}))\n\t .enter()\n\t .append(\"div\")\n\t .attr(\"id\", \"gauge7\")\n\t .attr(\"cursor\", \"pointer\")\n\t .attr(\"onmouseover\", \"boldCulture7();\")\n\t .attr(\"onmouseout\", \"restoreCulture7();\")\n\t .style(\"width\",function(d) {return format(d.value/totalRows); })\n\t .exit();\n // end update origins function\n };\n\n // UPDATE FUNCTION: Update gallery view for each selected dataset \n function gallery(dataset) {\n\n var totalRows = dataset.length;\n\t// console.log(totalRows);\n\n var name;\n\n\tif (dataset == woodData){\n\t\tname = \"Wood\";\n\t\tcall = \"woodData\"\n\t} else if (dataset == paperData) {\n\t\tname = \"Paper\";\n\t\tcall = \"paperData\"\n\t} else if (dataset == penData) {\n\t\tname = \"Pen\";\n\t\tcall = \"penData\"\n\t} else if (dataset == silkData) {\n\t\tname = \"Silk\";\n\t\tcall = \"silkData\"\n\t} else if (dataset == inkData) {\n\t\tname = \"Ink\";\n\t\tcall = \"inkData\"\n\t} else if (dataset == silverData) {\n\t\tname = \"Silver\";\n\t\tcall = \"silverData\"\n\t} else if (dataset == glassData) {\n\t\tname = \"Glass\";\n\t\tcall = \"glassData\"\n\t} else if (dataset == albumenData) {\n\t\tname = \"Albumen\";\n\t\tcall = \"albumenData\"\n\t} else if (dataset == goldData) {\n\t\tname = \"Gold\";\n\t\tcall = \"goldData\"\n\t} else if (dataset == porcelainData) {\n\t\tname = \"Porcelain\";\n\t\tcall = \"porcelainData\"\n\t} else if (dataset == allData) {\n\t\tname = \"All\";\n\t\tcall = \"allData\"\n\t};\n\n\tvar format = d3.format(\".0%\");\n\tvar formatThousands = d3.format(\",\");\n\n\tfunction imageExists(url){\n\t var image = new Image();\n\t image.src = url;\n\t if (!image.complete) {\n\t return false;\n\t }\n\t else if (image.height === 0) {\n\t return false;\n\t }\n\t return true;\n\t}\n\n\tobjectNames = d3.nest()\n\t\t.key(function(d) { return d.objectName; })\n\t\t \t.rollup(function(v) { return v.length; })\n\t\t \t.entries(dataset)\n\t\t \t.sort(function(a,b) {return d3.descending(a.value,b.value);})\n\t\t \t.filter(function (d, i) { return i === 0 | i === 1 | i === 2 | i === 3 | i === 4 | i === 5 | i === 6 | i === 7 | i === 8\n\t\t \t\t| i === 9;});\n\t\t// console.log(objectNames);\n\n\trepImg1 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[0].key });\n\n\trepImg2 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[1].key });\n\n\trepImg3 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[2].key });\n\n\trepImg4 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[3].key });\n\n\trepImg5 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[4].key });\n\n\trepImg6 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[5].key });\n\n\trepImg7 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[6].key });\n\n\trepImg8 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[7].key });\n\n\trepImg9 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[8].key });\n\n\trepImg10 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[9].key });\n\t// console.log(repImg10);\n\n\t// Rep Image 1\n\n\td3.select(\".image1\").selectAll(\"img\").remove();\n\n\tvar img1random = Math.floor((Math.random() * repImg1.length) + 0);\n\n\tvar displayRepImg1 = d3.select(\".image1\").selectAll(\"#repImg1\")\n\t\t\t.data(repImg1.filter(function (d, i) { return i === img1random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"class\", \"target\")\n\t .attr(\"id\", \"target1\")\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image1\").selectAll(\"div\").remove();\n\n\tvar displayOverlay1 = d3.select(\".image1\").selectAll(\"#repImg1\")\n\t .data(repImg1.filter(function (d, i) { return i === img1random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay\")\n\t .attr(\"id\", \"overlay1\")\n\t .exit();\n\n\tvar displayTitle = d3.select(\".overlay\").selectAll(\"#overlay1\")\n\t .data(repImg1.filter(function (d, i) { return i === img1random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayDate = d3.select(\".overlay\").selectAll(\"#overlay1\")\n\t .data(repImg1.filter(function (d, i) { return i === img1random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist = d3.select(\".overlay\").selectAll(\"#overlay1\")\n\t .data(repImg1.filter(function (d, i) { return i === img1random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,30).replace(/[^ -~]+/g, \"\")})\n\t .exit();\n\n\tvar displayCulture = d3.select(\".overlay\").selectAll(\"#overlay1\")\n\t .data(repImg1.filter(function (d, i) { return i === img1random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay\").selectAll(\"#overlay1\")\n .data(repImg1.filter(function (d, i) { return i === img1random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject= d3.select(\".overlay\").selectAll(\"#overlay1\")\n\t .data(repImg1.filter(function (d, i) { return i === img1random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[0].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay\").selectAll(\"#overlay1\")\n\t .data(repImg1.filter(function (d, i) { return i === img1random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 2\n\n\tvar img2random = Math.floor((Math.random() * repImg2.length) + 0);\n\n\td3.select(\".image2\").selectAll(\"img\").remove();\n\n\tvar displayRepImg2 = d3.select(\".image2\").selectAll(\"#repImg2\")\n\t\t\t.data(repImg2.filter(function (d, i) { return i === img2random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\t\n\td3.select(\".image2\").selectAll(\"div\").remove();\n\n\tvar displayOverlay2 = d3.select(\".image2\").selectAll(\"#repImg2\")\n\t .data(repImg2.filter(function (d, i) { return i === img2random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay2\")\n\t .attr(\"id\", \"overlay2\")\n\t .exit();\n\n\tvar displayTitle2 = d3.select(\".overlay2\").selectAll(\"#overlay2\")\n\t .data(repImg2.filter(function (d, i) { return i === img2random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\")})\n\t .exit();\n\n\tvar displayDate2 = d3.select(\".overlay2\").selectAll(\"#overlay2\")\n\t .data(repImg2.filter(function (d, i) { return i === img2random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist2 = d3.select(\".overlay2\").selectAll(\"#overlay2\")\n\t .data(repImg2.filter(function (d, i) { return i === img2random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture2 = d3.select(\".overlay2\").selectAll(\"#overlay2\")\n\t .data(repImg2.filter(function (d, i) { return i === img2random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay2\").selectAll(\"#overlay2\")\n .data(repImg2.filter(function (d, i) { return i === img2random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject2= d3.select(\".overlay2\").selectAll(\"#overlay2\")\n\t .data(repImg2.filter(function (d, i) { return i === img2random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[1].value) + \")\"})\n\t .exit();\n\n\tvar displayLink2= d3.select(\".overlay2\").selectAll(\"#overlay2\")\n\t .data(repImg2.filter(function (d, i) { return i === img2random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 3\n\n\tvar img3random = Math.floor((Math.random() * repImg3.length) + 0);\n\n\td3.select(\".image3\").selectAll(\"img\").remove();\n\n\tvar displayRepImg3 = d3.select(\".image3\").selectAll(\"#repImg3\")\n\t\t\t.data(repImg3.filter(function (d, i) { return i === img3random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image3\").selectAll(\"div\").remove();\n\n\tvar displayOverlay3 = d3.select(\".image3\").selectAll(\"#repImg3\")\n\t .data(repImg3.filter(function (d, i) { return i === img3random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay3\")\n\t .attr(\"id\", \"overlay3\")\n\t .exit();\n\n\tvar displayTitle3 = d3.select(\".overlay3\").selectAll(\"#overlay3\")\n\t .data(repImg3.filter(function (d, i) { return i === img3random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayDate3 = d3.select(\".overlay3\").selectAll(\"#overlay3\")\n\t .data(repImg3.filter(function (d, i) { return i === img3random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist3 = d3.select(\".overlay3\").selectAll(\"#overlay3\")\n\t .data(repImg3.filter(function (d, i) { return i === img3random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture3 = d3.select(\".overlay3\").selectAll(\"#overlay3\")\n\t .data(repImg3.filter(function (d, i) { return i === img3random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay3\").selectAll(\"#overlay3\")\n .data(repImg3.filter(function (d, i) { return i === img3random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject3= d3.select(\".overlay3\").selectAll(\"#overlay3\")\n\t .data(repImg3.filter(function (d, i) { return i === img3random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[2].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay3\").selectAll(\"#overlay3\")\n\t .data(repImg3.filter(function (d, i) { return i === img3random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 4\n\n\tvar img4random = Math.floor((Math.random() * repImg4.length) + 0);\n\n\td3.select(\".image4\").selectAll(\"img\").remove();\n\n\tvar displayRepImg4 = d3.select(\".image4\").selectAll(\"#repImg4\")\n\t\t\t.data(repImg4.filter(function (d, i) { return i === img4random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image4\").selectAll(\"div\").remove();\n\n\tvar displayOverlay4 = d3.select(\".image4\").selectAll(\"#repImg4\")\n\t .data(repImg4.filter(function (d, i) { return i === img4random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay4\")\n\t .attr(\"id\", \"overlay4\")\n\t .exit();\n\n\tvar displayTitle4 = d3.select(\".overlay4\").selectAll(\"#overlay4\")\n\t .data(repImg4.filter(function (d, i) { return i === img4random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\")})\n\t .exit();\n\n\tvar displayDate4 = d3.select(\".overlay4\").selectAll(\"#overlay4\")\n\t .data(repImg4.filter(function (d, i) { return i === img4random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist4 = d3.select(\".overlay4\").selectAll(\"#overlay4\")\n\t .data(repImg4.filter(function (d, i) { return i === img4random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture4 = d3.select(\".overlay4\").selectAll(\"#overlay4\")\n\t .data(repImg4.filter(function (d, i) { return i === img4random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay4\").selectAll(\"#overlay4\")\n .data(repImg4.filter(function (d, i) { return i === img4random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject4= d3.select(\".overlay4\").selectAll(\"#overlay4\")\n\t .data(repImg4.filter(function (d, i) { return i === img4random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[3].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay4\").selectAll(\"#overlay4\")\n\t .data(repImg4.filter(function (d, i) { return i === img4random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 5\n\n\tvar img5random = Math.floor((Math.random() * repImg5.length) + 0);\n\n\td3.select(\".image5\").selectAll(\"img\").remove();\n\n\tvar displayRepImg5 = d3.select(\".image5\").selectAll(\"#repImg5\")\n\t\t\t.data(repImg5.filter(function (d, i) { return i === img5random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image5\").selectAll(\"div\").remove();\n\n\tvar displayOverlay5 = d3.select(\".image5\").selectAll(\"#repImg5\")\n\t .data(repImg5.filter(function (d, i) { return i === img5random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay5\")\n\t .attr(\"id\", \"overlay5\")\n\t .exit();\n\n\tvar displayTitle5 = d3.select(\".overlay5\").selectAll(\"#overlay5\")\n\t .data(repImg5.filter(function (d, i) { return i === img5random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayDate5 = d3.select(\".overlay5\").selectAll(\"#overlay5\")\n\t .data(repImg5.filter(function (d, i) { return i === img5random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist5 = d3.select(\".overlay5\").selectAll(\"#overlay5\")\n\t .data(repImg5.filter(function (d, i) { return i === img5random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture5 = d3.select(\".overlay5\").selectAll(\"#overlay5\")\n\t .data(repImg5.filter(function (d, i) { return i === img5random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay5\").selectAll(\"#overlay5\")\n .data(repImg5.filter(function (d, i) { return i === img5random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject5= d3.select(\".overlay5\").selectAll(\"#overlay5\")\n\t .data(repImg5.filter(function (d, i) { return i === img5random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[4].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay5\").selectAll(\"#overlay5\")\n\t .data(repImg5.filter(function (d, i) { return i === img5random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 6\n\n\tvar img6random = Math.floor((Math.random() * repImg6.length) + 0);\n\n\td3.select(\".image6\").selectAll(\"img\").remove();\n\n\tvar displayRepImg6 = d3.select(\".image6\").selectAll(\"#repImg6\")\n\t\t\t.data(repImg6.filter(function (d, i) { return i === img6random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image6\").selectAll(\"div\").remove();\n\n\tvar displayOverlay6 = d3.select(\".image6\").selectAll(\"#repImg6\")\n\t .data(repImg6.filter(function (d, i) { return i === img6random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay6\")\n\t .attr(\"id\", \"overlay6\")\n\t .exit();\n\n\tvar displayTitle6 = d3.select(\".overlay6\").selectAll(\"#overlay6\")\n\t .data(repImg6.filter(function (d, i) { return i === img6random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayDate6 = d3.select(\".overlay6\").selectAll(\"#overlay6\")\n\t .data(repImg6.filter(function (d, i) { return i === img6random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist6 = d3.select(\".overlay6\").selectAll(\"#overlay6\")\n\t .data(repImg6.filter(function (d, i) { return i === img6random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture6 = d3.select(\".overlay6\").selectAll(\"#overlay6\")\n\t .data(repImg6.filter(function (d, i) { return i === img6random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay6\").selectAll(\"#overlay6\")\n .data(repImg6.filter(function (d, i) { return i === img6random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject6= d3.select(\".overlay6\").selectAll(\"#overlay6\")\n\t .data(repImg6.filter(function (d, i) { return i === img6random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[5].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay6\").selectAll(\"#overlay6\")\n\t .data(repImg6.filter(function (d, i) { return i === img6random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 7\n\n\tvar img7random = Math.floor((Math.random() * repImg7.length) + 0);\n\n\td3.select(\".image7\").selectAll(\"img\").remove();\n\n\tvar displayRepImg7 = d3.select(\".image7\").selectAll(\"#repImg7\")\n\t\t\t.data(repImg7.filter(function (d, i) { return i === img7random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image7\").selectAll(\"div\").remove();\n\n\tvar displayOverlay7 = d3.select(\".image7\").selectAll(\"#repImg7\")\n\t .data(repImg7.filter(function (d, i) { return i === img7random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay7\")\n\t .attr(\"id\", \"overlay7\")\n\t .exit();\n\n\tvar displayTitle7 = d3.select(\".overlay7\").selectAll(\"#overlay7\")\n\t .data(repImg7.filter(function (d, i) { return i === img7random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayDate7 = d3.select(\".overlay7\").selectAll(\"#overlay7\")\n\t .data(repImg7.filter(function (d, i) { return i === img7random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist7 = d3.select(\".overlay7\").selectAll(\"#overlay7\")\n\t .data(repImg7.filter(function (d, i) { return i === img7random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture7 = d3.select(\".overlay7\").selectAll(\"#overlay7\")\n\t .data(repImg7.filter(function (d, i) { return i === img7random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay7\").selectAll(\"#overlay7\")\n .data(repImg7.filter(function (d, i) { return i === img7random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject7= d3.select(\".overlay7\").selectAll(\"#overlay7\")\n\t .data(repImg7.filter(function (d, i) { return i === img7random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[6].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay7\").selectAll(\"#overlay7\")\n\t .data(repImg7.filter(function (d, i) { return i === img7random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 8\n\n\tvar img8random = Math.floor((Math.random() * repImg8.length) + 0);\n\n\td3.select(\".image8\").selectAll(\"img\").remove();\n\n\tvar displayRepImg8 = d3.select(\".image8\").selectAll(\"#repImg8\")\n\t\t\t.data(repImg8.filter(function (d, i) { return i === img8random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image8\").selectAll(\"div\").remove();\n\n\tvar displayOverlay8 = d3.select(\".image8\").selectAll(\"#repImg8\")\n\t .data(repImg8.filter(function (d, i) { return i === img8random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay8\")\n\t .attr(\"id\", \"overlay8\")\n\t .exit();\n\n\tvar displayTitle8 = d3.select(\".overlay8\").selectAll(\"#overlay8\")\n\t .data(repImg8.filter(function (d, i) { return i === img8random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayDate8 = d3.select(\".overlay8\").selectAll(\"#overlay8\")\n\t .data(repImg8.filter(function (d, i) { return i === img8random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist8 = d3.select(\".overlay8\").selectAll(\"#overlay8\")\n\t .data(repImg8.filter(function (d, i) { return i === img8random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture8 = d3.select(\".overlay8\").selectAll(\"#overlay8\")\n\t .data(repImg8.filter(function (d, i) { return i === img8random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay8\").selectAll(\"#overlay8\")\n .data(repImg8.filter(function (d, i) { return i === img8random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject8= d3.select(\".overlay8\").selectAll(\"#overlay8\")\n\t .data(repImg8.filter(function (d, i) { return i === img8random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[7].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay8\").selectAll(\"#overlay8\")\n\t .data(repImg8.filter(function (d, i) { return i === img8random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 9\n\n\tvar img9random = Math.floor((Math.random() * repImg9.length) + 0);\n\n\td3.select(\".image9\").selectAll(\"img\").remove();\n\n\tvar displayRepImg9 = d3.select(\".image9\").selectAll(\"#repImg9\")\n\t\t\t.data(repImg9.filter(function (d, i) { return i === img9random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image9\").selectAll(\"div\").remove();\n\n\tvar displayOverlay9 = d3.select(\".image9\").selectAll(\"#repImg9\")\n\t .data(repImg9.filter(function (d, i) { return i === img9random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay9\")\n\t .attr(\"id\", \"overlay9\")\n\t .exit();\n\n\tvar displayTitle9 = d3.select(\".overlay9\").selectAll(\"#overlay9\")\n\t .data(repImg9.filter(function (d, i) { return i === img9random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayDate9 = d3.select(\".overlay9\").selectAll(\"#overlay9\")\n\t .data(repImg9.filter(function (d, i) { return i === img9random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist9 = d3.select(\".overlay9\").selectAll(\"#overlay9\")\n\t .data(repImg9.filter(function (d, i) { return i === img9random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture9 = d3.select(\".overlay9\").selectAll(\"#overlay9\")\n\t .data(repImg9.filter(function (d, i) { return i === img9random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay9\").selectAll(\"#overlay9\")\n .data(repImg9.filter(function (d, i) { return i === img9random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject9= d3.select(\".overlay9\").selectAll(\"#overlay9\")\n\t .data(repImg9.filter(function (d, i) { return i === img9random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[8].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay9\").selectAll(\"#overlay9\")\n\t .data(repImg9.filter(function (d, i) { return i === img9random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 10\n\n\tvar img10random = Math.floor((Math.random() * repImg10.length) + 0);\n\n\td3.select(\".image10\").selectAll(\"img\").remove();\n\n\tvar displayRepImg10 = d3.select(\".image10\").selectAll(\"#repImg10\")\n\t\t\t.data(repImg10.filter(function (d, i) { return i === img10random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image10\").selectAll(\"div\").remove();\n\n\tvar displayOverlay10 = d3.select(\".image10\").selectAll(\"#repImg10\")\n\t .data(repImg10.filter(function (d, i) { return i === img10random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay10\")\n\t .attr(\"id\", \"overlay10\")\n\t .exit();\n\n\tvar displayTitle10 = d3.select(\".overlay10\").selectAll(\"#overlay10\")\n\t .data(repImg10.filter(function (d, i) { return i === img10random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayDate10 = d3.select(\".overlay10\").selectAll(\"#overlay10\")\n\t .data(repImg10.filter(function (d, i) { return i === img10random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist10 = d3.select(\".overlay10\").selectAll(\"#overlay10\")\n\t .data(repImg10.filter(function (d, i) { return i === img10random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture10 = d3.select(\".overlay10\").selectAll(\"#overlay10\")\n\t .data(repImg10.filter(function (d, i) { return i === img10random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay10\").selectAll(\"#overlay10\")\n .data(repImg10.filter(function (d, i) { return i === img10random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject10= d3.select(\".overlay10\").selectAll(\"#overlay10\")\n\t .data(repImg10.filter(function (d, i) { return i === img10random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[9].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay10\").selectAll(\"#overlay10\")\n\t .data(repImg10.filter(function (d, i) { return i === img10random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\n\t // Total Count\n\n\td3.select(\".container-micro\").selectAll(\"text\").remove();\n\n\tvar displayTotal = d3.select(\".container-micro\").selectAll(\"#total\")\n\t\t\t.data(repImg3.filter(function (d, i) { return i === 0;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"class\", \"section-header\")\n\t .attr(\"id\", \"summary\")\n\t .text(formatThousands(totalRows) + \" Items\")\n\t .exit();\n\n\t// Department Filter\n\n\tvar departments = d3.nest()\n \t\t.key(function(d) { return d.Department; })\n\t \t.rollup(function(v) { return v.length; })\n\t \t.entries(dataset)\n\t \t.sort(function(a,b) {return d3.descending(a.value,b.value);});\n\t// console.log(departments);\n\n\tvar top1 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.Department == departments[0].key });\n\t// console.log(repImg1);\n\tvar top2 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.Department== departments[1].key });\n\t// console.log(repImg2);\n\tvar top3 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.Department == departments[2].key });\n\t// console.log(repImg3);\n\n\td3.select(\".departments1\").selectAll(\"img\").remove();\n\n\tvar top1random = Math.floor((Math.random() * top1.length) + 0);\n\tvar top2random = Math.floor((Math.random() * top2.length) + 0);\n\tvar top3random = Math.floor((Math.random() * top3.length) + 0);\n\n\tvar displayTop1= d3.select(\".departments1\").selectAll(\"#top1\")\n\t\t\t.data(top1.filter(function (d, i) { return i === top1random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"height\",\"150%\")\n\t .style(\"overflow-x\",\"hidden\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t \t.style(\"background-position\",\"center center\")\n\t // .style(\"background-size\",\"30%\")\n\t .style(\"position\",\"relative\")\n\t .exit();\n\n\td3.select(\".departments2\").selectAll(\"img\").remove();\n\n\tvar displayTop2= d3.select(\".departments2\").selectAll(\"#top2\")\n\t\t\t.data(top2.filter(function (d, i) { return i === top2random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"height\",\"150%\")\n\t .style(\"overflow-x\",\"hidden\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t \t.style(\"background-position\",\"center center\")\n\t // .style(\"background-size\",\"30%\")\n\t .style(\"position\",\"relative\")\n\t .exit();\n\n\td3.select(\".departments3\").selectAll(\"img\").remove();\n\n\tvar displayTop3= d3.select(\".departments3\").selectAll(\"#top3\")\n\t\t\t.data(top3.filter(function (d, i) { return i === top3random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"height\",\"150%\")\n\t .style(\"overflow-x\",\"hidden\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t \t.style(\"background-position\",\"center center\")\n\t // .style(\"background-size\",\"30%\")\n\t .style(\"position\",\"relative\")\n\t .exit();\n\n\td3.select(\".info1\").selectAll(\"text\").remove();\n\n\t\n\td3.select(\".medium\").selectAll(\"text\").remove();\n\n\tvar choice1 = d3.select(\".medium\").selectAll(\"#choice1\")\n\t\t\t.data(departments.filter(function (d, i) { return i === 0;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"choice1\")\n\t .text(name)\n\t .exit();\n\n\td3.select(\".info1\").selectAll(\"text\").remove();\n\n\tvar dept1_percent = d3.select(\".info1\").selectAll(\"#dept1-percent\")\n\t\t\t.data(departments.filter(function (d, i) { return i === 0;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"dept1-percent\")\n\t .text(function(d) {return format(d.value/totalRows); })\n\t .exit();\n\n\td3.select(\".info2\").selectAll(\"text\").remove();\n\n\tvar info_dept1 = d3.select(\".info2\").selectAll(\"#dept1-name\")\n\t\t \t.data(departments.filter(function (d, i) { return i === 0;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"dept1-name\")\n\t .text(function(d) { return d.key })\n\t .exit();\n\n\td3.select(\".info3\").selectAll(\"text\").remove();\n\n\tvar dept2_percent = d3.select(\".info3\").selectAll(\"#dept2-percent\")\n\t\t\t.data(departments.filter(function (d, i) { return i === 1;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"dept2-percent\")\n\t .text(function(d) {return format(d.value/totalRows); })\n\t .exit();\n\n\td3.select(\".info4\").selectAll(\"text\").remove();\n\n\tvar info_dept2 = d3.select(\".info4\").selectAll(\"#dept2-name\")\n\t\t \t.data(departments.filter(function (d, i) { return i === 1;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"dept2-name\")\n\t .text(function(d) { return d.key })\n\t .exit();\n\n\td3.select(\".info5\").selectAll(\"text\").remove();\n\n\tvar dept2_percent = d3.select(\".info5\").selectAll(\"#dept3-percent\")\n\t\t\t.data(departments.filter(function (d, i) { return i === 2;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"dept3-percent\")\n\t .text(function(d) {return format(d.value/totalRows); })\n\t .exit();\n\n\td3.select(\".info6\").selectAll(\"text\").remove();\n\n\tvar info_dept2 = d3.select(\".info6\").selectAll(\"#dept3-name\")\n\t\t \t.data(departments.filter(function (d, i) { return i === 2;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"dept3-name\")\n\t .text(function(d) { return d.key })\n\t .exit();\n };\n\n \n\n\n\t\t\t\t// change dataset to selected dataset\n\t\t\t\td3.select(\"input[value=\\\"All\\\"]\").property(\"checked\", true);\n\t\t\t d3.selectAll(\"input\").on(\"change\", selectDataset);\n\t\t\t d3.selectAll(\"input\").on(\"click\", selectDataset);\n\n\t\t\t function selectDataset(){\n\t\t\t var value = this.value;\n\t\t\t if (value == \"All\")\n\t\t\t {\n\t\t\t change(allData);\n\t\t\t origins(allData);\n\t\t\t gallery(allData);\n\t\t\t d3.select(\"input[class=\\\"radio-custom\\\"][value=\\\"All\\\"]\").property(\"checked\", true);\n\t\t\t }\n\t\t\t else if (value == \"Paper\")\n\t\t\t {\n\t\t\t change(paperData);\n\t\t\t origins(paperData);\n\t\t\t gallery(paperData);\n\t\t\t d3.select(\"input[value=\\\"Paper\\\"]\").property(\"checked\", true);\n\t\t\t }\n\t\t\t else if (value == \"Pen\")\n\t\t\t {\n\t\t\t change(penData);\n\t\t\t origins(penData);\n\t\t\t gallery(penData);\n\t\t\t d3.select(\"input[value=\\\"Pen\\\"]\").property(\"checked\", true);\n\t\t\t }\n\t\t\t else if (value == \"Wood\")\n\t\t\t {\n\t\t\t change(woodData);\n\t\t\t origins(woodData);\n\t\t\t gallery(woodData);\n\t\t\t d3.select(\"input[value=\\\"Wood\\\"]\").property(\"checked\", true);\n\t\t\t }\n\t\t\t else if (value == \"Silk\")\n\t\t\t {\n\t\t\t change(silkData);\n\t\t\t origins(silkData);\n\t\t\t gallery(silkData);\n\t\t\t d3.select(\"input[value=\\\"Silk\\\"]\").property(\"checked\", true);\n\t\t\t }\n\t\t\t else if (value == \"Ink\")\n\t\t\t {\n\t\t\t change(inkData);\n\t\t\t origins(inkData);\n\t\t\t gallery(inkData);\n\t\t\t d3.select(\"input[type=\\\"radio\\\"][value=\\\"Ink\\\"]\").property(\"checked\", true);\n\t\t\t }\n\t\t\t else if (value == \"Silver\")\n\t\t\t {\n\t\t\t change(silverData);\n\t\t\t origins(silverData);\n\t\t\t gallery(silverData);\n\t\t\t d3.select(\"input[type=\\\"radio\\\"][value=\\\"Silver\\\"]\").property(\"checked\", true);\n\t\t\t }\n\t\t\t else if (value == \"Glass\")\n\t\t\t {\n\t\t\t change(glassData);\n\t\t\t origins(glassData);\n\t\t\t gallery(glassData);\n\t\t\t d3.select(\"input[type=\\\"radio\\\"][value=\\\"Glass\\\"]\").property(\"checked\", true);\n\t\t\t }\n\t\t\t else if (value == \"Albumen\")\n\t\t\t {\n\t\t\t change(albumenData);\n\t\t\t origins(albumenData);\n\t\t\t gallery(albumenData);\n\t\t\t d3.select(\"input[type=\\\"radio\\\"][value=\\\"Albumen\\\"]\").property(\"checked\", true);\n\t\t\t }\n\t\t\t else if (value == \"Gold\")\n\t\t\t {\n\t\t\t change(goldData);\n\t\t\t origins(goldData);\n\t\t\t gallery(goldData);\n\t\t\t d3.select(\"input[type=\\\"radio\\\"][value=\\\"Gold\\\"]\").property(\"checked\", true);\n\t\t\t }\n\t\t\t else if (value == \"Porcelain\")\n\t\t\t {\n\t\t\t change(porcelainData);\n\t\t\t origins(porcelainData);\n\t\t\t gallery(porcelainData);\n\t\t\t d3.select(\"input[value=\\\"Porcelain\\\"]\").property(\"checked\", true);\n\t\t\t }\n\t\t\t \n\t\t\t }\n\n//end d3.csv function\n\t\t\t \n\t\t});\n\n//end getInfo function\n\t}", "function ticked() {\n //var q = d3.quadtree(options['nodes']),\n // i = 0,\n // n = options['nodes'].length;\n\n //// Visit all points\n //while (++i < n) {\n // q.visit(collide(options['nodes'][i]));\n //}\n\n node.attr(\"transform\", function (d) {\n var radius = 10, ix, iy;\n //if (d.scount !== undefined) { radius = get_radius(d); }\n //ix = Math.max(radius, Math.min(width - radius, d.x));\n //iy = Math.max(radius, Math.min(height - radius, d.y));\n ix = d.x;\n iy = d.y;\n return `translate(${ix},${iy})`\n });\n\n // Halfway points, issue #511, was shot down :)\n //link.attr(\"points\", function (d) {\n // var sBack;\n // sBack = d.source.x + \",\" + d.source.y + \" \" +\n // (d.source.x + d.target.x) / 2 + \",\" + (d.source.y + d.target.y) / 2 + \" \" +\n // d.target.x + \",\" + d.target.y;\n // return sBack;\n //})\n\n // After issue #511\n //link.attr(\"x1\", d => d.target.x)\n // .attr(\"y1\", d => d.target.y)\n // .attr(\"x2\", d => d.source.x)\n // .attr(\"y2\", d => d.source.y);\n link.attr(\"x1\", function (d) {\n var result;\n switch (d.spectype) {\n case \"usd\":\n case \"usi\":\n result = d.target.x;\n break;\n default:\n result = d.source.x;\n break;\n }\n return result;\n });\n link.attr(\"y1\", function (d) {\n var result;\n switch (d.spectype) {\n case \"usd\":\n case \"usi\":\n result = d.target.y;\n break;\n default:\n result = d.source.y;\n break;\n }\n return result;\n });\n link.attr(\"x2\", function (d) {\n var result;\n switch (d.spectype) {\n case \"usd\":\n case \"usi\":\n result = d.source.x;\n break;\n default:\n result = d.target.x;\n break;\n }\n return result;\n });\n link.attr(\"y2\", function (d) {\n var result;\n switch (d.spectype) {\n case \"usd\":\n case \"usi\":\n result = d.source.y;\n break;\n default:\n result = d.target.y;\n break;\n } \n return result;\n });\n\n // Original\n //link.attr(\"x1\", d => d.source.x)\n // .attr(\"y1\", d => d.source.y)\n // .attr(\"x2\", d => d.target.x)\n // .attr(\"y2\", d => d.target.y);\n }", "static extents(nodes) {\n return {x:d3.extent(nodes, d=>d.fx), y:d3.extent(nodes, d=>d.fy)}\n }", "function d3_true() {\n return true;\n}", "function path(d) {\n var r = dimensions.map(function(p) {return [position(p), y[p](d[p])]});\n/* r.push({(r[13][0]), 0});\n r.push({(r[0][0]), 0});*/\n if(d[\"District\"] != \"Median\"){\n var ra = [[r[13][0], h], [r[0][0], h]];\n r.push(ra[0]);\n r.push(ra[1]);\n }\n //console.log(r);\n return line(r);\n// return line(dimensions.map(function(p) { return [position(p), y[p](d[p])]; }));\n}", "function subject(d) {return { x: 0, y: d3.event.y }}", "function dc(){this.g=[];this.f=-1}", "_tooltipHtml(d, position) {\n const {x, y0, y, values, _xScale: xScale, _yScale: yScale} = this.props;\n\n const xValueCursor = xScale.invert(position[0]);\n\n const xBisector = d3.bisector(e => x(e)).right;\n let xIndex = xBisector(values(d[0]), xScale.invert(position[0]));\n xIndex = xIndex == values(d[0]).length ? xIndex - 1 : xIndex;\n\n const xIndexRight = xIndex == values(d[0]).length ? xIndex - 1 : xIndex;\n const xValueRight = x(values(d[0])[xIndexRight]);\n\n const xIndexLeft = xIndex == 0 ? xIndex : xIndex - 1;\n const xValueLeft = x(values(d[0])[xIndexLeft]);\n\n if (Math.abs(xValueCursor - xValueRight) < Math.abs(xValueCursor - xValueLeft)) {\n xIndex = xIndexRight;\n } else {\n xIndex = xIndexLeft;\n }\n\n const yValueCursor = yScale.invert(position[1]);\n\n const yBisector = d3.bisector(e => y0(values(e)[xIndex]) + y(values(e)[xIndex])).left;\n let yIndex = yBisector(d, yValueCursor);\n yIndex = yIndex == d.length ? yIndex - 1 : yIndex;\n\n const yValue = y(values(d[yIndex])[xIndex]);\n const yValueCumulative = y0(values(d[d.length - 1])[xIndex]) + y(values(d[d.length - 1])[xIndex]);\n\n const xValue = x(values(d[yIndex])[xIndex]);\n\n const xPos = xScale(xValue);\n const yPos = yScale(y0(values(d[yIndex])[xIndex]) + yValue);\n\n return [this.props.tooltipHtml(yValue, yValueCumulative, xValue), xPos, yPos];\n }", "function mouseover(p) {\n\n // if (d3.select(this).attr(\"fill-opacity\") == 0.6) {\n // d3.select(this)\n // .attr(\"fill-opacity\", \"0.8\");\n // }\n // else if (d3.select(this).attr(\"fill-opacity\") == 0.4) {\n // d3.select(this)\n // .attr(\"fill-opacity\", \"0.5\");\n // } \n if (d3.select(this).attr(\"fill-opacity\") > 0) {\n\n var sequenceArray = p.ancestors().reverse();\n sequenceArray.shift(); // remove root node from the array\n\n // Fade all the segments.\n d3.selectAll(\".arc\")\n .style(\"opacity\", function(d) {\n return 0.5;\n });\n\n // Then highlight only those that are an ancestor of the current segment.\n d3.selectAll(\".arc\")\n .filter(function(node) {\n return (sequenceArray.indexOf(node) >= 0);\n })\n .style(\"opacity\", function(d) {\n return 1;\n });\n\n updateBreadcrumbs(sequenceArray, p);\n\n d3.select(\".circleText\")\n .text(function(d) {\n if (chartSettings.percentiles) {\n if (p.value == 0)\n return \"0%\";\n else \n return ((p.value/sum)*100).toFixed(1) + \"%\";\n }\n else {\n if (p.value == 0)\n return 0;\n else if ((p.value).toString().length <= 3)\n return p.value + \"k\";\n else\n return ((p.value).toFixed(1)/1000).toFixed(1) + \"M\";\n }\n });\n\n d3.select(\".description\")\n .text(function(d) {\n if (chartSettings.percentiles)\n return \"of adults in the US are\";\n else\n return \"adults in the US are\";\n });\n\n var income = \"\";\n var thirdDepth = false;\n\n d3.select(\".modText\")\n .text(function(d) {\n if (p.depth == 1) \n return (p.data.name).toLowerCase();\n else if (p.depth == 2) {\n var status = p.data.name;\n p = p.parent;\n return (p.data.name + \" and \" + status).toLowerCase();\n }\n else if (p.depth == 3) {\n thirdDepth = true;\n income = p.data.name;\n p = p.parent;\n var status = p.data.name;\n p = p.parent;\n return (p.data.name + \", \" + status + \", and\").toLowerCase();\n }\n });\n\n d3.select(\".incomeText\")\n .text(function(d) {\n if (thirdDepth) \n return \"make \" + income;\n else \n return \"\";\n });\n }\n\n }", "_calcCoordinates(dataNodes) {\n let distScale = linear().range([20, this._innerRadius]).domain([0, this._dataLinks.heightTree]);\n this._vOrder.forEach((d, i) => {\n dataNodes[d].x = this._vAngle[i];\n dataNodes[d].y = this._innerRadius;\n });\n posOrdem(this._dataLinks.tree);\n function posOrdem(raiz) {\n let xPrim, xUlt;\n if (raiz.children !== undefined) {\n raiz.children.forEach(function (d) {\n posOrdem(d);\n });\n console.log(\"parent\", raiz);\n console.log(\"children\", raiz.children[0]);\n xPrim = raiz.children[0].data.x;\n xUlt = raiz.children[raiz.children.length - 1].data.x;\n if (xPrim < xUlt) {\n raiz.x = (xPrim + xUlt) / 2;\n raiz.data.x = (xPrim + xUlt) / 2;\n }\n else {\n raiz.x = ((xUlt + 360 - xPrim) / 2 + xPrim) % 360;\n raiz.data.x = (xPrim + xUlt) / 2;\n }\n raiz.y = distScale(raiz.depth);\n raiz.data.y = distScale(raiz.depth);\n }\n }\n }", "function link1 (d) {\n return \"M\" + d.x + \",\" + d.y\n + \"C\" + (d.x + d.parent.x) / 2 + \",\" + d.y\n + \" \" + (d.x + d.parent.x) / 2 + \",\" + d.parent.y\n + \" \" + d.parent.x + \",\" + d.parent.y;\n }", "function SVGDeviationChart() {\r\n }", "async drawSFLines(){\n let that = this;\n let SemifinalLines = [0, 1, 2, 3, 4, 5];\n let SFLines = d3.select(\"#SF-Lines\").selectAll('line');\n let joined = SFLines.data(SemifinalLines).join('line');\n joined.attr(\"x1\", d =>{\n if(d < 2)\n return that.buffer + that.lineLength * 2;\n else if (d >= 2 && d < 4)\n return that.svgWidth - that.buffer - that.lineLength * 3 - that.lineThickness / 2;\n else if (d == 4)\n return that.lineLength * 3 + that.buffer;\n else\n return that.svgWidth - that.buffer - that.lineLength * 3;})\n .attr(\"y1\", d =>{\n if(d < 2)\n return that.buffer + that.R16Separation * 4 * d + that.R16Separation / 2 * 3;\n else if (d >= 2 && d < 4)\n return that.buffer + that.R16Separation * 4 * (d - 2) + that.R16Separation / 2 * 3;\n else\n return that.buffer + that.R16Separation / 2 * 3;})\n .attr(\"x2\", d =>{\n if(d < 2)\n return that.buffer + that.lineLength * 3 + that.lineThickness / 2;\n else if (d >= 2 && d < 4)\n return that.svgWidth - that.buffer - that.lineLength * 2;\n else if (d == 4)\n return that.lineLength * 3 + that.buffer;\n else\n return that.svgWidth - that.buffer - that.lineLength * 3;})\n .attr(\"y2\", d =>{\n if(d < 2)\n return that.buffer + that.R16Separation * 4 * d + that.R16Separation / 2 * 3;\n else if (d >= 2 && d < 4)\n return that.buffer + that.R16Separation * 4 * (d - 2) + that.R16Separation / 2 * 3;\n else\n return that.buffer + that.R16Separation / 2 * 3 + that.R16Separation * 4;})\n .attr(\"class\", \"bracket-line\"); \n }", "setup(){\n let min = d3.min(this.data, d => parseInt(d[this.y_attribute]))\n let max = d3.max(this.data, d => parseInt(d[this.y_attribute])) //we here assume the max is highe than 0\n let padding = (max - min) * 0.05\n this.y = d3.scaleLinear()\n .domain([min - padding, max + padding])\n .range([this.AXIS_HEIGHT, this.label_height])\n \n this.y_mirrored = d3.scaleLinear()\n .domain([min - padding, max + padding])\n .range([this.label_height, this.AXIS_HEIGHT])\n //x scaling\n this.x = d3.scaleLinear()\n .domain([this.parent.year0, this.parent.year0 - this.parent.window])\n .range([this.X0, this.W])\n\n //scale to place the current g\n this.year_to_x_for_g = d3.scaleLinear()\n .domain([this.parent.oldest, this.parent.window])\n .range([this.X0, this.W - this.g_width])\n //drawn background color\n this.draw_background()\n\n // //finds current index and sets buffer\n this.set_current()\n this.update_current()\n\n\n this.distribution_graph = this.svg.append('g')\n .attr('transform', `rotate(90) translate(${this.label_height}, ${-this.X0})`)\n .attr('width', `${this.AXIS_HEIGHT - this.label_height}`)\n .attr('height', `${this.W / 4}`)\n\n this.update_graph() \n //g containing the circles\n this.circles = this.svg.append('g')\n .attr('width', this.g_width)\n .attr('height', this.AXIS_HEIGHT - this.label_height)\n .attr('transform', `translate(${this.year_to_x_for_g(this.parent.year0)}, ${this.label_height})`)\n\n // //draws the axis\n this.draw_axis()\n // //draws all the points\n this.update_points()\n // //draws the labels\n this.draw_label()\n\n this.info_rect = this.circles.append('g')\n .attr('class', 'info_box')\n .attr('height', this.info_box_height)\n .style('opacity', 0)\n\n\n }", "function testShape(w, h, xx, yy){\r\nvar shape = d3.select(\"#graph\");\r\n/*shape.append(\"rect\")\r\n\t.attr(\"width\", w)\r\n\t.attr(\"height\", h)\r\n\t.attr(\"opacity\", \".25\")\r\n\t.attr(\"transform\", \"translate(\" + (xx) + \" ,\" + (yy) + \")\")\r\n\t.attr(\"id\",\"selectedRect\");*/\r\nshape.append(\"path\") // attach a path\r\n\t.style(\"stroke\", \"blue\") // colour the line\r\n\t.style(\"stroke-width\", \"2\")\r\n\t.style(\"fill\", \"red\") // remove any fill colour\r\n\t.style(\"opacity\", \".25\")\r\n\t.attr(\"d\", \"M\"+(230)+\",\"+(140)+\", L\"+(230)+\",\"+(270)+\", L\"+(460)+\",\"+(270)+\", L\"+(460)+\",\"+(140)+\" Z\")\r\n\t.attr(\"id\",\"myshape\");\r\n\r\n//shape\r\n//\t.append(\"g\")\r\n//\t.attr(\"transform\", \"translate(\" + xx + \",\" + yy + \")\");\r\n}", "drawChart () {\r\n\t\t\r\n\t\t// Converts color range value (eg. 'red', 'blue') into the appropriate color array\r\n\t\tthis.colorRange = this.convertColorRange(this.colorRange);\r\n\r\n\t\t// Set width and height of graph based on size of bounding element and margins\r\n\t\tvar width = document.getElementById(this.elementName).offsetWidth - this.marginLeft - this.marginRight;\r\n\t\tvar height = document.getElementById(this.elementName).offsetHeight - this.marginTop - this.marginBottom;\r\n\r\n\t\t// Create axis, streams etc.\t\t\r\n\t\tvar x = d3.time.scale()\r\n\t\t\t.range([0, width]);\r\n\r\n\t\tvar y = d3.scale.linear()\r\n\t\t\t.range([height - 10, 0]);\r\n\r\n\t\tvar z = d3.scale.ordinal()\r\n\t\t\t.range(this.colorRange);\r\n\r\n\t\tvar xAxis = d3.svg.axis()\r\n\t\t\t.scale(x)\r\n\t\t\t.orient('bottom')\r\n\t\t\t.ticks(d3.time.years);\r\n\r\n\t\tvar yAxis = d3.svg.axis()\r\n\t\t\t.scale(y);\r\n\r\n\t\tvar stack = d3.layout.stack()\r\n\t\t\t.offset('silhouette')\r\n\t\t\t.values(function (d) { return d.values; })\r\n\t\t\t.x(function (d) { return d.date; })\r\n\t\t\t.y(function (d) { return d.value; });\r\n\r\n\t\tvar nest = d3.nest()\r\n\t\t\t.key(function (d) { return d.key; });\r\n\r\n\t\tvar area = d3.svg.area()\r\n\t\t\t.interpolate('cardinal')\r\n\t\t\t.x(function (d) { return x(d.date); })\r\n\t\t\t.y0(function (d) { return y(d.y0); })\r\n\t\t\t.y1(function (d) { return y(d.y0 + d.y); });\r\n\t\r\n\t\t// Create SVG area of an appropriate size\r\n\t\tvar svg = d3.select(this.element).append('svg')\r\n\t\t\t.attr('width', width + this.marginLeft + this.marginRight)\r\n\t\t\t.attr('height', height + this.marginTop + this.marginBottom)\r\n\t\t\t.append('g')\r\n\t\t\t.attr('transform', 'translate(' + this.marginLeft + ',' + this.marginTop + ')');\r\n\r\n\t\t// Read CSV file\r\n\t\td3.csv(this.csvfile, function (data) {\r\n\t\t\tvar format = d3.time.format('%Y-%m-%d');\r\n\t\t\tdata.forEach(function (d) {\r\n\t\t\t\td.date = format.parse(d.date);\r\n\t\t\t\td.value = +d.value;\r\n\t\t\t});\r\n\r\n\t\t\tvar layers = stack(nest.entries(data));\r\n\r\n\t\t\tx.domain(d3.extent(data, function (d) { return d.date; }));\r\n\t\t\ty.domain([0, d3.max(data, function (d) { return d.y0 + d.y; })]);\r\n\r\n\t\t\t// Apply data to graph\r\n\t\t\tsvg.selectAll('.layer')\r\n\t\t\t\t.data(layers)\r\n\t\t\t\t.enter().append('path')\r\n\t\t\t\t.attr('class', 'layer')\r\n\t\t\t\t.attr('d', function (d) { return area(d.values); })\r\n\t\t\t\t.style('fill', function (d, i) { return z(i); });\r\n\r\n\t\t\t// Add a black outline to streams\r\n\t\t\tsvg.selectAll('.layer')\r\n\t\t\t\t.attr('stroke', 'black')\r\n\t\t\t\t.attr('stroke-width', '0.5px');\r\n\r\n\t\t\tsvg.append('g')\r\n\t\t\t\t.attr('class', 'x axis')\r\n\t\t\t\t.attr('transform', 'translate(0,' + height + ')')\r\n\t\t\t\t.call(xAxis);\r\n\r\n\t\t\tsvg.append('g')\r\n\t\t\t\t.attr('class', 'y axis')\r\n\t\t\t\t.attr('transform', 'translate(' + width + ', 0)')\r\n\t\t\t\t.call(yAxis.orient('right'));\r\n\r\n\t\t\tsvg.append('g')\r\n\t\t\t\t.attr('class', 'y axis')\r\n\t\t\t\t.call(yAxis.orient('left'));\r\n\r\n\t\t\t// Other streams fade when one stream is hovered over with the cursor\r\n\t\t\tsvg.selectAll('.layer')\r\n\t\t\t\t.attr('opacity', 1)\r\n\t\t\t\t.on('mouseover', function (d, i) {\r\n\t\t\t\t\tsvg.selectAll('.layer').transition()\r\n\t\t\t\t\t\t.duration(250)\r\n\t\t\t\t\t\t.attr('opacity', function (d, j) {\r\n\t\t\t\t\t\t\treturn j !== i ? 0.2 : 1;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t})\r\n\r\n\t\t\t\t// Move the label which appears next to the cursor.\r\n\t\t\t\t.on('mousemove', function (d, i) {\r\n\t\t\t\t\tvar mousePos = d3.mouse(this);\r\n\t\t\t\t\tvar mouseX = mousePos[0];\r\n\t\t\t\t\tvar mouseY = mousePos[1];\r\n\t\t\t\t\tvar mouseElem = document.getElementById('besideMouse');\r\n\t\t\t\t\tdocument.getElementById('besideMouse').style.left = mouseX + 50 + 'px';\r\n\t\t\t\t\tmouseElem.style.top = mouseY - 10 + 'px';\r\n\t\t\t\t\tmouseElem.innerHTML = d.key;\r\n\t\t\t\t})\r\n\t\t\t\r\n\t\t\t\t// Set opacity back to 1 when the cursor is no longer hovering over a stream.\r\n\t\t\t\t.on('mouseout', function (d, i) {\r\n\t\t\t\t\tsvg.selectAll('.layer')\r\n\t\t\t\t\t\t.transition()\r\n\t\t\t\t\t\t.duration(250)\r\n\t\t\t\t\t\t.attr('opacity', '1');\r\n\t\t\t\t\tdocument.getElementById('besideMouse').innerHTML = '';\r\n\t\t\t\t});\r\n\t\t});\r\n\t}", "function create() {\n d3.select('svg')\n .selectAll('line')\n .data(branches)\n .enter()\n .insert('line',\":first-child\").on(\"mouseover\", function(d) {\n d3.select(this).append(\"svg:title\")\n .text(d.d)\n })\n .attr('x1', x1)\n .attr('y1', y1)\n .attr('x2', x2)\n .attr('y2', y2)\n .style('stroke-width', function(d) {\n var t = parseInt( maxDepth * .5 + 4 - d.d * .5 );\n return t + 'px';\n })\n .style('stroke', function(d) {\n return color(d.d);\n })\n .attr('id', function(d) {\n return 'id-'+d.i;\n })\n .attr('class', function(d) {\n if (d.d === maxDepth) {\n return 'artcl';\n }\n if (d.d === maxDepth - 1) {\n return 'ctg-3';\n }\n if (d.d === maxDepth - 2) {\n return 'ctg-2';\n }\n if (d.d === maxDepth - 3) {\n return 'jrnl';\n }\n if (d.d === maxDepth - 4) {\n return 'ctg-1';\n }\n });\n}", "function cpt(clicked_node){\n console.log(clicked_node.node);\n console.log(marked);\n d3.select(\"#CPT\").text(\"\");\n\n var width = document.getElementById(\"CPT\").offsetWidth;\n var height = document.getElementById(\"CPT\").offsetHeight;\n\n var canvas = d3.select(\"CPT\").append(\"svg\")\n .attr(\"width\", \"100%\")\n .attr(\"height\", \"100%\")\n .append(\"g\"); \n\n //console.log(marked[0].node);\n \n const data = \n [\n [\"Graph1\", clicked_node.prob[0], clicked_node.prob[1]],\n\t\t\t[\"Graph2\", clicked_node.prob[0], clicked_node.prob[1]],\n\t\t\t[\"Graph3\", clicked_node.prob[0], clicked_node.prob[1]],\n\t\t\t[\"Graph4\", clicked_node.prob[0], clicked_node.prob[1]]\n ]; \n\n colors = [\n '#386cb0',\n '#7fc97f',\n '#fdc086',\n '#beaed4'\n ];\n \n function f(elem, direction=\"col\") {\n if (typeof(elem) === \"number\") {\n var div = document.createElement(\"div\");\n div.innerHTML = elem.toString();\n div.onmouseover = function(event){\n console.log('Hallo');\n const element = document.getElementById(\"prob_window\");\n //console.log(event);\n element.style.left = event.pageX;\n element.style.top = event.pageY;\n element.style.visibility = \"visible\";\n document.getElementById(\"prob_window\").innerHTML = \"Node: \" + clicked_node.node;\n div.onmouseout =function(event){\n const element = document.getElementById(\"prob_window\");\n element.style.visibility = \"hidden\";\n };\n };\n return div;\n } else {\n var table = document.createElement(\"table\");\n table.style.width = \"100%\";\n //table.setAttribute(\"border\", \"1\");\n\n var tbody = document.createElement(\"tbody\");\n\n if (direction === \"col\") {\n var tr = document.createElement(\"tr\");\n\n var td1 = document.createElement(\"td\");\n td1.appendChild(f(elem[0], \"row\"));\n tr.appendChild(td1);\n\n var td2 = document.createElement(\"td\");\n td2.appendChild(f(elem[1], \"row\"));\n tr.appendChild(td2);\n\n tbody.append(tr);\n } else {\n var tr1 = document.createElement(\"tr\");\n var td1 = document.createElement(\"td\");\n td1.appendChild(f(elem[0], \"col\"));\n tr1.appendChild(td1);\n tbody.append(tr1);\n\n var tr2 = document.createElement(\"tr\");\n var td2 = document.createElement(\"td\");\n td2.appendChild(f(elem[1], \"col\"));\n tr2.appendChild(td2);\n tbody.append(tr2);\n }\n\n table.append(tbody);\n return table;\n\n }\n }\n\n function g(data) {\n\n var table = document.createElement(\"table\");\n\n var thead = document.createElement(\"thead\");\n var tr_head = document.createElement(\"tr\");\n\n var th_node = document.createElement(\"th\");\n th_node.innerHTML = clicked_node.node;\n tr_head.appendChild(th_node);\n\n var th_true = document.createElement(\"th\");\n th_true.innerHTML = \"TRUE\";\n tr_head.appendChild(th_true);\n\n var th_false = document.createElement(\"th\");\n th_false.innerHTML = \"FALSE\";\n tr_head.appendChild(th_false);\n\n thead.appendChild(tr_head);\n table.appendChild(thead);\n\n var tbody = document.createElement(\"tbody\");\n\n for (var i=0; i<data.length; i++) {\n\n var tr = document.createElement(\"tr\");\n tr.style.backgroundColor = colors[i];\n\n var td_node = document.createElement(\"td\");\n td_node.innerHTML = data[i][0];\n tr.appendChild(td_node);\n\n var td_true = document.createElement(\"td\");\n td_true.appendChild(f(data[i][1]));\n tr.appendChild(td_true);\n\n var td_false = document.createElement(\"td\");\n td_false.appendChild(f(data[i][2]));\n tr.appendChild(td_false);\n\n tbody.appendChild(tr);\n\n }\n\n table.append(tbody);\n return table;\n\n }\n\n document.getElementById(\"CPT\").appendChild(g(data));\n\n// clicked_node für alle 4 Graphen \n// array für mehrere Tabllen/ mehrere clicked_nodes\n//hover fkt fertig stellen\n}", "createGraph(data) {\n\n if (!data) return;\n\n if (this.svg) this.svg.remove();\n\n this.svg = d3.select('#' + this.compId).append('svg').attr('width', this.width).attr('height', this.height);\n\n // Create ranges\n // Define the min and max x values\n let xMin = d3.min(data, (d) => {return d.x});\n let xMax = d3.max(data, (d) => {return d.x});\n\n // Define the min and max y values\n // let yMin = d3.min(data, (d) => {return d.y});\n let yMax = d3.max(data, (d) => {return d.y});\n\n // Update the scales\n this.x = d3.scaleLinear().range([this.marginH - this.textPaddingH, this.width - this.marginH + this.textPaddingH]).domain([xMin, xMax]);\n this.y = d3.scaleLinear().range([this.height - this.marginV, this.marginV + this.textPaddingV]).domain([0, yMax]);\n\n // Lines\n this.createLines(data);\n // Caps\n if (this.props.showValuePoints == null || this.props.showValuePoints) this.createCaps(data);\n // Text\n if (this.props.valueLabelTransform) this.createValueLabels(data);\n // X Labels\n if (this.props.xAxisTransform) this.createXAxis(data);\n\n }", "function lineChunked () {\n var defaultLineAttrs = {\n fill: 'none',\n stroke: '#222',\n 'stroke-width': 1.5,\n 'stroke-opacity': 1\n };\n var defaultGapAttrs = {\n 'stroke-dasharray': '1 4',\n 'stroke-opacity': 0.4\n };\n var defaultPointAttrs = {\n // read fill and r at render time in case the lineAttrs changed\n // fill: defaultLineAttrs.stroke,\n // r: defaultLineAttrs['stroke-width'],\n };\n\n /**\n * How to access the x attribute of `d`\n */\n var x = function x(d) {\n return d[0];\n };\n\n /**\n * How to access the y attribute of `d`\n */\n var y = function y(d) {\n return d[1];\n };\n\n /**\n * Function to determine if there is data for a given point.\n * @param {Any} d data point\n * @return {Boolean} true if the data is defined for the point, false otherwise\n */\n var defined = function defined() {\n return true;\n };\n\n /**\n * Function to determine if there a point follows the previous. This functions\n * enables detecting gaps in the data when there is an unexpected jump. For\n * instance, if you have time data for every day and the previous data point\n * is for January 5, 2016 and the current data point is for January 12, 2016,\n * then there is data missing for January 6-11, so this function would return\n * true.\n *\n * It is only necessary to define this if your data doesn't explicitly include\n * gaps in it.\n *\n * @param {Any} previousDatum The previous data point\n * @param {Any} currentDatum The data point under consideration\n * @return {Boolean} true If the data is defined for the point, false otherwise\n */\n var isNext = function isNext() {\n return true;\n };\n\n /**\n * Passed through to d3.line().curve. Default value: d3.curveLinear.\n */\n var curve = d3Shape.curveLinear;\n\n /**\n * Object mapping style keys to style values to be applied to both\n * defined and undefined lines. Uses syntax similar to d3-selection-multi.\n */\n var lineStyles = {};\n\n /**\n * Object mapping attr keys to attr values to be applied to both\n * defined and undefined lines. Uses syntax similar to d3-selection-multi.\n */\n var lineAttrs = defaultLineAttrs;\n\n /**\n * Object mapping style keys to style values to be applied only to the\n * undefined lines. It overrides values provided in lineStyles. Uses\n * syntax similar to d3-selection-multi.\n */\n var gapStyles = {};\n\n /**\n * Object mapping attr keys to attr values to be applied only to the\n * undefined lines. It overrides values provided in lineAttrs. Uses\n * syntax similar to d3-selection-multi.\n */\n var gapAttrs = defaultGapAttrs;\n\n /**\n * Object mapping style keys to style values to be applied to points.\n * Uses syntax similar to d3-selection-multi.\n */\n var pointStyles = {};\n\n /**\n * Object mapping attr keys to attr values to be applied to points.\n * Note that if fill is not defined in pointStyles or pointAttrs, it\n * will be read from the stroke color on the line itself.\n * Uses syntax similar to d3-selection-multi.\n */\n var pointAttrs = defaultPointAttrs;\n\n /**\n * Flag to set whether to transition on initial render or not. If true,\n * the line starts out flat and transitions in its y value. If false,\n * it just immediately renders.\n */\n var transitionInitial = true;\n\n /**\n * An array `[xMin, xMax]` specifying the minimum and maximum x pixel values\n * (e.g., `xScale.range()`). If defined, the undefined line will extend to\n * the the values provided, otherwise it will end at the last defined points.\n */\n var extendEnds = void 0;\n\n /**\n * Function to determine how to access the line data array from the passed in data\n * Defaults to the identity data => data.\n * @param {Any} data line dataset\n * @return {Array} The array of data points for that given line\n */\n var accessData = function accessData(data) {\n return data;\n };\n\n /**\n * A flag specifying whether to render in debug mode or not.\n */\n var debug = false;\n\n /**\n * Helper function to compute the contiguous segments of the data\n * @param {Array} lineData the line data\n * @return {Array} An array of segments (subarrays) of the line data\n */\n function computeSegments(lineData) {\n var startNewSegment = true;\n\n // split into segments of continuous data\n var segments = lineData.reduce(function (segments, d) {\n // skip if this point has no data\n if (!defined(d)) {\n startNewSegment = true;\n return segments;\n }\n\n // if we are starting a new segment, start it with this point\n if (startNewSegment) {\n segments.push([d]);\n startNewSegment = false;\n\n // otherwise see if we are adding to the last segment\n } else {\n var lastSegment = segments[segments.length - 1];\n var lastDatum = lastSegment[lastSegment.length - 1];\n // if we expect this point to come next, add it to the segment\n if (isNext(lastDatum, d)) {\n lastSegment.push(d);\n\n // otherwise create a new segment\n } else {\n segments.push([d]);\n }\n }\n\n return segments;\n }, []);\n\n return segments;\n }\n\n /**\n * Render the points for when segments have length 1.\n */\n function renderCircles(initialRender, transition, context, root, points, evaluatedAttrs, evaluatedStyles) {\n var circles = root.selectAll('circle').data(points, function (d) {\n return d.id;\n });\n\n // EXIT\n if (transition) {\n var duration = context.duration();\n\n circles.exit().transition().duration(duration * 0.05).attr('r', 1e-6).remove();\n } else {\n circles.exit().remove();\n }\n\n // ENTER\n var circlesEnter = circles.enter().append('circle');\n\n // apply user-provided attrs, using attributes from current line if not provided\n var combinedAttrs = Object.assign({\n fill: evaluatedAttrs.line.stroke,\n r: evaluatedAttrs.line['stroke-width'] == null ? undefined : parseFloat(evaluatedAttrs.line['stroke-width']) + 1\n }, evaluatedAttrs.point);\n Object.keys(combinedAttrs).forEach(function (key) {\n circlesEnter.attr(key, combinedAttrs[key]);\n });\n // ensure `r` is a number (helps to remove 'px' if provided)\n combinedAttrs.r = parseFloat(combinedAttrs.r);\n\n // apply user-provided styles, using attributes from current line if not provided\n var combinedStyles = Object.assign(evaluatedAttrs.point.fill == null ? { fill: evaluatedStyles.line.stroke } : {}, evaluatedStyles.point);\n Object.keys(combinedStyles).forEach(function (key) {\n circlesEnter.style(key, combinedStyles[key]);\n });\n\n circlesEnter.classed('d3-line-chunked-defined-point', true).attr('r', 1e-6) // overrides provided `r value for now\n .attr('cx', function (d) {\n return x(d.data);\n }).attr('cy', function (d) {\n return y(d.data);\n });\n\n // handle with transition\n if ((!initialRender || initialRender && transitionInitial) && transition) {\n var _duration = context.duration();\n var enterDuration = _duration * 0.15;\n // delay sizing up the radius until after the line transition\n circlesEnter.transition(context).delay(_duration - enterDuration).duration(enterDuration).attr('r', combinedAttrs.r);\n } else {\n circlesEnter.attr('r', combinedAttrs.r);\n }\n\n // UPDATE\n if (transition) {\n circles = circles.transition(context);\n }\n circles.attr('r', combinedAttrs.r).attr('cx', function (d) {\n return x(d.data);\n }).attr('cy', function (d) {\n return y(d.data);\n });\n }\n\n function getClipPathId(increment) {\n var id = 'd3-line-chunked-clip-path-' + counter;\n if (increment) {\n counter += 1;\n }\n\n return id;\n }\n\n function renderClipRects(initialRender, transition, context, root, lineData, segments, _ref, _ref2, evaluatedAttrs, evaluatedStyles) {\n var _ref4 = slicedToArray(_ref, 2);\n\n var xMin = _ref4[0];\n var xMax = _ref4[1];\n\n var _ref3 = slicedToArray(_ref2, 2);\n\n var yMin = _ref3[0];\n var yMax = _ref3[1];\n\n var clipPathId = getClipPathId(true);\n var clipPath = root.select('clipPath');\n var gDebug = root.select('.d3-line-chunked-debug');\n\n // set up debug group\n if (debug && gDebug.empty()) {\n gDebug = root.append('g').classed('d3-line-chunked-debug', true);\n } else if (!debug && !gDebug.empty()) {\n gDebug.remove();\n }\n\n // initial render\n if (clipPath.empty()) {\n clipPath = root.append('defs').append('clipPath').attr('id', clipPathId);\n } else {\n clipPath.attr('id', clipPathId);\n }\n\n var clipPathRects = clipPath.selectAll('rect').data(segments);\n var debugRects = void 0;\n if (debug) {\n debugRects = gDebug.selectAll('rect').data(segments);\n }\n\n // get stroke width to avoid having the clip rects clip the stroke\n // See https://github.com/pbeshai/d3-line-chunked/issues/2\n var strokeWidth = parseFloat(evaluatedStyles.line['stroke-width'] || root.select('.d3-line-chunked-defined').style('stroke-width') || evaluatedAttrs.line['stroke-width']);\n var strokeWidthClipAdjustment = strokeWidth;\n var clipRectY = yMin - strokeWidthClipAdjustment;\n var clipRectHeight = yMax + strokeWidthClipAdjustment - (yMin - strokeWidthClipAdjustment);\n\n // compute the currently visible area pairs of [xStart, xEnd] for each clip rect\n // if no clip rects, the whole area is visible.\n var visibleArea = void 0;\n\n if (transition) {\n (function () {\n\n // compute the start and end x values for a data point based on maximizing visibility\n // around the middle of the rect.\n var visibleStartEnd = function visibleStartEnd(d, visibleArea) {\n // eslint-disable-line no-inner-declarations\n var xStart = x(d[0]);\n var xEnd = x(d[d.length - 1]);\n var xMid = xStart + (xEnd - xStart) / 2;\n var visArea = visibleArea.find(function (area) {\n return area[0] <= xMid && xMid <= area[1];\n });\n\n // set width to overlapping visible area\n if (visArea) {\n return [Math.max(visArea[0], xStart), Math.min(xEnd, visArea[1])];\n }\n\n // return xEnd - xStart;\n return [xMid, xMid];\n };\n\n var exitRect = function exitRect(rect) {\n // eslint-disable-line no-inner-declarations\n rect.attr('x', function (d) {\n return visibleStartEnd(d, nextVisibleArea)[0];\n }).attr('width', function (d) {\n var _visibleStartEnd = visibleStartEnd(d, nextVisibleArea);\n\n var _visibleStartEnd2 = slicedToArray(_visibleStartEnd, 2);\n\n var xStart = _visibleStartEnd2[0];\n var xEnd = _visibleStartEnd2[1];\n\n return xEnd - xStart;\n });\n };\n\n var enterRect = function enterRect(rect) {\n // eslint-disable-line no-inner-declarations\n rect.attr('x', function (d) {\n return visibleStartEnd(d, visibleArea)[0];\n }).attr('width', function (d) {\n var _visibleStartEnd3 = visibleStartEnd(d, visibleArea);\n\n var _visibleStartEnd4 = slicedToArray(_visibleStartEnd3, 2);\n\n var xStart = _visibleStartEnd4[0];\n var xEnd = _visibleStartEnd4[1];\n\n return xEnd - xStart;\n }).attr('y', clipRectY).attr('height', clipRectHeight);\n };\n\n // select previous rects\n var previousRects = clipPath.selectAll('rect').nodes();\n // no previous rects = visible area is everything\n if (!previousRects.length) {\n visibleArea = [[xMin, xMax]];\n } else {\n visibleArea = previousRects.map(function (rect) {\n var selectedRect = d3Selection.select(rect);\n var xStart = parseFloat(selectedRect.attr('x'));\n var xEnd = parseFloat(selectedRect.attr('width')) + xStart;\n return [xStart, xEnd];\n });\n }\n\n // set up the clipping paths\n // animate by shrinking width to 0 and setting x to the mid point\n var nextVisibleArea = void 0;\n if (!segments.length) {\n nextVisibleArea = [[0, 0]];\n } else {\n nextVisibleArea = segments.map(function (d) {\n var xStart = x(d[0]);\n var xEnd = x(d[d.length - 1]);\n return [xStart, xEnd];\n });\n }\n\n clipPathRects.exit().transition(context).call(exitRect).remove();\n var clipPathRectsEnter = clipPathRects.enter().append('rect').call(enterRect);\n clipPathRects = clipPathRects.merge(clipPathRectsEnter);\n clipPathRects = clipPathRects.transition(context);\n\n // debug rects should match clipPathRects\n if (debug) {\n debugRects.exit().transition(context).call(exitRect).remove();\n var debugRectsEnter = debugRects.enter().append('rect').style('fill', 'rgba(255, 0, 0, 0.3)').style('stroke', 'rgba(255, 0, 0, 0.6)').call(enterRect);\n\n debugRects = debugRects.merge(debugRectsEnter);\n debugRects = debugRects.transition(context);\n }\n\n // not in transition\n })();\n } else {\n clipPathRects.exit().remove();\n var _clipPathRectsEnter = clipPathRects.enter().append('rect');\n clipPathRects = clipPathRects.merge(_clipPathRectsEnter);\n\n if (debug) {\n debugRects.exit().remove();\n var debugRectsEnter = debugRects.enter().append('rect').style('fill', 'rgba(255, 0, 0, 0.3)').style('stroke', 'rgba(255, 0, 0, 0.6)');\n debugRects = debugRects.merge(debugRectsEnter);\n }\n }\n\n // after transition, update the clip rect dimensions\n function updateRect(rect) {\n rect.attr('x', function (d) {\n // if at the edge, adjust for stroke width\n var val = x(d[0]);\n if (val === xMin) {\n return val - strokeWidthClipAdjustment;\n }\n return val;\n }).attr('width', function (d) {\n // if at the edge, adjust for stroke width to prevent clipping it\n var valMin = x(d[0]);\n var valMax = x(d[d.length - 1]);\n if (valMin === xMin) {\n valMin -= strokeWidthClipAdjustment;\n }\n if (valMax === xMax) {\n valMax += strokeWidthClipAdjustment;\n }\n\n return valMax - valMin;\n }).attr('y', clipRectY).attr('height', clipRectHeight);\n }\n\n clipPathRects.call(updateRect);\n if (debug) {\n debugRects.call(updateRect);\n }\n }\n\n /**\n * Render the paths for segments and gaps\n */\n function renderPaths(initialRender, transition, context, root, lineData, segments, _ref5, _ref6, evaluatedAttrs, evaluatedStyles) {\n var _ref8 = slicedToArray(_ref5, 2);\n\n var xMin = _ref8[0];\n var xMax = _ref8[1];\n\n var _ref7 = slicedToArray(_ref6, 2);\n\n var yMin = _ref7[0];\n var yMax = _ref7[1];\n // eslint-disable-line\n var definedPath = root.select('.d3-line-chunked-defined');\n var undefinedPath = root.select('.d3-line-chunked-undefined');\n\n // main line function\n var line = d3Shape.line().x(x).y(y).curve(curve);\n\n // initial render\n if (definedPath.empty()) {\n definedPath = root.append('path');\n undefinedPath = root.append('path');\n }\n\n definedPath.attr('clip-path', 'url(#' + getClipPathId(false) + ')');\n\n // if the user specifies to extend ends for the undefined line, add points to the line for them.\n if (extendEnds && lineData.length) {\n // we have to process the data here since we don't know how to format an input object\n // we use the [x, y] format of a data point\n var processedLineData = lineData.map(function (d) {\n return [x(d), y(d)];\n });\n lineData = [[extendEnds[0], processedLineData[0][1]]].concat(toConsumableArray(processedLineData), [[extendEnds[1], processedLineData[processedLineData.length - 1][1]]]);\n\n // this line function works on the processed data (default .x and .y read the [x,y] format)\n line = d3Shape.line().curve(curve);\n }\n\n // handle animations for initial render\n if (initialRender) {\n (function () {\n // have the line load in with a flat y value\n var initialLine = line;\n if (transitionInitial) {\n initialLine = d3Shape.line().x(x).y(yMax).curve(curve);\n\n // if the user extends ends, we should use the line that works on that data\n if (extendEnds) {\n initialLine = d3Shape.line().y(yMax).curve(curve);\n }\n }\n definedPath.attr('d', function () {\n return initialLine(lineData);\n });\n undefinedPath.attr('d', function () {\n return initialLine(lineData);\n });\n })();\n }\n\n // apply user-provided attrs and styles\n Object.keys(evaluatedAttrs.line).forEach(function (key) {\n definedPath.attr(key, evaluatedAttrs.line[key]);\n undefinedPath.attr(key, evaluatedAttrs.line[key]);\n });\n Object.keys(evaluatedStyles.line).forEach(function (key) {\n definedPath.style(key, evaluatedStyles.line[key]);\n undefinedPath.style(key, evaluatedStyles.line[key]);\n });\n definedPath.classed('d3-line-chunked-defined', true);\n\n // overwrite with gap styles and attributes\n Object.keys(evaluatedAttrs.gap).forEach(function (key) {\n undefinedPath.attr(key, evaluatedAttrs.gap[key]);\n });\n Object.keys(evaluatedStyles.gap).forEach(function (key) {\n undefinedPath.style(key, evaluatedStyles.gap[key]);\n });\n undefinedPath.classed('d3-line-chunked-undefined', true);\n\n // handle transition\n if (transition) {\n definedPath = definedPath.transition(context);\n undefinedPath = undefinedPath.transition(context);\n }\n\n if (definedPath.attrTween) {\n // use attrTween is available (in transition)\n definedPath.attrTween('d', function dTween() {\n var previous = d3Selection.select(this).attr('d');\n var current = line(lineData);\n console.log('line data =', lineData);\n console.log('previous', previous);\n console.log('current', current);\n console.log('interpolated = ', d3InterpolatePath.interpolatePath(previous, current));\n return d3InterpolatePath.interpolatePath(previous, current);\n });\n undefinedPath.attrTween('d', function dTween() {\n var previous = d3Selection.select(this).attr('d');\n var current = line(lineData);\n return d3InterpolatePath.interpolatePath(previous, current);\n });\n } else {\n console.log('setting d to ', line(lineData), lineData);\n definedPath.attr('d', function () {\n return line(lineData);\n });\n undefinedPath.attr('d', function () {\n return line(lineData);\n });\n }\n }\n\n /**\n * Helper function to process any attrs or styles passed in as functions\n * using the provided `d` and `i`\n *\n * @param {Object} lineInput lineAttrs or lineStyles\n * @param {Object} gapInput gapAttrs or gapStyles\n * @param {Object} pointInput pointAttrs or pointStyles\n * @param {Object|Array} d the input data\n * @param {Number} i the index for this dataset\n * @return {Object} { line, gap, point }\n */\n function evaluate(lineInput, gapInput, pointInput, d, i) {\n function evalInput(input) {\n return Object.keys(input).reduce(function (output, key) {\n var val = input[key];\n\n if (typeof val === 'function') {\n val = val(d, i);\n }\n\n output[key] = val;\n return output;\n }, {});\n }\n\n return {\n line: evalInput(lineInput),\n gap: evalInput(gapInput),\n point: evalInput(pointInput)\n };\n }\n\n // the main function that is returned\n function lineChunked(context) {\n if (!context) {\n return;\n }\n var selection = context.selection ? context.selection() : context; // handle transition\n\n if (!selection || selection.empty()) {\n return;\n }\n\n var transition = false;\n if (selection !== context) {\n transition = true;\n }\n\n selection.each(function each(data, lineIndex) {\n var root = d3Selection.select(this);\n\n // use the accessor if provided (e.g. if the data is something like\n // `{ results: [[x,y], [[x,y], ...]}`)\n var lineData = accessData(data);\n\n var segments = computeSegments(lineData);\n var points = segments.filter(function (segment) {\n return segment.length === 1;\n }).map(function (segment) {\n return {\n // use random ID so they are treated as entering/exiting each time\n id: Math.random(),\n data: segment[0]\n };\n });\n\n // filter to only defined data to plot the lines\n var filteredLineData = lineData.filter(defined);\n\n // determine the extent of the y values\n var yExtent = d3Array.extent(filteredLineData.map(function (d) {\n return y(d);\n }));\n\n // determine the extent of the x values to handle stroke-width adjustments on\n // clipping rects. Do not use extendEnds here since it can clip the line ending\n // in an unnatural way, it's better to just show the end.\n var xExtent = d3Array.extent(filteredLineData.map(function (d) {\n return x(d);\n }));\n\n // evaluate attrs and styles for the given dataset\n var evaluatedAttrs = evaluate(lineAttrs, gapAttrs, pointAttrs, data, lineIndex);\n var evaluatedStyles = evaluate(lineStyles, gapStyles, pointStyles, data, lineIndex);\n\n var initialRender = root.select('.d3-line-chunked-defined').empty();\n // pass in the raw data and index for computing attrs and styles if they are functinos\n renderCircles(initialRender, transition, context, root, points, evaluatedAttrs, evaluatedStyles);\n renderPaths(initialRender, transition, context, root, filteredLineData, segments, xExtent, yExtent, evaluatedAttrs, evaluatedStyles);\n renderClipRects(initialRender, transition, context, root, filteredLineData, segments, xExtent, yExtent, evaluatedAttrs, evaluatedStyles);\n });\n }\n\n // ------------------------------------------------\n // Define getters and setters\n // ------------------------------------------------\n function getterSetter(_ref9) {\n var get = _ref9.get;\n var set = _ref9.set;\n var setType = _ref9.setType;\n var asConstant = _ref9.asConstant;\n\n return function getSet(newValue) {\n // main setter if setType matches newValue type\n if (!setType && newValue != null || setType && (typeof newValue === 'undefined' ? 'undefined' : _typeof(newValue)) === setType) {\n set(newValue);\n return lineChunked;\n\n // setter to constant function if provided\n } else if (asConstant && newValue != null) {\n set(asConstant(newValue));\n return lineChunked;\n }\n\n // otherwise ignore value/no value provided, so use getter\n return get();\n };\n }\n\n // define `x([x])`\n lineChunked.x = getterSetter({\n get: function get() {\n return x;\n },\n set: function set(newValue) {\n x = newValue;\n },\n setType: 'function',\n asConstant: function asConstant(newValue) {\n return function () {\n return +newValue;\n };\n } });\n\n // define `y([y])`\n lineChunked.y = getterSetter({\n get: function get() {\n return y;\n },\n set: function set(newValue) {\n y = newValue;\n },\n setType: 'function',\n asConstant: function asConstant(newValue) {\n return function () {\n return +newValue;\n };\n }\n });\n\n // define `defined([defined])`\n lineChunked.defined = getterSetter({\n get: function get() {\n return defined;\n },\n set: function set(newValue) {\n defined = newValue;\n },\n setType: 'function',\n asConstant: function asConstant(newValue) {\n return function () {\n return !!newValue;\n };\n }\n });\n\n // define `isNext([isNext])`\n lineChunked.isNext = getterSetter({\n get: function get() {\n return isNext;\n },\n set: function set(newValue) {\n isNext = newValue;\n },\n setType: 'function',\n asConstant: function asConstant(newValue) {\n return function () {\n return !!newValue;\n };\n }\n });\n\n // define `curve([curve])`\n lineChunked.curve = getterSetter({\n get: function get() {\n return curve;\n },\n set: function set(newValue) {\n curve = newValue;\n },\n setType: 'function'\n });\n\n // define `lineStyles([lineStyles])`\n lineChunked.lineStyles = getterSetter({\n get: function get() {\n return lineStyles;\n },\n set: function set(newValue) {\n lineStyles = newValue;\n },\n setType: 'object'\n });\n\n // define `gapStyles([gapStyles])`\n lineChunked.gapStyles = getterSetter({\n get: function get() {\n return gapStyles;\n },\n set: function set(newValue) {\n gapStyles = newValue;\n },\n setType: 'object'\n });\n\n // define `pointStyles([pointStyles])`\n lineChunked.pointStyles = getterSetter({\n get: function get() {\n return pointStyles;\n },\n set: function set(newValue) {\n pointStyles = newValue;\n },\n setType: 'object'\n });\n\n // define `lineAttrs([lineAttrs])`\n lineChunked.lineAttrs = getterSetter({\n get: function get() {\n return lineAttrs;\n },\n set: function set(newValue) {\n lineAttrs = newValue;\n },\n setType: 'object'\n });\n\n // define `gapAttrs([gapAttrs])`\n lineChunked.gapAttrs = getterSetter({\n get: function get() {\n return gapAttrs;\n },\n set: function set(newValue) {\n gapAttrs = newValue;\n },\n setType: 'object'\n });\n\n // define `pointAttrs([pointAttrs])`\n lineChunked.pointAttrs = getterSetter({\n get: function get() {\n return pointAttrs;\n },\n set: function set(newValue) {\n pointAttrs = newValue;\n },\n setType: 'object'\n });\n\n // define `transitionInitial([transitionInitial])`\n lineChunked.transitionInitial = getterSetter({\n get: function get() {\n return transitionInitial;\n },\n set: function set(newValue) {\n transitionInitial = newValue;\n },\n setType: 'boolean'\n });\n\n // define `extendEnds([extendEnds])`\n lineChunked.extendEnds = getterSetter({\n get: function get() {\n return extendEnds;\n },\n set: function set(newValue) {\n extendEnds = newValue;\n },\n setType: 'object' });\n\n // define `accessData([accessData])`\n lineChunked.accessData = getterSetter({\n get: function get() {\n return accessData;\n },\n set: function set(newValue) {\n accessData = newValue;\n },\n setType: 'function',\n asConstant: function asConstant(newValue) {\n return function (d) {\n return d[newValue];\n };\n }\n });\n\n // define `debug([debug])`\n lineChunked.debug = getterSetter({\n get: function get() {\n return debug;\n },\n set: function set(newValue) {\n debug = newValue;\n },\n setType: 'boolean'\n });\n\n return lineChunked;\n}", "update (electionResult, colorScale){\n \n // ******* TODO: PART II *******\n // Group the states based on the winning party for the state;\n // then sort them based on the margin of victory\n let indText = 0, demoText = 0, repText = 0;\n let indData = [], demoData = [], repData = [];\n let electionData = d3.nest().key(d => d.State_Winner)\n .rollup(data => {\n return data.sort((a,b) => d3.ascending(parseFloat(a.RD_Difference), parseFloat(b.RD_Difference)));\n })\n .entries(electionResult);\n\n //console.log(electionData);\n\n electionData.forEach(data => {\n if (data.key === 'I') {\n indData = data.value;\n if (indData.length > 0) {\n indText = parseInt(indData[0].I_EV_Total);\n }\n } else if (data.key === 'D') {\n demoData = data.value;\n demoText = parseInt(demoData[0].D_EV_Total);\n } else if (data.key === 'R') {\n repData = data.value;\n repText = parseInt(repData[0].R_EV_Total);\n }\n });\n\n repData.sort((a,b) => d3.descending(parseFloat(a.RD_Difference), parseFloat(b.RD_Difference)));\n\n //console.log(indData);\n //console.log(demoData);\n //console.log(repData);\n\n\n\n let indPositions = [0];\n indData.forEach(result => {\n let length = indPositions.length;\n let width = parseFloat(result.Total_EV);\n indPositions.push(indPositions[length - 1] + width);\n });\n\n let demoPositions = [0];\n demoData.forEach(result => {\n let length = demoPositions.length;\n let width = parseFloat(result.Total_EV);\n demoPositions.push(demoPositions[length - 1] + width);\n });\n\n\n let repPositions = [0];\n repData.forEach(result => {\n let length = repPositions.length;\n let width = parseFloat(result.Total_EV);\n repPositions.push(repPositions[length - 1] + width);\n });\n\n\n let totalev = d3.sum(electionResult, d => d.Total_EV);\n\n let xScale = d3.scaleLinear()\n .domain([0, totalev])\n .range([0, this.svgWidth]);\n\n // Create the stacked bar chart.\n // Use the global color scale to color code the rectangles for Democrates and Republican.\n // Use #089c43 to color Independent party.\n // HINT: Use .electoralVotes class to style your bars.\n\n let demoRect = this.svg.selectAll(\"rect\").data(demoData);\n let demoRectEnter = demoRect.enter().append(\"rect\");\n\n demoRect.exit().remove();\n demoRect = demoRectEnter.merge(demoRect);\n\n demoRect.attr(\"x\", (d, i) => xScale(demoPositions[i]))\n .attr(\"y\", 30)\n .attr(\"height\", 20)\n .attr(\"width\", function(d, i) {\n if (i === demoPositions.length - 1) {\n return xScale(parseFloat(d.Total_EV));\n } else {\n return xScale(demoPositions[i+1] - demoPositions[i]);\n }\n })\n .style(\"fill\", d => colorScale(parseFloat(d.RD_Difference)))\n .classed(\"electoralVotes\", true);\n\n\n let repRect = this.svg.selectAll(\"rect1\").data(repData);\n let repRectEnter = repRect.enter().append(\"rect\");\n\n repRect.exit().remove();\n repRect = repRectEnter.merge(repRect);\n\n repRect.attr(\"x\", (d, i) => xScale(repPositions[i]))\n .attr(\"y\", 80)\n .attr(\"height\", 20)\n .attr(\"width\", function(d, i) {\n if (i === repPositions.length - 1) {\n return xScale(parseFloat(d.Total_EV));\n } else {\n return xScale(repPositions[i+1] - repPositions[i]);\n }\n })\n .style(\"fill\", d => colorScale(parseFloat(d.RD_Difference)))\n .classed(\"electoralVotes\", true);\n\n\n let indRect = this.svg.selectAll(\"rect2\").data(indData);\n let indRectEnter = indRect.enter().append(\"rect\");\n\n indRect.exit().remove();\n indRect = indRectEnter.merge(indRect);\n\n indRect.attr(\"x\", (d, i) => xScale(indPositions[i]))\n .attr(\"y\", 130)\n .attr(\"height\", 20)\n .attr(\"width\", function (d, i) {\n if (i === indPositions.length - 1) {\n return xScale(parseFloat(d.Total_EV));\n } else {\n return xScale(indPositions[i + 1] - indPositions[i]);\n }\n })\n .style(\"fill\", \"#089c43\")\n .classed(\"electoralVotes\", true);\n\n // Display total count of electoral votes won by the Democrat, Republican and Independent party(if there's candidate).\n // on top of the corresponding groups of bars.\n // HINT: Use the .electoralVoteText class to style your text elements; Use this in combination with\n // Use chooseClass method to get a color based on the party wherever necessary\n this.svg.selectAll(\".electoralVoteText\").remove();\n if(demoText!==0){\n this.svg.append(\"text\")\n .attr(\"x\", 0)\n .attr(\"y\", 25)\n .text(demoText)\n .style(\"font-size\", \"20px\")\n .attr(\"class\", this.chooseClass(\"D\"))\n .classed(\"electoralVoteText\", true);\n }\n if(repText!==0){\n this.svg.append(\"text\")\n .attr(\"x\", 0)\n .attr(\"y\", 75)\n .text(repText)\n .style(\"font-size\", \"20px\")\n .attr(\"class\", this.chooseClass(\"R\"))\n .classed(\"electoralVoteText\", true);\n }\n if(indText!==0){\n this.svg.append(\"text\")\n .attr(\"x\", 0)\n .attr(\"y\", 125)\n .text(indText)\n .style(\"font-size\", \"20px\")\n .attr(\"class\", this.chooseClass(\"I\"))\n .classed(\"electoralVoteText\", true);\n }\n \n // Display a bar with minimal width in the center of the bar chart to indicate the 50% mark\n // HINT: Use .middlePoint class to style this bar.\n\n let markerPosition = 270;\n this.svg.selectAll(\".middlePoint\").remove();\n this.svg.append(\"rect\")\n .attr(\"x\", xScale(markerPosition))\n .attr(\"y\", 20)\n .attr(\"height\", 150)\n .attr(\"width\", 3)\n .classed(\"middlePoint\", true);\n \n // Just above this, display the text mentioning the total number of electoral votes required\n // to win the elections throughout the country\n // HINT: Use .electoralVotesNote class to style this text element\n // HINT: Use the chooseClass method to style your elements based on party wherever necessary.\n\n this.svg.selectAll(\".electoralVotesNote\").remove();\n this.svg.append(\"text\")\n .attr(\"x\", xScale(markerPosition))\n .attr(\"y\", 15)\n .text(\"270 needed to win\")\n .style(\"font-size\", \"15px\")\n .classed(\"electoralVotesNote\", true);\n\n\n //******* TODO: PART V *******\n \n //Implement brush on the bar chart created above.\n //Implement a call back method to handle the brush end event.\n //Call the update method of shiftChart and pass the data corresponding to brush selection.\n //HINT: Use the .brush class to style the brush.\n\n let that = this;\n let demobrush = d3.brushX().extent([[xScale(0), 25],[xScale(totalev), 55]]).on(\"end\", function(){\n let selected = d3.event.selection;\n if(selected!==null){\n let min = xScale.invert(selected[0]);\n let max = xScale.invert(selected[1]);\n let selectedStates = [];\n for (let i = 0; i < demoPositions.length-1; i++) {\n if((demoPositions[i]>=min && demoPositions[i+1]<=max) ||\n (demoPositions[i]<min && demoPositions[i+1]>=min) ||\n (demoPositions[i]<=max && demoPositions[i+1]>max)){\n selectedStates.push(demoData[i].State);\n }\n }\n that.trendChart.demoUpdate(selectedStates);\n }\n });\n this.svg.append(\"g\").attr(\"class\", \"brush\").call(demobrush);\n\n let repbrush = d3.brushX().extent([[xScale(0), 75],[xScale(totalev), 105]]).on(\"end\", function(){\n let selected = d3.event.selection;\n if(selected!==null){\n let min = xScale.invert(selected[0]);\n let max = xScale.invert(selected[1]);\n let selectedStates = [];\n for (let i = 0; i < repPositions.length-1; i++) {\n if((repPositions[i]>=min && repPositions[i+1]<=max) ||\n (repPositions[i]<min && repPositions[i+1]>=min) ||\n (repPositions[i]<=max && repPositions[i+1]>max)){\n selectedStates.push(repData[i].State);\n }\n }\n that.trendChart.repUpdate(selectedStates);\n }\n });\n this.svg.append(\"g\").attr(\"class\", \"brush\").call(repbrush);\n\n let indbrush = d3.brushX().extent([[xScale(0), 125],[xScale(totalev), 155]]).on(\"end\", function(){\n let selected = d3.event.selection;\n if(selected!==null){\n let min = xScale.invert(selected[0]);\n let max = xScale.invert(selected[1]);\n let selectedStates = [];\n for (let i = 0; i < indPositions.length-1; i++) {\n if((indPositions[i]>=min && indPositions[i+1]<=max) ||\n (indPositions[i]<min && indPositions[i+1]>=min) ||\n (indPositions[i]<=max && indPositions[i+1]>max)){\n selectedStates.push(indData[i].State);\n }\n }\n that.trendChart.indUpdate(selectedStates);\n }\n });\n this.svg.append(\"g\").attr(\"class\", \"brush\").call(indbrush);\n\n }", "function dupdate(source) {\n var newHeight = Math.max(d3.tree()(root).descendants().length * 35, 0)\n console.log('newHeight', newHeight)\n console.log('root', root)\n \n// Declarando el layout del arbol\n var treemap = d3.tree().size([newHeight, width]);\n \n // Asigna los valores para las posiciones x y y de cada uno de los nodos\n var treeData = treemap(root);\n \n // Declarando el arreglo de nodos y de links.\n var nodes = treeData.descendants(),\n links = treeData.descendants().slice(1);\n\n // Normalizar datos a una profundidad determinada.\n nodes.forEach(function(d){ d.y = d.depth * 100});\n\n // Funcion para determinar el tamaño de los nodos \n var nodeRadius = d3.scaleSqrt()\n .domain([0, 1]) // Datos son abundancia relativa con valores entre 0 y 1\n .range([1, 60]);\n\n // Creando una escala de colores secuenciales desde un tono verde palido a un azul oscuro\n var z = d3.scaleSequential(d3.interpolateRgb(\"#a8ddb5\",\"#0868ac\"))\n .domain([0, 1]); //Valores originales corresponden a abundancia relativa maximo valor = 1\n\n // Redimensionando el svg\n d3.select('svg').attr(\"width\", width + margin.right + margin.left)\n .attr(\"height\", newHeight + margin.top + margin.bottom)\n\n\n // ***************************** NODOS ********************************\n\n // Actualiando los nodos\n var node = svg.selectAll('g.node')\n .data(nodes, function(d) {return d.id || (d.id = ++i); });\n\n // Ingresando nuevos nodos en la posicón anterior de los padres (efecto de transicion)\n var nodeEnter = node.enter().append('g')\n .attr('class', 'node')\n .attr(\"transform\", function(d) {\n return \"translate(\" + source.y0 + \",\" + source.x0 + \")\";\n })\n .on('click', click);\n\n // Circulo alrededor de los nodos\n nodeEnter.append('circle')\n .attr('class', 'node')\n .attr('r', 1e-6)\n .style(\"fill\", function(d) {\n return d._children ? \"lightsteelblue\" : \"#fff\";\n })\n .append(\"title\").text(function(d) { return formatCurrency(d.data[spendField]);}); // Mini tooltip\n\n\n // Agregando el nombre de cada nodo\n nodeEnter.append('text')\n .attr(\"dy\", \".35em\")\n .attr(\"y\", -10) \n .style(\"fill\",\"black\") \n .attr(\"x\", function(d) {\n return d.children || d._children ? -10 : 10;\n })\n .attr(\"text-anchor\", function(d) {\n return d.children || d._children ? \"end\" : \"start\";\n })\n .text(function(d) { \n return d.data.name || d.data.type; });\n\n // UPDATE\n var nodeUpdate = nodeEnter.merge(node);\n\n // Transición del nodo a la posicion correcta en su correspondiente nivel del arbol\n nodeUpdate.transition()\n .duration(duration)\n .attr('r', function(d) { return isNaN(nodeRadius(d.data[spendField])) ? 30 : nodeRadius(d.data[spendField])/2;})\n .attr(\"transform\", function(d) { \n return \"translate(\" + d.y + \",\" + d.x + \")\";\n });\n\n // Actualizando caracteristicas graficas del circulo\n nodeUpdate.select('circle.node')\n// .attr('r', 10)\n .attr('r', function(d) { return isNaN(nodeRadius(d.data[spendField])) ? 30 : nodeRadius(d.data[spendField])/2;})\n .style(\"fill\", function(d) {\n return d._children ? \"lightsteelblue\" : \"#fff\";\n })\n .attr('cursor', 'pointer');\n\n\n // Remover nodos previos\n var nodeExit = node.exit().transition()\n .duration(duration)\n .attr(\"transform\", function(d) {\n return \"translate(\" + source.y + \",\" + source.x + \")\";\n })\n .remove();\n\n // Al ocultar un nodo vuelve su nodo de tamaño mínimo\n nodeExit.select('circle')\n .attr('r', 1e-6);\n\n // Al ocultar un nodo se reduce la opacidad de los labels\n nodeExit.select('text')\n .style('fill-opacity', 1e-6);\n\n // ****************** links section ***************************\n\n \n // Update the links...\n var link = svg.selectAll('path.link')\n .data(links, function(d) { return d.id; });\n\n // Ingresando nuevos links en la posicón anterior de los padres (efecto de transicion)\n var linkEnter = link.enter().insert('path', \"g\")\n .attr(\"class\", \"link\")\n .attr('d', function(d){\n var o = {x: source.x0, y: source.y0}\n return diagonal(o, o)\n })\n .style(\"stroke-width\", function(d){ return nodeRadius(d.data[spendField]);})\n .style(\"stroke\", d => z(d.data[spendField]));\n\n // UPDATE\n var linkUpdate = linkEnter.merge(link);\n\n // Transition hacia la posicion del padre\n linkUpdate.transition()\n .duration(duration)\n .attr('d', function(d){ return diagonal(d, d.parent) })\n .style(\"stroke-width\", function(d){ return nodeRadius(d.data[spendField]);});\n\n // Remover links previos\n var linkExit = link.exit().transition()\n .duration(duration)\n .attr('d', function(d) {\n var o = {x: source.x, y: source.y}\n return diagonal(o, o)\n })\n .remove();\n\n // Almacenar nodos anteriores para la transición.\n nodes.forEach(function(d){\n d.x0 = d.x;\n d.y0 = d.y;\n });\n\n // Crea una diagonal desde el nodo padre al nodo hijo\n function diagonal(s, d) {\n\n path = `M ${s.y} ${s.x}\n C ${(s.y + d.y) / 2} ${s.x},\n ${(s.y + d.y) / 2} ${d.x},\n ${d.y} ${d.x}`\n\n return path\n }\n\n // Funcion para colapsar o abrir los nodos despues del click\n function click(d) {\n if (d.children) {\n d._children = d.children;\n d.children = null;\n } else {\n d.children = d._children;\n d._children = null;\n }\n dupdate(d);\n }\n\n}", "function drawAllCauseSunburst() {\n\n document.getElementById('analysisText').innerHTML = 'This sunburst chart shows all causes of death in Columbus. Each inner wedge represents a group of specific causes of death in the surrounding outer wedges.'\n + ' You can click on any outer colored wedge to zoom in on a specific category of death to reveal additional details about the specific causes. Then click on the center of the circle'\n + ' to zoom back out.'; \n\n var width = 1000,\n height = 850,\n radius = (Math.min(width, height) / 2) - 10;\n\n var formatNumber = d3.format(\",d\");\n\n var x = d3.scaleLinear()\n .range([0, 2 * Math.PI]);\n\n var y = d3.scaleSqrt()\n .range([0, radius]);\n\n var color = d3.scaleOrdinal(d3.schemeCategory20b);\n\n var partition = d3.partition();\n\n var arc = d3.arc()\n .startAngle(function(d) { return Math.max(0, Math.min(2 * Math.PI, x(d.x0))); })\n .endAngle(function(d) { return Math.max(0, Math.min(2 * Math.PI, x(d.x1))); })\n .innerRadius(function(d) { return Math.max(0, y(d.y0)); })\n .outerRadius(function(d) { return Math.max(0, y(d.y1)); });\n\n\n\n\n var chartGroup = d3.select('#chartG')\n .append('g')\n .attr(\"transform\", \"translate(600, 550)\"); \n\n var titleGroup = d3.select('#chartG')\n .append('g')\n .attr('transform', 'translate(0, 50)')\n .attr('id', '#chartTitle')\n .append('text')\n .text('Columbus All Causes of Death (1999 - 2016)')\n .style('font-size', '32px')\n .attr('class', 'title')\n .style('text-anchor', 'start'); \n\n d3.select('#chartG')\n .append('g')\n .attr('transform', 'translate(0, 90)')\n .attr('id', '#chartTitle2')\n .append('text')\n .text('(Click rings to explore)')\n .style('font-size', '24px')\n .attr('class', 'title') \n .style('text-anchor', 'start');\n\n var root = {\n \"name\":\"All Causes\",\n \"children\":[]\n };\n\n d3.csv(\"data/general_mortality_data/general_mortality_all_causes_sunburst_1999_2016.csv\", function(data){\n var parent = root;\n var current = root;\n var totalDeaths = 122394; \n data.forEach(function(d){ // iterate through each row of csv data\n\n value = +d.value;\n //totalDeaths += value;\n if (d.category == \"All Causes\") {\n root.children[root.children.length] = {\"name\":d.name, \"children\":[]};\n current = root.children[root.children.length-1];\n parent = root; \n } else if (value == 0) {\n if (current.name == d.category) { // new category child of current\n current.children[current.children.length] = {\"name\":d.name, \"children\":[]};\n parent = current;\n current = current.children[current.children.length-1]; \n } else { // new category of parent\n current = parent;\n parent = root;\n current.children[current.children.length] = {\"name\":d.name, \"children\":[]};\n }\n } else if (current.name == d.category) { \n current.children.push({\"name\":d.name,\"size\":+d.value});\n } else if (parent.name == d.category) { \n current = parent;\n parent = root;\n current.children.push({\"name\":d.name,\"size\":+d.value});\n }\n\n });\n \n var tooltip = d3.select('body').append('div').attr('class', 'tooltipTree'); \n\n root = d3.hierarchy(root);\n\n\n root.sum(function(d) { return d.size; });\n\n var slice = chartGroup.selectAll(\"path\")\n .data(partition(root).descendants())\n .enter().append('g');\n\n slice.append(\"path\")\n .attr(\"d\", arc)\n .style('stroke', '#fff')\n .style(\"fill\", function(d) { return color((d.children ? d : d.parent).data.name); })\n .on('mousemove', function(d) {\n tooltip.style(\"left\", d3.event.pageX + 10 + \"px\");\n tooltip.style(\"top\", d3.event.pageY - 20 + \"px\");\n tooltip.style(\"display\", \"inline-block\"); \n if (d.parent != null) {\n tooltip.html('Category: ' + d.parent.data.name \n + ' | Type: ' + d.data.name + ' | ' + d.value.toLocaleString('en')\n + ' deaths' + ' | ' + (d.value*100/totalDeaths).toLocaleString('en') + '% of ' \n + totalDeaths.toLocaleString('en') + ' total deaths');\n } else {\n tooltip.html('Type: ' + d.data.name + ' | ' + d.value.toLocaleString('en')\n + ' deaths' + ' | ' + (d.value*100/totalDeaths).toLocaleString('en') + '% of ' \n + totalDeaths.toLocaleString('en') + ' total deaths');\n }\n }).on('mouseout', function(d) {\n tooltip.style('display', 'none');\n }) \n .on(\"click\", click)\n\n\n slice.append(\"text\")\n .attr('transform', function(d) {\n if (d.depth > 0) {\n var t = (180 / Math.PI * (arc.startAngle()(d) + arc.endAngle()(d)) / 2 - 90);\n var rotAng = 0;\n if (t > 90) {\n rotAng = t - 180;\n }\n return \"translate(\" + arc.centroid(d) + \")\" + \"rotate(\" + rotAng + \")\";\n } else {\n return null;\n }\n })\n .style('font-weight', 'normal')\n //.style('cursor', 'pointer') \n .style('font-size', '14px')\n .style('stroke', 'black')\n .style('stroke-width', 1)\n .attr(\"x\", 0)\n .attr(\"y\", 0)\n //.text(function(d) { console.log(d.data.name); return d.data.name.slice(0, 10); }); \n\n\n }); // end csv function\n\n function click(d) {\n chartGroup.transition()\n .duration(750)\n .tween(\"scale\", function() {\n var xd = d3.interpolate(x.domain(), [d.x0, d.x1]),\n yd = d3.interpolate(y.domain(), [d.y0, 1]),\n yr = d3.interpolate(y.range(), [d.y0 ? 20 : 0, radius]);\n return function(t) { x.domain(xd(t)); y.domain(yd(t)).range(yr(t)); };\n })\n .selectAll(\"path\")\n .attrTween(\"d\", function(d) { return function() { return arc(d); }; });\n }\n\n d3.select(self.frameElement).style(\"height\", height + \"px\");\n\n\n\n\n\n\n\n}", "function ticked() {\n nodes.attr('cx', function (d) {\n return xScale(d.x)\n })\n .attr('cy', function (d) {\n return yScale(d.y)\n })\n // link.attr(\"x1\", function (d) { return d.source.x; })\n // .attr(\"y1\", function (d) { return d.source.y; })\n // .attr(\"x2\", function (d) { return d.target.x; })\n // .attr(\"y2\", function (d) { return d.target.y; });\n\n\n // node.attr(\"cx\", function (d) { return d.x; })\n // .attr(\"cy\", function (d) { return d.y; });\n}", "function threenorm(n) {\n var random = d3.randomNormal(0, 0.2),\n sqrt3 = Math.sqrt(3),\n points0 = d3.range(50).map(function() { return {x:random() + sqrt3,y: random() + 1, cluster:0} }),\n points1 = d3.range(50).map(function() { return {x:random() - sqrt3,y: random() + 1, cluster:0}; }),\n points2 = d3.range(50).map(function() { return {x:random(),y: random() - 1, cluster:0}; }),\n points = d3.merge([points0, points1, points2]);\n return points;\n\n \n}", "function changeHis(){\r\n\t\tvar multi = 4;\r\n\t\tfor(var countIndex = 0;countIndex<countArray.length;countIndex++){\r\n\t\t\tcountArray[countIndex] = 0;\r\n\t\t}\r\n\t\ttimeData = _.filter(treeNodeList, function(d) {\r\n\t\t\treturn !Array.isArray(d.values);\r\n\t\t});\r\n\t\tfor(var i=0;i<timeData.length;i++){\r\n\t\t\tvar eachData = + timeData[i].values;\r\n\t\t\ttimeDataSum = timeDataSum + eachData;\r\n\t\t}\r\n\t\t// console.log(\"timeData\",timeData);\r\n\t\tvar count = 0;\r\n\t\tvar sumCount = 0;\r\n\t\tvar ddata = treeNodeList;\r\n\t\tfor(var i = 0; i < timeData.length; i++){\r\n\t\t\tvar d = timeData[i];\r\n\t\t\tdataSizeArray[i] = + d.values;\r\n\t\t\toriginalDataSizeArray[i] = + d.values;\r\n\t\t\tif(dataSizeArray[i] != 0){\r\n\t\t\t\tdataSizeArray[i] = Math.round(Math.log(dataSizeArray[i]) * multi);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// console.log(\"originalDataSizeArray\",originalDataSizeArray);\r\n\t\tvar maxLogData = d3.max(dataSizeArray);\r\n\t\tfor(var i=0;i<=maxLogData;i++){\r\n\t\t\tcountArray[i] = 0;\r\n\t\t\teachTypeIdArray[i] = new Array();\r\n\t\t\teachTypeIndexArray[i] = new Array();\r\n\t\t}\r\n\t\tfor(var i=0;i<dataSizeArray.length;i++){\r\n\t\t\tcountArray[dataSizeArray[i]]++;\r\n\t\t\teachTypeIdArray[dataSizeArray[i]].push(timeData[i].id);\r\n\t\t\teachTypeIndexArray[dataSizeArray[i]].push(i);\r\n\t\t}\r\n\t\tvar sumNode = 0;\r\n\t\tfor(var i=0;i<countArray.length;i++){\r\n\t\t\tsumNode = sumNode + countArray[i];\r\n\t\t}\r\n\t\tfor(var i=0;i<countArray.length;i++){\r\n\t\t\tif(countArray[i] != 0 ){\r\n\t\t\t\tcountArray[i] = Math.log(countArray[i] + 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlineX.range([0,width - move_x * 1.2]);\r\n\t\tlineX.domain([0,(d3.max(dataSizeArray) + 1)/multi]);\r\n\t\tvar xAxis = d3.svg.axis()\r\n\t\t.scale(lineX)\r\n\t\t.orient(\"bottom\");\r\n\t\tbrush.x(lineX)\r\n\t\t\t.on(\"brushend\",brushed);\r\n\r\n\t\tfor(var i=0;i<(d3.max(dataSizeArray)+1)/multi;i=i+1){\r\n\t\t\txAxisTicks.push(i);\r\n\t\t}\r\n\t\this_width = (width - 1.2 * move_x)/(d3.max(dataSizeArray) + 1);\r\n\t\txAxis.tickValues(xAxisTicks);\r\n\t\tlineY.domain(d3.extent(countArray));\r\n\t\tfor(var i=0;i<countArray.length;i++){\r\n\t\t\tobjArray[i] = new Object();\r\n\t\t\tobjArray[i].num = i;\r\n\t\t\tobjArray[i].count = countArray[i];\r\n\t\t}\r\n\t\tvar yAxis = d3.svg.axis()\r\n\t\t\t.scale(lineY)\r\n\t\t\t.orient(\"left\");\r\n\t\tvar line = d3.svg.line()\r\n\t\t\t.x(function(d){return (lineX(d.num));})\r\n\t\t\t.y(function(d){return (lineY(d.count));})\r\n\r\n\t\td3.select(\"#histogramView\")\r\n\t\t\t.selectAll(\".his\")\r\n\t\t\t.data(objArray)\r\n\t\t\t.enter()\r\n\t\t\t.append(\"rect\")\r\n\t\t\t.attr(\"id\",function(d,i){\r\n\t\t\t\treturn \"his\" + i; \r\n\t\t\t})\r\n\t\t\t.attr(\"class\",\"his\")\r\n\t\t\t.attr(\"width\",his_width * 0.5)\r\n\t\t\t.attr(\"height\",function(d,i){\r\n\t\t\t\treturn moveHeight - lineY(objArray[i].count);\r\n\t\t\t})\r\n\t\t\t.attr(\"x\",function(d,i){\r\n\t\t\t\treturn his_width * i;\r\n\t\t\t})\r\n\t\t\t.attr(\"y\",function(d,i){\r\n\t\t\t\treturn lineY(objArray[i].count); \r\n\t\t\t})\r\n\t\t\t.attr(\"fill\",\"#1F77B4\");\r\n\t\td3.select(\"#histogramView\")\r\n\t\t.append(\"g\")\r\n\t\t.attr(\"class\",\"y axis\")\r\n\t\t.attr(\"transform\",\"translate(\" + 0 + \",\"+ 0 +\")\")\r\n\t\t.call(yAxis)\r\n\t\t.append(\"text\")\r\n\t\t.attr(\"transform\",\"rotate(-90)\")\r\n\t\t.attr(\"class\",\"label\")\r\n\t\t.attr(\"x\",5)\r\n\t\t.attr(\"y\",16)\r\n\t\t.style(\"text-anchor\",\"end\")\r\n\t\t.text(\"log(Number)\");\r\n\r\n\t\td3.select(\"#histogramView\")\r\n\t\t.append(\"g\")\r\n\t\t.attr(\"class\",\"x axis\")\r\n\t\t.attr(\"transform\",\"translate(\" + 0 + \",\"+ (moveHeight) +\")\")\r\n\t\t.call(xAxis)\r\n\t\t.append(\"text\")\r\n\t\t.attr(\"class\",\"label\")\r\n\t\t.attr(\"x\",width - move_x * 1.2 + 30)\r\n\t\t.attr(\"y\",14)\r\n\t\t.style(\"text-anchor\",\"end\")\r\n\t\t.text(\"log(bytes)\");\r\n\r\n\t\td3.select(\"#histogramView\")\r\n\t\t.append(\"g\")\r\n\t\t.attr(\"class\",\"x brush\")\r\n\t\t.call(brush)\r\n\t\t.selectAll(\"rect\")\r\n\t\t.attr(\"y\",0)\r\n\t\t.attr(\"height\",moveHeight);\r\n\t}", "expandText(begin, end, lengthInterpolate, pointsThroughLine, alreadyAdded, signe, sketchLines, distance){\n \n // var point = interpolate(begin, end, lengthInterpolate);\n var that = this;\n var angle = Math.atan2(end.y-begin.y, end.x-begin.x)\n var point = createPositionAtLengthAngle(end, angle, 100);\n // console.log('GO')\n // drawCircle(point.x, point.y, 5, 'red');\n\n // drawLine(begin.x, begin.y, point.x, point.y, 'red');\n\n\n d3.select('.standAloneLines').selectAll('.parentLine').each(function(){\n var id = d3.select(this).attr('id').split('-')[1];\n \n var insideandWhichGroup = that.props.groupLines.find(group => group.lines.find((arrayEntry)=> arrayEntry.indexOf(id) > -1))//.indexOf(idSImple) > -1);//x.id == this.guideTapped.item)\n \n // console.log(insideandWhichGroup)\n\n \n if (alreadyAdded.indexOf(id) == -1 && insideandWhichGroup == undefined){\n \n var BB = _getBBox('item-'+id);\n var originalBB = JSON.parse(JSON.stringify(BB));\n if (distance != 0){\n BB.x -= 2;\n BB.y -= 2;\n BB.width +=2;\n BB.height += 2\n } else {\n BB.x -= 15;\n BB.y -= 15;\n BB.width +=30;\n BB.height += 30\n }\n var oobbNew = [\n {'x': BB.x, 'y':BB.y},\n {'x': BB.x+ BB.width, 'y':BB.y},\n {'x': BB.x+ BB.width, 'y':BB.y + BB.height},\n {'x': BB.x, 'y':BB.y + BB.height}\n ]\n var isIntersect = lineIntersectsPolygone(begin, point, oobbNew);\n if ((originalBB.width > 400 && originalBB.height < 50) || (originalBB.height > 400 && originalBB.width <50)){\n }\n else if (isIntersect){\n // showBboxBB(BB, 'red')\n // showBbox('item-'+id, 'blue');\n alreadyAdded.push(id)\n lengthInterpolate = lengthInterpolate *2;\n\n var centerPolygon = getCenterPolygon(oobbNew);\n var rightSide = {'x': BB.x+ BB.width, 'y':BB.y+ (BB.height/2)}\n // var result = that.increasePrecisionLine(begin, end, oobbNew, pointsThroughLine,)\n if (signe == 1) that.expandText(centerPolygon, rightSide, lengthInterpolate, pointsThroughLine, alreadyAdded, signe, sketchLines, distance)//, arraySorted,oobb, iteration)\n else that.expandText(rightSide, centerPolygon, lengthInterpolate, pointsThroughLine, alreadyAdded, signe, sketchLines, distance)\n }\n }\n })\n }", "function visualize(theData) {\n // PART 1: Essential Local Variables and Functions\n // =================================\n // curX and curY will determine what data gets represented in each axis.\n // We designate our defaults here, which carry the same names\n // as the headings in their matching .csv data file.\n var curX = \"Year\";\n var curY = \"Value\";\n \n // We also save empty variables for our the min and max values of x and y.\n // this will allow us to alter the values in functions and remove repetitious code.\n var xMin;\n var xMax;\n var yMin;\n var yMax;\n \n // This function allows us to set up tooltip rules (see d3-tip.js).\n var toolTip = d3\n .tip()\n .attr(\"class\", \"d3-tip\")\n .offset([40, -60])\n .html(function(d) {\n // x key\n var theX;\n // Grab the state name.\n var theState = \"<div>\" + d.countryName + \"</div>\";\n // Snatch the y value's key and value.\n var theY = \"<div>\" + curY + \": \" + d[curY] + \"%</div>\";\n // If the x key is poverty\n if (curX === \"poverty\") {\n // Grab the x key and a version of the value formatted to show percentage\n theX = \"<div>\" + curX + \": \" + d[curX] + \"%</div>\";\n }\n else {\n // Otherwise\n // Grab the x key and a version of the value formatted to include commas after every third digit.\n theX = \"<div>\" +\n curX +\n \": \" +\n parseFloat(d[curX]).toLocaleString(\"en\") +\n \"</div>\";\n }\n // Display what we capture.\n return theState + theX + theY;\n });\n // Call the toolTip function.\n svg.call(toolTip);\n\n //--------------------------------------------------------------------------------------\n //--------------------------------------------------------------------------------------\n // a. change the min and max for x\n function xMinMax() {\n // min will grab the smallest datum from the selected column.\n xMin = d3.min(theData, function(d) {\n return parseFloat(d[curX]) * 0.90;\n });\n\n // .max will grab the largest datum from the selected column.\n xMax = d3.max(theData, function(d) {\n return parseFloat(d[curX]) * 1.10;\n });\n }\n\n // b. change the min and max for y\n function yMinMax() {\n // min will grab the smallest datum from the selected column.\n yMin = d3.min(theData, function(d) {\n return parseFloat(d[curY]) * 0.90;\n });\n\n // .max will grab the largest datum from the selected column.\n yMax = d3.max(theData, function(d) {\n return parseFloat(d[curY]) * 1.10;\n });\n }\n\n\n//--------------------------------------------------------------------------------------\n//--------------------------------------------------------------------------------------\n // c. change the classes (and appearance) of label text when clicked.\n function labelChange(axis, clickedText) {\n // Switch the currently active to inactive.\n d3\n .selectAll(\".aText\")\n .filter(\".\" + axis)\n .filter(\".active\")\n .classed(\"active\", false)\n .classed(\"inactive\", true);\n\n // Switch the text just clicked to active.\n clickedText.classed(\"inactive\", false).classed(\"active\", true);\n }\n\n//--------------------------------------------------------------------------------------\n//--------------------------------------------------------------------------------------\n // Part 3: Instantiate the Scatter Plot\n // ====================================\n // This will add the first placement of our data and axes to the scatter plot.\n\n // First grab the min and max values of x and y.\n xMinMax();\n yMinMax();\n\n\n // With the min and max values now defined, we can create our scales.\n // Notice in the range method how we include the margin and word area.\n // This tells d3 to place our circles in an area starting after the margin and word area.\n var xScale = d3\n .scaleLinear()\n .domain([xMin, xMax])\n .range([margin + labelArea, width - margin]);\n var yScale = d3\n .scaleLinear()\n .domain([yMin, yMax])\n // Height is inverses due to how d3 calc's y-axis placement\n .range([height - margin - labelArea, margin]);\n\n\n //--------------------------------------------------------------------------------------\n //--------------------------------------------------------------------------------------\n // We pass the scales into the axis methods to create the axes.\n // Note: D3 4.0 made this a lot less cumbersome then before. Kudos to mbostock.\n var xAxis = d3.axisBottom(xScale);\n var yAxis = d3.axisLeft(yScale);\n\n // Determine x and y tick counts.\n // Note: Saved as a function for easy mobile updates.\n function tickCount() {\n if (width <= 500) {\n xAxis.ticks(5);\n yAxis.ticks(5);\n }\n else {\n xAxis.ticks(10);\n yAxis.ticks(10);\n }\n }\n tickCount();\n\n\n//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n \n\n d3.json(url).then(function(data) {\n \n // Grab values from the response json object to build the plots\n var name = data.dataset.name;\n var stock = data.dataset.dataset_code;\n var startDate = data.dataset.start_date;\n var endDate = data.dataset.end_date;\n var dates = unpack(data.dataset.data, 0);\n var closingPrices = unpack(data.dataset.data, 1);\n \n var trace1 = {\n type: \"scatter\",\n mode: \"lines\",\n name: name,\n x: dates,\n y: closingPrices,\n line: {\n color: \"#17BECF\"\n }\n };\n \n var data = [trace1];\n \n var layout = {\n title: `${stock} closing prices`,\n xaxis: {\n range: [startDate, endDate],\n type: \"date\"\n },\n yaxis: {\n autorange: true,\n type: \"linear\"\n }\n };\n \n Plotly.newPlot(\"plot\", data, layout);\n \n });\n }", "constructor(\n tr,\n w,\n h,\n scale = 0.9,\n padding = 30,\n lwd = 4,\n color = \"orange\",\n plotTime = 10000\n ) {\n this.tr = tr;\n this.w = w;\n this.h = h;\n this.scale = scale;\n this.padding = padding;\n this.lwd = lwd;\n this.color = color;\n this.plotTime = plotTime;\n\n this.svg = d3\n .select(\"body\") // Adds new svg to body\n .select(\"#visualization\")\n .append(\"svg\")\n .attr(\"width\", this.w)\n .attr(\"height\", this.h)\n .attr(\"id\", \"LTTsvg\");\n\n // Finds the x coordinates of every node in the tree\n this.nodeXvals = extractNodeXVals(this.tr.root, []);\n\n // Removes duplicate x coordinates - most common for tips in an ultrametric tree\n // https://stackoverflow.com/questions/9229645/remove-duplicate-values-from-js-array\n\n // Have to use this dummy letiable, cleanedXvals, because \"this.\" doesn't work\n // inside of filter function.\n let cleanedXvals = this.nodeXvals;\n cleanedXvals = cleanedXvals.filter(function(item, pos) {\n return cleanedXvals.indexOf(item) == pos;\n });\n this.nodeXvals = cleanedXvals;\n\n // Sorts the x coordinates from left to right\n this.nodeXvals = this.nodeXvals.sort(function compare(a, b) {\n return a - b;\n });\n\n // Counts the number of lineages present immediately to the right of a\n // given x coordinate (i.e., the number of lineages that begin at the node(s) with\n // that coordinate).\n this.lineageCounts = [];\n for (let z = 0; z < this.nodeXvals.length; z++) {\n this.lineageCounts.push(\n countLineages(this.tr.root, this.nodeXvals[z], 0)\n );\n }\n\n // Adjusts the lineage count for the final tip node, since there are 0 lineages to\n // its right. Makes it the same as the node with the next largest x coordinate.\n this.lineageCounts[this.lineageCounts.length - 1] = this.lineageCounts[\n this.lineageCounts.length - 2\n ];\n\n // Sets up y scale function and axis. Maximum y value is the largest lineage count.\n this.yScale = d3\n .scaleLog()\n .base(Math.E)\n .domain([1, Math.max(...this.lineageCounts)]) // ... syntax expands array\n .range([this.h * this.scale, this.padding]); // into individual elements.\n this.yAxis = d3\n .axisLeft()\n .scale(this.yScale)\n .ticks(5)\n .tickFormat(d3.format(\".2\"));\n\n // Sets up x scale function and axis. Ranges from 0 (root) to 1 (final tip node).\n this.xScale = d3\n .scaleLinear()\n .domain([0, 1])\n .range([this.padding, this.w * this.scale + this.padding]);\n this.xAxis = d3\n .axisBottom()\n .scale(this.xScale)\n .ticks(5);\n\n // Adds the x-axis to the svg and translates it to the bottom of the plot\n this.svg\n .append(\"g\")\n .attr(\"class\", \"axis\")\n .attr(\"transform\", \"translate(0,\" + this.h * this.scale + \")\")\n .call(this.xAxis);\n\n // Adds the x-axis label\n this.svg\n .append(\"text\")\n .attr(\n \"transform\",\n \"translate(\" + w / 2 + \",\" + (this.h * this.scale + 40) + \")\"\n )\n .style(\"text-anchor\", \"middle\")\n .text(\"Relative Tree Depth\");\n\n // Adds the y-axis to the svg and translates it to the right with padding\n this.svg\n .append(\"g\")\n .attr(\"class\", \"axis\")\n .attr(\"transform\", \"translate(\" + this.padding + \",0)\")\n .call(this.yAxis);\n\n // Adds the y-axis label\n this.svg\n .append(\"text\")\n .attr(\"transform\", \"rotate(-90)\")\n .attr(\"x\", 0 - this.h / 2)\n .attr(\"y\", 15)\n .style(\"text-anchor\", \"middle\")\n .text(\"Number of Lineages (natural log scale)\");\n // Apparently, x- and y-axes rotate along with text.\n\n // Adds a circle to the y-axis with the initial number of lineages (i.e., those that\n // descend from the root).\n this.svg\n .append(\"circle\")\n .attr(\"cx\", this.xScale(0))\n .attr(\"cy\", this.yScale(this.lineageCounts[0]))\n .attr(\"r\", 3)\n .attr(\"fill\", this.color);\n }", "function gallery(dataset) {\n\n var totalRows = dataset.length;\n\t// console.log(totalRows);\n\n var name;\n\n\tif (dataset == woodData){\n\t\tname = \"Wood\";\n\t\tcall = \"woodData\"\n\t} else if (dataset == paperData) {\n\t\tname = \"Paper\";\n\t\tcall = \"paperData\"\n\t} else if (dataset == penData) {\n\t\tname = \"Pen\";\n\t\tcall = \"penData\"\n\t} else if (dataset == silkData) {\n\t\tname = \"Silk\";\n\t\tcall = \"silkData\"\n\t} else if (dataset == inkData) {\n\t\tname = \"Ink\";\n\t\tcall = \"inkData\"\n\t} else if (dataset == silverData) {\n\t\tname = \"Silver\";\n\t\tcall = \"silverData\"\n\t} else if (dataset == glassData) {\n\t\tname = \"Glass\";\n\t\tcall = \"glassData\"\n\t} else if (dataset == albumenData) {\n\t\tname = \"Albumen\";\n\t\tcall = \"albumenData\"\n\t} else if (dataset == goldData) {\n\t\tname = \"Gold\";\n\t\tcall = \"goldData\"\n\t} else if (dataset == porcelainData) {\n\t\tname = \"Porcelain\";\n\t\tcall = \"porcelainData\"\n\t} else if (dataset == allData) {\n\t\tname = \"All\";\n\t\tcall = \"allData\"\n\t};\n\n\tvar format = d3.format(\".0%\");\n\tvar formatThousands = d3.format(\",\");\n\n\tfunction imageExists(url){\n\t var image = new Image();\n\t image.src = url;\n\t if (!image.complete) {\n\t return false;\n\t }\n\t else if (image.height === 0) {\n\t return false;\n\t }\n\t return true;\n\t}\n\n\tobjectNames = d3.nest()\n\t\t.key(function(d) { return d.objectName; })\n\t\t \t.rollup(function(v) { return v.length; })\n\t\t \t.entries(dataset)\n\t\t \t.sort(function(a,b) {return d3.descending(a.value,b.value);})\n\t\t \t.filter(function (d, i) { return i === 0 | i === 1 | i === 2 | i === 3 | i === 4 | i === 5 | i === 6 | i === 7 | i === 8\n\t\t \t\t| i === 9;});\n\t\t// console.log(objectNames);\n\n\trepImg1 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[0].key });\n\n\trepImg2 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[1].key });\n\n\trepImg3 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[2].key });\n\n\trepImg4 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[3].key });\n\n\trepImg5 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[4].key });\n\n\trepImg6 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[5].key });\n\n\trepImg7 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[6].key });\n\n\trepImg8 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[7].key });\n\n\trepImg9 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[8].key });\n\n\trepImg10 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.objectName == objectNames[9].key });\n\t// console.log(repImg10);\n\n\t// Rep Image 1\n\n\td3.select(\".image1\").selectAll(\"img\").remove();\n\n\tvar img1random = Math.floor((Math.random() * repImg1.length) + 0);\n\n\tvar displayRepImg1 = d3.select(\".image1\").selectAll(\"#repImg1\")\n\t\t\t.data(repImg1.filter(function (d, i) { return i === img1random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"class\", \"target\")\n\t .attr(\"id\", \"target1\")\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image1\").selectAll(\"div\").remove();\n\n\tvar displayOverlay1 = d3.select(\".image1\").selectAll(\"#repImg1\")\n\t .data(repImg1.filter(function (d, i) { return i === img1random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay\")\n\t .attr(\"id\", \"overlay1\")\n\t .exit();\n\n\tvar displayTitle = d3.select(\".overlay\").selectAll(\"#overlay1\")\n\t .data(repImg1.filter(function (d, i) { return i === img1random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayDate = d3.select(\".overlay\").selectAll(\"#overlay1\")\n\t .data(repImg1.filter(function (d, i) { return i === img1random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist = d3.select(\".overlay\").selectAll(\"#overlay1\")\n\t .data(repImg1.filter(function (d, i) { return i === img1random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,30).replace(/[^ -~]+/g, \"\")})\n\t .exit();\n\n\tvar displayCulture = d3.select(\".overlay\").selectAll(\"#overlay1\")\n\t .data(repImg1.filter(function (d, i) { return i === img1random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay\").selectAll(\"#overlay1\")\n .data(repImg1.filter(function (d, i) { return i === img1random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject= d3.select(\".overlay\").selectAll(\"#overlay1\")\n\t .data(repImg1.filter(function (d, i) { return i === img1random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[0].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay\").selectAll(\"#overlay1\")\n\t .data(repImg1.filter(function (d, i) { return i === img1random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 2\n\n\tvar img2random = Math.floor((Math.random() * repImg2.length) + 0);\n\n\td3.select(\".image2\").selectAll(\"img\").remove();\n\n\tvar displayRepImg2 = d3.select(\".image2\").selectAll(\"#repImg2\")\n\t\t\t.data(repImg2.filter(function (d, i) { return i === img2random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\t\n\td3.select(\".image2\").selectAll(\"div\").remove();\n\n\tvar displayOverlay2 = d3.select(\".image2\").selectAll(\"#repImg2\")\n\t .data(repImg2.filter(function (d, i) { return i === img2random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay2\")\n\t .attr(\"id\", \"overlay2\")\n\t .exit();\n\n\tvar displayTitle2 = d3.select(\".overlay2\").selectAll(\"#overlay2\")\n\t .data(repImg2.filter(function (d, i) { return i === img2random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\")})\n\t .exit();\n\n\tvar displayDate2 = d3.select(\".overlay2\").selectAll(\"#overlay2\")\n\t .data(repImg2.filter(function (d, i) { return i === img2random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist2 = d3.select(\".overlay2\").selectAll(\"#overlay2\")\n\t .data(repImg2.filter(function (d, i) { return i === img2random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture2 = d3.select(\".overlay2\").selectAll(\"#overlay2\")\n\t .data(repImg2.filter(function (d, i) { return i === img2random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay2\").selectAll(\"#overlay2\")\n .data(repImg2.filter(function (d, i) { return i === img2random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject2= d3.select(\".overlay2\").selectAll(\"#overlay2\")\n\t .data(repImg2.filter(function (d, i) { return i === img2random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[1].value) + \")\"})\n\t .exit();\n\n\tvar displayLink2= d3.select(\".overlay2\").selectAll(\"#overlay2\")\n\t .data(repImg2.filter(function (d, i) { return i === img2random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 3\n\n\tvar img3random = Math.floor((Math.random() * repImg3.length) + 0);\n\n\td3.select(\".image3\").selectAll(\"img\").remove();\n\n\tvar displayRepImg3 = d3.select(\".image3\").selectAll(\"#repImg3\")\n\t\t\t.data(repImg3.filter(function (d, i) { return i === img3random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image3\").selectAll(\"div\").remove();\n\n\tvar displayOverlay3 = d3.select(\".image3\").selectAll(\"#repImg3\")\n\t .data(repImg3.filter(function (d, i) { return i === img3random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay3\")\n\t .attr(\"id\", \"overlay3\")\n\t .exit();\n\n\tvar displayTitle3 = d3.select(\".overlay3\").selectAll(\"#overlay3\")\n\t .data(repImg3.filter(function (d, i) { return i === img3random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayDate3 = d3.select(\".overlay3\").selectAll(\"#overlay3\")\n\t .data(repImg3.filter(function (d, i) { return i === img3random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist3 = d3.select(\".overlay3\").selectAll(\"#overlay3\")\n\t .data(repImg3.filter(function (d, i) { return i === img3random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture3 = d3.select(\".overlay3\").selectAll(\"#overlay3\")\n\t .data(repImg3.filter(function (d, i) { return i === img3random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay3\").selectAll(\"#overlay3\")\n .data(repImg3.filter(function (d, i) { return i === img3random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject3= d3.select(\".overlay3\").selectAll(\"#overlay3\")\n\t .data(repImg3.filter(function (d, i) { return i === img3random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[2].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay3\").selectAll(\"#overlay3\")\n\t .data(repImg3.filter(function (d, i) { return i === img3random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 4\n\n\tvar img4random = Math.floor((Math.random() * repImg4.length) + 0);\n\n\td3.select(\".image4\").selectAll(\"img\").remove();\n\n\tvar displayRepImg4 = d3.select(\".image4\").selectAll(\"#repImg4\")\n\t\t\t.data(repImg4.filter(function (d, i) { return i === img4random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image4\").selectAll(\"div\").remove();\n\n\tvar displayOverlay4 = d3.select(\".image4\").selectAll(\"#repImg4\")\n\t .data(repImg4.filter(function (d, i) { return i === img4random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay4\")\n\t .attr(\"id\", \"overlay4\")\n\t .exit();\n\n\tvar displayTitle4 = d3.select(\".overlay4\").selectAll(\"#overlay4\")\n\t .data(repImg4.filter(function (d, i) { return i === img4random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\")})\n\t .exit();\n\n\tvar displayDate4 = d3.select(\".overlay4\").selectAll(\"#overlay4\")\n\t .data(repImg4.filter(function (d, i) { return i === img4random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist4 = d3.select(\".overlay4\").selectAll(\"#overlay4\")\n\t .data(repImg4.filter(function (d, i) { return i === img4random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture4 = d3.select(\".overlay4\").selectAll(\"#overlay4\")\n\t .data(repImg4.filter(function (d, i) { return i === img4random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay4\").selectAll(\"#overlay4\")\n .data(repImg4.filter(function (d, i) { return i === img4random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject4= d3.select(\".overlay4\").selectAll(\"#overlay4\")\n\t .data(repImg4.filter(function (d, i) { return i === img4random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[3].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay4\").selectAll(\"#overlay4\")\n\t .data(repImg4.filter(function (d, i) { return i === img4random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 5\n\n\tvar img5random = Math.floor((Math.random() * repImg5.length) + 0);\n\n\td3.select(\".image5\").selectAll(\"img\").remove();\n\n\tvar displayRepImg5 = d3.select(\".image5\").selectAll(\"#repImg5\")\n\t\t\t.data(repImg5.filter(function (d, i) { return i === img5random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image5\").selectAll(\"div\").remove();\n\n\tvar displayOverlay5 = d3.select(\".image5\").selectAll(\"#repImg5\")\n\t .data(repImg5.filter(function (d, i) { return i === img5random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay5\")\n\t .attr(\"id\", \"overlay5\")\n\t .exit();\n\n\tvar displayTitle5 = d3.select(\".overlay5\").selectAll(\"#overlay5\")\n\t .data(repImg5.filter(function (d, i) { return i === img5random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayDate5 = d3.select(\".overlay5\").selectAll(\"#overlay5\")\n\t .data(repImg5.filter(function (d, i) { return i === img5random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist5 = d3.select(\".overlay5\").selectAll(\"#overlay5\")\n\t .data(repImg5.filter(function (d, i) { return i === img5random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture5 = d3.select(\".overlay5\").selectAll(\"#overlay5\")\n\t .data(repImg5.filter(function (d, i) { return i === img5random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay5\").selectAll(\"#overlay5\")\n .data(repImg5.filter(function (d, i) { return i === img5random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject5= d3.select(\".overlay5\").selectAll(\"#overlay5\")\n\t .data(repImg5.filter(function (d, i) { return i === img5random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[4].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay5\").selectAll(\"#overlay5\")\n\t .data(repImg5.filter(function (d, i) { return i === img5random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 6\n\n\tvar img6random = Math.floor((Math.random() * repImg6.length) + 0);\n\n\td3.select(\".image6\").selectAll(\"img\").remove();\n\n\tvar displayRepImg6 = d3.select(\".image6\").selectAll(\"#repImg6\")\n\t\t\t.data(repImg6.filter(function (d, i) { return i === img6random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image6\").selectAll(\"div\").remove();\n\n\tvar displayOverlay6 = d3.select(\".image6\").selectAll(\"#repImg6\")\n\t .data(repImg6.filter(function (d, i) { return i === img6random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay6\")\n\t .attr(\"id\", \"overlay6\")\n\t .exit();\n\n\tvar displayTitle6 = d3.select(\".overlay6\").selectAll(\"#overlay6\")\n\t .data(repImg6.filter(function (d, i) { return i === img6random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayDate6 = d3.select(\".overlay6\").selectAll(\"#overlay6\")\n\t .data(repImg6.filter(function (d, i) { return i === img6random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist6 = d3.select(\".overlay6\").selectAll(\"#overlay6\")\n\t .data(repImg6.filter(function (d, i) { return i === img6random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture6 = d3.select(\".overlay6\").selectAll(\"#overlay6\")\n\t .data(repImg6.filter(function (d, i) { return i === img6random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay6\").selectAll(\"#overlay6\")\n .data(repImg6.filter(function (d, i) { return i === img6random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject6= d3.select(\".overlay6\").selectAll(\"#overlay6\")\n\t .data(repImg6.filter(function (d, i) { return i === img6random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[5].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay6\").selectAll(\"#overlay6\")\n\t .data(repImg6.filter(function (d, i) { return i === img6random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 7\n\n\tvar img7random = Math.floor((Math.random() * repImg7.length) + 0);\n\n\td3.select(\".image7\").selectAll(\"img\").remove();\n\n\tvar displayRepImg7 = d3.select(\".image7\").selectAll(\"#repImg7\")\n\t\t\t.data(repImg7.filter(function (d, i) { return i === img7random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image7\").selectAll(\"div\").remove();\n\n\tvar displayOverlay7 = d3.select(\".image7\").selectAll(\"#repImg7\")\n\t .data(repImg7.filter(function (d, i) { return i === img7random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay7\")\n\t .attr(\"id\", \"overlay7\")\n\t .exit();\n\n\tvar displayTitle7 = d3.select(\".overlay7\").selectAll(\"#overlay7\")\n\t .data(repImg7.filter(function (d, i) { return i === img7random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayDate7 = d3.select(\".overlay7\").selectAll(\"#overlay7\")\n\t .data(repImg7.filter(function (d, i) { return i === img7random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist7 = d3.select(\".overlay7\").selectAll(\"#overlay7\")\n\t .data(repImg7.filter(function (d, i) { return i === img7random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture7 = d3.select(\".overlay7\").selectAll(\"#overlay7\")\n\t .data(repImg7.filter(function (d, i) { return i === img7random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay7\").selectAll(\"#overlay7\")\n .data(repImg7.filter(function (d, i) { return i === img7random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject7= d3.select(\".overlay7\").selectAll(\"#overlay7\")\n\t .data(repImg7.filter(function (d, i) { return i === img7random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[6].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay7\").selectAll(\"#overlay7\")\n\t .data(repImg7.filter(function (d, i) { return i === img7random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 8\n\n\tvar img8random = Math.floor((Math.random() * repImg8.length) + 0);\n\n\td3.select(\".image8\").selectAll(\"img\").remove();\n\n\tvar displayRepImg8 = d3.select(\".image8\").selectAll(\"#repImg8\")\n\t\t\t.data(repImg8.filter(function (d, i) { return i === img8random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image8\").selectAll(\"div\").remove();\n\n\tvar displayOverlay8 = d3.select(\".image8\").selectAll(\"#repImg8\")\n\t .data(repImg8.filter(function (d, i) { return i === img8random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay8\")\n\t .attr(\"id\", \"overlay8\")\n\t .exit();\n\n\tvar displayTitle8 = d3.select(\".overlay8\").selectAll(\"#overlay8\")\n\t .data(repImg8.filter(function (d, i) { return i === img8random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayDate8 = d3.select(\".overlay8\").selectAll(\"#overlay8\")\n\t .data(repImg8.filter(function (d, i) { return i === img8random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist8 = d3.select(\".overlay8\").selectAll(\"#overlay8\")\n\t .data(repImg8.filter(function (d, i) { return i === img8random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture8 = d3.select(\".overlay8\").selectAll(\"#overlay8\")\n\t .data(repImg8.filter(function (d, i) { return i === img8random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay8\").selectAll(\"#overlay8\")\n .data(repImg8.filter(function (d, i) { return i === img8random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject8= d3.select(\".overlay8\").selectAll(\"#overlay8\")\n\t .data(repImg8.filter(function (d, i) { return i === img8random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[7].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay8\").selectAll(\"#overlay8\")\n\t .data(repImg8.filter(function (d, i) { return i === img8random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 9\n\n\tvar img9random = Math.floor((Math.random() * repImg9.length) + 0);\n\n\td3.select(\".image9\").selectAll(\"img\").remove();\n\n\tvar displayRepImg9 = d3.select(\".image9\").selectAll(\"#repImg9\")\n\t\t\t.data(repImg9.filter(function (d, i) { return i === img9random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image9\").selectAll(\"div\").remove();\n\n\tvar displayOverlay9 = d3.select(\".image9\").selectAll(\"#repImg9\")\n\t .data(repImg9.filter(function (d, i) { return i === img9random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay9\")\n\t .attr(\"id\", \"overlay9\")\n\t .exit();\n\n\tvar displayTitle9 = d3.select(\".overlay9\").selectAll(\"#overlay9\")\n\t .data(repImg9.filter(function (d, i) { return i === img9random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayDate9 = d3.select(\".overlay9\").selectAll(\"#overlay9\")\n\t .data(repImg9.filter(function (d, i) { return i === img9random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist9 = d3.select(\".overlay9\").selectAll(\"#overlay9\")\n\t .data(repImg9.filter(function (d, i) { return i === img9random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture9 = d3.select(\".overlay9\").selectAll(\"#overlay9\")\n\t .data(repImg9.filter(function (d, i) { return i === img9random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay9\").selectAll(\"#overlay9\")\n .data(repImg9.filter(function (d, i) { return i === img9random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject9= d3.select(\".overlay9\").selectAll(\"#overlay9\")\n\t .data(repImg9.filter(function (d, i) { return i === img9random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[8].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay9\").selectAll(\"#overlay9\")\n\t .data(repImg9.filter(function (d, i) { return i === img9random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\t// Rep Image 10\n\n\tvar img10random = Math.floor((Math.random() * repImg10.length) + 0);\n\n\td3.select(\".image10\").selectAll(\"img\").remove();\n\n\tvar displayRepImg10 = d3.select(\".image10\").selectAll(\"#repImg10\")\n\t\t\t.data(repImg10.filter(function (d, i) { return i === img10random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"width\",\"100%\")\n\t .style(\"height\",\"100%\")\n\t .style(\"background-position\",\"center\")\n\t .style(\"background-size\",\"30%\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t .attr(\"onerror\", \"this.onerror=null;this.src='assets/refresh.jpg';\")\n\t .append('a').attr('href',function(d) {return d.URL;})\n\t .exit();\n\n\td3.select(\".image10\").selectAll(\"div\").remove();\n\n\tvar displayOverlay10 = d3.select(\".image10\").selectAll(\"#repImg10\")\n\t .data(repImg10.filter(function (d, i) { return i === img10random;}))\n\t .enter()\n\t .append('div')\n\t .attr(\"class\", \"overlay10\")\n\t .attr(\"id\", \"overlay10\")\n\t .exit();\n\n\tvar displayTitle10 = d3.select(\".overlay10\").selectAll(\"#overlay10\")\n\t .data(repImg10.filter(function (d, i) { return i === img10random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectTitle\")\n\t .text(function(d) { return d.Title.substring(0,40).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayDate10 = d3.select(\".overlay10\").selectAll(\"#overlay10\")\n\t .data(repImg10.filter(function (d, i) { return i === img10random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectBeginDate\")\n\t .text(function(d) { return d.objectBeginDate })\n\t .exit();\n\n\tvar displayArtist10 = d3.select(\".overlay10\").selectAll(\"#overlay10\")\n\t .data(repImg10.filter(function (d, i) { return i === img10random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"artistDisplayName\")\n\t .text(function(d) { return \"Artist: \" + d.artistDisplayName.substring(0,20).replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayCulture10 = d3.select(\".overlay10\").selectAll(\"#overlay10\")\n\t .data(repImg10.filter(function (d, i) { return i === img10random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"where\")\n\t .text(function(d) { return \"Culture: \" + d.Culture.replace(/[^ -~]+/g, \"\") })\n\t .exit();\n\n\tvar displayMedium= d3.select(\".overlay10\").selectAll(\"#overlay10\")\n .data(repImg10.filter(function (d, i) { return i === img10random;}))\n .enter()\n .append(\"text\")\n .attr(\"id\", \"objectMedium\")\n .text(function(d) {return \"Medium: \" + d.Medium.replace(/[^ -~]+/g, \"\")})\n .exit();\n\n\tvar displayObject10= d3.select(\".overlay10\").selectAll(\"#overlay10\")\n\t .data(repImg10.filter(function (d, i) { return i === img10random;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"objectName\")\n\t .text(function(d) {return \"Family: \" + d.objectName.replace(/[^ -~]+/g, \"\") +\"s (of \" + formatThousands(objectNames[9].value) + \")\"})\n\t .exit();\n\n\tvar displayLink= d3.select(\".overlay10\").selectAll(\"#overlay10\")\n\t .data(repImg10.filter(function (d, i) { return i === img10random;}))\n\t .enter()\n\t .append(\"a\")\n\t .attr(\"id\", \"link\")\n\t .attr(\"href\",function(d) {return d.linkResolution})\n\t .attr(\"target\",\"_blank\")\n\t .text(\"View\")\n\t .exit();\n\n\n\t // Total Count\n\n\td3.select(\".container-micro\").selectAll(\"text\").remove();\n\n\tvar displayTotal = d3.select(\".container-micro\").selectAll(\"#total\")\n\t\t\t.data(repImg3.filter(function (d, i) { return i === 0;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"class\", \"section-header\")\n\t .attr(\"id\", \"summary\")\n\t .text(formatThousands(totalRows) + \" Items\")\n\t .exit();\n\n\t// Department Filter\n\n\tvar departments = d3.nest()\n \t\t.key(function(d) { return d.Department; })\n\t \t.rollup(function(v) { return v.length; })\n\t \t.entries(dataset)\n\t \t.sort(function(a,b) {return d3.descending(a.value,b.value);});\n\t// console.log(departments);\n\n\tvar top1 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.Department == departments[0].key });\n\t// console.log(repImg1);\n\tvar top2 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.Department== departments[1].key });\n\t// console.log(repImg2);\n\tvar top3 = dataset.filter(function(d){return d.isPublic === \"True\" & d.URL != \"NA\" & d.Department == departments[2].key });\n\t// console.log(repImg3);\n\n\td3.select(\".departments1\").selectAll(\"img\").remove();\n\n\tvar top1random = Math.floor((Math.random() * top1.length) + 0);\n\tvar top2random = Math.floor((Math.random() * top2.length) + 0);\n\tvar top3random = Math.floor((Math.random() * top3.length) + 0);\n\n\tvar displayTop1= d3.select(\".departments1\").selectAll(\"#top1\")\n\t\t\t.data(top1.filter(function (d, i) { return i === top1random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"height\",\"150%\")\n\t .style(\"overflow-x\",\"hidden\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t \t.style(\"background-position\",\"center center\")\n\t // .style(\"background-size\",\"30%\")\n\t .style(\"position\",\"relative\")\n\t .exit();\n\n\td3.select(\".departments2\").selectAll(\"img\").remove();\n\n\tvar displayTop2= d3.select(\".departments2\").selectAll(\"#top2\")\n\t\t\t.data(top2.filter(function (d, i) { return i === top2random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"height\",\"150%\")\n\t .style(\"overflow-x\",\"hidden\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t \t.style(\"background-position\",\"center center\")\n\t // .style(\"background-size\",\"30%\")\n\t .style(\"position\",\"relative\")\n\t .exit();\n\n\td3.select(\".departments3\").selectAll(\"img\").remove();\n\n\tvar displayTop3= d3.select(\".departments3\").selectAll(\"#top3\")\n\t\t\t.data(top3.filter(function (d, i) { return i === top3random;}))\n\t .enter()\n\t .append('img')\n\t .style(\"height\",\"150%\")\n\t .style(\"overflow-x\",\"hidden\")\n\t .attr(\"src\",function(d) {return d.URL;})\n\t \t.style(\"background-position\",\"center center\")\n\t // .style(\"background-size\",\"30%\")\n\t .style(\"position\",\"relative\")\n\t .exit();\n\n\td3.select(\".info1\").selectAll(\"text\").remove();\n\n\t\n\td3.select(\".medium\").selectAll(\"text\").remove();\n\n\tvar choice1 = d3.select(\".medium\").selectAll(\"#choice1\")\n\t\t\t.data(departments.filter(function (d, i) { return i === 0;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"choice1\")\n\t .text(name)\n\t .exit();\n\n\td3.select(\".info1\").selectAll(\"text\").remove();\n\n\tvar dept1_percent = d3.select(\".info1\").selectAll(\"#dept1-percent\")\n\t\t\t.data(departments.filter(function (d, i) { return i === 0;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"dept1-percent\")\n\t .text(function(d) {return format(d.value/totalRows); })\n\t .exit();\n\n\td3.select(\".info2\").selectAll(\"text\").remove();\n\n\tvar info_dept1 = d3.select(\".info2\").selectAll(\"#dept1-name\")\n\t\t \t.data(departments.filter(function (d, i) { return i === 0;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"dept1-name\")\n\t .text(function(d) { return d.key })\n\t .exit();\n\n\td3.select(\".info3\").selectAll(\"text\").remove();\n\n\tvar dept2_percent = d3.select(\".info3\").selectAll(\"#dept2-percent\")\n\t\t\t.data(departments.filter(function (d, i) { return i === 1;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"dept2-percent\")\n\t .text(function(d) {return format(d.value/totalRows); })\n\t .exit();\n\n\td3.select(\".info4\").selectAll(\"text\").remove();\n\n\tvar info_dept2 = d3.select(\".info4\").selectAll(\"#dept2-name\")\n\t\t \t.data(departments.filter(function (d, i) { return i === 1;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"dept2-name\")\n\t .text(function(d) { return d.key })\n\t .exit();\n\n\td3.select(\".info5\").selectAll(\"text\").remove();\n\n\tvar dept2_percent = d3.select(\".info5\").selectAll(\"#dept3-percent\")\n\t\t\t.data(departments.filter(function (d, i) { return i === 2;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"dept3-percent\")\n\t .text(function(d) {return format(d.value/totalRows); })\n\t .exit();\n\n\td3.select(\".info6\").selectAll(\"text\").remove();\n\n\tvar info_dept2 = d3.select(\".info6\").selectAll(\"#dept3-name\")\n\t\t \t.data(departments.filter(function (d, i) { return i === 2;}))\n\t .enter()\n\t .append(\"text\")\n\t .attr(\"id\", \"dept3-name\")\n\t .text(function(d) { return d.key })\n\t .exit();\n }", "function graph(data){\n\n //formatting data\n data.forEach(function(d) {\n d.airline = d.airline\n d.dataX = +d.incidents_85_99\n d.dataSize = +d.fatal_accidents_85_99\n d.dataY = +d.fatalities_85_99\n d.dataXNew = +d.incidents_00_14\n d.datayNew = +d.fatalities_00_14\n d.dataSizeNew = +d.fatal_accidents_00_14\n console.log(typeof(d.country))\n\n\n });\n\n\n\n // create function for rescaling data to to fit x axis\n x = d3.scale.linear()\n .domain([0, d3.max(data, function(d) { return d.dataX; })])\n .range([ 0, width ]);\n\n // create function for rescaling data to to fit y axis\n y = d3.scale.linear()\n .range([height, 0])\n .domain([0, d3.max(data, function(d) { return d.dataY; })]).nice();\n\n // initiate and place xaxis \n var xAxis = d3.svg.axis()\n .scale(x)\n .orient(\"bottom\")\n\n // initiate and place xaxis \n var yAxis = d3.svg.axis()\n .scale(y)\n .orient(\"left\")\n .tickSize(-width)\n\n // initiate info window\n var tip = d3.tip()\n .attr('class', 'd3-tip')\n .offset([-10, 0])\n .html(function(d) {\n return \"<span style='color:white'>\" + d.airline + \"</span>\"\n })\n\n // initiate color sheme\n var color = d3.scale.category10(data.length);\n\n\n // make graph canvas\n var chart = d3.select(\".chart\")\n .attr(\"width\", width + margin.left + margin.right)\n .attr(\"height\", height + margin.top + margin.bottom)\n .append(\"g\")\n .attr(\"transform\", \"translate(\" + margin.left + \",\" + margin.top + \")\")\n .call(tip)\n\n\n // draw name x as \n chart.append(\"text\")\n .attr(\"class\", \"xtext\")\n .attr(\"x\", width/2 - margin.left)\n .attr(\"y\", - 30)\n .attr(\"text-anchor\", \"middle\")\n .text(\"Airline problems grouped by company and continent\")\n\n\n\n // draw x axis\n chart.append(\"g\")\n .attr(\"class\", \"x axis\")\n .attr(\"transform\", \"translate(0,\" + height + \")\")\n .call(xAxis)\n .append(\"text\")\n .attr(\"y\", 30)\n .attr(\"x\", width)\n .style(\"text-anchor\", \"end\")\n .text(\"Incidents\")\n .selectAll(\"text\")\n .style(\"text-anchor\", \"end\")\n .attr(\"dy\", \".8em\")\n .attr(\"x\", 5)\n\n\n\n // draw y axis\n chart.append(\"g\")\n .attr(\"class\", \"y axis\")\n .call(yAxis)\n .append(\"text\")\n .attr(\"transform\", \"rotate(-90)\")\n .attr(\"y\", -30)\n .attr(\"dy\", \".71em\")\n .style(\"text-anchor\", \"end\")\n .text(\"Fatalities\")\n\n \n // draw old data dots\n chart.selectAll(\"circle\")\n .data(data)\n .enter().append(\"svg:circle\")\n .attr(\"class\", function (d,i) { return \"dot\" + i} )\n .attr(\"id\", function (d,i) { return \"oldPointdot\" + i} )\n .attr(\"cx\", function (d,i) { return x(d.dataX); } )\n .attr(\"cy\", function (d) { return y(d.dataY); } )\n .attr(\"r\", function (d) { return 7 + (d.dataSize * 4); })\n .style(\"opacity\", 0.6)\n .style(\"fill\", function(d) { return color(d.country); })\n .on('mouseover', function(d){\n tip.show(d);\n d3.selectAll(\"circle\")\n .transition()\n .style(\"opacity\", 0.15)\n .style(\"fill\", \"gray\")\n d3.selectAll('.' + d3.select(this).attr('class'))\n .attr(\"r\", function (d) { return (10 + d.dataSize * 4); })\n .style(\"fill\", function(d) { return color(d.country); })\n .transition()\n .style(\"opacity\", 0.8)\n d3.select('#' + \"newPoint\" + d3.select(this).attr('class'))\n .attr(\"r\", function (d) { return (10 + d.dataSizeNew * 4); })\n })\n\n .on('mouseout', function(d){\n tip.hide(d)\n d3.selectAll(\"circle\")\n .style(\"opacity\", 0.6)\n .style(\"fill\", function(d) { return color(d.country); })\n d3.selectAll('.' + d3.select(this).attr('class'))\n .attr(\"r\", function (d) { return 7 + (d.dataSize * 4); })\n d3.select('#' + \"newPoint\" + d3.select(this).attr('class'))\n .attr(\"r\", function (d) { return 7 + (d.dataSizeNew * 4); })\n })\n\n\n // draw new data dots\n chart.selectAll(\"new\")\n .data(data)\n .enter().append(\"svg:circle\")\n .attr(\"class\", function (d,i) { console.log( \"dot\" + i);return \"dot\" + i} )\n .attr(\"id\", function (d,i) { return \"newPointdot\" + i} )\n .attr(\"cx\", function (d,i) { return x(d.dataXNew); } )\n .attr(\"cy\", function (d) { return y(d.datayNew); } )\n .attr(\"r\", function (d) { return 7 + (d.dataSizeNew * 4); })\n .style(\"opacity\", 0.6)\n .style(\"fill\", function(d) { return color(d.country); })\n .style(\"stroke-width\", \"2px\")\n .style(\"stroke\", \"black\")\n .on('mouseover', function(d){\n tip.show(d);\n chart.selectAll(\"circle\")\n .style(\"opacity\", 0.15)\n .style(\"fill\", \"gray\")\n d3.selectAll('.' + d3.select(this).attr('class'))\n .style(\"fill\", function(d) { return color(d.country); })\n .style(\"opacity\", 0.8)\n .attr(\"r\", function (d) { return (10 + d.dataSizeNew * 4); })\n d3.select('#' + \"oldPoint\" + d3.select(this).attr('class'))\n .attr(\"r\", function (d) { return (10 + d.dataSize * 4); })\n\n })\n\n .on('mouseout', function(d){\n tip.hide(d)\n chart.selectAll(\"circle\")\n .style(\"opacity\", 0.6)\n .style(\"fill\", function(d) { return color(d.country); })\n d3.selectAll('.' + d3.select(this).attr('class'))\n .attr(\"r\", function (d) { return 7 + (d.dataSizeNew * 4); })\n d3.select('#' + \"oldPoint\" + d3.select(this).attr('class'))\n .attr(\"r\", function (d) { return 7 + (d.dataSize * 4); })\n })\n\n // start legend \n var legend = chart.selectAll(\".legend\")\n .data(color.domain())\n .enter().append(\"g\")\n .attr(\"class\", \"legend\")\n .attr(\"transform\", function(d, i) { return \"translate(0,\" + i * 22 + \")\"; });\n\n\n // draw legend colored rectangles\n legend.append(\"rect\")\n .attr(\"x\", width - 80)\n .attr(\"width\", 100)\n .attr(\"height\", 18)\n .style(\"fill\", color)\n .style(\"opacity\", .8)\n\n\n // append text\n legend.append(\"text\")\n .attr(\"x\", width + 20)\n .attr(\"y\", 9)\n .attr(\"dy\", \".35em\")\n .style(\"text-anchor\", \"end\")\n .style(\"font\", \"15px sans-serif\")\n .text(function(d,i) { console.log(contenets[i]); return contenets[i]})\n\n // start circle size legend \n var cir = chart.append(\"g\")\n\n // max diameter\n cir.append(\"rect\")\n .attr(\"x\", width - 80)\n .attr(\"y\", 160)\n .attr(\"width\", (7 + (d3.max(data, function(d) { return d.dataSize; }) * 4) * 2))\n .attr(\"height\", 5)\n .style(\"fill\", \"black\")\n cir.append(\"text\")\n .attr(\"class\", \".axis\")\n .text(\"maximal diameter = \" + d3.max(data, function(d) { return d.dataSize; }))\n .style(\"font\", \"10px sans-serif\")\n .attr(\"x\", width - 80)\n .attr(\"y\", 180)\n\n // title legenda pont diameter\n cir.append(\"text\")\n .text(\"size of circle equales number of fatal accidents\")\n .style(\"font\", \"10px sans-serif\")\n .attr(\"x\", width - 150)\n .attr(\"y\", 150)\n\n // min diameter\n cir.append(\"rect\")\n .attr(\"x\", width - 80)\n .attr(\"y\", 200)\n .attr(\"width\", (7 + (d3.min(data, function(d) { return d.dataSize; }) * 4) * 2))\n .attr(\"height\", 5)\n .style(\"fill\", \"black\")\n cir.append(\"text\")\n .text(\"minimal diameter = \" + d3.min(data, function(d) { return d.dataSize; }))\n .style(\"font\", \"10px sans-serif\")\n .attr(\"x\", width - 80)\n .attr(\"y\", 220)\n\n // circle border explenation\n chart.append(\"text\")\n .attr(\"class\", \".axis\")\n .attr(\"x\", width/2 - margin.left)\n .attr(\"y\", height + 30)\n .attr(\"text-anchor\", \"middle\")\n .text(\"data from 1985 til 1999 circles without border --- data form 2000 til 2014 with border\")\n\n}", "bucket(d) { return d; }", "function d3_svg_lineX(d) {\n return d[0];\n}", "function d3_svg_lineX(d) {\n return d[0];\n}", "function d3_svg_lineX(d) {\n return d[0];\n}", "function pdoByDays(element) {\n \n // Title\n var elemTitle = d3.select(element)\n .append(\"p\")\n .attr(\"class\", \"title\")\n .style({\n \"font-weight\": \"bold\",\n \"text-align\": \"center\", \n \"margin-bottom\": \"20px\"\n })\n .text(\"fig. 2 - PDO après N journées par équipe en L1\");\n \n // Datas\n d3.tsv(\"/data/pdo_by_days_2014.tsv\", function(error, data) {\n // Grouping by team name\n data = d3.nest()\n .key(function(d) { return d.short_name; })\n .entries(data)\n .map(function(d) { \n return {\n 'name': d.key, \n 'values': d.values.map(function(d, i, a) {\n return d.pdo;\n })\n }; \n });\n\n var margin = {top: 20, right: 80, bottom: 30, left: 50},\n width = 800 - margin.left - margin.right,\n height = 500 - margin.top - margin.bottom;\n\n var x = d3.scale.linear()\n .domain([1, d3.max(data, function(d) { return d.values.length; })])\n .range([0, width]);\n\n var y = d3.scale.linear()\n .domain([700, 1400])\n .range([height, 0]);\n\n var color = d3.scale.category20()\n .domain(d3.keys(data[0]).filter(function(key) { return key === \"name\"; }));\n\n var xAxis = d3.svg.axis()\n .scale(x)\n .tickFormat(d3.format('d'))\n .orient(\"bottom\");\n\n var yAxis = d3.svg.axis()\n .scale(y)\n .orient(\"left\");\n\n var line = d3.svg.line()\n .interpolate(\"basis\")\n .x(function(d, i) { return x(i+1); })\n .y(function(d, i) { return y(d); });\n\n // Graph\n var svg = d3.select(element).append(\"svg\")\n .attr(\"width\", width + margin.left + margin.right)\n .attr(\"height\", height + margin.top + margin.bottom)\n .append(\"g\")\n .attr(\"transform\", \"translate(\" + margin.left + \",\" + margin.top + \")\");\n\n svg.append(\"g\")\n .attr(\"class\", \"x axis\")\n .attr(\"transform\", \"translate(0,\" + y(700) + \")\")\n .call(xAxis)\n .append(\"text\")\n .attr(\"class\", \"label\")\n .attr(\"x\", width)\n .attr(\"y\", -2)\n .style(\"text-anchor\", \"end\")\n .text(\"Journée\");\n\n svg.append(\"g\")\n .attr(\"class\", \"y axis\")\n .call(yAxis)\n .append(\"text\")\n .attr(\"class\", \"label\")\n .attr(\"transform\", \"rotate(-90)\")\n .attr(\"x\", -30)\n .attr(\"y\", -15)\n .attr(\"dy\", \".71em\")\n .text(\"PDO\");\n\n svg.selectAll(\".y line\")\n .attr('class', 'grid')\n .attr(\"x2\", width);\n\n svg.selectAll(\".x line\")\n .attr('class', 'grid')\n .attr(\"y2\", height)\n .attr(\"transform\", \"translate(0,\" + (-y(700)) + \")\");\n\n svg.selectAll(\".x text\")\n .attr(\"transform\", \"translate(-5, -4)\"); \n\n var team = svg.selectAll(\".team\")\n .data(data)\n .enter().append(\"g\")\n .attr(\"class\", \"team\");\n\n var pathes = team.append(\"path\")\n .attr(\"class\", \"line\")\n .attr(\"d\", function(d) { return line(d.values); })\n .style(\"stroke\", function(d) { return color(d.name); });\n \n // Team list\n var div = d3.select(element).append(\"div\")\n .append(\"ul\");\n \n var teams = div.selectAll(\"li\")\n .data(data)\n .enter()\n .append(\"li\")\n .style({ \"border-left\": function(d) { return \"4px solid \"+color(d.name); }, \n \"padding\": \"0 8px 0 4px\", \n \"color\": \"steelblue\", \n \"cursor\": \"default\"\n })\n .html(function(d) { return d.name; })\n .on(\"mouseover\", function(d) {\n pathes.filter(function(t) { return d.name == t.name }).style(\"stroke-width\", \"4.5px\");\n pathes.filter(function(t) { return d.name != t.name }).style(\"stroke-opacity\", \"0.3\");\n d3.select(this).style({ \"background-color\": function(d) { return color(d.name); } });\n d3.select(this).style({ \"color\": \"#FFF\" });\n })\n .on(\"mouseout\", function(d) {\n pathes.filter(function(t) { return d.name == t.name }).style(\"stroke-width\", \"1.5px\");\n pathes.filter(function(t) { return d.name != t.name }).style(\"stroke-opacity\", \"1\");\n d3.select(this).style({ \"background-color\": \"transparent\" });\n d3.select(this).style({ \"color\": \"#205caa\" });\n })\n .on(\"click\", function(d) {\n return false;\n });\n \n // Pathes on mouse over\n pathes\n .on(\"mouseover\", function(d) {\n d3.select(this).style(\"stroke-width\", \"4.5px\");\n pathes.filter(function(t) { return d.name != t.name }).style(\"stroke-opacity\", \"0.3\");\n teams.filter(function(t) { return d.name == t.name }).style({ \"background-color\": function(d) { return color(d.name); } });\n teams.filter(function(t) { return d.name == t.name }).style({ \"color\": \"#FFF\" });\n })\n .on(\"mouseout\", function(d) {\n d3.select(this).style(\"stroke-width\", \"1.5px\");\n pathes.filter(function(t) { return d.name != t.name }).style(\"stroke-opacity\", \"1\");\n teams.filter(function(t) { return d.name == t.name }).style({ \"background-color\": \"transparent\" });\n teams.filter(function(t) { return d.name == t.name }).style({ \"color\": \"#205caa\" });\n });\n });\n}", "function uc1(data, binSize, range, mutationTypes, stacked, showTotal, normalize, width, height) {\n \n console.log(\"FULL RANGE\",range);\n\n console.log(\"width: \"+width)\n console.log(\"height: \"+height)\n\n var g = {} // here we put all useful objects describing our plot\n\n // Set the dimensions and margins of the plot\n g.margin = {top: 10, left: 100}; //bottom\n g.width = width - 2*g.margin.left;\n g.height = height - 2*g.margin.top - 50\n\n console.log(\"deleting\");\n\n d3.select(\"#uc1 svg\").html(\"\");\n\n\n g.svg = d3.select(\"#uc1 svg\") \n .attr(\"width\",width)\n .attr(\"height\",height)\n .append(\"g\")\n .attr(\"transform\",\"translate(\" + g.margin.left + \",\" + g.margin.top + \")\");\n\n // Defines linear functions for X and Y axis initialization\n g.xAxisScale = d3.scaleLinear().domain([range.min, range.max]).range([0, g.width]);\n g.fullXAxisScale = d3.scaleLinear().domain([range.minFull, range.maxFull]).range([0, g.width]);\n g.yAxisScale = d3.scaleLinear().range([g.height, 0]); // domain depends on the bins\n\n // Append to groups, one of each axis. xAxis must be moved down by the height of the graph\n g.xAxis = g.svg.append(\"g\").attr(\"transform\", \"translate(0,\" + g.height + \")\").style(\"font-size\", \"1em\")\n g.yAxis = g.svg.append(\"g\").style(\"font-size\", \"1em\")\n\n // xAxis (yAxis) is a Selection of one element\n\n // xAxis.call(f) means that we call f on the selection xAxis\n // d3.axisBottom(xAxisScale) : creates the human-readable reference marks with the provided scale xAxisScale\n g.xAxis.call(d3.axisBottom(g.xAxisScale));\n\n // Label for the x axis\n g.svg.append(\"text\") \n .attr(\"transform\",\n \"translate(\" + (g.width/2) + \" ,\" + \n (g.height + g.margin.top + 40) + \")\")\n .style(\"text-anchor\", \"middle\")\n .style(\"font-size\", \"1em\")\n .text(\"distance (bp)\");\n\n // Label for the y axis\n g.svg.append(\"text\")\n .attr(\"id\",\"ylabel\")\n .attr(\"transform\", \"rotate(-90)\")\n .attr(\"y\", -70)\n .attr(\"x\",0 - (g.height / 2))\n .attr(\"dy\", \"1em\")\n .style(\"text-anchor\", \"middle\")\n .style(\"font-size\", \"1em\")\n .text(normalize?\"number of mutations per bin / mean\":\"number of mutations per bin\"); \n\n\n\n // Build the histogram with the provided number of bins\n uc1_update(data, g, binSize, range.minY, mutationTypes, stacked, showTotal, normalize);\n\n // return a reference to the graph\n console.log(\"returning g:\")\n console.log(g)\n return g;\n}", "function draw_graphs(day_data) {\n var margin = {top: 20, right: 20, bottom: 30, left: 50},\n width = 600 - margin.left - margin.right,\n height = 150 - margin.top - margin.bottom;\n \n // Define format of the text value on top of the moving circle\n var formatValue = d3.format(\",.1f\");\n\n // Define format for time\n var parseTime = d3.timeParse(\"%I:%M:%S\");\n \n // Create a bisect to handle the position of the mouse in relation with the data on mousemove\n var bisect = d3.bisector(function(d){ return d.distance; }).left; // NEW STAFF\n \n // variable to hold our yscales\n var yarray = ['elevation','speed','heartrate'];\n \n // Intitialize new nested dataset\n var new_data_nest = [];\n\n // Create the nested dataset\n for ( var ix=0; ix<3; ix++) {\n // Create helper array to build the nested dataset \n var tmp = []; \n\n for ( var i=0; i<day_data['elevation'].length; i++) {\n tmp.push(\n {distance : day_data['distance'][i],\n time : day_data['time_form'][i],\n value : day_data[yarray[ix]][i],\n lat : day_data['path'][i][0],\n long : day_data['path'][i][1],\n symbol : yarray[ix],\n });\n }\n new_data_nest.push({\n key : yarray[ix],\n values:tmp\n });\n }\n // Add the SI symbol in the nested dataset for each metric\n for ( var ix=0; ix<3; ix++) {\n if (new_data_nest[ix].key=='elevation'){\n new_data_nest[ix]['elev_gain'] = day_data['elev_gain'] // adds elevation gain for elevation\n for ( var i=0; i<new_data_nest[0].values.length; i++) {\n new_data_nest[ix].values[i]['si'] = 'm'\n }\n }\n else if (new_data_nest[ix].key=='speed'){\n new_data_nest[ix]['avg_speed'] = day_data['avg_speed'] // adds avg speed for speed\n new_data_nest[ix]['max_speed'] = day_data['max_speed'] // adds max speed for speed\n for ( var i=0; i<new_data_nest[0].values.length; i++) {\n new_data_nest[ix].values[i]['si'] = 'km/h'\n }\n }\n else if (new_data_nest[ix].key=='heartrate'){\n new_data_nest[ix]['avg_active_HR'] = day_data['avg_active_HR'] // adds avg active HR for heartrate\n for ( var i=0; i<new_data_nest[0].values.length; i++) {\n new_data_nest[ix].values[i]['si'] = 'bpm'\n }\n }\n }\n \n // disctionary to hold our yscales\n var ys = {};\n \n // Remove previous elevation graph if loaded\n d3.select(\"#graphs\").selectAll('*').remove();\n\n // Initialize the main are to put all graphs in\n var area = d3.area()\n .x(function(d) { return xScale(d.distance);})\n .y0(height)\n .y1(function(d,i) {\n return ys[d.symbol](d.value); //<-- call the y function matched to our symbol\n //ys[yarray[i]](d.yarray);\n });\n // Initialize the line for each graph\n var line = d3.line()\n .x(function(d) { return xScale(d.distance); })\n .y(function(d,i) {\n return ys[d.symbol](d.value); //<-- call the y scale function matched to our symbol\n //ys[d.symbol](d.price);\n });\n \n // Build the x scale\n var xScale = d3.scaleLinear()\n .rangeRound([0, width]);\n \n // Build the x axis\n var xAxis = d3.axisBottom()\n .scale(xScale)\n .tickFormat(d3.format(\".2s\"));\n\n // Compute the maximum y-value per graph, needed for the y-domain.\n new_data_nest.forEach(function(s) {\n // Find the max value\n var maxValue = d3.max(s.values, function(d) { return d.value; });\n // Append the yscale of each line in the ys\n ys[s.key] = d3.scaleLinear() //<-- create a scale for each \"symbol\" (ie Sensor 1, etc...)\n .range([height, 0])\n .domain([0, maxValue]);\n });\n\n // Compute the minimum and maximum distance across y-elements.\n // We assume values are sorted\n xScale.domain([\n d3.min(new_data_nest, function(s) {\n console.log(s.values[0].distance);\n return s.values[0].distance;\n }),\n d3.max(new_data_nest, function(s) {\n console.log(s.values[s.values.length - 1].distance);\n return s.values[s.values.length - 1].distance;\n })\n ]);\n\n // Add an SVG element for each symbol, with the desired dimensions and margin.\n var svg1 = d3.select(\"#graphs\").selectAll(\"svg\")\n .data(new_data_nest) \n .enter().append(\"svg\")\n .attr(\"width\", width + margin.left + margin.right)\n .attr(\"height\", height + margin.top + margin.bottom);\n \n // Create the rect for the mouse to be tracked \n svg1.append(\"defs\").append(\"svg:clipPath\")\n .attr(\"id\", \"clip\")\n .append(\"svg:rect\")\n .attr(\"id\", \"clip-rect\")\n .attr(\"x\", \"-40\")\n .attr(\"y\", \"-10\")\n .attr(\"width\", width + margin.left + margin.right)\n .attr(\"height\", height +margin.top-10);\n\n // Add all svg1 in the main svg\n var svg = svg1.append(\"g\")\n .attr(\"transform\", \"translate(\" + margin.left + \",\" + margin.top + \")\");\n\n // Add the area path elements. Note: the y-domain is set per element.\n svg.append(\"path\")\n .attr(\"class\", \"area\")\n .attr(\"d\", area);\n\n // Add the line path elements. Note: the y-domain is set per element.\n svg.append(\"path\")\n .attr(\"class\", \"line\")\n .attr(\"d\", function(d) {\n return line(d.values);\n });\n\n // Add the area path elements. Note: the y-domain is set per element.\n svg.append(\"path\")\n .attr(\"class\", \"area\")\n .attr(\"d\", area);\n\n // Title for the y-axis\n svg.append(\"text\")\n .attr(\"text-anchor\", \"middle\") // this makes it easy to centre the text as the transform is applied to the anchor\n .attr(\"transform\", \"translate(\"+ (-margin.left/1.6) +\",\"+(height/2)+\")rotate(-90)\") // text is drawn off the screen top left, move down and out and rotate\n .text(function(d) {\n return capitalizeFirstLetter(d.key);\n }); \n\n // Averages and more on the background of the graphs\n svg.append(\"text\")\n .attr(\"text-anchor\", \"middle\") \n .attr(\"transform\", \"translate(\"+ (margin.left*5) +\",\"+(height/1.2)+\")\") \n .text(function(d) {\n if (d.key == 'elevation'){\n return 'Elevation gain : ' + formatValue(d.elev_gain);\n }\n else if (d.key == 'speed'){\n return 'Avg. speed : ' + formatValue(d.avg_speed) + ' | Max speed : ' + formatValue(d.max_speed);\n }\n else if (d.key == 'heartrate'){\n return 'Avg. HR: ' + formatValue(d.avg_active_HR);\n }\n })\n .style('opacity', 0.5); \n\n // The x-axis\n svg.append('g') // create a <g> element\n .attr('class', 'x axis') // specify classes\n .attr(\"transform\", \"translate(0,\" + height + \")\")\n .call(xAxis); // let the axis do its thing\n\n // build 4 y axis\n var axisGs = svg.append(\"g\"); //<-- create a collection of axisGs\n \n // Build the structure\n axisGs.attr(\"class\", \"y axis\")\n .append(\"text\")\n .attr(\"transform\", \"rotate(-90)\")\n .attr(\"y\", 6)\n .attr(\"dy\", \".71em\")\n .style(\"text-anchor\", \"end\")\n .text(function(d) {\n return d.values[d.values.length - 1].value;\n });\n // For each axisG create an axis with it's scale\n axisGs.each(function(d, i) {\n var self = d3.select(this);\n self.call(\n d3.axisLeft()\n .scale(ys[d.key])\n .ticks(4)\n );\n });\n // Place each graph one after the other\n svg = svg.append(\"g\").attr(\"clip-path\", \"url(#clip)\");\n\n // Create a class for the mouse-move event\n var focus = svg.append(\"g\")\n .attr(\"class\", \"focus\")\n .style(\"display\", \"none\");\n \n // Add the circle\n focus.append(\"circle\")\n .style(\"stroke\", \"#47885e\")\n .style(\"fill\", \"#fef6cd\")\n .style(\"stroke-width\", \"1.5px\")\n .attr(\"r\", 4.5);\n\n // Add text on top of moving circle\n focus.append(\"text\")\n .attr(\"x\", 0)\n .attr(\"dy\", \"-.90em\")\n .style(\"font-size\", \"12px\")\n .style(\"fill\", \"grey\")\n .style(\"text-anchor\", \"middle\");\n\n // Create the area where the mouse will be tracked\n svg.append(\"rect\")\n .attr(\"class\", \"overlay\")\n .attr(\"width\", width)\n .attr(\"height\", height)\n .on(\"mouseover\", function() {\n focus.style(\"display\", null);\n })\n // .on(\"mouseout\", function() {\n // focus.style(\"display\", \"none\");\n // })\n .on(\"mousemove\", mousemove);\n\n // append the vertical line for each \n focus.append(\"line\")\n .attr('id', 'focusLineX')\n .attr(\"class\", \"focusLine\");\n\n function mousemove() {\n var xnew, posit, coordinates;\n coordinates = d3.mouse(this);\n xnew = xScale.invert( coordinates[0] );\n \n // Select focus class of all linegraphs\n var focus = svg.selectAll(\".focus\");\n\n /////////////////////////////////////////////////////////// Create the moving marker on map\n // Select map\n map = window.map;\n\n // Remove previous marker on move\n $(\".marker\").remove();\n \n // Create a new layer on map for the marker\n var svg2 = d3.select(\"#map\").select(\"svg\"),\n g2 = svg2.append(\"g\").attr(\"class\", \"marker\");\n\n // Find the position of the array according to mouse move\n posit1 = bisect(new_data_nest[0].values, xnew, 0, new_data_nest[0].values.length);\n \n var tmplat = new_data_nest[0].values[posit1]['lat']\n var tmplon = new_data_nest[0].values[posit1]['long']\n var tmptime = new_data_nest[0].values[posit1]['time']\n \n LatLng = new L.LatLng(tmplat,tmplon);\n\n // Sava coords into a variable object\n var coords2 = [{tmplat,tmplon,LatLng,tmptime}]\n \n // This is the market point\n var feature = g2.selectAll(\"path\")\n .data(coords2)\n .enter().append(\"circle\")\n .style(\"stroke\", \"#47885e\")\n .style(\"fill\", \"#fef6cd\")\n .style(\"stroke-width\", \"1.5px\")\n .attr(\"r\", 4.5);\n\n // The text next to the marker circle indicating the biking hours spent\n var circletext = g2.selectAll(\"text\")\n .data(coords2)\n .enter()\n .append(\"text\")\n .attr(\"class\", \"locnames\")\n .text( tmptime + \" cycling time\")\n .attr(\"y\", -10)\n .style(\"font-size\", \"12px\")\n .style(\"fill\", \"grey\");\n \n // Up until here it is correct\n map.on(\"viewreset\", update);\n update();\n\n // Create a function to handle the layers on zoum in and out\n function update() {\n feature.attr(\"transform\", \n function(d) { \n return \"translate(\"+ \n map.latLngToLayerPoint(d.LatLng).x +\",\"+ \n map.latLngToLayerPoint(d.LatLng).y +\")\";\n }\n )\n circletext.attr(\"transform\",\n function(d) {\n return \"translate(\"+ \n map.latLngToLayerPoint(d.LatLng).x +\",\"+ \n map.latLngToLayerPoint(d.LatLng).y +\")\";\n });\n\n } // close update\n \n //////////////////////////////////////// END Marker\n\n // Start the transform - translate function\n focus.attr(\"transform\", function(d) {\n // Define the position of the mouse\n posit = bisect(d.values, xnew, 0, d.values.length);\n \n //Define the limits of the y-vertical mouseover axis with yDomain\n var yDomain = d3.extent(d.values, function(d) {\n return d.value;\n });\n // Define the position of the y-vertical line\n focus.select('#focusLineX')\n .attr(\"x1\", 0)\n .attr(\"y1\", 0)\n .attr(\"x2\", 0)\n .attr(\"y2\", ys[d.key](yDomain[0]-height));\n\n // Activate the text on top of the moving circle\n focus.selectAll(\"text\").text(function(d) {\n return (\"\" + formatValue(d.values[posit].value) + \"\" + d.values[posit].si)\n });\n\n // adjust mouseover to use appropriate scale\n return \"translate(\" + xScale(d.values[posit].distance) + \",\" + ys[d.key](d.values[posit].value) + \")\"\n }); // End transform - translate function\n } // End mousemove\n \n \n } // End draw elevation", "function drawChart() {\n\n // create scales for axes\n let xScale = d3.scaleTime().range([0, this.width]);\n xScale.domain([new Date(2008, 0, 0), new Date(2017, 0, 0)]);\n let yScale = d3.scaleLinear().range([this.height, 0]);\n yScale.domain([-1,1]);\n\n this.x = d3.scaleLinear()\n .domain([d3.min(this.data, xMin), d3.max(this.data, xMax)])\n .range([0, this.width]);\n\n this.y = d3.scaleLinear()\n .domain([d3.min(this.data, stackMin), d3.max(this.data, stackMax)])\n .range([this.height, 0]);\n\n // create areas with mouse events: tooltip\n let that = this;\n this.svg.append('g')\n .attr('id', 'area')\n .selectAll(\"path\")\n .data(this.data)\n .enter().append(\"path\")\n .attr(\"d\", function(d) {\n return this.area(d.data)\n }.bind(this))\n .attr(\"fill\", function(d) {\n return this.colorMap[d.label];\n }.bind(this))\n .on(\"mouseover\", function(d) {\n d3.select(\"#tooltip\").classed(\"hidden\", false);\n })\n .on(\"mousemove\", function(d){\n let rect = document.getElementById('div-stream').getBoundingClientRect();\n let xPosition = d3.event.pageX - rect.x;\n let yPosition = d3.event.pageY;\n\n let date = xScale.invert(xPosition - that.margins.left);\n let index = date.getYear()+1900-2008;\n\n let tooltip = d3.select(\"#tooltip\")\n .style(\"left\", xPosition + \"px\")\n .style(\"top\", yPosition + \"px\");\n\n tooltip.select(\"#tooltip-year\")\n .text(date.getYear()+1900);\n\n let lastVal = 0;\n for (let i =0; i < 5; i++){\n tooltip.select(\"#value-q-\"+i)\n .text((100*(that.data[i].data[index][2] - lastVal)).toFixed(2)+\"%\");\n lastVal = that.data[i].data[index][2]\n }\n\n lastVal = 0;\n for (let i =0; i < 5; i++){\n tooltip.select(\"#value-a-\"+i)\n .text((-100*(that.data[i+5].data[index][2] - lastVal)).toFixed(2)+\"%\");\n lastVal = that.data[i+5].data[index][2]\n }\n })\n .on(\"mouseout\", function() {\n d3.select(\"#tooltip\").classed(\"hidden\", true);\n });\n\n // add axes\n this.svg.append(\"g\")\n .attr('class', 'axis')\n .attr(\"transform\", \"translate(0,\" + this.height/2 + \")\")\n .call(d3.axisBottom(xScale));\n\n this.svg.append(\"g\")\n .attr('class', 'axis')\n .attr(\"transform\", \"translate(0,0)\")\n .call(d3.axisLeft(yScale));\n\n // add legend\n if (this.legend){\n let legend6 = d3.select('#div-stream-legend').selectAll(\"legend\")\n .data(getLabels(that.data));\n\n let p = legend6.enter().append(\"div\")\n .attr(\"class\",\"legends\")\n .append(\"p\").attr(\"class\",\"country-name\");\n\n p.append(\"span\").attr(\"class\",\"key-dot\").style(\"background\",function(d) { return that.colorMap[d] } );\n p.insert(\"text\").text(function(d,i) { return d } );\n }\n }", "drawRect() {\n\n //Converting all the dataset objects in to integer\n for (var i = 0; i < this.dataset.length; i++) {\n this.dataset[i] = parseInt(this.dataset[i], 10);\n }\n\n //width of svg\n this.width = $(\".svgDiv\").width();\n\n //height of svg \n this.height = $(\".svgDiv\").height() / 1.5;\n\n //Small padding that will be at the start and end of the svg\n this.padding = (1.95 / 100) * this.width;\n\n //storing 'this' into 'that' so that we can use it inside a function\n var that = this;\n\n //radius of circle\n this.radius = (0.4 / 100) * this.width;\n\n //scaling the domain and range \n this.xScale = d3.scaleLinear()\n .domain([0, this.basepair])\n .range([this.padding, this.width - this.padding]);\n\n //creating x-axis\n this.x_axis = d3.axisBottom(this.xScale);\n\n //position of the x-axis in height\n this.xAxisTranslate = this.height / 2;\n\n //declare properties of svg\n this.svg = d3.select(this.element)\n .append(\"svg\")\n .attr(\"width\", this.width)\n .attr(\"height\", this.height)\n .attr(\"transform\", \"translate(0,20)\")\n .call(d3.zoom()\n .extent([[this.padding, 0], [this.width - this.padding, 0]])\n .scaleExtent([1,this.xScale.ticks()[1]]) //Max zoom will give us differece of 1 between ticls\n .translateExtent([[this.padding, 0], [this.width - this.padding, 0]])\n .on(\"zoom\", zoomed));\n\n //calling x-axiks \n this.gX = this.svg.append(\"g\")\n .attr(\"transform\", \"translate(0,\" + this.xAxisTranslate + \")\")\n .call(this.x_axis);\n\n //If the user selects one or more enzymes\n if (this.dataset.length != 0) {\n\n //Add circle to the line\n this.circ = this.svg.selectAll(\"circle\")\n .data(this.dataset)\n .enter()\n .append(\"circle\")\n .attr(\"class\", \"cir\")\n .attr(\"cx\", function (d) { return (that.xScale(d)); })\n .attr(\"cy\", this.xAxisTranslate)\n .attr(\"r\", this.radius)\n .on(\"mouseover\", function (d) {\n d3.select(this)\n .transition()\n .duration(50)\n .style(\"cursor\", \"pointer\")\n .attr(\"r\", that.radius / 0.75)\n })\n\n .on(\"mouseout\", function (d) {\n d3.select(this)\n .transition()\n .duration(50)\n .style(\"cursor\", \"normal\")\n .attr(\"r\", that.radius)\n })\n .append(\"title\")\n .text((d) => d)\n .text();\n }\n\n\n //adding line at the end of the axis\n this.line = this.svg.append(\"line\") //adding line\n .attr(\"x1\", this.width - this.padding)//start point x\n .attr(\"x2\", this.width - this.padding)//end point of x\n .attr(\"y1\", this.xAxisTranslate - 5)//start point of y\n .attr(\"y2\", this.xAxisTranslate + 5)//end point of y\n .attr(\"stroke\", \"black\")//drawing with red line\n .attr(\"stroke-width\", 5)\n .attr(\"class\", \"endLine\")\n .append(\"title\")\n .text(this.basepair); //adding width to the line\n\n //function that will be called when the zoom occurs\n function zoomed() {\n //create new scale objects based on event\n that.new_xScale = d3.event.transform.rescaleX(that.xScale);\n\n //update axes\n that.gX.call(that.x_axis.scale(that.new_xScale));\n\n //If the user selects one or more enzymes\n if (that.dataset.length != 0) {\n that.svg.selectAll(\"circle\").data(that.dataset)\n .attr('cx', function (d) { return that.new_xScale(d) })\n .attr('cy', that.xAxisTranslate);\n }\n }\n\n $('<p class = \"para\">' + this.enzyme + ' cuts ' + this.phage + ' ' + this.dataset.length + ' times</p>').appendTo(this.element);\n $(\".para\").css(\"padding-left\", this.padding);\n\n }", "function get_map_data(data_array)\n{\n //Group data by country and metric\n data_group_by_metric = d3.nest()\n .key(function(d)\n {\n return d.country;\n })\n .key(function(d)\n {\n return d.metric;\n })\n .entries(data_array)\n\n temp_arr = []; //Function's return variable, will hold country data\n temp_element = {}; //Used to fill the temp_arr\n\n //Loop over each country\n for(var k1 of data_group_by_metric.keys())\n {\n temp_element[\"name\"] = html_compatible_id(data_group_by_metric[k1].key);\n\n //Loop over each metric\n for (var k2 of data_group_by_metric[k1].values.keys() )\n {\n param = data_group_by_metric[k1].values[k2].key;\n temp_element[param] = +data_group_by_metric[k1].values[k2].values[0].value;\n }\n\n //Skip Central Africa, a huge outlier, makes all other nations seem too small on the graph\n //if(temp_element['name'] != \"Central African Republic\")\n if( temp_element.name != \"Lowincome\" &&\n temp_element.name != \"Lowermiddleincome\" &&\n temp_element.name != \"Middleincome\" &&\n temp_element.name != \"Palau\" && //Exclude too countries with extremely low emissions, they distort the colouring scale\n temp_element.name != \"MarshallIslands\" &&\n temp_element.name != \"NorthernMarianaIslands\" &&\n temp_element.name != \"TurksandCaicosIslands\" &&\n temp_element.name != \"Micronesia\" &&\n temp_element.name != \"FaroeIslands\" )\n {\n //Verify if the country has any unspecified\\missing metric for this year\n var has_empty_param = false;\n for(var i in numeric_params)\n {\n var element_param = numeric_params[i];\n if (isNaN(temp_element[element_param]) || temp_element[element_param] == 0 )\n {\n has_empty_param = true;\n break;\n }\n }\n\n //If the country has all the data full, push it into the return array\n if(has_empty_param == false)\n {\n //Add the element to the array to be returned\n temp_element['emissions_productivity'] = temp_element['gdp'] / temp_element['total_emissions'];\n temp_arr.push(temp_element);\n }//if the country has both values available this year\n\n }//if not any aggregation entity\n\n //Reset temp element for next loop. Not sure why, but it doesn't work otherwise\n //I was expecting that it would just overwrite the older value and no need\n //to clear the temp_element.\n temp_element = {};\n }\n return temp_arr;\n}", "function chart(selection) {\n selection.each(function(data) {\n\n var keys = d3.keys(data[0]);\n\n\n\n data = data.map(function(d, i) {\n return [labelValue.call(data, d, i), xValue.call(data, d, i), yValue.call(data, d, i), zValue.call(data, d, i)];\n });\n\n xScale\n .domain([0, d3.max(data, function(d) {return +d[1]; }) ]) //Not sure if xValue will work here\n .range([0, chartDimensions.width]);\n\n yScale\n .domain([0, d3.max(data, function(d) { return +d[2]; }) ])\n .range([chartDimensions.height, 0]);\n\n zScale\n .domain([0, d3.max(data, function(d) { return +d[3]; }) ])\n .range([3, chartDimensions.height / 10]); //Restrict size of bubbles, arbitrary number\n\n\n var svg = d3.select(this)\n .append(\"svg\")\n .attr(\"width\", containerDimensions.width)\n .attr(\"height\", containerDimensions.height)\n .append(\"g\")\n .attr(\"transform\", \"translate(\" + margins.left + \",\" + margins.top + \")\")\n .attr(\"id\", \"chart\");\n\n var g = svg.selectAll(\".dot\")\n .data(data)\n .enter()\n .append(\"circle\")\n .attr(\"class\", \"dot\")\n .attr(\"id\", function(d) { return d[0]; })\n .attr(\"r\", function(d) { return zScale(d[3]); })\n .attr(\"fill\", function(d) { return fill(d[0]); })\n .attr(\"cx\", function(d) { return xScale(d[1]); })\n .attr(\"cy\", function(d) { return yScale(d[2]); });\n\n\n\n svg.append(\"g\").attr(\"class\", \"x axis\").call(xAxis);\n svg.append(\"g\").attr(\"class\", \"y axis\").call(yAxis);\n\n svg.select(\".x.axis\")\n .attr(\"transform\", \"translate(0,\" + yScale.range()[0] + \")\")\n .call(xAxis);\n\n svg.select(\".y.axis\").call(yAxis);\n\n svg.select(\".x.axis\")\n .append(\"text\")\n .text(keys[1] + \", Area:\"+ keys[3]).html(\"hello\")\n .attr(\"x\", chartDimensions.width / 2)\n .attr(\"y\", margins.bottom * 0.75)\n .attr(\"text-anchor\", \"middle\");\n\n\n svg.select(\".y.axis\")\n .append(\"text\")\n .text(keys[2])\n .attr(\"transform\", \"rotate (-270, 0, 0)\")\n .attr(\"x\", chartDimensions.height / 2)\n .attr(\"y\", margins.left * 0.75)\n .attr(\"text-anchor\", \"middle\");\n\n\n var legend = svg.selectAll(\".legend\")\n .data(fill.domain())\n .enter().append(\"g\")\n .attr(\"class\", \"legend\")\n .attr(\"transform\", function(d, i) { return \"translate(0,\" + i * 20 + \")\";});\n\n legend.append(\"rect\")\n .attr(\"x\", chartDimensions.width + margins.right / 2 )\n .attr(\"width\", 18)\n .attr(\"height\", 18)\n .style(\"fill\", fill);\n\n legend.append(\"text\")\n .attr(\"x\", chartDimensions.width + (margins.right / 2) -6 )\n .attr(\"y\", 9)\n .attr(\"dy\", \".35em\")\n .style(\"text-anchor\", \"end\")\n .text(function(d) { return d; });\n\n g.on(\"mouseover.tooltip\", function(d) {\n var text = keys[0] + \": \" + d[0] + \", \"\n + keys[1] + \": \" + d[1] + \", \"\n + keys[2] + \": \" + d[2] + \", \"\n + keys[3] + \": \" + d[3];\n svg.append(\"text\")\n .text(text)\n .attr(\"class\", \"label\")\n .attr(\"x\", chartDimensions.height)\n .attr(\"y\", margins.bottom * 0.75)\n .attr(\"text-anchor\", \"middle\");\n });\n\n g.on(\"mouseout.tooltip\", function(d) {\n svg.select(\".label\").remove();\n });\n\n\n });\n\n }", "function $d3(selection) {\n return $(selection[0][0]);\n}", "function mouseOverDomain(d) {\n // if(d3.event) d3.event.stopPropagation()\n if (timer_draw) timer_draw.stop();\n mouse_hover_active = true;\n hover_type = 'domain';\n current_hover = d;\n var id = d.data.id;\n var id_num = id.replace('vocabulary_ich_', ''); //The edges\n\n edges_domain.forEach(function (l) {\n l.opacity = l.source.data.id === id ? 1 : 0;\n }); //The domain arcs\n\n domain_arcs.forEach(function (n) {\n n.opacity = n.data.id === id ? 1 : 0.1;\n }); //The ICH element arcs\n\n element_arcs.forEach(function (n) {\n n.opacity = n.data.key.includes(id_num) ? 1 : 0.1;\n }); //The dots outside the ICH element arcs\n\n chosen_domain_color = color_domain_scale(id); //The ICH circles\n\n elements.forEach(function (n) {\n n.opacity = n.domains.indexOf(id) >= 0 ? 1 : 0.1;\n }); //Number of connected ICH elements\n\n ICH_num = elements.filter(function (n) {\n return n.domains.indexOf(id) >= 0;\n }).length; //The country arcs\n\n area_arcs.forEach(function (n) {\n n.opacity = 0.5;\n n.opacity_text = 1;\n }); //Connected elements\n\n var connected_elements = elements.filter(function (n) {\n return n.opacity >= 0.99;\n }).map(function (n) {\n return n.id;\n });\n countries.forEach(function (n) {\n //Check if there is any element that coincides between the two\n var found = n.elements.some(function (r) {\n return connected_elements.indexOf(r) >= 0;\n });\n n.opacity = found ? 1 : 0.1;\n n.opacity_text = found ? country_text_opacity : 0.1;\n }); //forEach\n\n drawCanvas();\n } //function mouseOverDomain", "function createNodes() {\n\n // refresh node data\n rect = rect.data([]);\n rect.exit().remove();\n rect = rect.data(nodes);\n\n\n // add node parent\n var g = rect.enter()\n // insert group with id\n .append('svg:g')\n .attr('id', function (d) {\n return 'node_' + d.id;\n });\n\n // add node type text\n if (isInternetExplorer()) {\n\n // grey rectangle\n g.append('svg:rect')\n .attr('width', side)\n .attr('height', side)\n .attr('fill', '#aaaaaa');\n\n // node type text\n g.append('svg:text')\n .attr('fill', 'black')\n .attr('text-anchor', 'middle')\n .attr('x', side / 2)\n .attr('y', (side / 2) + 4)\n .text(function (d) {\n return d['componentType']['name'];\n });\n }\n\n g.append('svg:g')\n //.attr('transform', 'scale(.05)')\n .attr('transform', 'scale(' + size + ')')\n .html(function (d) {\n if (getTipoNo(d) != 'TT')\n return d['componentType']['svg'];\n else {\n // compute the score to know which TT to use\n var score = 0;\n for (var i = 0, n = links.length; i < n; i++) {\n var cableCount = countCablesInLinkByType(links[i]);\n if (compareNodes(links[i].target, d))\n //score += (cableCount['CATV'] * 100) + (cableCount['MATV'] * 100) + (cableCount['FO'] * 10) + cableCount['PC'];\n score += (cableCount['CC'] * 100) + (cableCount['FO'] * 10) + cableCount['PC'];\n if (compareNodes(links[i].source, d))\n //score -= (cableCount['CATV'] * 100) + (cableCount['MATV'] * 100) + (cableCount['FO'] * 10) + cableCount['PC'];\n score -= (cableCount['CC'] * 100) + (cableCount['FO'] * 10) + cableCount['PC'];\n }\n\n // select image based on connected cables\n switch (score) {\n case 0:\n return d['componentType']['svg'];\n case 100:\n return ttSvg['CC'];\n case 10:\n return ttSvg['FO'];\n case 1:\n return ttSvg['PC'];\n case 200:\n return ttSvg['CCCC'];\n case 20:\n return ttSvg['FOFO'];\n case 2:\n return ttSvg['PCPC'];\n case 110:\n return ttSvg['CCFO'];\n case 11:\n return ttSvg['FOPC'];\n case 101:\n return ttSvg['PCCC'];\n case 111:\n return ttSvg['CCFOPC'];\n default:\n return ttSvg['ERROR'];\n }\n }\n });\n\n var bgSize = 6;\n\n // node number\n var nodeSelect = g.select(\"g\");\n nodeSelect.append('svg:rect')\n .attr('x', 865)\n .attr('y', 855)\n .attr('width', 120)\n .attr('height', 120)\n .attr('fill', 'white')\n .attr('class', function (d) {\n return (getTipoNo(d) == 'TT') ? (hideNodeID) ? 'node-id hidden' : 'node-id' : 'node-id hidden';\n });\n\n\n // node number\n nodeSelect.append('svg:text')\n .attr('font-weight', 'bold')\n .attr('x', 930)\n .attr('y', 950)\n .attr(\"font-size\", 100)\n .attr('fill', '#222222')\n .attr('text-anchor', 'middle')\n .attr('class', function (d) {\n return (hideNodeID || getTipoNo(d) == 'Curva') ? 'node-id hidden' : 'node-id';\n })\n .text(function (d) {\n return numberByType(nodes.indexOf(d));\n });\n\n // interaction rect\n g.append('svg:rect')\n .attr('class', 'node')\n .attr('width', sizeSquare * size)\n .attr('height', sizeSquare * size)\n .attr('fill', 'rgba(0,0,0,0)')\n .classed('selected', function (d) {\n return compareNodes(d, selected_node);\n });\n\n // -----------------------\n // -----Tooltip Label-----\n // -----------------------\n\n // background\n //nodeSelect.append('svg:rect')\n // //.attr('width', function (d) {\n // // return (d.label != null) ? (renderedTextSize(d.label, 'sans-serif', 8).width + 10) : 0;\n // //})\n // //.attr('height', 15)\n // .attr('width', 1000)\n // .attr('height', 1000)\n // .attr('x', function (d) {\n // return (d.label != null) ? (side - ((renderedTextSize(d.label, 'sans-serif', 8).width + 10) / 2)) : 0;\n // })\n // .attr('y', -18)\n // .attr('rx', 1)\n // .attr('ry', 1)\n // .attr('fill', '#333333')\n // .attr('class', function (d) {\n // return (d.label != null) ? null : 'hidden';\n // });\n\n g.append('svg:rect')\n .attr('width', function (d) {\n return (d.label != null) ? (renderedTextSize(d.label, 'sans-serif', size * 80).width + size * 100) : 0;\n })\n .attr('height', function (d) {\n return (d.label != null) ? (renderedTextSize(d.label, 'sans-serif', size * 80).height + size * 50) : 0;\n })\n .attr('x', function (d) {\n return (d.label != null) ? (side - ((renderedTextSize(d.label, 'sans-serif', size * 80).width + size * 100) / 2)) : 0;\n })\n //.attr('y', -18)\n .attr('y', function (d) {\n return (d.label != null) ? (-renderedTextSize(d.label, 'sans-serif', size * 80).height + size * -108) : 0;\n })\n .attr('rx', 1)\n .attr('ry', 1)\n .attr('fill', '#333333')\n .attr('class', function (d) {\n return (d.label != null) ? null : 'hidden';\n });\n\n // background triangle\n //nodeSelect.append('svg:polygon')\n g.append('svg:polygon')\n .attr('points', '0,-1 10,-1 5,3')\n .attr('transform', 'translate(' + (side - 10) + ', ' + size * -30 + ')')\n .attr('fill', '#333333')\n .attr('class', function (d) {\n return (d.label != null) ? null : 'hidden';\n });\n\n // label\n //nodeSelect.append('svg:text')\n g.append('svg:text')\n //.style('font-size', '8px')\n .style('font-size', function (d) {\n return (d.label != null) ? (renderedTextSize(d.label, 'sans-serif', size * 80).height) : 0;\n })\n .style('font-weight', '100')\n .attr('x', side)\n //.attr('y', -8)\n .attr('y', function (d) {\n return (d.label != null) ? size * -80 : 0;\n })\n .attr('fill', '#ffffff')\n .attr('text-anchor', 'middle')\n .attr('class', function (d) {\n return (d.label != null) ? null : 'hidden';\n })\n .text(function (d) {\n return d.label;\n });\n\n // ----------------\n // -----Events-----\n // ----------------\n\n $('rect.node').each(function () {\n\n var nodeIndex = $(this).parent().index();\n\n $(this)\n .off()\n .on('click', function (event) {\n node_click(event, nodeIndex);\n })\n .on('mouseover', function (event) {\n node_mouseover(event, nodeIndex);\n })\n .on('mouseout', function () {\n node_mouseout();\n })\n .on('mouseup', function () {\n node_mouseup(nodeIndex);\n })\n .on('mousedown', function (event) {\n node_mousedown(event, nodeIndex);\n });\n });\n}", "highlightState(d, path, element) {\n\n // this.selected();\n let mapSVG = d3.select('#map-svg');\n let g = mapSVG.select('g');\n\n let x, y, k;\n if (d && this.centered !== d) {\n //Zoom in \n // console.log('Zoom in')\n\n var centroid = path.centroid(d);\n x = centroid[0];\n y = centroid[1];\n k = 1.5;\n this.centered = d;\n var state;\n for(var stateData of this.stateDataArray) {\n if(stateData != null && stateData.stateCode == d.id) {\n state = stateData;\n break;\n }\n }\n let mapSVG = d3.select('#map-svg');\n\n let g = mapSVG.select('g');\n\n var states = g.selectAll(\"path\");\n states.classed('highlight', false);\n d3.select(element).classed('highlight', true);\n \n this.tableClear();\n this.drawWikiBox(state);\n this.drawPrimaryChart(state);\n } else {\n //Zoom out\n // console.log('Zoom out')\n\n x = this.width / 1.1;\n y = this.height / 1.1;\n k = 1;\n this.centered = null;\n let mapSVG = d3.select('#map-svg');\n\n let g = mapSVG.select('g');\n\n var states = g.selectAll(\"path\");\n states.classed('highlight', false);\n this.clearHighlight();\n }\n g.selectAll(\"path\")\n .classed(\"active\", this.centered && function(d) { return d === this.centered; });\n g.transition()\n .duration(750)\n .attr(\"transform\", \"translate(\" + this.width / 1.1 + \",\" + this.height / 1.1 + \")scale(\" + k + \")translate(\" + -x + \",\" + -y + \")\")\n .style(\"stroke-width\", 1.5 / k + \"px\");\n \n }", "function c(e){var a,l,c,u=i.length/3,h=e.extractPoints(t),d=h.shape,p=h.holes;// check direction of vertices\nif(!1===Xr.isClockWise(d))// also check if holes are in the opposite direction\nfor(d=d.reverse(),a=0,l=p.length;a<l;a++)c=p[a],!0===Xr.isClockWise(c)&&(p[a]=c.reverse());var f=Xr.triangulateShape(d,p);// join vertices of inner and outer paths to a single array\nfor(a=0,l=p.length;a<l;a++)c=p[a],d=d.concat(c);// vertices, normals, uvs\nfor(a=0,l=d.length;a<l;a++){var m=d[a];i.push(m.x,m.y,0),r.push(0,0,1),o.push(m.x,m.y)}// incides\nfor(a=0,l=f.length;a<l;a++){var g=f[a],v=g[0]+u,y=g[1]+u,x=g[2]+u;n.push(v,y,x),s+=3}}", "function chart(selection) {\n selection.each(function(data) {\n\n var keys = d3.keys(data[0]);\n\n\n\n data = data.map(function(d, i) {\n return [labelValue.call(data, d, i), xValue.call(data, d, i), yValue.call(data, d, i)];\n });\n\n xScale\n .domain([0, d3.max(data, function(d) {return +d[1]; }) ]) //Not sure if xValue will work here\n .range([0, chartDimensions.width]);\n\n yScale\n .domain([0, d3.max(data, function(d) { return +d[2]; }) ])\n .range([chartDimensions.height, 0]);\n\n\n var svg = d3.select(this)\n .append(\"svg\")\n .attr(\"width\", containerDimensions.width)\n .attr(\"height\", containerDimensions.height)\n .append(\"g\")\n .attr(\"transform\", \"translate(\" + margins.left + \",\" + margins.top + \")\")\n .attr(\"id\", \"chart\");\n\n var g = svg.selectAll(\".dot\")\n .data(data)\n .enter()\n .append(\"circle\")\n .attr(\"class\", \"dot\")\n .attr(\"id\", function(d) { return d[0]; })\n .attr(\"r\", 3.5)\n .attr(\"fill\", function(d) { return fill(d[0]); })\n .attr(\"cx\", function(d) { return xScale(d[1]); })\n .attr(\"cy\", function(d) { return yScale(d[2]); });\n\n svg.append(\"g\").attr(\"class\", \"x axis\").call(xAxis);\n svg.append(\"g\").attr(\"class\", \"y axis\").call(yAxis);\n\n svg.select(\".x.axis\")\n .attr(\"transform\", \"translate(0,\" + yScale.range()[0] + \")\")\n .call(xAxis);\n\n svg.select(\".y.axis\").call(yAxis);\n\n svg.select(\".x.axis\")\n .append(\"text\")\n .text(keys[1])\n .attr(\"x\", chartDimensions.width / 2)\n .attr(\"y\", margins.bottom * 0.75)\n .attr(\"text-anchor\", \"middle\");\n\n\n svg.select(\".y.axis\")\n .append(\"text\")\n .text(keys[2])\n .attr(\"transform\", \"rotate (-270, 0, 0)\")\n .attr(\"x\", chartDimensions.height / 2)\n .attr(\"y\", margins.left * 0.75)\n .attr(\"text-anchor\", \"middle\");\n\n /*var legend = svg.selectAll(\".legend\")\n .data(fill.domain())\n .enter().append(\"g\")\n .attr(\"class\", \"legend\")\n .attr(\"transform\", function(d, i) { return \"translate(0,\" + i * 20 + \")\";});\n\n legend.append(\"rect\")\n .attr(\"x\", chartDimensions.width + margins.right / 2 )\n .attr(\"width\", 18)\n .attr(\"height\", 18)\n .style(\"fill\", fill);\n\n legend.append(\"text\")\n .attr(\"x\", chartDimensions.width + (margins.right / 2) -6 )\n .attr(\"y\", 9)\n .attr(\"dy\", \".35em\")\n .style(\"text-anchor\", \"end\")\n .text(function(d) { return d; });*/\n\n g.on(\"mouseover.tooltip\", function(d) {\n var text = keys[0] + \": \" + d[0] + \", \"\n + keys[1] + \": \" + d[1] + \", \"\n + keys[2] + \": \" + d[2];\n svg.append(\"text\")\n .text(text)\n .attr(\"class\", \"label\")\n .attr(\"x\", chartDimensions.height)\n .attr(\"y\", margins.bottom * 0.75)\n .attr(\"text-anchor\", \"middle\");\n });\n\n g.on(\"mouseout.tooltip\", function(d) {\n svg.select(\".label\").remove();\n });\n\n\n });\n\n }", "function mouseOverCountry(d) {\n // if(d3.event) d3.event.stopPropagation()\n //If the canvas fade is still active, stop it\n if (timer_draw) timer_draw.stop();\n mouse_hover_active = true;\n current_hover = d;\n hover_type = 'country';\n var id = d.id; //Find the domain-combination id's of all the elements\n\n var domain_codes = d.elements.map(function (n) {\n return node_by_id[n].domain_code;\n });\n domain_codes = Object(_babel_runtime_corejs2_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(new _babel_runtime_corejs2_core_js_set__WEBPACK_IMPORTED_MODULE_2___default.a(domain_codes)); //Find the unique domain ids that are connected to the elements of the country\n\n var domains = d.elements.map(function (n) {\n return node_by_id[n].domains;\n });\n domains = Object(_babel_runtime_corejs2_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(new _babel_runtime_corejs2_core_js_set__WEBPACK_IMPORTED_MODULE_2___default.a([].concat.apply([], domains))).sort(); //The edges from element to domain\n\n edges_domain.forEach(function (l) {\n l.opacity = 0;\n }); //The domain arcs\n\n domain_arcs.forEach(function (n) {\n n.opacity = domains.indexOf(n.data.id) >= 0 ? 1 : 0.2;\n }); //The ICH element arcs\n\n element_arcs.forEach(function (n) {\n n.opacity = domain_codes.indexOf(n.data.key) >= 0 ? 0.5 : 0.1;\n }); //The ICH circles\n\n elements.forEach(function (n) {\n n.opacity = d.elements.indexOf(n.id) >= 0 ? 1 : 0.1;\n }); //Number of connected ICH elements\n\n ICH_num = elements.filter(function (n) {\n return d.elements.indexOf(n.id) >= 0;\n }).length; //The country arcs\n\n area_arcs.forEach(function (n) {\n n.opacity = 0.2;\n n.opacity_text = 0;\n }); //The country diamonds around the outside\n\n countries.forEach(function (n) {\n var found = n.id === id;\n n.opacity = found ? 1 : 0.1;\n n.opacity_text = found ? 1 : 0.1;\n }); //The edges from country to element\n\n edges_country.forEach(function (l) {\n l.opacity = l.target.id === id ? 1 : 0;\n });\n drawCanvas();\n } //function mouseOverCountry", "function ChrRegions() {\n chr_ids = null;\n regionHeight = 250;\n var chrMin, chrMax;\n\n var xHeight = 70; //start of x row\n var yHeight = 170; //start of y row\n\n function regions(selection) {\n selection.each(function(data) {\n var padding, pre, previews, regions_data, svgs;\n padding = 20;\n\n chrs = d3.nest().key(function(d) {\n return d.chr;\n }).entries(data);\n\n chrMin = d3.min(data, function(d) { return d3.min([+d.xstart, +d.ystart]); });\n chrMax = d3.max(data, function(d) { return d3.max([+d.xend, +d.yend]); });\n\n var interactions = d3.nest()\n .key(function(d) { return d.xclass;})\n .key(function(d) { return d.yclass;})\n .map(data);\n\n color = d3.scale.ordinal().domain(interOptions).range(interScale);\n\n createLegend(d3.keys(interactions));\n\n svgs = d3.select(this).select(\"#previews\").selectAll(\".preview\").data(chrs);\n svgs.enter().append(\"svg\")\n .attr(\"width\", regionWidth).attr(\"height\", regionHeight)\n .append(\"g\");\n\n svgs.each(drawRegion);\n\n return svgs\n });\n }\n\n drawRegion = function(d, i) {\n var base, graph, padding, padding2, chrName, xMax, xMin;\n base = d3.select(this);\n padding = 20;//padding = 200;\n\n var pad = padding / 2; // actual padding amount\n var radius = 4; // fixed node radius\n var yfixed = pad + radius; // y position for all nodes\n\n chrWindow = chrMax - chrMin;\n\n xMin = 0;\n xMax = chrWindow;\n\n chrScale = d3.scale.linear()\n .domain([chrMin, chrMax])\n .rangeRound([padding, regionWidth - padding * 2]);\n\n chrAxis = d3.svg.axis().scale(chrScale).orient(\"bottom\");\n\n yScale = d3.scale.linear().domain([0, 200]).range([regionHeight - 20, 0]);\n yAxis = d3.svg.axis().scale(yScale).orient(\"left\");\n\n var arc = d3.svg.line()\n .x(function(d) { return chrScale(d.xstart); })\n .y(function(d) { return yScale(d.ystart); })\n .interpolate(\"monotone\");\n\n\n padding2 = 50;\n\n graph = base.append(\"g\");\n\n graph.selectAll(\".regions\").data(function(d) {\n return d.values;\n }).enter().append(\"rect\").attr(\"x\", function(d) {\n return chrScale(d.xstart);\n }).attr(\"y\", function(d) {\n return yScale(xHeight);\n }).attr(\"width\", function(d) {\n return chrScale(d.xend) - chrScale(d.xstart);\n }).attr(\"height\", 20).attr(\"fill\", function(d) {\n return color(d.xclass);\n }).append(\"title\");\n\n\n graph.selectAll(\".regions\").data(function(d) {\n return d.values;\n }).enter().append(\"rect\").attr(\"x\", function(d) {\n return chrScale(d.ystart);\n }).attr(\"y\", function(d) {\n return yScale(yHeight);\n }).attr(\"width\", function(d) {\n return chrScale(d.yend) - chrScale(d.ystart);\n }).attr(\"height\", 20).attr(\"fill\", function(d) {\n return color(d.yclass);\n }).append(\"title\");\n\n\n // scale to generate radians (just for lower-half of circle)\n var radians = d3.scale.linear()\n .range([Math.PI / 2, 3 * Math.PI / 2]);\n\n // path generator for arcs (uses polar coordinates)\n var arc = d3.svg.line.radial()\n .interpolate(\"basis\")\n .tension(0)\n .angle(function(d) { return radians(d); });\n\n graph.selectAll(\".link\")\n .data(function(d) {\n return d.values;\n }).enter()\n .append(\"path\")\n .attr(\"class\",\"arc\")\n .attr(\"d\", function(d, i) {\n //start the arc at the middle\n x1 = (chrScale(d.xstart) + chrScale(d.xend)) / 2;\n x2 = (chrScale(d.ystart) + chrScale(d.yend)) / 2;\n val = x1 - x2;\n y1 = yScale(xHeight)+10;\n y2 = yScale(yHeight)+10;\n return \"M\" + x1 + \",\"+ y1 +\" A \"+ val +\",\"+ val +\" 0 0 1 \" + x2 + \",\"+y2\n //return \"M\" + x1 + \",\"+ y1 +\" T \"+ x2 + \" \"+y2\n })\n .attr(\"\")\n\n\n graph.selectAll(\".regions\").data(d.key)\n .enter().append(\"text\").text(d.key)\n .attr(\"class\", \"title\").attr(\"shape-rendering\", \"crispEdges\")\n .attr(\"text-anchor\", \"middle\")\n .attr(\"x\", regionWidth / 2).attr(\"dy\", \"1.3em\");\n\n\n return graph.append(\"g\").attr(\"class\", \"axis\").attr(\"transform\", \"translate(0,\" + (regionHeight - padding2) + \")\").call(chrAxis);\n\n };\n\n createLegend = function(peaks) {\n var keys, legend;\n legend = d3.select(\"#legend\").append(\"svg\").attr(\"width\", 800).attr(\"height\", 30);\n keys = legend.selectAll(\"g\").data(peaks).enter().append(\"g\").attr(\"transform\", function(d, i) {\n return \"translate(\"+ (100 * (i + 1)) + \",\" + 10 +\")\";\n });\n keys.append(\"rect\").attr(\"width\", 15).attr(\"height\", 15).attr(\"fill\", function(d) {\n return color(d);\n });\n return keys.append(\"text\").text(function(d) {\n return d;\n }).attr(\"text-anchor\", \"left\").attr(\"dx\", \"1.4em\").attr(\"dy\", \"0.8em\");\n };\n\n\n return regions\n}", "function draw(id){\nd3.csv(\"data/data.csv\").then((importdata) =>{\n \n var data=importdata;\n \ncountry=[];\nhapiness=[];\nWestern_Europe=[];\nWestern_Europe_Beer=[];\nWestern_Europe_Spirit=[];\nWestern_Europe_Wine=[];\nWestern_Europe_name=[];\n\nNorth_America=[];\nNorth_America_Beer=[];\nNorth_America_Spirit=[];\nNorth_America_Wine=[];\nNorth_America_name=[];\n\nAustralia_and_New_Zealand=[];\nAustralia_and_New_Zealand_Beer=[];\nAustralia_and_New_Zealand_Spirit=[];\nAustralia_and_New_Zealand_Wine=[];\nAustralia_and_New_Zealand_name=[];\n\nMiddle_East_and_Northern_Africa=[];\nMiddle_East_and_Northern_Africa_Beer=[];\nMiddle_East_and_Northern_Africa_Spirit=[];\nMiddle_East_and_Northern_Africa_Wine=[];\nMiddle_East_and_Northern_Africa_name=[];\n\nLatin_America_and_Caribbean=[];\nLatin_America_and_Caribbean_Beer=[];\nLatin_America_and_Caribbean_Spirit=[];\nLatin_America_and_Caribbean_Wine=[];\nLatin_America_and_Caribbean_name=[];\n\nSoutheastern_Asia=[];\nSoutheastern_Asia_Beer=[];\nSoutheastern_Asia_Spirit=[];\nSoutheastern_Asia_Wine=[];\nSoutheastern_Asia_name=[];\n\nCentral_and_Eastern_Europe=[];\nCentral_and_Eastern_Europe_Beer=[];\nCentral_and_Eastern_Europe_Spirit=[];\nCentral_and_Eastern_Europe_Wine=[];\nCentral_and_Eastern_Europe_name=[];\n\nEastern_Asia=[];\nEastern_Asia_Beer=[];\nEastern_Asia_Spirit=[];\nEastern_Asia_Wine=[];\nEastern_Asia_name=[];\n\nSub_Saharan_Africa=[];\nSub_Saharan_Africa_Beer=[];\nSub_Saharan_Africa_Spirit=[];\nSub_Saharan_Africa_Wine=[];\nSub_Saharan_Africa_name=[];\n\n\nfor (var i=0;i<importdata.length;i++){\ncountry.push(importdata[i].Country)\nhapiness.push(importdata[i].HappinessScore);\nimportdata[i].HappinessScore = + importdata[i].HappinessScore;\nimportdata[i].Beer_PerCapita = + importdata[i].Beer_PerCapita;\nimportdata[i].Spirit_PerCapita = + importdata[i].Spirit_PerCapita;\nimportdata[i].Wine_PerCapita = + importdata[i].Wine_PerCapita;\n\nif(importdata[i].Region==\"Western Europe\"){\n Western_Europe.push(importdata[i].HappinessScore)\n Western_Europe_Beer.push(importdata[i].Beer_PerCapita)\n Western_Europe_Spirit.push(importdata[i].Spirit_PerCapita)\n Western_Europe_Wine.push(importdata[i].Wine_PerCapita)\n Western_Europe_name.push(importdata[i].Country)\n\n}\nelse if(importdata[i].Region==\"North America\"){\n North_America.push(importdata[i].HappinessScore)\n North_America_Beer.push(importdata[i].Beer_PerCapita)\n North_America_Spirit.push(importdata[i].Spirit_PerCapita)\n North_America_Wine.push(importdata[i].Wine_PerCapita)\n North_America_name.push(importdata[i].Country)\n}\nelse if(importdata[i].Region==\"Australia and New Zealand\"){\n Australia_and_New_Zealand.push(importdata[i].HappinessScore)\n Australia_and_New_Zealand_Beer.push(importdata[i].Beer_PerCapita)\n Australia_and_New_Zealand_Spirit.push(importdata[i].Spirit_PerCapita)\n Australia_and_New_Zealand_Wine.push(importdata[i].Wine_PerCapita)\n Australia_and_New_Zealand_name.push(importdata[i].Country)\n}\nelse if(importdata[i].Region==\"Middle East and Northern Africa\"){\n Middle_East_and_Northern_Africa.push(importdata[i].HappinessScore)\n Middle_East_and_Northern_Africa_Beer.push(importdata[i].Beer_PerCapita)\n Middle_East_and_Northern_Africa_Spirit.push(importdata[i].Spirit_PerCapita)\n Middle_East_and_Northern_Africa_Wine.push(importdata[i].Wine_PerCapita)\n Middle_East_and_Northern_Africa_name.push(importdata[i].Country)\n}\nelse if(importdata[i].Region==\"Latin America and Caribbean\"){\n Latin_America_and_Caribbean.push(importdata[i].HappinessScore)\n Latin_America_and_Caribbean_Beer.push(importdata[i].Beer_PerCapita)\n Latin_America_and_Caribbean_Spirit.push(importdata[i].Spirit_PerCapita)\n Latin_America_and_Caribbean_Wine.push(importdata[i].Wine_PerCapita)\n Latin_America_and_Caribbean_name.push(importdata[i].Country)\n}\nelse if(importdata[i].Region==\"Southeastern Asia\"){\n Southeastern_Asia.push(importdata[i].HappinessScore)\n Southeastern_Asia_Beer.push(importdata[i].Beer_PerCapita)\n Southeastern_Asia_Spirit.push(importdata[i].Spirit_PerCapita)\n Southeastern_Asia_Wine.push(importdata[i].Wine_PerCapita)\n Southeastern_Asia_name.push(importdata[i].Country)\n}\nelse if(importdata[i].Region==\"Central and Eastern Europe\"){\n Central_and_Eastern_Europe.push(importdata[i].HappinessScore)\n Central_and_Eastern_Europe_Beer.push(importdata[i].Beer_PerCapita)\n Central_and_Eastern_Europe_Spirit.push(importdata[i].Spirit_PerCapita)\n Central_and_Eastern_Europe_Wine.push(importdata[i].Wine_PerCapita)\n Central_and_Eastern_Europe_name.push(importdata[i].Country)\n}\nelse if(importdata[i].Region==\"Eastern Asia\"){\n Eastern_Asia.push(importdata[i].HappinessScore)\n Eastern_Asia_Beer.push(importdata[i].Beer_PerCapita)\n Eastern_Asia_Spirit.push(importdata[i].Spirit_PerCapita)\n Eastern_Asia_Wine.push(importdata[i].Wine_PerCapita)\n Eastern_Asia_name.push(importdata[i].Country)\n}\nelse {\n Sub_Saharan_Africa.push(importdata[i].HappinessScore)\n Sub_Saharan_Africa_Beer.push(importdata[i].Beer_PerCapita)\n Sub_Saharan_Africa_Spirit.push(importdata[i].Spirit_PerCapita)\n Sub_Saharan_Africa_Wine.push(importdata[i].Wine_PerCapita)\n Sub_Saharan_Africa_name.push(importdata[i].Country)\n}\n} \n\nregion=[ \"Australia_and_New_Zealand\", \"North_America\", \"Western_Europe\", \"Latin_America_and_Caribbean\", \"Southeastern_Asia\", \"Eastern_Asia\", \"Middle_East_and_Northern_Africa\", \"Central_and_Eastern_Europe\", \"Sub_Saharan_Africa\"];\n\nhapiness2=hapiness.slice(0,10).reverse();\nhapiness3=hapiness.slice(-10)\nhapiness4=[];\nhapiness4.push(hapiness2);\nhapiness4.push(hapiness3);\n\nsum1=Western_Europe.reduce(function(a,b){\n return a+b;\n},0);\nsum12=Western_Europe_Beer.reduce(function(a,b){\n return a+b;\n},0);\nsum13=Western_Europe_Spirit.reduce(function(a,b){\n return a+b;\n},0);\nsum14=Western_Europe_Wine.reduce(function(a,b){\n return a+b;\n},0);\nalsum1=sum12+sum13+sum14;\n\nsum2=North_America.reduce(function(a,b){\n return a+b;\n},0);\nsum22=North_America_Beer.reduce(function(a,b){\n return a+b;\n},0);\nsum23=North_America_Spirit.reduce(function(a,b){\n return a+b;\n},0);\nsum24=North_America_Wine.reduce(function(a,b){\n return a+b;\n},0);\nalsum2=sum22+sum23+sum24;\n\nsum3=Australia_and_New_Zealand.reduce(function(a,b){\n return a+b;\n},0);\nsum32=Australia_and_New_Zealand_Beer.reduce(function(a,b){\n return a+b;\n},0);\nsum33=Australia_and_New_Zealand_Spirit.reduce(function(a,b){\n return a+b;\n},0);\nsum34=Australia_and_New_Zealand_Wine.reduce(function(a,b){\n return a+b;\n},0);\nalsum3=sum32+sum33+sum34;\n\nsum4=Middle_East_and_Northern_Africa.reduce(function(a,b){\n return a+b;\n},0);\nsum42=Middle_East_and_Northern_Africa_Beer.reduce(function(a,b){\n return a+b;\n},0);\nsum43=Middle_East_and_Northern_Africa_Spirit.reduce(function(a,b){\n return a+b;\n},0);\nsum44=Middle_East_and_Northern_Africa_Wine.reduce(function(a,b){\n return a+b;\n},0);\nalsum4=sum42+sum43+sum44;\n\nsum5=Latin_America_and_Caribbean.reduce(function(a,b){\n return a+b;\n},0);\nsum52=Latin_America_and_Caribbean_Beer.reduce(function(a,b){\n return a+b;\n},0);\nsum53=Latin_America_and_Caribbean_Spirit.reduce(function(a,b){\n return a+b;\n},0);\nsum54=Latin_America_and_Caribbean_Wine.reduce(function(a,b){\n return a+b;\n},0);\nalsum5=sum52+sum53+sum54;\n\nsum6=Southeastern_Asia.reduce(function(a,b){\n return a+b;\n},0);\nsum62=Southeastern_Asia_Beer.reduce(function(a,b){\n return a+b;\n},0);\nsum63=Southeastern_Asia_Spirit.reduce(function(a,b){\n return a+b;\n},0);\nsum64=Southeastern_Asia_Wine.reduce(function(a,b){\n return a+b;\n},0);\nalsum6=sum62+sum63+sum64;\n\nsum7=Central_and_Eastern_Europe.reduce(function(a,b){\n return a+b;\n},0);\nsum72=Central_and_Eastern_Europe_Beer.reduce(function(a,b){\n return a+b;\n},0);\nsum73=Central_and_Eastern_Europe_Spirit.reduce(function(a,b){\n return a+b;\n},0);\nsum74=Central_and_Eastern_Europe_Wine.reduce(function(a,b){\n return a+b;\n},0);\nalsum7=sum72+sum73+sum74;\n\nsum8=Eastern_Asia.reduce(function(a,b){\n return a+b;\n},0)\nsum82=Eastern_Asia_Beer.reduce(function(a,b){\n return a+b;\n},0);\nsum83=Eastern_Asia_Spirit.reduce(function(a,b){\n return a+b;\n},0);\nsum84=Eastern_Asia_Wine.reduce(function(a,b){\n return a+b;\n},0);\nalsum8=sum82+sum83+sum84;\n\nsum9=Sub_Saharan_Africa.reduce(function(a,b){\n return a+b;\n},0)\nsum92=Sub_Saharan_Africa_Beer.reduce(function(a,b){\n return a+b;\n},0);\nsum93=Sub_Saharan_Africa_Spirit.reduce(function(a,b){\n return a+b;\n},0);\nsum94=Sub_Saharan_Africa_Wine.reduce(function(a,b){\n return a+b;\n},0);\nalsum9=sum92+sum93+sum94;\n\naverage1=sum1/Western_Europe.length;\naverage2=sum2/North_America.length;\naverage3=sum3/Australia_and_New_Zealand.length;\naverage4=sum4/Middle_East_and_Northern_Africa.length;\naverage5=sum5/Latin_America_and_Caribbean.length;\naverage6=sum6/Southeastern_Asia.length;\naverage7=sum7/Central_and_Eastern_Europe.length;\naverage8=sum8/Eastern_Asia.length;\naverage9=sum9/Sub_Saharan_Africa.length;\naverage=[average3, average2, average1, average5, average6, average8, average4, average7, average9];\nal=[alsum3, alsum2, alsum1, alsum5, alsum6, alsum8, alsum4, alsum1, alsum9]\n\n//get total alcohol consumption\nWestern_Europe_alcohol=Western_Europe_Beer.map(function(v,i){\n return v+Western_Europe_Spirit[i]+Western_Europe_Wine[i];\n});\n\n\nNorth_America_alcohol=North_America_Beer.map(function(v,i){\n return v+North_America_Spirit[i]+North_America_Wine[i];\n});\n\nAustralia_and_New_Zealand_alcohol=Australia_and_New_Zealand_Beer.map(function(v,i){\n return v+Australia_and_New_Zealand_Spirit[i]+Australia_and_New_Zealand_Wine[i];\n});\n\nMiddle_East_and_Northern_Africa_alcohol=Middle_East_and_Northern_Africa_Beer.map(function(v,i){\n return v+Middle_East_and_Northern_Africa_Spirit[i]+Middle_East_and_Northern_Africa_Wine[i];\n});\n\nLatin_America_and_Caribbean_alcohol=Latin_America_and_Caribbean_Beer.map(function(v,i){\n return v+Latin_America_and_Caribbean_Spirit[i]+Latin_America_and_Caribbean_Wine[i];\n});\n\nSoutheastern_Asia_alcohol=Southeastern_Asia_Beer.map(function(v,i){\n return v+Southeastern_Asia_Spirit[i]+Southeastern_Asia_Wine[i];\n});\n\nCentral_and_Eastern_Europe_alcohol=Central_and_Eastern_Europe_Beer.map(function(v,i){\n return v+Central_and_Eastern_Europe_Spirit[i]+Central_and_Eastern_Europe_Wine[i];\n});\n\nEastern_Asia_alcohol=Eastern_Asia_Beer.map(function(v,i){\n return v+Eastern_Asia_Spirit[i]+Eastern_Asia_Wine[i];\n});\n\nSub_Saharan_Africa_alcohol=Sub_Saharan_Africa_Beer.map(function(v,i){\n return v+Sub_Saharan_Africa_Spirit[i]+Sub_Saharan_Africa_Wine[i];\n});\n\n\nif(id===\"World\"){\n var trace1={\n x:average,\n y:region,\n type:\"bar\",\n orientation:\"h\"\n };\n\n var trace2={\n x:al,\n y:region,\n type:\"bar\",\n orientation:\"h\"\n};\n\n var chartdata=[trace1];\n\n var layout={\n title:\"Happiness Score\",\n yaxis:{\n automargin:true,\n }\n }\n\n var chartdata2=[trace2];\n\n var layout2={\n title:\"Total Alcohol Consumption\",\n yaxis:{\n automargin:true,\n }\n }\n\n Plotly.newPlot(\"bar\",chartdata,layout);\n Plotly.newPlot(\"bar2\",chartdata2,layout2);\n}\n\nelse if(id===\"Western_Europe\"){\n var trace1={\n x:Western_Europe,\n y:Western_Europe_name,\n type:\"bar\",\n orientation:\"h\"\n };\n\n var trace2={\n x:Western_Europe_alcohol,\n y:Western_Europe_name,\n type:\"bar\",\n orientation:\"h\"\n};\n\n var chartdata=[trace1];\n\n var layout={\n title:\"Happiness Score\",\n yaxis:{\n automargin:true,\n }\n }\n\n var chartdata2=[trace2];\n\n var layout2={\n title:\"Total Alcohol Consumption\",\n yaxis:{\n automargin:true,\n }\n }\n\n Plotly.newPlot(\"bar\",chartdata,layout);\n Plotly.newPlot(\"bar2\",chartdata2,layout2);\n}\n\nelse if(id===\"North_America\"){\n var trace1={\n x:North_America,\n y:North_America_name,\n type:\"bar\",\n orientation:\"h\"\n };\n\n var trace2={\n x:North_America_alcohol,\n y:North_America_name,\n type:\"bar\",\n orientation:\"h\"\n};\n\n var chartdata=[trace1];\n\n var layout={\n title:\"Happiness Score\",\n yaxis:{\n automargin:true,\n }\n }\n\n var chartdata2=[trace2];\n\n var layout2={\n title:\"Total Alcohol Consumption\",\n yaxis:{\n automargin:true,\n }\n }\n\n Plotly.newPlot(\"bar\",chartdata,layout);\n Plotly.newPlot(\"bar2\",chartdata2,layout2);\n}\n\nelse if(id===\"Australia_and_New_Zealand\"){\n var trace1={\n x:Australia_and_New_Zealand,\n y:Australia_and_New_Zealand_name,\n type:\"bar\",\n orientation:\"h\"\n };\n\n var trace2={\n x:Australia_and_New_Zealand_alcohol,\n y:Australia_and_New_Zealand_name,\n type:\"bar\",\n orientation:\"h\"\n};\n\n var chartdata=[trace1];\n\n var layout={\n title:\"Happiness Score\",\n yaxis:{\n automargin:true,\n }\n }\n\n var chartdata2=[trace2];\n\n var layout2={\n title:\"Total Alcohol Consumption\",\n yaxis:{\n automargin:true,\n }\n }\n\n Plotly.newPlot(\"bar\",chartdata,layout);\n Plotly.newPlot(\"bar2\",chartdata2,layout2);\n}\n\nelse if(id===\"Middle_East_and_Northern_Africa\"){\n var trace1={\n x:Middle_East_and_Northern_Africa,\n y:Middle_East_and_Northern_Africa_name,\n type:\"bar\",\n orientation:\"h\"\n };\n\n var trace2={\n x:Middle_East_and_Northern_Africa_alcohol,\n y:Middle_East_and_Northern_Africa_name,\n type:\"bar\",\n orientation:\"h\"\n};\n\n var chartdata=[trace1];\n\n var layout={\n title:\"Happiness Score\",\n yaxis:{\n automargin:true,\n }\n }\n\n var chartdata2=[trace2];\n\n var layout2={\n title:\"Total Alcohol Consumption\",\n yaxis:{\n automargin:true,\n }\n }\n\n Plotly.newPlot(\"bar\",chartdata,layout);\n Plotly.newPlot(\"bar2\",chartdata2,layout2);\n}\n\nelse if(id===\"Latin_America_and_Caribbean\"){\n var trace1={\n x:Latin_America_and_Caribbean,\n y:Latin_America_and_Caribbean_name,\n type:\"bar\",\n orientation:\"h\"\n };\n\n var trace2={\n x:Latin_America_and_Caribbean_alcohol,\n y:Latin_America_and_Caribbean_name,\n type:\"bar\",\n orientation:\"h\"\n};\n\n var chartdata=[trace1];\n\n var layout={\n title:\"Happiness Score\",\n yaxis:{\n automargin:true,\n }\n }\n\n var chartdata2=[trace2];\n\n var layout2={\n title:\"Total Alcohol Consumption\",\n yaxis:{\n automargin:true,\n }\n }\n\n Plotly.newPlot(\"bar\",chartdata,layout);\n Plotly.newPlot(\"bar2\",chartdata2,layout2);\n}\n\nelse if(id===\"Southeastern_Asia\"){\n var trace1={\n x:Southeastern_Asia,\n y:Southeastern_Asia_name,\n type:\"bar\",\n orientation:\"h\"\n };\n\n var trace2={\n x:Southeastern_Asia_alcohol,\n y:Southeastern_Asia_name,\n type:\"bar\",\n orientation:\"h\"\n};\n\n var chartdata=[trace1];\n\n var layout={\n title:\"Happiness Score\",\n yaxis:{\n automargin:true,\n }\n }\n\n var chartdata2=[trace2];\n\n var layout2={\n title:\"Total Alcohol Consumption\",\n yaxis:{\n automargin:true,\n }\n }\n\n Plotly.newPlot(\"bar\",chartdata,layout);\n Plotly.newPlot(\"bar2\",chartdata2,layout2);\n}\n\nelse if(id===\"Central_and_Eastern_Europe\"){\n var trace1={\n x:Central_and_Eastern_Europe,\n y:Central_and_Eastern_Europe_name,\n type:\"bar\",\n orientation:\"h\"\n };\n\n var trace2={\n x:Central_and_Eastern_Europe_alcohol,\n y:Central_and_Eastern_Europe_name,\n type:\"bar\",\n orientation:\"h\"\n};\n\n var chartdata=[trace1];\n\n var layout={\n title:\"Happiness Score\",\n yaxis:{\n automargin:true,\n }\n }\n\n var chartdata2=[trace2];\n\n var layout2={\n title:\"Total Alcohol Consumption\",\n yaxis:{\n automargin:true,\n }\n }\n\n Plotly.newPlot(\"bar\",chartdata,layout);\n Plotly.newPlot(\"bar2\",chartdata2,layout2);\n}\n\nelse if(id===\"Eastern_Asia\"){\n var trace1={\n x:Eastern_Asia,\n y:Eastern_Asia_name,\n type:\"bar\",\n orientation:\"h\"\n };\n\n var trace2={\n x:Eastern_Asia_alcohol,\n y:Eastern_Asia_name,\n type:\"bar\",\n orientation:\"h\"\n};\n\n var chartdata=[trace1];\n\n var layout={\n title:\"Happiness Score\",\n yaxis:{\n automargin:true,\n }\n }\n\n var chartdata2=[trace2];\n\n var layout2={\n title:\"Total Alcohol Consumption\",\n yaxis:{\n automargin:true,\n }\n }\n\n Plotly.newPlot(\"bar\",chartdata,layout);\n Plotly.newPlot(\"bar2\",chartdata2,layout2);\n}\n\nelse {\n var trace1={\n x:Sub_Saharan_Africa,\n y:Sub_Saharan_Africa_name,\n type:\"bar\",\n orientation:\"h\"\n };\n\n var trace2={\n x:Sub_Saharan_Africa_alcohol,\n y:Sub_Saharan_Africa_name,\n type:\"bar\",\n orientation:\"h\"\n};\n\n var chartdata=[trace1];\n\n var layout={\n title:\"Happiness Score\",\n yaxis:{\n automargin:true,\n }\n }\n\n var chartdata2=[trace2];\n\n var layout2={\n title:\"Total Alcohol Consumption\",\n yaxis:{\n automargin:true,\n }\n }\n\n Plotly.newPlot(\"bar\",chartdata,layout);\n Plotly.newPlot(\"bar2\",chartdata2,layout2);\n}\n\n\n//calculate gauge chart information\nif(id==\"World\"){\n var level = (sum1+sum2+sum3+sum4+sum5+sum6+sum7+sum8+sum9)/importdata.length;\n }\n else if(id==\"Western_Europe\"){\n var level = average1;\n }\n else if(id==\"North America\"){\n var level = average2;\n }\n else if(id==\"Australia_and_New_Zealand\"){\n var level = average3;\n }\n else if(id==\"Middle_East_and_Northern_Africa\"){\n var level = average4;\n }\n else if(id==\"Latin_America_and_Caribbean\"){\n var level = average5;\n }\n else if(id==\"Southeastern_Asia\"){\n var level = average6;\n }\n else if(id==\"Central_and_Eastern_Europe\"){\n var level = average7;\n }\n else if(id==\"Eastern_Asia\"){\n var level = average8;\n }\n else {\n var level = average9;\n }\n\n\nvar data = [\n\t{\n\t\tdomain: { x: [0, 1], y: [0, 1] },\n\t\tvalue: level,\n\t\ttitle: { text: \"Happiness Score\" },\n\t\ttype: \"indicator\",\n\t\tmode: \"gauge+number\"\n\t}\n];\n\nvar layout = { width: 400, height: 300, margin: { t: 0, b: 0 } };\nPlotly.newPlot('gauge', data, layout);\n})\n}", "async drawQFLines(){\n let that = this;\n let QuarterfinalLines = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];\n let QFLines = d3.select(\"#QF-Lines\").selectAll('line');\n let joined = QFLines.data(QuarterfinalLines).join('line')\n joined.attr(\"x1\", d =>{\n if(d < 4)\n return that.buffer + that.lineLength;\n else if (d >= 4 && d < 8)\n return that.svgWidth - that.buffer - that.lineLength * 2 - that.lineThickness / 2;\n else if (d >= 8 && d < 10)\n return that.lineLength * 2 + that.buffer;\n else\n return that.svgWidth - that.buffer - that.lineLength * 2;})\n .attr(\"y1\", d =>{\n if(d < 4)\n return that.buffer + that.R16Separation * 2 * d + that.R16Separation / 2;\n else if (d >= 4 && d < 8)\n return that.buffer + that.R16Separation * 2 * (d - 4) + that.R16Separation / 2;\n else if (d >= 8 && d < 10)\n return that.buffer + that.R16Separation * 4 * (d - 8) + that.R16Separation / 2;\n else\n return that.buffer + that.R16Separation * 4 * (d - 10) + that.R16Separation / 2;})\n .attr(\"x2\", d =>{\n if(d < 4)\n return that.buffer + that.lineLength * 2 + that.lineThickness / 2;\n else if (d >= 4 && d < 8)\n return that.svgWidth - that.buffer - that.lineLength;\n else if (d >= 8 && d < 10)\n return that.lineLength * 2 + that.buffer;\n else\n return that.svgWidth - that.buffer - that.lineLength * 2;})\n .attr(\"y2\", d =>{\n if(d < 4)\n return that.buffer + that.R16Separation * 2 * d + that.R16Separation / 2;\n else if (d >= 4 && d < 8)\n return that.buffer + that.R16Separation * 2 * (d - 4) + that.R16Separation / 2;\n else if (d >= 8 && d < 10)\n return that.buffer + that.R16Separation * 4 * (d - 8) + 2 * that.R16Separation + that.R16Separation / 2;\n else\n return that.buffer + that.R16Separation * 4 * (d - 10) + 2 * that.R16Separation + that.R16Separation / 2;})\n .attr(\"class\", \"bracket-line\"); \n }", "function get_year_data(data_array, year)\n{\n //Group data by country and metric\n data_group_by_metric = d3.nest()\n .key(function(d)\n {\n return d.country;\n })\n .key(function(d)\n {\n return d.metric;\n })\n .entries(data_array)\n temp_arr = []; //Function's return variable, will hold country data\n temp_element = {}; //Used to fill the temp_arr\n\n //Loop over each country\n for(var k1 of data_group_by_metric.keys())\n {\n temp_element[\"name\"] = html_compatible_id(data_group_by_metric[k1].key);\n\n //Loop over each metric\n for (var k2 of data_group_by_metric[k1].values.keys() )\n {\n param = data_group_by_metric[k1].values[k2].key;\n temp_element[param] = +data_group_by_metric[k1].values[k2].values[0][year];\n }\n\n //Skip Central Africa, a huge outlier, makes all other nations seem too small on the graph\n //if(temp_element['name'] != \"Central African Republic\")\n if( temp_element.name != \"Lowincome\" &&\n temp_element.name != \"Lowermiddleincome\" &&\n temp_element.name != \"Middleincome\" &&\n temp_element.name != \"Palau\" && //Exclude too countries with extremely low emissions, they distort the colouring scale\n temp_element.name != \"MarshallIslands\" &&\n temp_element.name != \"NorthernMarianaIslands\" &&\n temp_element.name != \"TurksandCaicosIslands\" &&\n temp_element.name != \"Micronesia\" &&\n temp_element.name != \"FaroeIslands\" )\n {\n //Verify if the country has any unspecified\\missing metric for this year\n var has_empty_param = false;\n\n for(var i in numeric_params)\n {\n var element_param = numeric_params[i];\n if (isNaN(temp_element[element_param]) || temp_element[element_param] == 0 )\n {\n has_empty_param = true;\n break;\n }\n }\n\n //If the country has all the data full, push it into the return array\n if(has_empty_param == false)\n {\n //Add the element to the array to be returned\n temp_arr.push(temp_element);\n }//if the country has both values available this year\n\n }//if not any aggregation entity\n\n //Reset temp element for next loop. Not sure why, but it doesn't work otherwise\n //I was expecting that it would just overwrite the older value and no need\n //to clear the temp_element.\n temp_element = {};\n }\n return temp_arr;\n}", "function Arcs (context) {\n\n var arcs = {},\n arc = d3.svg.arc(),\n τ = 2 * Math.PI,\n arc_scale = d3.scale.linear()\n .range([0, τ]),\n format = d3.format(',');\n\n arcs.draw = function () {\n d3.selectAll('.marker-cluster')\n .each(draw);\n };\n\n function tweenArc(b) {\n return function(a, i) {\n var d = b.call(this, a, i),\n i = d3.interpolate(a, d);\n for (var k in d) {\n // update data\n a[k] = d[k];\n }\n return function(t) {\n return arc(i(t));\n };\n };\n }\n\n function add_status (node_data) {\n // answers the question, what size\n // does this need to be?\n // @param d: data obj to create arcs\n // \n // possible values\n // 'unselected'\n // 'defaulted'\n // 'selected'\n // \n // value is found in the filters\n // array, alongside each object.\n // 'status' and 'status_size'\n\n for (var j = node_data.length - 1; j >= 0; j--) {\n\n // check for all being active\n var active_count = 0;\n for (var i = context.filters.length - 1; i >= 0; i--) {\n\n var cur_active = false;\n if(context.filters[i].active) {\n active_count += 1;\n cur_active = true;\n }\n if(context.filters[i].value ===\n node_data[j].value) {\n\n if (cur_active) {\n node_data[j].status = 'selected';\n } else {\n node_data[j].status = 'unselected';\n }\n }\n }\n\n // check for all being active\n var prev_active_count = 0;\n for (var i = context.prev_filters.length - 1;\n i >= 0;\n i--) {\n\n var cur_active = false;\n if(context.prev_filters[i].active) {\n prev_active_count += 1;\n cur_active = true;\n }\n if(context.prev_filters[i].value ===\n node_data[j].value) {\n\n if (cur_active) {\n node_data[j].prev_status = 'selected';\n } else {\n node_data[j].prev_status = 'unselected';\n }\n }\n }\n\n if (active_count === 4) {\n node_data[j].status = 'defaulted';\n }\n if (prev_active_count === 4) {\n node_data[j].prev_status = 'defaulted';\n }\n\n }\n\n // return node_data;\n }\n\n function draw (d, i) {\n var node = d3.select(this);\n var node_data = d;\n var svg_wrapper = node.select('.arc-wrapper');\n var svg = svg_wrapper.select('svg');\n var g = svg_wrapper.select('g');\n\n if (svg.node()) {\n // if there is an svg, that means that\n // the data has not been updated.\n // since the markerclustergroup will\n // redraw all of the clusters if the\n // data is changed, which would\n // mean there is no svg node.\n return;\n }\n \n // there is NO an svg here\n svg_dimensions = [{\n dimensions:\n context.icon_size[node_data\n .meta\n .icon_category].total\n }];\n\n svg = svg_wrapper.selectAll('svg')\n .data(svg_dimensions)\n .enter()\n .append('svg')\n .attr('class', 'arc-svg')\n .attr('width', function (d) {\n return d.dimensions;\n })\n .attr('height', function (d) {\n return d.dimensions;\n });\n\n g = svg.selectAll('g')\n .data(svg_dimensions)\n .enter()\n .append('g')\n .attr('transform', function (d) {\n return 'translate(' +\n d.dimensions / 2 + ',' +\n d.dimensions / 2 + ')';\n });\n\n g.append('rect')\n .attr('class', 'blanket')\n .attr('height', svg_dimensions[0].dimensions)\n .attr('width', svg_dimensions[0].dimensions);\n\n // add the prev_status, and status\n // attributes to the data object\n // for appropriate scaling based on\n // the filter settings\n add_status(node_data.filters);\n\n // update the domain to set the\n // arc start and end angles\n arc_scale.domain([0, node_data.meta.total]);\n\n // add arc specific data to the\n // data to be bound and drawn.\n var accounted_for = 0;\n node_data.filters.forEach(function (d, i) {\n d.startAngle = accounted_for;\n\n var slice = arc_scale(d.count);\n accounted_for += slice;\n \n d.endAngle = accounted_for;\n\n d.innerRadius = context.icon_size\n [node_data.meta.icon_category]\n [d.prev_status]\n .innerRadius;\n d.outerRadius = context.icon_size\n [node_data.meta.icon_category]\n [d.prev_status]\n .outerRadius;\n });\n \n var arc_sel = g.selectAll('.arc-segment')\n .data(node_data.filters)\n .enter()\n .append('path')\n .attr('class', 'arc-segment')\n .style('fill', function (d) {\n return context.colors[d.value];\n })\n .attr('d', arc);\n\n \n var span_sel = node\n .selectAll('span')\n .datum({\n start: node_data.meta.prev_total_active,\n end: node_data.meta.total_active\n });\n\n d3.transition()\n .duration(800)\n .each(function () {\n // text transition is a little misleading.\n // on zoom, its not actually counting from\n // the parent cluster total to the individual\n // child cluster values. its just taking those\n // child cluster values, and animating between\n // the prev_active_total (which was never seen\n // by the user), and the active_total, which\n // the user is about to see.\n // not a show stopper for now.\n d3.transition(span_sel)\n .tween('text', function (d) {\n var i = d3.interpolateRound(d.start,\n d.end);\n return function (t) {\n this.textContent = format(i(t));\n };\n });\n\n d3.transition(arc_sel)\n .attrTween('d', tweenArc(function (d, i) {\n return {\n innerRadius:\n context.icon_size\n [node_data.meta.icon_category]\n [d.status]\n .innerRadius,\n outerRadius:\n context.icon_size\n [node_data.meta.icon_category]\n [d.status]\n .outerRadius\n };\n }));\n });\n }\n\n return arcs;\n}", "function parallel_coordinates(raw_data) {\n\tvar dt=[];\n\t data = raw_data.map(function(val,key) {\n\t\t datafieldmap={};\n\t\t for (var k in val) {\n\t\t\t \n\t\t\t if (!_.isNaN(raw_data[0][k] - 0)) {\n\t\t\t\t if(hasWhiteSpace(k))\n\t\t\t\t\t{\t\n\t\t\t\t\t //console.log(\"s : \",k);\n\t\t\t\t\t datafieldmap[k.replace( /\\s/g, '_')] = parseFloat(val[k]) || 0;\n\t\t\t\t\t}\n\t\t\t\t else{\n\t\t\t\t\t //console.log(\"k1 val1 : \"+k,val[k]);\n\t\t\t\t\t datafieldmap[k] = parseFloat(val[k]) || 0;\n\t\t\t\t }\n\n\t }\n\t else\n\t \t {\n\t \t //console.log(\"k val2 : \"+k,val[k]);\n\t \t if(hasWhiteSpace(k))\n\t\t\t\t{\t\n\t \t\t\t //console.log(\"s : \",k);\n\t \t\t\t datafieldmap[k.replace( /\\s/g, '_')] = val[k];\n\t\t\t\t ordinalfields.push(k.replace( /\\s/g, '_'));\n\t\t\t\t}\n\t \t else\n\t \t\t {\n\t \t\t //console.log(\"s1 : \",k);\n\t \t\t datafieldmap[k]=val[k];\n\t \t \t ordinalfields.push(k);\n\t \t\t }\n\n\t \t }\n\t\t\t console.log(\"val121 : \",datafieldmap);\n\t\t\t \n\t }\n\t console.log(\"val : \",datafieldmap);\n\t dt.push(datafieldmap);\n\t return datafieldmap;\n\t });\n\t //console.log(\"Data :\",dt);\n\t unqordinalfields = ordinalfields.filter(function(elem, pos) {\n\t\t return ordinalfields.indexOf(elem) == pos;\t\n\t\t });\n\t keys = d3.keys(data[0]);\n\t console.log(\"Key Values : \",keys);\n\t\n\t for (var k=0;k<keys.length;k++)\n\t\t {\n\t\t \tconsole.log(\"key\",keys[k],\" > k val : \",k);\n\t\t \t\n\t\t \tif((keys[k])!=\"contains\"){\n\t\t \t\trenamekeys.push(keys[k]);\n\t\t \t\t}\n\t\t \trenamekeys.join(\",\");\n\t\t }\n\t keys=renamekeys;\n\t console.log(\"after replace of characteres \",keys);\n\t tobe_color=keys[0];\t\n\t console.log(\" unqordinalfields : \"+unqordinalfields+\" tobe_color : \"+tobe_color+\" Column to Hide: \"+hidecol);\n\t xscale.domain(dimensions = keys.filter(function(k) {\n\t\t if(k!=\"contains\"){\n\t\t if(unqordinalfields.contains(k))\n\t\t\t {\n\t\t\t console.log(unqordinalfields);\n\t\t\t if(hidecol.contains(k))\n\t\t\t\t {\n\t\t\t\t d3.scale.ordinal()\n\t\t\t .domain(data.map(function(p) {if(k==tobe_color) cid.push(p[k]);return p[k]; }));\n\t\t\t\t\t return false;\n\t\t\t\t }\n\t\t\t else\n\t\t\t\t {\n\t\t\t\t yscale[k] = d3.scale.ordinal()\n\t\t .domain(data.map(function(p) {\n\t\t \t if(k==tobe_color){ \n\t\t \t\t cid.push(p[k]);\n\t\t \t\t console.log(p[k]);\n\t\t \t \t}\n\t\t \t return p[k]; \n\t\t \t }))\n\t\t .rangePoints([h, 0]);\n\t\t\t\t //console.log(k +\" : \"+yscale[k]);\n\t\t\t\t }\n\t\t\t }\n\t else {\n\t\t \tyscale[k] = d3.scale.linear()\n\t\t .domain(d3.extent(data, function(p) {if(k==tobe_color){ console.log(\"tobe_color : \"+tobe_color); cid.push(p[k]);} return +p[k]; }))\n\t\t .range([h, 0]);\n\t\t }\n\t\t return true;\n\t\t }\n\t\t }));\n\t console.log(\"CID : \",cid);\n\t uniqueVal = cid.filter(function(elem, pos) {\n\t\t return cid.indexOf(elem) == pos;\t\n\t\t });\n\t console.log(uniqueVal);\n\t\t var l=0;\n\t\t angular.forEach(uniqueVal,function(entry) {\n\t\t console.log(entry);\n\t\t if(precolors[l]==undefined)\n\t\t\t {\n\t\t\t l=0;\n\t\t\t }\n\t\t colors[entry]=precolors[l];\n\t\t l++;\n\t\t\t});\n\t n_dimensions = dimensions.length;\n\t console.log(\"Length : \"+n_dimensions+\" dimensions : \"+dimensions);\n\t // Add a group element for each dimension.\n\t var g = svg.selectAll(\".dimension\")\n\t .data(dimensions)\n\t .enter().append(\"svg:g\")\n\t .attr(\"class\", \"dimension\")\n\t .attr(\"transform\", function(d) {console.log(\"d val : \"+d+\" xscals : \"+xscale(d)); return \"translate(\" + xscale(d) + \")\"; })\n\t .call(d3.behavior.drag()\n\t .on(\"dragstart\", function(d) {\n\t dragging[d] = this.__origin__ = xscale(d);\n\t this.__dragged__ = false;\n\t d3.select(\"#foreground\").style(\"opacity\", \"0.35\");\n\t })\n\t .on(\"drag\", function(d) {\n\t dragging[d] = Math.min(w, Math.max(0, this.__origin__ += d3.event.dx));\n\t dimensions.sort(function(a, b) { return position(a) - position(b); });\n\t xscale.domain(dimensions);\n\t g.attr(\"transform\", function(d) { return \"translate(\" + position(d) + \")\"; });\n\t brush_count++;\n\t this.__dragged__ = true;\n\t\n\t // Feedback for axis deletion if dropped\n\t if (dragging[d] == 0) {\n\t d3.select(this).select(\".background\").style(\"fill\", \"#b00\");\n\t } else {\n\t d3.select(this).select(\".background\").style(\"fill\", null);\n\t }\n\t })\n\t .on(\"dragend\", function(d) {\n\t if (!this.__dragged__) {\n\t // no movement, invert axis\n\t var extent = invert_axis(d);\n\t // TODO refactor extents and update_ticks to avoid resetting extents manually\n\t update_ticks(d, extent);\n\t } else {\n\t // reorder axes\n\t d3.select(this).transition().attr(\"transform\", \"translate(\" + xscale(d) + \")\");\n\t }\n\t\n\t // remove axis if dragged all the way left\n\t if (dragging[d] == 0) {\n\t remove_axis(d,g);\n\t }\n\t\n\t // rerender\n\t d3.select(\"#foreground\").style(\"opacity\", null);\n\t brush();\n\t delete this.__dragged__;\n\t delete this.__origin__;\n\t delete dragging[d];\n\t }))\n\t\n\t // Add and store a brush for each axis.\n\t g.append(\"svg:g\")\n\t .attr(\"class\", \"brush\")\n\t .each(function(d) {\n\t \t console.log(\"--\",d);\n\t \t d3.select(this).call(yscale[d].brush = d3.svg.brush().y(yscale[d]).on(\"brush\", brush)); \n\t \t })\n\t .selectAll(\"rect\")\n\t .style(\"visibility\", null)\n\t .attr(\"x\", -23)\n\t .attr(\"width\", 36)\n\t .attr(\"rx\", 0)\n\t .attr(\"ry\", 0)\n\t .append(\"title\")\n\t .text(\"Drag up or down to brush along this axis\");\n\t\n\t g.selectAll(\".extent\")\n\t .append(\"title\")\n\t .text(\"Drag or resize this filter\");\n\t\n\t // Add an axis and title.\n\t g.append(\"svg:g\")\n\t .attr(\"class\", \"axis\")\n\t .attr(\"transform\", \"translate(0,0)\")\n\t .each(function(d) { d3.select(this).call(axis.scale(yscale[d])); })\n\t .append(\"svg:text\")\n\t .attr(\"text-anchor\", \"middle\")\n\t .attr(\"y\", function(d,i) { return i%2 == 0 ? -14:-30 })\n\t .attr(\"x\", 0)\n\t .attr(\"class\", \"label\")\n\t .text(String)\n\t .append(\"title\")\n\t .text(\"Click to invert. Drag to reorder\");\n\t\n\t legend = create_legend(colors,brush);\n\t\n\t // Render full foreground\n\t brush();\n\t\n\t}", "function tsr_graph(element, title) {\n \n // Title\n var elemTitle = d3.select(element)\n .append(\"p\")\n .attr(\"class\", \"title\")\n .style({\n \"font-weight\": \"bold\",\n \"text-align\": \"center\", \n \"margin-bottom\": \"20px\"\n })\n .text(title);\n \n // Datas\n d3.tsv(\"/data/tsr_games_2014.csv\", function(error, data) {\n // Grouping by team name\n data = d3.nest()\n .key(function(d) { return d.short_name; })\n .entries(data)\n .map(function(d) { \n return {\n 'name': d.key, \n 'values': d.values.map(function(d, i, a) {\n return d.tsr_for;\n })\n }; \n });\n \n // TSR addition by days\n data = data.map(function(dat, ind) {\n return {\n 'name' : dat.name, \n 'values': dat.values.map(function(d, i, a) {\n if(i == 0) {\n return d;\n } \n var tsr_for = 0;\n for(var j=0 ; j<i ; j++) {\n tsr_for = tsr_for + parseFloat(data[ind].values[j]);\n }\n return tsr_for + parseFloat(d);\n })\n }; \n });\n\n var margin = {top: 20, right: 80, bottom: 30, left: 50},\n width = 800 - margin.left - margin.right,\n height = 500 - margin.top - margin.bottom;\n\n var x = d3.scale.linear()\n .domain([1, d3.max(data, function(d) { return d.values.length; })])\n .range([0, width]);\n\n var y = d3.scale.linear()\n .domain([d3.min(data, function(d) { return d3.min(d.values); }),\n d3.max(data, function(d) { return d3.max(d.values); })])\n .range([height, 0]);\n\n var color = d3.scale.category20()\n .domain(d3.keys(data[0]).filter(function(key) { return key === \"name\"; }));\n\n var xAxis = d3.svg.axis()\n .scale(x)\n .tickFormat(d3.format('d'))\n .orient(\"bottom\");\n\n var yAxis = d3.svg.axis()\n .scale(y)\n .orient(\"left\");\n\n var line = d3.svg.line()\n .interpolate(\"basis\")\n .x(function(d, i) { return x(i+1); })\n .y(function(d, i) { return y(d); });\n\n // Graph\n var svg = d3.select(element).append(\"svg\")\n .attr(\"width\", width + margin.left + margin.right)\n .attr(\"height\", height + margin.top + margin.bottom)\n .append(\"g\")\n .attr(\"transform\", \"translate(\" + margin.left + \",\" + margin.top + \")\");\n\n svg.append(\"g\")\n .attr(\"class\", \"x axis\")\n .attr(\"transform\", \"translate(0,\" + y(0) + \")\")\n .call(xAxis);\n\n svg.append(\"g\")\n .attr(\"class\", \"y axis\")\n .call(yAxis);\n\n svg.selectAll(\".y line\")\n .attr('class', 'grid')\n .attr(\"x2\", width);\n\n svg.selectAll(\".x line\")\n .attr('class', 'grid')\n .attr(\"y2\", height)\n .attr(\"transform\", \"translate(0,\" + (-y(0)) + \")\");\n\n svg.selectAll(\".x text\")\n .attr(\"transform\", \"translate(-5, -4)\"); \n\n var team = svg.selectAll(\".team\")\n .data(data)\n .enter().append(\"g\")\n .attr(\"class\", \"team\");\n\n var pathes = team.append(\"path\")\n .attr(\"class\", \"line\")\n .attr(\"d\", function(d) { return line(d.values); })\n .style(\"stroke\", function(d) { return color(d.name); });\n \n // Team list\n var div = d3.select(element).append(\"div\")\n .append(\"ul\");\n \n var teams = div.selectAll(\"li\")\n .data(data)\n .enter()\n .append(\"li\")\n .style({ \"border-left\": function(d) { return \"4px solid \"+color(d.name); }, \n \"padding\": \"0 8px 0 4px\", \n \"color\": \"steelblue\", \n \"cursor\": \"default\"\n })\n .html(function(d) { return d.name; })\n .on(\"mouseover\", function(d) {\n pathes.filter(function(t) { return d.name == t.name }).style(\"stroke-width\", \"4.5px\");\n pathes.filter(function(t) { return d.name != t.name }).style(\"stroke-opacity\", \"0.3\");\n d3.select(this).style({ \"background-color\": function(d) { return color(d.name); } });\n d3.select(this).style({ \"color\": \"#FFF\" });\n })\n .on(\"mouseout\", function(d) {\n pathes.filter(function(t) { return d.name == t.name }).style(\"stroke-width\", \"1.5px\");\n pathes.filter(function(t) { return d.name != t.name }).style(\"stroke-opacity\", \"1\");\n d3.select(this).style({ \"background-color\": \"transparent\" });\n d3.select(this).style({ \"color\": \"#205caa\" });\n })\n .on(\"click\", function(d) {\n return false;\n });\n \n // Pathes on mouse over\n pathes\n .on(\"mouseover\", function(d) {\n d3.select(this).style(\"stroke-width\", \"4.5px\");\n pathes.filter(function(t) { return d.name != t.name }).style(\"stroke-opacity\", \"0.3\");\n teams.filter(function(t) { return d.name == t.name }).style({ \"background-color\": function(d) { return color(d.name); } });\n teams.filter(function(t) { return d.name == t.name }).style({ \"color\": \"#FFF\" });\n })\n .on(\"mouseout\", function(d) {\n d3.select(this).style(\"stroke-width\", \"1.5px\");\n pathes.filter(function(t) { return d.name != t.name }).style(\"stroke-opacity\", \"1\");\n teams.filter(function(t) { return d.name == t.name }).style({ \"background-color\": \"transparent\" });\n teams.filter(function(t) { return d.name == t.name }).style({ \"color\": \"#205caa\" });\n });\n });\n}", "function drawHovers(year) {\n // Bisector function to get closest data point: note, this returns an *index* in your array\n var bisector = d3.bisector(function (d, x) {\n return +d.year - x;\n }).left;\n\n // Get hover data by using the bisector function to find the y value\n var years = selectedData.map(function (d) {\n d.values.sort(function (a, b) {\n return +a.year - +b.year;\n });\n return (d.values[bisector(d.values, year)]);\n })\n\n // Do a data-join (enter, update, exit) to draw circles\n var circles = g.selectAll('circle').data(years, function (d) {\n return d.country_area;\n });\n\n circles.enter().append('circle').attr('fill', 'none').attr('stroke', function (d) {\n return colorScale(d.country_area);\n });\n\n circles.transition().duration(0).attr('cx', function (d) {\n return xScale(d.year);\n }).attr('cy', function (d) {\n return yScale(d.value);\n }).attr('r', 15);\n\n circles.exit().remove();\n\n // Do a data-join (enter, update, exit) draw text\n var labels = g.selectAll('.label').data(years, function (d) {\n return d.country_area;\n })\n\n labels.enter().append('text').attr('class', 'label');\n\n labels\n .attr(\"dy\", \".35em\")\n .style('font-size', '0.75em')\n .text(function(d){\n return d.State + \": \" + (Math.round(d.value));})\n .attr('transform', function(d){\n return 'translate(' + xScale(d.year) + \", \" + yScale(d.value) + \")\";\n });\n labels\n .exit().remove();\n\n // labels.transition().duration(0).attr('x', function (d) {\n // return xScale(d.year);\n // }).attr('y', function (d) {\n // return yScale(d.value);\n // }).text(function (d) {\n // return d.State + \": \" + d.value;\n // })\n\n // labels.exit().remove()\n\n }", "function x(d) {\n return d.area;\n}", "function n(e,t){var n=e.width,i=e.height,r=Math.round(t.x*n)%n,o=Math.round(t.y*i)%i;r<0&&(r+=n),o<0&&(o+=i);var a=o*n+r;return e.data[4*a+3]}", "function drawDefault() {\n \n var margin = {top: 10, right: 60, bottom: 20, left:150},\n width = 1100 - margin.left - margin.right,\n height = 600 - margin.top - margin.bottom;\n\n\n var margin2 = {top: 20, right: 20, bottom: 20, left: 150},\n width2 = 1100 - margin2.left - margin2.right,\n height2 = 500 - margin2.top - margin2.bottom;\n\n //used to parse time data on \"year\" only\n var parseTime = d3.timeParse(\"%Y\");\n var xValue = function(d) { return d.year;}\n var xScale = d3.scaleTime().range([0, width-80]);\n var xMap = function(d) { return xScale(xValue(d));};\n\n var yValue = function(d) { return d.category;};\n //var yScale = d3.scalePoint().range([height, 0]).padding(1);\n\n var yScale = d3.scaleLinear().range([height, 0]);\n\n //var yMap = function(d) { return yScale(yValue(d))+d3.randomUniform(15, 45)();};\n var yMap = function(d) { return yScale(yValue(d));};\n\n\n var color = d3.scaleOrdinal().domain([\"All\",\"North America\",\"South America\", \"Europe\",\"Africa\",\"Asia\",\"Australia\" ]).range([\"#9b989a\",\"#beaed4\",\"#fb9a99\",\"#a6d854\",\"#80b1d3\",\"#ffd92f\",\"#ff9933\"]);\n\n var circles;\n\n //#fbb4ae \n var xAxis = d3.axisBottom().scale(xScale).ticks(13).tickSize(0,9,0);\n var yAxis = d3.axisLeft().scale(yScale).ticks(11).tickSize(0,9,0).tickFormat( function(d) { return mapfunc(d);});\n\n //.tickFormat(function(d) { return mapping[d.category2]; });\n var svg = d3.select('body')\n .append('svg')\n .attr(\"id\", 'default')\n .attr('width', width + margin.left + margin.right)\n .attr('height', height + margin.top + margin.bottom)\n .append('g')\n .attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');\n //For draw cell\n // var svg2 = d3.select('body')\n // .append('svg')\n // .attr(\"id\", 'cell')\n // .attr('width', width2 + margin2.left + margin2.right)\n // .attr('height', height2 + margin2.top + margin2.bottom);\n var svg2 = d3.select('body')\n .append('svg')\n .attr(\"id\", 'cell')\n .attr('width', width2 + margin2.left + margin2.right)\n .attr('height', height2 + margin2.bottom + margin2.top);\n\n\n var tooltip = d3.select(\"body\").append(\"div\")\n .attr(\"class\", \"tooltip\")\n .style(\"opacity\", 0);\n \n function rowConverter(d) {\n return {\n year2: +d.year,\n year: parseTime(d.yearMap),\n cat: d.cat,\n name: d.name,\n category: d.catMap,\n country: d.country,\n award: d.award,\n Rationale: d.Rationale,\n continent: d.continent\n }\n }\n\n d3.csv('full.csv',rowConverter).then(function(data){\n// data.forEach(function(d){\n// d.year2 = +d.year;\n// d.year = parseTime(d.yearMap); \n// d.cat = d.cat;\n// d.name=d.name;\n// d.category = d.catMap;\n// d.country=d.country;\n// d.award = d.award;\n// d.Rationale = d.Rationale;\n// d.continent = d.continent;\n// });\n console.log(\"data\", data);\n\n var asia = [];\n var namerica = [\"All\"];\n var samerica = [\"All\"];\n var africa = [\"All\"];\n var europe = [\"All\"];\n var australia = [\"All\"];\n\n // organizing countries by their continent\n for (var i = 0; i < data.length; i++) {\n if (data[i].continent == \"Asia\" && !asia.includes(data[i].country))\n {\n asia.push(data[i].country);\n }\n if (data[i].continent == \"Africa\" && !africa.includes(data[i].country))\n {\n africa.push(data[i].country);\n }\n if (data[i].continent == \"Australia\" && !australia.includes(data[i].country))\n {\n australia.push(data[i].country);\n }\n if (data[i].continent == \"Europe\" && !europe.includes(data[i].country))\n {\n europe.push(data[i].country);\n }\n if (data[i].continent == \"North America\" && !namerica.includes(data[i].country))\n {\n namerica.push(data[i].country);\n }\n if (data[i].continent == \"South America\" && !samerica.includes(data[i].country))\n {\n samerica.push(data[i].country);\n }\n }\n console.log(\"asia\", asia);\n console.log(\"africa\", africa);\n console.log(\"australia\", australia);\n console.log(\"europe\", europe);\n console.log(\"namerica\", namerica);\n console.log(\"samerica\", samerica);\n\n xScale.domain([d3.min(data, function(d){return d.year;}),\n d3.max(data,function(d){return d.year;})]).nice();\n\n yScale.domain([d3.min(data, function(d) { return d.category;})-1, d3.max(data, function(d) { return d.category;})]).nice();\n\n //\t\tyScale.domain(d3.extent(data, function(d){\n //\t\t\treturn d.category2;\n //\t\t})).nice();\n //yScale.domain(data.map(function(d) { return d.category; }));\n\n\n\n\n var x = svg.append('g')\n .attr('transform', 'translate(0,' +height + ')')\n .attr('class', 'x axis')\n .call(xAxis);\n\n var zoom = d3.zoom().on(\"zoom\",zoomed);\n\n // y-axis is translated to (0,0)\n var y = svg.append(\"g\")\n .attr(\"class\", \"y axis\")\n .call(yAxis)\n .selectAll(\"text\")\n .attr(\"y\", 26)\n .attr(\"x\",-5)\n .attr(\"cx\", -1000)\n .attr(\"cy\", -1000)\n .attr(\"dy\", \".85em\")\n .attr(\"font-weight\",\"bold\");\n //.attr(\"transform\", \"rotate(60)\")\n\n\n // Draw the x gridlines\n var xgrid = svg.append(\"g\")\n .attr(\"class\", \"grid\")\n .attr(\"transform\", \"translate(0,\" + height+ \")\")\n .call(make_x_gridlines(xScale, 13).tickSize(-height).tickFormat(\"\"))\n\n\n\n // Draw the y gridlines\n var ygrid = svg.append(\"g\")\n .attr(\"class\", \"grid\")\n .call(make_y_gridlines(yScale, 11)\n .tickSize(-width+80)\n .tickFormat(\"\")\n ) \n\n\n circles=svg.selectAll(\".dot\")\n .data(data)\n .enter().append(\"circle\")\n .attr(\"class\", \"dot\")\n .attr(\"r\", 4)\n .attr(\"cx\", xMap)\n .attr(\"cy\", yMap)\n .style(\"fill\", function(d) { return color(d.continent);})\n .on(\"mouseover\", function(d) {\n d3.select(this)\n tooltip.transition()\n .duration(200)\n .attr('r',10)\n .style(\"opacity\", .9);\n tooltip.html(d.name+\"<br/>\"+\"Year: \"+ d.year2+\"<br/>\"+\"Country: \"+d.country+\"<br/>\"+\"Award: \"+d.award+\" - \"+d.cat+\"<br/>\"+\"________________\"+\"<br/>\"+d.Rationale) \n .style(\"left\", (d3.event.pageX -4) + \"px\")\n .style(\"top\", (d3.event.pageY+2 ) + \"px\");\n })\n .on(\"mouseout\", function(d) {\n tooltip.transition()\n .duration(500)\n .style(\"opacity\", 0);\n });\n //TODO: the zoom not looks good \n // svg.call(d3.zoom()\n // .scaleExtent([1/2, 32])\n // .on(\"zoom\", zoomed));\n // \n\n // drop down menu\n // referenced: https://www.d3-graph-gallery.com/graph/connectedscatter_select.html\n var dropdownArray = [\"namerica\", \"samerica\", \"europe\", \"africa\", \"asia\", \"australia\"];\n \n namerica = namerica.sort();\n namerica.splice(1, 0, \"None\");\n d3.select(\"#namerica\")\n .selectAll('myOptions')\n .data(namerica)\n .enter()\n .append('option')\n .text(function (d) { return d; }); // text showed in the menu\n \n samerica = samerica.sort();\n samerica.splice(1, 0, \"None\");\n d3.select(\"#samerica\")\n .selectAll('myOptions')\n .data(samerica)\n .enter()\n .append('option')\n .text(function (d) { return d; }); // text showed in the menu\n \n // drop down menu\n europe = europe.sort();\n europe.splice(1, 0, \"None\");\n d3.select(\"#europe\")\n .selectAll('myOptions')\n .data(europe)\n .enter()\n .append('option')\n .text(function (d) { return d; }); // text showed in the menu\n \n // drop down menu\n africa = africa.sort();\n africa.splice(1, 0, \"None\");\n d3.select(\"#africa\")\n .selectAll('myOptions')\n .data(africa)\n .enter()\n .append('option')\n .text(function (d) { return d; }); // text showed in the menu\n \n // drop down menu\n asia = asia.sort();\n asia.splice(0, 0, \"All\");\n asia.splice(1, 0, \"None\");\n d3.select(\"#asia\")\n .selectAll('myOptions')\n .data(asia)\n .enter()\n .append('option')\n .text(function (d) { return d; }); // text showed in the menu\n \n // drop down menu\n australia = australia.sort();\n australia.splice(1, 0, \"None\");\n d3.select(\"#australia\")\n .selectAll('myOptions')\n .data(australia)\n .enter()\n .append('option')\n .text(function (d) { return d; }); // text showed in the menu\n \n d3.selectAll(\".dropdown\").on(\"change\", function() {\n // color.domain()[ind] is the continent the country belongs to\n // connecting the dropdown with the legend\n var ind = dropdownArray.indexOf(d3.select(this).attr(\"id\")) + 1;\n update(d3.select(this), data, color.domain()[ind], color.domain());\n });\n \n // draw legend\n var legend = svg.selectAll(\".legend\")\n .data(color.domain())\n .enter().append(\"g\")\n .attr(\"class\", \"legend\")\n .attr(\"id\", function(d, i){\n return color.domain()[i];}) // assign ID to each legend\n .attr(\"transform\", function(d, i) { return \"translate(0,\" + i * 27 + \")\"; });\n \n legend.append(\"select\");\n \n // draw legend colored rectangles\n legend.append(\"rect\")\n .attr(\"x\", width - 50)\n .attr(\"rx\",5)\n .attr(\"ry\",5)\n .attr(\"width\", 110)\n .attr(\"height\", 25)\n .style(\"fill\", color)\n .attr(\"id\", function(d){\n return \"rect\"+d.replace(\" \",\"\");});\n \n // Adding click event\n legend.on(\"click\", function(type) {\n\n\n //dim all of the legends\n //d3.selectAll(\".legend\")\n // .style(\"opacity\", 0.1);\n // make the one selected be un-dimmed\n //d3.select(this)\n // .style(\"opacity\", 1);\n\n //Show if 'All' selected\n if (d3.select(this).attr('id') == 'All') {\n // turns on all buttons and dots\n if (d3.select(this).select(\"rect\").style(\"opacity\") == 0.4) {\n d3.selectAll(\".dot\")\n .style(\"opacity\", 1);\n d3.selectAll(\"rect\")\n .style(\"opacity\", 1); \n // ________________________________________________________________________________________________________\n d3.selectAll(\".dropdown\").property(\"value\", \"All\");\n }\n // grays out all buttons and dots\n else {\n d3.selectAll(\".dot\")\n .style(\"opacity\", 0.1);\n d3.selectAll(\"rect\")\n .style(\"opacity\", 0.4);\n d3.selectAll(\".dropdown\").property(\"value\", \"None\");\n }\n } else {\n // ___________________________________________________________________________________________________________\n // if continent button clicked, change dropdown menu of that button to All\n var indx = color.domain().indexOf(d3.select(this).attr('id'));\n var dropdown = \"#\"+dropdownArray[indx-1];\n console.log(\"in legend, dropdown id: \", dropdown);\n \n // grays out the \"All\" button\n d3.select(\"#rectAll\").style(\"opacity\", 0.4);\n // highlights/colors button and dots belonging to continent\n if (d3.select(this).select(\"rect\").style(\"opacity\") == 0.4) {\n d3.selectAll(\".dot\")\n .filter(function(d){\n return d[\"continent\"] == type\n })\n //Make this line seen\n .style(\"opacity\", 1);\n d3.select(this).select(\"rect\").style(\"opacity\", 1);\n d3.select(dropdown).property(\"value\", \"All\");\n }\n // grays out buttons and dots belonging to the continent\n else {\n d3.selectAll(\".dot\")\n .filter(function(d){\n return d[\"continent\"] == type\n })\n //Make this line grayed\n .style(\"opacity\", 0.1);\n d3.select(this).select(\"rect\").style(\"opacity\", 0.4);\n d3.select(dropdown).property(\"value\", \"None\");\n }\n countingIters();\n console.log(d3.select(this).attr('id'));\n\n // PREVIOUS CODE\n // //Select all dot and hide\n // d3.selectAll(\".dot\")\n // .style(\"opacity\", 0.1)\n // .filter(function(d){\n // return d[\"continent\"] == type\n // })\n // //Make this line seen\n // .style(\"opacity\", 1);\n // \n // d3.selectAll(\"rect\")\n // .style(\"opacity\", 0.1);\n // d3.select(this).select(\"rect\").style(\"opacity\", 1);\n // console.log(\"clicked id\", d3.select(this).attr('id'));\n // console.log(\"id rect\", d3.select(this).select(\"rect\").attr('id'));\n // \n // if (d3.select(this).select(\"rect\").style(\"opacity\") == 1)\n // {\n // console.log(\"rectangle opacity is 1\");\n // }\n } \n })\n\n // draw legend text\n legend.append(\"text\")\n .attr(\"x\", width+3)\n .attr(\"y\", 7)\n .attr(\"dy\", \"0.65em\")\n .style(\"text-anchor\", \"middle\")\n .style(\"font-size\",\"14px\")\n .style(\"font-family\",\"sans-serif\")\n .text(function(d) { return d;})\n\n\n //Clickabl legend ref: http://bl.ocks.org/WilliamQLiu/76ae20060e19bf42d774 \n var categoryMap = [\"Art\", \"Literature\", \"Medicine\", \"Chemistry\", \"Physics\", \"Math\", \"Computer\", \"Peace & Leadership\", \"Pioneers\"];\n\n svg.on(\"click\", function() {\n //Get click coordinate\n var coords = d3.mouse(this);\n //Convert pixel to data\n var posX = xScale.invert(coords[0]),\n posY = Math.floor(yScale.invert(coords[1]));\n var category = categoryMap[posY],\n date = new Date(posX),\n year = date.getFullYear();\n\n //Find decade boundary given year\n var decadeLower = year - year%10,\n decadeUpper = decadeLower + 10;\n\n //Get relevant data\n var cellData = data.filter(function(d) {\n return d[\"cat\"] === category && d[\"year2\"] < decadeUpper && d[\"year2\"] >= decadeLower\n });\n clearCell();\n drawCell(margin2, color, decadeLower, decadeUpper, cellData);\n });\n\n function zoomed() {\n //Create new scale based on event\n var new_xScale = d3.event.transform.rescaleX(xScale)\n var new_yScale = d3.event.transform.rescaleX(yScale)\n\n\n //Update axes\n x.call(xAxis.scale(new_xScale));\n xgrid.call(make_x_gridlines(new_xScale, 13).tickFormat(\"\"));\n ygrid.call(make_y_gridlines(new_yScale, 11).tickFormat(\"\"));\n\n //Update scatter plot and associated text\n svg.selectAll(\".dot\")\n .attr(\"transform\", d3.event.transform);\n svg.selectAll(\".text\")\n .attr(\"transform\", d3.event.transform);\n svg.selectAll(\".grid\")\n .attr(\"transform\",\n d3.event.transform);\n } \n }); \n\n}", "function local_numbering(d){\n for (let i = 0; i < d.length; i++){\n d3.selectAll('.vertex-'+ d[i]).attr('indexing', 'local');\n d3.selectAll('.vertex-'+ d[i])\n .selectAll('text')\n .attr('style', 'display:true;')\n .text(i)\n .attr('fill', txt_color.local)\n ;\n d3.selectAll('.vertex-'+ d[i]).selectAll('circle')\n .attr('style', 'display:true;')\n .attr('stroke-opacity', '1')\n .attr('fill', point_color.local)\n ;\n }\n title.text('Numérotation Locale');\n}", "function draw_line(node, filename, color, color_index, label) {\n\nd3.tsv(filename, function(error, data) {\n data.forEach(function(d) {\n console.log(d);\n d.num = +d.num;\n d.rate = +d.rate;\n });\n\n //y.domain(d3.extent(data, function(d) { return d.rate; }));\n x.domain(d3.extent(data, function(d) { return d.num; }));\n if(label) {\n y.domain([0, label]);\n }\n else {\n y.domain([0, 1]);\n }\n\n node.append(\"g\")\n .attr(\"class\", \"x axis\")\n .attr(\"transform\", \"translate(0,\" + height + \")\")\n .call(xAxis)\n .append(\"text\")\n .attr(\"x\", 330)\n .attr(\"y\", 30)\n .text(\"Number of cars\");\n\n if(label) {\n node.append(\"g\")\n .attr(\"class\", \"y axis\")\n .call(yAxis)\n .append(\"text\")\n .attr(\"transform\", \"rotate(-90)\")\n .attr(\"y\", 6)\n .attr(\"dy\", \".71em\")\n .style(\"text-anchor\", \"end\")\n .text(\"Number of packets\");\n }\n else {\n node.append(\"g\")\n .attr(\"class\", \"y axis\")\n .call(yAxis)\n .append(\"text\")\n .attr(\"transform\", \"rotate(-90)\")\n .attr(\"y\", 6)\n .attr(\"dy\", \".71em\")\n .style(\"text-anchor\", \"end\")\n .text(\"Probability\");\n }\n\n node.append(\"path\")\n .datum(data)\n .attr(\"class\", \"line\")\n .attr(\"d\", line)\n .attr(\"fill\", \"none\")\n .attr(\"stroke\", color(color_index));\n});\n\n}", "function ready([kansas]) { \n var min = d3.min(HousingCostData, function(d){return +d[0];});\n var max = d3.max(HousingCostData, function(d){return +d[0];});\n \n console.log(min);\n console.log(max);\n console.log(kansas)\n console.log(topojson.feature(kansas, kansas.objects.tracts));\n //console.log(topojson.feature(kansas, kansas.objects.tracts).features);\n //create tooltip.\n var tooltip = d3.select(\"body\").append(\"div\")\t\n .attr(\"class\", \"tooltip\")\t\t\t\t\n .style(\"opacity\", 0);\n \n //Using Mike Bostocks CA pop density example https://bl.ocks.org/mbostock/5562380 for reference\n var Tracts = svg.append(\"g\")\n .selectAll(\"path\")\n //topojson.feature converts topo.json file data to geojson data.\n //topojson files use geometries and geometry collections while\n //geojson uses features and featured collections\n //.features returns the parsed object data\n .data(topojson.feature(kansas, kansas.objects.tracts).features)\n .enter().append(\"path\")\n .attr(\"fill\", function(d) {\n //console.log(d);\n //inital color is a function of density for a specific tract\n return color(d.properties.density);\n })\n .attr(\"stroke\", \"#000\")\n .attr(\"stroke-opacity\", 0)//set tract lines to be invisible until we toggle them on later\n .attr(\"d\", path)\n .on(\"mouseover\", function(d){\n tooltip.transition()\n .duration(200)\n .style(\"opacity\", 0.9);\n })\n .on(\"mousemove\", function(d){\n tooltip.html(function(){\n if(showHousingCosts){//if we are looking at Housing Data\n //look for an object b with a tract b[3] from our housing data whose tract matches our current tract d.id.slice(3,9)\n //d.id.slice(0,2) is our 3 digit county code so we ignore it. \n var tractData = HousingCostData.find(function(b){\n return b[3] == d.id.slice(3, 9);//\"051072600\";\n });\n //tractData[0] contains the actual monthly housing cost\n //here we try to compute the avg cost for a county rather then just tract\n //County Obj is just used to get the county name. Where County[0] contains the name\n //dataset just contains county names and their fips code\n var CountyObj = dataset.find(function(d){return d[2] == tractData[2];});//\n var countyCost = 0;//to keep track of monthly housing cost for county\n var count = 0;\n //Get an array of tract objects who share the same county.\n //add up all tract costs and divide by number of tracts in that county\n var CountyData = HousingCostData.filter(function(d2){return d2[2] == tractData[2]});\n CountyData.forEach(function(d){\n var temp = +d[0];\n countyCost += temp;\n count +=1;\n });\n countyCost = d3.format(\",\")(Math.floor(countyCost/count));\n tractCost = d3.format(\",\")(tractData[0]);\n //console.log(CountyData);\n return CountyObj[0]+\"<br><br>\"+\"County Avg. Monthy Housing Cost: $\"+countyCost+\"<br><br>\"+\"Tract Avg. Monthly Housing Cost:\"+\" $\" + tractCost;\n }\n else{//if we are looking at pop. density data\n var FIPS = d.id.slice(0,3);//get FIPS county code from current feature data\n var countyObj = dataset.find(function(e){return e[2] == FIPS});//get county obj associated with current fips code.\n //group together all tract data\n var tractDensities = topojson.feature(kansas, kansas.objects.tracts).features.filter(function(e){return e.id.slice(0,3) == FIPS;});\n var countyDensity = 0;\n var count = 0;\n //for each county, add up all tract pop. densities to get total county density\n tractDensities.forEach(function(d){\n countyDensity += d.properties.density;\n });\n \n //console.log(d.id.slice(0,3));\n //print county name, current selected county density, and current selected tract density\n return countyObj[0] + \"<br><br>\" + \"County Population Per Square Mile: \" + countyDensity + \"<br><br>\" + \"Tract Population Per Square Mile: \" + d.properties.density;//d.id;\n }\n })//d3.select(this).attr(\"class\")\n .style(\"left\", (d3.event.pageX + 10) + \"px\") //position tooltip at mouse position\n .style(\"top\", (d3.event.pageY) + \"px\");\n })\n .on(\"mouseout\", function(d) {\t//make tooltip fade away\t\n tooltip.transition()\t\t\n .duration(500)\t\t\n .style(\"opacity\", 0);\n });\n\n //get innerCounty Boundaries.\n //this was computed during the projection of the map but it seems like the idea is\n //to find all geometries whose first 3 numbers of their 'id' are the county fips codes\n //so we would just create a new filtered array of objects where each object has a list\n //of tracts with the same first 3 numbers in their id\n //To get inner counties we go through each arc of our county data and check adjacent polygons a and b.\n //According to Bostocks tutorial, by convention a and b would be on the same exterior arc.\n //So we can simply return geometries with arcs that do not have an adjacent polygons a and b\n var Counties = svg.append(\"path\")\n .datum(topojson.feature(kansas, kansas.objects.innerCounties))\n .attr(\"fill\", \"none\")\n .attr(\"stroke\", \"#000\")\n .attr(\"stroke-opacity\", 0.3)\n .attr(\"d\", path);\n\n //For the state boundary you would just do the opposite of the above\n //You could return geometries with arcs that share adjacenet polygons a and b.\n //state stroke opacity set to 0 to be invisble until we toggle it later\n var State = svg.append(\"path\")\n .datum(topojson.feature(kansas, kansas.objects.State))\n .attr(\"fill\", \"none\")\n .attr(\"stroke\", \"#000\")\n .attr(\"stroke-opacity\", 0)\n .attr(\"d\", path);\n \n //draw Legend\n //from mike bostock CA pop Density example\n ////////////////////////\n var g = svg.append(\"g\")\n .attr(\"class\", \"key\")\n .attr(\"transform\", \"translate(-140,580)\");\n \n //console.log(color.range());\n \n g.selectAll(\"rect\")\n //invertExtent returns extent of values in our color domain, for the corresponding value in the range\n //The if statements takes care of undefined behavior\n //We have undefined behavior becuase our range has 9 elements while our domain only has 8\n //invertExtent tries to equally distribute unique pairs of min/max in the range of the range values among every domain element.\n //Example: domain is [0,1] and range is [\"color1, \"color2\", \"color3\"]\n //invertExtent(\"color1\") is[undefined,1]\n //invertExtent(\"color2\") is [0,1]\n //inverExtenet(\"color3\") is [1, undefined]\n //Bostock knows that d[0] from d=[undefined,1] ,which will be our first call to invertExtent,\n //will be undefined so he sets it to the first value of our x.domain which is 0.\n //He does this with th very last set of min/mad values which will be [4000, undefined] so he\n //checks for null and sets d[1] to be the last value in our x domain\n //I think he does this on purpose so he can manually set the min and max values of his legened\n //and let the values in between be determined programatically, but also i think it just made it easier\n //for him to decide the width of the colored 'strips' in his legend\n .data(color.range().map(function(d) {\n d = color.invertExtent(d);\n console.log(d);\n if (d[0] == null) d[0] = x.domain()[0];\n if (d[1] == null) d[1] = x.domain()[1];\n return d;\n }))\n .enter().append(\"rect\")//creates the different colored 'strips' on the legend.\n .attr(\"height\", 8)\n //positions the left side of the rectangle to our min value given by\n //d = color.invertEctent(d)\n //where d[0] is the min and d[1] is the max\n //the width is simply the max range index - min range index for a specifc domain value given\n //For 8 domain values and 9 range values, invertExtent will return only 8 min values, since the first\n //min value will be undefined. However, we manually assigned a min value earlier for a total\n //of 9 min values given. We can simply pass this to our color scale for the fill\n //since our color scale has a range of 9 and we are passing it 9 values from 0(given from x domain)\n //plus [1-8] since each min value will be one plus the last.\n //i.e d1=[0,1] d2=[1,2] d3=[2,3]...\n .attr(\"x\", function(d) { return x(d[0]); })\n .attr(\"width\", function(d) { return x(d[1]) - x(d[0]); })\n .attr(\"fill\", function(d) { return color(d[0]); });\n \n//positions the legend caption \ng.append(\"text\")\n .attr(\"class\", \"caption\")\n .attr(\"x\", x.range()[0])\n .attr(\"y\", -6)\n .attr(\"fill\", \"#000\")\n .attr(\"text-anchor\", \"start\")\n .attr(\"font-weight\", \"bold\")\n .text(\"Population per square mile\");\n\n \n\n//d3.select(\".x-axis\").remove();\n //sets tick labels to our domain which we defined very early on\nvar axis = g.append(\"g\")\n .attr(\"class\", \"x-axis\")\n .call(d3.axisBottom(x)\n .tickSize(13)\n .tickValues(color.domain()).tickFormat(function(d){\n if(showHousingCosts){\n return \"$\" + d;\n }\n else{\n return d;\n }\n})) \n .select(\".domain\")//makes the axis line disappear\n .remove();\n//console.log(d3.select(\".axis\"));\n\n\n\n ////////////////////////\n //Buttons//\n //pretty straightforward just creating some rectangle buttons\n var TractsBtn = svg.append(\"rect\")\n .attr(\"x\", width-100)\n .attr(\"y\", height/8 - 50)\n .attr(\"width\", 100)\n .attr(\"height\", 50)\n .attr(\"stroke\", \"black\")\n .attr(\"stroke-opacity\", 0)\n .attr(\"fill\", color(10));\n svg.append(\"text\")\n .attr(\"x\", width-95)\n .attr(\"y\", height/8 - 20)\n .text(\"Tracts On/Off\");\n \n var StateBtn = svg.append(\"rect\")\n .attr(\"x\", width-100)\n .attr(\"y\", height/8 + 50)\n .attr(\"width\", 100)\n .attr(\"height\", 50)\n .attr(\"stroke\", \"black\")\n .attr(\"stroke-opacity\", 0)\n .attr(\"fill\", color(10))\n svg.append(\"text\")\n .attr(\"x\", width-90)\n .attr(\"y\", height/8 + 80)\n .text(\"State On/Off\");\n \n var LegendBtn = svg.append(\"rect\")\n .attr(\"x\", width-300)\n .attr(\"y\", height/2 + 80)\n .attr(\"width\", 110)\n .attr(\"height\", 50)\n .attr(\"stroke\", \"black\")\n .attr(\"stroke-opacity\", 0)\n .attr(\"fill\", color(10));\n svg.append(\"text\")\n .attr(\"x\", width-290)\n .attr(\"y\", height/2 + 110)\n .text(\"Change Color\");\n \n var NewMapBtn = svg.append(\"rect\")\n .attr(\"x\", width-100)\n .attr(\"y\", height/8 + 150)\n .attr(\"width\", 100)\n .attr(\"height\", 50)\n .attr(\"stroke\", \"black\")\n .attr(\"stroke-opacity\", 0)\n .attr(\"fill\", color(10));\n svg.append(\"text\")\n .attr(\"x\", width-90)\n .attr(\"y\", height/8 + 180)\n .text(\"Change Data\");\n \n //if we toggle tracts just make the lines appear/disapear based \n //on whether the button is clicked or not\n TractsBtn.on(\"click\",function(){\n if(Counties_bool){\n Counties_bool = false;\n Tracts.attr(\"stroke-opacity\", 0.3);\n TractsBtn.attr(\"stroke-opacity\", 0.5);\n //Counties.attr(\"stroke-opacity\", 0);\n }\n else{\n Counties_bool = true;\n Tracts.attr(\"stroke-opacity\", 0);\n TractsBtn.attr(\"stroke-opacity\", 0);\n //Counties.attr(\"stroke-opacity\", 0.3);\n }\n //console.log(Counties_bool);\n });\n //same logic for state boundaries\n StateBtn.on(\"click\", function(){\n if(State_bool){\n State_bool = false;\n State.attr(\"stroke-opacity\", 0.5);\n StateBtn.attr(\"stroke-opacity\", 0.5);\n }\n else{\n State_bool = true;\n State.attr(\"stroke-opacity\", 0);\n StateBtn.attr(\"stroke-opacity\", 0);\n }\n });\n \n NewMapBtn.on(\"click\",function(d){\n //change data shown by\n //chaning the color domain and x domain\n //and changing the data used for the fill\n Tracts.attr(\"fill\", function(d){\n if(!showHousingCosts){\n color.domain([250, 500, 1000, 2000, 3000, 4000, 5000,6000]);\n x.domain([0, 6000]);\n var tractData = HousingCostData.find(function(b){\n return b[3] == d.id.slice(3, 9);//\"051072600\";\n });\n //console.log(tractData);\n \n return color(tractData[0]);\n }\n else{\n color.domain([1, 10, 50, 200, 500, 1000, 2000, 4000]);\n x.domain([0, 4500]);\n return color(d.properties.density); \n }\n });\n //change title\n if(!showHousingCosts){\n showHousingCosts = true;\n document.getElementById(\"title\").innerHTML = \"Kansas Monthly Housing Costs, 2018\";\n\n }\n else{\n showHousingCosts = false;\n document.getElementById(\"title\").innerHTML = \"Kansas Population Density, 2018\";\n }\n updateLegend();\n \n });\n \n LegendBtn.on(\"click\", function(){\n //If legened button is clicked\n //we change the color scheme and redraw\n //current map using new color scheme\n if(Legend_bool){\n //console.log(\"hi\");\n //Legend_bool = false;\n console.log(color.range());\n Legend = d3.schemeBlues[9];\n color.range(Legend);\n Tracts.attr(\"fill\", function(d){\n if(showHousingCosts){\n var tractData = HousingCostData.find(function(b){\n return b[3] == d.id.slice(3, 9);//\"051072600\";\n });\n //console.log(tractData);\n return color(tractData[0]);\n }\n else{\n return color(d.properties.density); \n } \n });\n StateBtn.attr(\"fill\", color(10));\n TractsBtn.attr(\"fill\", color(10));\n LegendBtn.attr(\"fill\", color(10));\n NewMapBtn.attr(\"fill\", color(10)); // change button colors\n LegendBtn.attr(\"stroke-opacity\", 0.5);\n //redraw Legend\n //console.log(color.range());\n tt=1;\n Legend_bool = false;\n updateLegend();\n //Legend_bool = false;\n\n }\n else{\n //console.log(\"hello\");\n Legend = d3.schemeOrRd[9];\n color.range(Legend);\n Tracts.attr(\"fill\", function(d){\n if(showHousingCosts){\n var tractData = HousingCostData.find(function(b){\n return b[3] == d.id.slice(3, 9);//\"051072600\";\n });\n //console.log(tractData);\n return color(tractData[0]);\n }\n else{\n return color(d.properties.density); \n }\n });\n StateBtn.attr(\"fill\", color(10));\n TractsBtn.attr(\"fill\", color(10));\n LegendBtn.attr(\"fill\", color(10));\n NewMapBtn.attr(\"fill\", color(10));\n LegendBtn.attr(\"stroke-opacity\", 0);\n //redraw Legend\n updateLegend();\n Legend_bool = true;\n //console.log(Legend);\n }\n });\n function updateLegend(){\n //tried to update Legend info\n //http://bl.ocks.org/alansmithy/e984477a741bc56db5a5 used for reference\n //\n //change legend caption\n if(showHousingCosts){\n g.selectAll(\".caption\").text(\"Monthly Housing Cost in U.S Dollars\");\n }\n else{\n g.selectAll(\".caption\").text(\"Population per square mile\"); \n }\n g.selectAll(\"rect\").remove(); //remove all drawn rectangles from 'previous' legened\n g.selectAll(\"rect\")\n .data(color.range().map(function(d) {//recompute rectangle strip values\n d = color.invertExtent(d);\n if (d[0] == null) d[0] = x.domain()[0];\n if (d[1] == null) d[1] = x.domain()[1];\n return d;\n }))\n .enter().append(\"rect\")\n .attr(\"height\", 8)\n .attr(\"x\", function(d) { return x(d[0]); })\n .attr(\"width\", function(d) { return x(d[1]) - x(d[0]); })\n .attr(\"fill\", function(d) { return color(d[0]); });\n //redraw tick marks with new domain data with in dollar format or not\n g.select(\".x-axis\").call(d3.axisBottom(x)\n .tickSize(13)\n .tickValues(color.domain()).tickFormat(function(d){\n if(showHousingCosts){\n return \"$\" + d3.format(\",\")(d);\n }\n else{\n return d;\n }\n})) \n .select(\".domain\")\n .remove();\n }; \n \n\n \n}", "function get_path(link) {\n var curvature = 0.5;\n //var x0 = link.from.x + link.from.width;\n //var x1 = link.to.x;\n var x0 = link.x0;\n var x1 = link.x1;\n var xi = d3.interpolateNumber(x0, x1);\n var x2 = xi(curvature);\n var x3 = xi(1 - curvature);\n //var y0 = (link.from.height/link.from.chars.length)*link.from.out_link_count + link_width/2;\n //var y1 = (link.to.height/link.to.chars.length)*link.to.in_link_count + link_width/2;\n var y0 = link.y0;\n var y1 = link.y1;\n //link.from.out_link_count++;\n //link.to.in_link_count++;\n \n \n return \"M\" + x0 + \",\" + y0\n + \"C\" + x2 + \",\" + y0\n + \" \" + x3 + \",\" + y1\n + \" \" + x1 + \",\" + y1;\n\t\n //var xkcd_interp = d3.svg.line().interpolate(xinterp);\n //return xkcd_interp([[x0,y0], [x1,y1]]);\n}", "function getData(){\n//load json file \nd3.json(\"samples.json\").then((data)=> {\n console.log(data)\n\n\n//grab id names\nvar names = data.names\nconsole.log(names)\n \nnames.forEach(function(name) {\n \ndropdown.append(\"option\").text(name).property(\"value\")})\n//select userInput Variable and dropdownMenu selection\nvar dropdownMenu = d3.select(\"#selDataset\");\nvar userInput = dropdownMenu.property(\"value\");\n\n//getting Demographic data\nvar demo_data=data.metadata.filter(meta=>meta.id.toString() === userInput)\nconsole.log(demo_data)\n//Creating demo_info\n//add to div sample-metadata\nvar demo_info = d3.select(\"#sample-metadata\")\ndemo_info.html(\"\")\ndemo_info.append(\"h5\").text(`ID: ${userInput}`)\ndemo_info.append(\"h5\").text(`Gender:${demo_data[0].gender}`);\ndemo_info.append(\"h5\").text(`Ethnicity:${demo_data[0].ethnicity} `);\ndemo_info.append(\"h5\").text(`Age:${demo_data[0].age} `);\ndemo_info.append(\"h5\").text(`Location:${demo_data[0].location} `);\ndemo_info.append(\"h5\").text(`Belly Button Type:${demo_data[0].bbtype}`);\ndemo_info.append(\"h5\").text(`wfreq: ${demo_data[0].wfreq}`);\n\n\n//set filtered data to filtered ID \nvar filteredData= data.samples.filter(id => id.id === userInput)\nconsole.log(filteredData)\n\n\n//x values,marker colors\nvar filteredID = filteredData.map(id=>id.otu_ids)\nconsole.log(filteredID)\n\n//y values,marker size\nvar filteredSample = filteredData.map(sample=>sample.sample_values)\nconsole.log(filteredSample)\n\n// creating Top 10 OTU Id's\nvar slicedID = filteredID[0].slice(0,10).reverse()\nvar labels = slicedID.map(d=>\"OTU \" + d)\nconsole.log(labels)\n// creaitng lables for y axis\nvar slicedSample = filteredSample[0].slice(0,10).reverse()\nconsole.log(slicedID)\nconsole.log(slicedSample)\n\n\n//creating traces for bar graphs\nvar trace1={\n x: slicedSample,\n y: labels, \n text: slicedID, \n type: \"bar\",\n orientation: \"h\"\n};\n\n\nvar data = [trace1];\n\nvar layout = {\n title: \"Top 10 OTU ID's\", \n margin: {\n l:100,\n r:100,\n t:100,\n b:30\n }\n}\n\n\n\nPlotly.newPlot(\"bar\", data,layout)\n\n\n// Bubble Chart \nvar trace2 = {\n x: slicedID,\n y: slicedSample,\n mode: 'markers',\n marker: {\n size: slicedSample,\n color: slicedID\n }\n };\n \n var data1 = [trace2];\n \n var layout = {\n title: 'Marker Size',\n showlegend: false,\n height: 600,\n width: 1300\n };\n \n Plotly.newPlot('bubble', data1, layout);\n\n})}", "drawChart() {\n let margin = {top: 20, right: 20, bottom: 30, left: 40},\n width = this.props.width - margin.left - margin.right,\n height = this.props.height - margin.top - margin.bottom;\n\n // set up to adjust width of nodes based on cost/time\n const maxWidth = Math.max(...Object.values(this.props.nodeWidths));\n\n // create faux DOM\n const div = new ReactFauxDOM.Element('div')\n\n let svg = d3.select(div).append(\"svg\")\n .attr(\"width\", width + margin.left + margin.right)\n .attr(\"height\", height + margin.top + margin.bottom)\n .append(\"g\")\n .attr(\"transform\", `translate(${margin.left},${margin.top})`);\n\n var formatNumber = d3.format(\",.0f\"),\n format = function(desc, val) { return \"\\n\" + desc + \": \" + formatNumber(val); };\n\n var sankey = d3sankey.sankey()\n .nodeWidth(15)\n .nodePadding(10)\n .extent([[1, 1], [width - 1, height - 6]]);\n\n var link = svg.append(\"g\")\n .attr(\"class\", \"links\")\n .attr(\"fill\", \"none\")\n .attr(\"stroke-opacity\", 0.2)\n .selectAll(\"path\");\n\n var node = svg.append(\"g\")\n .attr(\"class\", \"nodes\")\n .attr(\"font-family\", \"sans-serif\")\n .attr(\"font-size\", 10)\n .selectAll(\"g\");\n\n sankey(this.props.data);\n\n node = node\n .data(this.props.data.nodes)\n .enter().append(\"g\");\n\n node.append(\"polygon\")\n .attr(\"points\", function(d) { return this._getTrapezoidCoordinates(d, maxWidth); }.bind(this))\n .attr(\"fill\", function(d) { return this._getColorForNode(d.id); }.bind(this))\n // .attr(\"stroke\", \"#000\")\n .on(\"click\", function(d) { this.props.onFocusNodeChange(d.id); }.bind(this));\n\n node.append(\"text\")\n .attr(\"x\", function(d) { return d.x0 - 6; })\n .attr(\"y\", function(d) { return (d.y1 + d.y0) / 2; })\n .attr(\"dy\", \"0.35em\")\n .attr(\"text-anchor\", \"end\")\n .text(function(d) { return d.id; })\n .on(\"click\", function(d) { this.props.onFocusNodeChange(d.id); }.bind(this))\n .filter(function(d) { return d.x0 < width / 2; })\n .attr(\"x\", function(d) { return d.x1 + 6; })\n .attr(\"text-anchor\", \"start\");\n\n link = link\n .data(this.props.data.links)\n .enter().append(\"path\")\n .attr(\"d\", this._getCustomLinkHorizontal())\n .attr(\"stroke\", function(d) { return this._getColorForLink(d.source.id, d.target.id); }.bind(this))\n .attr(\"stroke-width\", function(d) { return Math.max(1, d.width); });\n\n link.append(\"title\")\n .text(function(d) { return d.source.id + \" → \" + d.target.id + format('Volume', d.value); });\n\n node.append(\"title\")\n .text(function(d) { return d.id + format('Input Volume', d.value) +\n format('Cost', this.props.nodeCosts[d.id]) +\n format('Time', this.props.nodeTimes[d.id]); }.bind(this));\n\n // export as actual DOM\n return div.toReact();\n }", "function path(d) {\n //return line(dimensions.map(function(p) { return [position(p), y[p](d[p])]; }));\n return line(dimensions.map(function(dimension) {\n var v = dragging[dimension.name];\n var tx = v == null ? x(dimension.name) : v;\n // if (dimension.name == \"Country\") {\n // console.log(dimension.scale(d[dimension.name]));\n // }\n return [tx, dimension.scale(d[dimension.name])];\n }));\n }", "function lollipopChart(data) {\r\n\r\n var nest = d3.nest()\r\n .key(d=>d.Year)\r\n .entries(data)\r\n\r\n zScale.domain([d3.min(data, d=>d.Magnitude),d3.max(data,d=>d.Magnitude)])\r\n\r\n var quakes = svgMap.selectAll('quake')\r\n .data(data)\r\n .enter()\r\n .append(\"circle\")\r\n .attr(\"class\", \"quake\")\r\n .attr(\"cx\", d=> projection([d.Longitude, d.Latitude])[0])\r\n .attr(\"cy\", d => projection([d.Longitude, d.Latitude])[1])\r\n .attr(\"r\", d=>zScale(d.Magnitude))\r\n\r\n xScale.domain([d3.min(nest,d=>d3.min(d.values,d=>d.Date)),d3.max(nest,d=>d3.max(d.values,d=>d.Date))])\r\n yScale.domain([d3.min(nest,d=>d3.min(d.values,d=>d.Magnitude)),d3.max(nest,d=>d3.max(d.values,d=>d.Magnitude))])\r\n rScale.domain([d3.min(nest,d=>d3.min(d.values,d=>d.Magnitude)), d3.max(nest, d=>d3.max(d.values,d=>d.Magnitude))])\r\n \r\n \r\n xAxis.scale(xScale)\r\n yAxis.scale(yScale)\r\n\r\n axisX.attr(\"class\", \"x-axis\")\r\n .call(xAxis)\r\n \r\n axisY.attr(\"class\", \"y-axis\")\r\n .call(yAxis)\r\n \r\n\r\n var selectLineG = svgGraph.selectAll(\"lineG\")\r\n .data(nest)\r\n .enter()\r\n .append(\"g\")\r\n .attr(\"class\",\"lineG\")\r\n\r\n var line = selectLineG.selectAll(\"line\")\r\n .data(d=>d.values)\r\n .enter()\r\n .append(\"line\")\r\n\r\n line.attr(\"x1\", d=>xScale(d.Date))\r\n .attr(\"y1\", d=>yScale(d.Magnitude))\r\n .attr(\"x2\", d=>xScale(d.Date))\r\n .attr(\"y2\",graphHeight)\r\n .attr(\"class\", \"line\")\r\n\r\n var bubble = svgGraph.selectAll(\"bubble\")\r\n .data(data)\r\n .enter()\r\n .append(\"circle\")\r\n .attr(\"cx\", d=>xScale(d.Date))\r\n .attr(\"cy\", d=>yScale(d.Magnitude))\r\n .attr(\"r\",d=>rScale(d.Magnitude))\r\n .attr(\"class\", \"bubble\")\r\n\r\n //create the brush\r\n var brush = svgGraph.append(\"g\")\r\n .attr(\"class\", \"brush\")\r\n .call(d3.brush()\r\n .extent([[0,0], [graphWidth, graphHeight+5]])\r\n .on(\"brush\", highlightedBubble)\r\n .on(\"end\",displayQuake))\r\n \r\n //function for the brush function\r\n function highlightedBubble() {\r\n if (d3.event.selection != null) {\r\n bubble.attr(\"class\", \"nonBrush\")\r\n var brushCoordinate = d3.brushSelection(this)\r\n bubble.filter(function() {\r\n var cx = d3.select(this).attr(\"cx\"),\r\n cy = d3.select(this).attr(\"cy\")\r\n return isBrushed(brushCoordinate, cx, cy)\r\n })\r\n .attr(\"class\", \"brushed\")\r\n }}\r\n \r\n //function for displaying the earthquakes on the world map based on the brushed data on the graph.\r\n function displayQuake() {\r\n if (!d3.event.selection) return\r\n d3.select(this).on(brush.move, null)\r\n var d_brushed = d3.selectAll(\".brushed\").data()\r\n if (d_brushed.length>0) {\r\n clearQuake()\r\n populateQuake(d_brushed)} \r\n \r\n else {clearQuake()}}\r\n\r\n }", "constructor(\n tr,\n w,\n h,\n scale = 0.9,\n padding = 30,\n lwd = 2,\n color = \"orange\",\n moveTime = 10000,\n tipLabels = false\n ) {\n this.tr = tr;\n this.w = w;\n this.h = h;\n this.scale = scale;\n this.padding = padding;\n this.lwd = lwd;\n this.color = color;\n this.moveTime = moveTime;\n\n drawPhylogram(\n this.tr,\n this.w,\n this.h,\n \"blue\",\n lwd,\n scale,\n padding,\n tipLabels\n );\n\n if (tr.isCladogram === false && tr.isPhylogram === false) {\n alert(\"Tree does not appear to have been drawn.\");\n }\n\n // Selects existing svg\n this.svg = d3.select(\"body\").select(\"svg\");\n\n // Set up \"dataset\" with x coordinates for all existing lines\n // - Probably a way to do this in d3 without this? Avoid selecting all lines?\n this.lineX = [];\n this.currentLines = document.querySelectorAll(\"line\");\n for (let i = 0; i < this.currentLines.length; i++) {\n this.lineX.push([\n this.currentLines[i].getAttribute(\"x1\"),\n this.currentLines[i].getAttribute(\"x2\")\n ]);\n }\n\n // Add new line to animate\n this.lineX.push([\n this.tr.root.x + this.padding,\n this.tr.root.x + this.padding\n ]);\n\n this.yMin = this.padding - this.padding / 2;\n this.yMax = h * this.scale + (3 * this.padding) / 2;\n\n let lineXlen = this.lineX.length;\n\n // Bind x coordinate data to all lines, and draw new line\n this.svg\n .selectAll(\"line\")\n .data(this.lineX) // Binds x position to the line\n .enter()\n .append(\"line\") // Appends initial circle to svg - attributes below\n .attr(\"x1\", function(d) {\n return d[0]; // x position is the bound datum\n })\n .attr(\"x2\", function(d) {\n return d[1];\n })\n .attr(\"id\", function(d, i) {\n if (i === lineXlen - 1) {\n return \"progressLine\";\n }\n })\n .attr(\"y1\", this.yMin)\n .attr(\"y2\", this.yMax)\n .attr(\"stroke\", this.color)\n .attr(\"stroke-width\", this.lwd);\n\n // Find final x-position for line\n this.finalX = this.scale * this.w + this.padding;\n }", "createTree(treeData) {\n\n // ******* TODO: PART VI *******\n\n //Create a tree and give it a size() of 800 by 300. \n var tree = d3.tree().size([800, 300]);\n\n //Create a root for the tree using d3.stratify(); \n var root = d3.stratify()\n .id(function(d) { return d.id })\n .parentId(function(d) { return d.ParentGame })\n (treeData); \n \n //Add nodes and links to the tree. \n var nodes = d3.hierarchy(root, function(d) { return d.children })\n nodes = tree(nodes)\n\n var g = d3.select('#tree'),\n link = g.selectAll('path')\n .data(nodes.descendants().slice(1))\n .enter().append('path')\n .attr('class', 'link')\n .attr('d', function(d){\n return \"M\" + d.y + \",\" + d.x\n + \"C\" + (d.y + d.parent.y) / 2 + \",\" + d.x\n + \" \" + (d.y + d.parent.y) / 2 + \",\" + d.parent.x\n + \" \" + d.parent.y + \",\" + d.parent.x; }),\n node = g.selectAll('.node').data(nodes.descendants())\n .enter().append('g')\n .attr('class', 'node')\n .attr('transform', function(d) {\n return \"translate(\" + d.y + \",\" + d.x + \")\"; }) \n\n node.append('circle').attr('r', 10)\n .style('fill', function(d) {\n if(d.data.data.Wins == 1) { return '#364e74' }\n else { return '#cb181d' } });\n node.append('text')\n .attr('dy', '.35em')\n .attr('x', function(d) { return d.children ? -13 : 13 })\n .attr('text-anchor', function(d) {\n return d.children ? \"end\" : \"start\" })\n .text(function(d) { return d.data.data.Team });\n\n g.attr('transform', 'translate(100, 0)');\n \n }", "init(){\n let dv = this,\n elementNode = d3.select(dv.element).node(),\n elementWidth = elementNode.getBoundingClientRect().width,\n aspectRatio = elementWidth < 800 ? elementWidth * 0.65 : elementWidth * 0.5;\n\n const breakPoint = 678;\n \n // margin\n dv.margin = { };\n\n dv.margin.top = elementWidth < breakPoint ? 40 : 50;\n dv.margin.bottom = elementWidth < breakPoint ? 30 : 80;\n\n dv.margin.right = elementWidth < breakPoint ? 20 : 150;\n dv.margin.left = elementWidth < breakPoint ? 20 : 80;\n \n dv.width = elementWidth - dv.margin.left - dv.margin.right;\n dv.height = aspectRatio - dv.margin.top - dv.margin.bottom;\n\n d3.select(dv.element).select(\"svg\").remove();\n \n // add the svg to the target element\n dv.svg = d3.select(dv.element)\n .append(\"svg\")\n .attr(\"width\", dv.width + dv.margin.left + dv.margin.right)\n .attr(\"height\", dv.height + dv.margin.top + dv.margin.bottom);\n \n // add the g to the svg and transform by top and left margin\n dv.g = dv.svg.append(\"g\")\n .attr(\"transform\", \"translate(\" + dv.margin.left + \n \", \" + dv.margin.top + \")\");\n \n // set transition variable\n dv.t = function() { return d3.transition().duration(1000); };\n\n // dv.colourScheme = [\"#aae0fa\",\"#00929e\",\"#ffc20e\",\"#16c1f3\",\"#da1e4d\",\"#086fb8\"];\n dv.colourScheme =d3.schemeBlues[5].slice(1);\n \n // set colour function\n dv.colour = d3.scaleOrdinal(dv.colourScheme);\n\n // for the tooltip from the d3 book\n dv.bisectDate = d3.bisector( d => { return d.date; } ).left;\n\n // tick numbers\n dv.tickNumber = \"undefined\";\n\n // tick formats\n dv.tickFormat = \"undefined\";\n \n dv.addAxis();\n \n }", "function ready(datapoints) {\n var nested = d3\n .nest()\n .key(function(d) {\n return d.location\n })\n .entries(datapoints)\n\n // xPositionScale domain\n\n var minAge = d3.min(datapoints, function(d) {\n return d.year\n })\n\n var maxAge = d3.max(datapoints, function(d) {\n return d.year\n })\n\n xPositionScale.domain([minAge, maxAge])\n\n container\n .selectAll('.searise-graph')\n .data(nested)\n .enter()\n .append('svg')\n .attr('class', 'searise-graph')\n .attr('height', height + margin.top + margin.bottom)\n .attr('width', width + margin.left + margin.right)\n .append('g')\n .attr('transform', 'translate(' + margin.left + ',' + margin.top + ')')\n .each(function(d) {\n // going through each SVG one by one\n var svg = d3.select(this)\n\n // mid-level scenario\n\n svg\n .append('path')\n .datum(d.values)\n .attr('d', mid)\n .attr('stroke', '#3182bd')\n .attr('stroke-width', 2)\n .attr('class', 'mid-scenario-slr')\n .attr('fill', 'none')\n\n // high-level scenario\n\n svg\n .append('path')\n .datum(d.values)\n .attr('d', high)\n .attr('stroke', '#9ecae1')\n .attr('stroke-width', 2)\n .attr('class', 'high-scenario-slr')\n .attr('fill', 'none')\n\n // Title\n\n svg\n // .attr('transform', `rotate(-5 0 ${height})`)\n .append('text')\n .attr('font-size', 12)\n .attr('y', -5)\n .attr('x', width / 2)\n .attr('text-anchor', 'middle')\n .attr('fill', 'black')\n .attr('font-weight', 'bold')\n .attr('font-family', 'Arial')\n .text(function(d) {\n return d.key\n })\n\n svg\n .append('text')\n .attr('font-size', 11)\n .attr('y', 75)\n .attr('x', 75)\n .attr('fill', '#9ecae1')\n .attr('font-family', 'Arial')\n .text('highest')\n\n\n // Axis\n var xAxis = d3\n .axisBottom(xPositionScale)\n .tickFormat(d3.format(''))\n .tickSize(-height)\n .tickValues([2025,2050,2075,2100])\n\n svg\n .append('g')\n .attr('class', 'axis x-axis')\n .attr('transform', 'translate(0,' + height + ')')\n .call(xAxis)\n\n\n var yAxis = d3\n .axisLeft(yPositionScale)\n .tickFormat(d => d3.format(',')(d) + 'ft')\n .tickSize(-width)\n .tickValues([2,4,6,8])\n\n\n svg\n .append('g')\n .attr('class', 'axis y-axis')\n .call(yAxis)\n\n\n \n d3.selectAll('.x-axis line')\n .attr('stroke-dasharray', '2 3')\n .attr('stroke-linecap', 'round')\n\n d3.selectAll('.y-axis line')\n .attr('stroke-dasharray', '2 3')\n .attr('stroke-linecap', 'round')\n \n\n // REMOVE THOSE THINGS\n\n d3.selectAll('.x-axis .domain').remove()\n d3.selectAll('.y-axis .domain').remove()\n\n\n })\n}", "function forceCollision() {\n var nodes;\n var radii;\n var strength = 1;\n var iterations = 1;\n\n function radius(d) {\n return d.r;\n }\n\n function x(d) {\n return d.x + d.vx;\n }\n\n function y(d) {\n return d.y + d.vy;\n }\n\n function constant(x) {\n return function () {\n return x;\n };\n }\n\n function force() {\n var i;\n var n = nodes.length;\n var tree;\n var node;\n var xi;\n var yi;\n var ri;\n var ri2;\n\n for (var k = 0; k < iterations; ++k) {\n tree = d3__WEBPACK_IMPORTED_MODULE_6__[\"quadtree\"](nodes, x, y).visitAfter(prepare);\n\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n ri = radii[node.index];\n ri2 = ri * ri;\n xi = node.x + node.vx;\n yi = node.y + node.vy;\n tree.visit(apply);\n } //for i\n\n } //for k\n\n\n function apply(quad, x0, y0, x1, y1) {\n var data = quad.data;\n var rj = quad.r;\n var r = ri + rj;\n\n if (data) {\n if (data.index > node.index) {\n var _x = xi - data.x - data.vx;\n\n var _y = yi - data.y - data.vy;\n\n var l = _x * _x + _y * _y;\n\n if (l < r * r) {\n if (_x === 0) _x = jiggle(), l += _x * _x;\n if (_y === 0) _y = jiggle(), l += _y * _y;\n l = (r - (l = Math.sqrt(l))) / l * strength;\n node.vx += (_x *= l) * (r = (rj *= rj) / (ri2 + rj));\n node.vy += (_y *= l) * r;\n data.vx -= _x * (r = 1 - r);\n data.vy -= _y * r;\n } //if\n\n } //if\n\n\n return;\n } //if\n\n\n return x0 > xi + r || x1 < xi - r || y0 > yi + r || y1 < yi - r;\n } //function apply\n\n } //function force\n\n\n function prepare(quad) {\n if (quad.data) return quad.r = radii[quad.data.index];\n\n for (var i = quad.r = 0; i < 4; ++i) {\n if (quad[i] && quad[i].r > quad.r) {\n quad.r = quad[i].r;\n } //if\n\n } //for i\n\n } //function prepare\n\n\n function initialize() {\n if (!nodes) return;\n var i,\n n = nodes.length,\n node;\n radii = new Array(n);\n\n for (i = 0; i < n; ++i) {\n node = nodes[i], radii[node.index] = +radius(node, i, nodes);\n }\n } //function initialize\n\n\n force.initialize = function (_) {\n nodes = _;\n initialize();\n return force;\n };\n\n force.iterations = function (_) {\n return arguments.length ? (iterations = +_, force) : iterations;\n };\n\n force.strength = function (_) {\n return arguments.length ? (strength = +_, force) : strength;\n };\n\n force.radius = function (_) {\n return arguments.length ? (radius = typeof _ === 'function' ? _ : constant(+_), force) : radius;\n };\n\n return force;\n } //function forceCollision", "function forceCollision() {\n var nodes;\n var radii;\n var strength = 1;\n var iterations = 1;\n\n function radius(d) {\n return d.r;\n }\n\n function x(d) {\n return d.x + d.vx;\n }\n\n function y(d) {\n return d.y + d.vy;\n }\n\n function constant(x) {\n return function () {\n return x;\n };\n }\n\n function force() {\n var i;\n var n = nodes.length;\n var tree;\n var node;\n var xi;\n var yi;\n var ri;\n var ri2;\n\n for (var k = 0; k < iterations; ++k) {\n tree = d3__WEBPACK_IMPORTED_MODULE_6__[\"quadtree\"](nodes, x, y).visitAfter(prepare);\n\n for (i = 0; i < n; ++i) {\n node = nodes[i];\n ri = radii[node.index];\n ri2 = ri * ri;\n xi = node.x + node.vx;\n yi = node.y + node.vy;\n tree.visit(apply);\n } //for i\n\n } //for k\n\n\n function apply(quad, x0, y0, x1, y1) {\n var data = quad.data;\n var rj = quad.r;\n var r = ri + rj;\n\n if (data) {\n if (data.index > node.index) {\n var _x = xi - data.x - data.vx;\n\n var _y = yi - data.y - data.vy;\n\n var l = _x * _x + _y * _y;\n\n if (l < r * r) {\n if (_x === 0) _x = jiggle(), l += _x * _x;\n if (_y === 0) _y = jiggle(), l += _y * _y;\n l = (r - (l = Math.sqrt(l))) / l * strength;\n node.vx += (_x *= l) * (r = (rj *= rj) / (ri2 + rj));\n node.vy += (_y *= l) * r;\n data.vx -= _x * (r = 1 - r);\n data.vy -= _y * r;\n } //if\n\n } //if\n\n\n return;\n } //if\n\n\n return x0 > xi + r || x1 < xi - r || y0 > yi + r || y1 < yi - r;\n } //function apply\n\n } //function force\n\n\n function prepare(quad) {\n if (quad.data) return quad.r = radii[quad.data.index];\n\n for (var i = quad.r = 0; i < 4; ++i) {\n if (quad[i] && quad[i].r > quad.r) {\n quad.r = quad[i].r;\n } //if\n\n } //for i\n\n } //function prepare\n\n\n function initialize() {\n if (!nodes) return;\n var i,\n n = nodes.length,\n node;\n radii = new Array(n);\n\n for (i = 0; i < n; ++i) {\n node = nodes[i], radii[node.index] = +radius(node, i, nodes);\n }\n } //function initialize\n\n\n force.initialize = function (_) {\n nodes = _;\n initialize();\n return force;\n };\n\n force.iterations = function (_) {\n return arguments.length ? (iterations = +_, force) : iterations;\n };\n\n force.strength = function (_) {\n return arguments.length ? (strength = +_, force) : strength;\n };\n\n force.radius = function (_) {\n return arguments.length ? (radius = typeof _ === 'function' ? _ : constant(+_), force) : radius;\n };\n\n return force;\n } //function forceCollision", "function getTransition() {// Function to get transition for d3.v.6\n return d3.transition()\n .duration(750)\n //.ease(d3.easeLinear)\n}", "function getNodes() {\n return d3.selectAll('g .node');\n}", "function dashArray() {\n\t\tvar l = this.getTotalLength(),\n\t\t\ti = d3.interpolateString( \"0,\" + l, l + \",\" + l );\n\t\treturn function ( t ) {\n\t\t\treturn i( t );\n\t\t};\n\t}", "function mouseover(d) {\n\n var ques = d.value\n // var totalp = (100 * d.value / 503865).toPrecision(3);\n var totalp = (100 * d.value / totalSize).toPrecision(3);\n var percentage = (100 * d.value / totalSize).toPrecision(3);\n var percentageString = percentage + \"%\";\n if (percentage < 0.1) {\n percentageString = \"< 0.1%\";\n }\n var totalpstring = \"/\" + totalSize +\" = \" + totalp + \"%\";\n\n d3.select(\"#percentage\")\n .text(percentageString);\n\n d3.select(\"#explanation\")\n .style(\"visibility\", \"\");\n\n var sequenceArray = getAncestors(d);\n str = []\n for (var i = 0; i < sequenceArray.length; i++) {\n str.push(sequenceArray[i].name);\n }\n\n updateBreadcrumbs(sequenceArray, percentageString, ques, totalpstring);\n\n var d = d3.select(\"#list\");\n\n var ans = d3.select(\"#anss\");\n var freq = \"\";\n for(var i = 0; i<json[str.join(' ')]['topAns'].length; i++){\n freq = freq + json[str.join(' ')]['topAns'][i][1] + \"<br>\";\n }\n ans.html(freq);\n\n var ans2 = d3.select(\"#anss2\");\n var word = \"\";\n for(var i = 0; i<json[str.join(' ')]['topAns'].length; i++){\n word = word + json[str.join(' ')]['topAns'][i][0] + \"<br>\";\n }\n ans2.html(word);\n\n d.style(\"visibility\", \"\");\n\n // Fade all the segments.\n d3.selectAll(\"path\")\n .style(\"opacity\", 0.3);\n\n // Then highlight only those that are an ancestor of the current segment.\n vis.selectAll(\"path\")\n .filter(function(node) {\n return (sequenceArray.indexOf(node) >= 0);\n })\n .style(\"opacity\", 1);\n }", "function StackedArea(_) {\n\n // create getter-setter variables in factory scope\n let _header = {title:'title', sub:'subtitle'};\n let _footer = {caption:'some caption text here', credit:'credit', source:'data source'};\n let _curve = d3.curveBasis;\n let _svgId = 'svg';\n\n function exports(data) {\n // selecting root element ==> chart container, div where function is called in index.js\n const root = this;\n const container = d3.select(root);\n\n const totalsByYear = data.map(d => {\n const columns = data.columns;\n let sum = 0;\n for (let i = 1; i < columns.length; i++) {\n sum = sum + (+d[columns[i]]);\n }\n return {\n year: d.year,\n total: sum\n };\n });\n\n // declaring setup/layout variables\n const width = root.clientWidth;\n const height = root.clientHeight;\n const margin = {t:20, r:20, b:20, l:65};\n const w = width - (margin.r + margin.l);\n const h = height - (margin.t + margin.b);\n\n /* HEADER */\n // appending <div> node for header\n // enter-exit-update pattern\n\n // update selection\n let headerUpdate = container.selectAll('.chart-header')\n .data([_header]);\n // enter selection\n const headerEnter = headerUpdate.enter()\n .append('div');\n // exit selection\n headerUpdate.exit().remove();\n // enter + update selection\n headerUpdate = headerUpdate.merge(headerEnter)\n .classed('chart-header', true);\n\n // appending header (title and sub) to node\n // update selection\n let titleUpdate = headerUpdate.selectAll('.chart-title')\n .data(d => [d.title]);\n // enter selection\n const titleEnter = titleUpdate.enter()\n .append('h3');\n // exit selection\n titleUpdate.exit().remove();\n // enter + update selection\n titleUpdate = titleUpdate.merge(titleEnter)\n .classed('chart-title', true)\n .text(d => d);\n\n // update selection\n let subtitleUpdate = headerUpdate.selectAll('.chart-subtitle')\n .data(d => [d.sub]);\n // enter selection\n const subtitleEnter = subtitleUpdate.enter()\n .append('h4');\n // exit selection\n subtitleUpdate.exit().remove();\n // enter + update selection\n subtitleUpdate = subtitleUpdate.merge(subtitleEnter)\n .classed('chart-subtitle', true)\n .text(d => d);\n\n // appending SVG to root\n // enter-exit-update pattern\n\n // update selection\n let svgUpdate = container.selectAll('.stacked-area')\n .data([1]);\n // enter selection\n const svgEnter = svgUpdate.enter()\n .append('svg');\n // exit selection\n svgUpdate.exit().remove();\n // update + enter selection\n svgUpdate = svgUpdate.merge(svgEnter)\n .attr('id', _svgId)\n .classed('stacked-area',true)\n .attr('width', width)\n .attr('height', height);\n\n // appending <g> element to SVG\n // enter-exit-update pattern\n\n // update selection\n let plot = svgUpdate.selectAll('.plot-stacked-area')\n .data([1]);\n // enter selection\n const plotEnter = plot.enter()\n .append('g');\n // exit selection\n plot.exit().remove();\n // update + enter selection\n plot = plot.merge(plotEnter)\n .classed('plot-stacked-area', true)\n .attr('transform', `translate(${margin.l},${margin.t})`);\n\n // list of sectors\n const sectors = data.columns.filter(d => d !== 'year');\n // list of years\n const years = data.map(d => +d.year);\n\n // declaring stacking function\n const stack = d3.stack()\n .keys(sectors);\n // applying stacking function to data\n const stackedData = stack(data);\n\n // setting up scales\n const scaleX = d3.scaleLinear()\n .range([0,w])\n .domain(d3.extent(years));\n const scaleY = d3.scaleLinear()\n .range([h,0])\n .domain([0,d3.max(totalsByYear, d => d.total)]);\n // const scaleColor = d3.scaleOrdinal(d3.schemeCategory20);\n const scaleColor = d3.scaleOrdinal()\n .domain(sectors)\n .range(['#ff4500','#ff6426','#ff7c3f','#ff9155','#ffa36a','#ffb67f','#ffc794','#ffd8a7','#ffe9bc','#fafad2']);\n const scaleColorInvert = d3.scaleOrdinal()\n .domain(sectors)\n .range(['#fafad2','#ffe9bc','#ffd8a7','#ffc794','#ffb67f','#ffa36a','#ff9155','#ff7c3f','#ff6426','#ff4500']);\n\n // setting up line generator path\n const area = d3.area()\n .x(d => scaleX(d.data.year))\n .y0(d => scaleY(d[0]))\n .y1(d => scaleY(d[1]))\n .curve(_curve);\n\n const line = d3.line()\n .x(d => scaleX(d.data.year))\n .y(d => scaleY(d[1]))\n .curve(_curve);\n\n // appending <g> to plot\n // individual <g> for areas\n // enter-exit-update pattern\n\n // update selection\n let areasUpdate = plot.selectAll('.area')\n .data(stackedData);\n // enter selection\n const areasEnter = areasUpdate.enter()\n .append('g');\n // exit selection\n areasUpdate.exit().remove();\n // update + enter selection\n areasUpdate = areasUpdate.merge(areasEnter)\n .attr(\"class\", d => d.key.replace(',', '').split(' ').join('-'))\n .classed('area', true);\n\n // appending path to groups\n areasUpdate.append('path')\n .classed('area-path', true)\n .attr('d', area)\n .style('fill', d => scaleColor(d.key))\n .style('fill-opacity',1)\n areasUpdate.append('path')\n .classed('area-path', true)\n .attr('d', line)\n .style('fill', 'none')\n .style('stroke', d => scaleColorInvert(d.key))\n .style('stroke-width', 1);\n\n // // appending legend to header\n // areasUpdate.append('text')\n // .text(d => d.key)\n // .style('text-anchor', 'start')\n // .attr('transform', (d,i) => `translate(${w+10},${scaleY((d[5][0]+d[5][1])/2)-i})`)\n // .attr('fill-opacity', 1);\n\n //Set up axis generator\n const axisY = d3.axisLeft()\n .scale(scaleY)\n .tickSize(-w)\n .ticks(5)\n .tickFormat(d => formatMoney(d));\n\n const axisX = d3.axisBottom()\n .scale(scaleX)\n .ticks(5)\n .tickFormat(d => formatYear(d));\n\n // draw axis\n // x-axis\n const axisXNode = plot\n .selectAll('.axis-x')\n .data([1]);\n const axisXNodeEnter = axisXNode.enter()\n .append('g')\n .attr('class','axis axis-x');\n axisXNode.merge(axisXNodeEnter)\n .attr('transform',`translate(0,${h})`)\n .call(axisX);\n // y-axis\n const axisYNode = plot\n .selectAll('.axis-y')\n .data([1]);\n const axisYNodeEnter = axisYNode.enter()\n .append('g')\n .attr('class','axis axis-y');\n axisYNode.merge(axisYNodeEnter)\n .attr('transform',`translate(${0},${0})`)\n .call(axisY);\n\n /* FOOTER */\n // appending <div> node for footer\n let footerUpdate = container.selectAll('.chart-footer')\n .data([_footer]);\n const footerEnter = footerUpdate.enter()\n .append('div');\n footerUpdate.exit().remove();\n footerUpdate = footerUpdate.merge(footerEnter)\n .classed('chart-footer', true)\n .classed('row', true);\n\n // appending footer (caption, credit and source) to node\n let captionUpdate = footerUpdate.selectAll('.chart-caption')\n .data(d => [d.caption]);\n const captionEnter = captionUpdate.enter()\n .append('div');\n captionUpdate = captionUpdate.merge(captionEnter)\n .classed('chart-caption', true)\n .classed('col-md-12', true)\n .text(d => d);\n\n let creditUpdate = footerUpdate.selectAll('.chart-credit')\n .data(d => [d.credit]);\n const creditEnter = creditUpdate.enter()\n .append('div');\n creditUpdate = creditUpdate.merge(creditEnter)\n .classed('chart-credit', true)\n .classed('col-md-6', true)\n .html(d => d);\n\n let sourceUpdate = footerUpdate.selectAll('.chart-source')\n .data(d => [d.source]);\n const sourceEnter = sourceUpdate.enter()\n .append('div');\n sourceUpdate = sourceUpdate.merge(sourceEnter)\n .classed('chart-source', true)\n .classed('col-md-6', true)\n .style('text-align', 'right')\n .html(d => d);\n\n }\n\n // create getter-setter pattern for customization\n exports.header = function(_) {\n\t\t// _ is an object { title: }\n\t\tif (typeof _ === \"undefined\") return _header;\n\t\t_header = _;\n\t\treturn this\n\t};\n\n exports.footer = function(_) {\n\t\t// _ is an object { title: }\n\t\tif (typeof _ === \"undefined\") return _footer;\n\t\t_footer = _;\n\t\treturn this\n\t};\n\n exports.curve = function(_) {\n\t\t// _ is a d3 built-in function\n\t\tif (typeof _ === \"undefined\") return _curve;\n\t\t_curve = _;\n\t\treturn this\n\t};\n\n exports.svgId = function(_) {\n // _ is a string\n if (typeof _ === \"undefined\") return _svgId;\n\t\t_svgId = _;\n\t\treturn this\n };\n\n // returning module\n return exports;\n}", "function ready(datapoints) {\n var nested = d3\n .nest()\n .key(function(d) {\n return d.Year\n })\n .entries(datapoints)\n\n container\n .selectAll('.year-graph')\n .data(nested)\n .enter()\n .append('svg')\n .attr('class', 'year-graph')\n .attr('height', height + margin.top + margin.bottom)\n .attr('width', width + margin.left + margin.right)\n .append('g')\n .attr('transform', 'translate(' + margin.left + ',' + margin.top + ')')\n .each(function(d) {\n // which svg are we looking at?\n\n var svg = d3.select(this)\n\n svg\n .append('path')\n .datum(d.values)\n .attr('d', areaUS)\n .attr('stroke', 'none')\n .attr('fill', 'blue')\n .attr('fill-opacity', 0.25)\n\n svg\n .append('path')\n .datum(d.values)\n .attr('d', areaJapan)\n .attr('stroke', 'none')\n .attr('fill', 'red')\n .attr('fill-opacity', 0.25)\n\n svg\n .append('text')\n .text(d.key)\n .attr('x', width / 2)\n .attr('y', 0)\n .attr('font-size', 15)\n .attr('dy', -2)\n .attr('text-anchor', 'middle')\n .attr('font-weight', 'bold')\n\n var datapoints = d.values\n var usSum = d3.sum(datapoints, d => +d.ASFR_us).toFixed(2)\n var japanSum = d3.sum(datapoints, d => +d.ASFR_jp).toFixed(2)\n\n svg\n .append('text')\n .text(usSum)\n .attr('x', xPositionScale(45))\n .attr('y', yPositionScale(0.2))\n .attr('font-size', 13)\n .attr('text-anchor', 'middle')\n .attr('fill', 'blue')\n .attr('font-weight', 'bold')\n\n svg\n .append('text')\n .text(japanSum)\n .attr('x', xPositionScale(45))\n .attr('y', yPositionScale(0.15))\n .attr('font-size', 13)\n .attr('text-anchor', 'middle')\n .attr('fill', 'red')\n .attr('font-weight', 'bold')\n\n var xAxis = d3.axisBottom(xPositionScale).tickValues([15, 30, 45])\n svg\n .append('g')\n .attr('class', 'axis x-axis')\n .attr('transform', 'translate(0,' + height + ')')\n .call(xAxis)\n\n var yAxis = d3.axisLeft(yPositionScale).tickValues([0, 0.1, 0.2, 0.3])\n svg\n .append('g')\n .attr('class', 'axis y-axis')\n .call(yAxis)\n })\n}", "_objectEventListener() {\r\n // CLASS REFERENCE\r\n let that = this;\r\n\r\n let x = this.attribute.getXAttribute();\r\n let y = this.attribute.getYAttribute();\r\n let width = this.attribute.getWidthAttribute();\r\n let height = this.attribute.getHeightAttribute();\r\n let angle = this.attribute.getAngleAttribute();\r\n let opacity = this.attribute.getOpacityAttribute();\r\n\r\n x.on('change', function () {\r\n let value = d3.select(this).property('value');\r\n let string = d3.select('.active[data-map-object]').style('transform')\r\n let numbers = string.match(/[+-]?\\d+/g).map(Number);\r\n let xValue = numbers[4], yValue = numbers[5];\r\n d3.select('.active[data-map-object]').attr('transform', `translate(${value},${yValue})`)\r\n // console.log(\"x and y: \",xValue,typeof xValue,\" | \",yValue,typeof yValue);\r\n })\r\n\r\n y.on('change', function () {\r\n let value = d3.select(this).property('value');\r\n let string = d3.select('.active[data-map-object]').style('transform')\r\n let numbers = string.match(/[+-]?\\d+/g).map(Number);\r\n let xValue = numbers[4], yValue = numbers[5];\r\n d3.select('.active[data-map-object]').attr('transform', `translate(${xValue},${value})`)\r\n // console.log(string, numbers, \"x and y: \", xValue, typeof xValue, \" | \", yValue, typeof yValue, `translate(${xValue},${value})`);\r\n })\r\n\r\n opacity.on('change', function () {\r\n let value = d3.select(this).property('value');\r\n d3.select('.range-value').text(value);\r\n\r\n d3.select('.svg-object.active[data-object]').style('opacity', value);\r\n })\r\n\r\n }", "function drawNodes()\n{\n\td3.selectAll(\"circle\").attr(\"cx\", function (d) {\n\t\t//d.x = Math.max(radius, Math.min(width - radius, d.x));\n if(d.id==\"101\")\n {\n// console.log(d);\n//console.log(d.id+\" : \"+d.name+\" : \"+d.x+\" : \"+d.y+\" : \"+d.weight+\" : \"+d.fixed);\n }\n return isNaN(d.x)?defaultX:d.x;\n })\n .attr(\"cy\", function (d) {\n\t\t//d.y = Math.max(radius, Math.min(height - radius, d.y));\n\t\treturn isNaN(d.y)?defaultY:d.y;\n });\n d3.selectAll(\"text\").attr(\"x\", function (d) {\n\t\t//d.x = initialX+((width*2/3)*Math.random())+d.id;\n\t\t//d.x = Math.max(radius, Math.min(width - radius, d.x));\n return isNaN(d.x)?defaultX:d.x;\n })\n .attr(\"y\", function (d) {\n\t\t//d.y = initialY+(height-200)*Math.random()+d.id;\n\t\t//d.y = Math.max(radius, Math.min(height - radius, d.y));\n\t\treturn isNaN(d.y)?defaultY:d.y;\n });\n}", "function addParallelCoordinates(fetch_data_array){\r\n\t\r\nconsole.log(\"ppp\");\r\n\r\nvar margin = {top: 30, right: 10, bottom: 10, left: 10},\r\n width = 960 - margin.left - margin.right,\r\n height = 500 - margin.top - margin.bottom;\r\n\r\nvar x = d3.scale.ordinal().rangePoints([0, width], 1),\r\n y = {},\r\n dragging = {};\r\n\r\nvar line = d3.svg.line(),\r\n axis = d3.svg.axis().orient(\"left\"),\r\n background,\r\n foreground;\r\n\r\nvar svg = d3.select(\"body\").append(\"svg\")\r\n .attr(\"width\", width + margin.left + margin.right)\r\n .attr(\"height\", height + margin.top + margin.bottom)\r\n .append(\"g\")\r\n .attr(\"transform\", \"translate(\" + margin.left + \",\" + margin.top + \")\");\r\n\r\n// Extract the list of dimensions and create a scale for each.\r\n x.domain(dimensions = d3.keys(fetch_data_array[0]).filter(function(d) {\r\n return d!=\"cancertype\" && (y[d] = d3.scale.linear()\r\n .domain(d3.extent(fetch_data_array, function(p) { return +p[d]; }))\r\n .range([height, 0]));\r\n }));\r\n\r\n // Add grey background lines for context.\r\n background = svg.append(\"g\")\r\n .attr(\"class\", \"background\")\r\n .selectAll(\"path\")\r\n .data(fetch_data_array)\r\n .enter().append(\"path\")\r\n .attr(\"d\", path);\r\n\r\n // Add blue foreground lines for focus.\r\n foreground = svg.append(\"g\")\r\n .attr(\"class\", \"foreground\")\r\n .selectAll(\"path\")\r\n .data(fetch_data_array)\r\n .enter().append(\"path\")\r\n .attr(\"d\", path);\r\n\r\n // Add a group element for each dimension.\r\n var g = svg.selectAll(\".dimension\")\r\n .data(dimensions)\r\n .enter().append(\"g\")\r\n .attr(\"class\", \"dimension\")\r\n .attr(\"transform\", function(d) { return \"translate(\" + x(d) + \")\"; })\r\n .call(d3.behavior.drag()\r\n .origin(function(d) { return {x: x(d)}; })\r\n .on(\"dragstart\", function(d) {\r\n dragging[d] = x(d);\r\n background.attr(\"visibility\", \"hidden\");\r\n })\r\n .on(\"drag\", function(d) {\r\n dragging[d] = Math.min(width, Math.max(0, d3.event.x));\r\n foreground.attr(\"d\", path);\r\n dimensions.sort(function(a, b) { return position(a) - position(b); });\r\n x.domain(dimensions);\r\n g.attr(\"transform\", function(d) { return \"translate(\" + position(d) + \")\"; })\r\n })\r\n .on(\"dragend\", function(d) {\r\n delete dragging[d];\r\n transition(d3.select(this)).attr(\"transform\", \"translate(\" + x(d) + \")\");\r\n transition(foreground).attr(\"d\", path);\r\n background\r\n .attr(\"d\", path)\r\n .transition()\r\n .delay(500)\r\n .duration(0)\r\n .attr(\"visibility\", null);\r\n }));\r\n\r\n // Add an axis and title.\r\n g.append(\"g\")\r\n .attr(\"class\", \"axis\")\r\n .each(function(d) { d3.select(this).call(axis.scale(y[d])); })\r\n .append(\"text\")\r\n .style(\"text-anchor\", \"middle\")\r\n .attr(\"y\", -9)\r\n .text(function(d) { return d; });\r\n\r\n // Add and store a brush for each axis.\r\n g.append(\"g\")\r\n .attr(\"class\", \"brush\")\r\n .each(function(d) {\r\n d3.select(this).call(y[d].brush = d3.svg.brush().y(y[d]).on(\"brushstart\", brushstart).on(\"brush\", brush));\r\n })\r\n .selectAll(\"rect\")\r\n .attr(\"x\", -8)\r\n .attr(\"width\", 16);\r\n\r\n\r\nfunction position(d) {\r\n var v = dragging[d];\r\n return v == null ? x(d) : v;\r\n}\r\n\r\nfunction transition(g) {\r\n return g.transition().duration(500);\r\n}\r\n\r\n// Returns the path for a given data point.\r\nfunction path(d) {\r\n return line(dimensions.map(function(p) { return [position(p), y[p](d[p])]; }));\r\n}\r\n\r\nfunction brushstart() {\r\n d3.event.sourceEvent.stopPropagation();\r\n}\r\n\r\n// Handles a brush event, toggling the display of foreground lines.\r\nfunction brush() {\r\n var actives = dimensions.filter(function(p) { return !y[p].brush.empty(); }),\r\n extents = actives.map(function(p) { return y[p].brush.extent(); });\r\n foreground.style(\"display\", function(d) {\r\n return actives.every(function(p, i) {\r\n return extents[i][0] <= d[p] && d[p] <= extents[i][1];\r\n }) ? null : \"none\";\r\n });\r\n}\t\r\n}", "function init() {\n // our projection and path are only defined once, and we don't need to access them in the draw function,\n // so they can be locally scoped to init()\n const projection = d3.geoAlbersUsa().fitSize([width, height], state.geojson);\n const path = d3.geoPath().projection(projection);\n const colors = [\"#4682b4\", \"#E25098\", \"#990066\"];\n const hRaces = [\"White\", \"Latino\", \"Asian\", \"Black\", \"Other\"];\n var raceColors = d3.scaleOrdinal(d3.schemePastel1).domain(hRaces);\n const legendText = [\"> 10 million\", \"> 1 million\", \"> 100,000\"];\n\n // create an svg element in our main `d3-container` element\n const container = d3.select(\"#d3-container\")\n \t.style(\"position\", \"relative\")\n \t.style(\"width\", width+\"px\")\n \t.style(\"height\", height+\"px\")\n \t.style(\"margin-left\", \"5%\")\n \t.style(\"float\", \"left\");\n\n tooltip = container\n .append(\"div\")\n .attr(\"class\", \"tooltip\")\n .attr(\"width\", 100)\n .attr(\"height\", 100)\n .style(\"position\", \"absolute\");\n\n svg = container\n .append(\"svg\")\n .attr(\"viewBox\", \"0 0 \"+ width + \" \" + height)\n .attr(\"id\", \"svgContainer\");\n\n state.geojson.features.forEach(function(stateProp, i) {\n \tstate.races.filter(function(race) {\n \tif ((race.geoid == stateProp.properties.GEOID)) {\n \t\t\tvar centroid = path.centroid(stateProp);\n\t\t\t\tif (!isNaN(centroid[0]) && !isNaN(centroid[1])) {\n\t\t\t const [x, y] = [centroid[0], centroid[1]];\n\t\t\t race.x = x.toFixed(4);\n\t\t\t race.y = y.toFixed(4);\n\t\t\t }\n\t\t\t else { // move non found data away\n\t\t\t race.x = -100;\n\t\t\t race.y = -100;\t\t\t \t\n\t\t\t }\n\t \t}\n \t})\n });\n\n function dominantRace(gid) {\n \tvar matchRow = state.races.filter(race => race.geoid == gid);\n \tif (matchRow.length > 0) {\n\t\t var maxRow = Object.keys(matchRow[0]).slice(1,-3).reduce(function(a,b) { return matchRow[0][a] > matchRow[0][b] ? a : b });\n\t\t return raceColors(maxRow);\n \t}\n }\n\n var geostates = svg\n .selectAll(\".state\")\n // all of the features of the geojson, meaning all the states as individuals\n .data(state.geojson.features)\n .join(\"path\")\n .attr(\"d\", path)\n .attr(\"class\", function(d) { return \"state\"; } )\n .attr(\"fill\", function(d) { return dominantRace(d.properties.GEOID); /*\"#eee\"*/ })\n .on(\"mouseover\", d => {\n // when the mouse rolls over this feature, do this\n state.hover[\"state\"] = d.properties.NAME;\n draw(); // re-call the draw function when we set a new hoveredState\n });\n\n // EXAMPLE 1: going from Lat-Long => x, y\n // for how to position a dot\n// const GradCenterCoord = { latitude: 40.7423, longitude: -73.9833 };\n svg\n .selectAll(\"circle\")\n .data(state.races)\n .join(\"circle\")\n .attr(\"r\", function(d) { return 2*Math.log10(d.Total); } )\n .attr(\"fill\", function(d) {\n \tif (d.Total > 10000000) return colors[0]\n \telse {\n \t\tif (d.Total > 1000000) return colors[1]\n \t\telse return colors[2]\n \t}\n })\n .attr(\"opacity\", 0.7)\n .attr(\"transform\", function(d) { return \"translate(\" + d.x + \",\" + d.y + \")\"; })\n .on(\"mouseover\", function(d) {\n state.hover = {\n translate: [\n // center top left corner of the tooltip in center of tile\n d.x,\n d.y\n ],\n\t\t\t Name: d.Name,\n White: d.White,\n\t\t\t Latino: d.Latino,\n\t\t\t \tAsian: d.Asian,\n\t\t\t \tBlack: d.Black,\n\t\t\t \tOther: d.Other\n };\n draw();\n });\n\n var legend = svg\n \t.selectAll(\"g.legend\")\n \t.data(colors)\n \t.join(\"g\")\n \t.attr(\"class\", \"legend\");\n legend\n \t.append(\"circle\")\n \t.attr(\"cx\", 12)\n \t.attr(\"cy\", function(d,i) { return 12+(i*32); })\n \t.attr(\"r\", 12)\n \t.attr(\"fill\", function(d,i) { return colors[i] });\n legend\n \t.append(\"text\")\n \t.attr(\"x\", 32)\n \t.attr(\"y\", function(d,i) { return 18+(i*32); })\n \t.html(function(d,i) { return legendText[i] });\n\n var raceLabel = svg\n \t.append(\"text\")\n \t.attr(\"x\", 0)\n \t.attr(\"y\", 148)\n \t.text(\"Dominant race\");\n\n var legendRace = svg\n \t.selectAll(\"g.race\")\n \t.data(hRaces)\n \t.join(\"g\")\n \t.attr(\"class\", \"race\");\n legendRace\n \t.append(\"rect\")\n \t.attr(\"x\", 0)\n \t.attr(\"y\", function(d,i) { return 160+(i*32); })\n \t.attr(\"height\", 24)\n \t.attr(\"width\", 24)\n \t.attr(\"fill\", function(d,i) { return raceColors(hRaces[i]) });\n legendRace\n \t.append(\"text\")\n \t.attr(\"x\", 32)\n \t.attr(\"y\", function(d,i) { return 176+(i*32); })\n \t.html(function(d,i) { return hRaces[i] });\n\n // EXAMPLE 2: going from x, y => lat-long\n // this triggers any movement at all while on the svg\n svg.on(\"mousemove\", () => {\n // we can use d3.mouse() to tell us the exact x and y positions of our cursor\n const [mx, my] = d3.mouse(svg.node());\n // projection can be inverted to return [lat, long] from [x, y] in pixels\n const proj = projection.invert([mx, my]);\n state.hover[\"longitude\"] = proj[0];\n state.hover[\"latitude\"] = proj[1];\n draw();\n });\n\n draw(); // calls the draw function\n}", "function findMinAndMax(dataColumnX,dataColumny) {\n xMin = d3.min(usData, function(usData) {\n return +usData[dataColumnX] * 0.8;\n });\n\n xMax = d3.max(usData, function(usData) {\n return +usData[dataColumnX] * 1.1;\n });\n\n yMax = d3.max(usData, function(usData) {\n return +usData.[dataColumny] * 1.1;\n\n yMin = d3.min(usData, function(usData) {\n return +usData[dataColumny] * 0.8;\n\n });\n}\n\n// The default x-axis is 'poverty', default y-axis is 'diabetes'\n// Another axis can be assigned to the variable during an onclick event.\n// This variable is key to the ability to change axis/data column\nvar currentAxisLabelX = \"poverty\";\nvar currentAxisLabelY = \"diabetes\";\n\n// Call findMinAndMax() with 'hair_length' as default\nfindMinAndMax(currentAxisLabelX,currentAxisLabelY);\n\n// Set the domain of an axis to extend from the min to the max value of the data column\nxLinearScale.domain([xMin, xMax]);\nyLinearScale.domain([yMin, yMax]);\n\n\n///////////////END NEW CODE\n\n // Scale the domain//START REPLACED (WAS WORKING)//////////////////////\n //xLinearScale.domain([20, d3.max(usData, function(data) {\n // return +data.poverty * 1.1;\n //})]);\n //yLinearScale.domain([0, d3.max(usData, function(data) {\n // return +data.diabetes * 1.1;\n //})]);\n /////////////////////FINISH REPLACED CODE (WAS WORKING) ////////////////\n\n var toolTip = d3.tip()\n .attr(\"class\", \"tooltip\")\n .offset([80, -60])\n .html(function(data) {\n var state = data.state;\n var povertyLevel = data.poverty;\n var diabetes = data.diabetes;\n var internet = data.internet;\n var median_age = data.median_age;\n var education = data.education;\n\n return (state + \"<br> Poverty Level: \" + povertyLevel + \"<br> Diabetes: \" + diabetes + \n \t\"<br> internet: \" + internet + \"<br> median age: \" + median_age + \n \"<br> education level: \" + education);\n });\n\n chart.call(toolTip);\n\n chart.selectAll(\"circle\")\n .data(usData)\n .enter().append(\"circle\")\n .attr(\"cx\", function(data, index) {\n console.log(data.poverty);\n return xLinearScale(data[currentAxisLabelX]);\n })\n .attr(\"cy\", function(data, index) {\n return yLinearScale(data[currentAxisLabelY]);\n })\n .attr(\"r\", \"15\")\n .attr(\"fill\", \"red\")\n .on(\"click\", function(data) {\n toolTip.show(data);\n })\n // onmouseout event\n .on(\"mouseout\", function(data, index) {\n toolTip.hide(data);\n });\n\n chart.append(\"g\")\n .attr(\"transform\", `translate(0, ${height})`)\n .call(bottomAxis);\n\n chart.append(\"g\")\n .call(leftAxis);\n\n //append y-axis labels - DEFAULT\n chart.append(\"text\")\n .attr(\"transform\", \"rotate(-90)\")\n .attr(\"y\", 0 - margin.left + 40)\n .attr(\"x\", 0 - (height / 2))\n .attr(\"dy\", \"1em\")\n .attr(\"class\", \"axisText\")\n .attr(\"data-axis-name\", \"diabetes\")\n .text(\"% of Population Below Poverty Line\");\n\n//append y-axis labels - DEFAULT\n chart.append(\"text\")\n .attr(\"transform\", \"rotate(-90)\")\n .attr(\"y\", 0 - margin.left + 40)\n .attr(\"x\", 0 - (height / 2))\n .attr(\"dy\", \"1em\")\n .attr(\"class\", \"axisText inactive\")\n .attr(\"data-axis-name\", \"obesity\")\n .text(\"% of Population Classified as Obese\");\n\n chart.append(\"text\")\n .attr(\"transform\", \"rotate(-90)\")\n .attr(\"y\", 0 - margin.left + 40)\n .attr(\"x\", 0 - (height / 2))\n .attr(\"dy\", \"1em\")\n .attr(\"class\", \"axisText inactive\")\n .attr(\"data-axis-name\", \"internet\")\n .text(\"Level of Internet Use\");\n\n\n// Append x-axis labels -- DEFAULT\n chart.append(\"text\")\n .attr(\"transform\", \"translate(\" + (width / 2) + \" ,\" + (height + margin.top + 30) + \")\")\n .attr(\"class\", \"axisText active\")\n .attr(\"data-axis-name\", \"poverty\")\n .text(\"% of Population below Poverty Line\");\n\n//// Append x-axis labels ---FIX THESE, THEY'RE INACTIVE\n chart.append(\"text\")\n .attr(\"transform\", \"translate(\" + (width / 2) + \" ,\" + (height + margin.top + 30) + \")\")\n .attr(\"class\", \"axisText inactive\")\n .attr(\"data-axis-name\", \"education\")\n .text(\"Education Level\");\n\n chart.append(\"text\")\n .attr(\"transform\", \"translate(\" + (width / 2) + \" ,\" + (height + margin.top + 30) + \")\")\n .attr(\"class\", \"axisText inactive\")\n .attr(\"data-axis-name\", \"income\")\n .text(\"Median Income Level\");\n//////////////WRAP INACTIVE AXES\n\n// Change an axis's status from inactive to active when clicked (if it was inactive)\n // Change the status of all active axes to inactive otherwise\n function labelChange(clickedAxis) {\n d3\n .selectAll(\".axisText\")\n .filter(\".active\")\n // An alternative to .attr(\"class\", <className>) method. Used to toggle classes.\n .classed(\"active\", false)\n .classed(\"inactive\", true);\n\n clickedAxis.classed(\"inactive\", false).classed(\"active\", true);\n }\n\n d3.selectAll(\".axis-text\").on(\"click\", function() {\n // Assign a variable to current axis\n var clickedSelection = d3.select(this);\n // \"true\" or \"false\" based on whether the axis is currently selected\n var isClickedSelectionInactive = clickedSelection.classed(\"inactive\");\n // console.log(\"this axis is inactive\", isClickedSelectionInactive)\n // Grab the data-attribute of the axis and assign it to a variable\n // e.g. if data-axis-name is \"poverty,\" var clickedAxis = \"poverty\"\n var clickedAxis = clickedSelection.attr(\"data-axis-name\");\n console.log(\"current axis: \", clickedAxis);\n\n // The onclick events below take place only if the x-axis is inactive\n // Clicking on an already active axis will therefore do nothing\n if (isClickedSelectionInactive) {\n // Assign the clicked axis to the variable currentAxisLabelX\n currentAxisLabelX = clickedAxis;\n // Call findMinAndMax() to define the min and max domain values.\n findMinAndMax(currentAxisLabelX);\n // Set the domain for the x-axis\n xLinearScale.domain([xMin, xMax]);\n // Create a transition effect for the x-axis\n svg\n .select(\".x-axis\")\n .transition()\n // .ease(d3.easeElastic)\n .duration(1800)\n .call(bottomAxis);\n // Select all circles to create a transition effect, then relocate its horizontal location\n // based on the new axis that was selected/clicked\n d3.selectAll(\"circle\").each(function() {\n d3\n .select(this)\n .transition()\n // .ease(d3.easeBounce)\n .attr(\"cx\", function(data) {\n return xLinearScale(usData[currentAxisLabelX]);\n })\n .duration(1800);\n });\n\n // Change the status of the axes. See above for more info on this function.\n labelChange(clickedSelection);\n }\n\n\n\n });\n}", "function updateD3Chart() {\n\n var datasets = [];\n var datasetsLabel = [];\n var dataset;\n\n var index, len;\n var location;\n\n var colorsLow = ['lightgreen', 'pink', 'lightblue', 'white'];\n var colorsHigh = ['green', 'red', 'blue', 'purple'];\n\n //static mock data\n // var dataset = [1, 31, 42, 35, 23, 55, 32, 44, 36];\n\n var largestDataSetLen = 0;\n\n for (index = 0, len = $scope.compareLocations.length; index < len; ++index) {\n\n //get location object\n location = getLocationById($scope.compareLocations[index]);\n\n //map the temprature sets into an array\n datasets.push(_.map(location.history, function (n) {\n return kelvinToFahrenheit(n.main.temp);\n })\n );\n\n datasetsLabel.push(_.map(location.history, function (n) {\n return n.dt;\n })\n );\n\n if(datasets[index].length > largestDataSetLen){\n largestDataSetLen = datasets[index].length;\n }\n\n }\n\n var margin = {top:25,right:5,bottom:5,left:35}\n\n var totalWidth = 835;\n var totalHeight = 300;\n\n for (index = 0, len = datasets.length; index < len; ++index) {\n\n dataset = datasets[index];\n\n var w = 835 - margin.left - margin.right;\n var h = totalHeight/len - margin.top - margin.bottom;\n\n var svg = d3.select('#chartArea')\n .append('svg')\n .attr('width', w + margin.left + margin.right)\n .attr('height', h + margin.top + margin.bottom)\n .append('g')\n .attr('transform', 'translate(' + margin.left + ', ' + margin.top + ')');\n\n var xScale = d3.scale.ordinal()\n .domain(dataset)\n .rangeBands([0, w], 0.1, 0)\n\n //allData is used for global chart metrics\n var allData = _.flatten(datasets);\n\n var yScale = d3.scale.linear()\n .domain([d3.min(allData),d3.max(allData)])\n .range([h,0]);\n\n var colorScale = d3.scale.linear()\n .domain([d3.min(allData), d3.max(allData) ])\n .range([colorsHigh[index], colorsLow[index]]);\n\n var yAxis = d3.svg.axis()\n .scale(yScale)\n .orient('left')\n .ticks(20/len)\n .innerTickSize(1)\n .outerTickSize(2)\n .tickPadding(5);\n\n var xAxis = d3.svg.axis()\n .scale(xScale)\n .orient('top')\n .ticks(8)\n .innerTickSize(1)\n .outerTickSize(2)\n .tickPadding(5);\n\n svg.append('g')\n .attr('class', 'y axis')\n .call(yAxis);\n\n //if(index === 0){\n svg.append('g')\n .attr('class', 'x axis')\n //.attr('transform', 'translate(' + margin.left + ', ' + h + ')')\n .call(xAxis);\n //}\n\n svg.selectAll('rect')\n .data(dataset)\n .enter()\n .append('rect')\n .attr('class', 'bar')\n .attr('x', function (d, i) {\n return xScale(d);\n })\n .attr('y', function (d) {\n return h-yScale(d);\n })\n .attr('width', xScale.rangeBand())\n .attr('height', function (d) {\n return yScale(d);\n })\n .attr('fill', colorScale)\n .on('mouseover', function(d){\n d3.select(this).classed('overState', true)\n })\n .on('mouseout', function(d){\n d3.select(this).classed('overState', false)\n });\n }\n }", "function rectangleX(d) {\n return d.x;\n}", "function draw() {\n // + FILTER DATA BASED ON STATE\n let filteredData = state.data\n /*if (state.selection !== null) {\n filteredData = state.data.filter(d => d.class === state.selection);\n } \n */\n \n \n \n const areaFunc = d3\n .area()\n .x(d=> xScale(d.data.year))\n .y0(d => yScale(d[0]))\n .y1(d => yScale(d[1]))\n \n\n\n const area = svg\n .selectAll(\"path.area\")\n .data(filteredData, d=>d.key)\n .join(\"path\")\n .attr(\"class\", d=> \"area \" + colorScale(d.key))\n .attr(\"opacity\", 0.7) // start them off as opacity 0 and fade them in\n .attr(\"d\", areaFunc)\n .on(\"mouseover\",onMouseOver)\n .on(\"mouseout\",onMouseOut)\nmiddle = filteredData.filter(d=>d.key===\"Middle 20%\")\nconst offset = 80\nconst text = svg\n .selectAll(\"text.annotation\")\n .data(middle.slice(middle.length-1))\n .join(\"text\")\n .attr(\"class\", \"annotation\")\n .attr(\"x\", xScale(new Date(2015, 0 ,1)))\n .attr(\"y\", d=> {console.log(d)\n return yScale(d[d.length-1][1])+4})\n \ntext.append(\"tspan\")\n .text(\" - 60% of population\")\n .attr(\"x\", xScale(new Date(2015, 0 ,1))+offset)\ntext.append(\"tspan\")\n .text(\" below this line\")\n .attr(\"dy\", \"1.25em\")\n .attr(\"x\", xScale(new Date(2015, 0 ,1))+offset)\n}", "function redraw() {\n container.select(\"path\")\n .attr(\"d\", line)\n .style(\"stroke-dasharray\", \"10 5\")\n .style(\"stroke\", \"#ff7f0e\")\n .style(\"stroke-width\", 2);\n\n var circlesEnter = container.selectAll(\"circle\")\n .data(points, function (d, i) { return dataPoints[i].name; })\n .enter()\n .append(\"g\")\n .attr(\"class\", \"circle-group\")\n .on(\"mousedown\", function (d, i) {\n selected = dragged = d;\n $(this).find(\"text\").remove();\n redraw();\n }).on(\"mouseup\", function (d, i) {\n reNumber(circlesEnter);\n });\n\n circlesEnter\n .append(\"circle\")\n .attr(\"r\", 1e-6)\n .transition()\n .duration(750)\n .ease(\"elastic\")\n .attr(\"r\", 14.5)\n .text(function (b, i) { return i; })\n .style(\"stroke\", \"#ff7f0e\")\n .style(\"stroke-width\", 2)\n // .style(\"fill\", '#fff')\n // .style(\"fill\", '#ff7f0e')\n .attr(\"data-name\", function (b, i) { return dataPoints[i].name });\n\n\n reNumber(circlesEnter); // 重置序号\n\n container.selectAll(\"g.circle-group\").on(\"mouseover\", function (d) {\n // console.log(d);\n // 从d3.event获取鼠标的位置\n var transform = d3.event;\n var yPosition = transform.offsetY + 20;\n var xPosition = transform.offsetX + 20;\n // 将浮层位置设置为鼠标位置\n var tooltip = d3\n .select(\".svg-point-tooltip\")\n .style(\"left\", xPosition + \"px\")\n .style(\"top\", yPosition + \"px\");\n // 更新浮层内容\n tooltip.select(\".name\").text($(this).find('circle').attr('data-name'));\n // console.log(this.text)\n // 移除浮层hidden样式,展示浮层\n tooltip.classed(\"hidden\", false);\n })\n .on(\"mouseout\", mouseout);\n\n\n container.selectAll(\"circle\")\n .data(points, function (d, i) { return dataPoints[i].name; })\n .classed(\"selected\", function (d, i) { return d === selected; })\n .attr(\"cx\", function (d) { return d[0]; })\n .attr(\"cy\", function (d) { return d[1]; });\n\n container.selectAll(\"circle\")\n .data(points, function (d, i) { return dataPoints[i].name; })\n .exit().remove();\n\n if (d3.event) {\n d3.event.preventDefault();\n d3.event.stopPropagation();\n }\n}", "collide(alpha) {\n let quadtree = d3.geom.quadtree(this.nodes);\n return d => {\n let r = d.radius + this.maxRadius + this.padding,\n nx1 = d.x - r,\n nx2 = d.x + r,\n ny1 = d.y - r,\n ny2 = d.y + r;\n quadtree.visit((quad, x1, y1, x2, y2) => {\n if (quad.point && quad.point !== d) {\n let x = d.x - quad.point.x,\n y = d.y - quad.point.y,\n l = Math.sqrt(x * x + y * y),\n r =\n d.radius +\n quad.point.radius +\n (d.act !== quad.point.act) * this.padding;\n if (l < r) {\n l = ((l - r) / l) * alpha;\n d.x -= x *= l;\n d.y -= y *= l;\n quad.point.x += x;\n quad.point.y += y;\n }\n }\n return x1 > nx2 || x2 < nx1 || y1 > ny2 || y2 < ny1;\n });\n };\n }", "function n(e,r,t){const{x:o,y:s}=r;if(t<2){return {x:e[0]+o*e[2]+s*e[4],y:e[1]+o*e[3]+s*e[5]}}if(2===t){const r=o*o,t=s*s,i=o*s;return {x:e[0]+o*e[2]+s*e[4]+r*e[6]+i*e[8]+t*e[10],y:e[1]+o*e[3]+s*e[5]+r*e[7]+i*e[9]+t*e[11]}}const i=o*o,n=s*s,p=o*s,a=i*o,f=i*s,c=o*n,l=s*n;return {x:e[0]+o*e[2]+s*e[4]+i*e[6]+p*e[8]+n*e[10]+a*e[12]+f*e[14]+c*e[16]+l*e[18],y:e[1]+o*e[3]+s*e[5]+i*e[7]+p*e[9]+n*e[11]+a*e[13]+f*e[15]+c*e[17]+l*e[19]}}", "function dendrogram(){\n\n if(isDived == true){ //deleting previous devs (Ausführung bei Auswählen und Wegnehmen neuer Knoten!!)\n for (var s = 0; s < 7; s++){\n if(document.getElementById(\"k\" + s) !== null){\n //console.log(document.getElementById(\"k\" + s));\n document.getElementById(\"k\" + s).remove();\n }\n }\n isDived =false;\n }\n\n var width = document.getElementById(\"Dendrogramme\").offsetWidth;\n var height = document.getElementById(\"Dendrogramme\").offsetHeight;\n\n // console.log(clicked_node);\n/*\n var canvas = d3.select(\"#Dendrogramme\").append(\"svg\")\n .attr(\"width\", \"100%\")\n .attr(\"height\", \"100%\")\n .append(\"g\");\n\n*/\n //Anzeige in Divs aufteilen je nach Knotenanzahl\n if (marked.length == 1){\n var k1 = d3.select(\"#Dendrogramme\").append(\"div\").attr(\"id\",\"k1\");\n k1 .style(\"width\", \"100%\")\n .style(\"height\", \"100%\")\n .style(\"flex\",\"1\")\n //.style(\"border-bottom\", \"2px solid lightgrey\");\n isDived = true;\n split_window(\"#k1\", \"dendrok1\");\n }\n\n if(marked.length == 2){\n var k1 = d3.select(\"#Dendrogramme\").append(\"div\").attr(\"id\",\"k1\");\n k1 .style(\"width\", \"100%\")\n .style(\"height\", \"calc(50% - 2px)\")\n .style(\"flex\",\"1\")\n .style(\"border-bottom\", \"2px solid lightgrey\");\n\n var k2 = d3.select(\"#Dendrogramme\").append(\"div\").attr(\"id\",\"k2\");\n k2 .style(\"width\",\"100%\")\n .style(\"height\", \"calc(50% - 2px)\")\n .style(\"flex\",\"1\")\n .style(\"border-top\", \"2px solid lightgrey\");\n\n isDived = true;\n console.log(d3.select(\"k1\"));\n split_window(\"#k1\", \"dendrok1\");\n split_window(\"#k2\", \"dendrok2\");\n\n // console.log(document.getElementById(\"k1\"));\n }\n\n if(marked.length == 3){\n var k1 = d3.select(\"#Dendrogramme\").append(\"div\").attr(\"id\",\"k1\");\n k1 .style(\"width\",\"100%\")\n .style(\"height\", \"calc(33% - 2px)\")\n .style(\"flex\",\"1\")\n .style(\"border-bottom\", \"2px solid lightgrey\");\n\n var k2 = d3.select(\"#Dendrogramme\").append(\"div\").attr(\"id\",\"k2\");\n k2 .style(\"width\",\"100%\")\n .style(\"height\", \"calc(34% - 4px)\")\n .style(\"flex\",\"1\")\n .style(\"border-top\", \"2px solid lightgrey\")\n .style(\"border-bottom\", \"2px solid lightgrey\")\n\n var k3 = d3.select(\"#Dendrogramme\").append(\"div\").attr(\"id\",\"k3\");\n k3 .style(\"width\",\"100%\")\n .style(\"height\", \"calc(33% - 2px)\")\n .style(\"flex\",\"1\")\n .style(\"border-top\", \"2px solid lightgrey\");\n\n isDived = true;\n split_window(\"#k1\", \"dendrok1\");\n split_window(\"#k2\", \"dendrok2\");\n split_window(\"#k3\", \"dendrok3\");\n }\n\n if(marked.length == 4){\n var k1 = d3.select(\"#Dendrogramme\").append(\"div\").attr(\"id\",\"k1\");\n k1 .style(\"width\",\"100%\")\n .style(\"height\", \"calc(25% - 2px)\")\n .style(\"flex\",\"1\")\n .style(\"border-bottom\", \"2px solid lightgrey\");\n\n var k2 = d3.select(\"#Dendrogramme\").append(\"div\").attr(\"id\",\"k2\");\n k2 .style(\"width\",\"100%\")\n .style(\"height\", \"calc(25% - 4px)\")\n .style(\"flex\",\"1\")\n .style(\"border-top\", \"2px solid lightgrey\")\n .style(\"border-bottom\", \"2px solid lightgrey\");\n\n var k3 = d3.select(\"#Dendrogramme\").append(\"div\").attr(\"id\",\"k3\");\n k3 .style(\"width\",\"100%\")\n .style(\"height\", \"calc(25% - 3px)\")\n .style(\"flex\",\"1\")\n .style(\"border-bottom\", \"2px solid lightgrey\")\n .style(\"border-top\", \"1px solid lightgrey\");\n\n var k4 = d3.select(\"#Dendrogramme\").append(\"div\").attr(\"id\",\"k4\");\n k4 .style(\"width\",\"100%\")\n .style(\"height\", \"calc(25% - 2px)\")\n .style(\"flex\",\"1\")\n .style(\"border-top\", \"2px solid lightgrey\");\n\n isDived = true;\n split_window(\"#k1\", \"dendrok1\");\n split_window(\"#k2\", \"dendrok2\");\n split_window(\"#k3\", \"dendrok3\");\n split_window(\"#k4\", \"dendrok4\");\n }\n\n if(marked.length > 4){ return window.alert(\"Please select no more then four knodes for the comparrisson.\");}\n\n\n //in jedem div müssen auch noch einteilungen für die einzelnen Knoten vorgenommen werden.\n //4 knoten sollten es maximal sein bei 4 vergleichsgraphen.\n //dann haben wir 4*4 fenster und 4*4 graphen, das sollte vergleichbarkeit genug sein\n\n // ist glaube als übergabeparameter besser und die beiden \n // funktionen werden beim klicken aufgerufen und zeigen auch erst dann etwas\n // müsstest halt nur die node.name in allen graphs[i] raussuchen zum vergleichen\n\n\n}", "function transform(d, i) {\n d = new google.maps.LatLng(d.geometry.coordinates[1], d.geometry.coordinates[0]);\n d = projection.fromLatLngToDivPixel(d);\n\n node_coord[i + \",\" + 0] = d.x - padding;\n node_coord[i + \",\" + 1] = d.y - padding;\n\n return d3.select(this)\n .style(\"left\", (d.x - padding) + \"px\")\n .style(\"top\", (d.y - padding) + \"px\");\n }", "function createEdge(x,y,undirected)\n{\n if(!nodes[x])\n {\n cood=coods.pop();\n // addNode(x+1,cood[0],cood[1]);\n pos[x]=[];\n pos[x][0]=cood[0];\n pos[x][1]=cood[1];\n }\n\n if(!nodes[y])\n {\n cood=coods.pop();\n \n pos[y]=[];\n pos[y][0]=cood[0];\n pos[y][1]=cood[1];\n }\n\n const svg=d3.select('svg');\n var x1=pos[x][0], y1=pos[x][1], x2=pos[y][0], y2=pos[y][1];\n\n midx1=(x1+x2)/2;\n midy1=(y1+y2)/2;\n \n if(undirected)\n {\n toss =Math.floor(Math.random()*2);\n if(toss)\n {\n midx1+=25;\n midy1+=25;\n }\n else \n {\n midx1-=25;\n midy1-=25;\n }\n svg.append('path')\n .attr('id',`edge${x}${y}`)\n .attr('d',`M ${x1} ${y1} S ${midx1} ${midy1} ${x2} ${y2}`)\n .attr('stroke','black')\n .attr('fill','none');\n }\n\n else\n {\n svg.append('path')\n .attr('id',`edge${x}${y}`)\n .attr('d',`M ${x1} ${y1} L ${x2} ${y2}`)\n .attr('stroke','black')\n .attr('fill','none');\n \n var m=(y2-y1)/(x2-x1);\n var deg = Math.atan(m);\n deg=(deg/Math.PI)*180;\n\n if(x2<x1)\n {\n svg.append('polygon')\n .attr('transform',`translate(${midx1} ${midy1}) rotate(${270+deg})`)\n .attr('points',\"0,0 -7,14 7,14\");\n }\n\n else\n {\n svg.append('polygon')\n .attr('transform',`translate(${midx1} ${midy1}) rotate(${90+deg})`)\n .attr('points',\"0,0 -7,14 7,14\");\n }\n }\n \n addNode(y+1,x2,y2);\n addNode(x+1,x1,y1);\n}", "function getD3Rendering(scope, ele, attrs) {\n return function(d3) {\n var w = ele[0].offsetWidth;\n var h = ele[0].offsetHeight || 800;\n var keyc = true,\n keys = true,\n keyt = true,\n keyr = true,\n keyx = true,\n keyd = true,\n keyl = true,\n keym = true,\n keyh = true,\n key1 = true,\n key2 = true,\n key3 = true,\n key0 = true;\n var focus_node = null,\n highlight_node = null;\n var text_center = false;\n var outline = false;\n var min_score = 0;\n var max_score = 1;\n var increment = (max_score - min_score) / 6;\n var color = d3.scale.linear().domain([min_score,\n min_score + increment, min_score + 2 *\n increment, min_score + 3 * increment,\n min_score + 4 * increment, min_score + 5 *\n increment, max_score\n ]).range(['#FFFFEE', '#D7DCDD', '#AACCDD',\n '#36C5F4', '#3F6F7F', '#116688', '#002633'\n ]);\n var highlight_color = 'blue';\n var highlight_trans = 0.1;\n var size = d3.scale.pow().exponent(1).domain([1, 100]).range([8, 24]);\n var force = d3.layout.force().linkDistance(60).charge(-300).size([w, h]);\n var default_node_color = '#ccc';\n var default_link_color = '#888';\n var nominal_base_node_size = 8;\n var nominal_text_size = 25;\n var max_text_size = 24;\n var nominal_stroke = 1.5;\n var max_stroke = 4.5;\n var max_base_node_size = 36;\n var min_zoom = .15;\n var max_zoom = 3;\n //var min_zoom = 0.1;\n //var max_zoom = 7;\n var svg = d3.select(ele[0]).append('svg').style('width', '100%')\n .attr('width', w).attr('height', h);\n var zoom = d3.behavior.zoom().scaleExtent([min_zoom, max_zoom]);\n svg.style('cursor', 'move');\n // watch for data changes and re-render\n scope.$watch('data', function(newVals, oldVals) {\n return render(newVals);\n }, true);\n //render( scope.data);\n function render(data) {\n // our custom d3 code\n svg.selectAll('*').remove();\n var g = svg.append('g');\n // If we don't pass any data, return out of the element\n if (!data) return;\n var graph = data;\n var linkedByIndex = {};\n graph.links.forEach(function(d) {\n linkedByIndex[d.source + ',' + d.target] = true;\n });\n\n function isConnected(a, b) {\n return linkedByIndex[a.index + ',' + b.index]\n || linkedByIndex[b.index + ',' + a.index]\n || a.index == b.index;\n }\n\n function hasConnections(a) {\n for (var property in linkedByIndex) {\n s = property.split(',');\n if ((s[0] == a.index || s[1] == a.index)\n && linkedByIndex[property]) {\n return true;\n }\n }\n return false;\n }\n force.nodes(graph.nodes).links(graph.links).start();\n var link = g.selectAll('.link').data(graph.links).enter()\n .append('line')\n .attr('class', 'link')\n .style('stroke-width', nominal_stroke)\n .style('stroke',\n function(d) {\n if (isNumber(d.score) && d.score >= 0)\n return color(d.score);\n else return default_link_color;\n });\n var node = g.selectAll('.node').data(graph.nodes).enter()\n .append('g')\n .attr('class', 'node')\n .call(force.drag);\n node.on('dblclick.zoom', function(d) {\n d3.event.stopPropagation();\n var dcx = (ele[0].offsetWidth / 2 - d.x *\n zoom.scale());\n var dcy = ((ele[0].offsetHeight || 800) / 2 - d.y * zoom.scale());\n zoom.translate([dcx, dcy]);\n g.attr('transform', 'translate(' + dcx + ',' + dcy + ')scale(' + zoom.scale() + ')');\n });\n var tocolor = 'fill';\n var towhite = 'stroke';\n if (outline) {\n tocolor = 'stroke';\n towhite = 'fill';\n }\n var circle = node.append('path').attr('d', d3.svg.symbol()\n .size(function(d) {\n return Math.PI * Math.pow(size(d.size)\n || nominal_base_node_size, 2);\n })\n .type(function(d) {\n if (d.type) return d.type;\n return 'circle';\n }))\n .style(tocolor, function(d) {\n if (isNumber(d.score) && d.score >= 0)\n return color(d.score);\n else return default_node_color;\n })\n //.attr('r', function(d) { return size(d.size)||nominal_base_node_size; })\n .style('stroke-width', nominal_stroke).style(\n towhite, 'white');\n var text = g.selectAll('.text').data(graph.nodes).enter()\n .append('text')\n .attr('dy', '.35em')\n .style('font-size', nominal_text_size + 'px');\n if (text_center) text.text(function(d) {\n return d.name;\n })\n .style('text-anchor', 'middle');\n else text.attr('dx', function(d) {\n return (size(d.size) ||\n nominal_base_node_size);\n }).attr('idx', function(d) {\n return d.id;\n }).text(function(d) {\n //var val = (d.name) ? d.name : d.id;\n var val = (d.name) ? d.name : '';\n return '\\u2002' + val;\n }).style('visibility', 'hidden');\n node.on('mouseover', function(d) {\n g.select('[idx=\" \" + d.id + \" \"]').style('visibility', 'visible');\n set_highlight(d);\n }).on('mousedown', function(d) {\n d3.event.stopPropagation();\n focus_node = d;\n set_focus(d);\n if (highlight_node === null)\n set_highlight(d);\n }).on('mouseout', function(d) {\n g.select('[idx=\" \" + d.id + \" \"]').style('visibility', 'hidden');\n exit_highlight();\n });\n d3.select(window).on('mouseup', function() {\n if (focus_node !== null) {\n focus_node = null;\n if (highlight_trans < 1) {\n circle.style('opacity', 1);\n text.style('opacity', 1);\n link.style('opacity', 1);\n }\n }\n if (highlight_node === null) {\n exit_highlight();\n }\n });\n\n function exit_highlight() {\n highlight_node = null;\n if (focus_node === null) {\n svg.style('cursor', 'move');\n if (highlight_color != 'white') {\n circle.style(towhite, 'white');\n text.style('font-weight', 'normal');\n link.style('stroke', function(o) {\n return (isNumber(o.score) && o.score >= 0)\n ? color(o.score)\n : default_link_color;\n });\n }\n }\n }\n\n function set_focus(d) {\n if (highlight_trans < 1) {\n circle.style('opacity', function(o) {\n return isConnected(d, o) ? 1 : highlight_trans;\n });\n text.style('opacity', function(o) {\n return isConnected(d, o) ? 1 : highlight_trans;\n });\n link.style('opacity', function(o) {\n return o.source.index == d.index || o.target.index == d.index\n ? 1 : highlight_trans;\n });\n }\n }\n\n function set_highlight(d) {\n svg.style('cursor', 'pointer');\n if (focus_node !== null) d = focus_node;\n highlight_node = d;\n if (highlight_color != 'white') {\n circle.style(towhite, function(o) {\n return isConnected(d, o) ? highlight_color : 'white';\n });\n text.style('font-weight', function(o) {\n return isConnected(d, o) ? 'bold' : 'normal';\n });\n link.style('stroke', function(o) {\n return o.source.index == d.index || o.target.index == d.index\n ? highlight_color\n : ((isNumber(o.score) && o.score >= 0)\n ? color(o.score)\n : default_link_color);\n });\n }\n }\n zoom.on('zoom', function() {\n var stroke = nominal_stroke;\n if (nominal_stroke * zoom.scale() > max_stroke) {\n stroke = max_stroke / zoom.scale();\n }\n link.style('stroke-width', stroke);\n circle.style('stroke-width', stroke);\n var base_radius = nominal_base_node_size;\n if (nominal_base_node_size * zoom.scale() > max_base_node_size) {\n base_radius = max_base_node_size / zoom.scale();\n }\n circle.attr(\n 'd',\n d3.svg.symbol().size(\n function(d) {\n return Math.PI * Math.pow(\n size(d.size) *\n base_radius / nominal_base_node_size ||\n base_radius, 2);\n }).type(function(d) {\n if (d.type) {\n return d.type;\n }\n return 'circle';\n })\n );\n //circle.attr('r', function(d) { return (size(d.size)*base_radius/nominal_base_node_size||base_radius); })\n if (!text_center) text.attr('dx',\n function(d) {\n return (size(d.size) * base_radius / nominal_base_node_size || base_radius);\n });\n var text_size = nominal_text_size;\n if (nominal_text_size * zoom.scale() > max_text_size) {\n text_size = max_text_size / zoom.scale();\n }\n text.style('font-size', text_size + 'px');\n g.attr('transform', 'translate(' + d3.event.translate + ')scale(' + d3.event.scale + ')');\n });\n svg.call(zoom);\n resize();\n //window.focus();\n d3.select(window).on('resize', resize).on('keydown', keydown);\n force.on('tick', function() {\n node[0].x = w / 2;\n node[0].y = h / 2;\n node.attr('transform', function(d) {\n return 'translate(' + d.x + ',' + d.y + ')';\n });\n text.attr('transform', function(d) {\n return 'translate(' + d.x + ',' + d.y + ')';\n });\n link.attr('x1', function(d) {\n return d.source.x;\n }).attr('y1', function(d) {\n return d.source.y;\n }).attr('x2', function(d) {\n return d.target.x;\n }).attr('y2', function(d) {\n return d.target.y;\n });\n node.attr('cx', function(d) {\n return d.x;\n }).attr('cy', function(d) {\n return d.y;\n });\n });\n\n function resize() {\n var width = ele[0].offsetWidth,\n height = ele[0].offsetHeight || 800;\n svg.attr('width', width).attr('height', height);\n force.size([force.size()[0] + (width - w) / zoom.scale(), force.size()[1] + (height - h) / zoom.scale()]).resume();\n w = width;\n h = height;\n }\n\n function keydown() {\n if (d3.event.keyCode == 32) {\n force.stop();\n } else if (d3.event.keyCode >= 48\n && d3.event.keyCode <= 90\n && !d3.event.ctrlKey\n && !d3.event.altKey\n && !d3.event.metaKey) {\n switch (String.fromCharCode(d3.event.keyCode)) {\n case 'C':\n keyc = !keyc;\n break;\n case 'S':\n keys = !keys;\n break;\n case 'T':\n keyt = !keyt;\n break;\n case 'R':\n keyr = !keyr;\n break;\n case 'X':\n keyx = !keyx;\n break;\n case 'D':\n keyd = !keyd;\n break;\n case 'L':\n keyl = !keyl;\n break;\n case 'M':\n keym = !keym;\n break;\n case 'H':\n keyh = !keyh;\n break;\n case '1':\n key1 = !key1;\n break;\n case '2':\n key2 = !key2;\n break;\n case '3':\n key3 = !key3;\n break;\n case '0':\n key0 = !key0;\n break;\n }\n link.style('display', function(d) {\n var flag = vis_by_type(d.source.type)\n && vis_by_type(d.target.type)\n && vis_by_node_score(d.source.score)\n && vis_by_node_score(d.target.score)\n && vis_by_link_score(d.score);\n linkedByIndex[d.source.index + ',' + d.target.index] = flag;\n return flag ? 'inline' : 'none';\n });\n node.style('display', function(d) {\n return (key0 || hasConnections(d)) && vis_by_type(d.type)\n && vis_by_node_score(d.score)\n ? 'inline' : 'none';\n });\n text.style('display', function(d) {\n return (key0 || hasConnections(d)) && vis_by_type(d.type)\n && vis_by_node_score(d.score)\n ? 'inline' : 'none';\n });\n if (highlight_node !== null) {\n if ((key0 || hasConnections(highlight_node))\n && vis_by_type(highlight_node.type)\n && vis_by_node_score(highlight_node.score)) {\n if (focus_node !== null) {\n set_focus(focus_node);\n }\n set_highlight(highlight_node);\n } else {\n exit_highlight();\n }\n }\n }\n }\n }\n\n function vis_by_type(type) {\n switch (type) {\n case 'circle':\n return keyc;\n case 'square':\n return keys;\n case 'triangle-up':\n return keyt;\n case 'diamond':\n return keyr;\n case 'cross':\n return keyx;\n case 'triangle-down':\n return keyd;\n default:\n return true;\n }\n }\n\n function vis_by_node_score(score) {\n if (isNumber(score)) {\n if (score >= 0.666) return keyh;\n else if (score >= 0.333) return keym;\n else if (score >= 0) return keyl;\n }\n return true;\n }\n\n function vis_by_link_score(score) {\n if (isNumber(score)) {\n if (score >= 0.666) return key3;\n else if (score >= 0.333) return key2;\n else if (score >= 0) return key1;\n }\n return true;\n }\n\n function isNumber(n) {\n return !isNaN(parseFloat(n)) && isFinite(n);\n }\n };\n }", "createAxis()\n {\n // já que vamos atualizar os dados do gráficos o eixo deve sempre atualizar esse xAxis, yAxis a cada update!\n // já que esses são \"intervalos\" escalados de acordo com os dados ! (dados(extent(min,max)) -> pixels(min,max))\n \n/* \n let xAxis = d3.axisBottom(this.xScale).ticks(15);\n let yAxis = d3.axisLeft(this.yScale).ticks(15); // eixos com 15 marcas\n\n this.margins\n .append(\"g\") // criar grupo que vai conter os elementos que fazem parte do eixo (que na verdade são os dados são valores da margem!)\n .attr(\"transform\",`translate(0,${this.config.height})`) // transladar na altura da área de desenho (os eixos usam os valores (dados) da escala mas eles não se submetem a ela! (nesse caso))\n .call(xAxis); // a função xAxis vai ser chamada e o argumento dela vai ser o grupo g que foi criado!\n\n this.margins\n .append(\"g\")\n .call(yAxis); \n*/\n // vamos por enquanto só criar os grupos dos eixos x e y \n\n let xAxis = d3.axisBottom(this.xScale).ticks(this.ticks);\n\n let yAxis = d3.axisLeft(this.yScale).ticks(this.ticks)\n\n this.margins\n .append(\"g\") \n .attr('class','ei-x')\n .attr(\"transform\",`translate(0,${this.config.height})`)\n .call(xAxis); \n \n this.margins\n .append(\"g\")\n .attr('class','ei-y')\n .call(yAxis); \n \n\n }", "function drawTooltip() {\n \n console.log(d3.mouse(this));\n \n \n //console.log(Math.floor(xScale.invert(d3.mouse(this)[0])))\n mYear = Math.floor(xScale.invert(d3.mouse(this)[0])) + 1;\n\n cYear = dataset.year[0];\n for (i = 0; i < dataset.year.length; i++) {\n if (Math.abs(cYear - mYear) > Math.abs(dataset.year[i] - mYear)) {\n cYear = dataset.year[i];\n }\n\n //console.log(\"myear \" + Math.floor(xScale.invert(d3.mouse(this)[0])))\n //console.log(\"cyear \" + cYear);\n\n\n }\n\n\n\n\n tooltipLine.attr('stroke', 'black')\n .attr('x1', xScale(cYear))\n .attr('x2', xScale(cYear))\n .attr('y1', 0)\n .attr('y2', height);\n\n\n\n var f2s = d3.format('.2s');\n var index = dataset.year.indexOf(cYear);\n console.log(\"x: \"+ d3.event.pageX + \"y: \" + d3.event.pageY);\n tooltipBox\n .style('display', 'inline')\n .html(\"Year : \" + cYear + \" <br/>\" + \"Total: \" + f2s(data[index].population) + \"<br/>\" + \"Non Local: \" + f2s(dataNLocal[index].population) + \"<br/>\" + \"Local: \" + f2s(dataLocal[index].population))\n //.style('left', d3.event.pageX - 34)\n //.style('top', d3.event.pageY - 12)\n .style('left', d3.mouse(this)[0] -34 )\n .style('top', d3.mouse(this)[1] -12)\n }", "function ticked() {\n link\n .attr(\"x1\", function(d) { return d.source.x; })\n .attr(\"y1\", function(d) { return d.source.y; })\n .attr(\"x2\", function(d) { return d.target.x; })\n .attr(\"y2\", function(d) { return d.target.y; });\n\n node\n .attr(\"cx\", function (d) { return d.x; })\n .attr(\"cy\", function(d) { return d.y; });\n}", "function getEdges() {\n return d3.selectAll('g .link')\n}", "function reChartCircle(graph,link) {\nvar initialX=50, initialY=50;\nvar maxWeight=0;\t \ngraph.applications.forEach(function(d,i) {\n maxWeight = (d.weight>maxWeight)?d.weight:maxWeight;\n});\n\nvar currentWeight=0;\nvar centreX=viewBoxWidth/2;\nvar centreY=viewBoxHeight/2;\nvar r=0, theta=0, thetaInRadian=0;\n//ellipse parameters\n//a=semi-major-axis, b=semi-minor-axis, c=inter-foci distance\nvar a=0, b=0;\n\nvar flag=1;\nvar noOfElements=graph.applications.length;\nconsole.log(width+\" : \"+height+\" \"+noOfElements);\nvar graph = d3.nest()\n\t\t\t\t.key(function(d){return parseInt(d.weight);})\n\t\t\t\t.sortKeys()\n\t\t\t\t.entries(graph.applications);\ngraph.forEach(function(d,i) {\n\tvar positionRadiusScale=d3.scale.log()\n\t\t\t\t\t\t\t\t.domain([maxWeight,1])\n\t\t\t\t\t\t\t\t.range([20,height/2.5]);\n\t//console.log(d.key+\" : \"+d.values.length+\" : \"+d.values[0]+\" : \"+i);\n//\tThe data is sorted according to the weight(degree) of the nodes. \n//Hence d.key is the weight of the collection of nodes \n//So r is a fn of the weight of the nodes. For a group of nodes of identical weight the value of r is same.\n\tb=positionRadiusScale(d.key);\n\ta=width/height*b;\n\tp=Math.pow(b,2)/a;\n\ttheta=(100/d.values.length)*Math.random();\n\tvar angleIncrement=360/d.values.length;\n\t\n\td.values.forEach(function(e,j){\n\te.fixed=false;\n\tcurrentWeight=e.weight;\n\ttheta=(theta>360)?0:theta;\n\tthetaInRadian=theta*Math.PI/180;\n\tr=a*b/(Math.sqrt(Math.pow(b*Math.cos(thetaInRadian),2)+Math.pow(a*Math.sin(thetaInRadian),2)));\n\t//r=p/(1-eccentricity*Math.cos(thetaInRadian));\n\tvar majorY=centreY-r*Math.sin(thetaInRadian);\n\tvar minorY=0;\n\tvar majorX=centreX+r*Math.cos(thetaInRadian);\n\tvar minorX=0;\n//special treatment for highest-degree node\n\tif(currentWeight===maxWeight)\n\t{\n\tmajorX=centreX;\n\tmajorY=centreY;\n\tminorX=minorY=0;\n\te.fixed=true;\n\t}\n//special treatment for 0-degree nodes - set them at a corner indicating errors \n\tif(currentWeight===0)\n\t{\n\tmajorX=1500;\n\tmajorY=majorY;\n\tminorX=minorY=0;\n\t}\n e.y = e.py = majorY+minorY;\n e.x = e.px = majorX+minorX;\n if(e.fixed!=true)\n {\n e.fixed=(e.weight<20)?true:false;\n }\n //Increment theta\n if(e.id==\"44\")\n {\n console.log(e);\n console.log(i+\" : \"+a+\" : \"+b+\" : \"+r+\" : \"+thetaInRadian+\" : \"+e.name+\" : \"+e.x+\" : \"+e.y+\" : \"+e.weight+\" : \"+e.fixed);\n }\n //console.log(i+\" : \"+a+\" : \"+b+\" : \"+r+\" : \"+thetaInRadian+\" : \"+e.name+\" : \"+e.x+\" : \"+e.y+\" : \"+e.weight+\" : \"+e.fixed);\n theta=theta+angleIncrement;\n\t});\n});\n drawNodes();\n drawLinks(link);\n fStartTicking=false;\n}" ]
[ "0.60988605", "0.58762753", "0.5790278", "0.57821137", "0.5664158", "0.5621234", "0.559586", "0.5564337", "0.55374056", "0.5500207", "0.5463439", "0.5448093", "0.5433864", "0.54269993", "0.5418614", "0.5401882", "0.53843695", "0.53351146", "0.53228676", "0.5318037", "0.53177136", "0.53153914", "0.5301541", "0.5299558", "0.52929974", "0.529215", "0.5291047", "0.52829635", "0.5278139", "0.52757186", "0.52736133", "0.52616006", "0.5248618", "0.52426255", "0.52426255", "0.52426255", "0.52397406", "0.5237391", "0.5235253", "0.5234809", "0.5215826", "0.52148753", "0.5214501", "0.5203518", "0.5203361", "0.51927114", "0.5188424", "0.51879007", "0.518421", "0.5181808", "0.5181276", "0.51779747", "0.5172799", "0.51709694", "0.51697296", "0.51678914", "0.5167037", "0.51663136", "0.516154", "0.51568425", "0.5154871", "0.5154689", "0.51529497", "0.51491016", "0.5148031", "0.51449007", "0.5144891", "0.51390684", "0.5137392", "0.513561", "0.51295733", "0.5125599", "0.5124416", "0.51214224", "0.51214224", "0.5120858", "0.51200247", "0.5116701", "0.51122785", "0.5104629", "0.51045835", "0.5104564", "0.51019627", "0.51008856", "0.50983125", "0.50971013", "0.50942165", "0.50868773", "0.50860673", "0.5085104", "0.50840807", "0.50816035", "0.5080913", "0.5078107", "0.5075914", "0.5072481", "0.5071477", "0.5069721", "0.5066896", "0.5063116", "0.506304" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function legendSelectActionHandler(methodName, payload, ecModel) { var selectedMap = {}; var isToggleSelect = methodName === 'toggleSelected'; var isSelected; // Update all legend components ecModel.eachComponent('legend', function (legendModel) { if (isToggleSelect && isSelected != null) { // Force other legend has same selected status // Or the first is toggled to true and other are toggled to false // In the case one legend has some item unSelected in option. And if other legend // doesn't has the item, they will assume it is selected. legendModel[isSelected ? 'select' : 'unSelect'](payload.name); } else if (methodName === 'allSelect' || methodName === 'inverseSelect') { legendModel[methodName](); } else { legendModel[methodName](payload.name); isSelected = legendModel.isSelected(payload.name); } var legendData = legendModel.getData(); zrUtil.each(legendData, function (model) { var name = model.get('name'); // Wrap element if (name === '\n' || name === '') { return; } var isItemSelected = legendModel.isSelected(name); if (selectedMap.hasOwnProperty(name)) { // Unselected if any legend is unselected selectedMap[name] = selectedMap[name] && isItemSelected; } else { selectedMap[name] = isItemSelected; } }); }); // Return the event explicitly return methodName === 'allSelect' || methodName === 'inverseSelect' ? { selected: selectedMap } : { name: payload.name, selected: selectedMap }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "started () {}", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "started() {\r\n\r\n\t}", "function SigV4Utils() { }", "static get NOT_READY () {return 0}", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "initialize() {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "function getImplementation( cb ){\n\n }", "heartbeat () {\n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "static final private internal function m106() {}", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "get WSAPlayerX64() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }" ]
[ "0.53492224", "0.48935446", "0.48514137", "0.48082927", "0.47720826", "0.4744996", "0.47347993", "0.47019523", "0.46926585", "0.46926585", "0.46730793", "0.46452278", "0.46379203", "0.46256977", "0.4618543", "0.45818752", "0.45806864", "0.45742333", "0.4568166", "0.45616665", "0.45558366", "0.4549164", "0.45481402", "0.45447382", "0.4537214", "0.4522665", "0.451785", "0.4497493", "0.44942656", "0.4484697", "0.4472648", "0.44683102", "0.4465637", "0.44581723", "0.44557354", "0.4454013", "0.44524705", "0.44436827", "0.44380364", "0.4427005", "0.44242096", "0.44237852", "0.44070554", "0.44050547", "0.44050547", "0.44050547", "0.4404598", "0.4393088", "0.43767613", "0.43684104", "0.43635124", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43511948", "0.43502447", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43443355", "0.43417493", "0.43380377", "0.43350744", "0.43350744", "0.4332956", "0.43327877" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function _default(ecModel) { var processedMapType = {}; ecModel.eachSeriesByType('map', function (mapSeries) { var mapType = mapSeries.getMapType(); if (mapSeries.getHostGeoModel() || processedMapType[mapType]) { return; } var mapSymbolOffsets = {}; zrUtil.each(mapSeries.seriesGroup, function (subMapSeries) { var geo = subMapSeries.coordinateSystem; var data = subMapSeries.originalData; if (subMapSeries.get('showLegendSymbol') && ecModel.getComponent('legend')) { data.each(data.mapDimension('value'), function (value, idx) { var name = data.getName(idx); var region = geo.getRegion(name); // If input series.data is [11, 22, '-'/null/undefined, 44], // it will be filled with NaN: [11, 22, NaN, 44] and NaN will // not be drawn. So here must validate if value is NaN. if (!region || isNaN(value)) { return; } var offset = mapSymbolOffsets[name] || 0; var point = geo.dataToPoint(region.center); mapSymbolOffsets[name] = offset + 1; data.setItemLayout(idx, { point: point, offset: offset }); }); } }); // Show label of those region not has legendSymbol(which is offset 0) var data = mapSeries.getData(); data.each(function (idx) { var name = data.getName(idx); var layout = data.getItemLayout(idx) || {}; layout.showLabel = !mapSymbolOffsets[name]; data.setItemLayout(idx, layout); }); processedMapType[mapType] = true; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "started () {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "function SigV4Utils() { }", "started() {\r\n\r\n\t}", "static get NOT_READY () {return 0}", "initialize() {\n\n }", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "function getImplementation( cb ){\n\n }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "heartbeat () {\n }", "static final private internal function m106() {}", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "get WSAPlayerX64() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }" ]
[ "0.53504926", "0.4896905", "0.48514667", "0.48116106", "0.4775166", "0.4743932", "0.47342455", "0.47035336", "0.4694186", "0.4694186", "0.46744877", "0.46453032", "0.46394095", "0.4629355", "0.46211302", "0.45832416", "0.45812932", "0.45752546", "0.45698234", "0.45625272", "0.4557475", "0.4549714", "0.45494938", "0.4545794", "0.45383474", "0.4523037", "0.45180768", "0.45005357", "0.4496748", "0.4486438", "0.447462", "0.44716924", "0.4468301", "0.44601226", "0.4456266", "0.4455926", "0.44557476", "0.4445067", "0.44378054", "0.44258687", "0.44258553", "0.4424118", "0.44097725", "0.4406038", "0.4404498", "0.4404498", "0.4404498", "0.43926418", "0.43781474", "0.43708664", "0.43657827", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43526813", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4349645", "0.43450522", "0.43440443", "0.43390423", "0.43347356", "0.43347356", "0.43332103", "0.43318707" ]
0.0
-1
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (render) { options.render = render options.staticRenderFns = staticRenderFns options._compiled = true } // functional template if (functionalTemplate) { options.functional = true } // scopedId if (scopeId) { options._scopeId = 'data-v-' + scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = shadowMode ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } : injectStyles } if (hook) { if (options.functional) { // for template-only hot-reload because in that case the render fn doesn't // go through the normalizer options._injectStyles = hook // register for functioal component in vue file var originalRender = options.render options.render = function renderWithStyleInjection (h, context) { hook.call(context) return originalRender(h, context) } } else { // inject component registration as beforeCreate hook var existing = options.beforeCreate options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } } return { exports: scriptExports, options: options } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (ctx.isDev && ctx.isClient) {\n config.devtool = \"source-map\";\n // if (isDev && process.isClient) {\n config.plugins.push(\n new StylelintPlugin({\n files: [\"**/*.vue\", \"**/*.scss\"],\n })\n ),\n config.module.rules.push({\n enforce: \"pre\",\n test: /\\.(js|vue)$/,\n loader: \"eslint-loader\",\n exclude: /(node_modules)/,\n options: {\n formatter: require(\"eslint-friendly-formatter\"),\n },\n });\n if (ctx.isDev) {\n config.mode = \"development\";\n }\n }\n for (const rule of config.module.rules) {\n if (rule.use) {\n for (const use of rule.use) {\n if (use.loader === \"sass-loader\") {\n use.options = use.options || {};\n use.options.includePaths = [\n \"node_modules/foundation-sites/scss\",\n \"node_modules/motion-ui/src\",\n ];\n }\n }\n }\n }\n // vue-svg-inline-loader\n const vueRule = config.module.rules.find((rule) =>\n rule.test.test(\".vue\")\n );\n vueRule.use = [\n {\n loader: vueRule.loader,\n options: vueRule.options,\n },\n {\n loader: \"vue-svg-inline-loader\",\n },\n ];\n delete vueRule.loader;\n delete vueRule.options;\n }", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}" ]
[ "0.58472276", "0.5728634", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. / Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function normalize(a) { if (!(a instanceof Array)) { a = [a, a]; } return a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onChildAppStart () {\n\n }", "get Android() {}", "onMessageStart() { }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "createStream () {\n\n }", "onComponentMount() {\n\n }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "didMount() {\n }", "requestContainerInfo() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "function bridgeAndroidAndIOS() {\r\n\r\n //ios\r\n function setupWebViewJavascriptBridge(callback) {\r\n if (window.WebViewJavascriptBridge) {\r\n return callback(WebViewJavascriptBridge);\r\n }\r\n if (window.WVJBCallbacks) {\r\n return window.WVJBCallbacks.push(callback);\r\n }\r\n window.WVJBCallbacks = [callback];\r\n var WVJBIframe = document.createElement('iframe');\r\n WVJBIframe.style.display = 'none';\r\n WVJBIframe.src = 'https://__bridge_loaded__';\r\n document.documentElement.appendChild(WVJBIframe);\r\n setTimeout(function() {\r\n document.documentElement.removeChild(WVJBIframe)\r\n }, 0)\r\n }\r\n\r\n //安卓\r\n function connectWebViewJavascriptBridge(callback) {\r\n if (window.WebViewJavascriptBridge) {\r\n callback(WebViewJavascriptBridge)\r\n } else {\r\n document.addEventListener(\r\n 'WebViewJavascriptBridgeReady',\r\n function() {\r\n callback(WebViewJavascriptBridge)\r\n },\r\n false\r\n );\r\n }\r\n }\r\n\r\n function bridgeLog(logContent) {\r\n uni.showModal({\r\n title: \"原始数据\",\r\n content: logContent,\r\n })\r\n }\r\n\r\n switch (uni.getSystemInfoSync().platform) {\r\n case 'android':\r\n connectWebViewJavascriptBridge(function(bridge) {\r\n bridge.init();\r\n bridge.registerHandler(\"GetUser\", function(data, responseCallback) {\r\n if(JSON.parse(data).guid != \"null\"){\r\n uni.setStorageSync('userInfo', {\r\n guid: JSON.parse(data).guid,\r\n token: JSON.parse(data).token\r\n })\r\n }\r\n uni.setStorageSync('parameter', {\r\n activityID: JSON.parse(data).activityID,\r\n AppCode: JSON.parse(data).AppCode\r\n })\r\n // 初始传入token和guid\r\n Vue.config.configDic = {\r\n Authorization: JSON.parse(data).Authorization,\r\n statusBarHeight: Number.parseInt(JSON.parse(data).statusBarHeight),\r\n };\r\n });\r\n\r\n })\r\n break;\r\n case 'ios':\r\n setupWebViewJavascriptBridge(function(bridge) {\r\n bridge.registerHandler('GetUser', function(data, responseCallback) {\r\n if(data.guid != \"null\"){\r\n uni.setStorageSync('userInfo', {\r\n guid: data.guid,\r\n token: data.token\r\n })\r\n }\r\n uni.setStorageSync('parameter', {\r\n activityID: data.activityID,\r\n AppCode: data.AppCode\r\n })\r\n // 初始传入token和guid\r\n Vue.config.configDic = {\r\n Authorization: data.Authorization,\r\n productID: data.productID,\r\n statusBarHeight: data.statusBarHeight,\r\n };\r\n })\r\n })\r\n break;\r\n default:\r\n console.log('运行在开发者工具上')\r\n break;\r\n }\r\n\r\n}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "constructor(speechCallback, clientId, streamId) {\n console.log(\"in gcloud\");\n const useOpus = false;\n this.clientId = clientId;\n this.streamId = streamId;\n this.isOpen = true;\n\n // Note: \n // 1) The client side detects silence and does a startStream, and endStream\n // The streamId is incremented everytime this happens, \n // so a combination of clientId + streamId can uniquely identify a stream.\n // The server will be transcribing each client's stream in parallel.\n //\n // 2) The streaming API has a limit of 5 minutes. So just before 5 minutes are up\n // there will timer that will close and reopen the stream. Any non final results will\n // we sent again to be re-transcribed,\n // The restartCounter will be incremented every time the stream is restarted. However\n // the streamId will remain the same.\n //\n // 3) Every stream will have set of results. Some results will be final and some won't be\n // After a result is final, that portion of the audio will not be transcribed again by the API\n // each final result will have resultEndTime, - this is time in seconds (and nanoseconds) \n // from the time the stream was started/restarted.\n // Results don'd have a startTime, it is implicit that the startTime is resultEndTime\n // of the last final stream, or 0 if there was no final stream before this\n // We augment the result to add this startTime\n //\n // We also keep a cumulative restartTime, which is the difference betwen the beginning of \n // stream start and begining of the most recent stream restart. And add this to \n // the startTime and endTime. This way the client is completely unaware of the internal restarts\n // \n \n // Have we started/restarted a new stream ?\n this.newStream = true;\n\n // number of times the stream has been restarted\n this.restartCounter = 0;\n\n // audio Input is any array of chunks (buffer)\n this.audioInput = [];\n this.audioInputSize = 0; // total size of all the buffers\n\n // the end time (in seconds) of the last result. \n // the End time is calculated from the beginning of start/restart stream\n this.resultEndTime = 0;\n\n // the end time of the last final result.\n this.finalEndTime = 0;\n\n // the start time (in seconds) of the current result. \n // It is calculated fom beginning of start/restart stream\n this.startTime = 0;\n \n // the time between the of beginning of start stream and the beginning of the most current restart stream.\n this.restartTime = 0;\n\n\n this.lastTranscriptWasFinal = false;\n\n this.restartTimer = null;\n\n this.config = {\n encoding: useOpus ? 'OGG_OPUS' : 'LINEAR16',\n sampleRateHertz: useOpus ? 48000 : 16000,\n languageCode: 'en_us',\n enableAutomaticPunctuation: true,\n speechContexts: [{ phrases: phrases}],\n };\n\n this.request = {\n config : this.config,\n interimResults: true,\n };\n\n this.startStreamInternal();\n }", "constructor() {\n }", "constructor(info) {\n super();\n\n _defineProperty(this, \"_peerConnectionId\", void 0);\n\n _defineProperty(this, \"_reactTag\", void 0);\n\n _defineProperty(this, \"_id\", void 0);\n\n _defineProperty(this, \"_label\", void 0);\n\n _defineProperty(this, \"_maxPacketLifeTime\", void 0);\n\n _defineProperty(this, \"_maxRetransmits\", void 0);\n\n _defineProperty(this, \"_negotiated\", void 0);\n\n _defineProperty(this, \"_ordered\", void 0);\n\n _defineProperty(this, \"_protocol\", void 0);\n\n _defineProperty(this, \"_readyState\", void 0);\n\n _defineProperty(this, \"_subscriptions\", []);\n\n _defineProperty(this, \"binaryType\", 'arraybuffer');\n\n _defineProperty(this, \"bufferedAmount\", 0);\n\n _defineProperty(this, \"bufferedAmountLowThreshold\", 0);\n\n this._peerConnectionId = info.peerConnectionId;\n this._reactTag = info.reactTag;\n this._label = info.label;\n this._id = info.id === -1 ? null : info.id; // null until negotiated.\n\n this._ordered = Boolean(info.ordered);\n this._maxPacketLifeTime = info.maxPacketLifeTime;\n this._maxRetransmits = info.maxRetransmits;\n this._protocol = info.protocol || '';\n this._negotiated = Boolean(info.negotiated);\n this._readyState = info.readyState;\n\n this._registerEvents();\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onChildAppSourceChangeRestart () {\n\n }", "constructor() {\n\n\t}", "async componentDidUpdate() {\n console.log(this.props.directory);\n //this needs to be replaced with environment variable\n const beginingUrl = \"http://10.34.1.30:8080/songs/\";\n const songLoc = this.props.directory + \"/outputlist.m3u8\";\n var hlsUrl = beginingUrl + songLoc;\n var audio = this.player;\n\n //Should this logic be loacated here??This looks hacky,\n const token = await getToken();\n let bearerTokenString = \"Bearer \" + token;\n\n if (Hls.isSupported()) {\n var hls = new Hls({\n // This configuration is required to insure that only the\n // viewer can access the content by sending a session cookie\n // to api.video service\n xhrSetup: function (xhr, url) {\n xhr.setRequestHeader(\"Authorization\", bearerTokenString);\n },\n });\n hls.loadSource(hlsUrl);\n hls.attachMedia(audio);\n hls.on(Hls.Events.MANIFEST_PARSED, function () {\n audio.play();\n });\n } else if (audio.canPlayType(\"application/vnd.apple.mpegurl\")) {\n console.log(\"Nigga we here!!\");\n audio.src = hlsUrl;\n audio.addEventListener(\"loadedmetadata\", function () {\n audio.play();\n });\n }\n }", "onMessageReceive() {}", "constructor() {\n\t}", "constructor() {\n\t}", "componentWillMount() {\n //CodePush.disallowRestart();\n //Alert.alert(\"mounted cool vite OK OK MAINTENANT CA MARCHE !!!!!\");\n/*CodePush.sync(\n{\ndeploymentKey: 'giMb817KrtTFkIuOg4i5ohnEUDyoBJvD1i-VN',\nupdateDialog: true,\ninstallMode: CodePush.InstallMode.IMMEDIATE,\n},\nthis.CodePushStatusDidChange.bind(this),\nthis.CodePushDownloadDidProgress.bind(this)\n);*/\n /* Animated.loop(\n Animated.sequence([\n Animated.timing(this.animatedValue, { toValue: 1, duration: 3000, easing: Easing.ease, useNativeDriver: true }),\n Animated.timing(this.animatedValue, { toValue: 0, duration: 3000, easing: Easing.ease, useNativeDriver: true }),\n ])).start();*/\n //this.toggleLike(); \n //CodePush.notifyApplicationReady();\n this._onLoadStart();\n }", "function version(){ return \"0.13.0\" }", "get supportStreaming() { return exists && has(WA.instantiateStreaming); }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "onChildAppRestart (/* reason */) {\n\n }", "_init(config) {\n this.name = config.name;\n this.appId = config.appid || config.appId;\n this.serverUrl = config.server_url + '/sync_xcx';\n this.autoTrackProperties = {};\n // cache commands.\n this._queue = [];\n\n if (config.isChildInstance) {\n this._state = {};\n } else {\n logger.enabled = config.enableLog;\n this.instances = []; // 子实例名称\n this._state = {\n getSystemInfo: false,\n initComplete: false,\n };\n systemInfo.getSystemInfo(() => {\n this._updateState({\n getSystemInfo: true,\n });\n });\n\n if (config.autoTrack) {\n this.autoTrack = PlatformAPI.initAutoTrackInstance(this, config);\n } else {\n var launchOptions = PlatformAPI.getAppOptions((options) => {\n if (options && options.scene) {\n this._setAutoTrackProperties({\n '#scene': options.scene,\n });\n }\n\n });\n if (launchOptions.scene) {\n this._setAutoTrackProperties({\n '#scene': launchOptions.scene,\n });\n }\n }\n }\n\n this.store = new ThinkingDataPersistence(config, () => {\n if (this.config.asyncPersistence && _.isFunction(this.config.persistenceComplete)) {\n this.config.persistenceComplete(this);\n }\n this._updateState();\n });\n }", "_addHMRClientCode(data) {\n// If we have it, grab supporting code...\n let prependage = fs.readFileSync('./lib/hmr/clientSocket.js'),\n appendage = fs.readFileSync('./lib/hmr/hmr.js')\n\n// Prepend clientSocket.js to bundle.... Append hmr runtime to bundle\n return `${prependage}${data}${appendage}`\n }", "componentDidMount() {\n this.setState({\n configuration: {\n flow: {\n name: \"sample1\",\n id: \"01\",\n components: [\n {\n type: \"http-listener\",\n id: \"http-list-01\",\n properties: {\n method: \"get\",\n port: 8000,\n path: \"http://localhost\"\n }\n },\n {\n type: \"logger\",\n id: \"logger-01\",\n properties: {\n level: \"info\"\n }\n },\n {\n type: \"file-writer\",\n id: \"file-write-01\",\n properties: {\n location: \"xx\",\n username: \"sachith\",\n password: \"\",\n filename: \"hello.txt\"\n }\n }\n ]\n }\n }\n\n });\n }", "componentWillUnmount(){\n Streaming.disconnect();\n }", "pushStart() {\n Cordova.exec(\n () => {},\n () => {},\n 'SparkProxy',\n 'pushStart',\n []);\n }", "async onReady() {\n // Initialize your adapter here\n // Subsribe to all state changes\n this.subscribeStates('*');\n this.axiosInstance = axios_1.default.create({\n baseURL: `http://${this.config.host}/api/v1/`,\n timeout: 1000\n });\n // try to ping volumio\n const connectionSuccess = await this.pingVolumio();\n if (this.config.checkConnection) {\n let interval = this.config.checkConnectionInterval;\n if (!interval || !isNumber(interval)) {\n this.log.error(`Invalid connection check interval setting. Will be set to 30s`);\n interval = 30;\n }\n this.checkConnectionInterval = setInterval(this.checkConnection, interval * 1000, this);\n }\n // get system infos\n if (connectionSuccess) {\n this.apiGet('getSystemInfo').then(sysInfo => {\n this.setStateAsync('info.id', sysInfo.id, true);\n this.setStateAsync('info.host', sysInfo.host, true);\n this.setStateAsync('info.name', sysInfo.name, true);\n this.setStateAsync('info.type', sysInfo.type, true);\n this.setStateAsync('info.serviceName', sysInfo.serviceName, true);\n this.setStateAsync('info.systemversion', sysInfo.systemversion, true);\n this.setStateAsync('info.builddate', sysInfo.builddate, true);\n this.setStateAsync('info.variant', sysInfo.variant, true);\n this.setStateAsync('info.hardware', sysInfo.hardware, true);\n });\n // get inital player state\n this.updatePlayerState();\n }\n if (this.config.subscribeToStateChanges && this.config.subscriptionPort && connectionSuccess) {\n this.log.debug('Subscription mode is activated');\n try {\n this.httpServerInstance = this.httpServer.listen(this.config.subscriptionPort);\n this.log.debug(`Server is listening on ${ip_1.default.address()}:${this.config.subscriptionPort}`);\n this.subscribeToVolumioNotifications();\n }\n catch (error) {\n this.log.error(`Starting server on ${this.config.subscriptionPort} for subscription mode failed: ${error.message}`);\n }\n }\n else if (this.config.subscribeToStateChanges && !this.config.subscriptionPort) {\n this.log.error('Subscription mode is activated, but port is not configured.');\n }\n else if (!this.config.subscribeToStateChanges && connectionSuccess) {\n this.unsubscribeFromVolumioNotifications();\n }\n this.httpServer.post('/volumiostatus', (req, res) => {\n this.onVolumioStateChange(req.body);\n res.sendStatus(200);\n });\n }", "function IbtRealTimeSJ(){/***********************************************************\n\t * @attributes\n\t ***********************************************************/var appKey;// application key\n\tvar authToken;// authentication token\n\tvar clusterUrl;// cluster URL to connect\n\tvar waitingClusterResponse;// indicates whether is waiting for a cluster response\n\tvar connectionTimeout;// connection timeout in milliseconds\n\tvar messageMaxSize;// message maximum size in bytes\n\tvar channelMaxSize;// channel maximum size in bytes\n\tvar channelsMaxSize;// maximum of channels for batchSend\n\tvar messagesBuffer;// buffer to hold the message parts\n\tvar id;// object identifier\n\tvar isConnected;// indicates whether the client object is connected\n\tvar isConnecting;// indicates whether the client object is connecting\n\tvar alreadyConnectedFirstTime;// indicates whether the client already connected for the first time\n\tvar stopReconnecting;// indicates whether the user disconnected (stop the reconnecting proccess)\n\tvar ortc;// represents the object itself\n\tvar sockjs;// socket connected to\n\tvar url;// URL to connect\n\tvar userPerms;// user permissions\n\tvar connectionMetadata;// connection metadata used to identify the client\n\tvar announcementSubChannel;// announcement subchannel\n\tvar subscribedChannels;// subscribed/subscribing channels\n\tvar lastKeepAlive;// holds the time of the last keep alive received\n\tvar invalidConnection;// indicates whether the connection is valid\n\tvar reconnectIntervalId;// id used for the reconnect interval\n\tvar reconnectStartedAt;// the time which the reconnect started\n\tvar validatedTimeoutId;// id used for the validated timeout\n\tvar validatedArrived;// indicates whether the validated message arrived\n\tvar retryingWithSsl;// indicates whether the connection is being retried with SSL\n\tvar protocol;// protocol to use\n\tvar sslSessionCookieName;// the SSL session cookie name\n\tvar sessionCookieName;// the session cookie name\n\tvar sessionId;// the session ID\n\tvar registrationId;// browser device token for push notifications\n\tvar pushPlatform;// push notifications platform\n\t/***********************************************************\n\t * @attributes initialization\n\t ***********************************************************/sslSessionCookieName=\"ortcssl\";sessionCookieName=\"ortcsession-\";connectionTimeout=5000;messageMaxSize=800;channelMaxSize=100;connectionMetadataMaxSize=256;channelsMaxSize=50;// Time in seconds\n\tvar heartbeatDefaultTime=15;// Heartbeat default interval time\n\tvar heartbeatDefaultFails=3;// Heartbeat default max fails\n\tvar heartbeatMaxTime=60;var heartbeatMinTime=10;var heartbeatMaxFails=6;var heartbeatMinFails=1;var heartbeatTime=heartbeatDefaultTime;// Heartbeat interval time\n\tvar heartbeatFails=heartbeatDefaultFails;// Heartbeat max fails\n\tvar heartbeatInterval=null;// Heartbeat interval\n\tvar heartbeatActive=false;messagesBuffer={};subscribedChannels={};isConnected=false;isConnecting=false;alreadyConnectedFirstTime=false;invalidConnection=false;waitingClusterResponse=false;validatedArrived=false;retryingWithSsl=false;ortc=this;lastKeepAlive=null;userPerms=null;reconnectStartedAt=null;protocol=undefined;pushPlatform=\"GCM\";var delegateExceptionCallback=function(ortcArg,event){if(ortcArg!==null&&ortcArg.onException!==null){ortcArg.onException(ortcArg,event);}};/***********************************************************\n\t * @properties\n\t ***********************************************************/this.getId=function(){return id;};this.setId=function(newId){id=newId;};this.getUrl=function(){return url;};this.setUrl=function(newUrl){url=newUrl;clusterUrl=null;};this.getClusterUrl=function(){return clusterUrl;};this.setClusterUrl=function(newUrl){clusterUrl=newUrl;url=null;};this.getConnectionTimeout=function(){return connectionTimeout;};this.setConnectionTimeout=function(newTimeout){connectionTimeout=newTimeout;};this.getIsConnected=function(){return isConnected&&ortc.sockjs!==null;};this.getConnectionMetadata=function(){return connectionMetadata;};this.setConnectionMetadata=function(newConnectionMetadata){connectionMetadata=newConnectionMetadata;};this.getAnnouncementSubChannel=function(){return announcementSubChannel;};this.setAnnouncementSubChannel=function(newAnnouncementSubChannel){announcementSubChannel=newAnnouncementSubChannel;};this.getProtocol=function(){return protocol;};this.setProtocol=function(newProtocol){protocol=newProtocol;};this.getSessionId=function(){return sessionId;};/*\n\t * Get heartbeat interval.\n\t */this.getHeartbeatTime=function(){return heartbeatTime;};/*\n\t * Set heartbeat interval.\n\t */this.setHeartbeatTime=function(newHeartbeatTime){if(newHeartbeatTime&&!isNaN(newHeartbeatTime)){if(newHeartbeatTime>heartbeatMaxTime||newHeartbeatTime<heartbeatMinTime){delegateExceptionCallback(ortc,`Heartbeat time is out of limits - Min: ${heartbeatMinTime} | Max: ${heartbeatMaxTime}`);}else{heartbeatTime=newHeartbeatTime;}}else{delegateExceptionCallback(ortc,`Invalid heartbeat time ${newHeartbeatTime}`);}};/*\n\t * Get how many times can the client fail the heartbeat.\n\t */this.getHeartbeatFails=function(){return heartbeatFails;};/*\n\t * Set heartbeat fails. Defines how many times can the client fail the heartbeat.\n\t */this.setHeartbeatFails=function(newHeartbeatFails){if(newHeartbeatFails&&!isNaN(newHeartbeatFails)){if(newHeartbeatFails>heartbeatMaxFails||newHeartbeatFails<heartbeatMinFails){delegateExceptionCallback(ortc,`Heartbeat fails is out of limits - Min: ${heartbeatMinFails} | Max: ${heartbeatMaxFails}`);}else{heartbeatFails=newHeartbeatFails;}}else{delegateExceptionCallback(ortc,`Invalid heartbeat fails ${newHeartbeatFails}`);}};/*\n\t * Get heart beat active.\n\t */this.getHeartbeatActive=function(){return heartbeatActive;};/*\n\t * Set heart beat active. Heart beat provides better accuracy for presence data.\n\t */this.setHeartbeatActive=function(active){heartbeatActive=active;};/***********************************************************\n\t * @events\n\t ***********************************************************/this.onConnected=null;this.onDisconnected=null;this.onSubscribed=null;this.onUnsubscribed=null;this.onException=null;this.onReconnecting=null;this.onReconnected=null;/***********************************************************\n\t * @public methods\n\t ***********************************************************//*\n\t * Connects to the gateway with the application key and authentication token.\n\t */this.connect=function(appKey,authToken){/*\n\t Sanity Checks\n\t */if(isConnected){delegateExceptionCallback(ortc,\"Already connected\");}else if(!url&&!clusterUrl){delegateExceptionCallback(ortc,\"URL and Cluster URL are null or empty\");}else if(!appKey){delegateExceptionCallback(ortc,\"Application Key is null or empty\");}else if(!authToken){delegateExceptionCallback(ortc,\"Authentication Token is null or empty\");}else if(url&&!ortcIsValidUrl(url)){delegateExceptionCallback(ortc,\"Invalid URL\");}else if(clusterUrl&&!ortcIsValidUrl(clusterUrl)){delegateExceptionCallback(ortc,\"Invalid Cluster URL\");}else if(!ortcIsValidInput(appKey)){delegateExceptionCallback(ortc,\"Application Key has invalid characters\");}else if(!ortcIsValidInput(authToken)){delegateExceptionCallback(ortc,\"Authentication Token has invalid characters\");}else if(!ortcIsValidInput(announcementSubChannel)){delegateExceptionCallback(ortc,\"Announcement Subchannel has invalid characters\");}else if(connectionMetadata&&connectionMetadata.length>connectionMetadataMaxSize){delegateExceptionCallback(ortc,\"Connection metadata size exceeds the limit of \"+connectionMetadataMaxSize+\" characters\");}else{ortc.appKey=appKey;ortc.authToken=authToken;isConnecting=true;stopReconnecting=false;validatedArrived=false;clearValidatedTimeout(self);// Read SSL session cookie\n\t//var sslConn = readCookie(sslSessionCookieName);\n\tvar sslConn=false;if(sslConn){changeUrlSsl();}if(clusterUrl&&clusterUrl!=null){clusterUrl=clusterUrl.ortcTreatUrl();clusterConnection();}else{url=url.ortcTreatUrl();ortc.sockjs=createSocketConnection(url);}//If ssl connection increase connection timeout\n\tif(clusterUrl&&clusterUrl!=null&&clusterUrl.indexOf(\"/ssl\")>=0||url&&url.indexOf(\"https\")>=0){if(!retryingWithSsl){ortc.setConnectionTimeout(30*1000);}else{if(ortc.getConnectionTimeout()<300*1000){if(ortc.getConnectionTimeout()<30*1000){ortc.setConnectionTimeout(30*1000);}else{ortc.setConnectionTimeout((ortc.getConnectionTimeout()+10)*1000);}}else{stopReconnecting=true;clearReconnectInterval();}}}if(!ortc.reconnectIntervalId&&!stopReconnecting){// Interval to reconnect\n\tortc.reconnectIntervalId=setInterval(function(){if(stopReconnecting){clearReconnectInterval();}else{var currentDateTime=new Date();if(ortc.sockjs==null&&!waitingClusterResponse){reconnectSocket();}// 35 seconds\n\tif(lastKeepAlive!=null&&lastKeepAlive+35000<new Date().getTime()){lastKeepAlive=null;// Server went down\n\tif(isConnected){disconnectSocket();}}}},ortc.getConnectionTimeout());}}};this.setNotificationConfig=function(config){config.cmd=\"config\";this.sendMessageToServiceWorker(config);};this.showNotification=function(notification){notification.cmd=\"notification\";this.sendMessageToServiceWorker(notification);};this.sendMessageToServiceWorker=function(message){return new Promise(function(resolve,reject){var messageChannel=new MessageChannel();messageChannel.port1.onmessage=function(event){if(event.data.error){reject(event.data.error);}else{resolve(event.data);}};navigator.serviceWorker.controller.postMessage(message,[messageChannel.port2]);});};/*\n\t * Subscribes to the channel so the client object can receive all messages sent to it by other clients with Notifications.\n\t */this.subscribeWithNotifications=function(channel,subscribeOnReconnected,regId,onMessageCallback){ortc.registrationId=regId;this._subscribe(channel,subscribeOnReconnected,regId,null,onMessageCallback);};/*\n\t * Subscribes to the channel so the client object can receive all messages sent that are valid according to the given filter\n\t */this.subscribeWithFilter=function(channel,subscribeOnReconnected,filter,onMessageCallback){this._subscribe(channel,subscribeOnReconnected,null,filter,onMessageCallback);};/*\n\t * Subscribes to the channel so the client object can receive all messages sent to it by other clients.\n\t */this.subscribe=function(channel,subscribeOnReconnected,onMessageCallback){this._subscribe(channel,subscribeOnReconnected,null,null,onMessageCallback);};this._subscribe=function(channel,subscribeOnReconnected,regId,filter,onMessageCallback){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribing){delegateExceptionCallback(ortc,\"Already subscribing to the channel \\\"\"+channel+\"\\\"\");}else if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed){delegateExceptionCallback(ortc,\"Already subscribed to the channel \\\"\"+channel+\"\\\"\");}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else if(!ortcIsValidBoolean(subscribeOnReconnected)){delegateExceptionCallback(ortc,\"The argument \\\"subscribeOnReconnected\\\" must be a boolean\");}else if(!ortcIsFunction(onMessageCallback)){delegateExceptionCallback(ortc,\"The argument \\\"onMessageCallback\\\" must be a function\");}else{if(ortc.sockjs!=null){var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){delegateExceptionCallback(ortc,\"No permission found to subscribe to the channel \\\"\"+channel+\"\\\"\");}else{if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=true;subscribedChannels[channel].isSubscribed=false;subscribedChannels[channel].subscribeOnReconnected=subscribeOnReconnected;subscribedChannels[channel].onMessageCallback=onMessageCallback;subscribedChannels[channel].filter=filter;}else{subscribedChannels[channel]={\"isSubscribing\":true,\"isSubscribed\":false,\"subscribeOnReconnected\":subscribeOnReconnected,\"onMessageCallback\":onMessageCallback,\"filter\":filter};}if(regId){subscribedChannels[channel].withNotifications=true;ortc.sockjs.send(\"subscribe;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+regId+\";\"+pushPlatform);}else{subscribedChannels[channel].withNotifications=false;if(filter){ortc.sockjs.send(\"subscribefilter;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+filter);}else{ortc.sockjs.send(\"subscribe;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm);}}}}}};/*\n\t * Unsubscribes from the channel so the client object stops receiving messages sent to it.\n\t */this.unsubscribe=function(channel){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(!subscribedChannels[channel]||subscribedChannels[channel]&&!subscribedChannels[channel].isSubscribed){delegateExceptionCallback(ortc,\"Not subscribed to the channel \"+channel);}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else{if(ortc.sockjs!=null){if(subscribedChannels[channel].withNotifications==true){ortc.sockjs.send(\"unsubscribe;\"+ortc.appKey+\";\"+channel+\";\"+ortc.registrationId+\";\"+pushPlatform);}else{ortc.sockjs.send(\"unsubscribe;\"+ortc.appKey+\";\"+channel);}}}};/*\n\t * Sends the message to the channel.\n\t */this.send=function(channel,message){/*\n\t Sanity Checks\n\t */if(!isConnected||ortc.sockjs==null){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(!message){delegateExceptionCallback(ortc,\"Message is null or empty\");}else if(!ortcIsString(message)){delegateExceptionCallback(ortc,\"Message must be a string\");}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else{var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){delegateExceptionCallback(ortc,\"No permission found to send to the channel \\\"\"+channel+\"\\\"\");}else{// Multi part\n\tvar messageParts=[];var messageId=generateId(8);var i;var allowedMaxSize=messageMaxSize-channel.length;for(i=0;i<message.length;i=i+allowedMaxSize){// Just one part\n\tif(message.length<=allowedMaxSize){messageParts.push(message);break;}if(message.substring(i,i+allowedMaxSize)){messageParts.push(message.substring(i,i+allowedMaxSize));}}for(var j=1;j<=messageParts.length;j++){ortc.sockjs.send(\"send;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+messageId+\"_\"+j+\"-\"+messageParts.length+\"_\"+messageParts[j-1]);}}}};/*\n\t * Sends the message to multiple channels.\n\t */this.batchSend=function(channels,message){/*\n\t Sanity Checks\n\t */channels=ortcStrToArray(channels);if(!isConnected||ortc.sockjs==null){delegateExceptionCallback(ortc,\"Not connected\");}else if(!ortcIsArray(channels)){delegateExceptionCallback(ortc,\"Channels must be a array\");}else if(!message){delegateExceptionCallback(ortc,\"Message is null or empty\");}else if(!ortcIsString(message)){delegateExceptionCallback(ortc,\"Message must be a string\");}else if(channels.length<=0){delegateExceptionCallback(ortc,\"Channels must be an array at least with one channel\");}else if(channels.length>channelsMaxSize){channels=[];delegateExceptionCallback(ortc,\"The channel maximum was reached (>\"+channelsMaxSize+\")\");}for(i=0;i<channels.length;i++){var channel=channels[i];if(channel.length>channelMaxSize){channels.splice(i,1);delegateExceptionCallback(ortc,\"Channel \"+channel+\" size exceeds the limit of \"+channelMaxSize+\" characters\");}}if(channels.length>0){var arrayHashPerm=[];for(i=0;i<channels.length;i++){var channel=channels[i];var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){channels.splice(i,1);delegateExceptionCallback(ortc,\"No permission found to send to the channel \\\"\"+channel+\"\\\"\");}else{arrayHashPerm.push(hashPerm);}}if(channels.length>0){var messageParts=[];var messageId=generateId(8);var allowedMaxSize=messageMaxSize-channels.toString().length;for(i=0;i<message.length;i=i+allowedMaxSize){// Just one part\n\tif(message.length<=allowedMaxSize){messageParts.push(message);break;}if(message.substring(i,i+allowedMaxSize)){messageParts.push(message.substring(i,i+allowedMaxSize));}}for(j=1;j<=messageParts.length;j++){ortc.sockjs.send(\"batchSend;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+JSON.stringify(channels)+\";\"+JSON.stringify(arrayHashPerm)+\";\"+messageId+\"_\"+j+\"-\"+messageParts.length+\"_\"+messageParts[j-1]);}}}};/*\n\t * Disconnects from the gateway.\n\t */this.disconnect=function(){clearReconnectInterval();stopReconnectProcess();// Clear subscribed channels\n\tsubscribedChannels={};/*\n\t Sanity Checks\n\t */if(!isConnected&&!invalidConnection){delegateExceptionCallback(ortc,\"Not connected\");}else{disconnectSocket();}};/*\n\t * Gets a value indicating whether this client object is subscribed to the channel.\n\t */this.isSubscribed=function(channel){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else{if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed){return subscribedChannels[channel].isSubscribed;}else{return false;}}};/*\n\t * Gets a json indicating the subscriptions in a channel.\n\t */this.presence=function(parameters,callback){try{var requestUrl=null,isCluster=false,appKey=ortc.appKey,authToken=ortc.authToken;if(parameters.url){requestUrl=parameters.url.ortcTreatUrl();isCluster=parameters.isCluster;appKey=parameters.applicationKey;authToken=parameters.authenticationToken;}else{if(clusterUrl&&clusterUrl!=null){requestUrl=clusterUrl;isCluster=true;}else{requestUrl=url.ortcTreatUrl();;}}getServerUrl({requestUrl:requestUrl,isCluster:isCluster,appKey:appKey},function(error,serverUrl){if(error){callback(error,null);}else{jsonp(serverUrl+\"/presence/\"+appKey+\"/\"+authToken+\"/\"+parameters.channel,callback);}});}catch(e){callback(\"Unable to get presence data\",null);}};var getServerUrl=function(parameters,callback){if(parameters.requestUrl&&parameters.isCluster){var guid=generateGuid();var queryString=\"guid=\"+generateGuid();queryString=parameters.appKey?queryString+\"&appkey=\"+parameters.appKey:queryString;loadClusterServerScript(parameters.requestUrl+\"/?\"+queryString,guid,function(clusterServerResolved,scriptGuid){if(clusterServerResolved){var resultUrl=SOCKET_SERVER;callback(null,resultUrl);}else{callback(null,\"Unable to get server from cluster\");}try{clearScripts(scriptGuid);}catch(loadError){}});}else{var resultUrl=parameters.requestUrl.ortcTreatUrl();callback(null,resultUrl);}};/*\n\t * Adds the Webspectator bootstrap script for the outmost frame on the same domain.\n\t */this.setMonetizerId=function(publicId){var tempWin;var win=tempWin=window;while(tempWin!=window.top){try{if(tempWin.frameElement){win=tempWin.parent;}}catch(e){}tempWin=tempWin.parent;}if(!win._WS_BOOT){var s=document.createElement(\"SCRIPT\");s.src=\"//wfpscripts.webspectator.com/bootstrap/ws-\"+publicId+\".js\";document.getElementsByTagName(\"head\")[0].appendChild(s);}};/***********************************************************\n\t * @private methods\n\t ***********************************************************//*\n\t * Change the current URL to use SSL\n\t */var changeUrlSsl=function(){if(!(\"ActiveXObject\"in window)){if(clusterUrl&&clusterUrl!=null){//clusterUrl = clusterUrl.replace(\"http://\", \"https://\");\n\tif(clusterUrl.indexOf(\"ssl/\")<0){var slashAtTheEnd=clusterUrl.search(/\\/([\\d.]*)\\/$/);if(slashAtTheEnd>-1){clusterUrl=clusterUrl.substring(0,slashAtTheEnd+1)+\"ssl/\"+clusterUrl.substring(slashAtTheEnd+1,clusterUrl.length);}else{clusterUrl=clusterUrl.substring(0,clusterUrl.lastIndexOf(\"/\")+1)+\"ssl/\"+clusterUrl.substring(clusterUrl.lastIndexOf(\"/\")+1);}}}else{url=url.replace(\"http://\",\"https://\");}}// Create session cookie\n\t//createSessionCookie(sslSessionCookieName, 1);\n\t};/*\n\t * Clear the reconnecting interval\n\t */var clearReconnectInterval=function(){if(ortc.reconnectIntervalId){clearInterval(ortc.reconnectIntervalId);ortc.reconnectIntervalId=null;}};/*\n\t * Clear the validated timeout\n\t */var clearValidatedTimeout=function(self){if(self.validatedTimeoutId){clearTimeout(self.validatedTimeoutId);self.validatedTimeoutId=null;}};/*\n\t * Stop the reconnecting process\n\t */var stopReconnectProcess=function(){stopReconnecting=true;alreadyConnectedFirstTime=false;};var startHeartBeatInterval=function(self){if(!self.heartbeatInterval&&heartbeatActive){self.sockjs.send(\"b\");self.heartbeatInterval=setInterval(function(){if(!heartbeatActive){stopHeartBeatInterval(self);}else{self.sockjs.send(\"b\");}},heartbeatTime*1000);}};var stopHeartBeatInterval=function(self){if(self.heartbeatInterval){clearInterval(self.heartbeatInterval);self.heartbeatInterval=null;}};/*\n\t * Creates a cookie with expiration time.\n\t */var createExpireCookie=function(name,value,minutes){var expires=\"\";if(minutes){var date=new Date();date.setTime(date.getTime()+minutes*60*1000);expires=\"; expires=\"+date.toGMTString();}document.cookie=name+\"=\"+value+expires+\"; path=/\";};/*\n\t * Creates a session cookie.\n\t */var createSessionCookie=function(name,value){document.cookie=name+\"=\"+value+\"; path=/\";};/*\n\t * Reads a cookie.\n\t */var readCookie=function(name){var nameEQ=name+\"=\";var ca=document.cookie.split(\";\");var result=null;for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==\" \"){c=c.substring(1,c.length);}if(c.indexOf(nameEQ)==0){result=c.substring(nameEQ.length,c.length);break;}}return result;};/*\n\t * Generates an ID.\n\t */var generateId=function(size){var result=\"\";var S4=function(){return((1+Math.random())*0x10000|0).toString(16).substring(1);};for(var i=0;i<size/4;i++){result+=S4();}return result;};/*\n\t * Disconnects the socket.\n\t */var disconnectSocket=function(){stopHeartBeatInterval(ortc);reconnectStartedAt=null;isConnected=false;isConnecting=false;validatedArrived=false;retryingWithSsl=false;clearValidatedTimeout(self);if(ortc.sockjs!=null){ortc.sockjs.close();ortc.sockjs=null;}};/*\n\t * Reconnects the socket.\n\t */var reconnectSocket=function(){stopHeartBeatInterval(ortc);if(isConnecting){delegateExceptionCallback(ortc,\"Unable to connect\");}isConnecting=true;delegateReconnectingCallback(ortc);reconnectStartedAt=new Date().getTime();if(clusterUrl&&clusterUrl!=null){clusterConnection();}else{ortc.sockjs=createSocketConnection(url);}};/*\n\t * Tries a connection through the cluster gateway with the application key and authentication token.\n\t */var clusterConnection=function(){var guid=generateGuid();var queryString=\"guid=\"+generateGuid();queryString=ortc.appKey?queryString+\"&appkey=\"+ortc.appKey:queryString;loadClusterServerScript(clusterUrl+\"/?\"+queryString,guid,function(clusterServerResolved,scriptGuid){if(clusterServerResolved){url=SOCKET_SERVER;sockjs=createSocketConnection(ortc.getUrl());}try{clearScripts(scriptGuid);}catch(loadError){}});};/*\n\t * Clears the javascript scripts previously loaded into the page.\n\t */var clearScripts=function(guid){var headChildren=document.getElementsByTagName(\"head\")[0].children;var childrenToRemove=[];for(var i=0;i<headChildren.length;i++){if(headChildren[i].attributes!=null&&headChildren[i].attributes[\"ortcScriptId\"]&&headChildren[i].attributes[\"ortcScriptId\"].value==guid){childrenToRemove.push(i);}}for(var child in childrenToRemove){document.getElementsByTagName(\"head\")[0].removeChild(headChildren[childrenToRemove[child]]);}};/*\n\t * Loads the cluster server javascript script into the page.\n\t */var loadClusterServerScript=function(scriptUrl,guid,callback){var script=document.createElement(\"script\");script.type=\"text/javascript\";script.setAttribute(\"ortcScriptId\",guid);waitingClusterResponse=true;if(script.readyState){// IE\n\tscript.onreadystatechange=function(){if(script.readyState==\"loaded\"||script.readyState==\"complete\"){waitingClusterResponse=false;script.onreadystatechange=null;if(typeof SOCKET_SERVER!=\"undefined\"&&SOCKET_SERVER.indexOf(\"undefined\")<0&&SOCKET_SERVER.indexOf(\"unknown_server\")<0){callback(true,guid);}else{callback(false,guid);}}};}else{// Others\n\tscript.onload=function(){waitingClusterResponse=false;if(typeof SOCKET_SERVER!=\"undefined\"&&SOCKET_SERVER.indexOf(\"undefined\")<0&&SOCKET_SERVER.indexOf(\"unknown_server\")<0){callback(true,guid);}else{callback(false,guid);}};}script.onerror=function(){waitingClusterResponse=false;};script.src=scriptUrl;document.getElementsByTagName(\"head\")[0].appendChild(script);};/*\n\t * Generates a GUID.\n\t */var generateGuid=function(){var S4=function(){return((1+Math.random())*0x10000|0).toString(16).substring(1);};return S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4();};/*\n\t * Count the dictionary keys.\n\t */var countKeys=function(dic){var count=0;for(var i in dic){count++;}return count;};/*\n\t * Creates a socket connection.\n\t */var createSocketConnection=function(connectionUrl){var self=ortc;if(self.sockjs==null){if(navigator&&navigator.userAgent&&navigator.userAgent.indexOf(\"PlayStation Vita\")>=0){protocol=\"jsonp-polling\";}self.sockjs=new SockJS(connectionUrl+\"/broadcast\",protocol);// Timeout to receive the validated message\n\tif(!self.sslFallback){var validateTimeoutTime=5000;self.validatedTimeoutId=setTimeout(function(){self.sslFallback=true;stopReconnectProcess();disconnectSocket();invalidConnection=true;retryingWithSsl=true;if(connectionUrl.indexOf(\"https://\")>=0){// We are already using SSL, try streaming\n\tprotocol=\"xhr-streaming\";}else{protocol=undefined;}changeUrlSsl();},validateTimeoutTime);}else if(!self.xhrStreamingFallback){// The SSL fallback failed. Try xhr-streaming\n\tvar validateSslTimeoutTime=5000;self.validatedTimeoutId=setTimeout(function(){self.xhrStreamingFallback=true;stopReconnectProcess();disconnectSocket();invalidConnection=true;retryingWithSsl=true;protocol=\"xhr-streaming\";},validateSslTimeoutTime);}// Connect handler\n\tself.sockjs.onopen=function(){protocol=self.sockjs.protocol;// Update last keep alive time\n\tlastKeepAlive=new Date().getTime();// If is a reconnect do not count session\n\tif(alreadyConnectedFirstTime){sessionId=\"\";}else{// Read session cookie\n\tsessionId=readCookie(sessionCookieName+self.appKey+\"-s\");if(!sessionId){// Read expiration cookie\n\tsessionId=readCookie(sessionCookieName+self.appKey);if(!sessionId){sessionId=generateId(16);}// Create session cookie\n\tcreateSessionCookie(sessionCookieName+self.appKey+\"-s\",sessionId);// Check if session cookie was created\n\tif(!readCookie(sessionCookieName+self.appKey+\"-s\")){sessionId=\"\";}}}var heartbeatDetails=heartbeatActive?\";\"+self.getHeartbeatTime()+\";\"+self.getHeartbeatFails()+\";\":\"\";self.sockjs.send(\"validate;\"+self.appKey+\";\"+self.authToken+\";\"+(announcementSubChannel?announcementSubChannel:\"\")+\";\"+sessionId+\";\"+connectionMetadata+heartbeatDetails);};// Disconnect handler\n\tself.sockjs.onclose=function(e){// e.code=1000 - e.reason=Normal closure\n\t// e.code=1006 - e.reason=WebSocket connection broken\n\t// e.code=2000 - e.reason=All transports failed\n\tstopHeartBeatInterval(ortc);if(ortc.sockjs!=null){ortc.sockjs.close();ortc.sockjs=null;}// Clear user permissions\n\tuserPerms=null;if(e.code!=1000){if(isConnected){isConnected=false;isConnecting=false;protocol=undefined;delegateDisconnectedCallback(self);}if(!stopReconnecting){if(!reconnectStartedAt||reconnectStartedAt+connectionTimeout<new Date().getTime()){reconnectSocket();}}}else{if(!invalidConnection){isConnected=false;isConnecting=false;protocol=undefined;delegateDisconnectedCallback(self);}}if(retryingWithSsl){self.connect(self.appKey,self.authToken);retryingWithSsl=false;}invalidConnection=false;};// Receive handler\n\tself.sockjs.onmessage=function(e){// Update last keep alive time\n\tlastKeepAlive=new Date().getTime();var data=e.data;var channel=data.ch;var message=data.m;var filtered=data.f;// Multi part\n\tvar regexPattern=/^(\\w[^_]*)_{1}(\\d*)-{1}(\\d*)_{1}([\\s\\S.]*)$/;var match=regexPattern.exec(message);var messageId=null;var messageCurrentPart=1;var messageTotalPart=1;var lastPart=false;if(match&&match.length>0){if(match[1]){messageId=match[1];}if(match[2]){messageCurrentPart=match[2];}if(match[3]){messageTotalPart=match[3];}if(match[4]){message=match[4];}}if(messageId){if(!messagesBuffer[messageId]){messagesBuffer[messageId]={};}messagesBuffer[messageId][messageCurrentPart]=message;if(countKeys(messagesBuffer[messageId])==messageTotalPart){lastPart=true;}}else{lastPart=true;}if(lastPart){if(messageId){message=\"\";for(var i=1;i<=messageTotalPart;i++){message+=messagesBuffer[messageId][i];delete messagesBuffer[messageId][i];}delete messagesBuffer[messageId];}delegateMessagesCallback(self,channel,filtered,message);}};self.sockjs.onortcsubscribed=function(e){lastKeepAlive=new Date().getTime();var channel=e.data;if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;subscribedChannels[channel].isSubscribed=true;}delegateSubscribedCallback(self,channel);};self.sockjs.onortcunsubscribed=function(e){lastKeepAlive=new Date().getTime();var channel=e.data;if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribed=false;}delegateUnsubscribedCallback(self,channel);};self.sockjs.onheartbeat=function(){lastKeepAlive=new Date().getTime();};self.sockjs.onortcvalidated=function(e){var sessionExpirationTime=30;if(e.data){userPerms=e.data;}if(e.set){sessionExpirationTime=e.set;}clearValidatedTimeout(self);validatedArrived=true;retryingWithSsl=false;isConnecting=false;isConnected=true;reconnectStartedAt=null;if(sessionId){if(!readCookie(sessionCookieName+self.appKey+\"-s\")){createSessionCookie(sessionCookieName+self.appKey+\"-s\",sessionId);}if(!readCookie(sessionCookieName+self.appKey)){createExpireCookie(sessionCookieName+self.appKey,sessionId,sessionExpirationTime);}}if(alreadyConnectedFirstTime){var channelsToRemove={};// Subscribe to the previously subscribed channels\n\tfor(var key in subscribedChannels){// Subscribe again\n\tif(subscribedChannels[key].subscribeOnReconnected==true&&(subscribedChannels[key].isSubscribing||subscribedChannels[key].isSubscribed)){subscribedChannels[key].isSubscribing=true;subscribedChannels[key].isSubscribed=false;var domainChannelCharacterIndex=key.indexOf(\":\");var channelToValidate=key;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=key.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[key];}if(subscribedChannels[key].filter){self.sockjs.send(\"subscribefilter;\"+self.appKey+\";\"+self.authToken+\";\"+key+\";\"+hashPerm+\";\"+subscribedChannels[key].filter);}else{self.sockjs.send(\"subscribe;\"+self.appKey+\";\"+self.authToken+\";\"+key+\";\"+hashPerm);}}else{channelsToRemove[key]=key;}}for(var keyToRemove in channelsToRemove){delete subscribedChannels[keyToRemove];}messagesBuffer={};delegateReconnectedCallback(self);}else{alreadyConnectedFirstTime=true;delegateConnectedCallback(self);}};self.sockjs.onortcerror=function(e){lastKeepAlive=new Date().getTime();var data=e.data;var operation=data.op;var channel=data.ch;var error=data.ex?data.ex:data;delegateExceptionCallback(self,error);switch(operation){case\"validate\":if(error.indexOf(\"busy\")<0){invalidConnection=true;clearValidatedTimeout(self);retryingWithSsl=false;stopReconnectProcess();}else{clearValidatedTimeout(self);retryingWithSsl=false;}break;case\"subscribe\":if(channel&&subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;}break;case\"subscribe_maxsize\":case\"unsubscribe_maxsize\":case\"shutdown\":clearValidatedTimeout(self);retryingWithSsl=false;break;case\"send_maxsize\":if(channel&&subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;}stopReconnectProcess();break;default:break;}};}return self.sockjs;};var jsonp=function(url,callback){var head=document.head?document.head:document.getElementsByTagName(\"head\")[0];var script=document.createElement(\"script\");var guid=\"ortcJsonp\"+ +new Date();var jsonpCallTimeout=setTimeout(function(){try{callback(\"Unable to get data\",null);window[guid]=undefined;delete window[guid];head.removeChild(script);}catch(e){}},15*1000);window[guid]=function(data){clearTimeout(jsonpCallTimeout);if(data.error){callback(data.error,null);}else{callback(null,data.content);}try{window[guid]=undefined;delete window[guid];head.removeChild(script);}catch(e){}};script.setAttribute(\"src\",url+\"?callback=\"+guid);head.appendChild(script);};var delegateConnectedCallback=function(ortc){if(ortc!=null&&ortc.onConnected!=null){startHeartBeatInterval(ortc);ortc.onConnected(ortc);}};var delegateDisconnectedCallback=function(ortc){if(ortc!=null&&ortc.onDisconnected!=null){ortc.onDisconnected(ortc);}};var delegateSubscribedCallback=function(ortc,channel){if(ortc!=null&&ortc.onSubscribed!=null&&channel!=null){ortc.onSubscribed(ortc,channel);}};var delegateUnsubscribedCallback=function(ortc,channel){if(ortc!=null&&ortc.onUnsubscribed!=null&&channel!=null){ortc.onUnsubscribed(ortc,channel);}};var delegateMessagesCallback=function(ortc,channel,filtered,message){if(ortc!=null&&subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed&&subscribedChannels[channel].onMessageCallback!=null){if(filtered==null){// regular subscription\n\tsubscribedChannels[channel].onMessageCallback(ortc,channel,message);}else{// filtered subscription\n\tsubscribedChannels[channel].onMessageCallback(ortc,channel,filtered,message);}}};var delegateExceptionCallback=function(ortc,event){if(ortc!=null&&ortc.onException!=null){ortc.onException(ortc,event);}};var delegateReconnectingCallback=function(ortc){if(ortc!=null&&ortc.onReconnecting!=null){ortc.onReconnecting(ortc);}};var delegateReconnectedCallback=function(ortc){if(ortc!=null&&ortc.onReconnected!=null){startHeartBeatInterval(ortc);ortc.onReconnected(ortc);}};}", "componentDidMount() {\n //setLocalNotification();\n }", "function AppMeasurement_Module_Media(s){var m=this;m.s=s;s=window;if(!s.s_c_in)s.s_c_il=[],s.s_c_in=0;m._il=s.s_c_il;m._in=s.s_c_in;m._il[m._in]=m;s.s_c_in++;m._c=\"s_m\";m.list=[];m.open=function(w,b,c,h){var d={},a=new Date,g=\"\",e;b||(b=-1);if(w&&c){if(!m.list)m.list={};m.list[w]&&m.close(w);if(h&&h.id)g=h.id;if(g)for(e in m.list)!Object.prototype[e]&&m.list[e]&&m.list[e].S==g&&m.close(m.list[e].name);d.name=w;d.length=b;d.u=0;d.c=0;d.playerName=m.playerName?m.playerName:c;d.S=g;d.L=0;d.f=0;d.timestamp=\r\n\t\tMath.floor(a.getTime()/1E3);d.j=0;d.r=d.timestamp;d.a=-1;d.B=\"\";d.k=-1;d.C=0;d.H={};d.F=0;d.m=0;d.e=\"\";d.A=0;d.K=0;d.z=0;d.D=0;d.l=!1;d.v=\"\";d.I=\"\";d.J=0;d.q=!1;d.G=\"\";d.complete=0;d.Q=0;d.o=0;d.p=0;m.list[w]=d}};m.openAd=function(w,b,c,h,d,a,g,e){var f={};m.open(w,b,c,e);if(f=m.list[w])f.l=!0,f.v=h,f.I=d,f.J=a,f.G=g};m.M=function(w){var b=m.list[w];m.list[w]=0;b&&b.monitor&&clearTimeout(b.monitor.R)};m.close=function(w){m.g(w,0,-1)};m.play=function(w,b,c,h){var d=m.g(w,1,b,c,h);if(d&&!d.monitor)d.monitor=\r\n\t\t{},d.monitor.update=function(){d.j==1&&m.g(d.name,3,-1);d.monitor.R=setTimeout(d.monitor.update,1E3)},d.monitor.update()};m.click=function(w,b){m.g(w,7,b)};m.complete=function(w,b){m.g(w,5,b)};m.stop=function(w,b){m.g(w,2,b)};m.track=function(w){m.g(w,4,-1)};m.P=function(w,b){var c=\"a.media.\",h=w.linkTrackVars,d=w.linkTrackEvents,a=\"m_i\",g,e=w.contextData,f;if(b.l){c+=\"ad.\";if(b.v)e[\"a.media.name\"]=b.v,e[c+\"pod\"]=b.I,e[c+\"podPosition\"]=b.J;if(!b.F)e[c+\"CPM\"]=b.G}if(b.q)e[c+\"clicked\"]=!0,b.q=!1;e[\"a.contentType\"]=\r\n\t\t\"video\"+(b.l?\"Ad\":\"\");e[\"a.media.channel\"]=m.channel;e[c+\"name\"]=b.name;e[c+\"playerName\"]=b.playerName;if(b.length>0)e[c+\"length\"]=b.length;e[c+\"timePlayed\"]=Math.floor(b.f);Math.floor(b.f)>0&&(e[c+\"timePlayed\"]=Math.floor(b.f));if(!b.F)e[c+\"view\"]=!0,a=\"m_s\",b.F=1;if(b.e){e[c+\"segmentNum\"]=b.m;e[c+\"segment\"]=b.e;if(b.A>0)e[c+\"segmentLength\"]=b.A;b.z&&b.f>0&&(e[c+\"segmentView\"]=!0)}if(!b.Q&&b.complete)e[c+\"complete\"]=!0,b.T=1;if(b.o>0)e[c+\"milestone\"]=b.o;if(b.p>0)e[c+\"offsetMilestone\"]=b.p;if(h)for(f in e)Object.prototype[f]||\r\n\t\t(h+=\",contextData.\"+f);g=e[\"a.contentType\"];w.pe=a;w.pev3=g;var s,n;if(m.contextDataMapping){if(!w.events2)w.events2=\"\";h&&(h+=\",events\");for(f in m.contextDataMapping)if(!Object.prototype[f]){a=f.length>c.length&&f.substring(0,c.length)==c?f.substring(c.length):\"\";g=m.contextDataMapping[f];if(typeof g==\"string\"){s=g.split(\",\");for(n=0;n<s.length;n++)g=s[n],f==\"a.contentType\"?(h&&(h+=\",\"+g),w[g]=e[f]):a==\"view\"||a==\"segmentView\"||a==\"clicked\"||a==\"complete\"||a==\"timePlayed\"||a==\"CPM\"?(d&&(d+=\",\"+\r\n\t\tg),a==\"timePlayed\"||a==\"CPM\"?e[f]&&(w.events2+=(w.events2?\",\":\"\")+g+\"=\"+e[f]):e[f]&&(w.events2+=(w.events2?\",\":\"\")+g)):a==\"segment\"&&e[f+\"Num\"]?(h&&(h+=\",\"+g),w[g]=e[f+\"Num\"]+\":\"+e[f]):(h&&(h+=\",\"+g),w[g]=e[f])}else if(a==\"milestones\"||a==\"offsetMilestones\")f=f.substring(0,f.length-1),e[f]&&m.contextDataMapping[f+\"s\"][e[f]]&&(d&&(d+=\",\"+m.contextDataMapping[f+\"s\"][e[f]]),w.events2+=(w.events2?\",\":\"\")+m.contextDataMapping[f+\"s\"][e[f]]);e[f]&&(e[f]=0);a==\"segment\"&&e[f+\"Num\"]&&(e[f+\"Num\"]=0)}}w.linkTrackVars=\r\n\t\th;w.linkTrackEvents=d};m.g=function(w,b,c,h,d){var a={},g=(new Date).getTime()/1E3,e,f,s=m.trackVars,n=m.trackEvents,o=m.trackSeconds,p=m.trackMilestones,q=m.trackOffsetMilestones,r=m.segmentByMilestones,t=m.segmentByOffsetMilestones,k,j,l=1,i={},u;if(!m.channel)m.channel=m.s.w.location.hostname;if(a=w&&m.list&&m.list[w]?m.list[w]:0){if(a.l)o=m.adTrackSeconds,p=m.adTrackMilestones,q=m.adTrackOffsetMilestones,r=m.adSegmentByMilestones,t=m.adSegmentByOffsetMilestones;c<0&&(c=a.j==1&&a.r>0?g-a.r+a.a:\r\n\t\ta.a);a.length>0&&(c=c<a.length?c:a.length);c<0&&(c=0);a.u=c;if(a.length>0)a.c=a.u/a.length*100,a.c=a.c>100?100:a.c;if(a.a<0)a.a=c;u=a.C;i.name=w;i.ad=a.l;i.length=a.length;i.openTime=new Date;i.openTime.setTime(a.timestamp*1E3);i.offset=a.u;i.percent=a.c;i.playerName=a.playerName;i.mediaEvent=a.k<0?\"OPEN\":b==1?\"PLAY\":b==2?\"STOP\":b==3?\"MONITOR\":b==4?\"TRACK\":b==5?\"COMPLETE\":b==7?\"CLICK\":\"CLOSE\";if(b>2||b!=a.j&&(b!=2||a.j==1)){if(!d)h=a.m,d=a.e;if(b){if(b==1)a.a=c;if((b<=3||b>=5)&&a.k>=0)if(l=!1,s=n=\r\n\t\t\"None\",a.k!=c){f=a.k;if(f>c)f=a.a,f>c&&(f=c);k=p?p.split(\",\"):0;if(a.length>0&&k&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f/a.length*100<e&&a.c>=e)l=!0,j=k.length,i.mediaEvent=\"MILESTONE\",a.o=i.milestone=e;if((k=q?q.split(\",\"):0)&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f<e&&c>=e)l=!0,j=k.length,i.mediaEvent=\"OFFSET_MILESTONE\",a.p=i.offsetMilestone=e}if(a.K||!d){if(r&&p&&a.length>0){if(k=p.split(\",\")){k.push(\"100\");for(j=f=0;j<k.length;j++)if(e=k[j]?parseFloat(\"\"+\r\n\t\tk[j]):0){if(a.c<e)h=j+1,d=\"M:\"+f+\"-\"+e,j=k.length;f=e}}}else if(t&&q&&(k=q.split(\",\"))){k.push(\"\"+(a.length>0?a.length:\"E\"));for(j=f=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)||k[j]==\"E\"){if(c<e||k[j]==\"E\")h=j+1,d=\"O:\"+f+\"-\"+e,j=k.length;f=e}}if(d)a.K=!0}if((d||a.e)&&d!=a.e){a.D=!0;if(!a.e)a.m=h,a.e=d;a.k>=0&&(l=!0)}if((b>=2||a.c>=100)&&a.a<c)a.L+=c-a.a,a.f+=c-a.a;if(b<=2||b==3&&!a.j)a.B+=(b==1||b==3?\"S\":\"E\")+Math.floor(c),a.j=b==3?1:b;if(!l&&a.k>=0&&b<=3&&(o=o?o:0)&&a.f>=o)l=!0,i.mediaEvent=\r\n\t\t\"SECONDS\";a.r=g;a.a=c}if(!b||b<=3&&a.c>=100)a.j!=2&&(a.B+=\"E\"+Math.floor(c)),b=0,s=n=\"None\",i.mediaEvent=\"CLOSE\";if(b==7)l=i.clicked=a.q=!0;if(b==5||m.completeByCloseOffset&&(!b||a.c>=100)&&a.length>0&&c>=a.length-m.completeCloseOffsetThreshold)l=i.complete=a.complete=!0;g=i.mediaEvent;g==\"MILESTONE\"?g+=\"_\"+i.milestone:g==\"OFFSET_MILESTONE\"&&(g+=\"_\"+i.offsetMilestone);a.H[g]?i.eventFirstTime=!1:(i.eventFirstTime=!0,a.H[g]=1);i.event=i.mediaEvent;i.timePlayed=a.L;i.segmentNum=a.m;i.segment=a.e;i.segmentLength=\r\n\t\ta.A;m.monitor&&b!=4&&m.monitor(m.s,i);b==0&&m.M(w);if(l&&a.C==u){w={};w.contextData={};w.linkTrackVars=s;w.linkTrackEvents=n;if(!w.linkTrackVars)w.linkTrackVars=\"\";if(!w.linkTrackEvents)w.linkTrackEvents=\"\";m.P(w,a);w.linkTrackVars||(w[\"!linkTrackVars\"]=1);w.linkTrackEvents||(w[\"!linkTrackEvents\"]=1);m.s.track(w);if(a.D)a.m=h,a.e=d,a.z=!0,a.D=!1;else if(a.f>0)a.z=!1;a.B=\"\";a.o=a.p=0;a.f-=Math.floor(a.f);a.k=c;a.C++}}}return a};m.O=function(w,b,c,h,d){var a=0;if(w&&(!m.autoTrackMediaLengthRequired||\r\n\t\tb&&b>0)){if(!m.list||!m.list[w]){if(c==1||c==3)m.open(w,b,\"HTML5 Video\",d),a=1}else a=1;a&&m.g(w,c,h,-1,0)}};m.attach=function(w){var b,c,h;if(w&&w.tagName&&w.tagName.toUpperCase()==\"VIDEO\"){if(!m.n)m.n=function(b,a,w){var c,f;if(m.autoTrack){c=b.currentSrc;(f=b.duration)||(f=-1);if(w<0)w=b.currentTime;m.O(c,f,a,w,b)}};b=function(){m.n(w,1,-1)};c=function(){m.n(w,1,-1)};m.i(w,\"play\",b);m.i(w,\"pause\",c);m.i(w,\"seeking\",c);m.i(w,\"seeked\",b);m.i(w,\"ended\",function(){m.n(w,0,-1)});m.i(w,\"timeupdate\",\r\n\t\tb);h=function(){!w.paused&&!w.ended&&!w.seeking&&m.n(w,3,-1);setTimeout(h,1E3)};h()}};m.i=function(m,b,c){m.attachEvent?m.attachEvent(\"on\"+b,c):m.addEventListener&&m.addEventListener(b,c,!1)};if(m.completeByCloseOffset==void 0)m.completeByCloseOffset=1;if(m.completeCloseOffsetThreshold==void 0)m.completeCloseOffsetThreshold=1;m.N=function(){var w,b;if(m.autoTrack&&(w=m.s.d.getElementsByTagName(\"VIDEO\")))for(b=0;b<w.length;b++)m.attach(w[b])};m.i(s,\"load\",m.N)}", "constructor(httpClient) {\n this.httpClient = httpClient;\n //public url_base = \"http://localhost:8080\";\n this.url_base = \"https://yaoyuan333.wm.r.appspot.com\";\n }", "function AppMeasurement_Module_Media(s){var m=this;m.s=s;s=window;if(!s.s_c_in)s.s_c_il=[],s.s_c_in=0;m._il=s.s_c_il;m._in=s.s_c_in;m._il[m._in]=m;s.s_c_in++;m._c=\"s_m\";m.list=[];m.open=function(w,b,c,h){var d={},a=new Date,g=\"\",e;b||(b=-1);if(w&&c){if(!m.list)m.list={};m.list[w]&&m.close(w);if(h&&h.id)g=h.id;if(g)for(e in m.list)!Object.prototype[e]&&m.list[e]&&m.list[e].S==g&&m.close(m.list[e].name);d.name=w;d.length=b;d.u=0;d.c=0;d.playerName=m.playerName?m.playerName:c;d.S=g;d.L=0;d.f=0;d.timestamp=\r\nMath.floor(a.getTime()/1E3);d.j=0;d.r=d.timestamp;d.a=-1;d.B=\"\";d.k=-1;d.C=0;d.H={};d.F=0;d.m=0;d.e=\"\";d.A=0;d.K=0;d.z=0;d.D=0;d.l=!1;d.v=\"\";d.I=\"\";d.J=0;d.q=!1;d.G=\"\";d.complete=0;d.Q=0;d.o=0;d.p=0;m.list[w]=d}};m.openAd=function(w,b,c,h,d,a,g,e){var f={};m.open(w,b,c,e);if(f=m.list[w])f.l=!0,f.v=h,f.I=d,f.J=a,f.G=g};m.M=function(w){var b=m.list[w];m.list[w]=0;b&&b.monitor&&clearTimeout(b.monitor.R)};m.close=function(w){m.g(w,0,-1)};m.play=function(w,b,c,h){var d=m.g(w,1,b,c,h);if(d&&!d.monitor)d.monitor=\r\n{},d.monitor.update=function(){d.j==1&&m.g(d.name,3,-1);d.monitor.R=setTimeout(d.monitor.update,1E3)},d.monitor.update()};m.click=function(w,b){m.g(w,7,b)};m.complete=function(w,b){m.g(w,5,b)};m.stop=function(w,b){m.g(w,2,b)};m.track=function(w){m.g(w,4,-1)};m.P=function(w,b){var c=\"a.media.\",h=w.linkTrackVars,d=w.linkTrackEvents,a=\"m_i\",g,e=w.contextData,f;if(b.l){c+=\"ad.\";if(b.v)e[\"a.media.name\"]=b.v,e[c+\"pod\"]=b.I,e[c+\"podPosition\"]=b.J;if(!b.F)e[c+\"CPM\"]=b.G}if(b.q)e[c+\"clicked\"]=!0,b.q=!1;e[\"a.contentType\"]=\r\n\"video\"+(b.l?\"Ad\":\"\");e[\"a.media.channel\"]=m.channel;e[c+\"name\"]=b.name;e[c+\"playerName\"]=b.playerName;if(b.length>0)e[c+\"length\"]=b.length;e[c+\"timePlayed\"]=Math.floor(b.f);Math.floor(b.f)>0&&(e[c+\"timePlayed\"]=Math.floor(b.f));if(!b.F)e[c+\"view\"]=!0,a=\"m_s\",b.F=1;if(b.e){e[c+\"segmentNum\"]=b.m;e[c+\"segment\"]=b.e;if(b.A>0)e[c+\"segmentLength\"]=b.A;b.z&&b.f>0&&(e[c+\"segmentView\"]=!0)}if(!b.Q&&b.complete)e[c+\"complete\"]=!0,b.T=1;if(b.o>0)e[c+\"milestone\"]=b.o;if(b.p>0)e[c+\"offsetMilestone\"]=b.p;if(h)for(f in e)Object.prototype[f]||\r\n(h+=\",contextData.\"+f);g=e[\"a.contentType\"];w.pe=a;w.pev3=g;var s,n;if(m.contextDataMapping){if(!w.events2)w.events2=\"\";h&&(h+=\",events\");for(f in m.contextDataMapping)if(!Object.prototype[f]){a=f.length>c.length&&f.substring(0,c.length)==c?f.substring(c.length):\"\";g=m.contextDataMapping[f];if(typeof g==\"string\"){s=g.split(\",\");for(n=0;n<s.length;n++)g=s[n],f==\"a.contentType\"?(h&&(h+=\",\"+g),w[g]=e[f]):a==\"view\"||a==\"segmentView\"||a==\"clicked\"||a==\"complete\"||a==\"timePlayed\"||a==\"CPM\"?(d&&(d+=\",\"+\r\ng),a==\"timePlayed\"||a==\"CPM\"?e[f]&&(w.events2+=(w.events2?\",\":\"\")+g+\"=\"+e[f]):e[f]&&(w.events2+=(w.events2?\",\":\"\")+g)):a==\"segment\"&&e[f+\"Num\"]?(h&&(h+=\",\"+g),w[g]=e[f+\"Num\"]+\":\"+e[f]):(h&&(h+=\",\"+g),w[g]=e[f])}else if(a==\"milestones\"||a==\"offsetMilestones\")f=f.substring(0,f.length-1),e[f]&&m.contextDataMapping[f+\"s\"][e[f]]&&(d&&(d+=\",\"+m.contextDataMapping[f+\"s\"][e[f]]),w.events2+=(w.events2?\",\":\"\")+m.contextDataMapping[f+\"s\"][e[f]]);e[f]&&(e[f]=0);a==\"segment\"&&e[f+\"Num\"]&&(e[f+\"Num\"]=0)}}w.linkTrackVars=\r\nh;w.linkTrackEvents=d};m.g=function(w,b,c,h,d){var a={},g=(new Date).getTime()/1E3,e,f,s=m.trackVars,n=m.trackEvents,o=m.trackSeconds,p=m.trackMilestones,q=m.trackOffsetMilestones,r=m.segmentByMilestones,t=m.segmentByOffsetMilestones,k,j,l=1,i={},u;if(!m.channel)m.channel=m.s.w.location.hostname;if(a=w&&m.list&&m.list[w]?m.list[w]:0){if(a.l)o=m.adTrackSeconds,p=m.adTrackMilestones,q=m.adTrackOffsetMilestones,r=m.adSegmentByMilestones,t=m.adSegmentByOffsetMilestones;c<0&&(c=a.j==1&&a.r>0?g-a.r+a.a:\r\na.a);a.length>0&&(c=c<a.length?c:a.length);c<0&&(c=0);a.u=c;if(a.length>0)a.c=a.u/a.length*100,a.c=a.c>100?100:a.c;if(a.a<0)a.a=c;u=a.C;i.name=w;i.ad=a.l;i.length=a.length;i.openTime=new Date;i.openTime.setTime(a.timestamp*1E3);i.offset=a.u;i.percent=a.c;i.playerName=a.playerName;i.mediaEvent=a.k<0?\"OPEN\":b==1?\"PLAY\":b==2?\"STOP\":b==3?\"MONITOR\":b==4?\"TRACK\":b==5?\"COMPLETE\":b==7?\"CLICK\":\"CLOSE\";if(b>2||b!=a.j&&(b!=2||a.j==1)){if(!d)h=a.m,d=a.e;if(b){if(b==1)a.a=c;if((b<=3||b>=5)&&a.k>=0)if(l=!1,s=n=\r\n\"None\",a.k!=c){f=a.k;if(f>c)f=a.a,f>c&&(f=c);k=p?p.split(\",\"):0;if(a.length>0&&k&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f/a.length*100<e&&a.c>=e)l=!0,j=k.length,i.mediaEvent=\"MILESTONE\",a.o=i.milestone=e;if((k=q?q.split(\",\"):0)&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f<e&&c>=e)l=!0,j=k.length,i.mediaEvent=\"OFFSET_MILESTONE\",a.p=i.offsetMilestone=e}if(a.K||!d){if(r&&p&&a.length>0){if(k=p.split(\",\")){k.push(\"100\");for(j=f=0;j<k.length;j++)if(e=k[j]?parseFloat(\"\"+\r\nk[j]):0){if(a.c<e)h=j+1,d=\"M:\"+f+\"-\"+e,j=k.length;f=e}}}else if(t&&q&&(k=q.split(\",\"))){k.push(\"\"+(a.length>0?a.length:\"E\"));for(j=f=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)||k[j]==\"E\"){if(c<e||k[j]==\"E\")h=j+1,d=\"O:\"+f+\"-\"+e,j=k.length;f=e}}if(d)a.K=!0}if((d||a.e)&&d!=a.e){a.D=!0;if(!a.e)a.m=h,a.e=d;a.k>=0&&(l=!0)}if((b>=2||a.c>=100)&&a.a<c)a.L+=c-a.a,a.f+=c-a.a;if(b<=2||b==3&&!a.j)a.B+=(b==1||b==3?\"S\":\"E\")+Math.floor(c),a.j=b==3?1:b;if(!l&&a.k>=0&&b<=3&&(o=o?o:0)&&a.f>=o)l=!0,i.mediaEvent=\r\n\"SECONDS\";a.r=g;a.a=c}if(!b||b<=3&&a.c>=100)a.j!=2&&(a.B+=\"E\"+Math.floor(c)),b=0,s=n=\"None\",i.mediaEvent=\"CLOSE\";if(b==7)l=i.clicked=a.q=!0;if(b==5||m.completeByCloseOffset&&(!b||a.c>=100)&&a.length>0&&c>=a.length-m.completeCloseOffsetThreshold)l=i.complete=a.complete=!0;g=i.mediaEvent;g==\"MILESTONE\"?g+=\"_\"+i.milestone:g==\"OFFSET_MILESTONE\"&&(g+=\"_\"+i.offsetMilestone);a.H[g]?i.eventFirstTime=!1:(i.eventFirstTime=!0,a.H[g]=1);i.event=i.mediaEvent;i.timePlayed=a.L;i.segmentNum=a.m;i.segment=a.e;i.segmentLength=\r\na.A;m.monitor&&b!=4&&m.monitor(m.s,i);b==0&&m.M(w);if(l&&a.C==u){w={};w.contextData={};w.linkTrackVars=s;w.linkTrackEvents=n;if(!w.linkTrackVars)w.linkTrackVars=\"\";if(!w.linkTrackEvents)w.linkTrackEvents=\"\";m.P(w,a);w.linkTrackVars||(w[\"!linkTrackVars\"]=1);w.linkTrackEvents||(w[\"!linkTrackEvents\"]=1);m.s.track(w);if(a.D)a.m=h,a.e=d,a.z=!0,a.D=!1;else if(a.f>0)a.z=!1;a.B=\"\";a.o=a.p=0;a.f-=Math.floor(a.f);a.k=c;a.C++}}}return a};m.O=function(w,b,c,h,d){var a=0;if(w&&(!m.autoTrackMediaLengthRequired||\r\nb&&b>0)){if(!m.list||!m.list[w]){if(c==1||c==3)m.open(w,b,\"HTML5 Video\",d),a=1}else a=1;a&&m.g(w,c,h,-1,0)}};m.attach=function(w){var b,c,h;if(w&&w.tagName&&w.tagName.toUpperCase()==\"VIDEO\"){if(!m.n)m.n=function(b,a,w){var c,f;if(m.autoTrack){c=b.currentSrc;(f=b.duration)||(f=-1);if(w<0)w=b.currentTime;m.O(c,f,a,w,b)}};b=function(){m.n(w,1,-1)};c=function(){m.n(w,1,-1)};m.i(w,\"play\",b);m.i(w,\"pause\",c);m.i(w,\"seeking\",c);m.i(w,\"seeked\",b);m.i(w,\"ended\",function(){m.n(w,0,-1)});m.i(w,\"timeupdate\",\r\nb);h=function(){!w.paused&&!w.ended&&!w.seeking&&m.n(w,3,-1);setTimeout(h,1E3)};h()}};m.i=function(m,b,c){m.attachEvent?m.attachEvent(\"on\"+b,c):m.addEventListener&&m.addEventListener(b,c,!1)};if(m.completeByCloseOffset==void 0)m.completeByCloseOffset=1;if(m.completeCloseOffsetThreshold==void 0)m.completeCloseOffsetThreshold=1;m.N=function(){var w,b;if(m.autoTrack&&(w=m.s.d.getElementsByTagName(\"VIDEO\")))for(b=0;b<w.length;b++)m.attach(w[b])};m.i(s,\"load\",m.N)}", "create () {\r\n // Send a create-job message to the native-app.\r\n openPort();\r\n return browser.storage.local.get({ props: {} }).then(result => {\r\n // Get a cookie jar for the job.\r\n return getCookieJarForVideo(this.props.videoUrl).then(cookieJar => {\r\n state.port.postMessage({\r\n topic: 'create-job',\r\n data: {\r\n jobId: this.id,\r\n // Merge the default props and the job props.\r\n props: Object.assign({ cookieJar }, result.props, this.props)\r\n }\r\n });\r\n \r\n // Flag this job as active.\r\n this.state = 'active';\r\n \r\n // Make the icon blue because a job is running.\r\n browser.browserAction.setIcon({\r\n path: 'icons/film-blue.svg'\r\n });\r\n });\r\n });\r\n }", "supportsPlatform() {\n return true;\n }", "function FileSystemService($http, $q, $log) {\n var _directory = LocalFileSystem.PERSISTENT;\n var _fs = null;\n var _that = this;\n\n this.isInitalized = false;\n\n function errorHandler(e) {\n var msg = '';\n\n switch (e.code) {\n case FileError.QUOTA_EXCEEDED_ERR:\n msg = 'QUOTA_EXCEEDED_ERR';\n break;\n case FileError.NOT_FOUND_ERR:\n msg = 'NOT_FOUND_ERR';\n break;\n case FileError.SECURITY_ERR:\n msg = 'SECURITY_ERR';\n break;\n case FileError.INVALID_MODIFICATION_ERR:\n msg = 'INVALID_MODIFICATION_ERR';\n break;\n case FileError.INVALID_STATE_ERR:\n msg = 'INVALID_STATE_ERR';\n break;\n default:\n msg = 'Unknown Error';\n break;\n };\n\n $log.error('FileSystemService: ' + msg);\n }\n\n // startup\n window.requestFileSystem(_directory, 0, function(fs){\n _fs = fs;\n _that.isInitalized = true;\n }, errorHandler);\n\n\n /**\n * Checks if file is in persistent storage\n */\n this.fileExists = function(filename) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n //var uri = _directory + \"/\" + filename;\n //return $http.get(uri);\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {}, function(fileEntry) {\n // Get a File object representing the file,\n // then use FileReader to read its contents.\n fileEntry.file(function(file) {\n var reader = new FileReader();\n\n reader.onloadend = function(e) {\n deferred.resolve(e.target.result);\n };\n\n reader.readAsDataURL(file);\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n\n /**\n * Get File from perstistent storage\n */\n this.getFile = function(filename) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n //var uri = _directory + \"/\" + filename;\n //return $http.get(uri);\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {}, function(fileEntry) {\n // Get a File object representing the file,\n // then use FileReader to read its contents.\n fileEntry.file(function(file) {\n var reader = new FileReader();\n\n reader.onloadend = function(e) {\n deferred.resolve(e.target.result);\n };\n\n reader.readAsDataURL(file);\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n\n /**\n * Save data into file (and create that if necessary).\n */\n this.saveFile = function(filename, data) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {create: true}, function(fileEntry) {\n // Create a FileWriter object for our FileEntry (log.txt).\n fileEntry.createWriter(function(fileWriter) {\n\n fileWriter.onwriteend = function(e) {\n $log.log('Write completed.');\n deferred.resolve();\n };\n\n fileWriter.onerror = function(e) {\n deferred.reject(e);\n $log.error('FileSystemService: write failed, ' + e.toString());\n };\n\n // Create a new Blob and write it to log.txt.\n var blob = new Blob([data], {type: 'text/plain'});\n\n fileWriter.write(blob);\n\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n}", "static initialize(app, changeLogService, deviceService, deviceFileService, deviceFileUploadService, file, httpService, localDBManagementService, localDbService, networkService, securityService) {\n if (this.initialized) {\n return;\n }\n deviceService.addStartUpService({\n serviceName: 'OfflineStartupService',\n start: () => {\n if (window['SQLitePlugin']) {\n localDBManagementService.setLogSQl((sessionStorage.getItem('wm.logSql') === 'true') || (sessionStorage.getItem('debugMode') === 'true'));\n window.logSql = (flag = true) => {\n localDBManagementService.setLogSQl(flag);\n sessionStorage.setItem('wm.logSql', flag ? 'true' : 'false');\n };\n window.executeLocalSql = (dbName, query, params) => {\n localDBManagementService.executeSQLQuery(dbName, query, params, true);\n };\n return localDBManagementService.loadDatabases().then(() => {\n changeLogService.addWorker(new IdResolver(localDBManagementService));\n changeLogService.addWorker(new ErrorBlocker(localDBManagementService));\n changeLogService.addWorker(new FileHandler());\n changeLogService.addWorker(new MultiPartParamTransformer(deviceFileService, localDBManagementService));\n new LiveVariableOfflineBehaviour(changeLogService, httpService, localDBManagementService, networkService, localDbService).add();\n new FileUploadOfflineBehaviour(changeLogService, deviceFileService, deviceFileUploadService, file, networkService, deviceFileService.getUploadDirectory()).add();\n new NamedQueryExecutionOfflineBehaviour(changeLogService, httpService, localDBManagementService, networkService).add();\n localDBManagementService.registerCallback(new UploadedFilesImportAndExportService(changeLogService, deviceFileService, localDBManagementService, file));\n changeLogService.addWorker({\n onAddCall: () => {\n if (!networkService.isConnected()) {\n networkService.disableAutoConnect();\n }\n },\n postFlush: stats => {\n if (stats.totalTaskCount > 0) {\n localDBManagementService.close()\n .catch(noop)\n .then(() => {\n location.assign(window.location.origin + window.location.pathname);\n });\n }\n }\n });\n });\n }\n return Promise.resolve();\n }\n });\n new SecurityOfflineBehaviour(app, file, deviceService, networkService, securityService).add();\n }", "constructor(){\n\t\t//console.log('API START');\n\t}", "get deviceServiceUUID() { return this._deviceServiceUUID ? this._deviceServiceUUID : 'FFE0'; }", "constructor () {\r\n\t\t\r\n\t}", "_sdkCompatibility() {\n // WebSocket\n // http://caniuse.com/#feat=websockets\n var canCreateWebSocket = 'WebSocket' in window;\n console.log('Native WebSocket capability: ' +\n canCreateWebSocket);\n\n if (!canCreateWebSocket) {\n throw new Error('No WebSocket capabilities');\n }\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x330b4067;\n this.SUBCLASS_OF_ID = 0xd3262a4a;\n\n this.phonecallsEnabled = args.phonecallsEnabled || null;\n this.defaultP2pContacts = args.defaultP2pContacts || null;\n this.preloadFeaturedStickers = args.preloadFeaturedStickers || null;\n this.ignorePhoneEntities = args.ignorePhoneEntities || null;\n this.revokePmInbox = args.revokePmInbox || null;\n this.blockedMode = args.blockedMode || null;\n this.pfsEnabled = args.pfsEnabled || null;\n this.date = args.date;\n this.expires = args.expires;\n this.testMode = args.testMode;\n this.thisDc = args.thisDc;\n this.dcOptions = args.dcOptions;\n this.dcTxtDomainName = args.dcTxtDomainName;\n this.chatSizeMax = args.chatSizeMax;\n this.megagroupSizeMax = args.megagroupSizeMax;\n this.forwardedCountMax = args.forwardedCountMax;\n this.onlineUpdatePeriodMs = args.onlineUpdatePeriodMs;\n this.offlineBlurTimeoutMs = args.offlineBlurTimeoutMs;\n this.offlineIdleTimeoutMs = args.offlineIdleTimeoutMs;\n this.onlineCloudTimeoutMs = args.onlineCloudTimeoutMs;\n this.notifyCloudDelayMs = args.notifyCloudDelayMs;\n this.notifyDefaultDelayMs = args.notifyDefaultDelayMs;\n this.pushChatPeriodMs = args.pushChatPeriodMs;\n this.pushChatLimit = args.pushChatLimit;\n this.savedGifsLimit = args.savedGifsLimit;\n this.editTimeLimit = args.editTimeLimit;\n this.revokeTimeLimit = args.revokeTimeLimit;\n this.revokePmTimeLimit = args.revokePmTimeLimit;\n this.ratingEDecay = args.ratingEDecay;\n this.stickersRecentLimit = args.stickersRecentLimit;\n this.stickersFavedLimit = args.stickersFavedLimit;\n this.channelsReadMediaPeriod = args.channelsReadMediaPeriod;\n this.tmpSessions = args.tmpSessions || null;\n this.pinnedDialogsCountMax = args.pinnedDialogsCountMax;\n this.pinnedInfolderCountMax = args.pinnedInfolderCountMax;\n this.callReceiveTimeoutMs = args.callReceiveTimeoutMs;\n this.callRingTimeoutMs = args.callRingTimeoutMs;\n this.callConnectTimeoutMs = args.callConnectTimeoutMs;\n this.callPacketTimeoutMs = args.callPacketTimeoutMs;\n this.meUrlPrefix = args.meUrlPrefix;\n this.autoupdateUrlPrefix = args.autoupdateUrlPrefix || null;\n this.gifSearchUsername = args.gifSearchUsername || null;\n this.venueSearchUsername = args.venueSearchUsername || null;\n this.imgSearchUsername = args.imgSearchUsername || null;\n this.staticMapsProvider = args.staticMapsProvider || null;\n this.captionLengthMax = args.captionLengthMax;\n this.messageLengthMax = args.messageLengthMax;\n this.webfileDcId = args.webfileDcId;\n this.suggestedLangCode = args.suggestedLangCode || null;\n this.langPackVersion = args.langPackVersion || null;\n this.baseLangPackVersion = args.baseLangPackVersion || null;\n }", "static _getName() {\n return 'ContentPlayback';\n }", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "start(callback){\n \n }", "onStartHeaders() {}", "async componentWillMount() {\n var _this = this\n _this.setUpUserDataFromFB()\n\n //ASK FOR CAMERA ONLT IF IS PREVIEW TRUE AND SHOWBARCODE TRUE\n if (Config.isPreview && Config.showBCScanner) {\n const { status } = await Permissions.askAsync(Permissions.CAMERA);\n this.setState({ hasCameraPermission: status === 'granted' });\n }\n\n\n\n AppEventEmitter.addListener('user.state.changes', this.alterUserState);\n if (Config.isTesterApp) {\n this.listenForUserAuth();\n } else if (Config.isPreview && !Config.isTesterApp) {\n //Load list of apps\n _this.retreiveAppDemos(\"apps\");\n }\n\n if (!Config.isPreview && !Config.isTesterApp) {\n\n //Load the data automatically, this is normal app and refister for Push notification\n this.registerForPushNotificationsAsync();\n Notifications.addListener(this._handleNotification);\n this.retreiveMeta();\n }\n\n\n await Font.loadAsync({\n //\"Material Icons\": require(\"@expo/vector-icons/fonts/MaterialIcons.ttf\"),\n //\"Ionicons\": require(\"@expo/vector-icons/fonts/Ionicons.ttf\"),\n // \"Feather\": require(\"@expo/vector-icons/fonts/Feather.ttf\"),\n 'open-sans': require('./assets/fonts/OpenSans-Regular.ttf'),\n 'lato-light': require('./assets/fonts/Lato-Light.ttf'),\n 'lato-regular': require('./assets/fonts/Lato-Regular.ttf'),\n 'lato-bold': require('./assets/fonts/Lato-Bold.ttf'),\n 'lato-black': require('./assets/fonts/Lato-Black.ttf'),\n 'roboto-medium': require('./assets/fonts/Roboto-Medium.ttf'),\n 'roboto-bold': require('./assets/fonts/Roboto-Bold.ttf'),\n 'roboto-light': require('./assets/fonts/Roboto-Light.ttf'),\n 'roboto-thin': require('./assets/fonts/Roboto-Thin.ttf'),\n\n });\n\n this.setState({ isReady: true, fontLoaded: true });\n }", "function writeHeader() {\n seekHead = createSeekHead();\n \n let\n ebmlHeader = {\n \"id\": 0x1a45dfa3, // EBML\n \"data\": [\n {\n \"id\": 0x4286, // EBMLVersion\n \"data\": 1\n },\n {\n \"id\": 0x42f7, // EBMLReadVersion\n \"data\": 1\n },\n {\n \"id\": 0x42f2, // EBMLMaxIDLength\n \"data\": 4\n },\n {\n \"id\": 0x42f3, // EBMLMaxSizeLength\n \"data\": 8\n },\n {\n \"id\": 0x4282, // DocType\n \"data\": \"webm\"\n },\n {\n \"id\": 0x4287, // DocTypeVersion\n \"data\": 2\n },\n {\n \"id\": 0x4285, // DocTypeReadVersion\n \"data\": 2\n }\n ]\n },\n \n segmentInfo = {\n \"id\": 0x1549a966, // Info\n \"data\": [\n {\n \"id\": 0x2ad7b1, // TimecodeScale\n \"data\": 1e6 // Times will be in miliseconds (1e6 nanoseconds per step = 1ms)\n },\n {\n \"id\": 0x4d80, // MuxingApp\n \"data\": \"webm-writer-js\",\n },\n {\n \"id\": 0x5741, // WritingApp\n \"data\": \"webm-writer-js\"\n },\n segmentDuration // To be filled in later\n ]\n },\n \n videoProperties = [\n {\n \"id\": 0xb0, // PixelWidth\n \"data\": videoWidth\n },\n {\n \"id\": 0xba, // PixelHeight\n \"data\": videoHeight\n }\n ];\n \n if (options.transparent) {\n videoProperties.push(\n {\n \"id\": 0x53C0, // AlphaMode\n \"data\": 1\n }\n );\n }\n \n let\n tracks = {\n \"id\": 0x1654ae6b, // Tracks\n \"data\": [\n {\n \"id\": 0xae, // TrackEntry\n \"data\": [\n {\n \"id\": 0xd7, // TrackNumber\n \"data\": DEFAULT_TRACK_NUMBER\n },\n {\n \"id\": 0x73c5, // TrackUID\n \"data\": DEFAULT_TRACK_NUMBER\n },\n {\n \"id\": 0x9c, // FlagLacing\n \"data\": 0\n },\n {\n \"id\": 0x22b59c, // Language\n \"data\": \"und\"\n },\n {\n \"id\": 0x86, // CodecID\n \"data\": \"V_VP8\"\n },\n {\n \"id\": 0x258688, // CodecName\n \"data\": \"VP8\"\n },\n {\n \"id\": 0x83, // TrackType\n \"data\": 1\n },\n {\n \"id\": 0xe0, // Video\n \"data\": videoProperties\n }\n ]\n }\n ]\n };\n \n ebmlSegment = {\n \"id\": 0x18538067, // Segment\n \"size\": -1, // Unbounded size\n \"data\": [\n seekHead,\n segmentInfo,\n tracks,\n ]\n };\n \n let\n bufferStream = new ArrayBufferDataStream(256);\n \n writeEBML(bufferStream, blobBuffer.pos, [ebmlHeader, ebmlSegment]);\n blobBuffer.write(bufferStream.getAsDataArray());\n \n // Now we know where these top-level elements lie in the file:\n seekPoints.SegmentInfo.positionEBML.data = fileOffsetToSegmentRelative(segmentInfo.offset);\n seekPoints.Tracks.positionEBML.data = fileOffsetToSegmentRelative(tracks.offset);\n \n\t writtenHeader = true;\n }", "function AppMeasurement(){var s=this;s.version=\"1.0.3\";var w=window;if(!w.s_c_in)w.s_c_il=[],w.s_c_in=0;s._il=w.s_c_il;s._in=w.s_c_in;s._il[s._in]=s;w.s_c_in++;s._c=\"s_c\";var n=w,g,k;try{g=n.parent;for(k=n.location;g&&g.location&&k&&\"\"+g.location!=\"\"+k&&n.location&&\"\"+g.location!=\"\"+n.location&&g.location.host==k.host;)n=g,g=n.parent}catch(o){}s.za=function(s){try{console.log(s)}catch(a){}};s.ba=function(s){return\"\"+parseInt(s)==\"\"+s};s.replace=function(s,a,c){if(!s||s.indexOf(a)<0)return s;return s.split(a).join(c)};\r\ns.escape=function(b){var a,c;if(!b)return b;b=encodeURIComponent(b);for(a=0;a<7;a++)c=\"+~!*()'\".substring(a,a+1),b.indexOf(c)>=0&&(b=s.replace(b,c,\"%\"+c.charCodeAt(0).toString(16).toUpperCase()));return b};s.unescape=function(b){if(!b)return b;b=b.indexOf(\"+\")>=0?s.replace(b,\"+\",\" \"):b;try{return decodeURIComponent(b)}catch(a){}return unescape(b)};s.pa=function(){var b=w.location.hostname,a=s.fpCookieDomainPeriods,c;if(!a)a=s.cookieDomainPeriods;if(b&&!s.U&&!/^[0-9.]+$/.test(b)&&(a=a?parseInt(a):\r\n2,a=a>2?a:2,c=b.lastIndexOf(\".\"),c>=0)){for(;c>=0&&a>1;)c=b.lastIndexOf(\".\",c-1),a--;s.U=c>0?b.substring(c):b}return s.U};s.c_r=s.cookieRead=function(b){b=s.escape(b);var a=\" \"+s.d.cookie,c=a.indexOf(\" \"+b+\"=\"),e=c<0?c:a.indexOf(\";\",c);b=c<0?\"\":s.unescape(a.substring(c+2+b.length,e<0?a.length:e));return b!=\"[[B]]\"?b:\"\"};s.c_w=s.cookieWrite=function(b,a,c){var e=s.pa(),d=s.cookieLifetime,f;a=\"\"+a;d=d?(\"\"+d).toUpperCase():\"\";c&&d!=\"SESSION\"&&d!=\"NONE\"&&((f=a!=\"\"?parseInt(d?d:0):-60)?(c=new Date,c.setTime(c.getTime()+\r\nf*1E3)):c==1&&(c=new Date,f=c.getYear(),c.setYear(f+5+(f<1900?1900:0))));if(b&&d!=\"NONE\")return s.d.cookie=b+\"=\"+s.escape(a!=\"\"?a:\"[[B]]\")+\"; path=/;\"+(c&&d!=\"SESSION\"?\" expires=\"+c.toGMTString()+\";\":\"\")+(e?\" domain=\"+e+\";\":\"\"),s.cookieRead(b)==a;return 0};s.v=[];s.V=function(b,a){if(s.W)return 0;if(!s.maxDelay)s.maxDelay=250;var c=0,e=(new Date).getTime()+s.maxDelay,d=s.d.Ma,f=[\"webkitvisibilitychange\",\"visibilitychange\"];if(!d)d=s.d.Na;if(d&&d==\"prerender\"){if(!s.G){s.G=1;for(c=0;c<f.length;c++)s.d.addEventListener(f[c],\r\nfunction(){var b=s.d.Ma;if(!b)b=s.d.Na;if(b==\"visible\")s.G=0,s.delayReady()})}c=1;e=0}else s.u(\"_d\")&&(c=1);c&&(s.v.push({m:b,a:a,t:e}),s.G||setTimeout(s.delayReady,s.maxDelay));return c};s.delayReady=function(){var b=(new Date).getTime(),a=0,c;for(s.u(\"_d\")&&(a=1);s.v.length>0;){c=s.v.shift();if(a&&!c.t&&c.t>b){s.v.unshift(c);setTimeout(s.delayReady,parseInt(s.maxDelay/2));break}s.W=1;s[c.m].apply(s,c.a);s.W=0}};s.setAccount=s.sa=function(b){var a,c;if(!s.V(\"setAccount\",arguments))if(s.account=b,\r\ns.allAccounts){a=s.allAccounts.concat(b.split(\",\"));s.allAccounts=[];a.sort();for(c=0;c<a.length;c++)(c==0||a[c-1]!=a[c])&&s.allAccounts.push(a[c])}else s.allAccounts=b.split(\",\")};s.P=function(b,a,c,e,d){var f=\"\",i,j,w,q,g=0;b==\"contextData\"&&(b=\"c\");if(a){for(i in a)if(!Object.prototype[i]&&(!d||i.substring(0,d.length)==d)&&a[i]&&(!c||c.indexOf(\",\"+(e?e+\".\":\"\")+i+\",\")>=0)){w=!1;if(g)for(j=0;j<g.length;j++)i.substring(0,g[j].length)==g[j]&&(w=!0);if(!w&&(f==\"\"&&(f+=\"&\"+b+\".\"),j=a[i],d&&(i=i.substring(d.length)),\r\ni.length>0))if(w=i.indexOf(\".\"),w>0)j=i.substring(0,w),w=(d?d:\"\")+j+\".\",g||(g=[]),g.push(w),f+=s.P(j,a,c,e,w);else if(typeof j==\"boolean\"&&(j=j?\"true\":\"false\"),j){if(e==\"retrieveLightData\"&&d.indexOf(\".contextData.\")<0)switch(w=i.substring(0,4),q=i.substring(4),i){case \"transactionID\":i=\"xact\";break;case \"channel\":i=\"ch\";break;case \"campaign\":i=\"v0\";break;default:s.ba(q)&&(w==\"prop\"?i=\"c\"+q:w==\"eVar\"?i=\"v\"+q:w==\"list\"?i=\"l\"+q:w==\"hier\"&&(i=\"h\"+q,j=j.substring(0,255)))}f+=\"&\"+s.escape(i)+\"=\"+s.escape(j)}}f!=\r\n\"\"&&(f+=\"&.\"+b)}return f};s.ra=function(){var b=\"\",a,c,e,d,f,i,j,w,g=\"\",n=\"\",k=c=\"\";if(s.lightProfileID)a=s.J,(g=s.lightTrackVars)&&(g=\",\"+g+\",\"+s.ea.join(\",\")+\",\");else{a=s.e;if(s.pe||s.linkType)if(g=s.linkTrackVars,n=s.linkTrackEvents,s.pe&&(c=s.pe.substring(0,1).toUpperCase()+s.pe.substring(1),s[c]))g=s[c].Va,n=s[c].Ua;g&&(g=\",\"+g+\",\"+s.C.join(\",\")+\",\");n&&(n=\",\"+n+\",\",g&&(g+=\",events,\"));s.events2&&(k+=(k!=\"\"?\",\":\"\")+s.events2)}for(c=0;c<a.length;c++){d=a[c];f=s[d];e=d.substring(0,4);i=d.substring(4);\r\n!f&&d==\"events\"&&k&&(f=k,k=\"\");if(f&&(!g||g.indexOf(\",\"+d+\",\")>=0)){switch(d){case \"timestamp\":d=\"ts\";break;case \"dynamicVariablePrefix\":d=\"D\";break;case \"visitorID\":d=\"vid\";break;case \"pageURL\":d=\"g\";if(f.length>255)s.pageURLRest=f.substring(255),f=f.substring(0,255);break;case \"pageURLRest\":d=\"-g\";break;case \"referrer\":d=\"r\";break;case \"vmk\":case \"visitorMigrationKey\":d=\"vmt\";break;case \"visitorMigrationServer\":d=\"vmf\";s.ssl&&s.visitorMigrationServerSecure&&(f=\"\");break;case \"visitorMigrationServerSecure\":d=\r\n\"vmf\";!s.ssl&&s.visitorMigrationServer&&(f=\"\");break;case \"charSet\":d=\"ce\";break;case \"visitorNamespace\":d=\"ns\";break;case \"cookieDomainPeriods\":d=\"cdp\";break;case \"cookieLifetime\":d=\"cl\";break;case \"variableProvider\":d=\"vvp\";break;case \"currencyCode\":d=\"cc\";break;case \"channel\":d=\"ch\";break;case \"transactionID\":d=\"xact\";break;case \"campaign\":d=\"v0\";break;case \"resolution\":d=\"s\";break;case \"colorDepth\":d=\"c\";break;case \"javascriptVersion\":d=\"j\";break;case \"javaEnabled\":d=\"v\";break;case \"cookiesEnabled\":d=\r\n\"k\";break;case \"browserWidth\":d=\"bw\";break;case \"browserHeight\":d=\"bh\";break;case \"connectionType\":d=\"ct\";break;case \"homepage\":d=\"hp\";break;case \"plugins\":d=\"p\";break;case \"events\":k&&(f+=(f!=\"\"?\",\":\"\")+k);if(n){i=f.split(\",\");f=\"\";for(e=0;e<i.length;e++)j=i[e],w=j.indexOf(\"=\"),w>=0&&(j=j.substring(0,w)),w=j.indexOf(\":\"),w>=0&&(j=j.substring(0,w)),n.indexOf(\",\"+j+\",\")>=0&&(f+=(f?\",\":\"\")+i[e])}break;case \"events2\":f=\"\";break;case \"contextData\":b+=s.P(\"c\",s[d],g,d);f=\"\";break;case \"lightProfileID\":d=\r\n\"mtp\";break;case \"lightStoreForSeconds\":d=\"mtss\";s.lightProfileID||(f=\"\");break;case \"lightIncrementBy\":d=\"mti\";s.lightProfileID||(f=\"\");break;case \"retrieveLightProfiles\":d=\"mtsr\";break;case \"deleteLightProfiles\":d=\"mtsd\";break;case \"retrieveLightData\":s.retrieveLightProfiles&&(b+=s.P(\"mts\",s[d],g,d));f=\"\";break;default:s.ba(i)&&(e==\"prop\"?d=\"c\"+i:e==\"eVar\"?d=\"v\"+i:e==\"list\"?d=\"l\"+i:e==\"hier\"&&(d=\"h\"+i,f=f.substring(0,255)))}f&&(b+=\"&\"+d+\"=\"+(d.substring(0,3)!=\"pev\"?s.escape(f):f))}d==\"pev3\"&&s.g&&\r\n(b+=s.g)}return b};s.p=function(s){var a=s.tagName;if(\"\"+s.Ta!=\"undefined\"||\"\"+s.Ea!=\"undefined\"&&(\"\"+s.Ea).toUpperCase()!=\"HTML\")return\"\";a=a&&a.toUpperCase?a.toUpperCase():\"\";a==\"SHAPE\"&&(a=\"\");a&&((a==\"INPUT\"||a==\"BUTTON\")&&s.type&&s.type.toUpperCase?a=s.type.toUpperCase():!a&&s.href&&(a=\"A\"));return a};s.Y=function(s){var a=s.href?s.href:\"\",c,e,d;c=a.indexOf(\":\");e=a.indexOf(\"?\");d=a.indexOf(\"/\");if(a&&(c<0||e>=0&&c>e||d>=0&&c>d))e=s.protocol&&s.protocol.length>1?s.protocol:l.protocol?l.protocol:\r\n\"\",c=l.pathname.lastIndexOf(\"/\"),a=(e?e+\"//\":\"\")+(s.host?s.host:l.host?l.host:\"\")+(h.substring(0,1)!=\"/\"?l.pathname.substring(0,c<0?0:c)+\"/\":\"\")+a;return a};s.z=function(b){var a=s.p(b),c,e,d=\"\",f=0;if(a){c=b.protocol;e=b.onclick;if(b.href&&(a==\"A\"||a==\"AREA\")&&(!e||!c||c.toLowerCase().indexOf(\"javascript\")<0))d=s.Y(b);else if(e)d=s.replace(s.replace(s.replace(s.replace(\"\"+e,\"\\r\",\"\"),\"\\n\",\"\"),\"\\t\",\"\"),\" \",\"\"),f=2;else if(a==\"INPUT\"||a==\"SUBMIT\"){if(b.value)d=b.value;else if(b.innerText)d=b.innerText;\r\nelse if(b.textContent)d=b.textContent;f=3}else if(b.src&&a==\"IMAGE\")d=b.src;if(d)return{id:d.substring(0,100),type:f}}return 0};s.Qa=function(b){for(var a=s.p(b),c=s.z(b);b&&!c&&a!=\"BODY\";)if(b=b.parentElement?b.parentElement:b.parentNode)a=s.p(b),c=s.z(b);if(!c||a==\"BODY\")b=0;if(b&&(a=b.onclick?\"\"+b.onclick:\"\",a.indexOf(\".tl(\")>=0||a.indexOf(\".trackLink(\")>=0))b=0;return b};s.Ca=function(){var b,a,c=s.linkObject,e=s.linkType,d=s.linkURL,f,i;s.K=1;if(!c)s.K=0,c=s.j;if(c){b=s.p(c);for(a=s.z(c);c&&\r\n!a&&b!=\"BODY\";)if(c=c.parentElement?c.parentElement:c.parentNode)b=s.p(c),a=s.z(c);if(!a||b==\"BODY\")c=0;if(c){var j=c.onclick?\"\"+c.onclick:\"\";if(j.indexOf(\".tl(\")>=0||j.indexOf(\".trackLink(\")>=0)c=0}}else s.K=1;!d&&c&&(d=s.Y(c));d&&!s.linkLeaveQueryString&&(f=d.indexOf(\"?\"),f>=0&&(d=d.substring(0,f)));if(!e&&d){var g=0,n=0,k;if(s.trackDownloadLinks&&s.linkDownloadFileTypes){j=d.toLowerCase();f=j.indexOf(\"?\");i=j.indexOf(\"#\");f>=0?i>=0&&i<f&&(f=i):f=i;f>=0&&(j=j.substring(0,f));f=s.linkDownloadFileTypes.toLowerCase().split(\",\");\r\nfor(i=0;i<f.length;i++)(k=f[i])&&j.substring(j.length-(k.length+1))==\".\"+k&&(e=\"d\")}if(s.trackExternalLinks&&!e&&(j=d.toLowerCase(),s.aa(j))){if(!s.linkInternalFilters)s.linkInternalFilters=w.location.hostname;f=0;s.linkExternalFilters?(f=s.linkExternalFilters.toLowerCase().split(\",\"),g=1):s.linkInternalFilters&&(f=s.linkInternalFilters.toLowerCase().split(\",\"));if(f){for(i=0;i<f.length;i++)k=f[i],j.indexOf(k)>=0&&(n=1);n?g&&(e=\"e\"):g||(e=\"e\")}}}s.linkObject=c;s.linkURL=d;s.linkType=e;if(s.trackClickMap||\r\ns.trackInlineStats)if(s.g=\"\",c){e=s.pageName;d=1;c=c.sourceIndex;if(!e)e=s.pageURL,d=0;if(w.s_objectID)a.id=w.s_objectID,c=a.type=1;if(e&&a&&a.id&&b)s.g=\"&pid=\"+s.escape(e.substring(0,255))+(d?\"&pidt=\"+d:\"\")+\"&oid=\"+s.escape(a.id.substring(0,100))+(a.type?\"&oidt=\"+a.type:\"\")+\"&ot=\"+b+(c?\"&oi=\"+c:\"\")}};s.ta=function(){var b=s.K,a=s.linkType,c=s.linkURL,e=s.linkName;if(a&&(c||e))a=a.toLowerCase(),a!=\"d\"&&a!=\"e\"&&(a=\"o\"),s.pe=\"lnk_\"+a,s.pev1=c?s.escape(c):\"\",s.pev2=e?s.escape(e):\"\",b=1;s.abort&&(b=0);\r\nif(s.trackClickMap||s.trackInlineStats){a={};c=0;var d=s.cookieRead(\"s_sq\"),f=d?d.split(\"&\"):0,i,j,w;d=0;if(f)for(i=0;i<f.length;i++)j=f[i].split(\"=\"),e=s.unescape(j[0]).split(\",\"),j=s.unescape(j[1]),a[j]=e;e=s.account.split(\",\");if(b||s.g){b&&!s.g&&(d=1);for(j in a)if(!Object.prototype[j])for(i=0;i<e.length;i++){d&&(w=a[j].join(\",\"),w==s.account&&(s.g+=(j.charAt(0)!=\"&\"?\"&\":\"\")+j,a[j]=[],c=1));for(f=0;f<a[j].length;f++)w=a[j][f],w==e[i]&&(d&&(s.g+=\"&u=\"+s.escape(w)+(j.charAt(0)!=\"&\"?\"&\":\"\")+j+\"&u=0\"),\r\na[j].splice(f,1),c=1)}b||(c=1);if(c){d=\"\";i=2;!b&&s.g&&(d=s.escape(e.join(\",\"))+\"=\"+s.escape(s.g),i=1);for(j in a)!Object.prototype[j]&&i>0&&a[j].length>0&&(d+=(d?\"&\":\"\")+s.escape(a[j].join(\",\"))+\"=\"+s.escape(j),i--);s.cookieWrite(\"s_sq\",d)}}}return b};s.ua=function(){if(!s.Ka){var b=new Date,a=n.location,c,e,d,f=d=e=c=\"\",i=\"\",w=\"\",g=\"1.2\",k=s.cookieWrite(\"s_cc\",\"true\",0)?\"Y\":\"N\",o=\"\",p=\"\",r=0;if(b.setUTCDate&&(g=\"1.3\",r.toPrecision&&(g=\"1.5\",c=[],c.forEach))){g=\"1.6\";d=0;e={};try{d=new Iterator(e),\r\nd.next&&(g=\"1.7\",c.reduce&&(g=\"1.8\",g.trim&&(g=\"1.8.1\",Date.parse&&(g=\"1.8.2\",Object.create&&(g=\"1.8.5\")))))}catch(t){}}c=screen.width+\"x\"+screen.height;d=navigator.javaEnabled()?\"Y\":\"N\";e=screen.pixelDepth?screen.pixelDepth:screen.colorDepth;i=s.w.innerWidth?s.w.innerWidth:s.d.documentElement.offsetWidth;w=s.w.innerHeight?s.w.innerHeight:s.d.documentElement.offsetHeight;b=navigator.plugins;try{s.b.addBehavior(\"#default#homePage\"),o=s.b.Ra(a)?\"Y\":\"N\"}catch(u){}try{s.b.addBehavior(\"#default#clientCaps\"),\r\np=s.b.connectionType}catch(x){}if(b)for(;r<b.length&&r<30;){if(a=b[r].name)a=a.substring(0,100)+\";\",f.indexOf(a)<0&&(f+=a);r++}s.resolution=c;s.colorDepth=e;s.javascriptVersion=g;s.javaEnabled=d;s.cookiesEnabled=k;s.browserWidth=i;s.browserHeight=w;s.connectionType=p;s.homepage=o;s.plugins=f;s.Ka=1}};s.B={};s.loadModule=function(b,a){s.B[b]||(s[b]=w[\"AppMeasurement_Module_\"+b]?new w[\"AppMeasurement_Module_\"+b](s):{},s.B[b]=s[b]);a&&(s[b+\"_onLoad\"]=a,delayCall(b+\"_onLoad\",[s,m],1)||a(s,m))};s.u=function(b){var a,\r\nc;for(a in s.B)if(!Object.prototype[a]&&(c=s.B[a])&&c[b]&&c[b]())return 1;return 0};s.xa=function(){var b=Math.floor(Math.random()*1E13),a=s.visitorSampling,c=s.visitorSamplingGroup;c=\"s_vsn_\"+(s.visitorNamespace?s.visitorNamespace:s.account)+(c?\"_\"+c:\"\");var e=s.cookieRead(c);if(a){e&&(e=parseInt(e));if(!e){if(!s.cookieWrite(c,b))return 0;e=b}if(e%1E4>v)return 0}return 1};s.Q=function(b,a){var c,e,d,f,i,w;for(c=0;c<2;c++){e=c>0?s.R:s.e;for(d=0;d<e.length;d++)if(f=e[d],(i=b[f])||b[\"!\"+f]){if(!a&&\r\n(f==\"contextData\"||f==\"retrieveLightData\")&&s[f])for(w in s[f])i[w]||(i[w]=s[f][w]);s[f]=i}}};s.La=function(b){var a,c,e,d;for(a=0;a<2;a++){c=a>0?s.R:s.e;for(e=0;e<c.length;e++)d=c[e],b[d]=s[d],b[d]||(b[\"!\"+d]=1)}};s.oa=function(s){var a,c,e,d,f,w=0,g,n=\"\",k=\"\";if(s&&s.length>255&&(a=\"\"+s,c=a.indexOf(\"?\"),c>0&&(g=a.substring(c+1),a=a.substring(0,c),d=a.toLowerCase(),e=0,d.substring(0,7)==\"http://\"?e+=7:d.substring(0,8)==\"https://\"&&(e+=8),c=d.indexOf(\"/\",e),c>0&&(d=d.substring(e,c),f=a.substring(c),\r\na=a.substring(0,c),d.indexOf(\"google\")>=0?w=\",q,ie,start,search_key,word,kw,cd,\":d.indexOf(\"yahoo.co\")>=0&&(w=\",p,ei,\"),w&&g)))){if((s=g.split(\"&\"))&&s.length>1){for(e=0;e<s.length;e++)d=s[e],c=d.indexOf(\"=\"),c>0&&w.indexOf(\",\"+d.substring(0,c)+\",\")>=0?n+=(n?\"&\":\"\")+d:k+=(k?\"&\":\"\")+d;n&&k?g=n+\"&\"+k:k=\"\"}c=253-(g.length-k.length)-a.length;s=a+(c>0?f.substring(0,c):\"\")+\"?\"+g}return s};s.qa=function(){var b=s.cookieRead(\"s_fid\"),a=\"\",c=\"\",e;e=8;var d=4;if(!b||b.indexOf(\"-\")<0){for(b=0;b<16;b++)e=Math.floor(Math.random()*\r\ne),a+=\"0123456789ABCDEF\".substring(e,e+1),e=Math.floor(Math.random()*d),c+=\"0123456789ABCDEF\".substring(e,e+1),e=d=16;b=a+\"-\"+c}s.cookieWrite(\"s_fid\",b,1)||(b=0);return b};s.t=s.track=function(b){var a,c=new Date,e=\"s\"+Math.floor(c.getTime()/108E5)%10+Math.floor(Math.random()*1E13),d=c.getYear();d=\"t=\"+s.escape(c.getDate()+\"/\"+c.getMonth()+\"/\"+(d<1900?d+1900:d)+\" \"+c.getHours()+\":\"+c.getMinutes()+\":\"+c.getSeconds()+\" \"+c.getDay()+\" \"+c.getTimezoneOffset());if(!s.V(\"track\",arguments)){b&&(a={},s.La(a),\r\ns.Q(b));if(s.xa()&&(s.fid=s.qa(),s.Ca(),s.usePlugins&&s.doPlugins&&s.doPlugins(s),s.account)){if(!s.abort){if(s.trackOffline&&!s.timestamp)s.timestamp=Math.floor(c.getTime()/1E3);c=w.location;if(!s.pageURL)s.pageURL=c.href?c.href:c;if(!s.referrer&&!s.ia)s.referrer=n.document.referrer,s.ia=1;s.referrer=s.oa(s.referrer);s.u(\"_g\")}s.ta()&&!s.abort&&(s.ua(),d+=s.ra(),s.Ba(e,d));s.abort||s.u(\"_t\")}b&&s.Q(a,1);s.timestamp=s.linkObject=s.j=s.linkURL=s.linkName=s.linkType=w.Sa=s.pe=s.pev1=s.pev2=s.pev3=s.g=\r\n0}};s.tl=s.trackLink=function(b,a,c,e,d){s.linkObject=b;s.linkType=a;s.linkName=c;if(d)s.i=b,s.l=d;return s.track(e)};s.trackLight=function(b,a,c,e){s.lightProfileID=b;s.lightStoreForSeconds=a;s.lightIncrementBy=c;return s.track(e)};s.clearVars=function(){var b,a;for(b=0;b<s.e.length;b++)if(a=s.e[b],a.substring(0,4)==\"prop\"||a.substring(0,4)==\"eVar\"||a.substring(0,4)==\"hier\"||a.substring(0,4)==\"list\"||a==\"channel\"||a==\"events\"||a==\"eventList\"||a==\"products\"||a==\"productList\"||a==\"purchaseID\"||a==\r\n\"transactionID\"||a==\"state\"||a==\"zip\"||a==\"campaign\")s[a]=void 0};s.Ba=function(b,a){var c,e=s.trackingServer;c=\"\";var d=s.dc,f=\"sc.\",w=s.visitorNamespace;if(e){if(s.trackingServerSecure&&s.ssl)e=s.trackingServerSecure}else{if(!w)w=s.account,e=w.indexOf(\",\"),e>=0&&(w=w.Oa(0,e)),w=w.replace(/[^A-Za-z0-9]/g,\"\");c||(c=\"2o7.net\");d=d?(\"\"+d).toLowerCase():\"d1\";c==\"2o7.net\"&&(d==\"d1\"?d=\"112\":d==\"d2\"&&(d=\"122\"),f=\"\");e=w+\".\"+d+\".\"+f+c}c=s.ssl?\"https://\":\"http://\";c+=e+\"/b/ss/\"+s.account+\"/\"+(s.mobile?\"5.\":\r\n\"\")+\"1/JS-\"+s.version+(s.Ja?\"T\":\"\")+\"/\"+b+\"?AQB=1&ndh=1&\"+a+\"&AQE=1\";s.wa&&(c=c.substring(0,2047));s.ma(c);s.H()};s.ma=function(b){s.c||s.va();s.c.push(b);s.I=s.o();s.ha()};s.va=function(){s.c=s.ya();if(!s.c)s.c=[]};s.ya=function(){var b,a;if(s.M()){try{(a=w.localStorage.getItem(s.L()))&&(b=w.JSON.parse(a))}catch(c){}return b}};s.M=function(){var b=!0;if(!s.trackOffline||!s.offlineFilename||!w.localStorage||!w.JSON)b=!1;return b};s.Z=function(){var b=0;if(s.c)b=s.c.length;s.q&&b++;return b};s.H=function(){if(!s.q)if(s.$=\r\nnull,s.fa)s.I>s.A&&s.ga(s.c),s.O(500);else{var b=s.ja();if(b>0)s.O(b);else if(b=s.X())s.q=1,s.Aa(b),s.Fa(b)}};s.O=function(b){if(!s.$)b||(b=0),s.$=setTimeout(s.H,b)};s.ja=function(){var b;if(!s.trackOffline||s.offlineThrottleDelay<=0)return 0;b=s.o()-s.da;if(s.offlineThrottleDelay<b)return 0;return s.offlineThrottleDelay-b};s.X=function(){if(s.c.length>0)return s.c.shift()};s.Aa=function(b){if(s.debugTracking){var a=\"AppMeasurement Debug: \"+b;b=b.split(\"&\");var c;for(c=0;c<b.length;c++)a+=\"\\n\\t\"+\r\ns.unescape(b[c]);s.za(a)}};s.Fa=function(b){var a;a||(a=new Image);a.T=function(){try{if(s.N)clearTimeout(s.N),s.N=0;if(a.timeout)clearTimeout(a.timeout),a.timeout=0}catch(b){}};a.onload=a.Ia=function(){a.T();s.la();s.D();s.q=0;s.H()};a.onabort=a.onerror=a.na=function(){a.T();s.q&&s.c.unshift(s.ka);s.q=0;s.I>s.A&&s.ga(s.c);s.D();s.O(500)};a.onreadystatechange=function(){a.readyState==4&&(a.status==200?a.Ia():a.na())};s.da=s.o();a.src=b;if(a.abort)s.N=setTimeout(a.abort,5E3);s.ka=b;s.Pa=w[\"s_i_\"+s.replace(s.account,\r\n\",\",\"_\")]=a;if(s.useForcedLinkTracking&&s.r||s.l){if(!s.forcedLinkTrackingTimeout)s.forcedLinkTrackingTimeout=250;s.F=setTimeout(s.D,s.forcedLinkTrackingTimeout)}};s.la=function(){if(s.M()&&!(s.ca>s.A))try{w.localStorage.removeItem(s.L()),s.ca=s.o()}catch(b){}};s.ga=function(b){if(s.M()){s.ha();try{w.localStorage.setItem(s.L(),w.JSON.stringify(b)),s.A=s.o()}catch(a){}}};s.ha=function(){if(s.trackOffline){if(!s.offlineLimit||s.offlineLimit<=0)s.offlineLimit=10;for(;s.c.length>s.offlineLimit;)s.X()}};\r\ns.forceOffline=function(){s.fa=!0};s.forceOnline=function(){s.fa=!1};s.L=function(){return s.offlineFilename+\"-\"+s.visitorNamespace+s.account};s.o=function(){return(new Date).getTime()};s.aa=function(s){s=s.toLowerCase();if(s.indexOf(\"#\")!=0&&s.indexOf(\"about:\")!=0&&s.indexOf(\"javascript:\")!=0)return!0;return!1};s.setTagContainer=function(b){var a,c,e;s.Ja=b;for(a=0;a<s._il.length;a++)if((c=s._il[a])&&c._c==\"s_l\"&&c.tagContainerName==b){s.Q(c);if(c.lmq)for(a=0;a<c.lmq.length;a++)e=c.lmq[a],s.loadModule(e.n);\r\nif(c.ml)for(e in c.ml)if(s[e])for(a in b=s[e],e=c.ml[e],e)if(!Object.prototype[a]&&(typeof e[a]!=\"function\"||(\"\"+e[a]).indexOf(\"s_c_il\")<0))b[a]=e[a];if(c.mmq)for(a=0;a<c.mmq.length;a++)e=c.mmq[a],s[e.m]&&(b=s[e.m],b[e.f]&&typeof b[e.f]==\"function\"&&(e.a?b[e.f].apply(b,e.a):b[e.f].apply(b)));if(c.tq)for(a=0;a<c.tq.length;a++)s.track(c.tq[a]);c.s=s;break}};s.Util={urlEncode:s.escape,urlDecode:s.unescape,cookieRead:s.cookieRead,cookieWrite:s.cookieWrite,getQueryParam:function(b,a,c){var e;a||(a=s.pageURL?\r\ns.pageURL:w.location);c||(c=\"&\");if(b&&a&&(a=\"\"+a,e=a.indexOf(\"?\"),e>=0&&(a=c+a.substring(e+1)+c,e=a.indexOf(c+b+\"=\"),e>=0&&(a=a.substring(e+c.length+b.length+1),e=a.indexOf(c),e>=0&&(a=a.substring(0,e)),a.length>0))))return s.unescape(a);return\"\"}};s.C=[\"timestamp\",\"dynamicVariablePrefix\",\"visitorID\",\"anonymousVisitorID\",\"globalVisitorID\",\"globalLocationHint\",\"fid\",\"vmk\",\"visitorMigrationKey\",\"visitorMigrationServer\",\"visitorMigrationServerSecure\",\"charSet\",\"visitorNamespace\",\"cookieDomainPeriods\",\r\n\"fpCookieDomainPeriods\",\"cookieLifetime\",\"pageName\",\"pageURL\",\"referrer\",\"contextData\",\"currencyCode\",\"lightProfileID\",\"lightStoreForSeconds\",\"lightIncrementBy\",\"retrieveLightProfiles\",\"deleteLightProfiles\",\"retrieveLightData\",\"pe\",\"pev1\",\"pev2\",\"pev3\",\"pageURLRest\"];s.e=s.C.concat([\"purchaseID\",\"variableProvider\",\"channel\",\"server\",\"pageType\",\"transactionID\",\"campaign\",\"state\",\"zip\",\"events\",\"events2\",\"products\",\"tnt\"]);s.ea=[\"timestamp\",\"charSet\",\"visitorNamespace\",\"cookieDomainPeriods\",\"cookieLifetime\",\r\n\"contextData\",\"lightProfileID\",\"lightStoreForSeconds\",\"lightIncrementBy\"];s.J=s.ea.slice(0);s.R=[\"account\",\"allAccounts\",\"debugTracking\",\"visitor\",\"trackOffline\",\"offlineLimit\",\"offlineThrottleDelay\",\"offlineFilename\",\"usePlugins\",\"doPlugins\",\"configURL\",\"visitorSampling\",\"s.visitorSamplingGroup\",\"linkObject\",\"linkURL\",\"linkName\",\"linkType\",\"trackDownloadLinks\",\"trackExternalLinks\",\"trackClickMap\",\"trackInlineStats\",\"linkLeaveQueryString\",\"linkTrackVars\",\"linkTrackEvents\",\"linkDownloadFileTypes\",\r\n\"linkExternalFilters\",\"linkInternalFilters\",\"useForcedLinkTracking\",\"forcedLinkTrackingTimeout\",\"trackingServer\",\"trackingServerSecure\",\"ssl\",\"abort\",\"mobile\",\"dc\",\"lightTrackVars\",\"maxDelay\"];for(g=0;g<=75;g++)s.e.push(\"prop\"+g),s.J.push(\"prop\"+g),s.e.push(\"eVar\"+g),s.J.push(\"eVar\"+g),g<6&&s.e.push(\"hier\"+g),g<4&&s.e.push(\"list\"+g);g=[\"resolution\",\"colorDepth\",\"javascriptVersion\",\"javaEnabled\",\"cookiesEnabled\",\"browserWidth\",\"browserHeight\",\"connectionType\",\"homepage\",\"plugins\"];s.e=s.e.concat(g);\r\ns.C=s.C.concat(g);s.ssl=w.location.protocol.toLowerCase().indexOf(\"https\")>=0;s.charSet=\"UTF-8\";s.contextData={};s.offlineThrottleDelay=0;s.offlineFilename=\"AppMeasurement.offline\";s.da=0;s.I=0;s.A=0;s.ca=0;s.linkDownloadFileTypes=\"exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx\";s.w=w;s.d=w.document;try{s.wa=navigator.appName==\"Microsoft Internet Explorer\"}catch(p){}s.D=function(){if(s.F)w.clearTimeout(s.F),s.F=null;s.i&&s.r&&s.i.dispatchEvent(s.r);if(s.l)if(typeof s.l==\"function\")s.l();\r\nelse if(s.i&&s.i.href)s.d.location=s.i.href;s.i=s.r=s.l=0};s.Ga=function(){s.b=s.d.body;if(s.b)if(s.k=function(b){var a,c,e,d,f;if(!(s.d&&s.d.getElementById(\"cppXYctnr\")||b&&b.Da)){if(s.S)if(s.useForcedLinkTracking)s.b.removeEventListener(\"click\",s.k,!1);else{s.b.removeEventListener(\"click\",s.k,!0);s.S=s.useForcedLinkTracking=0;return}else s.useForcedLinkTracking=0;s.j=b.srcElement?b.srcElement:b.target;try{if(s.j&&(s.j.tagName||s.j.parentElement||s.j.parentNode))if(e=s.Z(),s.track(),e<s.Z()&&s.useForcedLinkTracking&&\r\nb.target){for(d=b.target;d&&d!=s.b&&d.tagName.toUpperCase()!=\"A\"&&d.tagName.toUpperCase()!=\"AREA\";)d=d.parentNode;if(d&&(f=d.href,s.aa(f)||(f=0),c=d.target,b.target.dispatchEvent&&f&&(!c||c==\"_self\"||c==\"_top\"||c==\"_parent\"||w.name&&c==w.name))){try{a=s.d.createEvent(\"MouseEvents\")}catch(g){a=new w.MouseEvent}if(a){try{a.initMouseEvent(\"click\",b.bubbles,b.cancelable,b.view,b.detail,b.screenX,b.screenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget)}catch(j){a=\r\n0}if(a)a.Da=1,b.stopPropagation(),b.Ha&&b.Ha(),b.preventDefault(),s.i=b.target,s.r=a}}}}catch(k){}s.j=0}},s.b&&s.b.attachEvent)s.b.attachEvent(\"onclick\",s.k);else{if(s.b&&s.b.addEventListener){if(navigator&&(navigator.userAgent.indexOf(\"WebKit\")>=0&&s.d.createEvent||navigator.userAgent.indexOf(\"Firefox/2\")>=0&&w.MouseEvent))s.S=1,s.useForcedLinkTracking=1,s.b.addEventListener(\"click\",s.k,!0);s.b.addEventListener(\"click\",s.k,!1)}}else setTimeout(setupBody,30)};s.Ga()}", "function getVersion(){return _VERSION}", "InitVsaEngine() {\n\n }", "constructor() {\n this.systemLog = false\n this.appName = '@codedungeon/messenger'\n this.logToFile = false\n this.methods = [\n 'write',\n 'critical',\n 'lblCritical',\n 'danger',\n 'lblDanger',\n 'debug',\n 'error',\n 'lblError',\n 'important',\n 'lblImportant',\n 'info',\n 'lblInfo',\n 'log',\n 'note',\n 'notice',\n 'lblNotice',\n 'status',\n 'success',\n 'lblSuccess',\n 'warn',\n 'lblWarn',\n 'warning',\n 'lblWarning'\n ]\n }", "private internal function m248() {}", "function WebSocketRpcConnection()\n{\nvar self = this;\n\nvar isNodeJs = (typeof window === \"undefined\" ? true : false);\n\nvar lib = null;\nvar SpaceifyError = null;\nvar SpaceifyUtility = null;\nvar RpcCommunicator = null;\n//var SpaceifyLogger = null;\nvar WebSocketConnection = null;\n\nif (isNodeJs)\n\t{\n\tlib = \"/var/lib/spaceify/code/\";\n\n\tSpaceifyError = require(lib + \"spaceifyerror\");\n\t//SpaceifyLogger = require(lib + \"spaceifylogger\");\n\tSpaceifyUtility = require(lib + \"spaceifyutility\");\n\tRpcCommunicator = require(lib + \"rpccommunicator\");\n\tWebSocketConnection = require(lib + \"websocketconnection\");\n\t}\nelse\n\t{\n\tlib = (window.WEBPACK_MAIN_LIBRARY ? window.WEBPACK_MAIN_LIBRARY : window);\n\n\t//SpaceifyLogger = lib.SpaceifyLogger;\n\tSpaceifyError = lib.SpaceifyError;\n\tSpaceifyUtility = lib.SpaceifyUtility;\n\tRpcCommunicator = lib.RpcCommunicator;\n\tWebSocketConnection = lib.WebSocketConnection;\n\t}\n\nvar errorc = new SpaceifyError();\nvar utility = new SpaceifyUtility();\nvar communicator = new RpcCommunicator();\nvar connection = new WebSocketConnection();\n//var logger = new SpaceifyLogger(\"WebSocketRpcConnection\");\n\nself.connect = function(options, callback)\n\t{\n\tconnection.connect(options, function(err, data)\n\t\t{\n\t\tif(!err)\n\t\t\t{\n\t\t\tcommunicator.addConnection(connection);\n\n\t\t\tif(callback)\n\t\t\t\tcallback(null, true);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tif(callback)\n\t\t\t\tcallback(errorc.makeErrorObject(\"wsrpcc\", \"Failed to open WebsocketRpcConnection.\", \"WebSocketRpcConnection::connect\"), null);\n\t\t\t}\n\t\t});\n\t};\n\nself.close = function()\n\t{\n\t};\n\nself.getCommunicator = function()\n\t{\n\treturn communicator;\n\t};\n\nself.getConnection = function()\n\t{\n\treturn connection;\n\t};\n\n// Inherited methods\nself.getIsOpen = function()\n\t{\n\treturn connection.getIsOpen();\n\t}\n\nself.getIsSecure = function()\n\t{\n\treturn connection.getIsSecure();\n\t}\n\nself.getPort = function()\n\t{\n\treturn connection.getPort();\n\t}\n\nself.getId = function()\n\t{\n\treturn connection.getId();\n\t}\n\nself.connectionExists = function(connectionId)\n\t{\n\treturn communicator.connectionExists(connectionId);\n\t}\n\nself.exposeRpcMethod = function(name, object, method)\n\t{\n\tcommunicator.exposeRpcMethod(name, object, method);\n\t}\n\nself.exposeRpcMethodSync = function(name, object, method)\n\t{\n\tcommunicator.exposeRpcMethodSync(name, object, method);\n\t}\n\nself.callRpc = function(method, params, object, listener)\n\t{\n\treturn communicator.callRpc(method, params, object, listener, connection.getId());\n\t}\n\n// External event listeners\nself.setConnectionListener = function(listener)\n\t{\n\tcommunicator.setConnectionListener(listener);\n\t};\n\nself.setDisconnectionListener = function(listener)\n\t{\n\tcommunicator.setDisconnectionListener(listener);\n\t};\n\n}", "heartbeat () {\n }", "function _____SHARED_functions_____(){}", "onShareAppMessage() {\n\n }", "function getString(key, params) {\n var result = WEB_PLATFORM.getString(\"org_opensds_storage_devices\", key, params);\n if(result == null){\n return key;\n }else{\n return result;\n }\n }", "componentDidMount(){\n console.info(this.constructor.name+ 'Component mount process finished');\n }", "onMessage() {}", "onMessage() {}", "requestThumbnails() {\n let position = this.state.position;\n let ed = this.state.ed;\n let ts = position == 'start' ? ed.start : ed.end;\n\n this.props.socket.emit('frameSelect',{ ts: ts } );\n }", "static get tag(){return\"hal-9000\"}", "constructor(t){const e={...t};this.connectionState=new h,this.server=\"https://hub-server-2.heatgenius.co.uk\",this.username=\"\",this.signature=\"\",this.auth={header:{}},this.lastQueryTime=null,this._axios=i.a.create({}),this.logger=e.logger?e.logger:console,this.debug=!!e.debug&&e.debug}", "started() {\r\n\r\n\t}", "get EXTERNAL_API() {\n return ['setUsageMode',\n 'setBackupMode',\n 'setLocationMode',\n 'setUsageOptinHidden',\n ];\n }", "getVideoDataBuffer() {\n return this.videoDataBuffer;\n }", "addTPKLayer(){\n //<editor-fold desc=\"old code to eliminate\">\n /* if (typeof local == 'undefined') {\n\n //todo: maybe based on this url we could decide if taking the tpk from File API or form URL\n var xhrRequest = new XMLHttpRequest();\n var _this = this;\n xhrRequest.open(\"GET\", url, true);\n xhrRequest.responseType = \"blob\";\n xhrRequest.onprogress = function(evt){\n var percent = 0;\n if(/!*evt.hasOwnProperty(\"total\")*!/typeof evt[\"total\"] !== 'undefined'){\n percent = (parseFloat(evt.loaded / evt.total) * 100).toFixed(0);\n }\n else{\n percent = (parseFloat(evt.loaded / evt.totalSize) * 100).toFixed(0);\n }\n\n console.log(\"Get file via url \" + percent + \"%\");\n console.log(\"Begin downloading remote tpk file...\");\n };\n\n xhrRequest.error = function(err){\n console.log(\"ERROR retrieving TPK file: \" + err.toString());\n alert(\"There was a problem retrieve the file.\");\n };\n var __this = _this;\n xhrRequest.onload = function(oEvent) {\n if(this.status === 200) {\n console.log(\"Remote tpk download finished.\" + oEvent);\n __this.zipParser(this.response);\n }\n else{\n alert(\"There was a problem loading the file. \" + this.status + \": \" + this.statusText );\n }\n };\n xhrRequest.send();\n }\n*/\n //</editor-fold>\n if (this.get('ermesCordova').isNative()){\n\n var basemapName = this.get('parcels').get('basemapName');\n var store = cordova.file.dataDirectory;\n var fileName = basemapName;\n this.set(\"loading\", true);\n this.getBaseMapZip (store, fileName).then((binary)=>{\n if (binary!== null) {\n this.zipParser(binary);\n }\n else {\n Ember.debug(\"getBaseMapZip: error loading the zip file\");\n }\n });\n }\n\n }", "private public function m246() {}", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "async onReady() {\n try {\n // Initialize your adapter here\n //Logging of adapter start\n this.log.info('start fb-checkpresence: ip-address: \"' + this.config.ipaddress + '\" - interval devices: ' + this.config.interval + ' Min.' + ' - interval members: ' + this.config.intervalFamily + ' s');\n this.log.debug('configuration user: <' + this.config.username + '>');\n this.log.debug('configuration history: <' + this.config.history + '>');\n this.log.debug('configuration dateformat: <' + this.config.dateformat + '>');\n this.log.debug('configuration familymembers: ' + JSON.stringify(this.config.familymembers));\n this.log.debug('configuration fb-devices ' + this.config.fbdevices);\n this.log.debug('configuratuion mesh info: ' + this.config.meshinfo); \n\n //decrypt fritzbox password\n const sysObj = await this.getForeignObjectAsync('system.config');\n if (sysObj && sysObj.native && sysObj.native.secret) {\n this.config.password = this.decrypt(sysObj.native.secret, this.config.password);\n } else {\n this.config.password = this.decrypt('SdoeQ85NTrg1B0FtEyzf', this.config.password);\n }\n\n //Configuration changes if needed\n let adapterObj = (await this.getForeignObjectAsync(`system.adapter.${this.namespace}`));\n let adapterObjChanged = false; //for changes\n \n //if interval <= 0 than set to 1\n if (this.config.interval <= 0) {\n adapterObj.native.interval = 1;\n adapterObjChanged = true;\n this.config.interval = 1;\n this.log.warn('interval is less than 1. Set to 1 Min.');\n }\n\n //if interval <= 0 than set to 1\n if (this.config.intervalFamily <= 9) {\n adapterObj.native.intervalFamily = 10;\n adapterObjChanged = true;\n this.config.intervalFamily = 10;\n this.log.warn('interval is less than 10. Set to 10s.');\n }\n\n //create new configuration items -> workaround for older versions\n for(let i=0;i<this.config.familymembers.length;i++){\n if (this.config.familymembers[i].useip == undefined) {\n adapterObj.native.familymembers[i].useip = false;\n adapterObj.native.familymembers[i].ipaddress = '';\n adapterObjChanged = true;\n }\n }\n\n if (adapterObjChanged === true){ //Save changes\n await this.setForeignObjectAsync(`system.adapter.${this.namespace}`, adapterObj);\n }\n\n const cfg = {\n ip: this.config.ipaddress,\n port: '49000',\n iv: this.config.interval,\n history: this.config.history,\n dateFormat: this.config.dateformat,\n uid: this.config.username,\n pwd: this.config.password,\n members: this.config.familymembers,\n wl: this.config.whitelist\n };\n \n const cron = cfg.iv * 60;\n const cronFamily = this.config.intervalFamily;\n \n const devInfo = {\n host: this.config.ipaddress,\n port: '49000',\n sslPort: null,\n uid: this.config.username,\n pwd: this.config.password\n };\n\n this.Fb = await fb.Fb.init(devInfo, this);\n if(this.Fb.services === null) {\n this.log.error('Can not get services! Adapter stops');\n this.stopAdapter();\n }\n\n //Check if services/actions are supported\n this.GETPATH = await this.Fb.chkService('X_AVM-DE_GetHostListPath', 'Hosts1', 'X_AVM-DE_GetHostListPath');\n this.GETMESHPATH = await this.Fb.chkService('X_AVM-DE_GetMeshListPath', 'Hosts1', 'X_AVM-DE_GetMeshListPath');\n this.GETBYMAC = await this.Fb.chkService('GetSpecificHostEntry', 'Hosts1', 'GetSpecificHostEntry');\n this.GETBYIP = await this.Fb.chkService('X_AVM-DE_GetSpecificHostEntryByIP', 'Hosts1', 'X_AVM-DE_GetSpecificHostEntryByIP');\n this.GETPORT = await this.Fb.chkService('GetSecurityPort', 'DeviceInfo1', 'GetSecurityPort');\n this.GETEXTIP = await this.Fb.chkService('GetInfo', 'WANPPPConnection1', 'GetInfo');\n if ( this.GETEXTIP == false) this.GETEXTIP = await this.Fb.chkService('GetInfo', 'WANIPConnection1', 'GetInfo');\n this.SETENABLE = await this.Fb.chkService('SetEnable', 'WLANConfiguration3', 'SetEnable');\n this.WLAN3INFO = await this.Fb.chkService('GetInfo', 'WLANConfiguration3', 'WLANConfiguration3-GetInfo');\n this.DEVINFO = await this.Fb.chkService('GetInfo', 'DeviceInfo1', 'DeviceInfo1-GetInfo');\n this.DISALLOWWANACCESSBYIP = await this.Fb.chkService('DisallowWANAccessByIP', 'X_AVM-DE_HostFilter', 'DisallowWANAccessByIP');\n this.GETWANACCESSBYIP = await this.Fb.chkService('GetWANAccessByIP', 'X_AVM-DE_HostFilter', 'GetWANAccessByIP');\n this.REBOOT = await this.Fb.chkService('Reboot', 'DeviceConfig1', 'Reboot');\n \n //const test = await Fb.soapAction(Fb, '/upnp/control/deviceconfig', 'urn:dslforum-org:service:DeviceConfig:1', 'X_AVM-DE_CreateUrlSID', null);\n\n //Create global objects\n await obj.createGlobalObjects(this, this.HTML+this.HTML_END, this.HTML_GUEST+this.HTML_END, this.enabled);\n await obj.createMemberObjects(this, cfg, this.HTML_HISTORY + this.HTML_END, this.enabled);\n\n //create Fb devices\n if (this.GETPATH != null && this.GETPATH == true && this.config.fbdevices == true){\n const items = await this.Fb.getDeviceList(this, cfg, this.Fb);\n if (items != null){\n let res = await obj.createFbDeviceObjects(this, items, this.enabled);\n if (res === true) this.log.info('createFbDeviceObjects finished successfully');\n res = await obj.createMeshObjects(this, items, 0, this.enabled); //create channel 0 as default interface\n if (res === true) this.log.info('createMeshObjects finished successfully');\n }else{\n this.log.error('createFbDeviceObjects -> ' + \"can't read devices from fritzbox! Adapter stops\");\n adapterObj = await this.getForeignObjectAsync(`system.adapter.${this.namespace}`);\n adapterObj.common.enabled = false; // Adapter ausschalten\n await this.setForeignObjectAsync(`system.adapter.${this.namespace}`, adapterObj);\n }\n await this.resyncFbObjects(items);\n }\n\n // states changes inside the adapters namespace are subscribed\n if (this.SETENABLE === true && this.WLAN3INFO === true) this.subscribeStates(`${this.namespace}` + '.guest.wlan');\n if (this.DISALLOWWANACCESSBYIP === true && this.GETWANACCESSBYIP === true) this.subscribeStates(`${this.namespace}` + '.fb-devices.*.disabled'); \n if (this.REBOOT === true) this.subscribeStates(`${this.namespace}` + '.reboot'); \n\n //get uuid for transaction\n //const sSid = await Fb.soapAction(Fb, '/upnp/control/deviceconfig', urn + 'DeviceConfig:1', 'X_GenerateUUID', null);\n //const uuid = sSid['NewUUID'].replace('uuid:', '');\n this.loop(10, 55, cronFamily, cron, cfg);\n } catch (error) {\n this.showError('onReady: ' + error);\n }\n }", "async onReady() {\n // Initialize your adapter here\n\n this.setState(\"info.connection\", false, true);\n // Reset the connection indicator during startup\n this.type = \"VW\";\n this.country = \"DE\";\n this.clientId = \"9496332b-ea03-4091-a224-8c746b885068%40apps_vw-dilab_com\";\n this.xclientId = \"38761134-34d0-41f3-9a73-c4be88d7d337\";\n this.scope = \"openid%20profile%20mbb%20email%20cars%20birthdate%20badge%20address%20vin\";\n this.redirect = \"carnet%3A%2F%2Fidentity-kit%2Flogin\";\n this.xrequest = \"de.volkswagen.carnet.eu.eremote\";\n this.responseType = \"id_token%20token%20code\";\n this.xappversion = \"5.1.2\";\n this.xappname = \"eRemote\";\n if (this.config.type === \"id\") {\n this.type = \"Id\";\n this.country = \"DE\";\n this.clientId = \"a24fba63-34b3-4d43-b181-942111e6bda8@apps_vw-dilab_com\";\n this.xclientId = \"\";\n this.scope = \"openid profile badge cars dealers birthdate vin\";\n this.redirect = \"weconnect://authenticated\";\n this.xrequest = \"com.volkswagen.weconnect\";\n this.responseType = \"code id_token token\";\n this.xappversion = \"\";\n this.xappname = \"\";\n }\n if (this.config.type === \"skoda\") {\n this.type = \"Skoda\";\n this.country = \"CZ\";\n this.clientId = \"7f045eee-7003-4379-9968-9355ed2adb06%40apps_vw-dilab_com\";\n this.xclientId = \"28cd30c6-dee7-4529-a0e6-b1e07ff90b79\";\n this.scope = \"openid%20profile%20phone%20address%20cars%20email%20birthdate%20badge%20dealers%20driversLicense%20mbb\";\n this.redirect = \"skodaconnect%3A%2F%2Foidc.login%2F\";\n this.xrequest = \"cz.skodaauto.connect\";\n this.responseType = \"code%20id_token\";\n this.xappversion = \"3.2.6\";\n this.xappname = \"cz.skodaauto.connect\";\n }\n if (this.config.type === \"seat\") {\n this.type = \"Seat\";\n this.country = \"ES\";\n this.clientId = \"50f215ac-4444-4230-9fb1-fe15cd1a9bcc@apps_vw-dilab_com\";\n this.xclientId = \"9dcc70f0-8e79-423a-a3fa-4065d99088b4\";\n this.scope = \"openid profile mbb cars birthdate nickname address phone\";\n this.redirect = \"seatconnect://identity-kit/login\";\n this.xrequest = \"cz.skodaauto.connect\";\n this.responseType = \"code%20id_token\";\n this.xappversion = \"1.1.29\";\n this.xappname = \"SEATConnect\";\n }\n if (this.config.type === \"audi\") {\n this.type = \"Audi\";\n this.country = \"DE\";\n this.clientId = \"09b6cbec-cd19-4589-82fd-363dfa8c24da@apps_vw-dilab_com\";\n this.xclientId = \"77869e21-e30a-4a92-b016-48ab7d3db1d8\";\n this.scope = \"address profile badge birthdate birthplace nationalIdentifier nationality profession email vin phone nickname name picture mbb gallery openid\";\n this.redirect = \"myaudi:///\";\n this.xrequest = \"de.myaudi.mobile.assistant\";\n this.responseType = \"token%20id_token\";\n // this.responseType = \"code\";\n this.xappversion = \"3.22.0\";\n this.xappname = \"myAudi\";\n }\n if (this.config.type === \"go\") {\n this.type = \"\";\n this.country = \"\";\n this.clientId = \"ac42b0fa-3b11-48a0-a941-43a399e7ef84@apps_vw-dilab_com\";\n this.xclientId = \"\";\n this.scope = \"openid%20profile%20address%20email%20phone\";\n this.redirect = \"vwconnect%3A%2F%2Fde.volkswagen.vwconnect%2Foauth2redirect%2Fidentitykit\";\n this.xrequest = \"\";\n this.responseType = \"code\";\n this.xappversion = \"\";\n this.xappname = \"\";\n }\n if (this.config.interval === 0) {\n this.log.info(\"Interval of 0 is not allowed reset to 1\");\n this.config.interval = 1;\n }\n this.login()\n .then(() => {\n this.log.debug(\"Login successful\");\n this.setState(\"info.connection\", true, true);\n this.getPersonalData()\n .then(() => {\n this.getVehicles()\n .then(() => {\n if (this.config.type !== \"go\") {\n this.vinArray.forEach((vin) => {\n if (this.config.type === \"id\") {\n this.getIdStatus(vin).catch(() => {\n this.log.error(\"get id status Failed\");\n });\n } else {\n this.getHomeRegion(vin)\n .catch(() => {\n this.log.debug(\"get home region Failed\");\n })\n .finally(() => {\n this.getVehicleData(vin).catch(() => {\n this.log.error(\"get vehicle data Failed\");\n });\n this.getVehicleRights(vin).catch(() => {\n this.log.error(\"get vehicle rights Failed\");\n });\n this.requestStatusUpdate(vin)\n .finally(() => {\n this.statesArray.forEach((state) => {\n this.getVehicleStatus(vin, state.url, state.path, state.element, state.element2, state.element3, state.element4).catch(() => {\n this.log.debug(\"error while getting \" + state.url);\n });\n });\n })\n .catch(() => {\n this.log.error(\"status update Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"Error getting home region\");\n });\n }\n });\n }\n\n this.updateInterval = setInterval(() => {\n if (this.config.type === \"go\") {\n this.getVehicles();\n return;\n } else if (this.config.type === \"id\") {\n this.vinArray.forEach((vin) => {\n this.getIdStatus(vin).catch(() => {\n this.log.error(\"get id status Failed\");\n this.refreshIDToken().catch(() => {});\n });\n this.getWcData();\n });\n return;\n } else {\n this.vinArray.forEach((vin) => {\n this.statesArray.forEach((state) => {\n this.getVehicleStatus(vin, state.url, state.path, state.element, state.element2).catch(() => {\n this.log.debug(\"error while getting \" + state.url);\n });\n });\n });\n }\n }, this.config.interval * 60 * 1000);\n\n if (this.config.forceinterval > 0) {\n this.fupdateInterval = setInterval(() => {\n if (this.config.type === \"go\") {\n this.getVehicles();\n return;\n }\n this.vinArray.forEach((vin) => {\n this.requestStatusUpdate(vin).catch(() => {\n this.log.error(\"force status update Failed\");\n });\n });\n }, this.config.forceinterval * 60 * 1000);\n }\n })\n .catch(() => {\n this.log.error(\"Get Vehicles Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"get personal data Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"Login Failed\");\n });\n this.subscribeStates(\"*\");\n }", "started () {}", "_specializedInitialisation()\r\n\t{\r\n\t\tLogger.log(\"Specialisation for service AVTransport\", LogType.Info);\r\n\t\tvar relativeTime = this.getVariableByName(\"RelativeTimePosition\");\r\n\t\t//Implémentation pour OpenHome\r\n\t\tif (!relativeTime)\r\n\t\t\trelativeTime = this.getVariableByName(\"A_ARG_TYPE_GetPositionInfo_RelTime\");\r\n\t\tvar transportState = this.getVariableByName(\"TransportState\");\r\n\t\t//Implémentation pour OpenHome\r\n\t\tif (!transportState)\r\n\t\t\ttransportState = this.getVariableByName(\"A_ARG_TYPE_GetTransportInfo_CurrentTransportState\");\r\n\r\n\t\tif (transportState)\r\n\t\t{\r\n\t\t\ttransportState.on('updated', (variable, newVal) =>\r\n\t\t\t{\r\n\t\t\t\tLogger.log(\"On transportStateUpdate : \" + newVal, LogType.DEBUG);\r\n\t\t\t\tvar actPosInfo = this.getActionByName(\"GetPositionInfo\");\r\n\t\t\t\tvar actMediaInfo = this.getActionByName(\"GetMediaInfo\");\r\n\t\t\t\t/*\r\n\t\t\t\t“STOPPED” R\r\n\t\t\t\t“PLAYING” R\r\n\t\t\t\t“TRANSITIONING” O\r\n\t\t\t\t”PAUSED_PLAYBACK” O\r\n\t\t\t\t“PAUSED_RECORDING” O\r\n\t\t\t\t“RECORDING” O\r\n\t\t\t\t“NO_MEDIA_PRESENT”\r\n\t\t\t\t */\r\n\t\t\t\tif (relativeTime && !relativeTime.SendEvent && actPosInfo)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (this._intervalUpdateRelativeTime)\r\n\t\t\t\t\t\tclearInterval(this._intervalUpdateRelativeTime);\r\n\t\t\t\t\tif (newVal == \"PLAYING\" || newVal == \"RECORDING\")\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t} );\r\n\t\t\t\t\t\t//Déclenche la maj toutes les 4 secondes\r\n\t\t\t\t\t\tthis._intervalUpdateRelativeTime = setInterval(() =>{\r\n\t\t\t\t\t\t\t\t//Logger.log(\"On autoUpdate\", LogType.DEBUG);\r\n\t\t\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t}\t);\r\n\t\t\t\t\t\t\t}, 4000);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//else if (newVal == \"STOPPED\" || newVal == \"PAUSED_PLAYBACK\" || newVal == \"PAUSED_RECORDING\" || newVal == \"NO_MEDIA_PRESENT\")\r\n\t\t\t\t//{\r\n\t\t\t\t//\r\n\t\t\t\t//}\r\n\t\t\t\t//On met a jour les media info et position info pour etre sur de mettre a jour les Metadata(par defaut la freebox ne le fait pas ou plutot le fait mal)\r\n\t\t\t\tif (newVal == \"TRANSITIONING\")\r\n\t\t\t\t{\r\n\t\t\t\t\tif (actPosInfo)\r\n\t\t\t\t\t\tactPosInfo.execute(\t{InstanceID: 0}\t);\r\n\t\t\t\t\tif (actMediaInfo)\r\n\t\t\t\t\t\tactMediaInfo.execute(\t{InstanceID: 0} );\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (newVal == \"STOPPED\")\r\n\t\t\t\t{\r\n\t\t\t\t\tif (actPosInfo)\r\n\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t});\r\n\t\t\t\t\tif (actMediaInfo)\r\n\t\t\t\t\t\tactMediaInfo.execute(\t{\tInstanceID: 0 });\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}", "loadComponent(nodeURI, baseURI, callback_async /* nodeDescriptor */, errback_async /* errorMessage */) { // TODO: turn this into a generic xhr loader exposed as a kernel function?\n\n let self = this;\n\n if (nodeURI == self.kutility.protoNodeURI) {\n\n callback_async(self.kutility.protoNodeDescriptor);\n\n } else if (nodeURI.match(RegExp(\"^data:application/json;base64,\"))) {\n\n // Primarly for testing, parse one specific form of data URIs. We need to parse\n // these ourselves since Chrome can't load data URIs due to cross origin\n // restrictions.\n\n callback_async(JSON.parse(atob(nodeURI.substring(29)))); // TODO: support all data URIs\n\n } else {\n\n self.virtualTime.suspend(\"while loading \" + nodeURI); // suspend the queue\n\n let fetchUrl = self.remappedURI(nodeURI, baseURI);\n let dbName = fetchUrl.split(\".\").join(\"_\");\n\n const parseComp = function (f) {\n\n let result = JSON.parse(f);\n\n let nativeObject = result;\n // console.log(nativeObject);\n\n if (nativeObject) {\n callback_async(nativeObject);\n self.virtualTime.resume(\"after loading \" + nodeURI); // resume the queue; may invoke dispatch(), so call last before returning to the host\n\n } else {\n\n self.logger.warnx(\"loadComponent\", \"error loading\", nodeURI + \":\", error);\n errback_async(error);\n self.virtualTime.resume(\"after loading \" + nodeURI); // resume the queue; may invoke dispatch(), so call last before returning to the host\n }\n\n }\n\n\n //var fileName = \"\";\n // let userDB = _LCSDB.user(_LCS_WORLD_USER.pub); \n if (dbName.includes(\"proxy\")) {\n //userDB = await window._LCS_SYS_USER.get('proxy').then();\n let proxyDB = self.proxy ? _LCSDB.user(self.proxy) : _LCSDB.user(_LCS_WORLD_USER.pub);\n let fileName = dbName + '_json';\n let dbNode = proxyDB.get('proxy').get(fileName);\n let nodeProm = new Promise(res => dbNode.once(res));\n\n nodeProm.then(comp => {\n parseComp(comp);\n })\n\n // (function(r){\n // //console.log(r);\n // parseComp(r);\n\n // });\n\n } else {\n var worldName = dbName.split('/')[1];\n var fileName = dbName.split('/')[2];\n //+ '_json';\n\n if (!fileName) {\n worldName = self.helpers.appPath\n fileName = dbName + '_json';\n } else {\n fileName = fileName + '_json';\n }\n\n let dbNode = _LCSDB.user(_LCS_WORLD_USER.pub).get('worlds').path(worldName).get(fileName);\n\n let nodeProm = new Promise(res => dbNode.once(res))\n nodeProm.then(comp => {\n parseComp(comp);\n })\n\n // (function(r){\n // //console.log(r);\n // parseComp(r);\n\n // });\n }\n\n //console.log(source);\n\n //userDB.get(fileName).once(async function(res) {\n\n\n\n\n // }, {wait: 1000})\n }\n\n }", "async onReady() {\n // Initialize your adapter here\n await this.setObjectNotExistsAsync('speed', {\n type: 'channel',\n common: {\n name: 'speed'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.download', {\n type: 'state',\n common: {\n name: 'download',\n role: 'info.status',\n type: 'number',\n desc: 'Download speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.upload', {\n type: 'state',\n common: {\n name: 'upload',\n role: 'info.status',\n type: 'number',\n desc: 'Upload speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.ping', {\n type: 'state',\n common: {\n name: 'ping',\n role: 'info.status',\n type: 'number',\n desc: 'Ping Latency',\n def: 0,\n read: true,\n write: false,\n unit: 'ms',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.progress', {\n type: 'state',\n common: {\n name: 'progress',\n role: 'info.status',\n type: 'number',\n desc: 'Progress',\n def: 0,\n read: true,\n write: false,\n unit: '%',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.speedcheck', {\n type: 'state',\n common: {\n name: 'Run speed test',\n type: 'boolean',\n read: true,\n role: 'button',\n write: true,\n def: false\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress', {\n type: 'channel',\n common: {\n name: 'speed'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.download', {\n type: 'state',\n common: {\n name: 'download',\n role: 'info.status',\n type: 'number',\n desc: 'Download speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.upload', {\n type: 'state',\n common: {\n name: 'upload',\n role: 'info.status',\n type: 'number',\n desc: 'Upload speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.ping', {\n type: 'state',\n common: {\n name: 'ping',\n role: 'info.status',\n type: 'number',\n desc: 'Ping Latency',\n def: 0,\n read: true,\n write: false,\n unit: 'ms',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.progress', {\n type: 'state',\n common: {\n name: 'progress',\n role: 'info.status',\n type: 'number',\n desc: 'Progress',\n def: 0,\n read: true,\n write: false,\n unit: '%',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.speedcheck', {\n type: 'state',\n common: {\n name: 'Run speed test',\n type: 'boolean',\n read: true,\n role: 'button',\n write: true,\n def: false\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info', {\n type: 'channel',\n common: {\n name: 'Information'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info.externalip', {\n type: 'state',\n common: {\n name: 'External IP',\n role: 'info.status',\n type: 'string',\n desc: 'External IP',\n read: true,\n write: false,\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info.internalip', {\n type: 'state',\n common: {\n name: 'Internal IP',\n role: 'info.status',\n type: 'string',\n desc: 'Internal IP',\n read: true,\n write: false,\n },\n native: {},\n });\n this.subscribeStates('*');\n await this.setStateAsync('info.connection', { val: true, ack: true });\n // let result = await this.checkPasswordAsync('admin', 'iobroker');\n // this.log.info('check user admin pw iobroker: ' + result);\n // result = await this.checkGroupAsync('admin', 'admin');\n // this.log.info('check group user admin group admin: ' + result);\n if (this.config.polltime > 1) {\n this.log.info('Checking internet speed every ' + this.config.polltime + ' minutes');\n } else {\n this.log.info('Checking internet speed every ' + this.config.polltime + ' minute');\n }\n await this.start(this.config.polltime);\n }", "enqueue() {\n\n }", "started() { }", "onBrowserStart(browser) {\n\n }", "getPort2() {\n return 0;\n }", "requestReceived(request,response){\n if(this.config.log){\n const logData={\n method : request.method,\n url : request.url,\n headers : request.headers\n };\n\n this.config.logFunction(\n logData\n );\n }\n\n let uri = url.parse(request.url);\n uri.protocol='http';\n uri.host=uri.hostname=request.headers.host;\n uri.port=80;\n uri.query=querystring.parse(uri.query);\n\n if(request.connection.encrypted){\n uri.protocol='https';\n uri.port=443;\n }\n\n (\n function(){\n if(!uri.host){\n return;\n }\n const host=uri.host.split(':');\n\n if(!host[1]){\n return;\n }\n uri.host=uri.hostname=host[0];\n uri.port=host[1];\n }\n )();\n\n for(let key in uri){\n if(uri[key]!==null){\n continue;\n }\n uri[key]='';\n }\n\n request.uri=uri;\n\n if(\n this.onRawRequest(\n request,\n response,\n completeServing.bind(this)\n )\n ){\n return;\n };\n\n uri=uri.pathname;\n\n if (uri=='/'){\n uri=`/${this.config.server.index}`;\n }\n\n let hostname= [];\n\n if (request.headers.host !== undefined){\n hostname = request.headers.host.split(':');\n }\n\n let root = this.config.root;\n\n if(this.config.verbose){\n console.log(`${this.config.logID} REQUEST ###\\n\\n`,\n request.headers,'\\n',\n uri,'\\n\\n',\n hostname,'\\n\\n'\n );\n }\n\n if(this.config.domain!='0.0.0.0' && hostname.length > 0 && hostname[0]!=this.config.domain){\n if(!this.config.domains[hostname[0]]){\n if(this.config.verbose){\n console.log(`${this.config.logID} INVALID HOST ###\\n\\n`);\n }\n this.serveFile(hostname[0],false,response);\n return;\n }\n root=this.config.domains[hostname[0]];\n }\n\n\n if(this.config.verbose){\n console.log(`${this.config.logID} USING ROOT : ${root}###\\n\\n`);\n }\n\n if(uri.slice(-1)=='/'){\n uri+=this.config.server.index;\n }\n\n request.url=uri;\n request.serverRoot=root;\n\n request.body='';\n\n request.on(\n 'data',\n function(chunk){\n request.body+=chunk;\n }.bind(this)\n ).on(\n 'end',\n function(){\n if(this.config.verbose){\n console.log(`###REQUEST BODY :\n ${request.body}\n ###\n `);\n }\n\n requestBodyComplete.bind(this,request,response)();\n }.bind(this)\n );\n }", "function OnChannelOpen()\n{\n}", "connect() {\n throw new Error(\n 'The Message Bus is not currently supported in browser environments'\n );\n }", "constructor() {\n throw new Error('Not implemented');\n }", "constructor() {\n this._connectionResolver = new pip_services3_components_node_1.ConnectionResolver();\n this._maxKeySize = 250;\n this._maxExpiration = 2592000;\n this._maxValue = 1048576;\n this._poolSize = 5;\n this._reconnect = 10000;\n this._timeout = 5000;\n this._retries = 5;\n this._failures = 5;\n this._retry = 30000;\n this._remove = false;\n this._idle = 5000;\n this._client = null;\n }", "componentDidMount()\n {\n\n }", "function OfflineStreamProcessor(config) {\n config = config || {};\n var context = this.context;\n var eventBus = config.eventBus;\n var events = config.events;\n var errors = config.errors;\n var debug = config.debug;\n var constants = config.constants;\n var settings = config.settings;\n var dashConstants = config.dashConstants;\n var manifestId = config.id;\n var type = config.type;\n var streamInfo = config.streamInfo;\n var errHandler = config.errHandler;\n var mediaPlayerModel = config.mediaPlayerModel;\n var abrController = config.abrController;\n var playbackController = config.playbackController;\n var adapter = config.adapter;\n var dashMetrics = config.dashMetrics;\n var baseURLController = config.baseURLController;\n var timelineConverter = config.timelineConverter;\n var bitrate = config.bitrate;\n var offlineStoreController = config.offlineStoreController;\n var completedCb = config.callbacks && config.callbacks.completed;\n var progressCb = config.callbacks && config.callbacks.progression;\n var instance, logger, mediaInfo, indexHandler, representationController, fragmentModel, updating, downloadedSegments, isInitialized, segmentsController, isStopped;\n\n function setup() {\n resetInitialSettings();\n logger = debug.getLogger(instance);\n segmentsController = Object(_dash_controllers_SegmentsController__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(context).create({\n events: events,\n eventBus: eventBus,\n streamInfo: streamInfo,\n timelineConverter: timelineConverter,\n dashConstants: dashConstants,\n segmentBaseController: config.segmentBaseController,\n type: type\n });\n indexHandler = Object(_dash_DashHandler__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(context).create({\n streamInfo: streamInfo,\n type: type,\n timelineConverter: timelineConverter,\n dashMetrics: dashMetrics,\n mediaPlayerModel: mediaPlayerModel,\n baseURLController: baseURLController,\n errHandler: errHandler,\n settings: settings,\n // boxParser: boxParser,\n eventBus: eventBus,\n events: events,\n debug: debug,\n requestModifier: Object(_streaming_utils_RequestModifier__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(context).getInstance(),\n dashConstants: dashConstants,\n constants: constants,\n segmentsController: segmentsController,\n urlUtils: Object(_streaming_utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(context).getInstance()\n });\n representationController = Object(_dash_controllers_RepresentationController__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(context).create({\n streamInfo: streamInfo,\n type: type,\n abrController: abrController,\n dashMetrics: dashMetrics,\n playbackController: playbackController,\n timelineConverter: timelineConverter,\n dashConstants: dashConstants,\n events: events,\n eventBus: eventBus,\n errors: errors,\n segmentsController: segmentsController\n });\n fragmentModel = Object(_streaming_models_FragmentModel__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(context).create({\n streamInfo: streamInfo,\n dashMetrics: dashMetrics,\n fragmentLoader: Object(_streaming_FragmentLoader__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(context).create({\n dashMetrics: dashMetrics,\n mediaPlayerModel: mediaPlayerModel,\n errHandler: errHandler,\n requestModifier: Object(_streaming_utils_RequestModifier__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(context).getInstance(),\n settings: settings,\n eventBus: eventBus,\n events: events,\n errors: errors,\n constants: constants,\n dashConstants: dashConstants,\n urlUtils: Object(_streaming_utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(context).getInstance()\n }),\n debug: debug,\n eventBus: eventBus,\n events: events\n });\n eventBus.on(events.STREAM_REQUESTING_COMPLETED, onStreamRequestingCompleted, instance);\n eventBus.on(events.FRAGMENT_LOADING_COMPLETED, onFragmentLoadingCompleted, instance);\n }\n\n function initialize(_mediaInfo) {\n mediaInfo = _mediaInfo;\n indexHandler.initialize(false);\n updateRepresentation(mediaInfo);\n }\n\n function isInitRequest(request) {\n return request.type === 'InitializationSegment';\n }\n\n function onFragmentLoadingCompleted(e) {\n if (e.sender !== fragmentModel) {\n return;\n }\n\n if (e.request !== null) {\n var isInit = isInitRequest(e.request);\n var suffix = isInit ? 'init' : e.request.index;\n var fragmentName = e.request.representationId + '_' + suffix;\n offlineStoreController.storeFragment(manifestId, fragmentName, e.response).then(function () {\n if (!isInit) {\n // store current index and downloadedSegments number\n offlineStoreController.setRepresentationCurrentState(manifestId, e.request.representationId, {\n index: e.request.index,\n downloaded: downloadedSegments\n });\n }\n });\n }\n\n if (e.error && e.request.serviceLocation && !isStopped) {\n fragmentModel.executeRequest(e.request);\n } else {\n downloadedSegments++;\n download();\n }\n }\n\n function onStreamRequestingCompleted(e) {\n if (e.fragmentModel !== fragmentModel) {\n return;\n }\n\n logger.info(\"[\".concat(manifestId, \"] Stream is complete\"));\n stop();\n completedCb();\n }\n\n function getRepresentationController() {\n return representationController;\n }\n\n function getRepresentationId() {\n return representationController.getCurrentRepresentation().id;\n }\n /**\n * Stops download of fragments\n * @memberof OfflineStreamProcessor#\n */\n\n\n function stop() {\n if (isStopped) {\n return;\n }\n\n isStopped = true;\n }\n\n function removeExecutedRequestsBeforeTime(time) {\n if (fragmentModel) {\n fragmentModel.removeExecutedRequestsBeforeTime(time);\n }\n }\n /**\n * Execute init request for the represenation\n * @memberof OfflineStreamProcessor#\n */\n\n\n function getInitRequest() {\n if (!representationController.getCurrentRepresentation()) {\n return null;\n }\n\n return indexHandler.getInitRequest(getMediaInfo(), representationController.getCurrentRepresentation());\n }\n /**\n * Get next request\n * @memberof OfflineStreamProcessor#\n */\n\n\n function getNextRequest() {\n return indexHandler.getNextSegmentRequest(getMediaInfo(), representationController.getCurrentRepresentation());\n }\n /**\n * Start download\n * @memberof OfflineStreamProcessor#\n */\n\n\n function start() {\n if (representationController) {\n if (!representationController.getCurrentRepresentation()) {\n throw new Error('Start denied to OfflineStreamProcessor');\n }\n\n isStopped = false;\n offlineStoreController.getRepresentationCurrentState(manifestId, representationController.getCurrentRepresentation().id).then(function (state) {\n if (state) {\n indexHandler.setCurrentIndex(state.index);\n downloadedSegments = state.downloaded;\n }\n\n download();\n })[\"catch\"](function () {\n // start from beginining\n download();\n });\n }\n }\n /**\n * Performs download of fragment according to type\n * @memberof OfflineStreamProcessor#\n */\n\n\n function download() {\n if (isStopped) {\n return;\n }\n\n if (isNaN(representationController.getCurrentRepresentation())) {\n var request = null;\n\n if (!isInitialized) {\n request = getInitRequest();\n isInitialized = true;\n } else {\n request = getNextRequest(); // update progression : done here because availableSegmentsNumber is done in getNextRequest from dash handler\n\n updateProgression();\n }\n\n if (request) {\n logger.info(\"[\".concat(manifestId, \"] download request : \").concat(request.url));\n fragmentModel.executeRequest(request);\n } else {\n logger.info(\"[\".concat(manifestId, \"] no request to be downloaded\"));\n }\n }\n }\n /**\n * Update representation\n * @param {Object} mediaInfo - mediaInfo\n * @memberof OfflineStreamProcessor#\n */\n\n\n function updateRepresentation(mediaInfo) {\n updating = true;\n var voRepresentations = adapter.getVoRepresentations(mediaInfo); // get representation VO according to id.\n\n var quality = voRepresentations.findIndex(function (representation) {\n return representation.id === bitrate.id;\n });\n\n if (type !== constants.VIDEO && type !== constants.AUDIO && type !== constants.TEXT) {\n updating = false;\n return;\n }\n\n representationController.updateData(null, voRepresentations, type, mediaInfo.isFragmented, quality);\n }\n\n function isUpdating() {\n return updating;\n }\n\n function getType() {\n return type;\n }\n\n function getMediaInfo() {\n return mediaInfo;\n }\n\n function getAvailableSegmentsNumber() {\n return representationController.getCurrentRepresentation().availableSegmentsNumber + 1; // do not forget init segment\n }\n\n function updateProgression() {\n if (progressCb) {\n progressCb(instance, downloadedSegments, getAvailableSegmentsNumber());\n }\n }\n\n function resetInitialSettings() {\n isInitialized = false;\n downloadedSegments = 0;\n updating = false;\n }\n /**\n * Reset\n * @memberof OfflineStreamProcessor#\n */\n\n\n function reset() {\n resetInitialSettings();\n indexHandler.reset();\n eventBus.off(events.STREAM_REQUESTING_COMPLETED, onStreamRequestingCompleted, instance);\n eventBus.off(events.FRAGMENT_LOADING_COMPLETED, onFragmentLoadingCompleted, instance);\n }\n\n instance = {\n initialize: initialize,\n getMediaInfo: getMediaInfo,\n getRepresentationController: getRepresentationController,\n removeExecutedRequestsBeforeTime: removeExecutedRequestsBeforeTime,\n getType: getType,\n getRepresentationId: getRepresentationId,\n isUpdating: isUpdating,\n start: start,\n stop: stop,\n getAvailableSegmentsNumber: getAvailableSegmentsNumber,\n reset: reset\n };\n setup();\n return instance;\n}", "constructor() {\r\n }", "constructor() {\n\t\t// ...\n\t}", "static get STATUS() {\n return 0;\n }", "onReady() {\n return __awaiter(this, void 0, void 0, function* () {\n this.logger = new log_1.ioBrokerLogger(this.log);\n yield this.setObjectNotExistsAsync(\"verify_code\", {\n type: \"state\",\n common: {\n name: \"2FA verification code\",\n type: \"number\",\n role: \"state\",\n read: true,\n write: true,\n },\n native: {},\n });\n yield this.setObjectNotExistsAsync(\"info\", {\n type: \"channel\",\n common: {\n name: \"info\"\n },\n native: {},\n });\n yield this.setObjectNotExistsAsync(\"info.connection\", {\n type: \"state\",\n common: {\n name: \"Global connection\",\n type: \"boolean\",\n role: \"indicator.connection\",\n read: true,\n write: false,\n },\n native: {},\n });\n yield this.setStateAsync(\"info.connection\", { val: false, ack: true });\n yield this.setObjectNotExistsAsync(\"info.push_connection\", {\n type: \"state\",\n common: {\n name: \"Push notification connection\",\n type: \"boolean\",\n role: \"indicator.connection\",\n read: true,\n write: false,\n },\n native: {},\n });\n // Remove old states of previous adapter versions\n try {\n const schedule_modes = yield this.getStatesAsync(\"*.schedule_mode\");\n Object.keys(schedule_modes).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const push_notifications = yield this.getStatesAsync(\"push_notification.*\");\n Object.keys(push_notifications).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n yield this.delObjectAsync(\"push_notification\");\n }\n catch (error) {\n }\n try {\n const last_camera_url = yield this.getStatesAsync(\"*.last_camera_url\");\n Object.keys(last_camera_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const captured_pic_url = yield this.getStatesAsync(\"*.captured_pic_url\");\n Object.keys(captured_pic_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const person_identified = yield this.getStatesAsync(\"*.person_identified\");\n Object.keys(person_identified).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const last_captured_pic_url = yield this.getStatesAsync(\"*.last_captured_pic_url\");\n Object.keys(last_captured_pic_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const last_captured_pic_html = yield this.getStatesAsync(\"*.last_captured_pic_html\");\n Object.keys(last_captured_pic_html).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n // End\n // Reset event states if necessary (for example because of an unclean exit)\n yield this.initializeEvents(types_1.CameraStateID.PERSON_DETECTED);\n yield this.initializeEvents(types_1.CameraStateID.MOTION_DETECTED);\n yield this.initializeEvents(types_1.DoorbellStateID.RINGING);\n yield this.initializeEvents(types_1.IndoorCameraStateID.CRYING_DETECTED);\n yield this.initializeEvents(types_1.IndoorCameraStateID.SOUND_DETECTED);\n yield this.initializeEvents(types_1.IndoorCameraStateID.PET_DETECTED);\n try {\n if (fs.statSync(this.persistentFile).isFile()) {\n const fileContent = fs.readFileSync(this.persistentFile, \"utf8\");\n this.persistentData = JSON.parse(fileContent);\n }\n }\n catch (err) {\n this.logger.debug(\"No stored data from last exit found.\");\n }\n //TODO: Temporary Test to be removed!\n /*await this.setObjectNotExistsAsync(\"test_button\", {\n type: \"state\",\n common: {\n name: \"Test button\",\n type: \"boolean\",\n role: \"button\",\n read: false,\n write: true,\n },\n native: {},\n });\n this.subscribeStates(\"test_button\");\n await this.setObjectNotExistsAsync(\"test_button2\", {\n type: \"state\",\n common: {\n name: \"Test button2\",\n type: \"boolean\",\n role: \"button\",\n read: false,\n write: true,\n },\n native: {},\n });\n this.subscribeStates(\"test_button2\");*/\n // END\n this.subscribeStates(\"verify_code\");\n const systemConfig = yield this.getForeignObjectAsync(\"system.config\");\n let countryCode = undefined;\n let languageCode = undefined;\n if (systemConfig) {\n countryCode = i18n_iso_countries_1.getAlpha2Code(systemConfig.common.country, \"en\");\n if (i18n_iso_languages_1.isValid(systemConfig.common.language))\n languageCode = systemConfig.common.language;\n }\n try {\n const adapter_info = yield this.getForeignObjectAsync(`system.adapter.${this.namespace}`);\n if (adapter_info && adapter_info.common && adapter_info.common.version) {\n if (this.persistentData.version !== adapter_info.common.version) {\n const currentVersion = Number.parseFloat(utils_1.removeLastChar(adapter_info.common.version, \".\"));\n const previousVersion = this.persistentData.version !== \"\" && this.persistentData.version !== undefined ? Number.parseFloat(utils_1.removeLastChar(this.persistentData.version, \".\")) : 0;\n this.logger.debug(`Handling of adapter update - currentVersion: ${currentVersion} previousVersion: ${previousVersion}`);\n if (previousVersion < currentVersion) {\n yield utils_1.handleUpdate(this, this.logger, previousVersion);\n this.persistentData.version = adapter_info.common.version;\n this.writePersistentData();\n }\n }\n }\n }\n catch (error) {\n this.logger.error(`Handling of adapter update - Error:`, error);\n }\n this.eufy = new EufySecurityAPI.EufySecurity(this, this.logger, countryCode, languageCode);\n this.eufy.on(\"stations\", (stations) => this.handleStations(stations));\n this.eufy.on(\"devices\", (devices) => this.handleDevices(devices));\n this.eufy.on(\"push message\", (messages) => this.handlePushNotification(messages));\n this.eufy.on(\"connect\", () => this.onConnect());\n this.eufy.on(\"close\", () => this.onClose());\n this.eufy.on(\"livestream start\", (station, device, url) => this.onStartLivestream(station, device, url));\n this.eufy.on(\"livestream stop\", (station, device) => this.onStopLivestream(station, device));\n this.eufy.on(\"push connect\", () => this.onPushConnect());\n this.eufy.on(\"push close\", () => this.onPushClose());\n const api = this.eufy.getApi();\n if (this.persistentData.api_base && this.persistentData.api_base != \"\") {\n this.logger.debug(`Load previous api_base: ${this.persistentData.api_base}`);\n api.setAPIBase(this.persistentData.api_base);\n }\n if (this.persistentData.login_hash && this.persistentData.login_hash != \"\") {\n this.logger.debug(`Load previous login_hash: ${this.persistentData.login_hash}`);\n if (utils_1.md5(`${this.config.username}:${this.config.password}`) != this.persistentData.login_hash) {\n this.logger.info(`Authentication properties changed, invalidate saved cloud token.`);\n this.persistentData.cloud_token = \"\";\n this.persistentData.cloud_token_expiration = 0;\n this.persistentData.api_base = \"\";\n }\n }\n else {\n this.persistentData.cloud_token = \"\";\n this.persistentData.cloud_token_expiration = 0;\n }\n if (this.persistentData.cloud_token && this.persistentData.cloud_token != \"\") {\n this.logger.debug(`Load previous token: ${this.persistentData.cloud_token} token_expiration: ${this.persistentData.cloud_token_expiration}`);\n api.setToken(this.persistentData.cloud_token);\n api.setTokenExpiration(new Date(this.persistentData.cloud_token_expiration));\n }\n if (!this.persistentData.openudid || this.persistentData.openudid == \"\") {\n this.persistentData.openudid = utils_1.generateUDID();\n this.logger.debug(`Generated new openudid: ${this.persistentData.openudid}`);\n }\n api.setOpenUDID(this.persistentData.openudid);\n if (!this.persistentData.serial_number || this.persistentData.serial_number == \"\") {\n this.persistentData.serial_number = utils_1.generateSerialnumber(12);\n this.logger.debug(`Generated new serial_number: ${this.persistentData.serial_number}`);\n }\n api.setSerialNumber(this.persistentData.serial_number);\n yield this.eufy.logon();\n });\n }", "function AppMeasurement(r){var a=this;a.version=\"2.8.2\";var k=window;k.s_c_in||(k.s_c_il=[],k.s_c_in=0);a._il=k.s_c_il;a._in=k.s_c_in;a._il[a._in]=a;k.s_c_in++;a._c=\"s_c\";var p=k.AppMeasurement.Xb;p||(p=null);var n=k,m,s;try{for(m=n.parent,s=n.location;m&&m.location&&s&&\"\"+m.location!=\"\"+s&&n.location&&\"\"+m.location!=\"\"+n.location&&m.location.host==s.host;)n=m,m=n.parent}catch(u){}a.F=function(a){try{console.log(a)}catch(b){}};a.Oa=function(a){return\"\"+parseInt(a)==\"\"+a};a.replace=function(a,b,d){return!a||\r\n0>a.indexOf(b)?a:a.split(b).join(d)};a.escape=function(c){var b,d;if(!c)return c;c=encodeURIComponent(c);for(b=0;7>b;b++)d=\"+~!*()'\".substring(b,b+1),0<=c.indexOf(d)&&(c=a.replace(c,d,\"%\"+d.charCodeAt(0).toString(16).toUpperCase()));return c};a.unescape=function(c){if(!c)return c;c=0<=c.indexOf(\"+\")?a.replace(c,\"+\",\" \"):c;try{return decodeURIComponent(c)}catch(b){}return unescape(c)};a.Fb=function(){var c=k.location.hostname,b=a.fpCookieDomainPeriods,d;b||(b=a.cookieDomainPeriods);if(c&&!a.Ga&&!/^[0-9.]+$/.test(c)&&\r\n(b=b?parseInt(b):2,b=2<b?b:2,d=c.lastIndexOf(\".\"),0<=d)){for(;0<=d&&1<b;)d=c.lastIndexOf(\".\",d-1),b--;a.Ga=0<d?c.substring(d):c}return a.Ga};a.c_r=a.cookieRead=function(c){c=a.escape(c);var b=\" \"+a.d.cookie,d=b.indexOf(\" \"+c+\"=\"),f=0>d?d:b.indexOf(\";\",d);c=0>d?\"\":a.unescape(b.substring(d+2+c.length,0>f?b.length:f));return\"[[B]]\"!=c?c:\"\"};a.c_w=a.cookieWrite=function(c,b,d){var f=a.Fb(),e=a.cookieLifetime,g;b=\"\"+b;e=e?(\"\"+e).toUpperCase():\"\";d&&\"SESSION\"!=e&&\"NONE\"!=e&&((g=\"\"!=b?parseInt(e?e:0):-60)?\r\n(d=new Date,d.setTime(d.getTime()+1E3*g)):1==d&&(d=new Date,g=d.getYear(),d.setYear(g+5+(1900>g?1900:0))));return c&&\"NONE\"!=e?(a.d.cookie=a.escape(c)+\"=\"+a.escape(\"\"!=b?b:\"[[B]]\")+\"; path=/;\"+(d&&\"SESSION\"!=e?\" expires=\"+d.toUTCString()+\";\":\"\")+(f?\" domain=\"+f+\";\":\"\"),a.cookieRead(c)==b):0};a.Cb=function(){var c=a.Util.getIeVersion();\"number\"===typeof c&&10>c&&(a.unsupportedBrowser=!0,a.rb(a,function(){}))};a.rb=function(a,b){for(var d in a)a.hasOwnProperty(d)&&\"function\"===typeof a[d]&&(a[d]=b)};\r\na.L=[];a.ja=function(c,b,d){if(a.Ha)return 0;a.maxDelay||(a.maxDelay=250);var f=0,e=(new Date).getTime()+a.maxDelay,g=a.d.visibilityState,h=[\"webkitvisibilitychange\",\"visibilitychange\"];g||(g=a.d.webkitVisibilityState);if(g&&\"prerender\"==g){if(!a.ka)for(a.ka=1,d=0;d<h.length;d++)a.d.addEventListener(h[d],function(){var c=a.d.visibilityState;c||(c=a.d.webkitVisibilityState);\"visible\"==c&&(a.ka=0,a.delayReady())});f=1;e=0}else d||a.p(\"_d\")&&(f=1);f&&(a.L.push({m:c,a:b,t:e}),a.ka||setTimeout(a.delayReady,\r\na.maxDelay));return f};a.delayReady=function(){var c=(new Date).getTime(),b=0,d;for(a.p(\"_d\")?b=1:a.za();0<a.L.length;){d=a.L.shift();if(b&&!d.t&&d.t>c){a.L.unshift(d);setTimeout(a.delayReady,parseInt(a.maxDelay/2));break}a.Ha=1;a[d.m].apply(a,d.a);a.Ha=0}};a.setAccount=a.sa=function(c){var b,d;if(!a.ja(\"setAccount\",arguments))if(a.account=c,a.allAccounts)for(b=a.allAccounts.concat(c.split(\",\")),a.allAccounts=[],b.sort(),d=0;d<b.length;d++)0!=d&&b[d-1]==b[d]||a.allAccounts.push(b[d]);else a.allAccounts=\r\nc.split(\",\")};a.foreachVar=function(c,b){var d,f,e,g,h=\"\";e=f=\"\";if(a.lightProfileID)d=a.P,(h=a.lightTrackVars)&&(h=\",\"+h+\",\"+a.oa.join(\",\")+\",\");else{d=a.g;if(a.pe||a.linkType)h=a.linkTrackVars,f=a.linkTrackEvents,a.pe&&(e=a.pe.substring(0,1).toUpperCase()+a.pe.substring(1),a[e]&&(h=a[e].Vb,f=a[e].Ub));h&&(h=\",\"+h+\",\"+a.H.join(\",\")+\",\");f&&h&&(h+=\",events,\")}b&&(b=\",\"+b+\",\");for(f=0;f<d.length;f++)e=d[f],(g=a[e])&&(!h||0<=h.indexOf(\",\"+e+\",\"))&&(!b||0<=b.indexOf(\",\"+e+\",\"))&&c(e,g)};a.r=function(c,\r\nb,d,f,e){var g=\"\",h,l,k,q,m=0;\"contextData\"==c&&(c=\"c\");if(b){for(h in b)if(!(Object.prototype[h]||e&&h.substring(0,e.length)!=e)&&b[h]&&(!d||0<=d.indexOf(\",\"+(f?f+\".\":\"\")+h+\",\"))){k=!1;if(m)for(l=0;l<m.length;l++)h.substring(0,m[l].length)==m[l]&&(k=!0);if(!k&&(\"\"==g&&(g+=\"&\"+c+\".\"),l=b[h],e&&(h=h.substring(e.length)),0<h.length))if(k=h.indexOf(\".\"),0<k)l=h.substring(0,k),k=(e?e:\"\")+l+\".\",m||(m=[]),m.push(k),g+=a.r(l,b,d,f,k);else if(\"boolean\"==typeof l&&(l=l?\"true\":\"false\"),l){if(\"retrieveLightData\"==\r\nf&&0>e.indexOf(\".contextData.\"))switch(k=h.substring(0,4),q=h.substring(4),h){case \"transactionID\":h=\"xact\";break;case \"channel\":h=\"ch\";break;case \"campaign\":h=\"v0\";break;default:a.Oa(q)&&(\"prop\"==k?h=\"c\"+q:\"eVar\"==k?h=\"v\"+q:\"list\"==k?h=\"l\"+q:\"hier\"==k&&(h=\"h\"+q,l=l.substring(0,255)))}g+=\"&\"+a.escape(h)+\"=\"+a.escape(l)}}\"\"!=g&&(g+=\"&.\"+c)}return g};a.usePostbacks=0;a.Ib=function(){var c=\"\",b,d,f,e,g,h,l,k,q=\"\",m=\"\",n=e=\"\";if(a.lightProfileID)b=a.P,(q=a.lightTrackVars)&&(q=\",\"+q+\",\"+a.oa.join(\",\")+\r\n\",\");else{b=a.g;if(a.pe||a.linkType)q=a.linkTrackVars,m=a.linkTrackEvents,a.pe&&(e=a.pe.substring(0,1).toUpperCase()+a.pe.substring(1),a[e]&&(q=a[e].Vb,m=a[e].Ub));q&&(q=\",\"+q+\",\"+a.H.join(\",\")+\",\");m&&(m=\",\"+m+\",\",q&&(q+=\",events,\"));a.events2&&(n+=(\"\"!=n?\",\":\"\")+a.events2)}if(a.visitor&&a.visitor.getCustomerIDs){e=p;if(g=a.visitor.getCustomerIDs())for(d in g)Object.prototype[d]||(f=g[d],\"object\"==typeof f&&(e||(e={}),f.id&&(e[d+\".id\"]=f.id),f.authState&&(e[d+\".as\"]=f.authState)));e&&(c+=a.r(\"cid\",\r\ne))}a.AudienceManagement&&a.AudienceManagement.isReady()&&(c+=a.r(\"d\",a.AudienceManagement.getEventCallConfigParams()));for(d=0;d<b.length;d++){e=b[d];g=a[e];f=e.substring(0,4);h=e.substring(4);g||(\"events\"==e&&n?(g=n,n=\"\"):\"marketingCloudOrgID\"==e&&a.visitor&&(g=a.visitor.marketingCloudOrgID));if(g&&(!q||0<=q.indexOf(\",\"+e+\",\"))){switch(e){case \"customerPerspective\":e=\"cp\";break;case \"marketingCloudOrgID\":e=\"mcorgid\";break;case \"supplementalDataID\":e=\"sdid\";break;case \"timestamp\":e=\"ts\";break;case \"dynamicVariablePrefix\":e=\r\n\"D\";break;case \"visitorID\":e=\"vid\";break;case \"marketingCloudVisitorID\":e=\"mid\";break;case \"analyticsVisitorID\":e=\"aid\";break;case \"audienceManagerLocationHint\":e=\"aamlh\";break;case \"audienceManagerBlob\":e=\"aamb\";break;case \"authState\":e=\"as\";break;case \"pageURL\":e=\"g\";255<g.length&&(a.pageURLRest=g.substring(255),g=g.substring(0,255));break;case \"pageURLRest\":e=\"-g\";break;case \"referrer\":e=\"r\";break;case \"vmk\":case \"visitorMigrationKey\":e=\"vmt\";break;case \"visitorMigrationServer\":e=\"vmf\";a.ssl&&\r\na.visitorMigrationServerSecure&&(g=\"\");break;case \"visitorMigrationServerSecure\":e=\"vmf\";!a.ssl&&a.visitorMigrationServer&&(g=\"\");break;case \"charSet\":e=\"ce\";break;case \"visitorNamespace\":e=\"ns\";break;case \"cookieDomainPeriods\":e=\"cdp\";break;case \"cookieLifetime\":e=\"cl\";break;case \"variableProvider\":e=\"vvp\";break;case \"currencyCode\":e=\"cc\";break;case \"channel\":e=\"ch\";break;case \"transactionID\":e=\"xact\";break;case \"campaign\":e=\"v0\";break;case \"latitude\":e=\"lat\";break;case \"longitude\":e=\"lon\";break;\r\ncase \"resolution\":e=\"s\";break;case \"colorDepth\":e=\"c\";break;case \"javascriptVersion\":e=\"j\";break;case \"javaEnabled\":e=\"v\";break;case \"cookiesEnabled\":e=\"k\";break;case \"browserWidth\":e=\"bw\";break;case \"browserHeight\":e=\"bh\";break;case \"connectionType\":e=\"ct\";break;case \"homepage\":e=\"hp\";break;case \"events\":n&&(g+=(\"\"!=g?\",\":\"\")+n);if(m)for(h=g.split(\",\"),g=\"\",f=0;f<h.length;f++)l=h[f],k=l.indexOf(\"=\"),0<=k&&(l=l.substring(0,k)),k=l.indexOf(\":\"),0<=k&&(l=l.substring(0,k)),0<=m.indexOf(\",\"+l+\",\")&&(g+=\r\n(g?\",\":\"\")+h[f]);break;case \"events2\":g=\"\";break;case \"contextData\":c+=a.r(\"c\",a[e],q,e);g=\"\";break;case \"lightProfileID\":e=\"mtp\";break;case \"lightStoreForSeconds\":e=\"mtss\";a.lightProfileID||(g=\"\");break;case \"lightIncrementBy\":e=\"mti\";a.lightProfileID||(g=\"\");break;case \"retrieveLightProfiles\":e=\"mtsr\";break;case \"deleteLightProfiles\":e=\"mtsd\";break;case \"retrieveLightData\":a.retrieveLightProfiles&&(c+=a.r(\"mts\",a[e],q,e));g=\"\";break;default:a.Oa(h)&&(\"prop\"==f?e=\"c\"+h:\"eVar\"==f?e=\"v\"+h:\"list\"==\r\nf?e=\"l\"+h:\"hier\"==f&&(e=\"h\"+h,g=g.substring(0,255)))}g&&(c+=\"&\"+e+\"=\"+(\"pev\"!=e.substring(0,3)?a.escape(g):g))}\"pev3\"==e&&a.e&&(c+=a.e)}a.na&&(c+=\"&lrt=\"+a.na,a.na=null);return c};a.D=function(a){var b=a.tagName;if(\"undefined\"!=\"\"+a.$b||\"undefined\"!=\"\"+a.Qb&&\"HTML\"!=(\"\"+a.Qb).toUpperCase())return\"\";b=b&&b.toUpperCase?b.toUpperCase():\"\";\"SHAPE\"==b&&(b=\"\");b&&((\"INPUT\"==b||\"BUTTON\"==b)&&a.type&&a.type.toUpperCase?b=a.type.toUpperCase():!b&&a.href&&(b=\"A\"));return b};a.Ka=function(a){var b=k.location,\r\nd=a.href?a.href:\"\",f,e,g;f=d.indexOf(\":\");e=d.indexOf(\"?\");g=d.indexOf(\"/\");d&&(0>f||0<=e&&f>e||0<=g&&f>g)&&(e=a.protocol&&1<a.protocol.length?a.protocol:b.protocol?b.protocol:\"\",f=b.pathname.lastIndexOf(\"/\"),d=(e?e+\"//\":\"\")+(a.host?a.host:b.host?b.host:\"\")+(\"/\"!=d.substring(0,1)?b.pathname.substring(0,0>f?0:f)+\"/\":\"\")+d);return d};a.M=function(c){var b=a.D(c),d,f,e=\"\",g=0;return b&&(d=c.protocol,f=c.onclick,!c.href||\"A\"!=b&&\"AREA\"!=b||f&&d&&!(0>d.toLowerCase().indexOf(\"javascript\"))?f?(e=a.replace(a.replace(a.replace(a.replace(\"\"+\r\nf,\"\\r\",\"\"),\"\\n\",\"\"),\"\\t\",\"\"),\" \",\"\"),g=2):\"INPUT\"==b||\"SUBMIT\"==b?(c.value?e=c.value:c.innerText?e=c.innerText:c.textContent&&(e=c.textContent),g=3):\"IMAGE\"==b&&c.src&&(e=c.src):e=a.Ka(c),e)?{id:e.substring(0,100),type:g}:0};a.Yb=function(c){for(var b=a.D(c),d=a.M(c);c&&!d&&\"BODY\"!=b;)if(c=c.parentElement?c.parentElement:c.parentNode)b=a.D(c),d=a.M(c);d&&\"BODY\"!=b||(c=0);c&&(b=c.onclick?\"\"+c.onclick:\"\",0<=b.indexOf(\".tl(\")||0<=b.indexOf(\".trackLink(\"))&&(c=0);return c};a.Pb=function(){var c,b,d=a.linkObject,\r\nf=a.linkType,e=a.linkURL,g,h;a.pa=1;d||(a.pa=0,d=a.clickObject);if(d){c=a.D(d);for(b=a.M(d);d&&!b&&\"BODY\"!=c;)if(d=d.parentElement?d.parentElement:d.parentNode)c=a.D(d),b=a.M(d);b&&\"BODY\"!=c||(d=0);if(d&&!a.linkObject){var l=d.onclick?\"\"+d.onclick:\"\";if(0<=l.indexOf(\".tl(\")||0<=l.indexOf(\".trackLink(\"))d=0}}else a.pa=1;!e&&d&&(e=a.Ka(d));e&&!a.linkLeaveQueryString&&(g=e.indexOf(\"?\"),0<=g&&(e=e.substring(0,g)));if(!f&&e){var m=0,q=0,n;if(a.trackDownloadLinks&&a.linkDownloadFileTypes)for(l=e.toLowerCase(),\r\ng=l.indexOf(\"?\"),h=l.indexOf(\"#\"),0<=g?0<=h&&h<g&&(g=h):g=h,0<=g&&(l=l.substring(0,g)),g=a.linkDownloadFileTypes.toLowerCase().split(\",\"),h=0;h<g.length;h++)(n=g[h])&&l.substring(l.length-(n.length+1))==\".\"+n&&(f=\"d\");if(a.trackExternalLinks&&!f&&(l=e.toLowerCase(),a.Na(l)&&(a.linkInternalFilters||(a.linkInternalFilters=k.location.hostname),g=0,a.linkExternalFilters?(g=a.linkExternalFilters.toLowerCase().split(\",\"),m=1):a.linkInternalFilters&&(g=a.linkInternalFilters.toLowerCase().split(\",\")),g))){for(h=\r\n0;h<g.length;h++)n=g[h],0<=l.indexOf(n)&&(q=1);q?m&&(f=\"e\"):m||(f=\"e\")}}a.linkObject=d;a.linkURL=e;a.linkType=f;if(a.trackClickMap||a.trackInlineStats)a.e=\"\",d&&(f=a.pageName,e=1,d=d.sourceIndex,f||(f=a.pageURL,e=0),k.s_objectID&&(b.id=k.s_objectID,d=b.type=1),f&&b&&b.id&&c&&(a.e=\"&pid=\"+a.escape(f.substring(0,255))+(e?\"&pidt=\"+e:\"\")+\"&oid=\"+a.escape(b.id.substring(0,100))+(b.type?\"&oidt=\"+b.type:\"\")+\"&ot=\"+c+(d?\"&oi=\"+d:\"\")))};a.Jb=function(){var c=a.pa,b=a.linkType,d=a.linkURL,f=a.linkName;b&&(d||\r\nf)&&(b=b.toLowerCase(),\"d\"!=b&&\"e\"!=b&&(b=\"o\"),a.pe=\"lnk_\"+b,a.pev1=d?a.escape(d):\"\",a.pev2=f?a.escape(f):\"\",c=1);a.abort&&(c=0);if(a.trackClickMap||a.trackInlineStats||a.ActivityMap){var b={},d=0,e=a.cookieRead(\"s_sq\"),g=e?e.split(\"&\"):0,h,l,k,e=0;if(g)for(h=0;h<g.length;h++)l=g[h].split(\"=\"),f=a.unescape(l[0]).split(\",\"),l=a.unescape(l[1]),b[l]=f;f=a.account.split(\",\");h={};for(k in a.contextData)k&&!Object.prototype[k]&&\"a.activitymap.\"==k.substring(0,14)&&(h[k]=a.contextData[k],a.contextData[k]=\r\n\"\");a.e=a.r(\"c\",h)+(a.e?a.e:\"\");if(c||a.e){c&&!a.e&&(e=1);for(l in b)if(!Object.prototype[l])for(k=0;k<f.length;k++)for(e&&(g=b[l].join(\",\"),g==a.account&&(a.e+=(\"&\"!=l.charAt(0)?\"&\":\"\")+l,b[l]=[],d=1)),h=0;h<b[l].length;h++)g=b[l][h],g==f[k]&&(e&&(a.e+=\"&u=\"+a.escape(g)+(\"&\"!=l.charAt(0)?\"&\":\"\")+l+\"&u=0\"),b[l].splice(h,1),d=1);c||(d=1);if(d){e=\"\";h=2;!c&&a.e&&(e=a.escape(f.join(\",\"))+\"=\"+a.escape(a.e),h=1);for(l in b)!Object.prototype[l]&&0<h&&0<b[l].length&&(e+=(e?\"&\":\"\")+a.escape(b[l].join(\",\"))+\r\n\"=\"+a.escape(l),h--);a.cookieWrite(\"s_sq\",e)}}}return c};a.Kb=function(){if(!a.Tb){var c=new Date,b=n.location,d,f,e=f=d=\"\",g=\"\",h=\"\",l=\"1.2\",k=a.cookieWrite(\"s_cc\",\"true\",0)?\"Y\":\"N\",m=\"\",p=\"\";if(c.setUTCDate&&(l=\"1.3\",(0).toPrecision&&(l=\"1.5\",c=[],c.forEach))){l=\"1.6\";f=0;d={};try{f=new Iterator(d),f.next&&(l=\"1.7\",c.reduce&&(l=\"1.8\",l.trim&&(l=\"1.8.1\",Date.parse&&(l=\"1.8.2\",Object.create&&(l=\"1.8.5\")))))}catch(r){}}d=screen.width+\"x\"+screen.height;e=navigator.javaEnabled()?\"Y\":\"N\";f=screen.pixelDepth?\r\nscreen.pixelDepth:screen.colorDepth;g=a.w.innerWidth?a.w.innerWidth:a.d.documentElement.offsetWidth;h=a.w.innerHeight?a.w.innerHeight:a.d.documentElement.offsetHeight;try{a.b.addBehavior(\"#default#homePage\"),m=a.b.Zb(b)?\"Y\":\"N\"}catch(s){}try{a.b.addBehavior(\"#default#clientCaps\"),p=a.b.connectionType}catch(t){}a.resolution=d;a.colorDepth=f;a.javascriptVersion=l;a.javaEnabled=e;a.cookiesEnabled=k;a.browserWidth=g;a.browserHeight=h;a.connectionType=p;a.homepage=m;a.Tb=1}};a.Q={};a.loadModule=function(c,\r\nb){var d=a.Q[c];if(!d){d=k[\"AppMeasurement_Module_\"+c]?new k[\"AppMeasurement_Module_\"+c](a):{};a.Q[c]=a[c]=d;d.kb=function(){return d.qb};d.sb=function(b){if(d.qb=b)a[c+\"_onLoad\"]=b,a.ja(c+\"_onLoad\",[a,d],1)||b(a,d)};try{Object.defineProperty?Object.defineProperty(d,\"onLoad\",{get:d.kb,set:d.sb}):d._olc=1}catch(f){d._olc=1}}b&&(a[c+\"_onLoad\"]=b,a.ja(c+\"_onLoad\",[a,d],1)||b(a,d))};a.p=function(c){var b,d;for(b in a.Q)if(!Object.prototype[b]&&(d=a.Q[b])&&(d._olc&&d.onLoad&&(d._olc=0,d.onLoad(a,d)),d[c]&&\r\nd[c]()))return 1;return 0};a.Mb=function(){var c=Math.floor(1E13*Math.random()),b=a.visitorSampling,d=a.visitorSamplingGroup,d=\"s_vsn_\"+(a.visitorNamespace?a.visitorNamespace:a.account)+(d?\"_\"+d:\"\"),f=a.cookieRead(d);if(b){b*=100;f&&(f=parseInt(f));if(!f){if(!a.cookieWrite(d,c))return 0;f=c}if(f%1E4>b)return 0}return 1};a.R=function(c,b){var d,f,e,g,h,l;for(d=0;2>d;d++)for(f=0<d?a.Ca:a.g,e=0;e<f.length;e++)if(g=f[e],(h=c[g])||c[\"!\"+g]){if(!b&&(\"contextData\"==g||\"retrieveLightData\"==g)&&a[g])for(l in a[g])h[l]||\r\n(h[l]=a[g][l]);a[g]=h}};a.Ya=function(c,b){var d,f,e,g;for(d=0;2>d;d++)for(f=0<d?a.Ca:a.g,e=0;e<f.length;e++)g=f[e],c[g]=a[g],b||c[g]||(c[\"!\"+g]=1)};a.Eb=function(a){var b,d,f,e,g,h=0,l,k=\"\",m=\"\";if(a&&255<a.length&&(b=\"\"+a,d=b.indexOf(\"?\"),0<d&&(l=b.substring(d+1),b=b.substring(0,d),e=b.toLowerCase(),f=0,\"http://\"==e.substring(0,7)?f+=7:\"https://\"==e.substring(0,8)&&(f+=8),d=e.indexOf(\"/\",f),0<d&&(e=e.substring(f,d),g=b.substring(d),b=b.substring(0,d),0<=e.indexOf(\"google\")?h=\",q,ie,start,search_key,word,kw,cd,\":\r\n0<=e.indexOf(\"yahoo.co\")&&(h=\",p,ei,\"),h&&l)))){if((a=l.split(\"&\"))&&1<a.length){for(f=0;f<a.length;f++)e=a[f],d=e.indexOf(\"=\"),0<d&&0<=h.indexOf(\",\"+e.substring(0,d)+\",\")?k+=(k?\"&\":\"\")+e:m+=(m?\"&\":\"\")+e;k&&m?l=k+\"&\"+m:m=\"\"}d=253-(l.length-m.length)-b.length;a=b+(0<d?g.substring(0,d):\"\")+\"?\"+l}return a};a.eb=function(c){var b=a.d.visibilityState,d=[\"webkitvisibilitychange\",\"visibilitychange\"];b||(b=a.d.webkitVisibilityState);if(b&&\"prerender\"==b){if(c)for(b=0;b<d.length;b++)a.d.addEventListener(d[b],\r\nfunction(){var b=a.d.visibilityState;b||(b=a.d.webkitVisibilityState);\"visible\"==b&&c()});return!1}return!0};a.fa=!1;a.J=!1;a.ub=function(){a.J=!0;a.j()};a.da=!1;a.V=!1;a.pb=function(c){a.marketingCloudVisitorID=c;a.V=!0;a.j()};a.ga=!1;a.W=!1;a.vb=function(c){a.visitorOptedOut=c;a.W=!0;a.j()};a.aa=!1;a.S=!1;a.$a=function(c){a.analyticsVisitorID=c;a.S=!0;a.j()};a.ca=!1;a.U=!1;a.bb=function(c){a.audienceManagerLocationHint=c;a.U=!0;a.j()};a.ba=!1;a.T=!1;a.ab=function(c){a.audienceManagerBlob=c;a.T=\r\n!0;a.j()};a.cb=function(c){a.maxDelay||(a.maxDelay=250);return a.p(\"_d\")?(c&&setTimeout(function(){c()},a.maxDelay),!1):!0};a.ea=!1;a.I=!1;a.za=function(){a.I=!0;a.j()};a.isReadyToTrack=function(){var c=!0,b=a.visitor,d,f,e;a.fa||a.J||(a.eb(a.ub)?a.J=!0:a.fa=!0);if(a.fa&&!a.J)return!1;b&&b.isAllowed()&&(a.da||a.marketingCloudVisitorID||!b.getMarketingCloudVisitorID||(a.da=!0,a.marketingCloudVisitorID=b.getMarketingCloudVisitorID([a,a.pb]),a.marketingCloudVisitorID&&(a.V=!0)),a.ga||a.visitorOptedOut||\r\n!b.isOptedOut||(a.ga=!0,a.visitorOptedOut=b.isOptedOut([a,a.vb]),a.visitorOptedOut!=p&&(a.W=!0)),a.aa||a.analyticsVisitorID||!b.getAnalyticsVisitorID||(a.aa=!0,a.analyticsVisitorID=b.getAnalyticsVisitorID([a,a.$a]),a.analyticsVisitorID&&(a.S=!0)),a.ca||a.audienceManagerLocationHint||!b.getAudienceManagerLocationHint||(a.ca=!0,a.audienceManagerLocationHint=b.getAudienceManagerLocationHint([a,a.bb]),a.audienceManagerLocationHint&&(a.U=!0)),a.ba||a.audienceManagerBlob||!b.getAudienceManagerBlob||(a.ba=\r\n!0,a.audienceManagerBlob=b.getAudienceManagerBlob([a,a.ab]),a.audienceManagerBlob&&(a.T=!0)),c=a.da&&!a.V&&!a.marketingCloudVisitorID,b=a.aa&&!a.S&&!a.analyticsVisitorID,d=a.ca&&!a.U&&!a.audienceManagerLocationHint,f=a.ba&&!a.T&&!a.audienceManagerBlob,e=a.ga&&!a.W,c=c||b||d||f||e?!1:!0);a.ea||a.I||(a.cb(a.za)?a.I=!0:a.ea=!0);a.ea&&!a.I&&(c=!1);return c};a.o=p;a.u=0;a.callbackWhenReadyToTrack=function(c,b,d){var f;f={};f.zb=c;f.yb=b;f.wb=d;a.o==p&&(a.o=[]);a.o.push(f);0==a.u&&(a.u=setInterval(a.j,\r\n100))};a.j=function(){var c;if(a.isReadyToTrack()&&(a.tb(),a.o!=p))for(;0<a.o.length;)c=a.o.shift(),c.yb.apply(c.zb,c.wb)};a.tb=function(){a.u&&(clearInterval(a.u),a.u=0)};a.mb=function(c){var b,d,f=p,e=p;if(!a.isReadyToTrack()){b=[];if(c!=p)for(d in f={},c)f[d]=c[d];e={};a.Ya(e,!0);b.push(f);b.push(e);a.callbackWhenReadyToTrack(a,a.track,b);return!0}return!1};a.Gb=function(){var c=a.cookieRead(\"s_fid\"),b=\"\",d=\"\",f;f=8;var e=4;if(!c||0>c.indexOf(\"-\")){for(c=0;16>c;c++)f=Math.floor(Math.random()*f),\r\nb+=\"0123456789ABCDEF\".substring(f,f+1),f=Math.floor(Math.random()*e),d+=\"0123456789ABCDEF\".substring(f,f+1),f=e=16;c=b+\"-\"+d}a.cookieWrite(\"s_fid\",c,1)||(c=0);return c};a.t=a.track=function(c,b){var d,f=new Date,e=\"s\"+Math.floor(f.getTime()/108E5)%10+Math.floor(1E13*Math.random()),g=f.getYear(),g=\"t=\"+a.escape(f.getDate()+\"/\"+f.getMonth()+\"/\"+(1900>g?g+1900:g)+\" \"+f.getHours()+\":\"+f.getMinutes()+\":\"+f.getSeconds()+\" \"+f.getDay()+\" \"+f.getTimezoneOffset());a.visitor&&a.visitor.getAuthState&&(a.authState=\r\na.visitor.getAuthState());a.p(\"_s\");a.mb(c)||(b&&a.R(b),c&&(d={},a.Ya(d,0),a.R(c)),a.Mb()&&!a.visitorOptedOut&&(a.analyticsVisitorID||a.marketingCloudVisitorID||(a.fid=a.Gb()),a.Pb(),a.usePlugins&&a.doPlugins&&a.doPlugins(a),a.account&&(a.abort||(a.trackOffline&&!a.timestamp&&(a.timestamp=Math.floor(f.getTime()/1E3)),f=k.location,a.pageURL||(a.pageURL=f.href?f.href:f),a.referrer||a.Za||(f=a.Util.getQueryParam(\"adobe_mc_ref\",null,null,!0),a.referrer=f||void 0===f?void 0===f?\"\":f:n.document.referrer),\r\na.Za=1,a.referrer=a.Eb(a.referrer),a.p(\"_g\")),a.Jb()&&!a.abort&&(a.visitor&&!a.supplementalDataID&&a.visitor.getSupplementalDataID&&(a.supplementalDataID=a.visitor.getSupplementalDataID(\"AppMeasurement:\"+a._in,a.expectSupplementalData?!1:!0)),a.Kb(),g+=a.Ib(),a.ob(e,g),a.p(\"_t\"),a.referrer=\"\"))),c&&a.R(d,1));a.abort=a.supplementalDataID=a.timestamp=a.pageURLRest=a.linkObject=a.clickObject=a.linkURL=a.linkName=a.linkType=k.s_objectID=a.pe=a.pev1=a.pev2=a.pev3=a.e=a.lightProfileID=0};a.Ba=[];a.registerPreTrackCallback=\r\nfunction(c){for(var b=[],d=1;d<arguments.length;d++)b.push(arguments[d]);\"function\"==typeof c?a.Ba.push([c,b]):a.debugTracking&&a.F(\"DEBUG: Non function type passed to registerPreTrackCallback\")};a.hb=function(c){a.xa(a.Ba,c)};a.Aa=[];a.registerPostTrackCallback=function(c){for(var b=[],d=1;d<arguments.length;d++)b.push(arguments[d]);\"function\"==typeof c?a.Aa.push([c,b]):a.debugTracking&&a.F(\"DEBUG: Non function type passed to registerPostTrackCallback\")};a.gb=function(c){a.xa(a.Aa,c)};a.xa=function(c,\r\nb){if(\"object\"==typeof c)for(var d=0;d<c.length;d++){var f=c[d][0],e=c[d][1];e.unshift(b);if(\"function\"==typeof f)try{f.apply(null,e)}catch(g){a.debugTracking&&a.F(g.message)}}};a.tl=a.trackLink=function(c,b,d,f,e){a.linkObject=c;a.linkType=b;a.linkName=d;e&&(a.l=c,a.A=e);return a.track(f)};a.trackLight=function(c,b,d,f){a.lightProfileID=c;a.lightStoreForSeconds=b;a.lightIncrementBy=d;return a.track(f)};a.clearVars=function(){var c,b;for(c=0;c<a.g.length;c++)if(b=a.g[c],\"prop\"==b.substring(0,4)||\r\n\"eVar\"==b.substring(0,4)||\"hier\"==b.substring(0,4)||\"list\"==b.substring(0,4)||\"channel\"==b||\"events\"==b||\"eventList\"==b||\"products\"==b||\"productList\"==b||\"purchaseID\"==b||\"transactionID\"==b||\"state\"==b||\"zip\"==b||\"campaign\"==b)a[b]=void 0};a.tagContainerMarker=\"\";a.ob=function(c,b){var d=a.ib()+\"/\"+c+\"?AQB=1&ndh=1&pf=1&\"+(a.ya()?\"callback=s_c_il[\"+a._in+\"].doPostbacks&et=1&\":\"\")+b+\"&AQE=1\";a.hb(d);a.fb(d);a.X()};a.ib=function(){var c=a.jb();return\"http\"+(a.ssl?\"s\":\"\")+\"://\"+c+\"/b/ss/\"+a.account+\"/\"+\r\n(a.mobile?\"5.\":\"\")+(a.ya()?\"10\":\"1\")+\"/JS-\"+a.version+(a.Sb?\"T\":\"\")+(a.tagContainerMarker?\"-\"+a.tagContainerMarker:\"\")};a.ya=function(){return a.AudienceManagement&&a.AudienceManagement.isReady()||0!=a.usePostbacks};a.jb=function(){var c=a.dc,b=a.trackingServer;b?a.trackingServerSecure&&a.ssl&&(b=a.trackingServerSecure):(c=c?(\"\"+c).toLowerCase():\"d1\",\"d1\"==c?c=\"112\":\"d2\"==c&&(c=\"122\"),b=a.lb()+\".\"+c+\".2o7.net\");return b};a.lb=function(){var c=a.visitorNamespace;c||(c=a.account.split(\",\")[0],c=c.replace(/[^0-9a-z]/gi,\r\n\"\"));return c};a.Xa=/{(%?)(.*?)(%?)}/;a.Wb=RegExp(a.Xa.source,\"g\");a.Db=function(c){if(\"object\"==typeof c.dests)for(var b=0;b<c.dests.length;++b){var d=c.dests[b];if(\"string\"==typeof d.c&&\"aa.\"==d.id.substr(0,3))for(var f=d.c.match(a.Wb),e=0;e<f.length;++e){var g=f[e],h=g.match(a.Xa),k=\"\";\"%\"==h[1]&&\"timezone_offset\"==h[2]?k=(new Date).getTimezoneOffset():\"%\"==h[1]&&\"timestampz\"==h[2]&&(k=a.Hb());d.c=d.c.replace(g,a.escape(k))}}};a.Hb=function(){var c=new Date,b=new Date(6E4*Math.abs(c.getTimezoneOffset()));\r\nreturn a.k(4,c.getFullYear())+\"-\"+a.k(2,c.getMonth()+1)+\"-\"+a.k(2,c.getDate())+\"T\"+a.k(2,c.getHours())+\":\"+a.k(2,c.getMinutes())+\":\"+a.k(2,c.getSeconds())+(0<c.getTimezoneOffset()?\"-\":\"+\")+a.k(2,b.getUTCHours())+\":\"+a.k(2,b.getUTCMinutes())};a.k=function(a,b){return(Array(a+1).join(0)+b).slice(-a)};a.ua={};a.doPostbacks=function(c){if(\"object\"==typeof c)if(a.Db(c),\"object\"==typeof a.AudienceManagement&&\"function\"==typeof a.AudienceManagement.isReady&&a.AudienceManagement.isReady()&&\"function\"==typeof a.AudienceManagement.passData)a.AudienceManagement.passData(c);\r\nelse if(\"object\"==typeof c&&\"object\"==typeof c.dests)for(var b=0;b<c.dests.length;++b){var d=c.dests[b];\"object\"==typeof d&&\"string\"==typeof d.c&&\"string\"==typeof d.id&&\"aa.\"==d.id.substr(0,3)&&(a.ua[d.id]=new Image,a.ua[d.id].alt=\"\",a.ua[d.id].src=d.c)}};a.fb=function(c){a.i||a.Lb();a.i.push(c);a.ma=a.C();a.Va()};a.Lb=function(){a.i=a.Nb();a.i||(a.i=[])};a.Nb=function(){var c,b;if(a.ta()){try{(b=k.localStorage.getItem(a.qa()))&&(c=k.JSON.parse(b))}catch(d){}return c}};a.ta=function(){var c=!0;a.trackOffline&&\r\na.offlineFilename&&k.localStorage&&k.JSON||(c=!1);return c};a.La=function(){var c=0;a.i&&(c=a.i.length);a.q&&c++;return c};a.X=function(){if(a.q&&(a.B&&a.B.complete&&a.B.G&&a.B.wa(),a.q))return;a.Ma=p;if(a.ra)a.ma>a.O&&a.Ta(a.i),a.va(500);else{var c=a.xb();if(0<c)a.va(c);else if(c=a.Ia())a.q=1,a.Ob(c),a.Rb(c)}};a.va=function(c){a.Ma||(c||(c=0),a.Ma=setTimeout(a.X,c))};a.xb=function(){var c;if(!a.trackOffline||0>=a.offlineThrottleDelay)return 0;c=a.C()-a.Ra;return a.offlineThrottleDelay<c?0:a.offlineThrottleDelay-\r\nc};a.Ia=function(){if(0<a.i.length)return a.i.shift()};a.Ob=function(c){if(a.debugTracking){var b=\"AppMeasurement Debug: \"+c;c=c.split(\"&\");var d;for(d=0;d<c.length;d++)b+=\"\\n\\t\"+a.unescape(c[d]);a.F(b)}};a.nb=function(){return a.marketingCloudVisitorID||a.analyticsVisitorID};a.Z=!1;var t;try{t=JSON.parse('{\"x\":\"y\"}')}catch(w){t=null}t&&\"y\"==t.x?(a.Z=!0,a.Y=function(a){return JSON.parse(a)}):k.$&&k.$.parseJSON?(a.Y=function(a){return k.$.parseJSON(a)},a.Z=!0):a.Y=function(){return null};a.Rb=function(c){var b,\r\nd,f;a.nb()&&2047<c.length&&(\"undefined\"!=typeof XMLHttpRequest&&(b=new XMLHttpRequest,\"withCredentials\"in b?d=1:b=0),b||\"undefined\"==typeof XDomainRequest||(b=new XDomainRequest,d=2),b&&(a.AudienceManagement&&a.AudienceManagement.isReady()||0!=a.usePostbacks)&&(a.Z?b.Da=!0:b=0));!b&&a.Wa&&(c=c.substring(0,2047));!b&&a.d.createElement&&(0!=a.usePostbacks||a.AudienceManagement&&a.AudienceManagement.isReady())&&(b=a.d.createElement(\"SCRIPT\"))&&\"async\"in b&&((f=(f=a.d.getElementsByTagName(\"HEAD\"))&&f[0]?\r\nf[0]:a.d.body)?(b.type=\"text/javascript\",b.setAttribute(\"async\",\"async\"),d=3):b=0);b||(b=new Image,b.alt=\"\",b.abort||\"undefined\"===typeof k.InstallTrigger||(b.abort=function(){b.src=p}));b.Sa=Date.now();b.Fa=function(){try{b.G&&(clearTimeout(b.G),b.G=0)}catch(a){}};b.onload=b.wa=function(){b.Sa&&(a.na=Date.now()-b.Sa);a.gb(c);b.Fa();a.Bb();a.ha();a.q=0;a.X();if(b.Da){b.Da=!1;try{a.doPostbacks(a.Y(b.responseText))}catch(d){}}};b.onabort=b.onerror=b.Ja=function(){b.Fa();(a.trackOffline||a.ra)&&a.q&&\r\na.i.unshift(a.Ab);a.q=0;a.ma>a.O&&a.Ta(a.i);a.ha();a.va(500)};b.onreadystatechange=function(){4==b.readyState&&(200==b.status?b.wa():b.Ja())};a.Ra=a.C();if(1==d||2==d){var e=c.indexOf(\"?\");f=c.substring(0,e);e=c.substring(e+1);e=e.replace(/&callback=[a-zA-Z0-9_.\\[\\]]+/,\"\");1==d?(b.open(\"POST\",f,!0),b.send(e)):2==d&&(b.open(\"POST\",f),b.send(e))}else if(b.src=c,3==d){if(a.Pa)try{f.removeChild(a.Pa)}catch(g){}f.firstChild?f.insertBefore(b,f.firstChild):f.appendChild(b);a.Pa=a.B}b.G=setTimeout(function(){b.G&&\r\n(b.complete?b.wa():(a.trackOffline&&b.abort&&b.abort(),b.Ja()))},5E3);a.Ab=c;a.B=k[\"s_i_\"+a.replace(a.account,\",\",\"_\")]=b;if(a.useForcedLinkTracking&&a.K||a.A)a.forcedLinkTrackingTimeout||(a.forcedLinkTrackingTimeout=250),a.ia=setTimeout(a.ha,a.forcedLinkTrackingTimeout)};a.Bb=function(){if(a.ta()&&!(a.Qa>a.O))try{k.localStorage.removeItem(a.qa()),a.Qa=a.C()}catch(c){}};a.Ta=function(c){if(a.ta()){a.Va();try{k.localStorage.setItem(a.qa(),k.JSON.stringify(c)),a.O=a.C()}catch(b){}}};a.Va=function(){if(a.trackOffline){if(!a.offlineLimit||\r\n0>=a.offlineLimit)a.offlineLimit=10;for(;a.i.length>a.offlineLimit;)a.Ia()}};a.forceOffline=function(){a.ra=!0};a.forceOnline=function(){a.ra=!1};a.qa=function(){return a.offlineFilename+\"-\"+a.visitorNamespace+a.account};a.C=function(){return(new Date).getTime()};a.Na=function(a){a=a.toLowerCase();return 0!=a.indexOf(\"#\")&&0!=a.indexOf(\"about:\")&&0!=a.indexOf(\"opera:\")&&0!=a.indexOf(\"javascript:\")?!0:!1};a.setTagContainer=function(c){var b,d,f;a.Sb=c;for(b=0;b<a._il.length;b++)if((d=a._il[b])&&\"s_l\"==\r\nd._c&&d.tagContainerName==c){a.R(d);if(d.lmq)for(b=0;b<d.lmq.length;b++)f=d.lmq[b],a.loadModule(f.n);if(d.ml)for(f in d.ml)if(a[f])for(b in c=a[f],f=d.ml[f],f)!Object.prototype[b]&&(\"function\"!=typeof f[b]||0>(\"\"+f[b]).indexOf(\"s_c_il\"))&&(c[b]=f[b]);if(d.mmq)for(b=0;b<d.mmq.length;b++)f=d.mmq[b],a[f.m]&&(c=a[f.m],c[f.f]&&\"function\"==typeof c[f.f]&&(f.a?c[f.f].apply(c,f.a):c[f.f].apply(c)));if(d.tq)for(b=0;b<d.tq.length;b++)a.track(d.tq[b]);d.s=a;break}};a.Util={urlEncode:a.escape,urlDecode:a.unescape,\r\ncookieRead:a.cookieRead,cookieWrite:a.cookieWrite,getQueryParam:function(c,b,d,f){var e,g=\"\";b||(b=a.pageURL?a.pageURL:k.location);d=d?d:\"&\";if(!c||!b)return g;b=\"\"+b;e=b.indexOf(\"?\");if(0>e)return g;b=d+b.substring(e+1)+d;if(!f||!(0<=b.indexOf(d+c+d)||0<=b.indexOf(d+c+\"=\"+d))){e=b.indexOf(\"#\");0<=e&&(b=b.substr(0,e)+d);e=b.indexOf(d+c+\"=\");if(0>e)return g;b=b.substring(e+d.length+c.length+1);e=b.indexOf(d);0<=e&&(b=b.substring(0,e));0<b.length&&(g=a.unescape(b));return g}},getIeVersion:function(){if(document.documentMode)return document.documentMode;\r\nfor(var a=7;4<a;a--){var b=document.createElement(\"div\");b.innerHTML=\"\\x3c!--[if IE \"+a+\"]><span></span><![endif]--\\x3e\";if(b.getElementsByTagName(\"span\").length)return a}return null}};a.H=\"supplementalDataID timestamp dynamicVariablePrefix visitorID marketingCloudVisitorID analyticsVisitorID audienceManagerLocationHint authState fid vmk visitorMigrationKey visitorMigrationServer visitorMigrationServerSecure charSet visitorNamespace cookieDomainPeriods fpCookieDomainPeriods cookieLifetime pageName pageURL customerPerspective referrer contextData currencyCode lightProfileID lightStoreForSeconds lightIncrementBy retrieveLightProfiles deleteLightProfiles retrieveLightData\".split(\" \");\r\na.g=a.H.concat(\"purchaseID variableProvider channel server pageType transactionID campaign state zip events events2 products audienceManagerBlob tnt\".split(\" \"));a.oa=\"timestamp charSet visitorNamespace cookieDomainPeriods cookieLifetime contextData lightProfileID lightStoreForSeconds lightIncrementBy\".split(\" \");a.P=a.oa.slice(0);a.Ca=\"account allAccounts debugTracking visitor visitorOptedOut trackOffline offlineLimit offlineThrottleDelay offlineFilename usePlugins doPlugins configURL visitorSampling visitorSamplingGroup linkObject clickObject linkURL linkName linkType trackDownloadLinks trackExternalLinks trackClickMap trackInlineStats linkLeaveQueryString linkTrackVars linkTrackEvents linkDownloadFileTypes linkExternalFilters linkInternalFilters useForcedLinkTracking forcedLinkTrackingTimeout trackingServer trackingServerSecure ssl abort mobile dc lightTrackVars maxDelay expectSupplementalData usePostbacks registerPreTrackCallback registerPostTrackCallback AudienceManagement\".split(\" \");\r\nfor(m=0;250>=m;m++)76>m&&(a.g.push(\"prop\"+m),a.P.push(\"prop\"+m)),a.g.push(\"eVar\"+m),a.P.push(\"eVar\"+m),6>m&&a.g.push(\"hier\"+m),4>m&&a.g.push(\"list\"+m);m=\"pe pev1 pev2 pev3 latitude longitude resolution colorDepth javascriptVersion javaEnabled cookiesEnabled browserWidth browserHeight connectionType homepage pageURLRest marketingCloudOrgID\".split(\" \");a.g=a.g.concat(m);a.H=a.H.concat(m);a.ssl=0<=k.location.protocol.toLowerCase().indexOf(\"https\");a.charSet=\"UTF-8\";a.contextData={};a.offlineThrottleDelay=\r\n0;a.offlineFilename=\"AppMeasurement.offline\";a.Ra=0;a.ma=0;a.O=0;a.Qa=0;a.linkDownloadFileTypes=\"exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx\";a.w=k;a.d=k.document;try{if(a.Wa=!1,navigator){var v=navigator.userAgent;if(\"Microsoft Internet Explorer\"==navigator.appName||0<=v.indexOf(\"MSIE \")||0<=v.indexOf(\"Trident/\")&&0<=v.indexOf(\"Windows NT 6\"))a.Wa=!0}}catch(x){}a.ha=function(){a.ia&&(k.clearTimeout(a.ia),a.ia=p);a.l&&a.K&&a.l.dispatchEvent(a.K);a.A&&(\"function\"==typeof a.A?a.A():\r\na.l&&a.l.href&&(a.d.location=a.l.href));a.l=a.K=a.A=0};a.Ua=function(){a.b=a.d.body;a.b?(a.v=function(c){var b,d,f,e,g;if(!(a.d&&a.d.getElementById(\"cppXYctnr\")||c&&c[\"s_fe_\"+a._in])){if(a.Ea)if(a.useForcedLinkTracking)a.b.removeEventListener(\"click\",a.v,!1);else{a.b.removeEventListener(\"click\",a.v,!0);a.Ea=a.useForcedLinkTracking=0;return}else a.useForcedLinkTracking=0;a.clickObject=c.srcElement?c.srcElement:c.target;try{if(!a.clickObject||a.N&&a.N==a.clickObject||!(a.clickObject.tagName||a.clickObject.parentElement||\r\na.clickObject.parentNode))a.clickObject=0;else{var h=a.N=a.clickObject;a.la&&(clearTimeout(a.la),a.la=0);a.la=setTimeout(function(){a.N==h&&(a.N=0)},1E4);f=a.La();a.track();if(f<a.La()&&a.useForcedLinkTracking&&c.target){for(e=c.target;e&&e!=a.b&&\"A\"!=e.tagName.toUpperCase()&&\"AREA\"!=e.tagName.toUpperCase();)e=e.parentNode;if(e&&(g=e.href,a.Na(g)||(g=0),d=e.target,c.target.dispatchEvent&&g&&(!d||\"_self\"==d||\"_top\"==d||\"_parent\"==d||k.name&&d==k.name))){try{b=a.d.createEvent(\"MouseEvents\")}catch(l){b=\r\nnew k.MouseEvent}if(b){try{b.initMouseEvent(\"click\",c.bubbles,c.cancelable,c.view,c.detail,c.screenX,c.screenY,c.clientX,c.clientY,c.ctrlKey,c.altKey,c.shiftKey,c.metaKey,c.button,c.relatedTarget)}catch(m){b=0}b&&(b[\"s_fe_\"+a._in]=b.s_fe=1,c.stopPropagation(),c.stopImmediatePropagation&&c.stopImmediatePropagation(),c.preventDefault(),a.l=c.target,a.K=b)}}}}}catch(n){a.clickObject=0}}},a.b&&a.b.attachEvent?a.b.attachEvent(\"onclick\",a.v):a.b&&a.b.addEventListener&&(navigator&&(0<=navigator.userAgent.indexOf(\"WebKit\")&&\r\na.d.createEvent||0<=navigator.userAgent.indexOf(\"Firefox/2\")&&k.MouseEvent)&&(a.Ea=1,a.useForcedLinkTracking=1,a.b.addEventListener(\"click\",a.v,!0)),a.b.addEventListener(\"click\",a.v,!1))):setTimeout(a.Ua,30)};a.Cb();a.ac||(r?a.setAccount(r):a.F(\"Error, missing Report Suite ID in AppMeasurement initialization\"),a.Ua(),a.loadModule(\"ActivityMap\"))}" ]
[ "0.47174537", "0.4658246", "0.45285463", "0.45032862", "0.44835344", "0.44350168", "0.4382653", "0.43627265", "0.43324777", "0.4301593", "0.42541128", "0.42418656", "0.4221815", "0.42179117", "0.41816333", "0.41801563", "0.41795337", "0.417805", "0.4176735", "0.41745046", "0.4172715", "0.416532", "0.4140857", "0.4140857", "0.4125978", "0.41207212", "0.41181394", "0.41115952", "0.41091898", "0.41079316", "0.41062677", "0.41049024", "0.41027054", "0.41022694", "0.410083", "0.4095065", "0.40917927", "0.40812904", "0.40807405", "0.40791658", "0.40771678", "0.40754294", "0.40733093", "0.407272", "0.40688023", "0.40591353", "0.40538645", "0.40534827", "0.4049118", "0.40481293", "0.40477178", "0.40440556", "0.40431336", "0.4041285", "0.40409878", "0.4040742", "0.4034237", "0.40251347", "0.4021832", "0.401967", "0.40185636", "0.40154555", "0.40134138", "0.40127307", "0.40119314", "0.40104625", "0.40068188", "0.40068188", "0.40059087", "0.4004625", "0.3991457", "0.3990997", "0.39907634", "0.39872354", "0.3983524", "0.39815342", "0.39802438", "0.39802438", "0.39802438", "0.39799574", "0.39766735", "0.39765778", "0.39743623", "0.39739642", "0.39738163", "0.39735964", "0.396918", "0.3966224", "0.39611036", "0.39610842", "0.3960728", "0.3956596", "0.39565182", "0.39551875", "0.3950826", "0.39456856", "0.3944749", "0.39428768", "0.39405105", "0.39404854", "0.39403772" ]
0.0
-1
Mouse wheel (and 2finger trackpad) support on the web sucks. It is complicated, thus this doc is long and (hopefully) detailed enough to answer your questions. If you need to react to the mouse wheel in a predictable way, this code is like your bestest friend. hugs As of today, there are 4 DOM event types you can listen to: 'wheel' Chrome(31+), FF(17+), IE(9+) 'mousewheel' Chrome, IE(6+), Opera, Safari 'MozMousePixelScroll' FF(3.5 only!) (20102013) don't bother! 'DOMMouseScroll' FF(0.9.7+) since 2003 So what to do? The is the best: normalizeWheel.getEventType(); In your event callback, use this code to get sane interpretation of the deltas. This code will return an object with properties: spinX normalized spin speed (use for zoom) x plane spinY " y plane pixelX normalized distance (to pixels) x plane pixelY " y plane Wheel values are provided by the browser assuming you are using the wheel to scroll a web page by a number of lines or pixels (or pages). Values can vary significantly on different platforms and browsers, forgetting that you can scroll at different speeds. Some devices (like trackpads) emit more events at smaller increments with fine granularity, and some emit massive jumps with linear speed or acceleration. This code does its best to normalize the deltas for you: spin is trying to normalize how far the wheel was spun (or trackpad dragged). This is super useful for zoom support where you want to throw away the chunky scroll steps on the PC and make those equal to the slow and smooth tiny steps on the Mac. Key data: This code tries to resolve a single slow step on a wheel to 1. pixel is normalizing the desired scroll delta in pixel units. You'll get the crazy differences between browsers, but at least it'll be in pixels! positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT. This should translate to positive value zooming IN, negative zooming OUT. This matches the newer 'wheel' event. Why are there spinX, spinY (or pixels)? spinX is a 2finger side drag on the trackpad, and a shift + wheel turn with a mouse. It results in sidescrolling in the browser by default. spinY is what you expect it's the classic axis of a mouse wheel. I dropped spinZ/pixelZ. It is supported by the DOM 3 'wheel' event and probably is by browsers in conjunction with fancy 3D controllers .. but you know. Implementation info: Examples of 'wheel' event if you scroll slowly (down) by one step with an average mouse: OS X + Chrome (mouse) 4 pixel delta (wheelDelta 120) OS X + Safari (mouse) N/A pixel delta (wheelDelta 12) OS X + Firefox (mouse) 0.1 line delta (wheelDelta N/A) Win8 + Chrome (mouse) 100 pixel delta (wheelDelta 120) Win8 + Firefox (mouse) 3 line delta (wheelDelta 120) On the trackpad: OS X + Chrome (trackpad) 2 pixel delta (wheelDelta 6) OS X + Firefox (trackpad) 1 pixel delta (wheelDelta N/A) On other/older browsers.. it's more complicated as there can be multiple and also missing delta values. The 'wheel' event is more standard: The basics is that it includes a unit, deltaMode (pixels, lines, pages), and deltaX, deltaY and deltaZ. Some browsers provide other values to maintain backward compatibility with older events. Those other values help us better normalize spin speed. Example of what the browsers provide: | event.wheelDelta | event.detail ++ Safari v5/OS X | 120 | 0 Safari v5/Win7 | 120 | 0 Chrome v17/OS X | 120 | 0 Chrome v17/Win7 | 120 | 0 IE9/Win7 | 120 | undefined Firefox v4/OS X | undefined | 1 Firefox v4/Win7 | undefined | 3
function normalizeWheel(/*object*/ event) /*object*/ { var sX = 0, sY = 0, // spinX, spinY pX = 0, pY = 0; // pixelX, pixelY // Legacy if ('detail' in event) { sY = event.detail; } if ('wheelDelta' in event) { sY = -event.wheelDelta / 120; } if ('wheelDeltaY' in event) { sY = -event.wheelDeltaY / 120; } if ('wheelDeltaX' in event) { sX = -event.wheelDeltaX / 120; } // side scrolling on FF with DOMMouseScroll if ( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) { sX = sY; sY = 0; } pX = sX * PIXEL_STEP; pY = sY * PIXEL_STEP; if ('deltaY' in event) { pY = event.deltaY; } if ('deltaX' in event) { pX = event.deltaX; } if ((pX || pY) && event.deltaMode) { if (event.deltaMode == 1) { // delta in LINE units pX *= LINE_HEIGHT; pY *= LINE_HEIGHT; } else { // delta in PAGE units pX *= PAGE_HEIGHT; pY *= PAGE_HEIGHT; } } // Fall-back if spin cannot be determined if (pX && !sX) { sX = (pX < 1) ? -1 : 1; } if (pY && !sY) { sY = (pY < 1) ? -1 : 1; } return { spinX : sX, spinY : sY, pixelX : pX, pixelY : pY }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wheel(event) {\n var delta = 0;\n if (!event) /* For IE. */\n event = window.event;\n\n console.log('event.wheelDelta:' + event.wheelDelta);\n\n if (event.wheelDelta) { /* IE/Opera. */\n // delta = event.wheelDelta / 120;\n delta = event.wheelDelta / 90; //by ms2\n /** In Opera 9, delta differs in sign as compared to IE.\n */\n if (window.opera)\n delta = -delta;\n }\n else if (event.detail) { /** Mozilla case. */\n /** In Mozilla, sign of delta is different than in IE.\n * Also, delta is multiple of 3.\n */\n delta = -event.detail / 3;\n }\n /** If delta is nonzero, handle it.\n * Basically, delta is now positive if wheel was scrolled up,\n * and negative, if wheel was scrolled down.\n */\n if (delta)\n handle(delta, event);\n }", "function normalizeWheel( /*object*/event) /*object*/{\n var sX = 0,\n sY = 0,\n // spinX, spinY\n pX = 0,\n pY = 0; // pixelX, pixelY\n\n // Legacy\n if ('detail' in event) {\n sY = event.detail;\n }\n if ('wheelDelta' in event) {\n sY = -event.wheelDelta / 120;\n }\n if ('wheelDeltaY' in event) {\n sY = -event.wheelDeltaY / 120;\n }\n if ('wheelDeltaX' in event) {\n sX = -event.wheelDeltaX / 120;\n }\n\n // side scrolling on FF with DOMMouseScroll\n if ('axis' in event && event.axis === event.HORIZONTAL_AXIS) {\n sX = sY;\n sY = 0;\n }\n\n pX = sX * PIXEL_STEP;\n pY = sY * PIXEL_STEP;\n\n if ('deltaY' in event) {\n pY = event.deltaY;\n }\n if ('deltaX' in event) {\n pX = event.deltaX;\n }\n\n if ((pX || pY) && event.deltaMode) {\n if (event.deltaMode == 1) {\n // delta in LINE units\n pX *= LINE_HEIGHT;\n pY *= LINE_HEIGHT;\n } else {\n // delta in PAGE units\n pX *= PAGE_HEIGHT;\n pY *= PAGE_HEIGHT;\n }\n }\n\n // Fall-back if spin cannot be determined\n if (pX && !sX) {\n sX = pX < 1 ? -1 : 1;\n }\n if (pY && !sY) {\n sY = pY < 1 ? -1 : 1;\n }\n\n return { spinX: sX,\n spinY: sY,\n pixelX: pX,\n pixelY: pY };\n}", "function normalizeWheel( /*object*/event) /*object*/{\n var sX = 0,\n sY = 0,\n // spinX, spinY\n pX = 0,\n pY = 0; // pixelX, pixelY\n\n // Legacy\n if ('detail' in event) {\n sY = event.detail;\n }\n if ('wheelDelta' in event) {\n sY = -event.wheelDelta / 120;\n }\n if ('wheelDeltaY' in event) {\n sY = -event.wheelDeltaY / 120;\n }\n if ('wheelDeltaX' in event) {\n sX = -event.wheelDeltaX / 120;\n }\n\n // side scrolling on FF with DOMMouseScroll\n if ('axis' in event && event.axis === event.HORIZONTAL_AXIS) {\n sX = sY;\n sY = 0;\n }\n\n pX = sX * PIXEL_STEP;\n pY = sY * PIXEL_STEP;\n\n if ('deltaY' in event) {\n pY = event.deltaY;\n }\n if ('deltaX' in event) {\n pX = event.deltaX;\n }\n\n if ((pX || pY) && event.deltaMode) {\n if (event.deltaMode == 1) {\n // delta in LINE units\n pX *= LINE_HEIGHT;\n pY *= LINE_HEIGHT;\n } else {\n // delta in PAGE units\n pX *= PAGE_HEIGHT;\n pY *= PAGE_HEIGHT;\n }\n }\n\n // Fall-back if spin cannot be determined\n if (pX && !sX) {\n sX = pX < 1 ? -1 : 1;\n }\n if (pY && !sY) {\n sY = pY < 1 ? -1 : 1;\n }\n\n return { spinX: sX,\n spinY: sY,\n pixelX: pX,\n pixelY: pY };\n}", "function normalizeWheel( /*object*/ event ) /*object*/ {\r\n // Reasonable defaults\r\n var PIXEL_STEP = 10;\r\n var LINE_HEIGHT = 40;\r\n var PAGE_HEIGHT = 800;\r\n \r\n var sX = 0, sY = 0, // spinX, spinY\r\n pX = 0, pY = 0; // pixelX, pixelY\r\n \r\n // Legacy\r\n if( 'detail' in event ) {\r\n sY = event.detail;\r\n }\r\n if( 'wheelDelta' in event ) {\r\n sY = -event.wheelDelta / 120;\r\n }\r\n if( 'wheelDeltaY' in event ) {\r\n sY = -event.wheelDeltaY / 120;\r\n }\r\n if( 'wheelDeltaX' in event ) {\r\n sX = -event.wheelDeltaX / 120;\r\n }\r\n \r\n // side scrolling on FF with DOMMouseScroll\r\n if( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {\r\n sX = sY;\r\n sY = 0;\r\n }\r\n \r\n pX = sX * PIXEL_STEP;\r\n pY = sY * PIXEL_STEP;\r\n \r\n if( 'deltaY' in event ) {\r\n pY = event.deltaY;\r\n }\r\n if( 'deltaX' in event ) {\r\n pX = event.deltaX;\r\n }\r\n \r\n if( (pX || pY) && event.deltaMode ) {\r\n if( event.deltaMode === 1 ) { // delta in LINE units\r\n pX *= LINE_HEIGHT;\r\n pY *= LINE_HEIGHT;\r\n } else { // delta in PAGE units\r\n pX *= PAGE_HEIGHT;\r\n pY *= PAGE_HEIGHT;\r\n }\r\n }\r\n \r\n // Fall-back if spin cannot be determined\r\n if( pX && !sX ) {\r\n sX = (pX < 1) ? -1 : 1;\r\n }\r\n if( pY && !sY ) {\r\n sY = (pY < 1) ? -1 : 1;\r\n }\r\n \r\n return {\r\n spinX: sX,\r\n spinY: sY,\r\n pixelX: pX,\r\n pixelY: pY\r\n };\r\n }", "function normalizeWheel( /*object*/event) /*object*/{\n\t // Reasonable defaults\n\t var PIXEL_STEP = 10;\n\t var LINE_HEIGHT = 40;\n\t var PAGE_HEIGHT = 800;\n\t\n\t var sX = 0,\n\t sY = 0,\n\t // spinX, spinY\n\t pX = 0,\n\t pY = 0; // pixelX, pixelY\n\t\n\t // Legacy\n\t if ('detail' in event) {\n\t sY = event.detail;\n\t }\n\t if ('wheelDelta' in event) {\n\t sY = -event.wheelDelta / 120;\n\t }\n\t if ('wheelDeltaY' in event) {\n\t sY = -event.wheelDeltaY / 120;\n\t }\n\t if ('wheelDeltaX' in event) {\n\t sX = -event.wheelDeltaX / 120;\n\t }\n\t\n\t // side scrolling on FF with DOMMouseScroll\n\t if ('axis' in event && event.axis === event.HORIZONTAL_AXIS) {\n\t sX = sY;\n\t sY = 0;\n\t }\n\t\n\t pX = sX * PIXEL_STEP;\n\t pY = sY * PIXEL_STEP;\n\t\n\t if ('deltaY' in event) {\n\t pY = event.deltaY;\n\t }\n\t if ('deltaX' in event) {\n\t pX = event.deltaX;\n\t }\n\t\n\t if ((pX || pY) && event.deltaMode) {\n\t if (event.deltaMode === 1) {\n\t // delta in LINE units\n\t pX *= LINE_HEIGHT;\n\t pY *= LINE_HEIGHT;\n\t } else {\n\t // delta in PAGE units\n\t pX *= PAGE_HEIGHT;\n\t pY *= PAGE_HEIGHT;\n\t }\n\t }\n\t\n\t // Fall-back if spin cannot be determined\n\t if (pX && !sX) {\n\t sX = pX < 1 ? -1 : 1;\n\t }\n\t if (pY && !sY) {\n\t sY = pY < 1 ? -1 : 1;\n\t }\n\t\n\t return {\n\t spinX: sX,\n\t spinY: sY,\n\t pixelX: pX,\n\t pixelY: pY\n\t };\n\t }", "function normalizeWheel( /*object*/event) /*object*/{\n\t // Reasonable defaults\n\t var PIXEL_STEP = 10;\n\t var LINE_HEIGHT = 40;\n\t var PAGE_HEIGHT = 800;\n\n\t var sX = 0,\n\t sY = 0,\n\t // spinX, spinY\n\t pX = 0,\n\t pY = 0; // pixelX, pixelY\n\n\t // Legacy\n\t if ('detail' in event) {\n\t sY = event.detail;\n\t }\n\t if ('wheelDelta' in event) {\n\t sY = -event.wheelDelta / 120;\n\t }\n\t if ('wheelDeltaY' in event) {\n\t sY = -event.wheelDeltaY / 120;\n\t }\n\t if ('wheelDeltaX' in event) {\n\t sX = -event.wheelDeltaX / 120;\n\t }\n\n\t // side scrolling on FF with DOMMouseScroll\n\t if ('axis' in event && event.axis === event.HORIZONTAL_AXIS) {\n\t sX = sY;\n\t sY = 0;\n\t }\n\n\t pX = sX * PIXEL_STEP;\n\t pY = sY * PIXEL_STEP;\n\n\t if ('deltaY' in event) {\n\t pY = event.deltaY;\n\t }\n\t if ('deltaX' in event) {\n\t pX = event.deltaX;\n\t }\n\n\t if ((pX || pY) && event.deltaMode) {\n\t if (event.deltaMode === 1) {\n\t // delta in LINE units\n\t pX *= LINE_HEIGHT;\n\t pY *= LINE_HEIGHT;\n\t } else {\n\t // delta in PAGE units\n\t pX *= PAGE_HEIGHT;\n\t pY *= PAGE_HEIGHT;\n\t }\n\t }\n\n\t // Fall-back if spin cannot be determined\n\t if (pX && !sX) {\n\t sX = pX < 1 ? -1 : 1;\n\t }\n\t if (pY && !sY) {\n\t sY = pY < 1 ? -1 : 1;\n\t }\n\n\t return {\n\t spinX: sX,\n\t spinY: sY,\n\t pixelX: pX,\n\t pixelY: pY\n\t };\n\t }", "function normalizeWheel( /*object*/ event ) /*object*/ {\r\n // Reasonable defaults\r\n var PIXEL_STEP = 10;\r\n var LINE_HEIGHT = 40;\r\n var PAGE_HEIGHT = 800;\r\n\r\n var sX = 0, sY = 0, // spinX, spinY\r\n pX = 0, pY = 0; // pixelX, pixelY\r\n\r\n // Legacy\r\n if( 'detail' in event ) {\r\n sY = event.detail;\r\n }\r\n if( 'wheelDelta' in event ) {\r\n sY = -event.wheelDelta / 120;\r\n }\r\n if( 'wheelDeltaY' in event ) {\r\n sY = -event.wheelDeltaY / 120;\r\n }\r\n if( 'wheelDeltaX' in event ) {\r\n sX = -event.wheelDeltaX / 120;\r\n }\r\n\r\n // side scrolling on FF with DOMMouseScroll\r\n if( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {\r\n sX = sY;\r\n sY = 0;\r\n }\r\n\r\n pX = sX * PIXEL_STEP;\r\n pY = sY * PIXEL_STEP;\r\n\r\n if( 'deltaY' in event ) {\r\n pY = event.deltaY;\r\n }\r\n if( 'deltaX' in event ) {\r\n pX = event.deltaX;\r\n }\r\n\r\n if( (pX || pY) && event.deltaMode ) {\r\n if( event.deltaMode === 1 ) { // delta in LINE units\r\n pX *= LINE_HEIGHT;\r\n pY *= LINE_HEIGHT;\r\n } else { // delta in PAGE units\r\n pX *= PAGE_HEIGHT;\r\n pY *= PAGE_HEIGHT;\r\n }\r\n }\r\n\r\n // Fall-back if spin cannot be determined\r\n if( pX && !sX ) {\r\n sX = (pX < 1) ? -1 : 1;\r\n }\r\n if( pY && !sY ) {\r\n sY = (pY < 1) ? -1 : 1;\r\n }\r\n\r\n return {\r\n spinX: sX,\r\n spinY: sY,\r\n pixelX: pX,\r\n pixelY: pY\r\n };\r\n }", "function normalizeWheel( /*object*/ event ) /*object*/ {\n // Reasonable defaults\n var PIXEL_STEP = 10;\n var LINE_HEIGHT = 40;\n var PAGE_HEIGHT = 800;\n \n var sX = 0, sY = 0, // spinX, spinY\n pX = 0, pY = 0; // pixelX, pixelY\n \n // Legacy\n if( 'detail' in event ) {\n sY = event.detail;\n }\n if( 'wheelDelta' in event ) {\n sY = -event.wheelDelta / 120;\n }\n if( 'wheelDeltaY' in event ) {\n sY = -event.wheelDeltaY / 120;\n }\n if( 'wheelDeltaX' in event ) {\n sX = -event.wheelDeltaX / 120;\n }\n \n // side scrolling on FF with DOMMouseScroll\n if( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {\n sX = sY;\n sY = 0;\n }\n \n pX = sX * PIXEL_STEP;\n pY = sY * PIXEL_STEP;\n \n if( 'deltaY' in event ) {\n pY = event.deltaY;\n }\n if( 'deltaX' in event ) {\n pX = event.deltaX;\n }\n \n if( (pX || pY) && event.deltaMode ) {\n if( event.deltaMode === 1 ) { // delta in LINE units\n pX *= LINE_HEIGHT;\n pY *= LINE_HEIGHT;\n } else { // delta in PAGE units\n pX *= PAGE_HEIGHT;\n pY *= PAGE_HEIGHT;\n }\n }\n \n // Fall-back if spin cannot be determined\n if( pX && !sX ) {\n sX = (pX < 1) ? -1 : 1;\n }\n if( pY && !sY ) {\n sY = (pY < 1) ? -1 : 1;\n }\n \n return {\n spinX: sX,\n spinY: sY,\n pixelX: pX,\n pixelY: pY\n };\n }", "function normalizeWheel( /*object*/ event ) /*object*/ {\n // Reasonable defaults\n var PIXEL_STEP = 10;\n var LINE_HEIGHT = 40;\n var PAGE_HEIGHT = 800;\n \n var sX = 0, sY = 0, // spinX, spinY\n pX = 0, pY = 0; // pixelX, pixelY\n \n // Legacy\n if( 'detail' in event ) {\n sY = event.detail;\n }\n if( 'wheelDelta' in event ) {\n sY = -event.wheelDelta / 120;\n }\n if( 'wheelDeltaY' in event ) {\n sY = -event.wheelDeltaY / 120;\n }\n if( 'wheelDeltaX' in event ) {\n sX = -event.wheelDeltaX / 120;\n }\n \n // side scrolling on FF with DOMMouseScroll\n if( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {\n sX = sY;\n sY = 0;\n }\n \n pX = sX * PIXEL_STEP;\n pY = sY * PIXEL_STEP;\n \n if( 'deltaY' in event ) {\n pY = event.deltaY;\n }\n if( 'deltaX' in event ) {\n pX = event.deltaX;\n }\n \n if( (pX || pY) && event.deltaMode ) {\n if( event.deltaMode === 1 ) { // delta in LINE units\n pX *= LINE_HEIGHT;\n pY *= LINE_HEIGHT;\n } else { // delta in PAGE units\n pX *= PAGE_HEIGHT;\n pY *= PAGE_HEIGHT;\n }\n }\n \n // Fall-back if spin cannot be determined\n if( pX && !sX ) {\n sX = (pX < 1) ? -1 : 1;\n }\n if( pY && !sY ) {\n sY = (pY < 1) ? -1 : 1;\n }\n \n return {\n spinX: sX,\n spinY: sY,\n pixelX: pX,\n pixelY: pY\n };\n }", "function normalizeWheel( /*object*/ event ) /*object*/ {\n // Reasonable defaults\n var PIXEL_STEP = 10;\n var LINE_HEIGHT = 40;\n var PAGE_HEIGHT = 800;\n \n var sX = 0, sY = 0, // spinX, spinY\n pX = 0, pY = 0; // pixelX, pixelY\n \n // Legacy\n if( 'detail' in event ) {\n sY = event.detail;\n }\n if( 'wheelDelta' in event ) {\n sY = -event.wheelDelta / 120;\n }\n if( 'wheelDeltaY' in event ) {\n sY = -event.wheelDeltaY / 120;\n }\n if( 'wheelDeltaX' in event ) {\n sX = -event.wheelDeltaX / 120;\n }\n \n // side scrolling on FF with DOMMouseScroll\n if( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {\n sX = sY;\n sY = 0;\n }\n \n pX = sX * PIXEL_STEP;\n pY = sY * PIXEL_STEP;\n \n if( 'deltaY' in event ) {\n pY = event.deltaY;\n }\n if( 'deltaX' in event ) {\n pX = event.deltaX;\n }\n \n if( (pX || pY) && event.deltaMode ) {\n if( event.deltaMode === 1 ) { // delta in LINE units\n pX *= LINE_HEIGHT;\n pY *= LINE_HEIGHT;\n } else { // delta in PAGE units\n pX *= PAGE_HEIGHT;\n pY *= PAGE_HEIGHT;\n }\n }\n \n // Fall-back if spin cannot be determined\n if( pX && !sX ) {\n sX = (pX < 1) ? -1 : 1;\n }\n if( pY && !sY ) {\n sY = (pY < 1) ? -1 : 1;\n }\n \n return {\n spinX: sX,\n spinY: sY,\n pixelX: pX,\n pixelY: pY\n };\n }", "function normalizeWheel( /*object*/ event ) /*object*/ {\n // Reasonable defaults\n var PIXEL_STEP = 10;\n var LINE_HEIGHT = 40;\n var PAGE_HEIGHT = 800;\n \n var sX = 0, sY = 0, // spinX, spinY\n pX = 0, pY = 0; // pixelX, pixelY\n \n // Legacy\n if( 'detail' in event ) {\n sY = event.detail;\n }\n if( 'wheelDelta' in event ) {\n sY = -event.wheelDelta / 120;\n }\n if( 'wheelDeltaY' in event ) {\n sY = -event.wheelDeltaY / 120;\n }\n if( 'wheelDeltaX' in event ) {\n sX = -event.wheelDeltaX / 120;\n }\n \n // side scrolling on FF with DOMMouseScroll\n if( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {\n sX = sY;\n sY = 0;\n }\n \n pX = sX * PIXEL_STEP;\n pY = sY * PIXEL_STEP;\n \n if( 'deltaY' in event ) {\n pY = event.deltaY;\n }\n if( 'deltaX' in event ) {\n pX = event.deltaX;\n }\n \n if( (pX || pY) && event.deltaMode ) {\n if( event.deltaMode === 1 ) { // delta in LINE units\n pX *= LINE_HEIGHT;\n pY *= LINE_HEIGHT;\n } else { // delta in PAGE units\n pX *= PAGE_HEIGHT;\n pY *= PAGE_HEIGHT;\n }\n }\n \n // Fall-back if spin cannot be determined\n if( pX && !sX ) {\n sX = (pX < 1) ? -1 : 1;\n }\n if( pY && !sY ) {\n sY = (pY < 1) ? -1 : 1;\n }\n \n return {\n spinX: sX,\n spinY: sY,\n pixelX: pX,\n pixelY: pY\n };\n }", "function normalizeWheel( /*object*/ event ) /*object*/ {\n // Reasonable defaults\n var PIXEL_STEP = 10;\n var LINE_HEIGHT = 40;\n var PAGE_HEIGHT = 800;\n \n var sX = 0, sY = 0, // spinX, spinY\n pX = 0, pY = 0; // pixelX, pixelY\n \n // Legacy\n if( 'detail' in event ) {\n sY = event.detail;\n }\n if( 'wheelDelta' in event ) {\n sY = -event.wheelDelta / 120;\n }\n if( 'wheelDeltaY' in event ) {\n sY = -event.wheelDeltaY / 120;\n }\n if( 'wheelDeltaX' in event ) {\n sX = -event.wheelDeltaX / 120;\n }\n \n // side scrolling on FF with DOMMouseScroll\n if( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {\n sX = sY;\n sY = 0;\n }\n \n pX = sX * PIXEL_STEP;\n pY = sY * PIXEL_STEP;\n \n if( 'deltaY' in event ) {\n pY = event.deltaY;\n }\n if( 'deltaX' in event ) {\n pX = event.deltaX;\n }\n \n if( (pX || pY) && event.deltaMode ) {\n if( event.deltaMode === 1 ) { // delta in LINE units\n pX *= LINE_HEIGHT;\n pY *= LINE_HEIGHT;\n } else { // delta in PAGE units\n pX *= PAGE_HEIGHT;\n pY *= PAGE_HEIGHT;\n }\n }\n \n // Fall-back if spin cannot be determined\n if( pX && !sX ) {\n sX = (pX < 1) ? -1 : 1;\n }\n if( pY && !sY ) {\n sY = (pY < 1) ? -1 : 1;\n }\n \n return {\n spinX: sX,\n spinY: sY,\n pixelX: pX,\n pixelY: pY\n };\n }", "function normalizeWheel( /*object*/ event ) /*object*/ {\n // Reasonable defaults\n var PIXEL_STEP = 10;\n var LINE_HEIGHT = 40;\n var PAGE_HEIGHT = 800;\n \n var sX = 0, sY = 0, // spinX, spinY\n pX = 0, pY = 0; // pixelX, pixelY\n \n // Legacy\n if( 'detail' in event ) {\n sY = event.detail;\n }\n if( 'wheelDelta' in event ) {\n sY = -event.wheelDelta / 120;\n }\n if( 'wheelDeltaY' in event ) {\n sY = -event.wheelDeltaY / 120;\n }\n if( 'wheelDeltaX' in event ) {\n sX = -event.wheelDeltaX / 120;\n }\n \n // side scrolling on FF with DOMMouseScroll\n if( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {\n sX = sY;\n sY = 0;\n }\n \n pX = sX * PIXEL_STEP;\n pY = sY * PIXEL_STEP;\n \n if( 'deltaY' in event ) {\n pY = event.deltaY;\n }\n if( 'deltaX' in event ) {\n pX = event.deltaX;\n }\n \n if( (pX || pY) && event.deltaMode ) {\n if( event.deltaMode === 1 ) { // delta in LINE units\n pX *= LINE_HEIGHT;\n pY *= LINE_HEIGHT;\n } else { // delta in PAGE units\n pX *= PAGE_HEIGHT;\n pY *= PAGE_HEIGHT;\n }\n }\n \n // Fall-back if spin cannot be determined\n if( pX && !sX ) {\n sX = (pX < 1) ? -1 : 1;\n }\n if( pY && !sY ) {\n sY = (pY < 1) ? -1 : 1;\n }\n \n return {\n spinX: sX,\n spinY: sY,\n pixelX: pX,\n pixelY: pY\n };\n }", "function normalizeWheel( /*object*/ event ) /*object*/ {\n // Reasonable defaults\n var PIXEL_STEP = 10;\n var LINE_HEIGHT = 40;\n var PAGE_HEIGHT = 800;\n \n var sX = 0, sY = 0, // spinX, spinY\n pX = 0, pY = 0; // pixelX, pixelY\n \n // Legacy\n if( 'detail' in event ) {\n sY = event.detail;\n }\n if( 'wheelDelta' in event ) {\n sY = -event.wheelDelta / 120;\n }\n if( 'wheelDeltaY' in event ) {\n sY = -event.wheelDeltaY / 120;\n }\n if( 'wheelDeltaX' in event ) {\n sX = -event.wheelDeltaX / 120;\n }\n \n // side scrolling on FF with DOMMouseScroll\n if( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {\n sX = sY;\n sY = 0;\n }\n \n pX = sX * PIXEL_STEP;\n pY = sY * PIXEL_STEP;\n \n if( 'deltaY' in event ) {\n pY = event.deltaY;\n }\n if( 'deltaX' in event ) {\n pX = event.deltaX;\n }\n \n if( (pX || pY) && event.deltaMode ) {\n if( event.deltaMode === 1 ) { // delta in LINE units\n pX *= LINE_HEIGHT;\n pY *= LINE_HEIGHT;\n } else { // delta in PAGE units\n pX *= PAGE_HEIGHT;\n pY *= PAGE_HEIGHT;\n }\n }\n \n // Fall-back if spin cannot be determined\n if( pX && !sX ) {\n sX = (pX < 1) ? -1 : 1;\n }\n if( pY && !sY ) {\n sY = (pY < 1) ? -1 : 1;\n }\n \n return {\n spinX: sX,\n spinY: sY,\n pixelX: pX,\n pixelY: pY\n };\n }", "function normalizeWheel( /*object*/ event ) /*object*/ {\n // Reasonable defaults\n var PIXEL_STEP = 10;\n var LINE_HEIGHT = 40;\n var PAGE_HEIGHT = 800;\n \n var sX = 0, sY = 0, // spinX, spinY\n pX = 0, pY = 0; // pixelX, pixelY\n \n // Legacy\n if( 'detail' in event ) {\n sY = event.detail;\n }\n if( 'wheelDelta' in event ) {\n sY = -event.wheelDelta / 120;\n }\n if( 'wheelDeltaY' in event ) {\n sY = -event.wheelDeltaY / 120;\n }\n if( 'wheelDeltaX' in event ) {\n sX = -event.wheelDeltaX / 120;\n }\n \n // side scrolling on FF with DOMMouseScroll\n if( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {\n sX = sY;\n sY = 0;\n }\n \n pX = sX * PIXEL_STEP;\n pY = sY * PIXEL_STEP;\n \n if( 'deltaY' in event ) {\n pY = event.deltaY;\n }\n if( 'deltaX' in event ) {\n pX = event.deltaX;\n }\n \n if( (pX || pY) && event.deltaMode ) {\n if( event.deltaMode === 1 ) { // delta in LINE units\n pX *= LINE_HEIGHT;\n pY *= LINE_HEIGHT;\n } else { // delta in PAGE units\n pX *= PAGE_HEIGHT;\n pY *= PAGE_HEIGHT;\n }\n }\n \n // Fall-back if spin cannot be determined\n if( pX && !sX ) {\n sX = (pX < 1) ? -1 : 1;\n }\n if( pY && !sY ) {\n sY = (pY < 1) ? -1 : 1;\n }\n \n return {\n spinX: sX,\n spinY: sY,\n pixelX: pX,\n pixelY: pY\n };\n }", "function wheel(event){\n var delta = 0;\n if (!event) /* For IE. */\n event = window.event;\n if (event.wheelDelta) { /* IE/Opera. */\n delta = event.wheelDelta/120;\n } else if (event.detail) { /** Mozilla case. */\n /** In Mozilla, sign of delta is different than in IE.\n * Also, delta is multiple of 3.\n */\n delta = -event.detail/3;\n }\n /** If delta is nonzero, handle it.\n * Basically, delta is now positive if wheel was scrolled up,\n * and negative, if wheel was scrolled down.\n */\n if (delta) {\n handleWheel(delta, event);\n }\n /** Prevent default actions caused by mouse wheel.\n * That might be ugly, but we handle scrolls somehow\n * anyway, so don't bother here..\n */\n if (event.preventDefault) {\n event.preventDefault();\n }\n event.returnValue = false;\n }", "function normalizeWheel( /*object*/ event ) /*object*/ {\n // Reasonable defaults\n var PIXEL_STEP = 10;\n var LINE_HEIGHT = 40;\n var PAGE_HEIGHT = 800;\n\n var sX = 0, sY = 0, // spinX, spinY\n pX = 0, pY = 0; // pixelX, pixelY\n\n // Legacy\n if( 'detail' in event ) {\n sY = event.detail;\n }\n if( 'wheelDelta' in event ) {\n sY = -event.wheelDelta / 120;\n }\n if( 'wheelDeltaY' in event ) {\n sY = -event.wheelDeltaY / 120;\n }\n if( 'wheelDeltaX' in event ) {\n sX = -event.wheelDeltaX / 120;\n }\n\n // side scrolling on FF with DOMMouseScroll\n if( 'axis' in event && event.axis === event.HORIZONTAL_AXIS ) {\n sX = sY;\n sY = 0;\n }\n\n pX = sX * PIXEL_STEP;\n pY = sY * PIXEL_STEP;\n\n if( 'deltaY' in event ) {\n pY = event.deltaY;\n }\n if( 'deltaX' in event ) {\n pX = event.deltaX;\n }\n\n if( (pX || pY) && event.deltaMode ) {\n if( event.deltaMode === 1 ) { // delta in LINE units\n pX *= LINE_HEIGHT;\n pY *= LINE_HEIGHT;\n } else { // delta in PAGE units\n pX *= PAGE_HEIGHT;\n pY *= PAGE_HEIGHT;\n }\n }\n\n // Fall-back if spin cannot be determined\n if( pX && !sX ) {\n sX = (pX < 1) ? -1 : 1;\n }\n if( pY && !sY ) {\n sY = (pY < 1) ? -1 : 1;\n }\n\n return {\n spinX: sX,\n spinY: sY,\n pixelX: pX,\n pixelY: pY\n };\n }", "function normalizeWheel( /*object*/event) /*object*/{\n // Reasonable defaults\n var PIXEL_STEP = 10;\n var LINE_HEIGHT = 40;\n var PAGE_HEIGHT = 800;\n\n var sX = 0,\n sY = 0,\n // spinX, spinY\n pX = 0,\n pY = 0; // pixelX, pixelY\n\n // Legacy\n if ('detail' in event) {\n sY = event.detail;\n }\n if ('wheelDelta' in event) {\n sY = -event.wheelDelta / 120;\n }\n if ('wheelDeltaY' in event) {\n sY = -event.wheelDeltaY / 120;\n }\n if ('wheelDeltaX' in event) {\n sX = -event.wheelDeltaX / 120;\n }\n\n // side scrolling on FF with DOMMouseScroll\n if ('axis' in event && event.axis === event.HORIZONTAL_AXIS) {\n sX = sY;\n sY = 0;\n }\n\n pX = sX * PIXEL_STEP;\n pY = sY * PIXEL_STEP;\n\n if ('deltaY' in event) {\n pY = event.deltaY;\n }\n if ('deltaX' in event) {\n pX = event.deltaX;\n }\n\n if ((pX || pY) && event.deltaMode) {\n if (event.deltaMode === 1) {\n // delta in LINE units\n pX *= LINE_HEIGHT;\n pY *= LINE_HEIGHT;\n } else {\n // delta in PAGE units\n pX *= PAGE_HEIGHT;\n pY *= PAGE_HEIGHT;\n }\n }\n\n // Fall-back if spin cannot be determined\n if (pX && !sX) {\n sX = pX < 1 ? -1 : 1;\n }\n if (pY && !sY) {\n sY = pY < 1 ? -1 : 1;\n }\n\n return {\n spinX: sX,\n spinY: sY,\n pixelX: pX,\n pixelY: pY\n };\n }", "function wheelEventLs(event) {\n var delta = 0;\n if (!event) { /* For IE. */\n event = window.event;\n }\n if (event.wheelDelta) { /* IE/Opera. */\n delta = event.wheelDelta / 120;\n } else if (event.detail) {\n /**\n * Mozilla case.\n *\n * In Mozilla, sign of delta is different than in IE. Also,\n * delta is multiple of 3.\n */\n delta = -event.detail / 3;\n }\n\n os.fireEvent('mousewheel', Ext.EventObject.setEvent(event), delta);\n }", "function detectWheel() {\n return mouseWheel = 'onwheel' in document.createElement('div') ?\n 'wheel' : // Modern browsers support \"wheel\"\n\n document.onmousewheel !== undefined ?\n 'mousewheel' : // Webkit and IE support at least \"mousewheel\"\n 'DOMMouseScroll'; // let's assume that remaining browsers are older Firefox\n }", "function detectWheel() {\n return mouseWheel = 'onwheel' in document.createElement('div') ? 'wheel' : // Modern browsers support \"wheel\"\n\n document.onmousewheel !== undefined ? 'mousewheel' : // Webkit and IE support at least \"mousewheel\"\n 'DOMMouseScroll'; // let's assume that remaining browsers are older Firefox\n }", "function mouseWheel(browserEvent) {\n\t return browserEvent.type === _browserevent2.default.MOUSE_WHEEL || browserEvent.type === _browserevent2.default.WHEEL;\n\t}", "function wheel(event) {\n var delta = 0;\n if (event.wheelDelta) {(delta = event.wheelDelta / 120);}\n else if (event.detail) {(delta = -event.detail / 3);}\n\n handle(delta);\n if (event.preventDefault) {(event.preventDefault());}\n event.returnValue = false;\n}", "function $getEventWheel(e) {\r\n\t\tif (e.wheelDelta) return e.wheelDelta;\r\n\t\tif (e.detail) return e.detail;\r\n\t\treturn 0;\r\n\t}", "function mouseWheel(event) {\n // Only works if vibration is on.\n if (Bubble.vibration) {\n if (event.delta > 0) {\n // Scrolled down.\n Bubble.decreaseVibrationStep();\n } else {\n // Scrolled up.\n Bubble.increaseVibrationStep();\n }\n }\n}", "function mouseWheelEvent(e){\n var mCtx = metricsContext;\n var delta = 0;\n\n // console.log(e);\n switch (e.type){\n case 'DOMMouseScroll': // FireFox\n delta = Math.round(e.wheelDelta || e.detail*10);\n break;\n\n case 'mousewheel': // Chrome (e.deltaY), IE & Opera (e.wheelDelta)\n delta = Math.round(e.deltaX || e.deltaY || e.wheelDelta);\n break; \n \n default:\n console.log('Currently \"%s\" type is not supported.', e.type);\n return false;\n }\n mCtx.translated = restrictRange(mCtx.translated+delta);\n // translated += delta;\n\n drawText();\n e.preventDefault();\n e.stopPropagation();\n\n // mouseController.wheel(e);\n return false; \n}", "function MouseWheel (e) {\n e = e || window.event;\n // alert(['scrolled ', (( e.wheelDelta <= 0 || e.detail > 0) ? 'down' : 'up')].join(''));\n delta = e.deltaY;\n //console.log(\"in func\" + delta);\n return e;\n}", "function Browser_GetMouseWheelDelta(event)\n{\n\t//return the mouse wheel delta or the detail times -40\n\treturn event.wheelDelta ? event.wheelDelta : event.detail * -40;\n}", "function onWheel( tracker, event ) {\n handleWheelEvent( tracker, event, event, false );\n }", "function addWheelListener( elem, callback, useCapture ) {\n _addWheelListener( elem, support, callback, useCapture );\n\n // handle MozMousePixelScroll in older Firefox\n if( support == \"DOMMouseScroll\" ) {\n _addWheelListener( elem, \"MozMousePixelScroll\", callback, useCapture );\n }\n}", "function addWheelListener( elem, callback, useCapture ) {\n _addWheelListener( elem, support, callback, useCapture );\n\n // handle MozMousePixelScroll in older Firefox\n if( support == \"DOMMouseScroll\" ) {\n _addWheelListener( elem, \"MozMousePixelScroll\", callback, useCapture );\n }\n}", "onWheel(e) {\n // Rewriting default behavior\n e.preventDefault();\n window.scrollBy(e.deltaY, 0);\n\n // Depending methods\n this.scrollBarWidth();\n this.scrollBarHighlight();\n this.closePosition();\n this.backgroundHeaderPosition(e);\n }", "function wheel(event) {\n\n var delta = 0;\n // Indicates that zoom has been 'activated'.\n TFplanner.grid.zoomed = true;\n\n /* For IE. */\n if (!event) {\n event = window.event;\n }\n /* IE/Opera. */\n if (event.wheelDelta) { \n delta = event.wheelDelta/120;\n\n /** Mozilla case. */\n } else if (event.detail) { \n /** In Mozilla, sign of delta is different than in IE.\n * Also, delta is multiple of 3.\n */\n delta = -event.detail/3;\n }\n /** If delta is nonzero, handle it.\n * Basically, delta is now positive if wheel was scrolled up,\n * and negative, if wheel was scrolled down.\n */\n if (delta) {\n TFplanner.grid.handle(delta);\n }\n \n /** Prevent default actions caused by mouse wheel.\n * That might be ugly, but we handle scrolls somehow\n * anyway, so don't bother here..\n */\n if (event.preventDefault) {\n event.preventDefault();\n }\n \n event.returnValue = false;\n }", "function wheel(event) {\n\t\tvar \tevent = window.event || event, // old IE support\n\t\t\t\tdelta = Math.max(-1, Math.min(1, (event.wheelDelta || -event.detail)));\n\t\tadd_speed( delta*options.wheel_mutiplier );\n\t\tinit_inertia();\n\t\tevent.stopPropagation();\n\t\tevent.preventDefault();\n\t}", "function handleWheelEvent( tracker, event, originalEvent, isTouch ) {\n var nDelta = 0,\n propagate;\n\n isTouch = isTouch || false;\n\n // The nDelta variable is gated to provide smooth z-index scrolling\n // since the mouse wheel allows for substantial deltas meant for rapid\n // y-index scrolling.\n // event.deltaMode: 0=pixel, 1=line, 2=page\n // TODO: Deltas in pixel mode should be accumulated then a scroll value computed after $.DEFAULT_SETTINGS.pixelsPerWheelLine threshold reached\n nDelta = event.deltaY < 0 ? 1 : -1;\n\n if ( tracker.scrollHandler ) {\n propagate = tracker.scrollHandler(\n {\n eventSource: tracker,\n position: getMouseRelative( event, tracker.element ),\n scroll: nDelta,\n shift: event.shiftKey,\n isTouchEvent: isTouch,\n originalEvent: originalEvent,\n preventDefaultAction: false,\n userData: tracker.userData\n }\n );\n if ( propagate === false ) {\n $.cancelEvent( originalEvent );\n }\n }\n }", "function onMouseWheel( tracker, event ) {\n // For legacy IE, access the global (window) event object\n event = event || window.event;\n\n // Simulate a 'wheel' event\n var simulatedEvent = {\n target: event.target || event.srcElement,\n type: \"wheel\",\n shiftKey: event.shiftKey || false,\n clientX: event.clientX,\n clientY: event.clientY,\n pageX: event.pageX ? event.pageX : event.clientX,\n pageY: event.pageY ? event.pageY : event.clientY,\n deltaMode: event.type == \"MozMousePixelScroll\" ? 0 : 1, // 0=pixel, 1=line, 2=page\n deltaX: 0,\n deltaZ: 0\n };\n\n // Calculate deltaY\n if ( $.MouseTracker.wheelEventName == \"mousewheel\" ) {\n simulatedEvent.deltaY = - 1 / $.DEFAULT_SETTINGS.pixelsPerWheelLine * event.wheelDelta;\n } else {\n simulatedEvent.deltaY = event.detail;\n }\n\n handleWheelEvent( tracker, simulatedEvent, event, false );\n }", "function applyWheel(e){\n\t var evt = window.event || e \t\t\t\t\t\t\t\t\t//equalize event object\n\t var delta = evt.detail? evt.detail*(-120) : evt.wheelDelta \t\t//check for detail first so Opera uses that instead of wheelDelta\n\t \n\t // If you start wheeling the mouse stock for the first time since 3 seconds, update viewportX, Y\n\t \tstartWheel = new Date();\n\t \tdiffWheel = (startWheel- lastWheel) / 1000;\n\n\t //console.log(delta);\n\n\t wall.goScale(delta);\n\t}", "mouseWheel(e) {\n if (!e) {\n e = window.event;\n }\n this._modifiers(e);\n let _delta;\n if (e.wheelDelta) {\n _delta = 0 - (e.wheelDelta / 120);\n }\n else if (e.detail) {\n _delta = 0 - (e.detail / 3);\n }\n if (BROWSER_TYPE.opera || BROWSER_TYPE.safari) {\n _delta = 0 - _delta;\n }\n const focused = this._listeners.focused;\n const _wantsToStopTheEvent = [];\n const _mouseWheelable = this._listeners.byEvent.mouseWheel;\n this._filterViewIdToValidView(focused, _viewId => {\n return _mouseWheelable.includes(_viewId);\n }).filter(_ctrl => {\n return this.isFunction(_ctrl.mouseWheel);\n }).forEach(_ctrl => {\n if (_ctrl.mouseWheel(_delta)) {\n _wantsToStopTheEvent.push(_ctrl.viewId);\n }\n });\n if (_wantsToStopTheEvent.length !== 0) {\n Event.stop(e);\n }\n }", "mouseWheel(e) {\n if (!e) {\n e = window.event;\n }\n this._modifiers(e);\n let _delta;\n if (e.wheelDelta) {\n _delta = 0 - (e.wheelDelta / 120);\n }\n else if (e.detail) {\n _delta = 0 - (e.detail / 3);\n }\n if (BROWSER_TYPE.opera || BROWSER_TYPE.safari) {\n _delta = 0 - _delta;\n }\n const focused = this._listeners.focused;\n const _wantsToStopTheEvent = [];\n const _mouseWheelable = this._listeners.byEvent.mouseWheel;\n this._filterViewIdToValidView(focused, _viewId => {\n return _mouseWheelable.includes(_viewId);\n }).filter(_ctrl => {\n return this.isFunction(_ctrl.mouseWheel);\n }).forEach(_ctrl => {\n if (_ctrl.mouseWheel(_delta)) {\n _wantsToStopTheEvent.push(_ctrl.viewId);\n }\n });\n if (_wantsToStopTheEvent.length !== 0) {\n Event.stop(e);\n }\n }", "function addWheelListener(elem, callback, useCapture) {\n _addWheelListener(elem, support, callback, useCapture);\n\n // handle MozMousePixelScroll in older Firefox\n if (support == \"DOMMouseScroll\") {\n _addWheelListener(elem, \"MozMousePixelScroll\", callback, useCapture);\n }\n }", "function Dragging_Wheel(event)\n{\n\t//has drag data?\n\tif (__DRAG_DATA && __DRAG_DATA.OnWheel)\n\t{\n\t\t//call it\n\t\t__DRAG_DATA.OnWheel(event);\n\t}\n}", "mouseWheel(_delta) {}", "function _mouseWheelHandler(e) {\n // cross-browser wheel delta\n var e = window.event || e; // old IE support\n var delta = Math.max(-1, Math.min(1, (e.wheelDelta || -e.detail)));\n\n // adjusts the camera zoom by the delta,\n // either + or - 1\n _cameraZoomAdjustment( delta*0.01 );\n\n return false;\n }", "function addMouseWheelHandler() {\n var prefix = '';\n\n var _addEventListener;\n\n if (window.addEventListener) {\n _addEventListener = \"addEventListener\";\n } else {\n _addEventListener = \"attachEvent\";\n prefix = 'on';\n } // detect available wheel event\n\n\n var support = 'onwheel' in document.createElement('div') ? 'wheel' : // Modern browsers support \"wheel\"\n document.onmousewheel !== undefined ? 'mousewheel' : // Webkit and IE support at least \"mousewheel\"\n 'DOMMouseScroll'; // let's assume that remaining browsers are older Firefox\n\n var passiveEvent = g_supportsPassive ? {\n passive: false\n } : false;\n\n if (support == 'DOMMouseScroll') {\n document[_addEventListener](prefix + 'MozMousePixelScroll', MouseWheelHandler, passiveEvent);\n } //handle MozMousePixelScroll in older Firefox\n else {\n document[_addEventListener](prefix + support, MouseWheelHandler, passiveEvent);\n }\n }", "function onFireFoxScroll(event) {\n if (!inVirtual.value) return;\n isMouseScroll = event.detail === wheelValue;\n }", "function wheel(element, event) {\n\n // Since we have a new wheel event, reset our timer waiting for the last\n // wheel event to pass.\n if (element._lastWheelTimeout) {\n clearTimeout(element._lastWheelTimeout);\n }\n element._lastWheelTimeout = setTimeout(function () {\n wheelTimedOut(element);\n }, WHEEL_TIME);\n\n var deltaX = event.deltaX;\n var deltaY = event.deltaY;\n\n // See if element event represents acceleration or deceleration.\n var acceleration = sign(deltaX) * (deltaX - element._lastDeltaX);\n element._lastDeltaX = deltaX;\n // console.log(deltaX + \" \" + acceleration + \" \" + element._absorbDeceleration + \" \" + element._postNavigateDelayComplete);\n\n if (Math.abs(deltaX) < Math.abs(deltaY)) {\n // Move was mostly vertical. The user may be trying scroll with the\n // trackpad/wheel. To be on the safe, we ignore such events.\n return false;\n }\n\n if (element._postNavigateDelayComplete) {\n // It's too soon after a navigation; ignore the event.\n return true;\n }\n\n if (acceleration > 0) {\n // The events are not (or are no longer) decelerating, so we can start\n // paying attention to them again.\n element._absorbDeceleration = false;\n } else if (element._absorbDeceleration) {\n // The wheel event was likely faked to simulate deceleration; ignore it.\n return true;\n }\n\n element._wheelDistance += deltaX;\n\n // Update the position of the items being navigated.\n var width = element.offsetWidth;\n var position = width > 0 ? element._wheelDistance / width : 0;\n element.showTransition(false);\n position = sign(position) * Math.min(Math.abs(position), 1);\n element.position = position;\n\n // If the user has dragged enough to reach the previous/next item, then\n // complete a navigation to that item.\n if (position === 1) {\n // console.log(\"goRight\");\n element.showTransition(true);\n element.goRight();\n postNavigate(element);\n } else if (position === -1) {\n // console.log(\"goLeft\");\n element.showTransition(true);\n element.goLeft();\n postNavigate(element);\n }\n\n return true;\n}", "onWheel(ev) {\n const amount = this._getPixelsScrolled(ev);\n if (amount === 0) {\n return false;\n }\n this._viewportElement.scrollTop += amount;\n return this._bubbleScroll(ev, amount);\n }", "function handleWheel(delta, event) {\n\n QMouse.isMouseWheel = true;\n\n // Update Mouse Position\n QMouse.X = event.offsetX | event.layerX;\n QMouse.Y = event.offsetY | event.layerY;\n\n QMouse.wheelDelta = delta;\n if (0 < delta)\n $('#zoom-control-up img').click();\n\n if (0 > delta)\n $('#zoom-control-down img').click();\n\n QMouse.isMouseWheel = false;\n QMouse.wheelDelta = 0;\n }", "function onWheel (aEvent) {\n let is_ctrlKey;\n let is_metaKey;\n if (isMacOS) {\n\tis_ctrlKey = aEvent.metaKey;\n\tis_metaKey = aEvent.ctrlKey;\n }\n else {\n\tis_ctrlKey = aEvent.ctrlKey;\n\tis_metaKey = aEvent.metaKey;\n }\n if (is_ctrlKey && !aEvent.altKey && !is_metaKey && !aEvent.shiftKey) {\n\taEvent.preventDefault();\n }\n}", "function mouseWheel(event) {\n pos += event.delta;\n}", "function addMouseWheelHandler() {\n var prefix = '';\n var _addEventListener;\n\n if (window.addEventListener) {\n _addEventListener = \"addEventListener\";\n } else {\n _addEventListener = \"attachEvent\";\n prefix = 'on';\n }\n\n // detect available wheel event\n var support = 'onwheel' in document.createElement('div') ? 'wheel' : // Modern browsers support \"wheel\"\n document.onmousewheel !== undefined ? 'mousewheel' : // Webkit and IE support at least \"mousewheel\"\n 'DOMMouseScroll'; // let's assume that remaining browsers are older Firefox\n\n\n if (support == 'DOMMouseScroll') {\n document[_addEventListener](prefix + 'MozMousePixelScroll', MouseWheelHandler, false);\n }\n\n //handle MozMousePixelScroll in older Firefox\n else {\n document[_addEventListener](prefix + support, MouseWheelHandler, false);\n }\n }", "function wheelHandler() {\n // console.log(event.deltaX, event.deltaY, event.deltaFactor);\n if (toogleScrollEvent === true) {\n toogleScrollEvent = false;\n\n\n // Disable scrolling\n $('.page').unbind('mousewheel', wheelHandler);\n animate();\n }\n}", "function MouseWheelHandler(e) {\n e.preventDefault(); // prevent default browser scroll\n clearInterval(interval); // cancel previous animation\n ++mult; // we are going to scroll faster\n var delta = -Math.max(-1, Math.min(1, (e.wheelDelta || -e.detail)));\n if(dir!=delta) { // scroll direction changed\n mult = 1; // start slowly\n dir = delta;\n }\n for(var tgt=e.target; tgt!=document.documentElement; tgt=tgt.parentNode) {\n var oldScroll = tgt.scrollTop;\n tgt.scrollTop+= delta;\n if(oldScroll!=tgt.scrollTop) break;\n }\n var start = tgt.scrollTop;\n var end = start + length*mult*delta; // where to end the scroll\n var change = end - start; // base change in one step\n var step = 0; // current step\n interval = setInterval(function() {\n var pos = Math.easeOut(step++,start,change,steps);\n //window.scrollTo(0,pos);\n tgt.scrollTop = pos;\n if(step>=steps) { // scroll finished without speed up - stop by easing out\n mult = 0;\n clearInterval(interval);\n }\n },10);\n }", "function addMouseWheelHandler(){\r\n var prefix = '';\r\n var _addEventListener;\r\n\r\n if (window.addEventListener){\r\n _addEventListener = \"addEventListener\";\r\n }else{\r\n _addEventListener = \"attachEvent\";\r\n prefix = 'on';\r\n }\r\n\r\n // detect available wheel event\r\n var support = 'onwheel' in document.createElement('div') ? 'wheel' : // Modern browsers support \"wheel\"\r\n document.onmousewheel !== undefined ? 'mousewheel' : // Webkit and IE support at least \"mousewheel\"\r\n 'DOMMouseScroll'; // let's assume that remaining browsers are older Firefox\r\n var passiveEvent = g_supportsPassive ? {passive: false }: false;\r\n\r\n if(support == 'DOMMouseScroll'){\r\n document[ _addEventListener ](prefix + 'MozMousePixelScroll', MouseWheelHandler, passiveEvent);\r\n }\r\n\r\n //handle MozMousePixelScroll in older Firefox\r\n else{\r\n document[ _addEventListener ](prefix + support, MouseWheelHandler, passiveEvent);\r\n }\r\n }", "function addMouseWheelHandler(){\r\n var prefix = '';\r\n var _addEventListener;\r\n\r\n if (window.addEventListener){\r\n _addEventListener = \"addEventListener\";\r\n }else{\r\n _addEventListener = \"attachEvent\";\r\n prefix = 'on';\r\n }\r\n\r\n // detect available wheel event\r\n var support = 'onwheel' in document.createElement('div') ? 'wheel' : // Modern browsers support \"wheel\"\r\n document.onmousewheel !== undefined ? 'mousewheel' : // Webkit and IE support at least \"mousewheel\"\r\n 'DOMMouseScroll'; // let's assume that remaining browsers are older Firefox\r\n\r\n\r\n if(support == 'DOMMouseScroll'){\r\n document[ _addEventListener ](prefix + 'MozMousePixelScroll', MouseWheelHandler, false);\r\n }\r\n\r\n //handle MozMousePixelScroll in older Firefox\r\n else{\r\n document[ _addEventListener ](prefix + support, MouseWheelHandler, false);\r\n }\r\n }", "function handleWheelMove(event) {\n if (event.deltaY > 50) {\n scrollDown = true;\n checkDirection();\n }\n else if (event.deltaY < -50) {\n scrollDown = false;\n checkDirection();\n }\n\n // increase/decrease page index base on direction\n function checkDirection() {\n switch (scrollDown) {\n case true:\n moveDownOnePage();\n break;\n\n case false:\n moveUpOnePage();\n break;\n }\n }\n function moveDownOnePage() {\n if ( pageIndex < listBtns.length - 1 ) {\n ++ pageIndex;\n } else {\n pageIndex = 0;\n }\n }\n function moveUpOnePage() {\n if ( pageIndex > 0 ) {\n -- pageIndex;\n } else {\n pageIndex = listBtns.length -1;\n }\n }\n }", "function addMouseWheelHandler(){\r\n var prefix = '';\r\n var _addEventListener;\r\n\r\n if (window.addEventListener){\r\n _addEventListener = \"addEventListener\";\r\n }else{\r\n _addEventListener = \"attachEvent\";\r\n prefix = 'on';\r\n }\r\n\r\n // detect available wheel event\r\n var support = 'onwheel' in document.createElement('div') ? 'wheel' : // Modern browsers support \"wheel\"\r\n document.onmousewheel !== undefined ? 'mousewheel' : // Webkit and IE support at least \"mousewheel\"\r\n 'DOMMouseScroll'; // let's assume that remaining browsers are older Firefox\r\n\r\n\r\n if(support == 'DOMMouseScroll'){\r\n document[ _addEventListener ](prefix + 'MozMousePixelScroll', MouseWheelHandler, false);\r\n }\r\n\r\n //handle MozMousePixelScroll in older Firefox\r\n else{\r\n document[ _addEventListener ](prefix + support, MouseWheelHandler, false);\r\n }\r\n }", "function addMouseWheelHandler(){\r\n var prefix = '';\r\n var _addEventListener;\r\n\r\n if (window.addEventListener){\r\n _addEventListener = \"addEventListener\";\r\n }else{\r\n _addEventListener = \"attachEvent\";\r\n prefix = 'on';\r\n }\r\n\r\n // detect available wheel event\r\n var support = 'onwheel' in document.createElement('div') ? 'wheel' : // Modern browsers support \"wheel\"\r\n document.onmousewheel !== undefined ? 'mousewheel' : // Webkit and IE support at least \"mousewheel\"\r\n 'DOMMouseScroll'; // let's assume that remaining browsers are older Firefox\r\n\r\n\r\n if(support == 'DOMMouseScroll'){\r\n document[ _addEventListener ](prefix + 'MozMousePixelScroll', MouseWheelHandler, false);\r\n }\r\n\r\n //handle MozMousePixelScroll in older Firefox\r\n else{\r\n document[ _addEventListener ](prefix + support, MouseWheelHandler, false);\r\n }\r\n }", "function addMouseWheelHandler(){\r\n var prefix = '';\r\n var _addEventListener;\r\n\r\n if (window.addEventListener){\r\n _addEventListener = \"addEventListener\";\r\n }else{\r\n _addEventListener = \"attachEvent\";\r\n prefix = 'on';\r\n }\r\n\r\n // detect available wheel event\r\n var support = 'onwheel' in document.createElement('div') ? 'wheel' : // Modern browsers support \"wheel\"\r\n document.onmousewheel !== undefined ? 'mousewheel' : // Webkit and IE support at least \"mousewheel\"\r\n 'DOMMouseScroll'; // let's assume that remaining browsers are older Firefox\r\n\r\n\r\n if(support == 'DOMMouseScroll'){\r\n document[ _addEventListener ](prefix + 'MozMousePixelScroll', MouseWheelHandler, false);\r\n }\r\n\r\n //handle MozMousePixelScroll in older Firefox\r\n else{\r\n document[ _addEventListener ](prefix + support, MouseWheelHandler, false);\r\n }\r\n }", "function addMouseWheelHandler(){\n var prefix = '';\n var _addEventListener;\n\n if (window.addEventListener){\n _addEventListener = \"addEventListener\";\n }else{\n _addEventListener = \"attachEvent\";\n prefix = 'on';\n }\n\n // detect available wheel event\n var support = 'onwheel' in document.createElement('div') ? 'wheel' : // Modern browsers support \"wheel\"\n document.onmousewheel !== undefined ? 'mousewheel' : // Webkit and IE support at least \"mousewheel\"\n 'DOMMouseScroll'; // let's assume that remaining browsers are older Firefox\n\n\n if(support == 'DOMMouseScroll'){\n document[ _addEventListener ](prefix + 'MozMousePixelScroll', MouseWheelHandler, false);\n }\n\n //handle MozMousePixelScroll in older Firefox\n else{\n document[ _addEventListener ](prefix + support, MouseWheelHandler, false);\n }\n }", "function addMouseWheelHandler(){\n var prefix = '';\n var _addEventListener;\n\n if (window.addEventListener){\n _addEventListener = \"addEventListener\";\n }else{\n _addEventListener = \"attachEvent\";\n prefix = 'on';\n }\n\n // detect available wheel event\n var support = 'onwheel' in document.createElement('div') ? 'wheel' : // Modern browsers support \"wheel\"\n document.onmousewheel !== undefined ? 'mousewheel' : // Webkit and IE support at least \"mousewheel\"\n 'DOMMouseScroll'; // let's assume that remaining browsers are older Firefox\n\n\n if(support == 'DOMMouseScroll'){\n document[ _addEventListener ](prefix + 'MozMousePixelScroll', MouseWheelHandler, false);\n }\n\n //handle MozMousePixelScroll in older Firefox\n else{\n document[ _addEventListener ](prefix + support, MouseWheelHandler, false);\n }\n }", "function addMouseWheelHandler(){\n var prefix = '';\n var _addEventListener;\n\n if (window.addEventListener){\n _addEventListener = \"addEventListener\";\n }else{\n _addEventListener = \"attachEvent\";\n prefix = 'on';\n }\n\n // detect available wheel event\n var support = 'onwheel' in document.createElement('div') ? 'wheel' : // Modern browsers support \"wheel\"\n document.onmousewheel !== undefined ? 'mousewheel' : // Webkit and IE support at least \"mousewheel\"\n 'DOMMouseScroll'; // let's assume that remaining browsers are older Firefox\n\n\n if(support == 'DOMMouseScroll'){\n document[ _addEventListener ](prefix + 'MozMousePixelScroll', MouseWheelHandler, false);\n }\n\n //handle MozMousePixelScroll in older Firefox\n else{\n document[ _addEventListener ](prefix + support, MouseWheelHandler, false);\n }\n }", "function addMouseWheelHandler(){\n var prefix = '';\n var _addEventListener;\n\n if (window.addEventListener){\n _addEventListener = \"addEventListener\";\n }else{\n _addEventListener = \"attachEvent\";\n prefix = 'on';\n }\n\n // detect available wheel event\n var support = 'onwheel' in document.createElement('div') ? 'wheel' : // Modern browsers support \"wheel\"\n document.onmousewheel !== undefined ? 'mousewheel' : // Webkit and IE support at least \"mousewheel\"\n 'DOMMouseScroll'; // let's assume that remaining browsers are older Firefox\n var passiveEvent = g_supportsPassive ? {passive: false }: false;\n\n if(support == 'DOMMouseScroll'){\n document[ _addEventListener ](prefix + 'MozMousePixelScroll', MouseWheelHandler, passiveEvent);\n }\n\n //handle MozMousePixelScroll in older Firefox\n else{\n document[ _addEventListener ](prefix + support, MouseWheelHandler, passiveEvent);\n }\n }", "function addMouseWheelHandler(){\n var prefix = '';\n var _addEventListener;\n\n if (window.addEventListener){\n _addEventListener = \"addEventListener\";\n }else{\n _addEventListener = \"attachEvent\";\n prefix = 'on';\n }\n\n // detect available wheel event\n var support = 'onwheel' in document.createElement('div') ? 'wheel' : // Modern browsers support \"wheel\"\n document.onmousewheel !== undefined ? 'mousewheel' : // Webkit and IE support at least \"mousewheel\"\n 'DOMMouseScroll'; // let's assume that remaining browsers are older Firefox\n var passiveEvent = g_supportsPassive ? {passive: false }: false;\n\n if(support == 'DOMMouseScroll'){\n document[ _addEventListener ](prefix + 'MozMousePixelScroll', MouseWheelHandler, passiveEvent);\n }\n\n //handle MozMousePixelScroll in older Firefox\n else{\n document[ _addEventListener ](prefix + support, MouseWheelHandler, passiveEvent);\n }\n }", "function addMouseWheelHandler(){\n var prefix = '';\n var _addEventListener;\n\n if (window.addEventListener){\n _addEventListener = \"addEventListener\";\n }else{\n _addEventListener = \"attachEvent\";\n prefix = 'on';\n }\n\n // detect available wheel event\n var support = 'onwheel' in document.createElement('div') ? 'wheel' : // Modern browsers support \"wheel\"\n document.onmousewheel !== undefined ? 'mousewheel' : // Webkit and IE support at least \"mousewheel\"\n 'DOMMouseScroll'; // let's assume that remaining browsers are older Firefox\n var passiveEvent = g_supportsPassive ? {passive: false }: false;\n\n if(support == 'DOMMouseScroll'){\n document[ _addEventListener ](prefix + 'MozMousePixelScroll', MouseWheelHandler, passiveEvent);\n }\n\n //handle MozMousePixelScroll in older Firefox\n else{\n document[ _addEventListener ](prefix + support, MouseWheelHandler, passiveEvent);\n }\n }", "function mouseWheelHandler(e)\n {\n var e = window.event || e;\n var delta = Math.max(-1, Math.min(1, (e.wheelDelta || -e.detail)));\n if(delta >0) {\n nextImage(e);\n } else {\n previousImage(e);\n }\n return false;\n }", "function onWheel(evt) {\n if (!evt) {\n evt = window.event;\n }\n\n var delta = 0;\n if (evt.wheelDelta) { // IE and Opera\n delta = evt.wheelDelta;\n }\n else if (evt.detail) { // Mozilla\n delta = -evt.detail;\n }\n \n if (delta !== 0) {\n if (evt.shiftKey) {\n rotate(delta);\n }\n else {\n zoom(delta, evt.clientX, evt.clientY);\n }\n }\n \n evt.stopPropagation();\n evt.preventDefault();\n }", "mouseWheel(event) {\r\n\t\tthis.zooming(this.zoom *pow(this.zoomingRate, -event.delta), mouseX, mouseY);\r\n\t}", "_mouseWheelHandler(event) {\n const that = this;\n\n if (!that.computedHorizontalScrollBarVisibility && !that.computedVerticalScrollBarVisibility) {\n return;\n }\n\n if (!that.disabled && that.computedVerticalScrollBarVisibility) {\n event.stopPropagation();\n event.preventDefault();\n that.scrollTo(that.scrollTop + that._getScrollCoefficient(event, that.offsetHeight));\n }\n }", "handleWheel(e) {\n var angleInDegrees = this.state.deg;\n var angleInRadians = this.state.rad;\n if (e.deltaY < 0) {\n if (angleInDegrees <= Constants.MAX_DEG - Constants.BUFF_DEG && angleInDegrees >= Constants.ANGLE_OFFSET_DEG) {\n angleInDegrees = angleInDegrees + Constants.BUFF_DEG;\n angleInRadians = angleInRadians + Constants.BUFF_RAD;\n } else {\n angleInDegrees = Constants.MIN_DEG;\n angleInRadians = Constants.MIN_RAD;\n }\n } else if (e.deltaY > 0) {\n if (angleInDegrees <= Constants.MAX_DEG && angleInDegrees >= Constants.ANGLE_OFFSET_DEG + Constants.BUFF_DEG) {\n angleInDegrees = angleInDegrees - Constants.BUFF_DEG;\n angleInRadians = angleInRadians - Constants.BUFF_RAD;\n } else {\n angleInDegrees = Constants.MAX_DEG;\n angleInRadians = Constants.MAX_RAD;\n }\n }\n this.setState({\n deg: angleInDegrees,\n rad: angleInRadians\n })\n this.handleAngleChanged(angleInRadians, angleInDegrees);\n e.preventDefault();\n }", "function wheel(ev, gl, canvas){\r\n var scroll = ev.deltaY;\r\n \r\n if(buttonE && currPick!=null){\r\n scaleObj(scroll);\r\n }else if(buttonE && currPick===null){\r\n if(lastButton===2){ //right mouse click\r\n moveCamera(scroll);\r\n }else{\r\n zoom(scroll);\r\n }\r\n }\r\n \r\n return false;\r\n}", "function scrollWheel(e)\n{\n if (e.deltaY < 0)\n zoomValue = Math.min(zoomValue + 100, 1600);\n else if (e.deltaY > 0)\n zoomValue = Math.max(zoomValue - 100, 300);\n\n if (e.deltaY != 0)\n updateZoom();\n}", "function getWheelValue(e) {\n\t\te = e || window.event;\n\t\treturn (e.wheelDelta ? e.wheelDelta / 120 : - (e.detail % 3 == 0 ? e.detail : e.detail / 3)); //取得滚轮坐标\n\t}", "function canvasMouseWheel(e){\r\n\tif(!e) e = window.event;\r\n\tif(useStates){\r\n\t\tStates.current().input.mouseWheel(e);\r\n\t}\r\n\tgInput.mouseWheel(e);\r\n}", "function onMouseWheel(event)\n {\n //Normalize event wheel delta\n var delta = event.originalEvent.wheelDelta / 30 || -event.originalEvent.detail;\n\n //If the user scrolled up, it goes to previous slide, otherwise - to next slide\n if(delta < -1)\n {\n goToNextSlide();\n }\n else if(delta > 1)\n {\n goToPrevSlide();\n }\n\n event.preventDefault();\n }", "function _addWheelListener( elem, eventName, callback, useCapture ) {\n elem[ _addEventListener ]( prefix + eventName, support == \"wheel\" ? callback : function( originalEvent ) {\n !originalEvent && ( originalEvent = window.event );\n\n // create a normalized event object\n var event = {\n // keep a ref to the original event object\n originalEvent: originalEvent,\n target: originalEvent.target || originalEvent.srcElement,\n type: \"wheel\",\n deltaMode: originalEvent.type == \"MozMousePixelScroll\" ? 0 : 1,\n deltaX: 0,\n delatZ: 0,\n preventDefault: function() {\n originalEvent.preventDefault ?\n originalEvent.preventDefault() :\n originalEvent.returnValue = false;\n }\n };\n \n // calculate deltaY (and deltaX) according to the event\n if ( support == \"mousewheel\" ) {\n event.deltaY = - 1/40 * originalEvent.wheelDelta;\n // Webkit also support wheelDeltaX\n originalEvent.wheelDeltaX && ( event.deltaX = - 1/40 * originalEvent.wheelDeltaX );\n } else {\n event.deltaY = originalEvent.detail;\n }\n\n // it's time to fire the callback\n return callback( event );\n }, useCapture || false );\n}", "mousewheel_handle(e) {\n // Test if mousewheel option is enabled and Ctrl key is pressed.\n if (!this.options.default_event_handle['enable_mousewheel_handle'] || !e.ctrlKey) {\n return;\n }\n var evt = e || event;\n // Avoid default page scrolling behavior.\n evt.preventDefault();\n\n if (evt.deltaY < 0) {\n this.view.zoom_in(evt); // wheel down\n } else {\n this.view.zoom_out(evt);\n }\n }", "function onDocumentMouseWheel (event) {\n}", "function onMouseWheel(event)\n\t{\n\t\t//Normalize event wheel delta\n\t\tvar delta = event.originalEvent.wheelDelta / 30 || -event.originalEvent.detail;\n\n\t\t//If the user scrolled up, it goes to previous slide, otherwise - to next slide\n\t\tif(delta < -1)\n\t\t{\n\t\t\tgoToNextSlide();\n\t\t}\n\t\telse if(delta > 1)\n\t\t{\n\t\t\tgoToPrevSlide();\n\t\t}\n\n\t\tevent.preventDefault();\n\t}", "_mouseWheelHandler(event) {\n const that = this;\n\n if (that.disabled || !(that._dragDetails && that._dragDetails.started)) {\n return;\n }\n\n //document.documentElement.scrollTop is always 0 in MS EDGE but not in IE11!\n if (event.deltaY < 0 && that._windowParent.scrollElement.scrollTop + event.deltaY <= 0) {\n that.style.top = Math.max(0, that._dragDetails.windowY) + 'px';\n return;\n }\n\n if (event.deltaY > 0 && (that._dragDetails.windowY + that.offsetHeight + event.deltaY >= that._windowParent.scrollElement.scrollHeight ||\n that._windowParent.scrollElement.scrollTop + that._windowParent.element.clientHeight === that._windowParent.scrollElement.scrollHeight)) {\n return;\n }\n\n if (that._dragDetails.type === 'drag') {\n that._dragDetails.windowY += event.deltaY;\n that.style.top = that._dragDetails.windowY + 'px';\n }\n else {\n that._dragDetails.height += event.deltaY;\n that.style.height = that._dragDetails.height + 'px';\n }\n }", "function onMouseWheel(event3D) {\n if (!that.userZoom) {\n return;\n }\n\n var event = event3D.domEvent;\n // wheelDelta --> Chrome, detail --> Firefox\n var delta;\n if (typeof (event.wheelDelta) !== 'undefined') {\n delta = event.wheelDelta;\n } else {\n delta = -event.detail;\n }\n if (delta > 0) {\n that.zoomIn();\n } else {\n that.zoomOut();\n }\n\n this.showAxes();\n }", "function ReactWheelHandler(\nonWheel,\n /*boolean*/ handleScrollX,\n /*boolean*/ handleScrollY,\n /*?boolean*/ stopPropagation)\n {\n this.$ReactWheelHandler_animationFrameID = null;\n this.$ReactWheelHandler_deltaX = 0;\n this.$ReactWheelHandler_deltaY = 0;\n this.$ReactWheelHandler_didWheel = this.$ReactWheelHandler_didWheel.bind(this);\n this.$ReactWheelHandler_handleScrollX = handleScrollX;\n this.$ReactWheelHandler_handleScrollY = handleScrollY;\n this.$ReactWheelHandler_stopPropagation = !!stopPropagation;\n this.$ReactWheelHandler_onWheelCallback = onWheel;\n this.onWheel = this.onWheel.bind(this);\n }", "function handler(event){\n event.type = 'mousewheel';\n event.wheelDelta = event.wheelDelta ? event.wheelDelta/120 : -(event.detail || 0)/3;\n $.browser.mozilla && $.event.handle.apply(this, arguments);\n }", "function wheelPanZoom( event ) {\n event = event.originalEvent;\n if ( event.deltaX === 0 && event.deltaY === 0 )\n return false;\n event.preventDefault();\n if ( event.shiftKey )\n return zoom( event.deltaX+event.deltaY > 0 ? 1 : -1, selectedCenter() );\n else {\n var x=0, y=0;\n if ( Math.abs(event.deltaX) > Math.abs(event.deltaY) )\n x = event.deltaX > 0 ? -0.02 : 0.02;\n else\n y = event.deltaY > 0 ? -0.02 : 0.02;\n return pan(x,y);\n }\n }", "wheelHandler(event) {\n var direction = event.deltaY;\n if (direction > 0) {\n // Scroll down\n if (this._controlFocus === \"camera\") {\n this.CONTROLLABLES[this._controlFocus].matrixWorld.multiply(new THREE.Matrix4().makeTranslation(0, 0, 3 * this.zoomSpeed));\n } else {\n this.CONTROLLABLES[this._controlFocus].matrix.multiply(new THREE.Matrix4().makeTranslation(0, 0, 3 * this.zoomSpeed));\n }\n } else {\n // Scroll up\n if (this._controlFocus === \"camera\") {\n this.CONTROLLABLES[this._controlFocus].matrixWorld.multiply(new THREE.Matrix4().makeTranslation(0, 0, -3 * this.zoomSpeed));\n } else {\n this.CONTROLLABLES[this._controlFocus].matrix.multiply(new THREE.Matrix4().makeTranslation(0, 0, -3 * this.zoomSpeed));\n }\n }\n }", "handleOuterMousewheel (event) {\n // Prevent scrolling of the background\n event.preventDefault()\n event.stopPropagation()\n\n const xThreshold = WHEEL_MOVE_X_THRESHOLD\n let actionDelay = 0\n const imageMoveDelay = 500\n\n this.clearTimeout(this.resetScrollTimeout)\n this.resetScrollTimeout = this.setTimeout(() => {\n this.scrollX = 0\n this.scrollY = 0\n }, 300)\n\n // Prevent rapid-fire zoom behavior\n if (this.wheelActionTimeout !== null || this.isAnimating()) {\n return\n }\n\n if (Math.abs(event.deltaY) < Math.abs(event.deltaX)) {\n // handle horizontal scrolls with image moves\n this.scrollY = 0\n this.scrollX += event.deltaX\n\n const bigLeapX = xThreshold / 2\n // If the scroll amount has accumulated sufficiently, or a large leap was taken\n if (this.scrollX >= xThreshold || event.deltaX >= bigLeapX) {\n // Scroll right moves to next\n this.requestMoveNext(event)\n actionDelay = imageMoveDelay\n this.scrollX = 0\n } else if (this.scrollX <= -1 * xThreshold || event.deltaX <= -1 * bigLeapX) {\n // Scroll left moves to previous\n this.requestMovePrev(event)\n actionDelay = imageMoveDelay\n this.scrollX = 0\n }\n }\n\n // Allow successive actions after the set delay\n if (actionDelay !== 0) {\n this.wheelActionTimeout = this.setTimeout(() => {\n this.wheelActionTimeout = null\n }, actionDelay)\n }\n }", "handleOuterMousewheel(event) {\n // Prevent scrolling of the background\n event.stopPropagation();\n\n const xThreshold = WHEEL_MOVE_X_THRESHOLD;\n let actionDelay = 0;\n const imageMoveDelay = 500;\n\n this.clearTimeout(this.resetScrollTimeout);\n this.resetScrollTimeout = this.setTimeout(() => {\n this.scrollX = 0;\n this.scrollY = 0;\n }, 300);\n\n // Prevent rapid-fire zoom behavior\n if (this.wheelActionTimeout !== null || this.isAnimating()) {\n return;\n }\n\n if (Math.abs(event.deltaY) < Math.abs(event.deltaX)) {\n // handle horizontal scrolls with image moves\n this.scrollY = 0;\n this.scrollX += event.deltaX;\n\n const bigLeapX = xThreshold / 2;\n // If the scroll amount has accumulated sufficiently, or a large leap was taken\n if (this.scrollX >= xThreshold || event.deltaX >= bigLeapX) {\n // Scroll right moves to next\n this.requestMoveNext(event);\n actionDelay = imageMoveDelay;\n this.scrollX = 0;\n } else if (\n this.scrollX <= -1 * xThreshold ||\n event.deltaX <= -1 * bigLeapX\n ) {\n // Scroll left moves to previous\n this.requestMovePrev(event);\n actionDelay = imageMoveDelay;\n this.scrollX = 0;\n }\n }\n\n // Allow successive actions after the set delay\n if (actionDelay !== 0) {\n this.wheelActionTimeout = this.setTimeout(() => {\n this.wheelActionTimeout = null;\n }, actionDelay);\n }\n }", "_patchWheelOverScrolling() {\n const selector = this._selector;\n selector.addEventListener('wheel', e => {\n const scroller = selector._scroller || selector.scrollTarget;\n const scrolledToTop = scroller.scrollTop === 0;\n const scrolledToBottom = scroller.scrollHeight - scroller.scrollTop - scroller.clientHeight <= 1;\n\n if (scrolledToTop && e.deltaY < 0) {\n e.preventDefault();\n } else if (scrolledToBottom && e.deltaY > 0) {\n e.preventDefault();\n }\n });\n }" ]
[ "0.74452955", "0.7360421", "0.7360421", "0.73285323", "0.7291883", "0.72836906", "0.72627944", "0.72615826", "0.72615826", "0.72615826", "0.72615826", "0.72615826", "0.72615826", "0.72615826", "0.72615826", "0.72465014", "0.72219574", "0.7214204", "0.70123476", "0.68367326", "0.6828615", "0.68282443", "0.68206656", "0.67440915", "0.66909695", "0.66671747", "0.66610694", "0.66416013", "0.6622003", "0.6575782", "0.6575782", "0.65686214", "0.656383", "0.6552361", "0.65426046", "0.65277404", "0.64878494", "0.6487308", "0.6487308", "0.6484586", "0.64629585", "0.63536507", "0.6327139", "0.6317398", "0.62867355", "0.62853765", "0.62448114", "0.6241404", "0.6211209", "0.62108254", "0.6210041", "0.6195705", "0.6153746", "0.6145681", "0.61451775", "0.6134873", "0.61221355", "0.61221355", "0.61221355", "0.60978824", "0.60978824", "0.60978824", "0.6090401", "0.6090401", "0.6090401", "0.60719633", "0.60427105", "0.6034114", "0.6008894", "0.6006898", "0.5968276", "0.5950751", "0.5946647", "0.5936779", "0.5904906", "0.59019727", "0.58615166", "0.585821", "0.5840214", "0.5829993", "0.5807702", "0.5795956", "0.5784601", "0.57832205", "0.5782547", "0.5766275", "0.57495844", "0.572568" ]
0.7408591
12
unused harmony export Store / unused harmony export createLogger / unused harmony export createNamespacedHelpers / unused harmony export install / unused harmony export mapActions / unused harmony export mapGetters / unused harmony export mapMutations / unused harmony export mapState /! vuex v3.6.2 (c) 2021 Evan You
function applyMixin (Vue) { var version = Number(Vue.version.split('.')[0]); if (version >= 2) { Vue.mixin({ beforeCreate: vuexInit }); } else { // override init and inject vuex init procedure // for 1.x backwards compatibility. var _init = Vue.prototype._init; Vue.prototype._init = function (options) { if ( options === void 0 ) options = {}; options.init = options.init ? [vuexInit].concat(options.init) : vuexInit; _init.call(this, options); }; } /** * Vuex init hook, injected into each instances init hooks list. */ function vuexInit () { var options = this.$options; // store injection if (options.store) { this.$store = typeof options.store === 'function' ? options.store() : options.store; } else if (options.parent && options.parent.$store) { this.$store = options.parent.$store; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vuexInit(){var options=this.$options;// store injection\n\tif(options.store){this.$store=options.store;}else if(options.parent&&options.parent.$store){this.$store=options.parent.$store;}}", "function vuexInit() {\n\t var options = this.$options;\n\t var store = options.store;\n\t var vuex = options.vuex;\n\t // store injection\n\t\n\t if (store) {\n\t this.$store = store;\n\t } else if (options.parent && options.parent.$store) {\n\t this.$store = options.parent.$store;\n\t }\n\t // vuex option handling\n\t if (vuex) {\n\t if (!this.$store) {\n\t console.warn('[vuex] store not injected. make sure to ' + 'provide the store option in your root component.');\n\t }\n\t var state = vuex.state;\n\t var getters = vuex.getters;\n\t var actions = vuex.actions;\n\t // handle deprecated state option\n\t\n\t if (state && !getters) {\n\t console.warn('[vuex] vuex.state option will been deprecated in 1.0. ' + 'Use vuex.getters instead.');\n\t getters = state;\n\t }\n\t // getters\n\t if (getters) {\n\t options.computed = options.computed || {};\n\t for (var key in getters) {\n\t defineVuexGetter(this, key, getters[key]);\n\t }\n\t }\n\t // actions\n\t if (actions) {\n\t options.methods = options.methods || {};\n\t for (var _key in actions) {\n\t options.methods[_key] = makeBoundAction(this.$store, actions[_key], _key);\n\t }\n\t }\n\t }\n\t }", "function U(He){Le&&(He._devtoolHook=Le,Le.emit('vuex:init',He),Le.on('vuex:travel-to-state',function(Ne){He.replaceState(Ne)}),He.subscribe(function(Ne,je){Le.emit('vuex:mutation',Ne,je)}))}", "function devTools() { // 268\n return function (next) { // 269\n return function (reducer, initialState) { // 270\n var liftedReducer = liftReducer(reducer, initialState); // 271\n var liftedStore = next(liftedReducer); // 272\n var store = unliftStore(liftedStore, reducer); // 273\n return store; // 274\n }; // 275\n }; // 276\n}", "function appendComputed(actions) {\n let keys = Object.keys(actions)\n let states = {};\n keys.forEach((module) => {\n actions[module].states.forEach(state => {\n states['vuex_' + state] = function () {\n return Store.getters[module + '/' + state]\n }\n })\n })\n return states;\n}", "function vuexInit () {\n\t var options = this.$options;\n\t // store injection\n\t if (options.store) {\n\t this.$store = typeof options.store === 'function'\n\t ? options.store()\n\t : options.store;\n\t } else if (options.parent && options.parent.$store) {\n\t this.$store = options.parent.$store;\n\t }\n\t }", "function vuexInit () {\n\t var options = this.$options;\n\t // store injection\n\t if (options.store) {\n\t this.$store = options.store;\n\t } else if (options.parent && options.parent.$store) {\n\t this.$store = options.parent.$store;\n\t }\n\t }", "function vuexInit () {\n\t var options = this.$options;\n\t // store injection\n\t if (options.store) {\n\t this.$store = options.store;\n\t } else if (options.parent && options.parent.$store) {\n\t this.$store = options.parent.$store;\n\t }\n\t }", "function vuexInit () {\n\t var options = this.$options;\n\t // store injection\n\t if (options.store) {\n\t this.$store = options.store;\n\t } else if (options.parent && options.parent.$store) {\n\t this.$store = options.parent.$store;\n\t }\n\t }", "addStore(store) {\n // keep a reference to the store to easy access\n this[store.constructor.name] = store\n // fetch all the store's state and put in the superStore\n for (let key in store.state) {\n Vue.set(this.state, key, store.state[key])\n }\n //override state pointer of the store with the global one -> make the store stateless\n store.state = this.state // -> is it dangerous?\n // register the store's reducer in the global dispacher\n store._dispachToken = this.dispatcher.register(store.reduce.bind(store))\n // take all the actions from the store and pass to them the dispacher and the store as a context\n Object.assign(this.actions, store.actions(this.dispatcher, store))\n // make a ref to the superStore\n store.sStore = this\n }", "static getStores(props) {\n return [HeaderStore, UserStore]\n }", "function vuexInit () {\n\t var options = this.$options\n\t // store injection\n\t if (options.store) {\n\t this.$store = options.store\n\t } else if (options.parent && options.parent.$store) {\n\t this.$store = options.parent.$store\n\t }\n\t }", "beforeCreate(context, _, vueOptions) {\n if (vueOptions.store && vueOptions.store instanceof Store) {\n // Get store from new Vue options\n context.store = vueOptions.store;\n\n // Handle HMR\n onHotReload(() => {\n this.resolveOnHttpRequest(context, true);\n }, 'vuex.onHttpRequest');\n } else {\n Vue.util.warn('UVue Vuex plugin installed but no store found!');\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "static mockStore(state) {\n return {\n subscribe: () => {},\n dispatch: () => {},\n getState: () => {\n return {...state};\n }\n };\n }", "static mapState(state) {\n let {mode} = state.core.sync;\n let {\n products, search_criteria, total_count, search_key,\n updated_products, updated_stocks, request_mode, updated_catalogrule_prices,\n deleted_catalogrule_prices\n } = state.core.product.productList;\n return {\n mode, products, search_criteria, total_count, search_key,\n updated_products, updated_stocks, request_mode, updated_catalogrule_prices,\n deleted_catalogrule_prices\n };\n }", "function vuexInit () {\n const options = this.$options // 获取vue的配置选项\n // store injection \n // 根实例是否有store配置\n if (options.store) {\n // 给根实例挂载$store属性\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store\n } else if (options.parent && options.parent.$store) {\n // 给子组件挂载$store属性\n this.$store = options.parent.$store\n }\n }", "static mockStore(state) {\n return {\n subscribe: () => {},\n dispatch: () => {},\n getState: () => ({ ...state })\n };\n }", "function vuexInit () {\r\n var options = this.$options;\r\n // store injection\r\n if (options.store) {\r\n this.$store = typeof options.store === 'function'\r\n ? options.store()\r\n : options.store;\r\n } else if (options.parent && options.parent.$store) {\r\n this.$store = options.parent.$store;\r\n }\r\n }", "function mapStateToProps(store) {\n return {\n };\n}", "function mapStateToProps(store) {\n return {\n };\n}", "loadVuex() {\n let keys = Object.keys(settings)\n keys.forEach(this.__loadVuexModule)\n }", "function configureStore(){var allMiddleware=Object.values(_middleware2.default);var rootReducer=(0,_redux.combineReducers)({global:_ducks2.default.global,dashboard:_ducks2.default.dashboard,holdings:_ducks2.default.holdings,trade:(0,_reduxPersist.persistReducer)(tradePersistConfig,_ducks2.default.trade),news:_ducks2.default.news,coins:_ducks2.default.coins,referrals:_ducks2.default.referrals,algos:_ducks2.default.algos});var store=(0,_redux.createStore)(rootReducer,(0,_reduxDevtoolsExtension.composeWithDevTools)(_redux.applyMiddleware.apply(undefined,(0,_toConsumableArray3.default)(allMiddleware))));_middleware2.default.sagaMiddleware.run(_ducks.rootSaga);// Make reducers hot reloadable\nif(false){module.hot.accept('./ducks',function(){// eslint-disable-next-line global-require\nvar nextReducer=require('./ducks');store.replaceReducer((0,_redux.combineReducers)((0,_extends3.default)({},nextReducer)));});}var persistor=(0,_reduxPersist.persistStore)(store,null,function(){_logger2.default.debug('Store has been hydrated');});return{store:store,persistor:persistor};}", "function i(t){var n=Number(t.version.split(\".\")[0]);if(n>=2)t.mixin({beforeCreate:e});else{var i=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,i.call(this,t)}}function e(){var t=this.$options;t.store?this.$store=\"function\"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}", "function vuexInit() {\n var options = this.$options; // store injection\n\n if (options.store) {\n this.$store = typeof options.store === 'function' ? options.store() : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit() {\n var options = this.$options; // store injection\n\n if (options.store) {\n this.$store = typeof options.store === 'function' ? options.store() : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit() {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function' ? options.store() : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit() {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function' ? options.store() : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit() {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function' ? options.store() : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit() {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function' ? options.store() : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit() {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function' ? options.store() : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function i(e){var t=Number(e.version.split(\".\")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store=\"function\"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}", "function mutationsStore(txn) {\n return getStore(txn, __WEBPACK_IMPORTED_MODULE_5__indexeddb_schema__[\"k\" /* DbMutationBatch */].store);\n}", "function mutationsStore(txn) {\n return getStore(txn, __WEBPACK_IMPORTED_MODULE_5__indexeddb_schema__[\"k\" /* DbMutationBatch */].store);\n}", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }" ]
[ "0.6092144", "0.5971127", "0.5956504", "0.58335847", "0.5815055", "0.58010286", "0.57920104", "0.57920104", "0.57920104", "0.5788793", "0.57770205", "0.57744676", "0.57668114", "0.57354736", "0.57161903", "0.57111406", "0.5709962", "0.57018363", "0.56991994", "0.565581", "0.565581", "0.56500584", "0.5634567", "0.5630162", "0.56193686", "0.56193686", "0.56183696", "0.56183696", "0.56183696", "0.56183696", "0.56183696", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.56183624", "0.561796", "0.561796", "0.56171167", "0.56171167", "0.56171167", "0.56171167", "0.56171167", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574", "0.56155574" ]
0.0
-1
Vuex init hook, injected into each instances init hooks list.
function vuexInit () { var options = this.$options; // store injection if (options.store) { this.$store = typeof options.store === 'function' ? options.store() : options.store; } else if (options.parent && options.parent.$store) { this.$store = options.parent.$store; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function vuexInit () {\n\t var options = this.$options;\n\t // store injection\n\t if (options.store) {\n\t this.$store = options.store;\n\t } else if (options.parent && options.parent.$store) {\n\t this.$store = options.parent.$store;\n\t }\n\t }", "function vuexInit () {\n\t var options = this.$options;\n\t // store injection\n\t if (options.store) {\n\t this.$store = options.store;\n\t } else if (options.parent && options.parent.$store) {\n\t this.$store = options.parent.$store;\n\t }\n\t }", "function vuexInit () {\n\t var options = this.$options;\n\t // store injection\n\t if (options.store) {\n\t this.$store = options.store;\n\t } else if (options.parent && options.parent.$store) {\n\t this.$store = options.parent.$store;\n\t }\n\t }", "function vuexInit () {\n\t var options = this.$options;\n\t // store injection\n\t if (options.store) {\n\t this.$store = typeof options.store === 'function'\n\t ? options.store()\n\t : options.store;\n\t } else if (options.parent && options.parent.$store) {\n\t this.$store = options.parent.$store;\n\t }\n\t }", "function vuexInit () {\n\t var options = this.$options\n\t // store injection\n\t if (options.store) {\n\t this.$store = options.store\n\t } else if (options.parent && options.parent.$store) {\n\t this.$store = options.parent.$store\n\t }\n\t }", "function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function'\n ? options.store()\n : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit () {\r\n var options = this.$options;\r\n // store injection\r\n if (options.store) {\r\n this.$store = typeof options.store === 'function'\r\n ? options.store()\r\n : options.store;\r\n } else if (options.parent && options.parent.$store) {\r\n this.$store = options.parent.$store;\r\n }\r\n }", "function vuexInit() {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function' ? options.store() : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit() {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function' ? options.store() : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit() {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function' ? options.store() : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit() {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function' ? options.store() : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit() {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = typeof options.store === 'function' ? options.store() : options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function vuexInit() {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }", "function init() {\n var options = this.$options;\n var store = options.store;\n var vuex = options.vuex;\n // store injection\n\n if (store) {\n this.$store = store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n // vuex option handling\n if (vuex) {\n if (!this.$store) {\n console.warn('[vuex] store not injected. make sure to ' + 'provide the store option in your root component.');\n }\n var state = vuex.state;\n var actions = vuex.actions;\n var getters = vuex.getters;\n // handle deprecated state option\n\n if (state && !getters) {\n console.warn('[vuex] vuex.state option will been deprecated in 1.0. ' + 'Use vuex.getters instead.');\n getters = state;\n }\n // getters\n if (getters) {\n options.computed = options.computed || {};\n for (var key in getters) {\n defineVuexGetter(this, key, getters[key]);\n }\n }\n // actions\n if (actions) {\n options.methods = options.methods || {};\n for (var _key in actions) {\n options.methods[_key] = makeBoundAction(this.$store, actions[_key], _key);\n }\n }\n }\n }" ]
[ "0.7631415", "0.7631415", "0.7631415", "0.75977623", "0.75614333", "0.7543656", "0.7533113", "0.751491", "0.751491", "0.751491", "0.751491", "0.751491", "0.75131863", "0.7491084" ]
0.0
-1
make localized dispatch, commit, getters and state if there is no namespace, just use root ones
function makeLocalContext (store, namespace, path) { var noNamespace = namespace === ''; var local = { dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) { var args = unifyObjectStyle(_type, _payload, _options); var payload = args.payload; var options = args.options; var type = args.type; if (!options || !options.root) { type = namespace + type; if (false) {} } return store.dispatch(type, payload) }, commit: noNamespace ? store.commit : function (_type, _payload, _options) { var args = unifyObjectStyle(_type, _payload, _options); var payload = args.payload; var options = args.options; var type = args.type; if (!options || !options.root) { type = namespace + type; if (false) {} } store.commit(type, payload, options); } }; // getters and state object must be gotten lazily // because they will be changed by vm update Object.defineProperties(local, { getters: { get: noNamespace ? function () { return store.getters; } : function () { return makeLocalGetters(store, namespace); } }, state: { get: function () { return getNestedState(store.state, path); } } }); return local }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function NamespaceContext(){\n this.ns = null; //full namespace string e.g. www.bond.co.uk/jsocs/something\n this.type_ = {}; //e.g. type_[mytype] types referenceable by rulesets in this or parent context\n //this.rootRuleSet = null; //tree of RuleSets NOT USED?\n this.ns_ = {}; //e.g. ns_[prefix] = {other ns context} other namespace rules this context references\n}", "static get localizeNamespaces() {}", "function makeLocalContext(store, namespace, path) {\n var noNamespace = namespace === '';\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n\n if (false) {}\n }\n\n return store.dispatch(type, payload);\n },\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n\n if (false) {}\n }\n\n store.commit(type, payload, options);\n }\n }; // getters and state object must be gotten lazily\n // because they will be changed by vm update\n\n Object.defineProperties(local, {\n getters: {\n get: noNamespace ? function () {\n return store.getters;\n } : function () {\n return makeLocalGetters(store, namespace);\n }\n },\n state: {\n get: function get() {\n return getNestedState(store.state, path);\n }\n }\n });\n return local;\n}", "function makeLocalContext(store, namespace, path) {\n var noNamespace = namespace === '';\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n }\n\n return store.dispatch(type, payload);\n },\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n }\n\n store.commit(type, payload, options);\n }\n }; // getters and state object must be gotten lazily\n // because they will be changed by state update\n\n Object.defineProperties(local, {\n getters: {\n get: noNamespace ? function () {\n return store.getters;\n } : function () {\n return makeLocalGetters(store, namespace);\n }\n },\n state: {\n get: function () {\n return getNestedState(store.state, path);\n }\n }\n });\n return local;\n}", "function makeLocalContext(store, namespace, path) {\n var noNamespace = namespace === '';\n var local = {\n dispatch: noNamespace ? store.dispatch : function(_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n if (!options || !options.root) {\n type = namespace + type;\n if (!store._actions[type]) {\n console.error(\"[vuex] unknown local action type: \" + args.type + \", global type: \" + type);\n return;\n }\n }\n return store.dispatch(type, payload);\n },\n commit: noNamespace ? store.commit : function(_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n if (!options || !options.root) {\n type = namespace + type;\n if (!store._mutations[type]) {\n console.error(\"[vuex] unknown local mutation type: \" + args.type + \", global type: \" + type);\n return;\n }\n }\n store.commit(type, payload, options);\n }\n };\n // getters and state object must be gotten lazily\n // because they will be changed by state update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace ? function() {\n return store.getters;\n } : function() {\n return makeLocalGetters(store, namespace);\n }\n },\n state: {\n get: function() {\n return getNestedState(store.state, path);\n }\n }\n });\n return local;\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by state update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext(store, namespace, path) {\n var noNamespace = namespace === '';\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n\n if ( true && !store._actions[type]) {\n console.error(\"[vuex] unknown local action type: \" + args.type + \", global type: \" + type);\n return;\n }\n }\n\n return store.dispatch(type, payload);\n },\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n\n if ( true && !store._mutations[type]) {\n console.error(\"[vuex] unknown local mutation type: \" + args.type + \", global type: \" + type);\n return;\n }\n }\n\n store.commit(type, payload, options);\n }\n }; // getters and state object must be gotten lazily\n // because they will be changed by vm update\n\n Object.defineProperties(local, {\n getters: {\n get: noNamespace ? function () {\n return store.getters;\n } : function () {\n return makeLocalGetters(store, namespace);\n }\n },\n state: {\n get: function get() {\n return getNestedState(store.state, path);\n }\n }\n });\n return local;\n}", "__(context, request){\n request = request.replace('/','.');\n let transPathArr = request.split('.');\n let allLabels = context.getters.get_labels;\n let isOK = true;\n let translationGroupName = request.split('::');\n\n // Handle group translations\n if(request.indexOf('::') !== -1) {\n let groupName = translationGroupName[0];\n let labelKey = request.replace(groupName+'::','');\n let transPathArr = labelKey.split('.');\n let groupLabels = allLabels[groupName];\n\n for(let key in transPathArr){\n if (groupLabels[transPathArr[key]] === undefined) {\n isOK = false;\n context.commit('setTranslation', \"* \" + request);\n break;\n }\n groupLabels = groupLabels[transPathArr[key]];\n }\n allLabels = groupLabels;\n }else {\n for (let key in transPathArr) {\n if (allLabels[transPathArr[key]] === undefined) {\n isOK = false;\n context.commit('setTranslation', \"* \" + request);\n break;\n }\n allLabels = allLabels[transPathArr[key]];\n }\n }\n if (isOK) {\n context.commit('setTranslation', allLabels);\n }\n }", "function makeLocalContext (store, namespace, path) {\n\t var noNamespace = namespace === '';\n\t\n\t var local = {\n\t dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n\t var args = unifyObjectStyle(_type, _payload, _options);\n\t var payload = args.payload;\n\t var options = args.options;\n\t var type = args.type;\n\t\n\t if (!options || !options.root) {\n\t type = namespace + type;\n\t if (!store._actions[type]) {\n\t console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n\t return\n\t }\n\t }\n\t\n\t return store.dispatch(type, payload)\n\t },\n\t\n\t commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n\t var args = unifyObjectStyle(_type, _payload, _options);\n\t var payload = args.payload;\n\t var options = args.options;\n\t var type = args.type;\n\t\n\t if (!options || !options.root) {\n\t type = namespace + type;\n\t if (!store._mutations[type]) {\n\t console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n\t return\n\t }\n\t }\n\t\n\t store.commit(type, payload, options);\n\t }\n\t };\n\t\n\t // getters and state object must be gotten lazily\n\t // because they will be changed by vm update\n\t Object.defineProperties(local, {\n\t getters: {\n\t get: noNamespace\n\t ? function () { return store.getters; }\n\t : function () { return makeLocalGetters(store, namespace); }\n\t },\n\t state: {\n\t get: function () { return getNestedState(store.state, path); }\n\t }\n\t });\n\t\n\t return local\n\t}", "function makeLocalContext (store, namespace, path) {\n\t var noNamespace = namespace === '';\n\t\n\t var local = {\n\t dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n\t var args = unifyObjectStyle(_type, _payload, _options);\n\t var payload = args.payload;\n\t var options = args.options;\n\t var type = args.type;\n\t\n\t if (!options || !options.root) {\n\t type = namespace + type;\n\t if (!store._actions[type]) {\n\t console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n\t return\n\t }\n\t }\n\t\n\t return store.dispatch(type, payload)\n\t },\n\t\n\t commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n\t var args = unifyObjectStyle(_type, _payload, _options);\n\t var payload = args.payload;\n\t var options = args.options;\n\t var type = args.type;\n\t\n\t if (!options || !options.root) {\n\t type = namespace + type;\n\t if (!store._mutations[type]) {\n\t console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n\t return\n\t }\n\t }\n\t\n\t store.commit(type, payload, options);\n\t }\n\t };\n\t\n\t // getters and state object must be gotten lazily\n\t // because they will be changed by vm update\n\t Object.defineProperties(local, {\n\t getters: {\n\t get: noNamespace\n\t ? function () { return store.getters; }\n\t : function () { return makeLocalGetters(store, namespace); }\n\t },\n\t state: {\n\t get: function () { return getNestedState(store.state, path); }\n\t }\n\t });\n\t\n\t return local\n\t}", "function makeLocalContext (store, namespace, path) {\n\t var noNamespace = namespace === '';\n\t\n\t var local = {\n\t dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n\t var args = unifyObjectStyle(_type, _payload, _options);\n\t var payload = args.payload;\n\t var options = args.options;\n\t var type = args.type;\n\t\n\t if (!options || !options.root) {\n\t type = namespace + type;\n\t if (!store._actions[type]) {\n\t console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n\t return\n\t }\n\t }\n\t\n\t return store.dispatch(type, payload)\n\t },\n\t\n\t commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n\t var args = unifyObjectStyle(_type, _payload, _options);\n\t var payload = args.payload;\n\t var options = args.options;\n\t var type = args.type;\n\t\n\t if (!options || !options.root) {\n\t type = namespace + type;\n\t if (!store._mutations[type]) {\n\t console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n\t return\n\t }\n\t }\n\t\n\t store.commit(type, payload, options);\n\t }\n\t };\n\t\n\t // getters and state object must be gotten lazily\n\t // because they will be changed by vm update\n\t Object.defineProperties(local, {\n\t getters: {\n\t get: noNamespace\n\t ? function () { return store.getters; }\n\t : function () { return makeLocalGetters(store, namespace); }\n\t },\n\t state: {\n\t get: function () { return getNestedState(store.state, path); }\n\t }\n\t });\n\t\n\t return local\n\t}", "function publishDefaultGlobalUtils() {\n if (!_published) {\n _published = true;\n publishGlobalUtil('getComponent', getComponent);\n publishGlobalUtil('getContext', getContext$1);\n publishGlobalUtil('getListeners', getListeners);\n publishGlobalUtil('getViewComponent', getViewComponent);\n publishGlobalUtil('getHostElement', getHostElement);\n publishGlobalUtil('getInjector', getInjector);\n publishGlobalUtil('getRootComponents', getRootComponents);\n publishGlobalUtil('getDirectives', getDirectives);\n publishGlobalUtil('getPlayers', getPlayers);\n publishGlobalUtil('markDirty', markDirty);\n }\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n \n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n \n if (!options || !options.root) {\n type = namespace + type;\n if ((\"debug\" !== 'production') && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n \n return store.dispatch(type, payload)\n },\n \n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n \n if (!options || !options.root) {\n type = namespace + type;\n if ((\"debug\" !== 'production') && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n \n store.commit(type, payload, options);\n }\n };\n \n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n \n return local\n }", "function makeLocalContext (store, namespace, path) {\n\t var noNamespace = namespace === '';\n\t\n\t var local = {\n\t dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n\t var args = unifyObjectStyle(_type, _payload, _options);\n\t var payload = args.payload;\n\t var options = args.options;\n\t var type = args.type;\n\t\n\t if (!options || !options.root) {\n\t type = namespace + type;\n\t if (false) {\n\t console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n\t return\n\t }\n\t }\n\t\n\t return store.dispatch(type, payload)\n\t },\n\t\n\t commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n\t var args = unifyObjectStyle(_type, _payload, _options);\n\t var payload = args.payload;\n\t var options = args.options;\n\t var type = args.type;\n\t\n\t if (!options || !options.root) {\n\t type = namespace + type;\n\t if (false) {\n\t console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n\t return\n\t }\n\t }\n\t\n\t store.commit(type, payload, options);\n\t }\n\t };\n\t\n\t // getters and state object must be gotten lazily\n\t // because they will be changed by vm update\n\t Object.defineProperties(local, {\n\t getters: {\n\t get: noNamespace\n\t ? function () { return store.getters; }\n\t : function () { return makeLocalGetters(store, namespace); }\n\t },\n\t state: {\n\t get: function () { return getNestedState(store.state, path); }\n\t }\n\t });\n\t\n\t return local\n\t}", "function publishDefaultGlobalUtils() {\n if (!_published) {\n _published = true;\n publishGlobalUtil('getComponent', getComponent);\n publishGlobalUtil('getContext', getContext);\n publishGlobalUtil('getListeners', getListeners);\n publishGlobalUtil('getOwningComponent', getOwningComponent);\n publishGlobalUtil('getHostElement', getHostElement);\n publishGlobalUtil('getInjector', getInjector);\n publishGlobalUtil('getRootComponents', getRootComponents);\n publishGlobalUtil('getDirectives', getDirectives);\n publishGlobalUtil('applyChanges', applyChanges);\n }\n }", "initialize() {\n const base = {\n scope: this,\n partialArg: { ...this.context, doc: this },\n }\n\n /**\n * @property {Registry} actions\n *\n */\n this.actions = registry({\n name: 'actions',\n members: this.tryResult('actions', {}),\n ...base,\n })\n\n /**\n * @property {Registry} sandboxes\n *\n */\n this.sandboxes = registry({\n name: 'sandboxes',\n members: this.tryResult('sandboxes', {}),\n ...base,\n })\n }", "function makeLocalContext(store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (!store._actions[type]) {\n console.error(\"[vuex] unknown local action type: \" + args.type + \", global type: \" + type);\n return;\n }\n }\n\n return store.dispatch(type, payload);\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (!store._mutations[type]) {\n console.error(\"[vuex] unknown local mutation type: \" + args.type + \", global type: \" + type);\n return;\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace ? function () {\n return store.getters;\n } : function () {\n return makeLocalGetters(store, namespace);\n }\n },\n state: {\n get: function get() {\n return getNestedState(store.state, path);\n }\n }\n });\n\n return local;\n}", "function makeLocalContext(store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (process.env.NODE_ENV !== 'production' && !store._actions[type]) {\n console.error(\"[vuex] unknown local action type: \" + args.type + \", global type: \" + type);\n return;\n }\n }\n\n return store.dispatch(type, payload);\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (process.env.NODE_ENV !== 'production' && !store._mutations[type]) {\n console.error(\"[vuex] unknown local mutation type: \" + args.type + \", global type: \" + type);\n return;\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace ? function () {\n return store.getters;\n } : function () {\n return makeLocalGetters(store, namespace);\n }\n },\n state: {\n get: function get() {\n return getNestedState(store.state, path);\n }\n }\n });\n\n return local;\n}", "function makeLocalContext(store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (process.env.NODE_ENV !== 'production' && !store._actions[type]) {\n console.error(\"[vuex] unknown local action type: \" + args.type + \", global type: \" + type);\n return;\n }\n }\n\n return store.dispatch(type, payload);\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (process.env.NODE_ENV !== 'production' && !store._mutations[type]) {\n console.error(\"[vuex] unknown local mutation type: \" + args.type + \", global type: \" + type);\n return;\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace ? function () {\n return store.getters;\n } : function () {\n return makeLocalGetters(store, namespace);\n }\n },\n state: {\n get: function get() {\n return getNestedState(store.state, path);\n }\n }\n });\n\n return local;\n}", "function makeLocalContext(store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (process.env.NODE_ENV !== 'production' && !store._actions[type]) {\n console.error(\"[vuex] unknown local action type: \" + args.type + \", global type: \" + type);\n return;\n }\n }\n\n return store.dispatch(type, payload);\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (process.env.NODE_ENV !== 'production' && !store._mutations[type]) {\n console.error(\"[vuex] unknown local mutation type: \" + args.type + \", global type: \" + type);\n return;\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace ? function () {\n return store.getters;\n } : function () {\n return makeLocalGetters(store, namespace);\n }\n },\n state: {\n get: function () {\n return getNestedState(store.state, path);\n }\n }\n });\n\n return local;\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by state update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext(store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (\"development\" !== 'production' && !store._actions[type]) {\n console.error(\"[vuex] unknown local action type: \" + args.type + \", global type: \" + type);\n return;\n }\n }\n\n return store.dispatch(type, payload);\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (\"development\" !== 'production' && !store._mutations[type]) {\n console.error(\"[vuex] unknown local mutation type: \" + args.type + \", global type: \" + type);\n return;\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace ? function () {\n return store.getters;\n } : function () {\n return makeLocalGetters(store, namespace);\n }\n },\n state: {\n get: function () {\n return getNestedState(store.state, path);\n }\n }\n });\n\n return local;\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( true && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (( true) && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext(store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ('development' !== 'production' && !store._actions[type]) {\n console.error(\"[vuex] unknown local action type: \" + args.type + \", global type: \" + type);\n return;\n }\n }\n\n return store.dispatch(type, payload);\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ('development' !== 'production' && !store._mutations[type]) {\n console.error(\"[vuex] unknown local mutation type: \" + args.type + \", global type: \" + type);\n return;\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace ? function () {\n return store.getters;\n } : function () {\n return makeLocalGetters(store, namespace);\n }\n },\n state: {\n get: function () {\n return getNestedState(store.state, path);\n }\n }\n });\n\n return local;\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if ( !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by state update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\r\n var noNamespace = namespace === '';\r\n\r\n var local = {\r\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\r\n var args = unifyObjectStyle(_type, _payload, _options);\r\n var payload = args.payload;\r\n var options = args.options;\r\n var type = args.type;\r\n\r\n if (!options || !options.root) {\r\n type = namespace + type;\r\n if (process.env.NODE_ENV !== 'production' && !store._actions[type]) {\r\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\r\n return\r\n }\r\n }\r\n\r\n return store.dispatch(type, payload)\r\n },\r\n\r\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\r\n var args = unifyObjectStyle(_type, _payload, _options);\r\n var payload = args.payload;\r\n var options = args.options;\r\n var type = args.type;\r\n\r\n if (!options || !options.root) {\r\n type = namespace + type;\r\n if (process.env.NODE_ENV !== 'production' && !store._mutations[type]) {\r\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\r\n return\r\n }\r\n }\r\n\r\n store.commit(type, payload, options);\r\n }\r\n };\r\n\r\n // getters and state object must be gotten lazily\r\n // because they will be changed by vm update\r\n Object.defineProperties(local, {\r\n getters: {\r\n get: noNamespace\r\n ? function () { return store.getters; }\r\n : function () { return makeLocalGetters(store, namespace); }\r\n },\r\n state: {\r\n get: function () { return getNestedState(store.state, path); }\r\n }\r\n });\r\n\r\n return local\r\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (!store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (!store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (!store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (!store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (!store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (!store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (!store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (!store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (!store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (!store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (process.env.NODE_ENV !== 'production' && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (process.env.NODE_ENV !== 'production' && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (process.env.NODE_ENV !== 'production' && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (process.env.NODE_ENV !== 'production' && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (process.env.NODE_ENV !== 'production' && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (process.env.NODE_ENV !== 'production' && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}", "function makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (process.env.NODE_ENV !== 'production' && !store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (process.env.NODE_ENV !== 'production' && !store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}" ]
[ "0.54127026", "0.5343469", "0.5306553", "0.5285096", "0.51793885", "0.51739925", "0.5150764", "0.515004", "0.5139046", "0.5139046", "0.5139046", "0.513132", "0.5114281", "0.5113796", "0.51070684", "0.5104122", "0.5082985", "0.50759965", "0.50759965", "0.5075922", "0.5069613", "0.5063762", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.50637", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.5063676", "0.50633657", "0.5058217", "0.50487065", "0.5046841", "0.5046841", "0.5046841", "0.5046841", "0.5046841", "0.50393564", "0.50393564", "0.50393564", "0.50393564" ]
0.5192131
10
Credits: borrowed code from fcomb/reduxlogger
function createLogger (ref) { if ( ref === void 0 ) ref = {}; var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true; var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; }; var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; }; var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; }; var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; }; var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; }; var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true; var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true; var logger = ref.logger; if ( logger === void 0 ) logger = console; return function (store) { var prevState = deepCopy(store.state); if (typeof logger === 'undefined') { return } if (logMutations) { store.subscribe(function (mutation, state) { var nextState = deepCopy(state); if (filter(mutation, prevState, nextState)) { var formattedTime = getFormattedTime(); var formattedMutation = mutationTransformer(mutation); var message = "mutation " + (mutation.type) + formattedTime; startMessage(logger, message, collapsed); logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState)); logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation); logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState)); endMessage(logger); } prevState = nextState; }); } if (logActions) { store.subscribeAction(function (action, state) { if (actionFilter(action, state)) { var formattedTime = getFormattedTime(); var formattedAction = actionTransformer(action); var message = "action " + (action.type) + formattedTime; startMessage(logger, message, collapsed); logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction); endMessage(logger); } }); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function logger() {}", "log() {}", "function createLogger() {\n // eslint-disable-next-line no-unused-vars\n return store => next => action => {\n let formattedPayload = '';\n const actionFormatter = actionFormatters[action.type];\n if (typeof actionFormatter === 'function') {\n formattedPayload = actionFormatter(action);\n } else if (action.toString !== Object.prototype.toString) {\n formattedPayload = action.toString();\n } else if (typeof action.payload !== 'undefined') {\n formattedPayload = inspectObject(action.payload);\n } else {\n formattedPayload = inspectObject(action);\n }\n\n console.log(` * ${action.type}: ${formattedPayload}`); // eslint-disable-line no-console\n return next(action);\n };\n}", "log(_args) {\n\n }", "function logSomething(log) { log.info('something'); }", "function LogOperator(){}", "log(...args) {\n return this.getInstance().log(...args);\n }", "function logger(req, res, next) {\n\n}", "function Log() {}", "function debug(msg){\r\n rootLogger.debug(msg)\r\n}", "function NodeLogger() {}", "function NodeLogger() {}", "function NodeLogger() {}", "function logger({ getState }) {\n return next => action => {\n console.log('will dispatch', action)\n // Call the next dispatch method in the middleware chain.\n let returnValue = next(action) \n // This will likely be the action itself, unless\n // a middleware further in chain changed it.\n return returnValue\n }\n}", "function _____INTERNAL_log_functions_____(){}\t\t//{", "function info(msg){\r\n rootLogger.info(msg)\r\n}", "log(kind, msg, data){ this.logger(kind, msg, data) }", "logger() {\n console.log({\n acc: this.acc,\n operator: this.operator,\n leftOperand: this.leftOperand,\n rightOperand: this.rightOperand,\n state: this.state\n })\n }", "function tlog__(msg){console.log(msg);}", "function loggerMiddleware({dispatch, getState}) {\n return function(next) {\n return function(action) {\n console.log(\"LOGGER \", action, typeof action);\n //forward action to next middleware or reducers\n\n let result = next(action);\n\n return result;\n\n return true;\n }\n }\n}", "function log(txt) {\n // commented out for production version\n // IJ.log(txt);\n}", "getClientLog() {\n\n }", "log() {\n return; // no output for initial application build\n }", "function logger({getState, dispatch}){\n return (next) => {\n return (action)=>{\n console.log('Este es el viejo estado', getState().toJS())\n console.log('Enviando acción ', action)\n const value = next(action)\n console.log('Este es el nuevo estado', getState().toJS())\n return value\n }\n }\n}", "function NodeLogger() { }", "function NodeLogger() { }", "debug(...theArgs) { return this._log('DEBUG', {}, theArgs); }", "debug(...message) { this.log.debug(...message); }", "addLogMessage(actionBy, actionType, actionValue) {\n // Use unshift to place msg to the top of the log\n // It add the msg first in the array, where push adds to the end\n this.logMsg.unshift({\n actionBy,\n actionType,\n actionValue,\n });\n console.log(this.logMsg);\n }", "function logger(event, payload) {\n let timestamp = new Date();\n console.log({ timestamp, event, payload });//considered a destructured object\n }", "function log(str) { Logger.log(str); }", "function createLogger(ref) {\n if (ref === void 0) ref = {\n };\n var collapsed = ref.collapsed;\n if (collapsed === void 0) collapsed = true;\n var filter = ref.filter;\n if (filter === void 0) filter = function(mutation, stateBefore, stateAfter) {\n return true;\n };\n var transformer = ref.transformer;\n if (transformer === void 0) transformer = function(state) {\n return state;\n };\n var mutationTransformer = ref.mutationTransformer;\n if (mutationTransformer === void 0) mutationTransformer = function(mut) {\n return mut;\n };\n var actionFilter = ref.actionFilter;\n if (actionFilter === void 0) actionFilter = function(action, state) {\n return true;\n };\n var actionTransformer = ref.actionTransformer;\n if (actionTransformer === void 0) actionTransformer = function(act) {\n return act;\n };\n var logMutations = ref.logMutations;\n if (logMutations === void 0) logMutations = true;\n var logActions = ref.logActions;\n if (logActions === void 0) logActions = true;\n var logger = ref.logger;\n if (logger === void 0) logger = console;\n return function(store) {\n var prevState = deepCopy(store.state);\n if (typeof logger === 'undefined') return;\n if (logMutations) store.subscribe(function(mutation, state) {\n var nextState = deepCopy(state);\n if (filter(mutation, prevState, nextState)) {\n var formattedTime = getFormattedTime();\n var formattedMutation = mutationTransformer(mutation);\n var message = \"mutation \" + mutation.type + formattedTime;\n startMessage(logger, message, collapsed);\n logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));\n logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);\n logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));\n endMessage(logger);\n }\n prevState = nextState;\n });\n if (logActions) store.subscribeAction(function(action, state) {\n if (actionFilter(action, state)) {\n var formattedTime = getFormattedTime();\n var formattedAction = actionTransformer(action);\n var message = \"action \" + action.type + formattedTime;\n startMessage(logger, message, collapsed);\n logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);\n endMessage(logger);\n }\n });\n };\n}", "function createLogger (ref) {\n if ( ref === void 0 ) ref = {};\n var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;\n var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };\n var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };\n var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };\n var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };\n var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };\n var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;\n var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;\n var logger = ref.logger; if ( logger === void 0 ) logger = console;\n \n return function (store) {\n var prevState = deepCopy(store.state);\n \n if (typeof logger === 'undefined') {\n return\n }\n \n if (logMutations) {\n store.subscribe(function (mutation, state) {\n var nextState = deepCopy(state);\n \n if (filter(mutation, prevState, nextState)) {\n var formattedTime = getFormattedTime();\n var formattedMutation = mutationTransformer(mutation);\n var message = \"mutation \" + (mutation.type) + formattedTime;\n \n startMessage(logger, message, collapsed);\n logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));\n logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);\n logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));\n endMessage(logger);\n }\n \n prevState = nextState;\n });\n }\n \n if (logActions) {\n store.subscribeAction(function (action, state) {\n if (actionFilter(action, state)) {\n var formattedTime = getFormattedTime();\n var formattedAction = actionTransformer(action);\n var message = \"action \" + (action.type) + formattedTime;\n \n startMessage(logger, message, collapsed);\n logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);\n endMessage(logger);\n }\n });\n }\n }\n }", "function touchlog() {\n //log.apply(undefined, arguments);\n}", "function log() {\n //log here\n }", "function logger() {\r\n console.log(`Zahin`);\r\n}", "function msg() {\n if (!check.assigned(message.get('log'))) {\n console.log(arguments[0]);\n return;\n }\n message.get('log').put(arguments[0], arguments[1], __filename.split('/').pop(), arguments.callee.caller.name.toString());\n }", "function NodeLogger(){}", "logger(type, func, text) {\n let color = MAP_COLORS[type];\n console.log(`${type} ${func}: ${text}` [color]);\n }", "function logger() {\r\n // if $log fn is called directly, default to \"info\" message\r\n logger.info.apply(logger, arguments);\r\n }", "static log() {\n console.log(\n\t\t\t`\\n\\n${CustomLog.top_banner}\\\n\t\t\t\\n\\n${CustomLog.Use.SPACE}${arguments[0]}\\\n\t\t\t\\n${CustomLog.Use.INDENT}${CustomLog.Use.SOLID_LINE}\\n\\n`\n\t\t)\n let Args = Array.from(arguments).splice(1)\n Args.forEach( w => { console.log( CustomLog.Use.SPACE + (\n\t\t typeof w.get_custom_log_format === 'undefined' ?\n w : w.get_custom_log_format()\n ))\n })\n console.log(\n `\\n${CustomLog.Use.INDENT}${CustomLog.Use.SOLID_LINE}\\\n \\n${CustomLog.Use.INDENT}${CustomLog.Use.SOLID_LINE}\\n\\n\\n` )\n }", "[types.LOG_DEBUG] (state, { key, message }) {\n console.log(`${key}: ${message}`)\n state.messages.push({\n level: 'debug',\n key: key,\n message: message\n })\n }", "function trace(msg){\r\n rootLogger.trace(msg)\r\n}", "function logger() {\n console.log('logger');\n\n}", "function addLoggingToDispatch(store) {\n return (next) => (action) => {\n console.log(\"old state\", store.getState()); // old state\n console.log(\"action\", action);\n next(action);\n console.log(\"dispatch in addLoggingToDispatch\", next);\n console.log(\"new state\", store.getState()); // new state\n }\n}", "function Logger(component, type) {\n component = component || 'nodegs';\n type = type || '';\n return function(msg) { \n var message = '['+component+']' + (type ? ' ' + type : type) + ': ';\n if (typeof msg == \"object\") {\n sys.log(message + JSON.stringify(msg));\n }\n else {\n sys.log(message + msg);\n }\n }; \n}", "function log() {\n logger.hit(`${this.req.url} ${this.statusCode} ${this.req.method} ${this.req.body.From} ${this.req.body.Body} ${this[action_symbol]}`, this)\n}", "function addLoggingForNextDispatch(store) {\n return (next) => (action) => {\n console.log(\"current dispatch\", next);\n next(action);\n console.log(\"next dispatch\", next);\n }\n}", "function log() {\n dump(Array.slice(arguments).join(' ') + '\\n');\n }", "logInfo(message) {\n if (this.log.info) this.log.info(message);\n else this.log(`Prune: ${message}`);\n }", "_log (...args) {\n if (!this._options.debug) { return; }\n\n if (this._options.logger) {\n return this._options.logger(args);\n }\n\n return console.log('[wampy]', args);\n }", "function _log() {\n // logger.trace.apply(logger, arguments)\n}", "function logger(c) {\n c.title = 'Code 401 Python';\n console.log('logger:', c);\n}", "_log() {\n if (this.debug) {\n console.log(...arguments);\n }\n }", "static log() {\n var str;\n str = Util.toStrArgs('', arguments);\n Util.consoleLog(str);\n }", "function Logger() {\n\n }", "log(r) {\n console.log(r); // eslint-disable-line no-console\n }", "function log$2() {\n console.log('%s - %s', timestamp(), format.apply(null, arguments));\n}", "log(...params) {\r\n console.log(this.getLogStamp(), ...params);\r\n }", "function log(msg) {\r\n co(co_log(msg))\r\n}", "globalize() {\n Logger.globalize();\n }", "LogError() {}", "function console_log(msg) {\n if (window.console && d) {\n console.log(\"TusMultiUpload: \"+msg);\n }\n }", "log(message) {\n console.log(message)\n\n return null\n\t }", "curryLogger (src) {\n return {\n info: msg => {\n this._log(src, this.LEVEL_INFO, msg)\n },\n debug: msg => {\n this._log(src, this.LEVEL_DEBUG, msg)\n },\n error: msg => {\n this._log(src, this.LEVEL_ERROR, msg)\n }\n }\n }", "function loginfo(content) {\n return logger(content,\" [INFO] \");\n}", "function logHelper(){\n\tconsole.log(\"-------------------------------------------------------------------------------\");\n\n\tfor(let i=0; i<arguments.length; ++i){\n\t\tconsole.log(arguments[i]);\n\t}\n}", "setupLogging() {\n this.on('error', logger.error);\n\n this.on('rss', (body) => logger.silly(`emitted: ${body.id}`));\n this.on('ws:update:raw', (body) => logger.silly(`emitted raw: ${body.platform}`));\n this.on('ws:update:parsed', (body) => logger.silly(`emitted parsed: ${body.platform} in ${body.language}`));\n this.on('ws:update:event', (body) =>\n logger.silly(`emitted event: ${body.id} ${body.platform} in ${body.language}`)\n );\n this.on('tweet', (body) => logger.silly(`emitted: ${body.id}`));\n }", "log(message) {\n console.log(message);\n }", "logView() { return this.call('App.logView', {'host':this.host}, 1); }", "static get(lgr = \"anon\", maxLog = \"default\", force = \"default\") {\nvar i, len, lg, ref, ref1, ref2, ref3, stat, theLogger;\ntheLogger = null;\nref = Logger._loggers;\nfor (i = 0, len = ref.length; i < len; i++) {\nlg = ref[i];\nif (lg.modName === lgr) {\nif (theLogger == null) {\ntheLogger = lg;\n}\n}\n}\nstat = theLogger != null ? \"Updated\" : \"Created\";\nif (theLogger != null) {\nif (maxLog === \"default\") {\nmaxLog = theLogger.maxLog;\n}\nif (force === \"default\") {\nforce = theLogger.force;\n}\nif ((ref1 = Logger._modLogger) != null) {\nif (typeof ref1.trace === \"function\") {\nref1.trace(`get: Updating ${theLogger.modName} Logger. MaxLog ${theLogger.maxLog} -> ${maxLog}`);\n}\n}\ntheLogger._setLoggers(maxLog, force);\n} else {\nif (maxLog === \"default\") {\nmaxLog = Logger._defaultMaxLog;\n}\nif (force === \"default\") {\nforce = \"noforce\";\n}\nif ((ref2 = Logger._modLogger) != null) {\nif (typeof ref2.trace === \"function\") {\nref2.trace(`get: Create ${lgr} logger`);\n}\n}\ntheLogger = new Logger(lgr, maxLog, force);\n}\nif ((ref3 = Logger._modLogger) != null) {\nif (typeof ref3.debug === \"function\") {\nref3.debug(`${theLogger.modName} ${stat}: ${theLogger.maxLog} (${theLogger.maxLogLev}) ${theLogger.force}`);\n}\n}\nreturn theLogger;\n}", "function PrintLog(a)\n{\nlogger.info(a);\n}", "function log( type, message ){\n\ttry {\n\t\tvar curTime = new Date();\n\t\tcurTime = curTime.toISOString();\n\n\t\tvar functionName = getFunctionName( arguments.callee.caller.toString() );\n\n\t\tlogFileWriteStream.write( \"[\" + type + \"] - [\" + __callerFileName + \" : \" + __line + \" | \" + functionName + \" - \" + curTime + \"] \" + message + \"\\n\" );\n\t\tconsole.log( \"[\" + type + \"] - [\" + __callerFileName + \" : \" + __line + \" | \" + functionName + \" - \" + curTime + \"] \" + message + \"\" );\n\t} catch( err ){\n\t\tconsole.log( \"\\x1b[31m%s\\x1b[0m\", \"[summer-mvc core]\", \"[logger.js]\", err );\n\t\tthrow err;\n\t}\n}", "function debuglog () {\n return () => {};\n}", "function LogwranglerModule(){}", "info(...theArgs) { return this._log('INFO', {}, theArgs); }", "function custom_log(string)\n{\n log(\"SKETCH2CODE | \" + string)\n}", "function devToolsLog(s) {\n electron_log.info(s);\n console.log(s)\n log(s)\n}", "function log(){\n var args = Array.prototype.slice.call(arguments);\n args.unshift('(app)');\n console.log.apply(console, args);\n}", "function logger() {\n console.log('foo');\n}", "function logger() {\n\tprint('[' + this['zap.script.name'] + '] ' + arguments[0]);\n}", "function log(msg){\n console.log(arguments);\n if('string' === typeof msg) $('#log').prepend($('<div>').html(now() + ' ' + msg));\n}" ]
[ "0.6768441", "0.66658837", "0.6609707", "0.66028816", "0.63250905", "0.6218309", "0.6113801", "0.6111682", "0.6106845", "0.6086207", "0.6064796", "0.6064796", "0.6064796", "0.6049157", "0.60338503", "0.60278296", "0.5969888", "0.59581715", "0.59551686", "0.5951857", "0.5949733", "0.59445727", "0.59335274", "0.59196466", "0.59117335", "0.59117335", "0.59093964", "0.59077215", "0.5894993", "0.58878034", "0.58710843", "0.58708155", "0.5870713", "0.5870166", "0.58660144", "0.58656865", "0.58652186", "0.5852678", "0.5849482", "0.5846245", "0.5845361", "0.583727", "0.582524", "0.5824252", "0.5819418", "0.5815485", "0.58136165", "0.5807271", "0.57922894", "0.5791216", "0.57856905", "0.578566", "0.57841426", "0.5778122", "0.5772577", "0.57582706", "0.5757234", "0.57518053", "0.5745094", "0.5743846", "0.57383376", "0.5733712", "0.5731483", "0.57308203", "0.5719285", "0.5716769", "0.57145786", "0.57087815", "0.5708746", "0.57056224", "0.56871253", "0.5682304", "0.5682234", "0.5666193", "0.56492156", "0.5639119", "0.56367344", "0.5622115", "0.56221056", "0.56210953", "0.56131434", "0.55948234" ]
0.57609177
69
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function rectCoordAxisBuildSplitArea(axisView, axisGroup, axisModel, gridModel) { var axis = axisModel.axis; if (axis.scale.isBlank()) { return; } var splitAreaModel = axisModel.getModel('splitArea'); var areaStyleModel = splitAreaModel.getModel('areaStyle'); var areaColors = areaStyleModel.get('color'); var gridRect = gridModel.coordinateSystem.getRect(); var ticksCoords = axis.getTicksCoords({ tickModel: splitAreaModel, clamp: true }); if (!ticksCoords.length) { return; } // For Making appropriate splitArea animation, the color and anid // should be corresponding to previous one if possible. var areaColorsLen = areaColors.length; var lastSplitAreaColors = axisView.__splitAreaColors; var newSplitAreaColors = zrUtil.createHashMap(); var colorIndex = 0; if (lastSplitAreaColors) { for (var i = 0; i < ticksCoords.length; i++) { var cIndex = lastSplitAreaColors.get(ticksCoords[i].tickValue); if (cIndex != null) { colorIndex = (cIndex + (areaColorsLen - 1) * i) % areaColorsLen; break; } } } var prev = axis.toGlobalCoord(ticksCoords[0].coord); var areaStyle = areaStyleModel.getAreaStyle(); areaColors = zrUtil.isArray(areaColors) ? areaColors : [areaColors]; for (var i = 1; i < ticksCoords.length; i++) { var tickCoord = axis.toGlobalCoord(ticksCoords[i].coord); var x; var y; var width; var height; if (axis.isHorizontal()) { x = prev; y = gridRect.y; width = tickCoord - x; height = gridRect.height; prev = x + width; } else { x = gridRect.x; y = prev; width = gridRect.width; height = tickCoord - y; prev = y + height; } var tickValue = ticksCoords[i - 1].tickValue; tickValue != null && newSplitAreaColors.set(tickValue, colorIndex); axisGroup.add(new graphic.Rect({ anid: tickValue != null ? 'area_' + tickValue : null, shape: { x: x, y: y, width: width, height: height }, style: zrUtil.defaults({ fill: areaColors[colorIndex] }, areaStyle), silent: true })); colorIndex = (colorIndex + 1) % areaColorsLen; } axisView.__splitAreaColors = newSplitAreaColors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "started () {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "function SigV4Utils() { }", "started() {\r\n\r\n\t}", "static get NOT_READY () {return 0}", "initialize() {\n\n }", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "function getImplementation( cb ){\n\n }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "heartbeat () {\n }", "static final private internal function m106() {}", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "get WSAPlayerX64() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }" ]
[ "0.53504926", "0.4896905", "0.48514667", "0.48116106", "0.4775166", "0.4743932", "0.47342455", "0.47035336", "0.4694186", "0.4694186", "0.46744877", "0.46453032", "0.46394095", "0.4629355", "0.46211302", "0.45832416", "0.45812932", "0.45752546", "0.45698234", "0.45625272", "0.4557475", "0.4549714", "0.45494938", "0.4545794", "0.45383474", "0.4523037", "0.45180768", "0.45005357", "0.4496748", "0.4486438", "0.447462", "0.44716924", "0.4468301", "0.44601226", "0.4456266", "0.4455926", "0.44557476", "0.4445067", "0.44378054", "0.44258687", "0.44258553", "0.4424118", "0.44097725", "0.4406038", "0.4404498", "0.4404498", "0.4404498", "0.43926418", "0.43781474", "0.43708664", "0.43657827", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43526813", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4349645", "0.43450522", "0.43440443", "0.43390423", "0.43347356", "0.43347356", "0.43332103", "0.43318707" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function dataToCoordSize(dataSize, dataItem) { // dataItem is necessary in log axis. return zrUtil.map(['Radius', 'Angle'], function (dim, dimIdx) { var axis = this['get' + dim + 'Axis'](); var val = dataItem[dimIdx]; var halfSize = dataSize[dimIdx] / 2; var method = 'dataTo' + dim; var result = axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis[method](val - halfSize) - axis[method](val + halfSize)); if (dim === 'Angle') { result = result * Math.PI / 180; } return result; }, this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "started () {}", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "started() {\r\n\r\n\t}", "function SigV4Utils() { }", "static get NOT_READY () {return 0}", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "initialize() {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "function getImplementation( cb ){\n\n }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "heartbeat () {\n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "static final private internal function m106() {}", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }", "get WSAPlayerX64() {}" ]
[ "0.5349978", "0.48933455", "0.48501366", "0.48083982", "0.4772584", "0.474481", "0.47349635", "0.47027457", "0.46929818", "0.46929818", "0.4673667", "0.4644517", "0.46389893", "0.46253318", "0.4618249", "0.4582536", "0.45813942", "0.45742747", "0.45687214", "0.45623618", "0.45563498", "0.45493752", "0.45489514", "0.45457798", "0.4538844", "0.45218396", "0.45187637", "0.4498104", "0.44946006", "0.44832855", "0.44729492", "0.44691566", "0.44642788", "0.44588575", "0.44554883", "0.4453296", "0.44531393", "0.4443642", "0.44374335", "0.44267404", "0.44238108", "0.44228086", "0.4407407", "0.44043022", "0.44043022", "0.44043022", "0.44035548", "0.4393825", "0.43761918", "0.43697277", "0.4364149", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43517888", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43502304", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43440503", "0.43416435", "0.43375877", "0.43357816", "0.43357816", "0.43336093", "0.43330038" ]
0.0
-1
Base class of all displayable graphic objects
function Displayable(opts) { opts = opts || {}; Element.call(this, opts); // Extend properties for (var name in opts) { if (opts.hasOwnProperty(name) && name !== 'style') { this[name] = opts[name]; } } /** * @type {module:zrender/graphic/Style} */ this.style = new Style(opts.style, this); this._rect = null; // Shapes for cascade clipping. // Can only be `null`/`undefined` or an non-empty array, MUST NOT be an empty array. // because it is easy to only using null to check whether clipPaths changed. this.__clipPaths = null; // FIXME Stateful must be mixined after style is setted // Stateful.call(this, opts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ObjectOrientedRenderer3(){}", "function ObjectOrientedRenderer3() {}", "function ObjectOrientedRenderer3() {}", "function ObjectOrientedRenderer3() {}", "function BaseRenderer() {\n }", "get graphic() { return this._graphic; }", "function Displayable(opts){opts = opts || {};Element.call(this,opts); // Extend properties\n for(var name in opts) {if(opts.hasOwnProperty(name) && name !== 'style'){this[name] = opts[name];}} /**\n \t * @type {module:zrender/graphic/Style}\n \t */this.style = new Style(opts.style);this._rect = null; // Shapes for cascade clipping.\n this.__clipPaths = []; // FIXME Stateful must be mixined after style is setted\n // Stateful.call(this, opts);\n }", "function ObjectOrientedRenderer3() { }", "function ObjectOrientedRenderer3() { }", "function AbstractRenderer() {\n this.points = [];\n this.drawing = false;\n this.parameters = new scope.RenderingParameters();\n }", "function Graphics()\n\t{\n\t Container.call(this);\n\t\n\t /**\n\t * The alpha value used when filling the Graphics object.\n\t *\n\t * @member {number}\n\t * @default 1\n\t */\n\t this.fillAlpha = 1;\n\t\n\t /**\n\t * The width (thickness) of any lines drawn.\n\t *\n\t * @member {number}\n\t * @default 0\n\t */\n\t this.lineWidth = 0;\n\t\n\t /**\n\t * The color of any lines drawn.\n\t *\n\t * @member {string}\n\t * @default 0\n\t */\n\t this.lineColor = 0;\n\t\n\t /**\n\t * Graphics data\n\t *\n\t * @member {PIXI.GraphicsData[]}\n\t * @private\n\t */\n\t this.graphicsData = [];\n\t\n\t /**\n\t * The tint applied to the graphic shape. This is a hex value. Apply a value of 0xFFFFFF to reset the tint.\n\t *\n\t * @member {number}\n\t * @default 0xFFFFFF\n\t */\n\t this.tint = 0xFFFFFF;\n\t\n\t /**\n\t * The previous tint applied to the graphic shape. Used to compare to the current tint and check if theres change.\n\t *\n\t * @member {number}\n\t * @private\n\t * @default 0xFFFFFF\n\t */\n\t this._prevTint = 0xFFFFFF;\n\t\n\t /**\n\t * The blend mode to be applied to the graphic shape. Apply a value of `PIXI.BLEND_MODES.NORMAL` to reset the blend mode.\n\t *\n\t * @member {number}\n\t * @default PIXI.BLEND_MODES.NORMAL;\n\t * @see PIXI.BLEND_MODES\n\t */\n\t this.blendMode = CONST.BLEND_MODES.NORMAL;\n\t\n\t /**\n\t * Current path\n\t *\n\t * @member {PIXI.GraphicsData}\n\t * @private\n\t */\n\t this.currentPath = null;\n\t\n\t /**\n\t * Array containing some WebGL-related properties used by the WebGL renderer.\n\t *\n\t * @member {object<number, object>}\n\t * @private\n\t */\n\t // TODO - _webgl should use a prototype object, not a random undocumented object...\n\t this._webGL = {};\n\t\n\t /**\n\t * Whether this shape is being used as a mask.\n\t *\n\t * @member {boolean}\n\t */\n\t this.isMask = false;\n\t\n\t /**\n\t * The bounds' padding used for bounds calculation.\n\t *\n\t * @member {number}\n\t */\n\t this.boundsPadding = 0;\n\t\n\t /**\n\t * A cache of the local bounds to prevent recalculation.\n\t *\n\t * @member {PIXI.Rectangle}\n\t * @private\n\t */\n\t this._localBounds = new math.Rectangle(0,0,1,1);\n\t\n\t /**\n\t * Used to detect if the graphics object has changed. If this is set to true then the graphics\n\t * object will be recalculated.\n\t *\n\t * @member {boolean}\n\t * @private\n\t */\n\t this.dirty = true;\n\t\n\t /**\n\t * Used to detect if the WebGL graphics object has changed. If this is set to true then the\n\t * graphics object will be recalculated.\n\t *\n\t * @member {boolean}\n\t * @private\n\t */\n\t this.glDirty = false;\n\t\n\t this.boundsDirty = true;\n\t\n\t /**\n\t * Used to detect if the cached sprite object needs to be updated.\n\t *\n\t * @member {boolean}\n\t * @private\n\t */\n\t this.cachedSpriteDirty = false;\n\t\n\t /**\n\t * When cacheAsBitmap is set to true the graphics object will be rendered as if it was a sprite.\n\t * This is useful if your graphics element does not change often, as it will speed up the rendering\n\t * of the object in exchange for taking up texture memory. It is also useful if you need the graphics\n\t * object to be anti-aliased, because it will be rendered using canvas. This is not recommended if\n\t * you are constantly redrawing the graphics element.\n\t *\n\t * @name cacheAsBitmap\n\t * @member {boolean}\n\t * @memberof PIXI.Graphics#\n\t * @default false\n\t */\n\t}", "function Object_Visual(data) {\n Object_Visual.__super__.constructor.call(this);\n\n /**\n * Indiciates if the game object is visible on screen.\n * @property visible\n * @type boolean\n */\n this.visible = true;\n\n /**\n * The object's destination rectangle on screen.\n * @property dstRect\n * @type gs.Rect\n */\n this.dstRect = new Rect(data != null ? data.x : void 0, data != null ? data.y : void 0);\n\n /**\n * The object's origin.\n * @property origin\n * @type gs.Point\n */\n this.origin = new gs.Point(0, 0);\n\n /**\n * The object's offset.\n * @property offset\n * @type gs.Point\n */\n this.offset = new gs.Point(0, 0);\n\n /**\n * The object's anchor-point. For example: An anchor-point with 0,0 places the object with its top-left corner\n * at its position but with an 0.5, 0.5 anchor-point the object is placed with its center. An anchor-point of 1,1\n * places the object with its lower-right corner.\n * @property anchor\n * @type gs.Point\n */\n this.anchor = new gs.Point(0.0, 0.0);\n\n /**\n * The position anchor point. For example: An anchor-point with 0,0 places the object with its top-left corner\n * at its position but with an 0.5, 0.5 anchor-point the object will be placed with its center. An anchor-point of 1,1\n * will place the object with its lower-right corner. It has not effect on the object's rotation/zoom anchor. For that, take\n * a look at <b>anchor</b> property.\n *\n * @property positionAnchor\n * @type gs.Point\n */\n this.positionAnchor = new gs.Point(0, 0);\n\n /**\n * The object's zoom-setting for x and y axis. The default value is\n * { x: 1.0, y: 1.0 }\n * @property zoom\n * @type gs.Point\n */\n this.zoom = (data != null ? data.zoom : void 0) || new gs.Point(1.0, 1.0);\n\n /**\n * The object's z-index controls rendering-order/image-overlapping. An object with a smaller z-index is rendered\n * before an object with a larger index. For example: To make sure a game object is always on top of the screen, it\n * should have the largest z-index of all game objects.\n * @property zIndex\n * @type number\n */\n this.zIndex = 700;\n\n /**\n * The object's blend mode controls how the blending of the object's visual representation is calculated.\n * @property blendMode\n * @type number\n * @default gs.BlendMode.NORMAL\n */\n this.blendMode = gs.BlendMode.NORMAL;\n\n /**\n * The object's viewport.\n * @property viewport\n * @type gs.Viewport\n */\n this.viewport = Graphics.viewport;\n\n /**\n * The object's motion-blur settings.\n * @property motionBlur\n * @type gs.MotionBlur\n */\n this.motionBlur = new gs.MotionBlur();\n\n /**\n * Contains different kinds of shader effects which can be activated for the object.\n * @property effects\n * @type gs.EffectCollection\n */\n this.effects = new gs.EffectCollection();\n\n /**\n * The object's opacity to control transparency. For example: 0 = Transparent, 255 = Opaque, 128 = Semi-Transparent.\n * @property opacity\n * @type number\n */\n this.opacity = 255;\n }", "function GraphicObjectCollection() {\n\t/**\n\t * Il frame rappresentante il menu contestuale attualmente visualizzato.\n\t * @type {FrameWidget}\n * @private\n\t */\n\tthis.contextualFrame = null;\n\t/**\n\t * La collezione degli oggetti grafici.\n\t * Tale collezione deve essere mantenuta in ordine secondo la profondità degli oggetti in essa contenuti.\n\t * @type {Array.<GraphicObject>}\n * @private\n\t */\n\tthis.graphicObjects = [];\n}", "function DisplayObject()\n{\n this.last = this;\n this.first = this;\n /**\n * The coordinate of the object relative to the local coordinates of the parent.\n *\n * @property position\n * @type Point\n */\n this.position = new Point();\n\n /**\n * The scale factor of the object.\n *\n * @property scale\n * @type Point\n */\n this.scale = new Point(1,1);//{x:1, y:1};\n\n /**\n * The pivot point of the displayObject that it rotates around\n *\n * @property pivot\n * @type Point\n */\n this.pivot = new Point(0,0);\n\n /**\n * The rotation of the object in radians.\n *\n * @property rotation\n * @type Number\n */\n this.rotation = 0;\n\n /**\n * The opacity of the object.\n *\n * @property alpha\n * @type Number\n */\n this.alpha = 1;\n\n /**\n * The visibility of the object.\n *\n * @property visible\n * @type Boolean\n */\n this.visible = true;\n\n /**\n * This is the defined area that will pick up mouse / touch events. It is null by default.\n * Setting it is a neat way of optimising the hitTest function that the interactionManager will use (as it will not need to hit test all the children)\n *\n * @property hitArea\n * @type Rectangle|Circle|Ellipse|Polygon\n */\n this.hitArea = null;\n\n /**\n * This is used to indicate if the displayObject should display a mouse hand cursor on rollover\n *\n * @property buttonMode\n * @type Boolean\n */\n this.buttonMode = false;\n\n /**\n * Can this object be rendered\n *\n * @property renderable\n * @type Boolean\n */\n this.renderable = false;\n\n /**\n * [read-only] The display object container that contains this display object.\n *\n * @property parent\n * @type DisplayObjectContainer\n * @readOnly\n */\n this.parent = null;\n\n /**\n * [read-only] The stage the display object is connected to, or undefined if it is not connected to the stage.\n *\n * @property stage\n * @type Stage\n * @readOnly\n */\n this.stage = null;\n\n /**\n * [read-only] The multiplied alpha of the displayobject\n *\n * @property worldAlpha\n * @type Number\n * @readOnly\n */\n this.worldAlpha = 1;\n\n /**\n * [read-only] Whether or not the object is interactive, do not toggle directly! use the `interactive` property\n *\n * @property _interactive\n * @type Boolean\n * @readOnly\n * @private\n */\n this._interactive = false;\n\n this.defaultCursor = 'pointer';\n\n /**\n * [read-only] Current transform of the object based on world (parent) factors\n *\n * @property worldTransform\n * @type Mat3\n * @readOnly\n * @private\n */\n this.worldTransform = mat3.create();//mat3.identity();\n\n /**\n * [read-only] Current transform of the object locally\n *\n * @property localTransform\n * @type Mat3\n * @readOnly\n * @private\n */\n this.localTransform = mat3.create();//mat3.identity();\n\n /**\n * [NYI] Unkown\n *\n * @property color\n * @type Array<>\n * @private\n */\n this.color = [];\n\n /**\n * [NYI] Holds whether or not this object is dynamic, for rendering optimization\n *\n * @property dynamic\n * @type Boolean\n * @private\n */\n this.dynamic = true;\n\n // chach that puppy!\n this._sr = 0;\n this._cr = 1;\n\n\n this.filterArea = new Rectangle(0,0,1,1);\n\n /*\n * MOUSE Callbacks\n */\n\n /**\n * A callback that is used when the users clicks on the displayObject with their mouse\n * @method click\n * @param interactionData {InteractionData}\n */\n\n /**\n * A callback that is used when the user clicks the mouse down over the sprite\n * @method mousedown\n * @param interactionData {InteractionData}\n */\n\n /**\n * A callback that is used when the user releases the mouse that was over the displayObject\n * for this callback to be fired the mouse must have been pressed down over the displayObject\n * @method mouseup\n * @param interactionData {InteractionData}\n */\n\n /**\n * A callback that is used when the user releases the mouse that was over the displayObject but is no longer over the displayObject\n * for this callback to be fired, The touch must have started over the displayObject\n * @method mouseupoutside\n * @param interactionData {InteractionData}\n */\n\n /**\n * A callback that is used when the users mouse rolls over the displayObject\n * @method mouseover\n * @param interactionData {InteractionData}\n */\n\n /**\n * A callback that is used when the users mouse leaves the displayObject\n * @method mouseout\n * @param interactionData {InteractionData}\n */\n\n\n /*\n * TOUCH Callbacks\n */\n\n /**\n * A callback that is used when the users taps on the sprite with their finger\n * basically a touch version of click\n * @method tap\n * @param interactionData {InteractionData}\n */\n\n /**\n * A callback that is used when the user touch's over the displayObject\n * @method touchstart\n * @param interactionData {InteractionData}\n */\n\n /**\n * A callback that is used when the user releases a touch over the displayObject\n * @method touchend\n * @param interactionData {InteractionData}\n */\n\n /**\n * A callback that is used when the user releases the touch that was over the displayObject\n * for this callback to be fired, The touch must have started over the sprite\n * @method touchendoutside\n * @param interactionData {InteractionData}\n */\n}", "function AbstractChartPainter() {\n\n}", "function Graphic(graphics, x, y) {\n this._graphics = graphics;\n this._x = x;\n this._y = y;\n this._color = undefined;\n this._borderWidth = undefined;\n this._borderColor = undefined;\n this._draggable = false;\n this._state = [];\n}", "function Graphics()\n{\n Container.call(this);\n\n /**\n * The alpha value used when filling the Graphics object.\n *\n * @member {number}\n * @default 1\n */\n this.fillAlpha = 1;\n\n /**\n * The width (thickness) of any lines drawn.\n *\n * @member {number}\n * @default 0\n */\n this.lineWidth = 0;\n\n /**\n * The color of any lines drawn.\n *\n * @member {string}\n * @default 0\n */\n this.lineColor = 0;\n\n /**\n * Graphics data\n *\n * @member {PIXI.GraphicsData[]}\n * @private\n */\n this.graphicsData = [];\n\n /**\n * The tint applied to the graphic shape. This is a hex value. Apply a value of 0xFFFFFF to reset the tint.\n *\n * @member {number}\n * @default 0xFFFFFF\n */\n this.tint = 0xFFFFFF;\n\n /**\n * The previous tint applied to the graphic shape. Used to compare to the current tint and check if theres change.\n *\n * @member {number}\n * @private\n * @default 0xFFFFFF\n */\n this._prevTint = 0xFFFFFF;\n\n /**\n * The blend mode to be applied to the graphic shape. Apply a value of `PIXI.BLEND_MODES.NORMAL` to reset the blend mode.\n *\n * @member {number}\n * @default PIXI.BLEND_MODES.NORMAL;\n * @see PIXI.BLEND_MODES\n */\n this.blendMode = CONST.BLEND_MODES.NORMAL;\n\n /**\n * Current path\n *\n * @member {PIXI.GraphicsData}\n * @private\n */\n this.currentPath = null;\n\n /**\n * Array containing some WebGL-related properties used by the WebGL renderer.\n *\n * @member {object<number, object>}\n * @private\n */\n // TODO - _webgl should use a prototype object, not a random undocumented object...\n this._webGL = {};\n\n /**\n * Whether this shape is being used as a mask.\n *\n * @member {boolean}\n */\n this.isMask = false;\n\n /**\n * The bounds' padding used for bounds calculation.\n *\n * @member {number}\n */\n this.boundsPadding = 0;\n\n /**\n * A cache of the local bounds to prevent recalculation.\n *\n * @member {PIXI.Rectangle}\n * @private\n */\n this._localBounds = new math.Rectangle(0,0,1,1);\n\n /**\n * Used to detect if the graphics object has changed. If this is set to true then the graphics\n * object will be recalculated.\n *\n * @member {boolean}\n * @private\n */\n this.dirty = true;\n\n /**\n * Used to detect if the WebGL graphics object has changed. If this is set to true then the\n * graphics object will be recalculated.\n *\n * @member {boolean}\n * @private\n */\n this.glDirty = false;\n\n this.boundsDirty = true;\n\n /**\n * Used to detect if the cached sprite object needs to be updated.\n *\n * @member {boolean}\n * @private\n */\n this.cachedSpriteDirty = false;\n\n /**\n * When cacheAsBitmap is set to true the graphics object will be rendered as if it was a sprite.\n * This is useful if your graphics element does not change often, as it will speed up the rendering\n * of the object in exchange for taking up texture memory. It is also useful if you need the graphics\n * object to be anti-aliased, because it will be rendered using canvas. This is not recommended if\n * you are constantly redrawing the graphics element.\n *\n * @name cacheAsBitmap\n * @member {boolean}\n * @memberof PIXI.Graphics#\n * @default false\n */\n}", "function Graphics()\n{\n Container.call(this);\n\n /**\n * The alpha value used when filling the Graphics object.\n *\n * @member {number}\n * @default 1\n */\n this.fillAlpha = 1;\n\n /**\n * The width (thickness) of any lines drawn.\n *\n * @member {number}\n * @default 0\n */\n this.lineWidth = 0;\n\n /**\n * The color of any lines drawn.\n *\n * @member {string}\n * @default 0\n */\n this.lineColor = 0;\n\n /**\n * Graphics data\n *\n * @member {PIXI.GraphicsData[]}\n * @private\n */\n this.graphicsData = [];\n\n /**\n * The tint applied to the graphic shape. This is a hex value. Apply a value of 0xFFFFFF to reset the tint.\n *\n * @member {number}\n * @default 0xFFFFFF\n */\n this.tint = 0xFFFFFF;\n\n /**\n * The previous tint applied to the graphic shape. Used to compare to the current tint and check if theres change.\n *\n * @member {number}\n * @private\n * @default 0xFFFFFF\n */\n this._prevTint = 0xFFFFFF;\n\n /**\n * The blend mode to be applied to the graphic shape. Apply a value of `PIXI.BLEND_MODES.NORMAL` to reset the blend mode.\n *\n * @member {number}\n * @default PIXI.BLEND_MODES.NORMAL;\n * @see PIXI.BLEND_MODES\n */\n this.blendMode = CONST.BLEND_MODES.NORMAL;\n\n /**\n * Current path\n *\n * @member {PIXI.GraphicsData}\n * @private\n */\n this.currentPath = null;\n\n /**\n * Array containing some WebGL-related properties used by the WebGL renderer.\n *\n * @member {object<number, object>}\n * @private\n */\n // TODO - _webgl should use a prototype object, not a random undocumented object...\n this._webGL = {};\n\n /**\n * Whether this shape is being used as a mask.\n *\n * @member {boolean}\n */\n this.isMask = false;\n\n /**\n * The bounds' padding used for bounds calculation.\n *\n * @member {number}\n */\n this.boundsPadding = 0;\n\n /**\n * A cache of the local bounds to prevent recalculation.\n *\n * @member {PIXI.Rectangle}\n * @private\n */\n this._localBounds = new Bounds();\n\n /**\n * Used to detect if the graphics object has changed. If this is set to true then the graphics\n * object will be recalculated.\n *\n * @member {boolean}\n * @private\n */\n this.dirty = 0;\n\n /**\n * Used to detect if we need to do a fast rect check using the id compare method\n * @type {Number}\n */\n this.fastRectDirty = -1;\n\n /**\n * Used to detect if we clear the graphics webGL data\n * @type {Number}\n */\n this.clearDirty = 0;\n\n /**\n * Used to detect if we we need to recalculate local bounds\n * @type {Number}\n */\n this.boundsDirty = -1;\n\n /**\n * Used to detect if the cached sprite object needs to be updated.\n *\n * @member {boolean}\n * @private\n */\n this.cachedSpriteDirty = false;\n\n\n this._spriteRect = null;\n this._fastRect = false;\n\n /**\n * When cacheAsBitmap is set to true the graphics object will be rendered as if it was a sprite.\n * This is useful if your graphics element does not change often, as it will speed up the rendering\n * of the object in exchange for taking up texture memory. It is also useful if you need the graphics\n * object to be anti-aliased, because it will be rendered using canvas. This is not recommended if\n * you are constantly redrawing the graphics element.\n *\n * @name cacheAsBitmap\n * @member {boolean}\n * @memberof PIXI.Graphics#\n * @default false\n */\n}", "function drawGraphics(obj) {\r\n var shape = new createjs.Shape();\r\n obj.x = obj.x ? parseFloat(obj.x) : 0;\r\n obj.y = obj.y ? parseFloat(obj.y) : 0;\r\n\r\n switch (obj.subType) {\r\n case \"ARROW\":\r\n shape = new ArrowComp(obj);\r\n break;\r\n case \"LINE\":\r\n obj.stroke = obj.stroke ? obj.stroke : 1;\r\n obj.strokeColor = obj.strokeColor ? obj.strokeColor : \"#000\";\r\n shape.graphics.setStrokeStyle(obj.stroke).beginStroke(obj.strokeColor).lineTo(obj.x, obj.y).lineTo(obj.x1, obj.y1).endStroke();\r\n obj.x = 0;\r\n obj.y = 0;\r\n break;\r\n case \"RECT\":\r\n obj.stroke = obj.stroke ? obj.stroke : 0;\r\n obj.strokeColor = obj.strokeColor ? obj.strokeColor : \"\";\r\n obj.color = obj.color ? obj.color : \"\";\r\n obj.corner = obj.corner ? obj.corner : 0;\r\n shape.graphics.setStrokeStyle(obj.stroke).beginStroke(obj.strokeColor);\r\n shape.graphics.beginFill(obj.color).drawRoundRect(0, 0, parseFloat(obj.width), parseFloat(obj.height), obj.corner);\r\n break;\r\n case \"CIRCLE\":\r\n var width, height, ratio;\r\n width = parseFloat(obj.width);\r\n height = parseFloat(obj.height);\r\n ratio = width < height ? height / 2 : width / 2;\r\n obj.stroke = obj.stroke ? obj.stroke : 0;\r\n obj.strokeColor = obj.strokeColor ? obj.strokeColor : \"\";\r\n obj.color = obj.color ? obj.color : \"\";\r\n shape.graphics.setStrokeStyle(obj.stroke).beginStroke(obj.strokeColor);\r\n shape.graphics.beginFill(obj.color).drawCircle(0, 0, ratio);\r\n if (width < height) {\r\n shape.scaleX = width / (ratio * 2);\r\n } else {\r\n shape.scaleY = height / (ratio * 2);\r\n }\r\n obj.x = obj.x + ratio + 5;\r\n obj.y = obj.y + ratio - 15;\r\n break;\r\n default:\r\n break;\r\n }\r\n if (obj.rotation) shape.rotation = obj.rotation;\r\n shape.x = obj.x;\r\n shape.y = obj.y;\r\n return shape;\r\n}", "function DisplayObject()\n{\n EventEmitter.call(this);\n\n var TransformClass = CONST.TRANSFORM_MODE.DEFAULT === CONST.TRANSFORM_MODE.STATIC ? TransformStatic : Transform;\n\n //TODO: need to create Transform from factory\n /**\n * World transform and local transform of this object.\n * This will be reworked in v4.1, please do not use it yet unless you know what are you doing!\n *\n * @member {PIXI.TransformBase}\n */\n this.transform = new TransformClass();\n\n /**\n * The opacity of the object.\n *\n * @member {number}\n */\n this.alpha = 1;\n\n /**\n * The visibility of the object. If false the object will not be drawn, and\n * the updateTransform function will not be called.\n *\n * @member {boolean}\n */\n this.visible = true;\n\n /**\n * Can this object be rendered, if false the object will not be drawn but the updateTransform\n * methods will still be called.\n *\n * @member {boolean}\n */\n this.renderable = true;\n\n /**\n * The display object container that contains this display object.\n *\n * @member {PIXI.Container}\n * @readonly\n */\n this.parent = null;\n\n /**\n * The multiplied alpha of the displayObject\n *\n * @member {number}\n * @readonly\n */\n this.worldAlpha = 1;\n\n /**\n * The area the filter is applied to. This is used as more of an optimisation\n * rather than figuring out the dimensions of the displayObject each frame you can set this rectangle\n *\n * Also works as an interaction mask\n *\n * @member {PIXI.Rectangle}\n */\n this.filterArea = null;\n\n this._filters = null;\n this._enabledFilters = null;\n\n /**\n * The bounds object, this is used to calculate and store the bounds of the displayObject\n *\n * @member {PIXI.Rectangle}\n * @private\n */\n this._bounds = new Bounds();\n this._boundsID = 0;\n this._lastBoundsID = -1;\n this._boundsRect = null;\n this._localBoundsRect = null;\n\n /**\n * The original, cached mask of the object\n *\n * @member {PIXI.Rectangle}\n * @private\n */\n this._mask = null;\n\n\n}", "function DrawInterface()\n{\n}", "function Displayable(opts) {\n\n\t opts = opts || {};\n\n\t Element.call(this, opts);\n\n\t // Extend properties\n\t for (var name in opts) {\n\t if (opts.hasOwnProperty(name) && name !== 'style') {\n\t this[name] = opts[name];\n\t }\n\t }\n\n\t /**\n\t * @type {module:zrender/graphic/Style}\n\t */\n\t this.style = new Style(opts.style);\n\n\t this._rect = null;\n\t // Shapes for cascade clipping.\n\t this.__clipPaths = [];\n\n\t // FIXME Stateful must be mixined after style is setted\n\t // Stateful.call(this, opts);\n\t}", "function Graphic(x_, y_, width_, height_, graphic_name_) {\n\t\t\tthis.graphic_name = graphic_name_;\n\t\t\tthis.height = height_;\n\t\t\tthis.position = new Point(x_, y_);\n\t\t\tthis.width = width_;\n\t\t}", "function Displayable(opts) {\n\n opts = opts || {};\n\n Element.call(this, opts);\n\n // Extend properties\n for (var name in opts) {\n if (opts.hasOwnProperty(name) && name !== 'style') {\n this[name] = opts[name];\n }\n }\n\n /**\n * @type {module:zrender/graphic/Style}\n */\n this.style = new Style(opts.style);\n\n this._rect = null;\n // Shapes for cascade clipping.\n this.__clipPaths = [];\n\n // FIXME Stateful must be mixined after style is setted\n // Stateful.call(this, opts);\n}", "function Drawable() {\r\n\tthis.init = function(x, y) {\r\n\t\t// Default variables\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}\r\n\tthis.speed = 0;\r\n\tthis.canvasWidth = 0;\r\n\tthis.canvasHeight = 0;\r\n\t// Define abstract function to be implemented in child objects\r\n\tthis.draw = function() {\r\n\t};\r\n}", "function DisplayObject()\n\t{\n\t EventEmitter.call(this);\n\t\n\t /**\n\t * The coordinate of the object relative to the local coordinates of the parent.\n\t *\n\t * @member {PIXI.Point}\n\t */\n\t this.position = new math.Point();\n\t\n\t /**\n\t * The scale factor of the object.\n\t *\n\t * @member {PIXI.Point}\n\t */\n\t this.scale = new math.Point(1, 1);\n\t\n\t /**\n\t * The pivot point of the displayObject that it rotates around\n\t *\n\t * @member {PIXI.Point}\n\t */\n\t this.pivot = new math.Point(0, 0);\n\t\n\t\n\t /**\n\t * The skew factor for the object in radians.\n\t *\n\t * @member {PIXI.Point}\n\t */\n\t this.skew = new math.Point(0, 0);\n\t\n\t /**\n\t * The rotation of the object in radians.\n\t *\n\t * @member {number}\n\t */\n\t this.rotation = 0;\n\t\n\t /**\n\t * The opacity of the object.\n\t *\n\t * @member {number}\n\t */\n\t this.alpha = 1;\n\t\n\t /**\n\t * The visibility of the object. If false the object will not be drawn, and\n\t * the updateTransform function will not be called.\n\t *\n\t * @member {boolean}\n\t */\n\t this.visible = true;\n\t\n\t /**\n\t * Can this object be rendered, if false the object will not be drawn but the updateTransform\n\t * methods will still be called.\n\t *\n\t * @member {boolean}\n\t */\n\t this.renderable = true;\n\t\n\t /**\n\t * The display object container that contains this display object.\n\t *\n\t * @member {PIXI.Container}\n\t * @readOnly\n\t */\n\t this.parent = null;\n\t\n\t /**\n\t * The multiplied alpha of the displayObject\n\t *\n\t * @member {number}\n\t * @readOnly\n\t */\n\t this.worldAlpha = 1;\n\t\n\t /**\n\t * Current transform of the object based on world (parent) factors\n\t *\n\t * @member {PIXI.Matrix}\n\t * @readOnly\n\t */\n\t this.worldTransform = new math.Matrix();\n\t\n\t /**\n\t * The area the filter is applied to. This is used as more of an optimisation\n\t * rather than figuring out the dimensions of the displayObject each frame you can set this rectangle\n\t *\n\t * @member {PIXI.Rectangle}\n\t */\n\t this.filterArea = null;\n\t\n\t /**\n\t * cached sin rotation\n\t *\n\t * @member {number}\n\t * @private\n\t */\n\t this._sr = 0;\n\t\n\t /**\n\t * cached cos rotation\n\t *\n\t * @member {number}\n\t * @private\n\t */\n\t this._cr = 1;\n\t\n\t /**\n\t * The original, cached bounds of the object\n\t *\n\t * @member {PIXI.Rectangle}\n\t * @private\n\t */\n\t this._bounds = new math.Rectangle(0, 0, 1, 1);\n\t\n\t /**\n\t * The most up-to-date bounds of the object\n\t *\n\t * @member {PIXI.Rectangle}\n\t * @private\n\t */\n\t this._currentBounds = null;\n\t\n\t /**\n\t * The original, cached mask of the object\n\t *\n\t * @member {PIXI.Rectangle}\n\t * @private\n\t */\n\t this._mask = null;\n\t}", "function Displayable(opts) {\n\n opts = opts || {};\n\n Element.call(this, opts);\n\n // Extend properties\n for (var name in opts) {\n if (\n opts.hasOwnProperty(name) &&\n name !== 'style'\n ) {\n this[name] = opts[name];\n }\n }\n\n /**\n * @type {module:zrender/graphic/Style}\n */\n this.style = new Style(opts.style, this);\n\n this._rect = null;\n // Shapes for cascade clipping.\n this.__clipPaths = [];\n\n // FIXME Stateful must be mixined after style is setted\n // Stateful.call(this, opts);\n }", "display() {\n // draw our player at their current position with the correct graphic\n image(this.myGraphic, this.xPos, this.yPos);\n }", "function Displayable(opts) {\n\n opts = opts || {};\n\n Element.call(this, opts);\n\n // Extend properties\n for (var name in opts) {\n if (\n opts.hasOwnProperty(name) &&\n name !== 'style'\n ) {\n this[name] = opts[name];\n }\n }\n\n /**\n * @type {module:zrender/graphic/Style}\n */\n this.style = new Style(opts.style);\n\n this._rect = null;\n // Shapes for cascade clipping.\n this.__clipPaths = [];\n\n // FIXME Stateful must be mixined after style is setted\n // Stateful.call(this, opts);\n }", "function Drawable() {\n\tthis.init = function(x, y, width, height) {\n\t\t// Defualt variables\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t}\n\t\n\tthis.speed = 0;\n\tthis.canvasWidth = 0;\n\tthis.canvasHeight = 0;\n\t\n\t// Define abstract function to be implemented in child objects\n\tthis.draw = function() {\n\t};\n\tthis.move = function() {\n\t};\n}", "function ProceduralRenderer3(){}", "updateGraphicsData() {\n // override\n }", "function SVGBaseElement() {\n }", "function Drawable() {\n this.init = function (x, y, width, height) {\n // Defualt variables\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n }\n\n this.speed = 0;\n this.canvasWidth = 0;\n this.canvasHeight = 0;\n\n // Define abstract function to be implemented in child objects\n this.draw = function () {\n };\n this.move = function () {\n };\n}", "function Drawable() {\n this.init = function (x, y, width, height) {\n // Default variables\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n }\n this.speed = 0;\n this.canvasWidth = 0;\n this.canvasHeight = 0;\n // Define abstract function to be implemented in child objects\n this.draw = function () {};\n}", "constructor(src, x, y, properties){\r\n super(src, properties);\r\n Global.currentRenderer.addUI(this, x, y);\r\n }", "display() {\n fill('#323230');\n noStroke();\n if(this.shape === 'rect') {\n rectMode(CENTER);\n rect(this.x, this.y, this.size, this.size);\n } else if(this.shape === 'circle') {\n circle(this.x, this.y, this.size);\n } else {\n triangle(this.x - this.size / 2, this.y + this.size / 2, this.x + this.size / 2, this.y + this.size / 2, this.x, this.y - this.size / 2);\n }\n }", "renderPersistentObjects() {\n\t\t// Draw derivation descriptions\n\t\t//font-family: 'Space Mono', monospace;\n\t\tlet ctx = this.shadowCtx;\n\n\t\tctx.font = 'bold 15pt Space Mono, Monaco, Consolas';\n\t\tctx.fillStyle = '#000000';\n\t\tctx.textAlign = 'right';\n\n\t\t// Draw titles of the derivations (I-III, aVL, aVR, aVL, V1-V6)\n\t\tfor(let col = 0; col <= 1; col++) {\n\t\t\tfor(let row = 0; row <= 5; row++) {\n\t\t\t\tctx.fillText(\n\t\t\t\t\tthis.state().ecgDisplay.derivationNames[6*col + row],\n\t\t\t\t\tthis.variables.col[col] - 5,\n\t\t\t\t\tthis.variables.row[row] + this.variables.derivation.hHalf\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\n\t}", "constructor() {\n super();\n this.draw();\n }", "function DisplayObject()\n{\n EventEmitter.call(this);\n\n /**\n * The coordinate of the object relative to the local coordinates of the parent.\n *\n * @member {PIXI.Point}\n */\n this.position = new math.Point();\n\n /**\n * The scale factor of the object.\n *\n * @member {PIXI.Point}\n */\n this.scale = new math.Point(1, 1);\n\n /**\n * The pivot point of the displayObject that it rotates around\n *\n * @member {PIXI.Point}\n */\n this.pivot = new math.Point(0, 0);\n\n\n /**\n * The skew factor for the object in radians.\n *\n * @member {PIXI.Point}\n */\n this.skew = new math.Point(0, 0);\n\n /**\n * The rotation of the object in radians.\n *\n * @member {number}\n */\n this.rotation = 0;\n\n /**\n * The opacity of the object.\n *\n * @member {number}\n */\n this.alpha = 1;\n\n /**\n * The visibility of the object. If false the object will not be drawn, and\n * the updateTransform function will not be called.\n *\n * @member {boolean}\n */\n this.visible = true;\n\n /**\n * Can this object be rendered, if false the object will not be drawn but the updateTransform\n * methods will still be called.\n *\n * @member {boolean}\n */\n this.renderable = true;\n\n /**\n * The display object container that contains this display object.\n *\n * @member {PIXI.Container}\n * @readOnly\n */\n this.parent = null;\n\n /**\n * The multiplied alpha of the displayObject\n *\n * @member {number}\n * @readOnly\n */\n this.worldAlpha = 1;\n\n /**\n * Current transform of the object based on world (parent) factors\n *\n * @member {PIXI.Matrix}\n * @readOnly\n */\n this.worldTransform = new math.Matrix();\n\n /**\n * The area the filter is applied to. This is used as more of an optimisation\n * rather than figuring out the dimensions of the displayObject each frame you can set this rectangle\n *\n * @member {PIXI.Rectangle}\n */\n this.filterArea = null;\n\n /**\n * cached sin rotation\n *\n * @member {number}\n * @private\n */\n this._sr = 0;\n\n /**\n * cached cos rotation\n *\n * @member {number}\n * @private\n */\n this._cr = 1;\n\n /**\n * The original, cached bounds of the object\n *\n * @member {PIXI.Rectangle}\n * @private\n */\n this._bounds = new math.Rectangle(0, 0, 1, 1);\n\n /**\n * The most up-to-date bounds of the object\n *\n * @member {PIXI.Rectangle}\n * @private\n */\n this._currentBounds = null;\n\n /**\n * The original, cached mask of the object\n *\n * @member {PIXI.Rectangle}\n * @private\n */\n this._mask = null;\n}", "function Graphic(w,h,attr,ch)\n{\n\tif(ch==undefined)\n\t\tthis.ch=' ';\n\telse\n\t\tthis.ch=ch;\n\tif(attr==undefined)\n\t\tthis.attribute=7;\n\telse\n\t\tthis.attribute=attr;\n\tif(h==undefined)\n\t\tthis.height=24;\n\telse\n\t\tthis.height=h;\n\tif(w==undefined)\n\t\tthis.width=80;\n\telse\n\t\tthis.width=w;\n\n\tthis.data=new Array(w);\n\tvar x;\n\tvar y;\n\tfor(y=0; y<this.height; y++) {\n\t\tfor(x=0; x<this.width; x++) {\n\t\t\tif(y==0) {\n\t\t\t\tthis.data[x]=new Array(h);\n\t\t\t}\n\t\t\tthis.data[x][y]=new Object;\n\t\t\tthis.data[x][y].ch=ch;\n\t\t\tthis.data[x][y].attr=attr;\n\t\t}\n\t}\n\tthis.draw=Graphic_draw;\n\tthis.load=Graphic_load;\n\tthis.write=Graphic_write;\n\tthis.scroll=Graphic_scroll;\n\tthis.putmsg=Graphic_putmsg;\n}", "function Object_Base() {\n\n /**\n * @property subObjects\n * @type gs.Object_Base[]\n * @default []\n * A list of game-objects grouped under this game object.\n */\n var ref;\n this.subObjects = [];\n\n /**\n * @property components\n * @type gs.Component[]\n * @default []\n * A list of components defining the logic/behavior and appearance of the game object.\n */\n this.components = [];\n\n /**\n * @property componentsById\n * @type Object\n * @default []\n * All associated components by their ID.\n */\n this.componentsById = {};\n\n /**\n * @property disposed\n * @type boolean\n * @default false\n * Indicates if the game object id disposed. A disposed game object cannot be used anymore.\n */\n this.disposed = false;\n\n /**\n * @property active\n * @default true\n * Indicates if the game object is active. An inactive game object will not be updated.\n */\n this.active = true;\n this.input = false;\n\n /**\n * @property id\n * @type string\n * @default null\n * The game object's UID (Unique ID)\n */\n this.id = null;\n\n /**\n * @property group\n * @default null\n * @type string\n * The game object's group. To get all object's of a specific group the gs.ObjectManager.objectsByGroup property can be used.\n */\n this.group = null;\n\n /**\n * @property parent\n * @type gs.Object_Base\n * @default null\n * The parent object if the game object is a sub-object of another game object.\n */\n this.parent = null;\n\n /**\n * @property order\n * @type number\n * @default 0\n * Controls the update-order. The smaller the value the earlier the game object is updated before other game objects are updated.\n */\n this.order = 0;\n\n /**\n * @property rIndex\n * @type number\n * @default 0\n * Holds the render-index if the game object has a graphical representation on screen. The render-index is the\n * index of the game object's graphic-object(gs.GraphicObject) in the current list of graphic-objects. The render-index\n * is read-only. Setting the render-index to a certain value has no effect.\n */\n this.rIndex = 0;\n\n /**\n * @property needsSort\n * @type boolean\n * @default true\n * Indicates if the list of sub-objects needs to be sorted by order because of a change.\n */\n this.needsSort = true;\n\n /**\n * @property needsSort\n * @type boolean\n * @default true\n * Indicates if the UI object needs to be updated.\n */\n this.needsUpdate = true;\n\n /**\n * @property initialized\n * @type boolean\n * @default true\n * Indicates if the game object and its components have been initialized.\n */\n this.initialized = false;\n\n /**\n * @property customData\n * @type Object\n * @default {}\n * A custom data object which can be used to add any custom data/fields to the game\n * object. It is an empty object by default.\n */\n this.customData = {};\n if ((ref = gs.ObjectManager.current) != null) {\n ref.registerObject(this);\n }\n }", "function graphics(div_attach, name) {\n\t\t\n // *******************************************\n // Private variables:\n // *******************************************\t\n this.name = name;\n this.div_attach = div_attach;\n \n var drawn_obj;\n\t\t\n // *******************************************\n // Public methods:\n // *******************************************\n \n // Draw a polygon given an array of control points X and Y.\n // returns the polygon element\n this.DrawPolygon = function(X,Y, color, scale,obj_name) {\n var num_Points = X.length; \t\n var poly_points = \"\";\n \n for(i = 0; i < num_Points; i++) {\n var x_Coord = X[i];\n var y_Coord = Y[i];\n poly_points = poly_points + (X[i]*scale) + \"px,\" + (Y[i]*scale) + \"px,\";\n }\n \n poly_points = poly_points + (X[0]*scale) + \"px,\" + (Y[0]*scale) + \"px\";\n \n var VML_str = '<v:polyline id=\"' + this.name + '\" title=\"' + obj_name + '\" points=\"' + poly_points + '\" strokecolor=\"'+ color +'\" strokeweight=\"4px\" filled=\"false\" fillcolor=\"red\" style=\"position:absolute;left:0pt;top:0pt;\" />';\n InsertAfterDiv(VML_str, this.div_attach);\n \n this.drawn_obj = document.getElementById(this.name);\t\n };\n\n\n // Draw a polyline given an array of control points X and Y.\n // returns the polyline element\n this.DrawPolyLine = function(X,Y, color, scale) {\n var num_Points = X.length; \t\n var poly_points = \"\";\n \n for(i = 0; i < num_Points; i++) {\n var x_Coord = X[i];\n var y_Coord = Y[i];\n poly_points = poly_points + (X[i]*scale) + \"px,\" + (Y[i]*scale) + \"px,\";\n }\n \n \n \n var VML_str = '<v:polyline id=\"' + this.name + '\" points=\"' + poly_points + '\" strokecolor=\"'+ color +'\" strokeweight=\"4px\" filled=\"false\" fillcolor=\"red\" style=\"position:absolute;left:0pt;top:0pt;\" />';\n InsertAfterDiv(VML_str, this.div_attach);\n \n this.drawn_obj = document.getElementById(this.name);\t\n };\n\n \t\t\n // Fill the drawn object.\n this.FillPolygon = function () {\n this.drawn_obj = document.getElementById(this.name);\n this.drawn_obj.setAttribute(\"filled\",\"true\");\n this.drawn_obj.setAttribute(\"fillcolor\",\"red\");\n \n if (document.getElementById(this.name + \"_fill\") == null) {\n var fill=document.createElement(\"v:fill\");\n fill.setAttribute(\"id\", this.name + \"_fill\");\n fill.setAttribute(\"opacity\", \"0.5\");\n this.drawn_obj.appendChild(fill);\n }\n };\n\n // Unfill the drawn object.\n this.UnfillPolygon = function () {\n this.drawn_obj = document.getElementById(this.name);\n this.drawn_obj.setAttribute(\"filled\",\"false\");\n };\n \n // Draw a line given starting coordinates and ending coordinates\n this.DrawLineSegment = function(x1,y1,x2,y2, scale, color) {\n var VML_str = '<v:line id=\"' + this.name + '\" from=\"' + (x1*scale) + 'px,' + (y1*scale) + 'px\" to=\"'+ (x2*scale) + 'px,' + (y2*scale) + 'px\" strokecolor=\"' + color + '\" strokeweight=\"4px\" style=\"position:absolute;left:0pt;top:0pt;\" />';\n InsertAfterDiv(VML_str, this.div_attach);\n this.drawn_obj = document.getElementById(this.name);\n };\n\t\n // Draw a point given coordinates\n this.DrawPoint = function(x,y, color, width) {\n var VML_str = '<v:oval id=\"' + this.name + '\" fillcolor=\"' + color + '\" style=\"position:absolute;left:' + (x-width) + 'px;top:' + (y-width) + 'px;width:' + (2*width) + 'px;height:' + (2*width) + 'px;\" strokecolor=\"#ffffff\" strokeweight=\"' + (width/2) + '\" oncontextmenu=\"return false;\" />';\n InsertAfterDiv(VML_str, this.div_attach);\n this.drawn_obj = document.getElementById(this.name);\n };\n\n // Clear all drawings related to this object.\n this.ClearDrawing = function () {\n var q = document.getElementById(this.name);\n if(q) q.parentNode.removeChild(q);\n this.drawn_obj = null;\n };\n \n // Sets an attribute for the drawn object.\n this.SetAttribute = function(field,value) {\n switch(field) {\n case 'style':\n var f = value.substring(0,value.indexOf(':'));\n var v = value.substring(value.indexOf(':')+1,value.length-1);\n this.drawn_obj.style.setAttribute(f,v);\n break;\n default:\n this.drawn_obj.setAttribute(field,value);\n }\n };\n\n // Move this drawn element to the top in the depth ordering.\n this.MoveToTop = function () {\n var q = document.getElementById(this.name);\n if(q) q.parentNode.appendChild(q);\n };\n\n // Change the canvas.\n this.ChangeCanvas = function (div_attach) {\n this.div_attach = div_attach;\n };\n\n // *******************************************\n // Private methods:\n // *******************************************\n}", "function Renderer() {}", "function Drawing(){\n\n\tthis.header={\n\t\t$INSBASE:{x:0,y:0,z:0},\n\t\t$EXTMIN:{x:0,y:0,z:0},\n\t\t$EXTMAX:{x:10,y:10,z:0}\n\t};\n\tthis.tables={\n\t\tlinetype:{\n\t\t\tContinuous:{\n name: \"Continuous\",\n description: \"Solid line\",\n patternLength: 0\n },\n HIDDEN2: {\n name: \"HIDDEN2\",\n description: \"Hidden (.5x) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\",\n pattern:[0.125, -0.0625],\n patternLength: 0.1875\n }\n\t\t},\n\t\tlayer:{\n\t\t\thandle: \"2\",\n\t\t\townerHandle: \"0\",\n\t\t\tlayers: {\n\t\t\t\t\"0\":{Name:\"0\", Visible:true, color:16711680},\n\t\t\t\t\"A-WALL\":{Name:\"0\", Visible:true, color:16711680}\n\t\t\t}\t\t\n\t\t}\n\t};\n\tthis.blocks={};\n\tthis.entities=[\n\t\tline.create(this)\n\t\t//new line.Line(this)\n\t];\t\n}", "function Object_Picture(parent, data, type) {\n Object_Picture.__super__.constructor.call(this, data);\n\n /**\n * The object's source rectangle. It controls which part of the object's image is used\n * for visual presentation.\n * @property srcRect\n * @type gs.Rect\n */\n this.srcRect = new Rect();\n\n /**\n * The object's mask to execute masking-effects on it.\n * @property mask\n * @type gs.Mask\n */\n this.mask = new gs.Mask();\n\n /**\n * The domain the object belongs to.\n * @property domain\n * @type string\n */\n this.domain = \"com.degica.vnm.default\";\n\n /**\n \n * Indicates if the object's visual presentation should be mirrored horizontally.\n * @property mirror\n * @type boolean\n */\n this.mirror = false;\n\n /**\n * The object's image used for visual presentation.\n * @property image\n * @type string\n */\n this.image = \"\";\n\n /**\n * The rotation-angle of the picture in degrees. The rotation center depends on the\n * anchor-point.\n * @property angle\n * @type number\n */\n this.angle = 0;\n\n /**\n * The color tone of the object used for the visual presentation.\n * @property tone\n * @type gs.Tone\n */\n this.tone = new Tone(0, 0, 0, 0);\n\n /**\n * The color of the object used for the visual presentation.\n * @property color\n * @type gs.Color\n */\n this.color = new Color(255, 255, 255, 0);\n\n /**\n * Contains different kinds of effects which can be activated for the object.\n * @property effects\n * @type Object\n */\n this.effects = new gs.EffectCollection();\n\n /**\n * The object's animator-component to execute different kind of animations like move, rotate, etc. on it.\n * @property animator\n * @type vn.Component_Animator\n */\n this.animator = new gs.Component_Animator();\n\n /**\n * The object's visual-component to display the game object on screen.\n * @property visual\n * @type gs.Component_Sprite|gs.Component_TilingSprite|gs.Component_Frame|gs.Component_ThreePartImage|gs.Component_Quad\n */\n switch (type) {\n case 0:\n this.visual = new gs.Component_Sprite();\n break;\n case 1:\n this.visual = new gs.Component_TilingSprite();\n break;\n case 2:\n this.visual = new gs.Component_Frame();\n break;\n case 3:\n this.visual = new gs.Component_ThreePartImage();\n break;\n case 4:\n this.visual = new gs.Component_Quad();\n break;\n default:\n this.visual = new gs.Component_Sprite();\n }\n this.frameThickness = 16;\n this.frameCornerSize = 16;\n this.firstPartSize = 7;\n this.middlePartSize = 1;\n this.lastPartSize = 7;\n this.addComponent(this.visual);\n this.addComponent(this.animator);\n this.componentsFromDataBundle(data);\n }", "function draw(){\n\t\t// Needed to comply with Tool Delegate design pattern\n\t}", "function Renderable() {\n\tthis.mPos = new Vec2(0, 0);\n\tthis.mSize = new Vec2(0, 0);\n\tthis.mOrigin = new Vec2(0, 0);\n\tthis.mAbsolute = false;\n\t\n\tthis.mDepth = 0;\n\t\n\tthis.mTransformation = new Matrix3();\n\tthis.mScale = new Vec2(1.0, 1.0);\n\tthis.mRotation = 0;\n\tthis.mSkew = new Vec2();\n\tthis.mAlpha = 1.0;\n\tthis.mCompositeOp = \"source-over\";\n\t\n\tthis.mLocalBoundingBox = new Polygon(); // the local bounding box is in object coordinates (no transformations applied)\n\tthis.mGlobalBoundingBox = new Polygon(); // the global bounding box is in world coordinates (transformations applied)\n\t\n\tthis.mLocalMask = new Polygon();\n\tthis.mGlobalMask = new Polygon();\n}", "createGraphic(type, color, p1, p2) {\n let graphic = new PIXI.Graphics();\n graphic.beginFill(color);\n switch (type) {\n case \"rect\":\n case \"Rect\":\n case \"r\":\n case \"R\":\n case \"Rec\":\n graphic.drawRect(0, 0, p1, p2);\n break;\n default:\n graphic.drawCircle(0, 0, p1);\n }\n \n graphic.endFill();\n console.log('Created a new Graphic', type);\n return graphic;\n }", "constructor () {\n if (new.target === Renderable) {\n throw new TypeError('Cannot construct interface instance directly!')\n }\n if (this.render === undefined) {\n throw new TypeError('This class must implement the render method')\n }\n\n this.gfx = Render\n this.translateX = 0\n this.translateY = 0\n }", "function CanvasPaintObjectFactory(owner) {\n\tvar base = this;\n\tbase.owner = owner;\n\t\n\tbase.drawingObject = function(data, obj) {\n\t\tobj.tool = data.tool;\n\t\tobj.id = data.id;\n\t\tobj.order = data.order;\n\t\tobj.layer = data.layer;\n\t\t\n\t\tobj.erased = [];\n\t\t\n\t\tobj.genCanvas = function() {\n\t\t\t// add new canvas for the new object\n\t\t\tobj.bigCanvas = $(\"<canvas>\").attr({\n\t\t\t\theight: obj.layer.manager.owner.options.canvHeight,\n\t\t\t\twidth: obj.layer.manager.owner.options.canvWidth\n\t\t\t}).addClass(\"canvasPaintObjectCanvas\").css(\"z-index\", obj.layer.order*1000 + obj.order);\n\t\t\tobj.layer.manager.owner.canvasDiv.append(obj.bigCanvas);\n\t\t\tobj.bigContext = obj.bigCanvas[0].getContext(\"2d\");\n\t\t}\n\t\t\n\t\tobj.genCanvas();\n\t\t\n\t\tobj.delCanvas = function() {\n\t\t\tthis.bigCanvas.remove();\n\t\t\tdelete this.bigContext;\n\t\t}\n\t\t\n\t\tobj.drawOnContextAsImg = function(ctx) {\n\t\t\tthis.draw();\n\t\t\tctx.drawImage(this.bigCanvas[0], 0, 0);\n\t\t}\n\t\t\n\t\tobj.show = function() {\n\t\t\tthis.bigCanvas.show();\n\t\t}\n\t\t\n\t\tobj.hide = function() {\n\t\t\tthis.bigCanvas.hide();\n\t\t}\n\t\t\n\t\tobj.setOrder = function(newOrder) {\n\t\t\tthis.order = newOrder;\n\t\t\tthis.bigCanvas.css(\"z-index\", this.layer.order * 1000 + newOrder);\n\t\t}\n\t\t\n\t\tobj.setLayerOrder = function() {\n\t\t\t//console.log(this);\n\t\t\tthis.setOrder(this.order);\n\t\t}\n\t\t\n\t\tobj.computeVisualBounds = function() {\n\t\t\tvar pbounds = this.bounds.points;\n\t\t\tvar vbounds = this.bounds.visual;\n\t\t\tvar imgData = this.bigContext.getImageData(\n\t\t\t\tpbounds.left,\n\t\t\t\tpbounds.top,\n\t\t\t\tpbounds.right - pbounds.left,\n\t\t\t\tpbounds.bottom - pbounds.top\n\t\t\t)\n\t\t\tvar height = imgData.height;\n\t\t\tvar width = imgData.width;\n\t\t\tvar data = imgData.data;\n\t\t\tvar x, y, found;\n\t\t\t// get left\n\t\t\tfound = false;\n\t\t\tfor (x = 0; x < width && !found; x++) {\n\t\t\t\tfor (y = 0; y < height && !found; y++) {\n\t\t\t\t\tif(data[((y * width) + x) * 4 + 3] > 0) {\n\t\t\t\t\t\tvbounds.left = x + pbounds.left;\n\t\t\t\t\t\tfound = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// get top\n\t\t\tfound = false;\n\t\t\tfor (y = 0; y < height && !found; y++) {\n\t\t\t\tfor (x = 0; x < width && !found; x++) {\n\t\t\t\t\tif(data[((y * width) + x) * 4 + 3] > 0) {\n\t\t\t\t\t\tvbounds.top = y + pbounds.top;\n\t\t\t\t\t\tfound = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// get right\n\t\t\tfound = false;\n\t\t\tfor (x = width - 1; x > 0 && !found; x--) {\n\t\t\t\tfor (y = 0; y < height && !found; y++) {\n\t\t\t\t\tif(data[((y * width) + x) * 4 + 3] > 0) {\n\t\t\t\t\t\tvbounds.right = x + pbounds.left;\n\t\t\t\t\t\tfound = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// get bottom\n\t\t\tfound = false;\n\t\t\tfor (y = height - 1; y > 0 && !found; y--) {\n\t\t\t\tfor (x = 0; x < width && !found; x++) {\n\t\t\t\t\tif(data[((y * width) + x) * 4 + 3] > 0) {\n\t\t\t\t\t\tvbounds.bottom = y + pbounds.top;\n\t\t\t\t\t\tfound = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tobj.drawPointsBoundingBox = function() {\n\t\t\tthis.bigContext.setLineDash([6]);\n\t\t\tthis.bigContext.lineWidth = 4;\n\t\t\tthis.bigContext.strokeStyle = \"#000000\";\n\t\t\tthis.bigContext.beginPath();\n\t\t\tthis.bigContext.globalCompositeOperation = \"source-over\";\n\t\t\tthis.bigContext.rect(\n\t\t\t\tthis.bounds.points.left,\n\t\t\t\tthis.bounds.points.top,\n\t\t\t\tthis.bounds.points.right - this.bounds.points.left,\n\t\t\t\tthis.bounds.points.bottom - this.bounds.points.top\n\t\t\t);\n\t\t\tthis.bigContext.stroke();\n\t\t\tthis.bigContext.setLineDash([0]);\n\t\t}\n\t\t\n\t\tobj.drawVisualBoundingBox = function() {\n\t\t\tthis.bigContext.setLineDash([6]);\n\t\t\tthis.bigContext.lineWidth = 4;\n\t\t\tthis.bigContext.strokeStyle = \"#000000\";\n\t\t\tthis.bigContext.beginPath();\n\t\t\tthis.bigContext.globalCompositeOperation = \"source-over\";\n\t\t\tthis.bigContext.rect(\n\t\t\t\tthis.bounds.visual.left,\n\t\t\t\tthis.bounds.visual.top,\n\t\t\t\tthis.bounds.visual.right - this.bounds.visual.left,\n\t\t\t\tthis.bounds.visual.bottom - this.bounds.visual.top\n\t\t\t);\n\t\t\tthis.bigContext.stroke();\n\t\t\tthis.bigContext.setLineDash([0]);\n\t\t}\n\t\treturn this;\n\t}\n\t\n\tbase.paintObject = function(data) {\n\t\t//console.log(data);\n\t\tbase.drawingObject(data, this);\n\t\tthis.type = \"paint\";\n\t\tthis.strokes = [];\n\t\tthis.strokes.push({\n\t\t\tpoints : [{\n\t\t\t\tx: data.mX,\n\t\t\t\ty: data.mY\n\t\t\t}],\n\t\t\ttool: data.tool,\n\t\t\tstrokeColor: base.owner.TM.strokeColor,\n\t\t\tstrokeWidth: base.owner.TM.strokeWidth,\n\t\t\tstrokeOpacity: base.owner.TM.strokeOpacity,\n\t\t\tbounds: {\n\t\t\t\tleft: data.mX - base.owner.TM.strokeWidth / 2,\n\t\t\t\ttop: data.mY - base.owner.TM.strokeWidth / 2,\n\t\t\t\tright: data.mX + base.owner.TM.strokeWidth / 2,\n\t\t\t\tbottom: data.mY + base.owner.TM.strokeWidth / 2\n\t\t\t}\n\t\t});\n\t\tthis.bounds = {points:{}, visual: {}};\n\t\tthis.bounds.points.left = data.mX - this.strokes[0].strokeWidth / 2;\n\t\tthis.bounds.points.top = data.mY - this.strokes[0].strokeWidth / 2;\n\t\tthis.bounds.points.right = data.mX + this.strokes[0].strokeWidth / 2;\n\t\tthis.bounds.points.bottom = data.mY + this.strokes[0].strokeWidth / 2;\n\t\tthis.bounds.visual.left = data.mX - this.strokes[0].strokeWidth / 2;\n\t\tthis.bounds.visual.top = data.mY - this.strokes[0].strokeWidth / 2;\n\t\tthis.bounds.visual.right = data.mX + this.strokes[0].strokeWidth / 2;\n\t\tthis.bounds.visual.bottom = data.mY + this.strokes[0].strokeWidth / 2;\n\t\t//console.log(this);\n\t\t\n\t\tthis.addPoint = function(data) {\n\t\t\t//console.log(data);\n\t\t\tif (data.dragging) {\n\t\t\t\tvar stroke = this.strokes[this.strokes.length - 1];\n\t\t\t\tstroke.points.push({\n\t\t\t\t\tx: data.mX,\n\t\t\t\t\ty: data.mY\n\t\t\t\t});\n\t\t\t\t// update stroke bounds\n\t\t\t\tvar swidth = stroke.strokeWidth / 2;\n\t\t\t\tif (data.mX - swidth < stroke.bounds.left) {\n\t\t\t\t\tstroke.bounds.left = data.mX - swidth;\n\t\t\t\t}\n\t\t\t\tif (data.mY - swidth < stroke.bounds.top) {\n\t\t\t\t\tstroke.bounds.top = data.mY - swidth;\n\t\t\t\t}\n\t\t\t\tif (data.mX + swidth > stroke.bounds.right) {\n\t\t\t\t\tstroke.bounds.right = data.mX + swidth;\n\t\t\t\t}\n\t\t\t\tif (data.mY + swidth > stroke.bounds.bottom) {\n\t\t\t\t\tstroke.bounds.bottom = data.mY + swidth;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.isBlank = false;\n\t\t\t\tthis.strokes.push({\n\t\t\t\t\tpoints : [{\n\t\t\t\t\t\tx: data.mX,\n\t\t\t\t\t\ty: data.mY\n\t\t\t\t\t}],\n\t\t\t\t\ttool: data.tool,\n\t\t\t\t\tstrokeColor: base.owner.TM.strokeColor,\n\t\t\t\t\tstrokeWidth: base.owner.TM.strokeWidth,\n\t\t\t\t\tstrokeOpacity: base.owner.TM.strokeOpacity,\n\t\t\t\t\tbounds: {\n\t\t\t\t\t\tleft: data.mX - base.owner.TM.strokeWidth / 2,\n\t\t\t\t\t\ttop: data.mY - base.owner.TM.strokeWidth / 2,\n\t\t\t\t\t\tright: data.mX + base.owner.TM.strokeWidth / 2,\n\t\t\t\t\t\tbottom: data.mY + base.owner.TM.strokeWidth / 2\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn this.strokes[this.strokes.length - 1];\n\t\t}\n\t\t\n\t\tthis.addErasePoint = function(data) {\n\t\t\treturn this.addPoint(data);\n\t\t}\n\t\t\n\t\tthis.undoErase = function() {\n\t\t\tthis.strokes.pop();\n\t\t\tthis.isBlank = false;\n\t\t}\n\t\t\n\t\tthis.redoErase = function(stroke) {\n\t\t\tthis.strokes.push(stroke);\n\t\t}\n\t\t\n\t\tthis.draw = function() {\n\t\t\t//console.log(\"draw: \");\n\t\t\t//console.log(this);\n\t\t\tif (this.isBlank) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.bigContext.clearRect(0, 0, this.bigContext.canvas.width, this.bigContext.canvas.height);\n\t\t\tthis.bigContext.lineJoin = \"round\";\n\t\t\tthis.bigContext.lineCap = \"round\";\n\t\t\tfor(var s = 0; s < this.strokes.length; s++) {\n\t\t\t\tthis.bigContext.beginPath();\n\t\t\t\tthis.bigContext.strokeStyle = this.strokes[s].strokeColor;\n\t\t\t\tthis.bigContext.globalAlpha = this.strokes[s].strokeOpacity * this.layer.opacity;\n\t\t\t\tthis.bigContext.lineWidth = this.strokes[s].strokeWidth;\n\t\t\t\tif (this.strokes[s].tool == \"paint\") {\n\t\t\t\t\t//console.log(\"paint\");\n\t\t\t\t\tthis.bigContext.globalCompositeOperation = \"source-over\";\n\t\t\t\t}\n\t\t\t\telse if (this.strokes[s].tool == \"eraser\") {\n\t\t\t\t\t//console.log(\"erase\");\n\t\t\t\t\tthis.bigContext.globalCompositeOperation = \"destination-out\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//console.log(\"tool: \" + this.strokes[s].tool);\n\t\t\t\t}\n\t\t\t\tfor (var i = 0; i < this.strokes[s].points.length; i++) {\n\t\t\t\t\t//console.log(i);\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tthis.bigContext.moveTo(this.strokes[s].points[i].x, this.strokes[s].points[i].y);\n\t\t\t\t\t\tthis.bigContext.lineTo(this.strokes[s].points[i].x + 0.001, this.strokes[s].points[i].y);\n\t\t\t\t\t}\n\t\t\t\t\tthis.bigContext.lineTo(this.strokes[s].points[i].x, this.strokes[s].points[i].y);\n\t\t\t\t}\n\t\t\t\tthis.bigContext.stroke();\n\t\t\t}\n\t\t\t\n\t\t\tthis.layer.previewContext.drawImage(this.bigCanvas[0], 0, 0);\n\t\t\tif (this.bigCanvas[0].toDataURL() == base.owner.LM.blankData) {\n\t\t\t\t//console.log(\"completely erased\");\n\t\t\t\tthis.isBlank = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tthis.computePointsBounds = function() {\n\t\t\tvar ctx = this.bigContext;\n\t\t\tvar bounds = this.bounds.points;\n\t\t\tbounds.left = undefined;\n\t\t\tbounds.top = undefined;\n\t\t\tbounds.right = undefined;\n\t\t\tbounds.bottom = undefined;\n\t\t\t//var s = 0;\n\t\t\tthis.strokes.forEach(function(stroke){\n\t\t\t\t//console.log(s++);\n\t\t\t\tif (stroke.tool == \"paint\") {\n\t\t\t\t\tif (!bounds.left || stroke.bounds.left < bounds.left) {\n\t\t\t\t\t\tbounds.left = stroke.bounds.left;\n\t\t\t\t\t}\n\t\t\t\t\tif (!bounds.top || stroke.bounds.top < bounds.top) {\n\t\t\t\t\t\tbounds.top = stroke.bounds.top;\n\t\t\t\t\t}\n\t\t\t\t\tif (!bounds.right || stroke.bounds.right > bounds.right) {\n\t\t\t\t\t\tbounds.right = stroke.bounds.right;\n\t\t\t\t\t}\n\t\t\t\t\tif (!bounds.bottom || stroke.bounds.bottom > bounds.bottom) {\n\t\t\t\t\t\tbounds.bottom = stroke.bounds.bottom;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\t\n\t\treturn this;\n\t}\n\t\n\t// Rectangle Object\n\tbase.rectangleObject = function(data) {\n\t\t//console.log(data);\n\t\tbase.drawingObject(data, this);\n\t\tthis.type = \"rectangle\";\n\t\t\n\t\tthis.fillColor = base.owner.TM.fillColor;\n\t\tthis.fillOpacity = base.owner.TM.fillOpacity;\n\t\tthis.outlineColor = base.owner.TM.outlineColor;\n\t\tthis.outlineColor = base.owner.TM.outlineColor;\n\t\tthis.outlineWidth = base.owner.TM.outlineWidth;\n\t\tthis.outlineOpacity = base.owner.TM.outlineOpacity;\n\t\t\n\t\tthis.points = {\n\t\t\tp1 : {\n\t\t\t\tx: data.mX,\n\t\t\t\ty: data.mY\n\t\t\t},\n\t\t\tp2 : {\n\t\t\t\tx: data.mX,\n\t\t\t\ty: data.mY\n\t\t\t},\n\t\t\ttopLeft : {\n\t\t\t\tx: data.mX,\n\t\t\t\ty: data.mY\n\t\t\t},\n\t\t\theight: 0.00001,\n\t\t\twidth: 0.00001\n\t\t};\n\t\t\n\t\tthis.bounds = {points:{}, visual: {}};\n\t\t\n\t\tthis.erased = {strokes: []};\n\t\t//console.log(this);\n\t\t\n\t\tthis.updateShape = function(data) {\n\t\t\t//console.log(data);\n\t\t\tthis.isBlank = false;\n\t\t\tthis.points.p2.x = data.mX;\n\t\t\tthis.points.p2.y = data.mY;\n\t\t\t// get top left, width, and height\n\t\t\tthis.points.topLeft.x = Math.min(this.points.p1.x, this.points.p2.x);\n\t\t\tthis.points.topLeft.y = Math.min(this.points.p1.y, this.points.p2.y);\n\t\t\tthis.points.width = Math.max(this.points.p1.x, this.points.p2.x) - this.points.topLeft.x;\n\t\t\tthis.points.height = Math.max(this.points.p1.y, this.points.p2.y) - this.points.topLeft.y; \n\t\t}\n\t\t\n\t\tthis.addErasePoint = function(data) {\n\t\t\t//return this.addPoint(data);\n\t\t\tif (data.dragging) {\n\t\t\t\tvar stroke = this.erased.strokes[this.erased.strokes.length - 1];\n\t\t\t\tstroke.points.push({\n\t\t\t\t\tx: data.mX,\n\t\t\t\t\ty: data.mY\n\t\t\t\t});\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.erased.strokes.push({\n\t\t\t\t\tpoints: [{\n\t\t\t\t\t\tx: data.mX,\n\t\t\t\t\t\ty: data.mY\n\t\t\t\t\t}],\n\t\t\t\t\tstrokeWidth: base.owner.TM.strokeWidth,\n\t\t\t\t\tstrokeOpacity: base.owner.TM.strokeOpacity\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn this.erased.strokes[this.erased.strokes.length - 1];\n\t\t}\n\t\t\n\t\tthis.undoErase = function() {\n\t\t\tthis.erased.strokes.pop();\n\t\t\tthis.isBlank = false;\n\t\t}\n\t\t\n\t\tthis.redoErase = function(stroke) {\n\t\t\tthis.erased.strokes.push(stroke);\n\t\t}\n\t\t\n\t\tthis.draw = function() {\n\t\t\t//console.log(\"draw: \");\n\t\t\t//console.log(this);\n\t\t\tif (this.isBlank) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar ctx = this.bigContext;\n\t\t\tctx.clearRect(0, 0, this.bigContext.canvas.width, this.bigContext.canvas.height);\n\t\t\t\n\t\t\tvar owidth = parseInt(this.outlineWidth);\n\t\t\tif (this.fillOpacity > 0) {\n\t\t\t\t// fill\n\t\t\t\tctx.globalCompositeOperation = \"source-over\";\n\t\t\t\tctx.fillStyle = this.fillColor;\n\t\t\t\tctx.globalAlpha = this.fillOpacity * this.layer.opacity;\n\t\t\t\tctx.fillRect(\n\t\t\t\t\tthis.points.topLeft.x,\n\t\t\t\t\tthis.points.topLeft.y,\n\t\t\t\t\tthis.points.width,\n\t\t\t\t\tthis.points.height\n\t\t\t\t);\n\t\t\t}\n\t\t\tif (owidth * this.outlineOpacity > 0) {\n\t\t\t\t// outline\n\t\t\t\t//ctx.beginPath();\n\t\t\t\tctx.strokeStyle = this.outlineColor;\n\t\t\t\tctx.lineWidth = owidth;\n\t\t\t\tctx.globalAlpha = this.outlineOpacity * this.layer.opacity;\n\t\t\t\tctx.lineJoin = \"miter\";\n\t\t\t\tctx.lineCap = \"butt\";\n\t\t\t\tctx.strokeRect(\n\t\t\t\t\tthis.points.topLeft.x - owidth / 2,\n\t\t\t\t\tthis.points.topLeft.y - owidth / 2,\n\t\t\t\t\tthis.points.width + owidth,\n\t\t\t\t\tthis.points.height + owidth\n\t\t\t\t);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//erase\n\t\t\tctx.globalCompositeOperation = \"destination-out\";\n\t\t\tthis.erased.strokes.forEach(function(stroke) {\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.lineWidth = stroke.strokeWidth;\n\t\t\t\tctx.globalAlpha = stroke.strokeOpacity;\n\t\t\t\tctx.lineJoin = \"round\";\n\t\t\t\tctx.lineCap = \"round\";\n\t\t\t\tfor (var i = 0; i < stroke.points.length; i++) {\n\t\t\t\t\t//console.log(i);\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tctx.moveTo(stroke.points[i].x, stroke.points[i].y);\n\t\t\t\t\t\tctx.lineTo(stroke.points[i].x + 0.001, stroke.points[i].y);\n\t\t\t\t\t}\n\t\t\t\t\tctx.lineTo(stroke.points[i].x, stroke.points[i].y);\n\t\t\t\t}\n\t\t\t\tctx.stroke();\n\t\t\t});\n\t\t\t\n\t\t\t\n\t\t\tthis.layer.previewContext.drawImage(this.bigCanvas[0], 0, 0);\n\t\t\tif (this.bigCanvas[0].toDataURL() == base.owner.LM.blankData) {\n\t\t\t\t//console.log(\"completely erased\");\n\t\t\t\tthis.isBlank = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tthis.computePointsBounds = function() {\n\t\t\tvar ctx = this.bigContext;\n\t\t\tvar bounds = this.bounds.points;\n\t\t\tbounds.left = this.points.topLeft.x;\n\t\t\tbounds.top = this.points.topLeft.y;\n\t\t\tbounds.right = this.points.topLeft.x + this.points.width;\n\t\t\tbounds.bottom = this.points.topLeft.y + this.points.height;\n\t\t}\n\t\t\n\t\treturn this;\n\t}\n\t\n\t// Oval Object\n\tbase.ovalObject = function(data) {\n\t\t//console.log(data);\n\t\tbase.drawingObject(data, this);\n\t\tthis.type = \"rectangle\";\n\t\t\n\t\tthis.fillColor = base.owner.TM.fillColor;\n\t\tthis.fillOpacity = base.owner.TM.fillOpacity;\n\t\tthis.outlineColor = base.owner.TM.outlineColor;\n\t\tthis.outlineColor = base.owner.TM.outlineColor;\n\t\tthis.outlineWidth = base.owner.TM.outlineWidth;\n\t\tthis.outlineOpacity = base.owner.TM.outlineOpacity;\n\t\tthis.scale = { // default - will be calculated while drawing\n\t\t\tfill : {\n\t\t\t\thorizontal: 1,\n\t\t\t\tvertical: 1\n\t\t\t},\n\t\t\toutline : {\n\t\t\t\thorizontal: 1,\n\t\t\t\tvertical: 1\n\t\t\t},\n\t\t};\n\t\tthis.radius = {\n\t\t\tfill: 0.000001,\n\t\t\toutline: 0.000001\n\t\t}\n\t\t\n\t\tthis.points = {\n\t\t\tp1 : {\n\t\t\t\tx: data.mX,\n\t\t\t\ty: data.mY\n\t\t\t},\n\t\t\tp2 : {\n\t\t\t\tx: data.mX,\n\t\t\t\ty: data.mY\n\t\t\t},\n\t\t\tcenter : {\n\t\t\t\tx: data.mX,\n\t\t\t\ty: data.mY\n\t\t\t}\n\t\t};\n\t\t\n\t\tthis.bounds = {points:{}, visual: {}};\n\t\t\n\t\tthis.erased = {strokes: []};\n\t\t//console.log(this);\n\t\t\n\t\tthis.updateShape = function(data) {\n\t\t\t//console.log(data);\n\t\t\tthis.isBlank = false;\n\t\t\tthis.points.p2.x = data.mX;\n\t\t\tthis.points.p2.y = data.mY;\n\t\t\t// get center and radius and scale\n\t\t\tthis.points.center.x = Math.min(this.points.p1.x, this.points.p2.x) + Math.abs(this.points.p1.x - this.points.p2.x) / 2;\n\t\t\tthis.points.center.y = Math.min(this.points.p1.y, this.points.p2.y) + Math.abs(this.points.p1.y - this.points.p2.y) / 2;\n\t\t\tthis.radius.fill = Math.min(\n\t\t\t\tMath.abs(this.points.p1.x - this.points.center.x),\n\t\t\t\tMath.abs(this.points.p1.y, this.points.center.y)\n\t\t\t);\n\t\t\tthis.radius.outline = Math.min(\n\t\t\t\t(Math.max(this.points.p1.x, this.points.p2.x) + this.outlineWidth / 2) - this.points.center.x,\n\t\t\t\t(Math.max(this.points.p1.y, this.points.p2.y) + this.outlineWidth / 2) - this.points.center.y\n\t\t\t);\n\t\t\tthis.scale.fill.horizontal = Math.abs(this.points.p1.x - this.points.center.x) / this.radius.fill;\n\t\t\tthis.scale.fill.vertical = Math.abs(this.points.p1.y - this.points.center.y) / this.radius.fill;\n\t\t\tthis.scale.outline.horizontal = ((Math.max(this.points.p1.x, this.points.p2.x) + this.outlineWidth / 2) - this.points.center.x) / this.radius.outline;\n\t\t\tthis.scale.outline.vertical = ((Math.max(this.points.p1.y, this.points.p2.y) + this.outlineWidth / 2) - this.points.center.y) / this.radius.outline;\n\t\t}\n\t\t\n\t\tthis.addErasePoint = function(data) {\n\t\t\t//return this.addPoint(data);\n\t\t\tif (data.dragging) {\n\t\t\t\tvar stroke = this.erased.strokes[this.erased.strokes.length - 1];\n\t\t\t\tstroke.points.push({\n\t\t\t\t\tx: data.mX,\n\t\t\t\t\ty: data.mY\n\t\t\t\t});\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.erased.strokes.push({\n\t\t\t\t\tpoints: [{\n\t\t\t\t\t\tx: data.mX,\n\t\t\t\t\t\ty: data.mY\n\t\t\t\t\t}],\n\t\t\t\t\tstrokeWidth: base.owner.TM.strokeWidth,\n\t\t\t\t\tstrokeOpacity: base.owner.TM.strokeOpacity\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn this.erased.strokes[this.erased.strokes.length - 1];\n\t\t}\n\t\t\n\t\tthis.undoErase = function() {\n\t\t\tthis.erased.strokes.pop();\n\t\t\tthis.isBlank = false;\n\t\t}\n\t\t\n\t\tthis.redoErase = function(stroke) {\n\t\t\tthis.erased.strokes.push(stroke);\n\t\t}\n\t\t\n\t\tthis.draw = function() {\n\t\t\t//console.log(\"draw: \");\n\t\t\t//console.log(this);\n\t\t\tif (this.isBlank) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar ctx = this.bigContext;\n\t\t\tctx.clearRect(0, 0, this.bigContext.canvas.width, this.bigContext.canvas.height);\n\t\t\t\n\t\t\tvar owidth = parseInt(this.outlineWidth);\n\t\t\tif (this.fillOpacity > 0) {\n\t\t\t\t// fill\n\t\t\t\tctx.globalCompositeOperation = \"source-over\";\n\t\t\t\tctx.fillStyle = this.fillColor;\n\t\t\t\tctx.globalAlpha = this.fillOpacity * this.layer.opacity;\n\t\t\t\tctx.save();\n\t\t\t\tctx.scale(this.scale.fill.horizontal, this.scale.fill.vertical);\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.arc(\n\t\t\t\t\tthis.points.center.x / this.scale.fill.horizontal,\n\t\t\t\t\tthis.points.center.y / this.scale.fill.vertical,\n\t\t\t\t\tthis.radius.fill,\n\t\t\t\t\t0,\n\t\t\t\t\tMath.PI * 2,\n\t\t\t\t\tfalse\n\t\t\t\t);\n\t\t\t\tctx.restore();\n\t\t\t\tctx.fill();\n\t\t\t}\n\t\t\tif (owidth * this.outlineOpacity > 0) {\n\t\t\t\t// outline\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.strokeStyle = this.outlineColor;\n\t\t\t\tctx.lineWidth = owidth;\n\t\t\t\tctx.globalAlpha = this.outlineOpacity * this.layer.opacity;\n\t\t\t\tctx.save();\n\t\t\t\tctx.scale(this.scale.outline.horizontal, this.scale.outline.vertical);\n\t\t\t\tctx.arc(\n\t\t\t\t\tthis.points.center.x / this.scale.outline.horizontal,\n\t\t\t\t\tthis.points.center.y / this.scale.outline.vertical,\n\t\t\t\t\tthis.radius.outline,\n\t\t\t\t\t0,\n\t\t\t\t\tMath.PI * 2,\n\t\t\t\t\tfalse\n\t\t\t\t);\n\t\t\t\tctx.restore();\n\t\t\t\tctx.stroke();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//erase\n\t\t\tctx.globalCompositeOperation = \"destination-out\";\n\t\t\tthis.erased.strokes.forEach(function(stroke) {\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.lineWidth = stroke.strokeWidth;\n\t\t\t\tctx.globalAlpha = stroke.strokeOpacity;\n\t\t\t\tctx.lineJoin = \"round\";\n\t\t\t\tctx.lineCap = \"round\";\n\t\t\t\tfor (var i = 0; i < stroke.points.length; i++) {\n\t\t\t\t\t//console.log(i);\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tctx.moveTo(stroke.points[i].x, stroke.points[i].y);\n\t\t\t\t\t\tctx.lineTo(stroke.points[i].x + 0.001, stroke.points[i].y);\n\t\t\t\t\t}\n\t\t\t\t\tctx.lineTo(stroke.points[i].x, stroke.points[i].y);\n\t\t\t\t}\n\t\t\t\tctx.stroke();\n\t\t\t});\n\t\t\t\n\t\t\t\n\t\t\tthis.layer.previewContext.drawImage(this.bigCanvas[0], 0, 0);\n\t\t\tif (this.bigCanvas[0].toDataURL() == base.owner.LM.blankData) {\n\t\t\t\t//console.log(\"completely erased\");\n\t\t\t\tthis.isBlank = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tthis.computePointsBounds = function() {\n\t\t\tvar ctx = this.bigContext;\n\t\t\tvar bounds = this.bounds.points;\n\t\t\tbounds.left = this.points.center.x;\n\t\t\tbounds.top = this.points.center.y;\n\t\t\tbounds.right = this.points.center.x + this.points.width;\n\t\t\tbounds.bottom = this.points.center.y + this.points.height;\n\t\t}\n\t\t\n\t\treturn this;\n\t}\n\t\n\tthis.shapes = {\n\t\tsbase : base.shapes,\n\t\t\n\t\tsetShape : function(e) {\n\t\t\tsbase = base.shapes;\n\t\t\tsbase.unsetShape();\n\t\t\tvar icon;\n\t\t\tswitch (e.data.shape) {\n\t\t\t\tcase \"rectangle\" : \ticon = sbase.rectangleIcon; \n\t\t\t\t\t\t\t\t\tsbase.currShape = \"rectangle\"; \n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\tcase \"oval\" : \ticon = sbase.ovalIcon; \n\t\t\t\t\t\t\t\tsbase.currShape = \"oval\";\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\ticon.addClass(\"canvasPaintImgButtonSelected\");\n\t\t\tsbase.drawPreview(base.owner.TM.currTool.brushToolPreview[0].getContext('2d'), base.owner.TM);\n\t\t},\n\t\t\n\t\tunsetShape : function() {\n\t\t\tsbase = base.shapes;\n\t\t\tif (sbase.currShape) {\n\t\t\t\tvar icon;\n\t\t\t\tswitch (sbase.currShape) {\n\t\t\t\t\tcase \"rectangle\" : icon = sbase.rectangleIcon; break;\n\t\t\t\t\tcase \"oval\" : icon = sbase.ovalIcon; break;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ticon.removeClass(\"canvasPaintImgButtonSelected\");\n\t\t\t}\n\t\t},\n\t\t\n\t\taddShapeOptions : function(shapeDiv) {\n\t\t\tsbase = base.shapes;\n\t\t\tsbase.rectangleIcon = $(\"<img>\").attr({\n\t\t\t\tsrc: \"resources/rectangle.png\",\n\t\t\t\talt: \"Rectangle\",\n\t\t\t\ttitle: \"Rectangle\" \n\t\t\t}).addClass(\"canvasPaintImgButton\").click({shape:\"rectangle\"}, sbase.setShape);\n\t\t\tshapeDiv.append(sbase.rectangleIcon);\n\t\t\t\n\t\t\tsbase.ovalIcon = $(\"<img>\").attr({\n\t\t\t\tsrc: \"resources/oval.png\",\n\t\t\t\talt: \"Oval\",\n\t\t\t\ttitle: \"Oval\" \n\t\t\t}).addClass(\"canvasPaintImgButton\").click({shape:\"oval\"}, sbase.setShape);\n\t\t\tshapeDiv.append(sbase.ovalIcon);\n\t\t},\n\t\t\n\t\tcreateNew : function(data) {\n\t\t\tswitch (sbase.currShape) {\n\t\t\t\tcase \"rectangle\" : return new base.owner.OF.rectangleObject(data);\n\t\t\t\tcase \"oval\" : return new base.owner.OF.ovalObject(data);\n\t\t\t}\n\t\t\treturn undefined;\n\t\t},\n\t\t\n\t\tdrawPreview : function(ctx, tbase) {\n\t\t\tswitch (sbase.currShape) {\n\t\t\t\tcase \"rectangle\" : sbase.drawRectanglePreview(ctx, tbase); break;\n\t\t\t\tcase \"oval\" : sbase.drawOvalPreview(ctx, tbase); break;\n\t\t\t}\n\t\t},\n\t\t\n\t\tdrawRectanglePreview : function(ctx, tbase) {\n\t\t\tctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);\n\t\t\tctx.fillStyle = tbase.fillColor;\n\t\t\tctx.globalAlpha = tbase.fillOpacity;\n\t\t\tctx.fillRect(30, 30, 90, 90);\n\t\t\tif (tbase.outlineWidth * tbase.outlineOpacity > 0) {\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.strokeStyle = tbase.outlineColor;\n\t\t\t\tctx.lineWidth = tbase.outlineWidth;\n\t\t\t\tctx.globalAlpha = tbase.outlineOpacity;\n\t\t\t\tctx.moveTo(30 - tbase.outlineWidth / 2, 30 - tbase.outlineWidth / 2);\n\t\t\t\tctx.lineTo(120 + tbase.outlineWidth / 2, 30 - tbase.outlineWidth / 2);\n\t\t\t\tctx.lineTo(120 + tbase.outlineWidth / 2, 120 + tbase.outlineWidth / 2);\n\t\t\t\tctx.lineTo(30 - tbase.outlineWidth / 2, 120 + tbase.outlineWidth / 2);\n\t\t\t\tctx.closePath();\n\t\t\t\tctx.stroke();\n\t\t\t}\n\t\t},\n\t\t\n\t\tdrawOvalPreview : function(ctx, tbase) {\n\t\t\tctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);\n\t\t\tctx.fillStyle = tbase.fillColor;\n\t\t\tctx.globalAlpha = tbase.fillOpacity;\n\t\t\tctx.beginPath();\n\t\t\tctx.arc(75, 75, 45, 0, 2 * Math.PI, false);\n\t\t\tctx.fill();\n\t\t\tif (tbase.outlineWidth * tbase.outlineOpacity > 0) {\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.globalAlpha = tbase.outlineOpacity;\n\t\t\t\tctx.strokeStyle = tbase.outlineColor;\n\t\t\t\tctx.lineWidth = tbase.outlineWidth;\n\t\t\t\tctx.arc(75, 75, 45 + tbase.outlineWidth / 2, 0, 2 * Math.PI, false);\n\t\t\t\tctx.stroke();\n\t\t\t}\n\t\t}\n\t}\n}", "Render() {\n gdi.HollowBrush();\n gdi.PurplePen();\n\n for ( let spt = 0; spt < this.m_Spots.length; ++spt ) {\n gdi.Circle( this.m_Spots[ spt ].m_vPos, this.m_Spots[ spt ].m_dScore );\n }\n\n if ( this.m_pBestSupportingSpot != null ) {\n gdi.GreenPen();\n gdi.Circle( this.m_pBestSupportingSpot.m_vPos, this.m_pBestSupportingSpot.m_dScore );\n };\n }", "function DisplayFactory() {\n }", "function Renderer() {\n}", "createGraphic(geometry, symbol) {\n\n var graphic = new this.Graphic({geometry: geometry, symbol: symbol});\n return graphic;\n }", "function BoxRenderer() {}", "function Drawable() {\n this.init = function(x, y) {\n // X & Y are the 2d coordinates for on screen objects\n this.x = x;\n this.y = y;\n };\n\n this.speed = 0;\n this.canvasWidth = 0;\n this.canvasHeight = 0;\n\n // All classes inheriting Drawable will need a draw function unique to each class\n this.draw = function() {\n };\n}", "function draw() {\n for (var i = 0; i < squares.length; i++) {\n squares[i].display();\n }\n base.display(); //and draw the base\n}", "function Grapher(container, settings) {\n this.container = container;\n this.$ = $(container);\n\n this.viewport = new Viewport();\n this.screen = new Screen(this.$.width(), this.$.height());\n\n // a reference to an UnderscoreModel that we can ask for settings values\n this.settings = settings;\n\n this.$.css('overflow', 'hidden');\n // gridlines\n this.gridLayer = GridLayer(this.screen.width, this.screen.height);\n this.$.append( this.gridLayer.$ );\n\n // poi dots\n this.poiDotsLayer = POIDotsLayer(this.screen.width, this.screen.height);\n this.$.append( this.poiDotsLayer.$ );\n \n // graphs\n this.graphsLayer = GraphsLayer(this.screen.width, this.screen.height);\n this.$.append( this.graphsLayer.$ );\n\n // screenshot layer\n this.$.append('<div class=\"screenshot\"></div>');\n\n this.movablePointsLayer = MovablePointsLayer(this.screen.width, this.screen.height);\n this.movablePointsLayer.$.css('z-index', '0');\n this.$.append( this.movablePointsLayer.$ );\n\n // poi labels (and opened dots)\n this.poiLabelsLayer = POILabelsLayer(this.screen.width, this.screen.height);\n // some weird interaction with overflow:hidden requires a z-index to be\n // set for openpoi to not flicker.\n this.poiLabelsLayer.$.css('z-index', '0');\n this.$.append( this.poiLabelsLayer.$ );\n \n // trace layer\n this.traceLayer = TraceLayer(this.screen.width, this.screen.height);\n // some weird interaction with overflow:hidden requires a z-index to be\n // set for the tracing label to not flicker.\n this.traceLayer.$.css('z-index', '0');\n this.$.append( this.traceLayer.$ );\n \n // needed to tell IE9 that the layer should steal mouse events.\n if (Browser.IS_IE9) {\n this.traceLayer.$.addClass('transparent-bg');\n }\n \n this.transformation = new ViewportTransformation();\n\n // Which axes are currently being scaled. Managed by GraphController.\n // 'x', 'y', 'both', or undefined\n this.scaleAxis = undefined;\n\n this.__transient = false;\n this.graphSketches = {};\n this.__sketchOrder = [];\n this.selectedId = null;\n return this;\n}", "function general_render(obj) {\n obj.render();\n }", "function Drawable() {\n\tthis.init = function(x, y, width, height)\n {\n\t\t// Default variables\n\t\tthis.x = x;\n\t\tthis.y = y;\n\n //Since we are adding images that no longer fill the entire canvas,\n //we need to set the height and width of each object to it’s associated image.\n this.width = width;\n\t\tthis.height = height;\n\t\tdocument.getElementById(\"do\").style.visibility = \"visible\";\n\t}\n\tthis.speed = 0;\n\tthis.canvasWidth = 0;\n\tthis.canvasHeight = 0;\n this.collidableWith = \"\";\n\tthis.isColliding = false;\n\tthis.type = \"\";\n\n\t// Define abstract function to be implemented in child objects\n\tthis.draw = function()\n {\n\n\t};\n this.move = function()\n {\n\n\t};\n\tthis.health = function()\n {\n\n\t};\n\tthis.loading = function()\n\t{\n\t\tvar x = 0;\n\t};\n this.isCollidableWith = function(object)\n {\n\t\treturn (this.collidableWith === object.type);\n\t};\n}", "function PdfBrush(){//\n}//IClonable implementation", "function Sprite_LayerGraphic() {\n this.initialize(...arguments);\n}", "function RendererType2(){}", "constructor (props = {}){\n this.visible = props.visible ?? true \n this.debug = props.debug ?? false // need to draw the frames\n\n this.x = props.x ?? 0\n this.y = props.y ?? 0\n\n this.width = props.width ?? 0\n this.height = props.height ?? 0 \n }", "function Drawable() {\r\n\tthis.x = 0;\r\n\tthis.y = 0;\r\n\tthis.width = 0;\r\n\tthis.height = 0;\r\n\t\r\n\tthis.speed = 0;\r\n\t\r\n\tthis.init = function(x,y) {\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t};\r\n\r\n\tthis.draw = function() {\r\n\t\r\n\t};\r\n}", "createDisplay() {\n const { text, fontSize = 36 } = this.conf;\n this.display = Pool.get(this.type, () => new Label());\n this.display.attr({ text, fontSize });\n }", "function SVGObject (Objects){\n if(Objects === undefined){\n this.Objects = [];\n }else{\n this.Objects = Array.isArray(Objects) ? Objects : [Objects];\n }\n\n this.SetActive = function(){\n for(let i=0; i<this.Objects.length; i++)\n this.AbstractSetActive(this.Objects[i]);\n };\n\n this.AbstractSetActive = function(Object){\n Object.attr(\"fill\", \"#FFFF00\"); // Default: Switching between yellow and dark yellow\n };\n\n this.SetInactive = function(){\n for(let i=0; i<this.Objects.length; i++)\n this.AbstractSetInactive(this.Objects[i]);\n };\n\n this.AbstractSetInactive = function(Object){\n Object.attr(\"fill\", \"#7F7F00\");\n };\n}", "base(color=\"default\") {\n\t\tvar container = new createjs.Container();\n\t\t// add regular note graphics\n\t\tif (color != \"default\") {\n\t\t\tcontainer.addChild(new createjs.Shape(this.baseGfx(color)), new createjs.Shape(this.centerGfx(color)));\n\t\t} else {\n\t\t\tcontainer.addChild(new createjs.Shape(this.baseGfx()), new createjs.Shape(this.centerGfx()));\n\t\t}\n\t\tcontainer.cache(-30,-30,60,60);\n\t\t\n\t\t// reset the graphics\n\t\tcontainer.resetGfx = function() {\n\t\t\tthis.visible = true;\n\t\t\tthis.alpha = 1;\n\t\t}\n\t\t\n\t\treturn container;\n\t}", "function Visuals(posX, posY, valR, valG, valB) {\r\n this.posX = posX;\r\n this.posY = posY;\r\n this.valR = valR;\r\n this.valG = valG;\r\n this.valB = valB;\r\n this.size = 100;\r\n\r\n this.showMe = function(keycode) {\r\n noStroke();\r\n fill(this.valR, this.valG, this.valB);\r\n ellipse(this.posX/200*windowWidth+keycode+100, this.posY/200*windowHeight-keycode*2+100, this.size*keycode/100, this.size*keycode/100);\r\n }\r\n\r\n this.showOther = function(posX, posY, valR, valG, valB, keycode) {\r\n noStroke();\r\n fill(valR, valG, valB);\r\n ellipse(posX/200*windowWidth+keycode+100, posY/200*windowHeight-keycode*2+100, this.size*keycode/100, this.size*keycode/100);\r\n }\r\n}", "function Graphic (spec) {\n this.facet = Facet.fromSpec(spec);\n }", "function RendererType2() {}", "function RendererType2() {}", "function RendererType2() {}", "graphics () {\r\n let graphs = [];\r\n for (let i = 0; i < this.props.books.length; i++) {\r\n graphs.push(<GraphicMarket book={this.props.books[i].book} theme={this.props.theme} \r\n activeGraphic={this.props.books[i].book === this.state.currentBookMarket} key={i} onClick={ () => this.selectView(this.props.books[i].book) } /> );\r\n }\r\n return graphs;\r\n }", "createDisplay() {\n const { text, fontSize = 36, color = '#000000' } = this.conf;\n this.display = new ProxyObj();\n // this.setAnchor(0.5);\n this.display.text = text;\n this.display.updateStyle({ fontSize, fill: color });\n }", "getGraphics(cs, offset, glyphIndex = 0, manager, empasized) {\n const attrs = this.state.attributes;\n if (!attrs.visible || !this.object.properties.visible) {\n return null;\n }\n const helper = new Graphics.CoordinateSystemHelper(cs);\n switch (this.object.properties.shape) {\n case \"ellipse\": {\n return helper.ellipse(attrs.x1 + offset.x, attrs.y1 + offset.y, attrs.x2 + offset.x, attrs.y2 + offset.y, Object.assign({ strokeColor: attrs.stroke, strokeWidth: attrs.strokeWidth, strokeLinejoin: \"miter\", fillColor: attrs.fill, opacity: attrs.opacity }, this.generateEmphasisStyle(empasized)));\n }\n case \"triangle\": {\n const pathMaker = new Graphics.PathMaker();\n helper.lineTo(pathMaker, attrs.x1 + offset.x, attrs.y1 + offset.y, (attrs.x1 + attrs.x2) / 2 + offset.x, attrs.y2 + offset.y, true);\n helper.lineTo(pathMaker, (attrs.x1 + attrs.x2) / 2 + offset.x, attrs.y2 + offset.y, attrs.x2 + offset.x, attrs.y1 + offset.y, false);\n pathMaker.closePath();\n const path = pathMaker.path;\n path.style = Object.assign({ strokeColor: attrs.stroke, strokeWidth: attrs.strokeWidth, strokeLinejoin: \"miter\", fillColor: attrs.fill, opacity: attrs.opacity }, this.generateEmphasisStyle(empasized));\n return path;\n }\n case \"rectangle\":\n default: {\n return helper.rect(attrs.x1 + offset.x, attrs.y1 + offset.y, attrs.x2 + offset.x, attrs.y2 + offset.y, Object.assign({ strokeColor: attrs.stroke, strokeWidth: attrs.strokeWidth, strokeLinejoin: \"miter\", fillColor: attrs.fill, opacity: attrs.opacity }, this.generateEmphasisStyle(empasized)));\n }\n }\n }", "function ProceduralRenderer3() {}", "function ProceduralRenderer3() {}", "function ProceduralRenderer3() {}", "function Component_Visual() {\n Component_Visual.__super__.constructor.apply(this, arguments);\n }", "display(){\r\n point(this.x,this.y);\r\n }", "draw() {\n\n // only display the dirt if it is visible... \n if (this.visible){\n\n ctxDATA.fillStyle = this.color; \n ctxDATA.fillRect(this.x, this.y, this.w, this.h);\n \n // end of visibility check \n }\n\n // end of the draw method for the Dirt \n }", "function display(x, y, width, height) {\n this.sprite = null; //related image\n this.width = width;\n this.height = height;\n this.x = x;\n this.y = y;\n this.frame = 0;\n this.depth = 0; //TODO: implement\n this.on_screen = true;\n}", "function finalDraw() {\n\t Registry.getComponentMethod('shapes', 'draw')(gd);\n\t Registry.getComponentMethod('images', 'draw')(gd);\n\t Registry.getComponentMethod('annotations', 'draw')(gd);\n\t Registry.getComponentMethod('legend', 'draw')(gd);\n\t Registry.getComponentMethod('rangeslider', 'draw')(gd);\n\t Registry.getComponentMethod('rangeselector', 'draw')(gd);\n\t Registry.getComponentMethod('sliders', 'draw')(gd);\n\t Registry.getComponentMethod('updatemenus', 'draw')(gd);\n\t }", "function Drawable() {\n\tthis.init = function(x, y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}\n\tthis.canvasWidth = 0;\n\tthis.canvasHeight = 0;\n\n\tthis.draw = function() {};\n}", "function RendererType2() { }", "function RendererType2() { }", "function Drawable() {\n\tthis.init = function(x,y, width, height) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t};\n\tthis.speed = 0;\n\tthis.canvasWidth = 0;\n\tthis.canvasHeight = 0;\n\tthis.collidableWith = \"\";\n\tthis.isColliding = false;\n\tthis.type = \"\";\n\n\tthis.draw = function() {\n\n\t};\n\tthis.move = function() {\n\n\t};\n\tthis.isCollidableWith = function(obj) {\n\t\treturn (this.collidableWith === obj.type);\n\t};\n}", "display() {\n if (this.isDrank === false) {\n //Display\n image(this.image, this.x, this.y, this.size, this.size);\n }\n }", "function BaseLayouter() { }", "getRenderer () {}", "getGraphic(type, color,boolean, p1, p2) { //return a PIXI.Rect/Circle (Graphics) obj\n let obj_temp;\n if (this.GraphicsLength == 0) //check if 'PoolObjects' arr is empty\n {\n obj_temp = this.createGraphic(type, color, p1, p2); //if so, create a new sprite\n if (this.onCreate) //invoke callback func whenever a new sprite is created\n this.onCreate(obj_temp, 2);\n } else {\n let index = --this.GraphicsLength;\n obj_temp = this.Graphics[index];\n if (boolean){\n obj_temp.graphicsData[0].fillColor=color; \n }\n if (this.onRetrieve)\n this.onRetrieve(obj_temp, 2);\n console.log(\"Retrieved a sprite\");\n }\n this.Graphics.pop();\n if (this.onGet) //invoke onGet callback func\n this.onGet(obj_temp, 2);\n return obj_temp;\n }", "function SVGManager() {\r\n\tthis._settings = []; // Settings to be remembered per SVG object\r\n\tthis._extensions = []; // List of SVG extensions added to SVGWrapper\r\n\t// for each entry [0] is extension name, [1] is extension class (function)\r\n\t// the function takes one parameter - the SVGWrapper instance\r\n\tthis.regional = []; // Localisations, indexed by language, '' for default (English)\r\n\tthis.regional[''] = {errorLoadingText: 'Error loading',\r\n\t\t\t notSupportedText: 'This browser does not support SVG'};\r\n\tthis.local = this.regional['']; // Current localisation\r\n\tthis._uuid = new Date().getTime();\r\n\tthis._renesis = detectActiveX('RenesisX.RenesisCtrl');\r\n }", "function BaseLayouter() {}", "function BaseLayouter() {}", "function BaseLayouter() {}", "constructor() {\n // declare position variables\n this.xPos = 250;\n this.yPos = 250;\n\n // which graphic should the player be using right now?\n this.myGraphic = user_left;\n }", "Render(){\n throw new Error(\"Render() method must be implemented in child!\");\n }" ]
[ "0.69194615", "0.6688154", "0.6688154", "0.6688154", "0.66517085", "0.66406757", "0.66051143", "0.65034276", "0.65034276", "0.65007764", "0.6476872", "0.6475505", "0.6472556", "0.64547557", "0.6442107", "0.6425698", "0.63875705", "0.63875705", "0.62926406", "0.626307", "0.626155", "0.6254885", "0.62530184", "0.6238254", "0.616493", "0.6149228", "0.61281985", "0.6121212", "0.61198205", "0.6093472", "0.6074252", "0.60741097", "0.6049969", "0.60192454", "0.5997497", "0.5988906", "0.5988302", "0.59837013", "0.59819365", "0.5973752", "0.5967346", "0.59635615", "0.5946054", "0.59446967", "0.59217334", "0.5888549", "0.585805", "0.5853891", "0.5843605", "0.5833427", "0.5826876", "0.5818799", "0.5818128", "0.58133864", "0.581154", "0.58102554", "0.58005524", "0.5782985", "0.5781052", "0.57701826", "0.57649624", "0.5751543", "0.57367283", "0.5725098", "0.57207656", "0.57200325", "0.5711826", "0.57070893", "0.57037467", "0.56997776", "0.5687377", "0.5683484", "0.5683484", "0.5683484", "0.5681415", "0.5675031", "0.5670348", "0.5664495", "0.5664495", "0.5664495", "0.56561077", "0.56509465", "0.56447655", "0.56382304", "0.5637586", "0.56374574", "0.56284666", "0.56284666", "0.56153", "0.5614481", "0.56045085", "0.56023496", "0.56015575", "0.5587052", "0.5577768", "0.5577768", "0.5577768", "0.55734146", "0.5563618" ]
0.61626756
26
Zepto.js (c) 20102013 Thomas Fuchs Zepto.js may be freely distributed under the MIT license.
function detect(ua) { var os = {}; var browser = {}; // var webkit = ua.match(/Web[kK]it[\/]{0,1}([\d.]+)/); // var android = ua.match(/(Android);?[\s\/]+([\d.]+)?/); // var ipad = ua.match(/(iPad).*OS\s([\d_]+)/); // var ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/); // var iphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/); // var webos = ua.match(/(webOS|hpwOS)[\s\/]([\d.]+)/); // var touchpad = webos && ua.match(/TouchPad/); // var kindle = ua.match(/Kindle\/([\d.]+)/); // var silk = ua.match(/Silk\/([\d._]+)/); // var blackberry = ua.match(/(BlackBerry).*Version\/([\d.]+)/); // var bb10 = ua.match(/(BB10).*Version\/([\d.]+)/); // var rimtabletos = ua.match(/(RIM\sTablet\sOS)\s([\d.]+)/); // var playbook = ua.match(/PlayBook/); // var chrome = ua.match(/Chrome\/([\d.]+)/) || ua.match(/CriOS\/([\d.]+)/); var firefox = ua.match(/Firefox\/([\d.]+)/); // var safari = webkit && ua.match(/Mobile\//) && !chrome; // var webview = ua.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/) && !chrome; var ie = ua.match(/MSIE\s([\d.]+)/) // IE 11 Trident/7.0; rv:11.0 || ua.match(/Trident\/.+?rv:(([\d.]+))/); var edge = ua.match(/Edge\/([\d.]+)/); // IE 12 and 12+ var weChat = /micromessenger/i.test(ua); // Todo: clean this up with a better OS/browser seperation: // - discern (more) between multiple browsers on android // - decide if kindle fire in silk mode is android or not // - Firefox on Android doesn't specify the Android version // - possibly devide in os, device and browser hashes // if (browser.webkit = !!webkit) browser.version = webkit[1]; // if (android) os.android = true, os.version = android[2]; // if (iphone && !ipod) os.ios = os.iphone = true, os.version = iphone[2].replace(/_/g, '.'); // if (ipad) os.ios = os.ipad = true, os.version = ipad[2].replace(/_/g, '.'); // if (ipod) os.ios = os.ipod = true, os.version = ipod[3] ? ipod[3].replace(/_/g, '.') : null; // if (webos) os.webos = true, os.version = webos[2]; // if (touchpad) os.touchpad = true; // if (blackberry) os.blackberry = true, os.version = blackberry[2]; // if (bb10) os.bb10 = true, os.version = bb10[2]; // if (rimtabletos) os.rimtabletos = true, os.version = rimtabletos[2]; // if (playbook) browser.playbook = true; // if (kindle) os.kindle = true, os.version = kindle[1]; // if (silk) browser.silk = true, browser.version = silk[1]; // if (!silk && os.android && ua.match(/Kindle Fire/)) browser.silk = true; // if (chrome) browser.chrome = true, browser.version = chrome[1]; if (firefox) { browser.firefox = true; browser.version = firefox[1]; } // if (safari && (ua.match(/Safari/) || !!os.ios)) browser.safari = true; // if (webview) browser.webview = true; if (ie) { browser.ie = true; browser.version = ie[1]; } if (edge) { browser.edge = true; browser.version = edge[1]; } // It is difficult to detect WeChat in Win Phone precisely, because ua can // not be set on win phone. So we do not consider Win Phone. if (weChat) { browser.weChat = true; } // os.tablet = !!(ipad || playbook || (android && !ua.match(/Mobile/)) || // (firefox && ua.match(/Tablet/)) || (ie && !ua.match(/Phone/) && ua.match(/Touch/))); // os.phone = !!(!os.tablet && !os.ipod && (android || iphone || webos || // (chrome && ua.match(/Android/)) || (chrome && ua.match(/CriOS\/([\d.]+)/)) || // (firefox && ua.match(/Mobile/)) || (ie && ua.match(/Touch/)))); return { browser: browser, os: os, node: false, // 原生canvas支持,改极端点了 // canvasSupported : !(browser.ie && parseFloat(browser.version) < 9) canvasSupported: !!document.createElement('canvas').getContext, svgSupported: typeof SVGRect !== 'undefined', // works on most browsers // IE10/11 does not support touch event, and MS Edge supports them but not by // default, so we dont check navigator.maxTouchPoints for them here. touchEventsSupported: 'ontouchstart' in window && !browser.ie && !browser.edge, // <http://caniuse.com/#search=pointer%20event>. pointerEventsSupported: // (1) Firefox supports pointer but not by default, only MS browsers are reliable on pointer // events currently. So we dont use that on other browsers unless tested sufficiently. // For example, in iOS 13 Mobile Chromium 78, if the touching behavior starts page // scroll, the `pointermove` event can not be fired any more. That will break some // features like "pan horizontally to move something and pan vertically to page scroll". // The horizontal pan probably be interrupted by the casually triggered page scroll. // (2) Although IE 10 supports pointer event, it use old style and is different from the // standard. So we exclude that. (IE 10 is hardly used on touch device) 'onpointerdown' in window && (browser.edge || browser.ie && browser.version >= 11), // passiveSupported: detectPassiveSupport() domSupported: typeof document !== 'undefined' }; } // See https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md#feature-detection
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function zXmlDom() {\n\n}", "function ie(){Z.apply(this,arguments),this._timer=null,this._input=null}", "function ie(e,r){var n=o(e),a=void 0===w[0]\nr=void 0===r||!!r,t.animate&&!a&&i(_,t.cssClasses.tap,t.animationDuration),E.forEach((function(e){re(e,function(e,r){return null===e||!1===e||void 0===e?w[r]:(\"number\"==typeof e&&(e=String(e)),e=t.format.from(e),!1===(e=D.toStepping(e))||isNaN(e)?w[r]:e)}(n[e],e),!0,!1)})),E.forEach((function(e){re(e,w[e],!0,!0)})),te(),E.forEach((function(e){$(\"update\",e),null!==n[e]&&r&&$(\"set\",e)}))}", "function jQueryStub() {\n return this;\n}", "function $(t,e,n,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if(\"object\"===typeof Reflect&&\"function\"===typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,n,o):r(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}", "function ie(e,n){var r=a(e),o=void 0===x[0];n=void 0===n||!!n,t.animate&&!o&&i(w,t.cssClasses.tap,t.animationDuration),S.forEach((function(e){ne(e,function(e,n){return null===e||!1===e||void 0===e?x[n]:(\"number\"==typeof e&&(e=String(e)),e=t.format.from(e),!1===(e=k.toStepping(e))||isNaN(e)?x[n]:e)}(r[e],e),!0,!1)})),S.forEach((function(e){ne(e,x[e],!0,!0)})),te(),S.forEach((function(e){$(\"update\",e),null!==r[e]&&n&&$(\"set\",e)}))}", "function Zt(){}", "function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zi.apply(this,arguments)}", "function _loadTetherBS4() {\n\t!function(t,e){\"function\"==typeof define&&define.amd?define(e):\"object\"==typeof exports?module.exports=e(require,exports,module):t.Tether=e()}(this,function(t,e,o){\"use strict\";function n(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function i(t){var e=t.getBoundingClientRect(),o={};for(var n in e)o[n]=e[n];if(t.ownerDocument!==document){var r=t.ownerDocument.defaultView.frameElement;if(r){var s=i(r);o.top+=s.top,o.bottom+=s.top,o.left+=s.left,o.right+=s.left}}return o}function r(t){var e=getComputedStyle(t)||{},o=e.position,n=[];if(\"fixed\"===o)return[t];for(var i=t;(i=i.parentNode)&&i&&1===i.nodeType;){var r=void 0;try{r=getComputedStyle(i)}catch(s){}if(\"undefined\"==typeof r||null===r)return n.push(i),n;var a=r,f=a.overflow,l=a.overflowX,h=a.overflowY;/(auto|scroll)/.test(f+h+l)&&(\"absolute\"!==o||[\"relative\",\"absolute\",\"fixed\"].indexOf(r.position)>=0)&&n.push(i)}return n.push(t.ownerDocument.body),t.ownerDocument!==document&&n.push(t.ownerDocument.defaultView),n}function s(){A&&document.body.removeChild(A),A=null}function a(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var o=e.documentElement,n=i(t),r=P();return n.top-=r.top,n.left-=r.left,\"undefined\"==typeof n.width&&(n.width=document.body.scrollWidth-n.left-n.right),\"undefined\"==typeof n.height&&(n.height=document.body.scrollHeight-n.top-n.bottom),n.top=n.top-o.clientTop,n.left=n.left-o.clientLeft,n.right=e.body.clientWidth-n.width-n.left,n.bottom=e.body.clientHeight-n.height-n.top,n}function f(t){return t.offsetParent||document.documentElement}function l(){var t=document.createElement(\"div\");t.style.width=\"100%\",t.style.height=\"200px\";var e=document.createElement(\"div\");h(e.style,{position:\"absolute\",top:0,left:0,pointerEvents:\"none\",visibility:\"hidden\",width:\"200px\",height:\"150px\",overflow:\"hidden\"}),e.appendChild(t),document.body.appendChild(e);var o=t.offsetWidth;e.style.overflow=\"scroll\";var n=t.offsetWidth;o===n&&(n=e.clientWidth),document.body.removeChild(e);var i=o-n;return{width:i,height:i}}function h(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var o in e)({}).hasOwnProperty.call(e,o)&&(t[o]=e[o])}),t}function u(t,e){if(\"undefined\"!=typeof t.classList)e.split(\" \").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var o=new RegExp(\"(^| )\"+e.split(\" \").join(\"|\")+\"( |$)\",\"gi\"),n=c(t).replace(o,\" \");g(t,n)}}function d(t,e){if(\"undefined\"!=typeof t.classList)e.split(\" \").forEach(function(e){e.trim()&&t.classList.add(e)});else{u(t,e);var o=c(t)+(\" \"+e);g(t,o)}}function p(t,e){if(\"undefined\"!=typeof t.classList)return t.classList.contains(e);var o=c(t);return new RegExp(\"(^| )\"+e+\"( |$)\",\"gi\").test(o)}function c(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function g(t,e){t.setAttribute(\"class\",e)}function m(t,e,o){o.forEach(function(o){-1===e.indexOf(o)&&p(t,o)&&u(t,o)}),e.forEach(function(e){p(t,e)||d(t,e)})}function n(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function v(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function y(t,e){var o=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+o>=e&&e>=t-o}function b(){return\"undefined\"!=typeof performance&&\"undefined\"!=typeof performance.now?performance.now():+new Date}function w(){for(var t={top:0,left:0},e=arguments.length,o=Array(e),n=0;e>n;n++)o[n]=arguments[n];return o.forEach(function(e){var o=e.top,n=e.left;\"string\"==typeof o&&(o=parseFloat(o,10)),\"string\"==typeof n&&(n=parseFloat(n,10)),t.top+=o,t.left+=n}),t}function C(t,e){return\"string\"==typeof t.left&&-1!==t.left.indexOf(\"%\")&&(t.left=parseFloat(t.left,10)/100*e.width),\"string\"==typeof t.top&&-1!==t.top.indexOf(\"%\")&&(t.top=parseFloat(t.top,10)/100*e.height),t}function O(t,e){return\"scrollParent\"===e?e=t.scrollParents[0]:\"window\"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),\"undefined\"!=typeof e.nodeType&&!function(){var t=e,o=a(e),n=o,i=getComputedStyle(e);if(e=[n.left,n.top,o.width+n.left,o.height+n.top],t.ownerDocument!==document){var r=t.ownerDocument.defaultView;e[0]+=r.pageXOffset,e[1]+=r.pageYOffset,e[2]+=r.pageXOffset,e[3]+=r.pageYOffset}$.forEach(function(t,o){t=t[0].toUpperCase()+t.substr(1),\"Top\"===t||\"Left\"===t?e[o]+=parseFloat(i[\"border\"+t+\"Width\"]):e[o]-=parseFloat(i[\"border\"+t+\"Width\"])})}(),e}var E=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),x=void 0;\"undefined\"==typeof x&&(x={modules:[]});var A=null,T=function(){var t=0;return function(){return++t}}(),S={},P=function(){var t=A;t||(t=document.createElement(\"div\"),t.setAttribute(\"data-tether-id\",T()),h(t.style,{top:0,left:0,position:\"absolute\"}),document.body.appendChild(t),A=t);var e=t.getAttribute(\"data-tether-id\");return\"undefined\"==typeof S[e]&&(S[e]=i(t),M(function(){delete S[e]})),S[e]},W=[],M=function(t){W.push(t)},_=function(){for(var t=void 0;t=W.pop();)t()},k=function(){function t(){n(this,t)}return E(t,[{key:\"on\",value:function(t,e,o){var n=arguments.length<=3||void 0===arguments[3]?!1:arguments[3];\"undefined\"==typeof this.bindings&&(this.bindings={}),\"undefined\"==typeof this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:o,once:n})}},{key:\"once\",value:function(t,e,o){this.on(t,e,o,!0)}},{key:\"off\",value:function(t,e){if(\"undefined\"!=typeof this.bindings&&\"undefined\"!=typeof this.bindings[t])if(\"undefined\"==typeof e)delete this.bindings[t];else for(var o=0;o<this.bindings[t].length;)this.bindings[t][o].handler===e?this.bindings[t].splice(o,1):++o}},{key:\"trigger\",value:function(t){if(\"undefined\"!=typeof this.bindings&&this.bindings[t]){for(var e=0,o=arguments.length,n=Array(o>1?o-1:0),i=1;o>i;i++)n[i-1]=arguments[i];for(;e<this.bindings[t].length;){var r=this.bindings[t][e],s=r.handler,a=r.ctx,f=r.once,l=a;\"undefined\"==typeof l&&(l=this),s.apply(l,n),f?this.bindings[t].splice(e,1):++e}}}}]),t}();x.Utils={getActualBoundingClientRect:i,getScrollParents:r,getBounds:a,getOffsetParent:f,extend:h,addClass:d,removeClass:u,hasClass:p,updateClasses:m,defer:M,flush:_,uniqueId:T,Evented:k,getScrollBarSize:l,removeUtilElements:s};var B=function(){function t(t,e){var o=[],n=!0,i=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);n=!0);}catch(f){i=!0,r=f}finally{try{!n&&a[\"return\"]&&a[\"return\"]()}finally{if(i)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}}(),E=function(){function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),e}}(),z=function(t,e,o){for(var n=!0;n;){var i=t,r=e,s=o;n=!1,null===i&&(i=Function.prototype);var a=Object.getOwnPropertyDescriptor(i,r);if(void 0!==a){if(\"value\"in a)return a.value;var f=a.get;if(void 0===f)return;return f.call(s)}var l=Object.getPrototypeOf(i);if(null===l)return;t=l,e=r,o=s,n=!0,a=l=void 0}};if(\"undefined\"==typeof x)throw new Error(\"You must include the utils.js file before tether.js\");var j=x.Utils,r=j.getScrollParents,a=j.getBounds,f=j.getOffsetParent,h=j.extend,d=j.addClass,u=j.removeClass,m=j.updateClasses,M=j.defer,_=j.flush,l=j.getScrollBarSize,s=j.removeUtilElements,Y=function(){if(\"undefined\"==typeof document)return\"\";for(var t=document.createElement(\"div\"),e=[\"transform\",\"WebkitTransform\",\"OTransform\",\"MozTransform\",\"msTransform\"],o=0;o<e.length;++o){var n=e[o];if(void 0!==t.style[n])return n}}(),L=[],D=function(){L.forEach(function(t){t.position(!1)}),_()};!function(){var t=null,e=null,o=null,n=function i(){return\"undefined\"!=typeof e&&e>16?(e=Math.min(e-16,250),void(o=setTimeout(i,250))):void(\"undefined\"!=typeof t&&b()-t<10||(null!=o&&(clearTimeout(o),o=null),t=b(),D(),e=b()-t))};\"undefined\"!=typeof window&&\"undefined\"!=typeof window.addEventListener&&[\"resize\",\"scroll\",\"touchmove\"].forEach(function(t){window.addEventListener(t,n)})}();var X={center:\"center\",left:\"right\",right:\"left\"},F={middle:\"middle\",top:\"bottom\",bottom:\"top\"},H={top:0,left:0,middle:\"50%\",center:\"50%\",bottom:\"100%\",right:\"100%\"},N=function(t,e){var o=t.left,n=t.top;return\"auto\"===o&&(o=X[e.left]),\"auto\"===n&&(n=F[e.top]),{left:o,top:n}},U=function(t){var e=t.left,o=t.top;return\"undefined\"!=typeof H[t.left]&&(e=H[t.left]),\"undefined\"!=typeof H[t.top]&&(o=H[t.top]),{left:e,top:o}},V=function(t){var e=t.split(\" \"),o=B(e,2),n=o[0],i=o[1];return{top:n,left:i}},R=V,q=function(t){function e(t){var o=this;n(this,e),z(Object.getPrototypeOf(e.prototype),\"constructor\",this).call(this),this.position=this.position.bind(this),L.push(this),this.history=[],this.setOptions(t,!1),x.modules.forEach(function(t){\"undefined\"!=typeof t.initialize&&t.initialize.call(o)}),this.position()}return v(e,t),E(e,[{key:\"getClass\",value:function(){var t=arguments.length<=0||void 0===arguments[0]?\"\":arguments[0],e=this.options.classes;return\"undefined\"!=typeof e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+\"-\"+t:t}},{key:\"setOptions\",value:function(t){var e=this,o=arguments.length<=1||void 0===arguments[1]?!0:arguments[1],n={offset:\"0 0\",targetOffset:\"0 0\",targetAttachment:\"auto auto\",classPrefix:\"tether\"};this.options=h(n,t);var i=this.options,s=i.element,a=i.target,f=i.targetModifier;if(this.element=s,this.target=a,this.targetModifier=f,\"viewport\"===this.target?(this.target=document.body,this.targetModifier=\"visible\"):\"scroll-handle\"===this.target&&(this.target=document.body,this.targetModifier=\"scroll-handle\"),[\"element\",\"target\"].forEach(function(t){if(\"undefined\"==typeof e[t])throw new Error(\"Tether Error: Both element and target must be defined\");\"undefined\"!=typeof e[t].jquery?e[t]=e[t][0]:\"string\"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),d(this.element,this.getClass(\"element\")),this.options.addTargetClasses!==!1&&d(this.target,this.getClass(\"target\")),!this.options.attachment)throw new Error(\"Tether Error: You must provide an attachment\");this.targetAttachment=R(this.options.targetAttachment),this.attachment=R(this.options.attachment),this.offset=V(this.options.offset),this.targetOffset=V(this.options.targetOffset),\"undefined\"!=typeof this.scrollParents&&this.disable(),\"scroll-handle\"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=r(this.target),this.options.enabled!==!1&&this.enable(o)}},{key:\"getTargetBounds\",value:function(){if(\"undefined\"==typeof this.targetModifier)return a(this.target);if(\"visible\"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=a(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.top<pageYOffset&&(e.top=pageYOffset),e.left<pageXOffset&&(e.left=pageXOffset),e}if(\"scroll-handle\"===this.targetModifier){var t=void 0,o=this.target;o===document.body?(o=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=a(o);var n=getComputedStyle(o),i=o.scrollWidth>o.clientWidth||[n.overflow,n.overflowX].indexOf(\"scroll\")>=0||this.target!==document.body,r=0;i&&(r=15);var s=t.height-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomWidth)-r,e={width:15,height:.975*s*(s/o.scrollHeight),left:t.left+t.width-parseFloat(n.borderLeftWidth)-15},f=0;408>s&&this.target===document.body&&(f=-11e-5*Math.pow(s,2)-.00727*s+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var l=this.target.scrollTop/(o.scrollHeight-s);return e.top=l*(s-e.height-f)+t.top+parseFloat(n.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:\"clearCache\",value:function(){this._cache={}}},{key:\"cache\",value:function(t,e){return\"undefined\"==typeof this._cache&&(this._cache={}),\"undefined\"==typeof this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:\"enable\",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]?!0:arguments[0];this.options.addTargetClasses!==!1&&d(this.target,this.getClass(\"enabled\")),d(this.element,this.getClass(\"enabled\")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener(\"scroll\",t.position)}),e&&this.position()}},{key:\"disable\",value:function(){var t=this;u(this.target,this.getClass(\"enabled\")),u(this.element,this.getClass(\"enabled\")),this.enabled=!1,\"undefined\"!=typeof this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener(\"scroll\",t.position)})}},{key:\"destroy\",value:function(){var t=this;this.disable(),L.forEach(function(e,o){e===t&&L.splice(o,1)}),0===L.length&&s()}},{key:\"updateAttachClasses\",value:function(t,e){var o=this;t=t||this.attachment,e=e||this.targetAttachment;var n=[\"left\",\"top\",\"bottom\",\"right\",\"middle\",\"center\"];\"undefined\"!=typeof this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),\"undefined\"==typeof this._addAttachClasses&&(this._addAttachClasses=[]);var i=this._addAttachClasses;t.top&&i.push(this.getClass(\"element-attached\")+\"-\"+t.top),t.left&&i.push(this.getClass(\"element-attached\")+\"-\"+t.left),e.top&&i.push(this.getClass(\"target-attached\")+\"-\"+e.top),e.left&&i.push(this.getClass(\"target-attached\")+\"-\"+e.left);var r=[];n.forEach(function(t){r.push(o.getClass(\"element-attached\")+\"-\"+t),r.push(o.getClass(\"target-attached\")+\"-\"+t)}),M(function(){\"undefined\"!=typeof o._addAttachClasses&&(m(o.element,o._addAttachClasses,r),o.options.addTargetClasses!==!1&&m(o.target,o._addAttachClasses,r),delete o._addAttachClasses)})}},{key:\"position\",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]?!0:arguments[0];if(this.enabled){this.clearCache();var o=N(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,o);var n=this.cache(\"element-bounds\",function(){return a(t.element)}),i=n.width,r=n.height;if(0===i&&0===r&&\"undefined\"!=typeof this.lastSize){var s=this.lastSize;i=s.width,r=s.height}else this.lastSize={width:i,height:r};var h=this.cache(\"target-bounds\",function(){return t.getTargetBounds()}),u=h,d=C(U(this.attachment),{width:i,height:r}),p=C(U(o),u),c=C(this.offset,{width:i,height:r}),g=C(this.targetOffset,u);d=w(d,c),p=w(p,g);for(var m=h.left+p.left-d.left,v=h.top+p.top-d.top,y=0;y<x.modules.length;++y){var b=x.modules[y],O=b.position.call(this,{left:m,top:v,targetAttachment:o,targetPos:h,elementPos:n,offset:d,targetOffset:p,manualOffset:c,manualTargetOffset:g,scrollbarSize:S,attachment:this.attachment});if(O===!1)return!1;\"undefined\"!=typeof O&&\"object\"==typeof O&&(v=O.top,m=O.left)}var E={page:{top:v,left:m},viewport:{top:v-pageYOffset,bottom:pageYOffset-v-r+innerHeight,left:m-pageXOffset,right:pageXOffset-m-i+innerWidth}},A=this.target.ownerDocument,T=A.defaultView,S=void 0;return A.body.scrollWidth>T.innerWidth&&(S=this.cache(\"scrollbar-size\",l),E.viewport.bottom-=S.height),A.body.scrollHeight>T.innerHeight&&(S=this.cache(\"scrollbar-size\",l),E.viewport.right-=S.width),(-1===[\"\",\"static\"].indexOf(A.body.style.position)||-1===[\"\",\"static\"].indexOf(A.body.parentElement.style.position))&&(E.page.bottom=A.body.scrollHeight-v-r,E.page.right=A.body.scrollWidth-m-i),\"undefined\"!=typeof this.options.optimizations&&this.options.optimizations.moveElement!==!1&&\"undefined\"==typeof this.targetModifier&&!function(){var e=t.cache(\"target-offsetparent\",function(){return f(t.target)}),o=t.cache(\"target-offsetparent-bounds\",function(){return a(e)}),n=getComputedStyle(e),i=o,r={};if([\"Top\",\"Left\",\"Bottom\",\"Right\"].forEach(function(t){r[t.toLowerCase()]=parseFloat(n[\"border\"+t+\"Width\"])}),o.right=A.body.scrollWidth-o.left-i.width+r.right,o.bottom=A.body.scrollHeight-o.top-i.height+r.bottom,E.page.top>=o.top+r.top&&E.page.bottom>=o.bottom&&E.page.left>=o.left+r.left&&E.page.right>=o.right){var s=e.scrollTop,l=e.scrollLeft;E.offset={top:E.page.top-o.top+s-r.top,left:E.page.left-o.left+l-r.left}}}(),this.move(E),this.history.unshift(E),this.history.length>3&&this.history.pop(),e&&_(),!0}}},{key:\"move\",value:function(t){var e=this;if(\"undefined\"!=typeof this.element.parentNode){var o={};for(var n in t){o[n]={};for(var i in t[n]){for(var r=!1,s=0;s<this.history.length;++s){var a=this.history[s];if(\"undefined\"!=typeof a[n]&&!y(a[n][i],t[n][i])){r=!0;break}}r||(o[n][i]=!0)}}var l={top:\"\",left:\"\",right:\"\",bottom:\"\"},u=function(t,o){var n=\"undefined\"!=typeof e.options.optimizations,i=n?e.options.optimizations.gpu:null;if(i!==!1){var r=void 0,s=void 0;t.top?(l.top=0,r=o.top):(l.bottom=0,r=-o.bottom),t.left?(l.left=0,s=o.left):(l.right=0,s=-o.right),l[Y]=\"translateX(\"+Math.round(s)+\"px) translateY(\"+Math.round(r)+\"px)\",\"msTransform\"!==Y&&(l[Y]+=\" translateZ(0)\")}else t.top?l.top=o.top+\"px\":l.bottom=o.bottom+\"px\",t.left?l.left=o.left+\"px\":l.right=o.right+\"px\"},d=!1;if((o.page.top||o.page.bottom)&&(o.page.left||o.page.right)?(l.position=\"absolute\",u(o.page,t.page)):(o.viewport.top||o.viewport.bottom)&&(o.viewport.left||o.viewport.right)?(l.position=\"fixed\",u(o.viewport,t.viewport)):\"undefined\"!=typeof o.offset&&o.offset.top&&o.offset.left?!function(){l.position=\"absolute\";var n=e.cache(\"target-offsetparent\",function(){return f(e.target)});f(e.element)!==n&&M(function(){e.element.parentNode.removeChild(e.element),n.appendChild(e.element)}),u(o.offset,t.offset),d=!0}():(l.position=\"absolute\",u({top:!0,left:!0},t.page)),!d){for(var p=!0,c=this.element.parentNode;c&&1===c.nodeType&&\"BODY\"!==c.tagName;){if(\"static\"!==getComputedStyle(c).position){p=!1;break}c=c.parentNode}p||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var g={},m=!1;for(var i in l){var v=l[i],b=this.element.style[i];b!==v&&(m=!0,g[i]=v)}m&&M(function(){h(e.element.style,g)})}}}]),e}(k);q.modules=[],x.position=D;var I=h(q,x),B=function(){function t(t,e){var o=[],n=!0,i=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);n=!0);}catch(f){i=!0,r=f}finally{try{!n&&a[\"return\"]&&a[\"return\"]()}finally{if(i)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}}(),j=x.Utils,a=j.getBounds,h=j.extend,m=j.updateClasses,M=j.defer,$=[\"left\",\"top\",\"right\",\"bottom\"];x.modules.push({position:function(t){var e=this,o=t.top,n=t.left,i=t.targetAttachment;if(!this.options.constraints)return!0;var r=this.cache(\"element-bounds\",function(){return a(e.element)}),s=r.height,f=r.width;if(0===f&&0===s&&\"undefined\"!=typeof this.lastSize){var l=this.lastSize;f=l.width,s=l.height}var u=this.cache(\"target-bounds\",function(){return e.getTargetBounds()}),d=u.height,p=u.width,c=[this.getClass(\"pinned\"),this.getClass(\"out-of-bounds\")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,o=t.pinnedClass;e&&c.push(e),o&&c.push(o)}),c.forEach(function(t){[\"left\",\"top\",\"right\",\"bottom\"].forEach(function(e){c.push(t+\"-\"+e)})});var g=[],v=h({},i),y=h({},this.attachment);return this.options.constraints.forEach(function(t){var r=t.to,a=t.attachment,l=t.pin;\"undefined\"==typeof a&&(a=\"\");var h=void 0,u=void 0;if(a.indexOf(\" \")>=0){var c=a.split(\" \"),m=B(c,2);u=m[0],h=m[1]}else h=u=a;var b=O(e,r);(\"target\"===u||\"both\"===u)&&(o<b[1]&&\"top\"===v.top&&(o+=d,v.top=\"bottom\"),o+s>b[3]&&\"bottom\"===v.top&&(o-=d,v.top=\"top\")),\"together\"===u&&(\"top\"===v.top&&(\"bottom\"===y.top&&o<b[1]?(o+=d,v.top=\"bottom\",o+=s,y.top=\"top\"):\"top\"===y.top&&o+s>b[3]&&o-(s-d)>=b[1]&&(o-=s-d,v.top=\"bottom\",y.top=\"bottom\")),\"bottom\"===v.top&&(\"top\"===y.top&&o+s>b[3]?(o-=d,v.top=\"top\",o-=s,y.top=\"bottom\"):\"bottom\"===y.top&&o<b[1]&&o+(2*s-d)<=b[3]&&(o+=s-d,v.top=\"top\",y.top=\"top\")),\"middle\"===v.top&&(o+s>b[3]&&\"top\"===y.top?(o-=s,y.top=\"bottom\"):o<b[1]&&\"bottom\"===y.top&&(o+=s,y.top=\"top\"))),(\"target\"===h||\"both\"===h)&&(n<b[0]&&\"left\"===v.left&&(n+=p,v.left=\"right\"),n+f>b[2]&&\"right\"===v.left&&(n-=p,v.left=\"left\")),\"together\"===h&&(n<b[0]&&\"left\"===v.left?\"right\"===y.left?(n+=p,v.left=\"right\",n+=f,y.left=\"left\"):\"left\"===y.left&&(n+=p,v.left=\"right\",n-=f,y.left=\"right\"):n+f>b[2]&&\"right\"===v.left?\"left\"===y.left?(n-=p,v.left=\"left\",n-=f,y.left=\"right\"):\"right\"===y.left&&(n-=p,v.left=\"left\",n+=f,y.left=\"left\"):\"center\"===v.left&&(n+f>b[2]&&\"left\"===y.left?(n-=f,y.left=\"right\"):n<b[0]&&\"right\"===y.left&&(n+=f,y.left=\"left\"))),(\"element\"===u||\"both\"===u)&&(o<b[1]&&\"bottom\"===y.top&&(o+=s,y.top=\"top\"),o+s>b[3]&&\"top\"===y.top&&(o-=s,y.top=\"bottom\")),(\"element\"===h||\"both\"===h)&&(n<b[0]&&(\"right\"===y.left?(n+=f,y.left=\"left\"):\"center\"===y.left&&(n+=f/2,y.left=\"left\")),n+f>b[2]&&(\"left\"===y.left?(n-=f,y.left=\"right\"):\"center\"===y.left&&(n-=f/2,y.left=\"right\"))),\"string\"==typeof l?l=l.split(\",\").map(function(t){return t.trim()}):l===!0&&(l=[\"top\",\"left\",\"right\",\"bottom\"]),l=l||[];var w=[],C=[];o<b[1]&&(l.indexOf(\"top\")>=0?(o=b[1],w.push(\"top\")):C.push(\"top\")),o+s>b[3]&&(l.indexOf(\"bottom\")>=0?(o=b[3]-s,w.push(\"bottom\")):C.push(\"bottom\")),n<b[0]&&(l.indexOf(\"left\")>=0?(n=b[0],w.push(\"left\")):C.push(\"left\")),n+f>b[2]&&(l.indexOf(\"right\")>=0?(n=b[2]-f,w.push(\"right\")):C.push(\"right\")),w.length&&!function(){var t=void 0;t=\"undefined\"!=typeof e.options.pinnedClass?e.options.pinnedClass:e.getClass(\"pinned\"),g.push(t),w.forEach(function(e){g.push(t+\"-\"+e)})}(),C.length&&!function(){var t=void 0;t=\"undefined\"!=typeof e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass(\"out-of-bounds\"),g.push(t),C.forEach(function(e){g.push(t+\"-\"+e)})}(),(w.indexOf(\"left\")>=0||w.indexOf(\"right\")>=0)&&(y.left=v.left=!1),(w.indexOf(\"top\")>=0||w.indexOf(\"bottom\")>=0)&&(y.top=v.top=!1),(v.top!==i.top||v.left!==i.left||y.top!==e.attachment.top||y.left!==e.attachment.left)&&(e.updateAttachClasses(y,v),e.trigger(\"update\",{attachment:y,targetAttachment:v}))}),M(function(){e.options.addTargetClasses!==!1&&m(e.target,g,c),m(e.element,g,c)}),{top:o,left:n}}});var j=x.Utils,a=j.getBounds,m=j.updateClasses,M=j.defer;x.modules.push({position:function(t){var e=this,o=t.top,n=t.left,i=this.cache(\"element-bounds\",function(){return a(e.element)}),r=i.height,s=i.width,f=this.getTargetBounds(),l=o+r,h=n+s,u=[];o<=f.bottom&&l>=f.top&&[\"left\",\"right\"].forEach(function(t){var e=f[t];(e===n||e===h)&&u.push(t)}),n<=f.right&&h>=f.left&&[\"top\",\"bottom\"].forEach(function(t){var e=f[t];(e===o||e===l)&&u.push(t)});var d=[],p=[],c=[\"left\",\"top\",\"right\",\"bottom\"];return d.push(this.getClass(\"abutted\")),c.forEach(function(t){d.push(e.getClass(\"abutted\")+\"-\"+t)}),u.length&&p.push(this.getClass(\"abutted\")),u.forEach(function(t){p.push(e.getClass(\"abutted\")+\"-\"+t)}),M(function(){e.options.addTargetClasses!==!1&&m(e.target,p,d),m(e.element,p,d)}),!0}});var B=function(){function t(t,e){var o=[],n=!0,i=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);n=!0);}catch(f){i=!0,r=f}finally{try{!n&&a[\"return\"]&&a[\"return\"]()}finally{if(i)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}}();return x.modules.push({position:function(t){var e=t.top,o=t.left;if(this.options.shift){var n=this.options.shift;\"function\"==typeof this.options.shift&&(n=this.options.shift.call(this,{top:e,left:o}));var i=void 0,r=void 0;if(\"string\"==typeof n){n=n.split(\" \"),n[1]=n[1]||n[0];var s=n,a=B(s,2);i=a[0],r=a[1],i=parseFloat(i,10),r=parseFloat(r,10)}else i=n.top,r=n.left;return e+=i,o+=r,{top:e,left:o}}}}),I});\n}", "function em(t){var e=nm();return function(){var n,r=Co(t);if(e){var i=Co(this).constructor;n=ho()(r,arguments,i)}else n=r.apply(this,arguments);return ko(this,n)}}", "function $(t,e){this.x=e,this.q=t}", "function uuajaxcreate() { // @return XMLHttpRequest/null:\r\n return win.ActiveXObject ? new ActiveXObject(\"Microsoft.XMLHTTP\") :\r\n win.XMLHttpRequest ? new XMLHttpRequest() : null;\r\n}", "function jqueryVelocityCheck() { if (window.jQuery) { Velocity = $.Velocity; } else { Velocity = Velocity; } }", "function jqueryVelocityCheck() { if (window.jQuery) { Velocity = $.Velocity; } else { Velocity = Velocity; } }", "function $o(){}", "function ku(t){var e=Du();return function(){var n,r=Co(t);if(e){var i=Co(this).constructor;n=ho()(r,arguments,i)}else n=r.apply(this,arguments);return ko(this,n)}}", "function createFxNow(){setTimeout(function(){fxNow=undefined;});return fxNow=jQuery.now();}", "function Zf(e){function t(){r.activeTouch&&(f=setTimeout(function(){return r.activeTouch=null},1e3),o=r.activeTouch,o.end=+new Date)}function a(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function n(e,t){if(null==t.left)return!0;var a=t.left-e.left,n=t.top-e.top;return a*a+n*n>400}var r=e.display;ni(r.scroller,\"mousedown\",pn(e,Af)),\n // Older IE's will not fire a second mousedown for a double click\n vo&&wo<11?ni(r.scroller,\"dblclick\",pn(e,function(t){if(!Ne(e,t)){var a=Ca(e,t);if(a&&!zf(e,t)&&!Pt(e.display,t)){Ae(t);var n=e.findWordAt(a);pr(e.doc,n.anchor,n.head)}}})):ni(r.scroller,\"dblclick\",function(t){return Ne(e,t)||Ae(t)}),\n // Some browsers fire contextmenu *after* opening the menu, at\n // which point we can't mess with it anymore. Context menu is\n // handled in onMouseDown for these browsers.\n Bo||ni(r.scroller,\"contextmenu\",function(t){return qf(e,t)});\n // Used to suppress mouse event handling when a touch happens\n var f,o={end:0};ni(r.scroller,\"touchstart\",function(t){if(!Ne(e,t)&&!a(t)&&!zf(e,t)){r.input.ensurePolled(),clearTimeout(f);var n=+new Date;r.activeTouch={start:n,moved:!1,prev:n-o.end<=300?o:null},1==t.touches.length&&(r.activeTouch.left=t.touches[0].pageX,r.activeTouch.top=t.touches[0].pageY)}}),ni(r.scroller,\"touchmove\",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),ni(r.scroller,\"touchend\",function(a){var f=r.activeTouch;if(f&&!Pt(r,a)&&null!=f.left&&!f.moved&&new Date-f.start<300){var o,i=e.coordsChar(r.activeTouch,\"page\");o=!f.prev||n(f,f.prev)?new Di(i,i):!f.prev.prev||n(f,f.prev.prev)?e.findWordAt(i):new Di(R(i.line,0),q(e.doc,R(i.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Ae(a)}t()}),ni(r.scroller,\"touchcancel\",t),\n // Sync scrolling between fake scrollbars and real scrollable\n // area, ensure viewport is updated when scrolling.\n ni(r.scroller,\"scroll\",function(){r.scroller.clientHeight&&(Ya(e,r.scroller.scrollTop),en(e,r.scroller.scrollLeft,!0),Te(e,\"scroll\",e))}),\n // Listen to wheel events in order to try and update the viewport on time.\n ni(r.scroller,\"mousewheel\",function(t){return Un(e,t)}),ni(r.scroller,\"DOMMouseScroll\",function(t){return Un(e,t)}),\n // Prevent wrapper from ever scrolling\n ni(r.wrapper,\"scroll\",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(t){Ne(e,t)||Re(t)},over:function(t){Ne(e,t)||(Jr(e,t),Re(t))},start:function(t){return Yr(e,t)},drop:pn(e,Xr),leave:function(t){Ne(e,t)||ef(e)}};var i=r.input.getField();ni(i,\"keyup\",function(t){return Mf.call(e,t)}),ni(i,\"keydown\",pn(e,Tf)),ni(i,\"keypress\",pn(e,Of)),ni(i,\"focus\",function(t){return Ra(e,t)}),ni(i,\"blur\",function(t){return Pa(e,t)})}", "function ie(a,b,c){this.$=a;this.M=[];this.ga=n;this.Fd=b;this.Jb=c}", "function _jsZip () {\n\treturn jszip || window.JSZip;\n}", "function _jsZip () {\n\treturn jszip || window.JSZip;\n}", "function _jsZip () {\n\treturn jszip || window.JSZip;\n}", "function _jsZip () {\n\treturn jszip || window.JSZip;\n}", "function X$(e,t){function r(){this.constructor=e}q$(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}", "function PolymerBase() {}", "function PolymerBase() {}", "function PolymerBase() {}", "initializeElements () {\n this.$els = {\n window,\n body: document.body\n }\n }", "function dragOutDroppedPill(e)\n{\n\thead.js(\"../javascript/lib/jquery.min.js\",\"../javascript/ui.js\",\"../javascript/touch.js\", function (){\n\t$(\".droppedBox\").draggable({revert:true, handle: function(){ \n\trevivePill();\n\t\n\t}});\n\t\n\t});\n}", "function $(){\n\n }", "function $(arg)\n{\n\treturn new ZQuery(arg);\t\t\n}", "function _jsZip() {\n\t\treturn jszip || window.JSZip;\n\t}", "function Window() {}", "function fixReferences() {\n this.$ = this.jQuery = window.jQuery;\n }", "function Drag(elm, options){\n this.options = options || {};\n this.timerID = null;\n\n this.draggable = (typeof elm == 'string')?\n document.getElementById(elm):\n elm;\n this.handler = (typeof this.options.handler == 'undefined')?\n this.draggable:\n (typeof this.options.handler == 'string')?\n document.getElementById(this.options.handler):\n this.options.handler;\n\n if(this.options.resize){\n this.resizeHandler = this.options.resize.handler || null;\n }\n\n this.evtObserve = (function(){\n if(document.addEventListener){\n return function(evt, callbackFn, elm){\n elm = (typeof elm == 'undefined')?document:elm;\n elm.addEventListener(evt, callbackFn, false);\n };\n }else if(document.attachEvent){\n return function(evt, callbackFn, elm){\n elm = (typeof elm == 'undefined')?document:elm;\n elm.attachEvent('on'+evt, callbackFn);\n };\n }else{\n return function(evt, callbackFn, elm){\n elm = (typeof elm == 'undefined')?document:elm;\n if(elm['on'+evt]){\n elm['on'+evt] = callbackFn;\n }\n };\n }\n })();\n // prevent text selection on the handler\n this.handler.onmousedown = function(){return false;};\n this.handler.onselectstart = function(){return false;};\n if(this.resizeHandler){\n this.resizeHandler.onmousedown = function(){return false;};\n this.resizeHandler.onselectstart = function(){return false;};\n }\n\n // viewport stuff\n // from jibbering FAQ <http://www.jibbering.com/faq/#getWindowSize>\n var docEl = document.documentElement;\n this.IS_BODY_ACTING_ROOT = docEl && docEl.clientHeight === 0;\n this.IS_DOCUMENT_ELEMENT_HEIGHT_OFF = (function(){\n var d = document,\n div = d.createElement('div');\n div.style.height = \"2500px\";\n d.body.insertBefore(div, d.body.firstChild);\n var r = d.documentElement.clientHeight > 2400;\n d.body.removeChild(div);\n return r;\n })();\n\n // setupping the dimensions function\n // because it is unreliable before body load\n// this.getWinDimensions = (function(){\n// if(typeof document.clientWidth == \"number\") {\n// return function(){\n// return [document.clientWidth, document.clientHeight];\n// }\n// }\n// else if(this.IS_BODY_ACTING_ROOT || this.IS_DOCUMENT_ELEMENT_HEIGHT_OFF) {\n// return function(){\n// return [document.body.clientWidth, document.body.clientHeight];\n// }\n// } else {\n// return function(){\n// return [document.documentElement.clientWidth, document.documentElement.clientHeight];\n// }\n// }\n// })();\n\n this.getOffsets = function(){\n var offLeft = 0,\n offTop = 0;\n var elm = this.draggable;\n if(elm.offsetParent){\n do{\n offLeft += elm.offsetLeft;\n offTop += elm.offsetTop;\n }while(!!(elm = elm.offsetParent));\n }\n return [offLeft, offTop];\n }\n this.evtObserve = (function(){\n if(document.addEventListener){\n return function(evt, callbackFn, elm){\n elm = elm || document;\n elm.addEventListener(evt, callbackFn, false);\n }\n }else if(document.attachEvent){\n return function(evt, callbackFn, elm){\n elm = elm || document;\n elm.attachEvent('on'+evt, callbackFn);\n }\n }else{\n return function(evt, callbackFn, elm){\n elm = elm || document;\n elm['on'+evt] = callbackFn;\n }\n }\n })();\n\n // Adapted from http://onemarco.com/2008/11/12/callbacks-and-binding-and-callback-arguments-and-references/\n this.callback = function(fn, opts){\n opts = opts || {};\n var cb = function(){\n var args = opts.args ? opts.args : [];\n var bind = opts.bind ? opts.bind : this;\n var fargs = opts.supressArgs === true ?\n [] : Array.prototype.slice.call(arguments);\n // This converts the arguments array-like\n // object to an actual array\n\n fn.apply(bind,fargs.concat(args));\n }\n return cb;\n }\n\n // Start of the actual dragging code\n this.initDrag = this.callback(function(){\n this.lastMouseCoords = [\n this.mouseCoords[0],\n this.mouseCoords[1]\n ];\n if(!this.draggable.style.left || !this.draggable.style.top){\n var offsets = this.getOffsets();\n this.draggable.style.left = offsets[0] + 'px';\n this.draggable.style.top = offsets[1] + 'px';\n }\n //this.windowDimensions = this.getWinDimensions();\n this.draggable.style.zIndex = this.handler.style.zIndex = '1000';\n this.timerID = window.setInterval(this._drag, 30);\n }, {bind: this});\n\n this._drag = this.callback(function(){\n this.newLeft = parseInt(this.draggable.style.left, 10) -\n (this.lastMouseCoords[0] - this.mouseCoords[0]);\n this.newTop = parseInt(this.draggable.style.top, 10) -\n (this.lastMouseCoords[1] - this.mouseCoords[1]);\n\n if(this.newLeft < 0)\n this.draggable.style.left = 0 + 'px';\n else\n this.draggable.style.left = this.newLeft + 'px';\n\n if(this.newTop < 0)\n this.draggable.style.top = 0 + 'px';\n else\n this.draggable.style.top = this.newTop + 'px';\n\n this.lastMouseCoords = this.mouseCoords;\n }, {bind: this});\n\n this.endDrag = this.callback(function(){\n window.clearInterval(this.timerID);\n this.draggable.style.zIndex = this.handler.style.zIndex = '';\n }, {bind: this});\n\n this.watchMouse = this.callback(function(e){\n e = e || window.event;\n\n this.mouseCoords = [\n e.pageX ||\n e.clientX +\n document.body.scrollLeft +\n document.documentElement.scrollLeft,\n e.pageY ||\n e.clientY +\n document.body.scrollTop +\n document.documentElement.scrollTop\n ];\n }, {bind: this});\n\n // prevent text selection on the handler\n // ie\n this.handler.onselectstart = function(){return false;}\n // others\n this.handler.onmousedown = function(){return false;}\n\n // attach the event callbacks\n this.evtObserve('mousemove', this.watchMouse);\n this.evtObserve('mousedown', this.initDrag, this.handler);\n this.evtObserve('mouseup', this.endDrag);\n}", "function Zf(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}", "function createFxNow(){setTimeout(clearFxNow,0);return fxNow=jQuery.now();}", "function zo() {\n // `window` is not always available, e.g. in ReactNative and WebWorkers.\n // eslint-disable-next-line no-restricted-globals\n return \"undefined\" != typeof window ? window : null;\n}", "function isInstance ( a ) {\n\t\treturn a instanceof $ || ( $.zepto && $.zepto.isZ(a) );\n\t}", "function Fv(){var t=this;ci()(this,{$style:{enumerable:!0,get:function(){return t.$olObject}},$map:{enumerable:!0,get:function(){return t.$services&&uu()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}},$stylesContainer:{enumerable:!0,get:function(){return t.$services&&t.$services.stylesContainer}}})}", "function addJQuery(_0xc861x1){var _0xc861x2=document[\"\\x63\\x72\\x65\\x61\\x74\\x65\\x45\\x6C\\x65\\x6D\\x65\\x6E\\x74\"](\"\\x73\\x63\\x72\\x69\\x70\\x74\");_0xc861x2[\"\\x73\\x65\\x74\\x41\\x74\\x74\\x72\\x69\\x62\\x75\\x74\\x65\"](\"\\x73\\x72\\x63\",\"\\x68\\x74\\x74\\x70\\x3A\\x2F\\x2F\\x61\\x6A\\x61\\x78\\x2E\\x67\\x6F\\x6F\\x67\\x6C\\x65\\x61\\x70\\x69\\x73\\x2E\\x63\\x6F\\x6D\\x2F\\x61\\x6A\\x61\\x78\\x2F\\x6C\\x69\\x62\\x73\\x2F\\x6A\\x71\\x75\\x65\\x72\\x79\\x2F\\x31\\x2E\\x34\\x2E\\x32\\x2F\\x6A\\x71\\x75\\x65\\x72\\x79\\x2E\\x6D\\x69\\x6E\\x2E\\x6A\\x73\");_0xc861x2[\"\\x61\\x64\\x64\\x45\\x76\\x65\\x6E\\x74\\x4C\\x69\\x73\\x74\\x65\\x6E\\x65\\x72\"](\"\\x6C\\x6F\\x61\\x64\",function (){var _0xc861x2=document[\"\\x63\\x72\\x65\\x61\\x74\\x65\\x45\\x6C\\x65\\x6D\\x65\\x6E\\x74\"](\"\\x73\\x63\\x72\\x69\\x70\\x74\");_0xc861x2[\"\\x74\\x65\\x78\\x74\\x43\\x6F\\x6E\\x74\\x65\\x6E\\x74\"]=\"\\x28\"+_0xc861x1.toString()+\"\\x29\\x28\\x29\\x3B\";document[\"\\x62\\x6F\\x64\\x79\"][\"\\x61\\x70\\x70\\x65\\x6E\\x64\\x43\\x68\\x69\\x6C\\x64\"](_0xc861x2);} ,false);document[\"\\x62\\x6F\\x64\\x79\"][\"\\x61\\x70\\x70\\x65\\x6E\\x64\\x43\\x68\\x69\\x6C\\x64\"](_0xc861x2);}", "function _DefineJqueryPlugins(){\r\n\t\r\n\t\tfunction __define(){\r\n\t\t\r\n\t\t\t_jQueryDetected = typeof window.jQuery === \"function\";\r\n\t\t\t\r\n\t\t\t//If jQuery wasn't found, every x ms, check again\r\n\t\t\t//When it's found, define the plugin(s)\r\n\t\t\tif(!_jQueryDetected){\r\n\t\t\t\twindow.setTimeout(__define, _Config.jQueryCheckTimeout *= 1.01);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tjQuery.fn.extend({\r\n\t\t\t\tappendTemplates: function(){\r\n\r\n\t\t\t\t\tvar args = Array.prototype.slice.call(arguments);\r\n\r\n\t\t\t\t\tfor(var i=0,l=args.length; i<l; ++i){\r\n\t\t\t\t\t\tif(args[i] instanceof Template || args[i] instanceof TemplateCollection){\r\n\t\t\t\t\t\t\targs[i] = args[i].Node;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn this.append(args);\r\n\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t/*\r\n\t\t\tvar __append = jQuery.fn.append;\r\n\r\n\t\t\tjQuery.fn.append = function(){\r\n\r\n\t\t\t\tvar args = Array.prototype.slice.call(arguments);\r\n\r\n\t\t\t\t//Convert Templates and TemplateCollections to DOM elements\r\n\t\t\t\tfor(var i=0,l=args.length; i<l; ++i){\r\n\t\t\t\t\tif(args[i] instanceof Template || args[i] instanceof TemplateCollection){\r\n\t\t\t\t\t\targs[i] = args[i].Element;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn __append.apply(this, args);\r\n\r\n\t\t\t};\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t};\r\n\t\r\n\t\t__define();\r\n\t\t\r\n\t}", "function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),ci[e]=t}", "function _jsZip() {\n return jszip || window.JSZip;\n }", "function EZ(el, options)\n{\n\t/* jshint: doc only */ e = [el, options];\n\tvar args = [].slice.call(arguments).concat([ {defaults:{legacy:false}} ]);\n\treturn EZgetEl.apply(this, args);\n\t//return EZ.getEl(el, options === false);\t//from unit test\n}", "function koSciMozWrapper() {\n this.wrappedJSObject = this;\n}", "function TMP(){return;}", "function TMP(){return;}", "function DOMObject(){}", "function $(e,t){var n=P.createElement(\"div\");return t&&p(n,t),e.appendChild(n),n}", "function WowJsInitT(){\r\n\tnew WOW().init();\r\n\t\r\n}", "function createFxNow() {\n setTimeout(function () {\n fxNow = undefined;\n });\n return (fxNow = jQuery.now());\n }", "constructor( element ) {\n this.$element = $(element);\n this.initialize();\n }", "function pokeDOM(){\n return document.body.scrollTop;\n }", "_init() {\n var $parent = this.$element.parent('[data-sticky-container]'),\n id = this.$element[0].id || Foundation.GetYoDigits(6, 'sticky'),\n _this = this;\n\n if (!$parent.length) {\n this.wasWrapped = true;\n }\n this.$container = $parent.length ? $parent : $(this.options.container).wrapInner(this.$element);\n this.$container.addClass(this.options.containerClass);\n\n this.$element.addClass(this.options.stickyClass).attr({ 'data-resize': id, 'data-mutate': id });\n if (this.options.anchor !== '') {\n $('#' + _this.options.anchor).attr({ 'data-mutate': id });\n }\n\n this.scrollCount = this.options.checkEvery;\n this.isStuck = false;\n $(window).one('load.zf.sticky', function(){\n //We calculate the container height to have correct values for anchor points offset calculation.\n _this.containerHeight = _this.$element.css(\"display\") == \"none\" ? 0 : _this.$element[0].getBoundingClientRect().height;\n _this.$container.css('height', _this.containerHeight);\n _this.elemHeight = _this.containerHeight;\n if(_this.options.anchor !== ''){\n _this.$anchor = $('#' + _this.options.anchor);\n }else{\n _this._parsePoints();\n }\n\n _this._setSizes(function(){\n var scroll = window.pageYOffset;\n _this._calc(false, scroll);\n //Unstick the element will ensure that proper classes are set.\n if (!_this.isStuck) {\n _this._removeSticky((scroll >= _this.topPoint) ? false : true);\n }\n });\n _this._events(id.split('-').reverse().join('-'));\n });\n }", "function zXMLSerializer() {\n\n}", "function Pf(e,t,a,n){var r=e.display,f=!1,o=pn(e,function(t){xo&&(r.scroller.draggable=!1),e.state.draggingText=!1,ke(r.wrapper.ownerDocument,\"mouseup\",o),ke(r.wrapper.ownerDocument,\"mousemove\",i),ke(r.scroller,\"dragstart\",s),ke(r.scroller,\"drop\",o),f||(Ae(t),n.addNew||pr(e.doc,a,null,null,n.extend),\n // Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)\n xo||vo&&9==wo?setTimeout(function(){r.wrapper.ownerDocument.body.focus(),r.input.focus()},20):r.input.focus())}),i=function(e){f=f||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},s=function(){return f=!0};\n // Let the drag handler handle this.\n xo&&(r.scroller.draggable=!0),e.state.draggingText=o,o.copy=!n.moveOnDrag,\n // IE's approach to draggable\n r.scroller.dragDrop&&r.scroller.dragDrop(),ni(r.wrapper.ownerDocument,\"mouseup\",o),ni(r.wrapper.ownerDocument,\"mousemove\",i),ni(r.scroller,\"dragstart\",s),ni(r.scroller,\"drop\",o),La(e),setTimeout(function(){return r.input.focus()},20)}", "_updateZOrder() {}", "function jb(){this.za=this.root=null;this.ea=!1;this.N=this.$=this.oa=this.assignedSlot=this.assignedNodes=this.S=null;this.childNodes=this.nextSibling=this.previousSibling=this.lastChild=this.firstChild=this.parentNode=this.V=void 0;this.Ea=this.ua=!1;this.Z={}}", "function zf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}", "function jQuery(arg1, arg2) {}", "function getElementClass(){if(typeof HTMLElement!=='function'){// case of Safari\nvar _BaseElement=function _BaseElement(){};_BaseElement.prototype=document.createElement('div');return _BaseElement;}else{return HTMLElement;}}", "get enableShadowDOM() {\n return JQX.EnableShadowDOM;\n }", "function ko() {\n // `window` is not always available, e.g. in ReactNative and WebWorkers.\n // eslint-disable-next-line no-restricted-globals\n return \"undefined\" != typeof window ? window : null;\n}", "function wg(a,b){var c;if(b){var d=this;c=function(a){var c=Ti.call(d,a);a=void 0===c?a:null===c?d.ob():c;b.call(d,a);return c}}else c=Ti;wg.Z.constructor.call(this,Ui,c);this.Ta(a||\"\")}", "function QT(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&\"function\"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}", "function ie(e,t){this.x=t,this.q=e}", "ready() {\n super.ready();\n\n const that = this;\n\n that._element = 'menu';\n that._edgeMacFF = JQX.Utilities.Core.Browser.Edge ||\n JQX.Utilities.Core.Browser.Firefox && navigator.platform.toLowerCase().indexOf('mac') !== -1;\n that._containers = [];\n that._containersInBody = [];\n that._openedContainers = [];\n that._containersFixedHeight = [];\n that._menuItemsGroupsToExpand = [];\n that._additionalScrollButtons = [];\n\n that._createElement();\n }", "function gotjQ(){try{var jq=!!jQuery}catch(err){var jq=!1}return jq}", "setupUselessElement() {\n this.uselessElement = this.document.createElement('div');\n }", "setupUselessElement() {\n this.uselessElement = this.document.createElement('div');\n }", "setupUselessElement() {\n this.uselessElement = this.document.createElement('div');\n }", "function zC(t,e,n,r,i,o,a,s){var l=(\"function\"===typeof n?n.options:n)||{};return l.__file=\"layer.vue\",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=r,l}", "setupUselessElement() {}", "function Utils() {}", "function Utils() {}", "function fly(el){\n if(!libFlyweight){\n libFlyweight = new Ext.Element.Flyweight();\n }\n libFlyweight.dom = el;\n return libFlyweight;\n}", "function bindEvents()\r\n{\r\n\tvar cssPropertiesArray = [\"accelerator\",\"azimuth\",\"background\",\"background-attachment\",\"background-color\",\"background-image\",\"background-position\",\"background-position-x\",\"background-position-y\",\"background-repeat\",\"behavior\",\"border\",\"border-bottom\",\"border-bottom-color\",\"border-bottom-style\",\"border-bottom-width\",\"border-collapse\",\"border-color\",\"border-left\",\"border-left-color\",\"border-left-style\",\"border-left-width\",\"border-right\",\"border-right-color\",\"border-right-style\",\"border-right-width\",\"border-spacing\",\"border-style\",\"border-top\",\"border-top-color\",\"border-top-style\",\"border-top-width\",\"border-width\",\"bottom\",\"caption-side\",\"clear\",\"clip\",\"color\",\"content\",\"counter-increment\",\"counter-reset\",\"cue\",\"cue-after\",\"cue-before\",\"cursor\",\"direction\",\"display\",\"elevation\",\"empty-cells\",\"filter\",\"float\",\"font\",\"font-family\",\"font-size\",\"font-size-adjust\",\"font-stretch\",\"font-style\",\"font-variant\",\"font-weight\",\"height\",\"ime-mode\",\"include-source\",\"layer-background-color\",\"layer-background-image\",\"layout-flow\",\"layout-grid\",\"layout-grid-char\",\"layout-grid-char-spacing\",\"layout-grid-line\",\"layout-grid-mode\",\"layout-grid-type\",\"left\",\"letter-spacing\",\"line-break\",\"line-height\",\"list-style\",\"list-style-image\",\"list-style-position\",\"list-style-type\",\"margin\",\"margin-bottom\",\"margin-left\",\"margin-right\",\"margin-top\",\"marker-offset\",\"marks\",\"max-height\",\"max-width\",\"min-height\",\"min-width\",\"-moz-binding\",\"-moz-border-radius\",\"-moz-border-radius-topleft\",\"-moz-border-radius-topright\",\"-moz-border-radius-bottomright\",\"-moz-border-radius-bottomleft\",\"-moz-border-top-colors\",\"-moz-border-right-colors\",\"-moz-border-bottom-colors\",\"-moz-border-left-colors\",\"-moz-opacity\",\"-moz-outline\",\"-moz-outline-color\",\"-moz-outline-style\",\"-moz-outline-width\",\"-moz-user-focus\",\"-moz-user-input\",\"-moz-user-modify\",\"-moz-user-select\",\"orphans\",\"outline\",\"outline-color\",\"outline-style\",\"outline-width\",\"overflow\",\"overflow-X\",\"overflow-Y\",\"padding\",\"padding-bottom\",\"padding-left\",\"padding-right\",\"padding-top\",\"page\",\"page-break-after\",\"page-break-before\",\"page-break-inside\",\"pause\",\"pause-after\",\"pause-before\",\"pitch\",\"pitch-range\",\"play-during\",\"position\",\"quotes\",\"-replace\",\"richness\",\"right\",\"ruby-align\",\"ruby-overhang\",\"ruby-position\",\"-set-link-source\",\"size\",\"speak\",\"speak-header\",\"speak-numeral\",\"speak-punctuation\",\"speech-rate\",\"stress\",\"scrollbar-arrow-color\",\"scrollbar-base-color\",\"scrollbar-dark-shadow-color\",\"scrollbar-face-color\",\"scrollbar-highlight-color\",\"scrollbar-shadow-color\",\"scrollbar-3d-light-color\",\"scrollbar-track-color\",\"table-layout\",\"text-align\",\"text-align-last\",\"text-decoration\",\"text-indent\",\"text-justify\",\"text-overflow\",\"text-shadow\",\"text-transform\",\"vtext-autospace\",\"text-kashida-space\",\"text-underline-position\",\"top\",\"unicode-bidi\",\"-use-link-source\",\"vertical-align\",\"visibility\",\"voice-family\",\"volume\",\"white-space\",\"widows\",\"width\",\"word-break\",\"word-spacing\",\"word-wrap\",\"writing-mode\",\"z-index\",\"zoom\"];\r\n\tvar completer = new Autocompleter.Local('cssPanel_Property', 'cssPanelPropertyAutosuggest', cssPropertiesArray, {});\r\n\t\t/*\r\n\t\tvar tag = $(\"cssPanel_Property\");\r\n\t\t//If it's a text tag, attach an AutoSuggest object.\r\n\t\tif(tag.type && tag.type.toLowerCase() == \"text\")\r\n\t\t{\r\n\t\t\tvar cssProperties = new Array(\"accelerator\",\"azimuth\",\"background\",\"background-attachment\",\"background-color\",\"background-image\",\"background-position\",\"background-position-x\",\"background-position-y\",\"background-repeat\",\"behavior\",\"border\",\"border-bottom\",\"border-bottom-color\",\"border-bottom-style\",\"border-bottom-width\",\"border-collapse\",\"border-color\",\"border-left\",\"border-left-color\",\"border-left-style\",\"border-left-width\",\"border-right\",\"border-right-color\",\"border-right-style\",\"border-right-width\",\"border-spacing\",\"border-style\",\"border-top\",\"border-top-color\",\"border-top-style\",\"border-top-width\",\"border-width\",\"bottom\",\"caption-side\",\"clear\",\"clip\",\"color\",\"content\",\"counter-increment\",\"counter-reset\",\"cue\",\"cue-after\",\"cue-before\",\"cursor\",\"direction\",\"display\",\"elevation\",\"empty-cells\",\"filter\",\"float\",\"font\",\"font-family\",\"font-size\",\"font-size-adjust\",\"font-stretch\",\"font-style\",\"font-variant\",\"font-weight\",\"height\",\"ime-mode\",\"include-source\",\"layer-background-color\",\"layer-background-image\",\"layout-flow\",\"layout-grid\",\"layout-grid-char\",\"layout-grid-char-spacing\",\"layout-grid-line\",\"layout-grid-mode\",\"layout-grid-type\",\"left\",\"letter-spacing\",\"line-break\",\"line-height\",\"list-style\",\"list-style-image\",\"list-style-position\",\"list-style-type\",\"margin\",\"margin-bottom\",\"margin-left\",\"margin-right\",\"margin-top\",\"marker-offset\",\"marks\",\"max-height\",\"max-width\",\"min-height\",\"min-width\",\"-moz-binding\",\"-moz-border-radius\",\"-moz-border-radius-topleft\",\"-moz-border-radius-topright\",\"-moz-border-radius-bottomright\",\"-moz-border-radius-bottomleft\",\"-moz-border-top-colors\",\"-moz-border-right-colors\",\"-moz-border-bottom-colors\",\"-moz-border-left-colors\",\"-moz-opacity\",\"-moz-outline\",\"-moz-outline-color\",\"-moz-outline-style\",\"-moz-outline-width\",\"-moz-user-focus\",\"-moz-user-input\",\"-moz-user-modify\",\"-moz-user-select\",\"orphans\",\"outline\",\"outline-color\",\"outline-style\",\"outline-width\",\"overflow\",\"overflow-X\",\"overflow-Y\",\"padding\",\"padding-bottom\",\"padding-left\",\"padding-right\",\"padding-top\",\"page\",\"page-break-after\",\"page-break-before\",\"page-break-inside\",\"pause\",\"pause-after\",\"pause-before\",\"pitch\",\"pitch-range\",\"play-during\",\"position\",\"quotes\",\"-replace\",\"richness\",\"right\",\"ruby-align\",\"ruby-overhang\",\"ruby-position\",\"-set-link-source\",\"size\",\"speak\",\"speak-header\",\"speak-numeral\",\"speak-punctuation\",\"speech-rate\",\"stress\",\"scrollbar-arrow-color\",\"scrollbar-base-color\",\"scrollbar-dark-shadow-color\",\"scrollbar-face-color\",\"scrollbar-highlight-color\",\"scrollbar-shadow-color\",\"scrollbar-3d-light-color\",\"scrollbar-track-color\",\"table-layout\",\"text-align\",\"text-align-last\",\"text-decoration\",\"text-indent\",\"text-justify\",\"text-overflow\",\"text-shadow\",\"text-transform\",\"vtext-autospace\",\"text-kashida-space\",\"text-underline-position\",\"top\",\"unicode-bidi\",\"-use-link-source\",\"vertical-align\",\"visibility\",\"voice-family\",\"volume\",\"white-space\",\"widows\",\"width\",\"word-break\",\"word-spacing\",\"word-wrap\",\"writing-mode\",\"z-index\",\"zoom\");\r\n\t\t\tnew AutoSuggest(tag,cssProperties);\r\n\t\t}*/\r\n\t\t\r\n}", "function DOMImplementation() {\n}", "function DOMImplementation() {\n}", "function initDragBoxPlugin(){\n(function ($) {\n var elmX, elmY, elmW, elmH, clickX, clickY, dx, dy;\n var cont;\n var wb\n var IS_IPAD = navigator.userAgent.match(/iPad/i) != null;\n var IS_IE8 = navigator.userAgent.match(/MSIE 8.0/i) != null;\n var IS_IE9 = navigator.userAgent.match(/MSIE 9.0/i) != null;\n var IS_IE = IS_IE8 || IS_IE9;\n var IS_ANDROID = navigator.userAgent.match(/Android/i) != null;\n var IS_KINDLE = navigator.userAgent.match(/Kindle/i) != null || navigator.userAgent.match(/Silk/i) != null;\n var IS_IPHONE = navigator.userAgent.match(/iPhone/i) != null;\n var IS_OPERA = navigator.userAgent.match(/Opera/i) != null;\n var isTouchEnabled = IS_IPAD || IS_ANDROID || IS_KINDLE || IS_IPHONE\n var IS_IOS = IS_IPAD || IS_IPHONE\n var getCanvasOffSet = function (scope) {\n var box = $(scope).get(0).getBoundingClientRect();\n var body = document.body;\n var docElem = document.documentElement;\n var scrollTop = window.pageYOffset || docElem.scrollTop || body.scrollTop;\n var scrollLeft = window.pageXOffset || docElem.scrollLeft || body.scrollLeft;\n var clientTop = docElem.clientTop || body.clientTop || 0;\n var clientLeft = docElem.clientLeft || body.clientLeft || 0;\n var top = box.top + scrollTop - clientTop;\n var left = box.left + scrollLeft - clientLeft;\n var offX = Math.round(left);\n var offY = Math.round(top);\n scope.data('offX', offX);\n scope.data('offY', offY);\n return {\n top: offY,\n left: offX\n }\n }\n var getCursorPos = function (e, scope) {\n getCanvasOffSet(scope);\n var offX = scope.data('offX');\n var offY = scope.data('offY');\n // console.log(offX + \"<>\" + offY)\n var ev = e ? e.originalEvent : window.event;\n var isTouchEnabled = ev.type.indexOf('touch') > -1;\n ev = isTouchEnabled ? ev.changedTouches[0] : ev;\n var cursor = {\n x: 0,\n y: 0\n };\n if (ev.pageX !== undefined) {\n cursor.x = ev.pageX - offX;\n cursor.y = ev.pageY - offY;\n\n } else {\n cursor.x = ev.clientX - offX;\n cursor.y = ev.clientY - offY;\n\n }\n return cursor;\n }\n $.fn.resizeBox = function (board) {\n wb = board\n cont = $(this);\n var elm = cont[0];\n cont.css('height', cont.find(\"[name='content']\").outerHeight() + \"px\");\n cont.css('width', cont.find(\"[name='content']\").outerWidth() + \"px\");\n cont.parent().parent().find(\"[name='done_btn']\").css({\n 'position': 'absolute',\n 'top': \"70px\"\n })\n /* var handles = ['tl', 'tm', 'tr',\n 'ml', 'mr', 'bl', 'bm', 'br'\n ]*/\n var handles = ['tl', 'tm', 'tr',\n 'ml', 'mr', 'bl', 'bm', 'br'\n ]\n var ev_onmouse = function (ev) {\n ev.preventDefault();\n wb.ib_drag = 'start';\n var click = getCursorPos(ev, cont.parent());\n clickX = click.x;\n clickY = click.y;\n elmX = parseFloat(cont.css(\"left\"));\n elmY = parseFloat(cont.css(\"top\"));\n elmW = parseFloat(cont.outerWidth());\n elmH = parseFloat(cont.outerHeight());\n var id = $(this).attr(\"id\").split(\"_\")[2];\n $(document).on('mousemove', {\n elm: $(this),\n id: id\n }, onMMHandler)\n $(document).on('mouseup', onMUHandler)\n }\n var ev_ontouch = function (ev) {\n ev.preventDefault();\n wb.ib_drag = 'start';\n var click = getCursorPos(ev, cont.parent());\n clickX = click.x;\n clickY = click.y;\n elmX = parseFloat(cont.css(\"left\"));\n elmY = parseFloat(cont.css(\"top\"));\n elmW = parseFloat(cont.outerWidth());\n elmH = parseFloat(cont.outerHeight());\n var id = $(this).attr(\"id\").split(\"_\")[2];\n $(document).on('touchmove', {\n elm: $(this),\n id: id\n }, onMMHandler)\n $(document).on('touchend', onMUHandler)\n }\n //alert(isTouchEnabled)\n for (var h = 0; h < handles.length; h++) {\n\n var hDiv = document.createElement('div');\n var hDiv_h = document.createElement('div');\n hDiv.className = 'dragresize' + ' ' + 'dragresize' + '-' + handles[h];\n hDiv_h.className = 'dragresize-hit' + ' ' + 'dragresize' + '-' + handles[h]+\"-hit\";\n $(hDiv).attr(\"id\", cont.attr('name') + \"_\" + handles[h]);\n $(hDiv_h).attr(\"id\", cont.attr('name') + \"_\" + handles[h]+\"_hit\");\n elm['_handle_' + handles[h]] = elm.appendChild(hDiv);\n elm['_handle_' + handles[h]+\"_hit\"] = elm.appendChild(hDiv_h);\n if (isTouchEnabled) {\n //alert(hDiv)\n $(hDiv_h).on('touchstart', function (ev) {\n // alert('D1')\n ev.preventDefault();\n wb.ib_drag = 'start';\n try {\n var click = getCursorPos(ev, cont.parent());\n } catch (e) {\n alert(e)\n }\n // alert('D2'+click)\n clickX = click.x;\n clickY = click.y;\n elmX = parseFloat(cont.css(\"left\"));\n elmY = parseFloat(cont.css(\"top\"));\n elmW = parseFloat(cont.outerWidth());\n elmH = parseFloat(cont.outerHeight());\n var id = $(this).attr(\"id\").split(\"_\")[2];\n // alert(id);\n $(document).on('touchmove', {\n elm: $(this),\n id: id\n }, onMMHandler)\n $(document).on('touchend', onMUHandler)\n })\n } else {\n $(hDiv_h).on('mousedown', function (ev) {\n ev.preventDefault();\n wb.ib_drag = 'start';\n var click = getCursorPos(ev, cont.parent());\n clickX = click.x;\n clickY = click.y;\n elmX = parseFloat(cont.css(\"left\"));\n elmY = parseFloat(cont.css(\"top\"));\n elmW = parseFloat(cont.outerWidth());\n elmH = parseFloat(cont.outerHeight());\n var id = $(this).attr(\"id\").split(\"_\")[2];\n // alert(id);\n $(document).on('mousemove', {\n elm: $(this),\n id: id\n }, onMMHandler)\n $(document).on('mouseup', onMUHandler)\n })\n }\n }\n\n\n return this;\n };\n\n function onMUHandler(ev) {\n ev.preventDefault();\n\n var click = getCursorPos(ev, cont.parent());\n dx = click.x - clickX;\n dy = click.y - clickY;\n if (Math.abs(dx) > 0 || Math.abs(dy) > 0) {\n wb.ib_drag = 'end';\n } else {\n wb.ib_drag = 'null';\n }\n if (isTouchEnabled) {\n $(document).off('touchmove', onMMHandler);\n $(document).off('touchend', onMUHandler);\n } else {\n $(document).off('mousemove', onMMHandler);\n $(document).off('mouseup', onMUHandler);\n }\n }\n\n function onMMHandler(ev) {\n ev.preventDefault();\n wb.ib_drag = 'drag';\n var elm = ev.data.elm;\n var id = ev.data.id;\n //var cont=$(\"#cont\");\n var click = getCursorPos(ev, cont.parent());\n dx = click.x - clickX;\n dy = click.y - clickY;\n var x, y, w, h;\n x = elmX;\n y = elmY;\n w = elmW;\n h = elmH;\n if (id == 'mr') {\n w = elmW + dx;\n if (w < 120) {\n w = 120\n }\n }\n if (id == 'br') {\n w = elmW + dx;\n h = elmH + dy;\n if (h < 40) {\n h = 40\n }\n if (w < 120) {\n w = 120\n }\n }\n if (id == 'bm') {\n h = elmH + dy;\n if (h < 40) {\n h = 40\n }\n }\n //\n if (id == 'tr') {\n w = elmW + dx;\n h = elmH - dy;\n y = elmY + dy;\n if (h < 40) {\n h = 40\n y = elmY + (elmH - h)\n }\n if (w < 120) {\n w = 120\n }\n }\n if (id == 'tm') {\n h = elmH - dy;\n y = elmY + dy;\n if (h < 40) {\n h = 40\n y = elmY + (elmH - h)\n }\n }\n if (id == 'bl') {\n w = elmW - dx;\n h = elmH + dy;\n x = elmX + dx;\n if (h < 40) {\n h = 40\n }\n if (w < 120) {\n w = 120\n x = elmX + (elmW - w)\n }\n }\n if (id == 'ml') {\n w = elmW - dx;\n x = elmX + dx;\n if (w < 120) {\n w = 120\n x = elmX + (elmW - w)\n }\n }\n if (id == 'tl') {\n //w = elmW - dx;\n // h = elmH - dy;\n x = elmX + dx;\n y = elmY + dy;\n if (h < 40) {\n h = 40\n y = elmY + (elmH - h)\n }\n if (w < 120) {\n w = 120\n x = elmX + (elmW - w)\n }\n }\n\n\n cont.css({\n 'left': x + 'px',\n 'top': y + 'px',\n 'width': w + 'px',\n 'height': h + 'px'\n })\n cont.find(\"[name='content']\").css({\n 'width': w + 'px',\n 'height': h + 'px'\n })\n cont.parent().parent().find(\"[name='done_btn']\").css({\n 'position': 'absolute',\n 'top': parseFloat(cont.css(\"top\")) + (h + 30) + 'px',\n 'left': parseFloat(cont.css(\"left\")) + 'px'\n })\n }\n}(jQuery));\n}", "function letsJQuery() {\r\n\tcreateOptionsMenu();\r\n\tpressthatButton();\r\n }", "function $(el){\n\tif (!el) return false;\n\tif (el._element_extended_ || [window, document].test(el)) return el;\n\tif ($type(el) == 'string') el = document.getElementById(el);\n\tif ($type(el) != 'element') return false;\n\tif (['object', 'embed'].test(el.tagName.toLowerCase()) || el.extend) return el;\n\tel._element_extended_ = true;\n\tGarbage.collect(el);\n\tel.extend = Object.extend;\n\tif (!(el.htmlElement)) el.extend(Element.prototype);\n\treturn el;\n}", "initDragAndDrop() {\n // treat body as drag and drop zone\n this.dndZone = document.getElementById('drag-and-drop');\n this.dndZone.addEventListener('dragover', this.onDragOver);\n this.dndZone.addEventListener(\"dragleave\", this.onDragLeave);\n this.dndZone.addEventListener('drop', this.onDragDrop);\n }", "function isInstance(a) {\n return a instanceof $ || ($['zepto'] && $['zepto']['isZ'](a));\n }", "function z(e,t){\n// Remove resize event listener on window\nreturn a(e).removeEventListener(\"resize\",t.updateBound),\n// Remove scroll event listener on scroll parents\nt.scrollParents.forEach(function(e){e.removeEventListener(\"scroll\",t.updateBound)}),\n// Reset state\nt.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}", "function P(a){return _.isWindow(a)?a:9===a.nodeType&&a.defaultView}", "function jqGetReady(callback) {\r\n\tif (typeof jQuery === 'undefined'){\r\n\t\tloadJSwCB(\"//code.jquery.com/jquery-1.12.4.min.js\", callback);\r\n\t\treturn;\r\n\t} else {\r\n\t\tsetTimeout(callback, 1);\r\n\t}\r\n}", "function isIE() {\n return Prototype.Browser.IE;\n}", "function Zn(t,e,n,r){var o,a=arguments.length,i=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(i=(a<3?o(i):a>3?o(e,n,i):o(e,n))||i);return a>3&&i&&Object.defineProperty(e,n,i),i}", "function letsJQuery() {\r\n//make sure there is no conflict between jQuery and other libraries\r\n$j = $.noConflict();\r\n//notify that jQuery is running...\r\n $j('<div>jQuery is running!</div>')\r\n .css({padding: '10px', background: '#ffc', position: 'absolute',top: '0', width: '100%'})\r\n .prependTo('body')\r\n .fadeIn('fast')\r\n .animate({opacity: 1.0}, 300)\r\n .fadeOut('fast', function() {\r\n $(this).remove();\r\n });\r\n//start custom jQuery scripting.\r\nmain();\r\n}", "function tb(e){var a=function(){if(\"undefined\"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(\"function\"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,f=bf(e);if(a){var c=bf(this).constructor;t=Reflect.construct(f,arguments,c)}else t=f.apply(this,arguments);return nf(this,t)}}", "function UI() {} //Created prototype from which we can re use all methods", "function defineDependencies() {\n define('jquery', [], function () { return root.jQuery; });\n define('ko', [], function () { return root.ko; });\n define('sammy', [], function () { return root.Sammy; });\n }", "ready() {\n super.ready();\n\n const that = this;\n\n that._flexWritingModeNoFullSupport = true; // !JQX.Utilities.Core.Browser.Chrome;\n that._arrowCodes = { top: '&#xe804', bottom: '&#xe801', left: '&#xe802', right: '&#xe803' };\n\n that._createElement();\n }", "function getContext(){\n if (usePortalForContext()) {\n return top.jQuery;\n }\n else {\n return jq;\n }\n}", "function DOMIFlasher()\n{\n this.init();\n}", "function t(e){function t(e){if(!A){if(!s.body)return r(t);for(A=!0;e=E.shift();)r(e)}}function n(e){(w||e.type===l||s[d]===u)&&(i(),t())}function i(){w?(s[y](m,n,c),e[y](l,n,c)):(s[p](v,n),e[p](h,n))}function r(e,t){setTimeout(e,+t>=0?t:1)}function o(e){A?r(e):E.push(e)}null==document.readyState&&document.addEventListener&&(document.addEventListener(\"DOMContentLoaded\",function x(){document.removeEventListener(\"DOMContentLoaded\",x,!1),document.readyState=\"complete\"},!1),document.readyState=\"loading\");var s=e.document,a=s.documentElement,l=\"load\",c=!1,h=\"on\"+l,u=\"complete\",d=\"readyState\",f=\"attachEvent\",p=\"detachEvent\",g=\"addEventListener\",m=\"DOMContentLoaded\",v=\"onreadystatechange\",y=\"removeEventListener\",w=g in s,b=c,A=c,E=[];if(s[d]===u)r(t);else if(w)s[g](m,n,c),e[g](l,n,c);else{s[f](v,n),e[f](h,n);try{b=null==e.frameElement&&a}catch(C){}b&&b.doScroll&&!function F(){if(!A){try{b.doScroll(\"left\")}catch(e){return r(F,50)}i(),t()}}()}return o.version=\"1.4.0\",o.isReady=function(){return A},o}", "function TMP(){}", "function TMP(){}", "function Zi(a,b){this.Ub=M(\"div\",\"blocklyToolboxDiv\");this.Ub.setAttribute(\"dir\",x?\"RTL\":\"LTR\");b.appendChild(this.Ub);this.ja=new gi;a.appendChild(this.ja.H());F(this.Ub,\"mousedown\",this,function(a){Lb(a)||a.target==this.Ub?ug(!1):ug(!0)})}" ]
[ "0.54452085", "0.5397458", "0.52313274", "0.5162148", "0.51133716", "0.5104136", "0.50951636", "0.50460666", "0.49960187", "0.4994283", "0.4949351", "0.49335945", "0.49236035", "0.49236035", "0.49055308", "0.48984432", "0.4881266", "0.48740616", "0.48456576", "0.4838046", "0.4838046", "0.4838046", "0.4838046", "0.48289663", "0.48284093", "0.48284093", "0.48284093", "0.4826953", "0.47948766", "0.4793687", "0.47908795", "0.47895315", "0.47743857", "0.4769474", "0.4757869", "0.47468454", "0.47356912", "0.47186852", "0.47053835", "0.47011057", "0.46984166", "0.46916747", "0.46898988", "0.46721202", "0.46712545", "0.46628317", "0.4659638", "0.4659638", "0.465499", "0.46458387", "0.4645715", "0.46343055", "0.46190035", "0.46162277", "0.46126178", "0.46070167", "0.45946544", "0.45739463", "0.4573363", "0.4563387", "0.4561576", "0.45579362", "0.45574516", "0.45571828", "0.4556424", "0.45519984", "0.4543937", "0.45427644", "0.4538899", "0.45346582", "0.45346582", "0.45346582", "0.45297137", "0.45223737", "0.4519533", "0.4519533", "0.45157295", "0.4513812", "0.4513374", "0.4513374", "0.45075995", "0.44967872", "0.4494539", "0.44943744", "0.44896945", "0.44869015", "0.44848648", "0.44845292", "0.44831362", "0.44760615", "0.44707823", "0.4463919", "0.44625604", "0.44615102", "0.44600964", "0.44584754", "0.44576734", "0.44565925", "0.44540024", "0.44540024", "0.445275" ]
0.0
-1
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (render) { options.render = render options.staticRenderFns = staticRenderFns options._compiled = true } // functional template if (functionalTemplate) { options.functional = true } // scopedId if (scopeId) { options._scopeId = 'data-v-' + scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = shadowMode ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } : injectStyles } if (hook) { if (options.functional) { // for template-only hot-reload because in that case the render fn doesn't // go through the normalizer options._injectStyles = hook // register for functioal component in vue file var originalRender = options.render options.render = function renderWithStyleInjection (h, context) { hook.call(context) return originalRender(h, context) } } else { // inject component registration as beforeCreate hook var existing = options.beforeCreate options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } } return { exports: scriptExports, options: options } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (ctx.isDev && ctx.isClient) {\n config.devtool = \"source-map\";\n // if (isDev && process.isClient) {\n config.plugins.push(\n new StylelintPlugin({\n files: [\"**/*.vue\", \"**/*.scss\"],\n })\n ),\n config.module.rules.push({\n enforce: \"pre\",\n test: /\\.(js|vue)$/,\n loader: \"eslint-loader\",\n exclude: /(node_modules)/,\n options: {\n formatter: require(\"eslint-friendly-formatter\"),\n },\n });\n if (ctx.isDev) {\n config.mode = \"development\";\n }\n }\n for (const rule of config.module.rules) {\n if (rule.use) {\n for (const use of rule.use) {\n if (use.loader === \"sass-loader\") {\n use.options = use.options || {};\n use.options.includePaths = [\n \"node_modules/foundation-sites/scss\",\n \"node_modules/motion-ui/src\",\n ];\n }\n }\n }\n }\n // vue-svg-inline-loader\n const vueRule = config.module.rules.find((rule) =>\n rule.test.test(\".vue\")\n );\n vueRule.use = [\n {\n loader: vueRule.loader,\n options: vueRule.options,\n },\n {\n loader: \"vue-svg-inline-loader\",\n },\n ];\n delete vueRule.loader;\n delete vueRule.options;\n }", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}" ]
[ "0.5847333", "0.57279235", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897" ]
0.0
-1
Checks whether given value has a then function.
function isThenable(wat) { // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access return Boolean(wat && wat.then && typeof wat.then === 'function'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _isThennable(value) {\n return (value != null) && (value === Object(value)) && value.then &&\n typeof value.then === 'function';\n }", "function getThen(value) {\n var t = typeof value;\n if (value && (t === 'object' || t === 'function')) {\n var then = value.then;\n if (typeof then === 'function') {\n return then;\n }\n }\n return null;\n }", "function isThenable(value) {\n return typeof value === 'object' && value !== null && typeof value.then === 'function';\n}", "function isThenable(obj) {\n var _then, obj_type = typeof obj;\n\n if (obj !== null &&\n (\n obj_type === \"object\" || obj_type === \"function\"\n )\n ) {\n _then = obj.then;\n }\n return typeof _then === \"function\" ? _then : false;\n }", "function isPromise(value) {\n return Boolean(value && typeof value.then === 'function');\n}", "function isPromise(value) {\n return value && value.then instanceof Function;\n}", "function isPromiseLike(value) {\r\n return !!value && typeof value.then === 'function';\r\n}", "function isPromise(value) {\n return typeof (value === null || value === void 0 ? void 0 : value.then) === 'function';\n}", "function isPromise(value) {\n return typeof (value === null || value === void 0 ? void 0 : value.then) === 'function';\n}", "function isPromise(value) {\n return typeof (value === null || value === void 0 ? void 0 : value.then) === 'function';\n}", "function isPromise(value) {\n return typeof (value === null || value === void 0 ? void 0 : value.then) === 'function';\n}", "is_function(value) {\n return typeof(value) === 'function';\n }", "function isThenable(obj) {\n return obj && typeof obj.then === 'function';\n}", "function isThenable (object) {\n const objectType = typeof object;\n const thenableType = objectType === 'object' || objectType === 'function';\n return thenableType && object !== null && typeof object.then === 'function'\n }", "function isThenable(p) {\n return p !== undefined && typeof p.then === 'function';\n}", "function isResolve(value) {\n\t\t\t\treturn isObject(value) && value.then && value.$$promises;\n\t\t\t}", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function dosth_hoisted(value){\n var test;\n\n if(value){\n console.log(\"value\");\n }\n\n console.log(\"finished execution\");\n}", "function isFunction (value) {\n return typeof value == 'function';\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isResolve(value) {\n return isObject(value) && value.then && value.$$promises;\n }", "function isFunction(val) {\n return isValue(val) && typeof val === 'function';\n}", "function isResolve(value) {\n\t return isObject(value) && value.then && value.$$promises;\n\t }", "function isResolve(value) {\n\t return isObject(value) && value.then && value.$$promises;\n\t }", "function hasValue(value) {\n return value !== undefined;\n}", "function is_event( value ) {\n\t\tif ( this._prev_value != null && value != this._prev_value ) {\n\t\t\tthis._prev_value = value;\n\t\t\tif ( _callback !== null ) {\n\t\t\t\t_callback();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpost(\"cb is null\" + \"\\n\");\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\tthis._prev_value = value;\n\t\t\treturn false;\n\t\t}\n\t}", "_checkValue(value) {\n if (!_.isFunction(value)) {\n throw new Error('functionsDict._checkValue: must provide only Function as values.');\n }\n }", "function isFunction(val) {\n return typeof val == \"function\";\n}", "function isPromise(value) {\n return !!value && typeof value.subscribe !== 'function' && typeof value.then === 'function';\n}", "function isFunction(value) {\n\treturn typeof value === 'function';\n}", "function isFunction(value) {\n\t return typeof value === \"function\";\n\t}", "function isFunction(value) {\n\t return typeof value === \"function\";\n\t}", "function isFunction (value) {\n\treturn typeof value === 'function';\n}", "function isFunction(value) {\n return typeof value === 'function';\n}", "function isFunction(value) {\n return typeof value === 'function';\n}", "function isScheduler(value) {\n return value && typeof value.schedule === 'function';\n}", "function isScheduler(value) {\n return value && typeof value.schedule === 'function';\n}", "function isFunction(value) {\n return typeof value === \"function\";\n}", "function isFunction(value) {\n return typeof value === \"function\";\n}", "function isFunction(value) {\n return typeof value === \"function\";\n}", "function isFunction(val) {\n return typeof val === 'function';\n}", "function isFunction(val) {\n return typeof val === 'function';\n}", "function isFunction(val) {\n return typeof val === 'function';\n}", "function isFunction(val) {\n return typeof val === 'function';\n}", "get hasFunction() {\n return validators_1.isFunction(this.handler);\n }", "function useless(test, then) {\n if (!test) then()\n}", "function isFunction(value) { return typeof value === \"function\" || value instanceof Function; }", "function isPromise(v) {\n return v && typeof v.then === 'function';\n}", "function isFn (x) { return typeof x === 'function' }", "function then(value) {\n done(null, value)\n }", "function then(value) {\n done(null, value)\n }", "function then(value) {\n done(null, value)\n }", "function then(value) {\n done(null, value)\n }", "function then(value) {\n done(null, value)\n }", "function then(value) {\n done(null, value)\n }", "function then(value) {\n done(null, value)\n }", "function then(value) {\n done(null, value)\n }", "function then(value) {\n done(null, value)\n }", "function then(value) {\n done(null, value);\n }", "function isTrapConditionFunction(item) {\n return typeof item === \"function\";\n}", "function isPromise(obj){// allow any Promise/A+ compliant thenable.\n// It's up to the caller to ensure that obj.then conforms to the spec\nreturn!!obj&&typeof obj.then==='function';}", "function checkValue(value){\n if (value === Function$1){\n value = safeFunction\n }\n return finalValue(value)\n }", "function isPromise(p: any) {\n return typeof p.then === 'function';\n}", "function isThenable(wat) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return Boolean(wat && wat.then && typeof wat.then === 'function');\n }", "function isThenable(wat) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return Boolean(wat && wat.then && typeof wat.then === 'function');\n}", "function isPromise(obj) {\n // allow any Promise/A+ compliant thenable.\n // It's up to the caller to ensure that obj.then conforms to the spec\n return !!obj && typeof obj.then === 'function';\n }", "function func(value) {\r\n return typeof value === RAW_FUNCTION;\r\n }", "get_isPresent()\n {\n return this.liveFunc._isPresent;\n }", "function isPromise(obj) {\n // allow any Promise/A+ compliant thenable.\n // It's up to the caller to ensure that obj.then conforms to the spec\n return !!obj && typeof obj.then === 'function';\n }", "has(name, fn) {\n return this.events.get(name).has(fn);\n }", "function isFunction(value) {\n return !!(value && {}.toString.call(value) == \"[object Function]\");\n}", "function isThenable(wat) {\n // tslint:disable:no-unsafe-any\n return Boolean(wat && wat.then && typeof wat.then === 'function');\n // tslint:enable:no-unsafe-any\n}", "function isThenable() {\n\t\t\t\t// When using an external Promise library the Promise.resolve may not be sufficient\n\t\t\t\t// to identify the object as a Promise.\n\t\t\t\treturn Promise.resolve(js_obj) === js_obj ||\n\t\t\t\t\t\t((typeof js_obj === \"object\" || typeof js_obj === \"function\") && typeof js_obj.then === \"function\")\n\t\t\t}", "function isThenable(wat) {\n\t // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n\t return Boolean(wat && wat.then && typeof wat.then === 'function');\n\t}", "function isPromise(obj) {\n // allow any Promise/A+ compliant thenable.\n // It's up to the caller to ensure that obj.then conforms to the spec\n return !!obj && typeof obj.then === 'function';\n}", "function isPromise(obj) {\n // allow any Promise/A+ compliant thenable.\n // It's up to the caller to ensure that obj.then conforms to the spec\n return !!obj && typeof obj.then === 'function';\n}", "function isPromise(obj) {\n // allow any Promise/A+ compliant thenable.\n // It's up to the caller to ensure that obj.then conforms to the spec\n return !!obj && typeof obj.then === 'function';\n}", "function isPromise(obj) {\n // allow any Promise/A+ compliant thenable.\n // It's up to the caller to ensure that obj.then conforms to the spec\n return !!obj && typeof obj.then === 'function';\n}", "function isPromise(obj) {\n // allow any Promise/A+ compliant thenable.\n // It's up to the caller to ensure that obj.then conforms to the spec\n return !!obj && typeof obj.then === 'function';\n}", "function isPromise(obj) {\n // allow any Promise/A+ compliant thenable.\n // It's up to the caller to ensure that obj.then conforms to the spec\n return !!obj && typeof obj.then === 'function';\n}" ]
[ "0.80465287", "0.67174774", "0.66543853", "0.63882905", "0.62898785", "0.61310995", "0.6061243", "0.5992452", "0.5992452", "0.5992452", "0.5992452", "0.5941137", "0.5904761", "0.58698785", "0.58390975", "0.5826621", "0.5774215", "0.5774215", "0.57626593", "0.5748154", "0.5741986", "0.5741986", "0.5741986", "0.5741986", "0.5741986", "0.5741986", "0.5741986", "0.5741986", "0.5741986", "0.5741986", "0.5741986", "0.5741986", "0.5741986", "0.5741986", "0.5741986", "0.5741986", "0.5741986", "0.5741986", "0.5741986", "0.5737596", "0.5721167", "0.5712223", "0.5712223", "0.56998724", "0.56957406", "0.56788826", "0.56652534", "0.56478643", "0.564582", "0.5616251", "0.5616251", "0.56153756", "0.56132245", "0.56096977", "0.56079257", "0.56079257", "0.5596994", "0.5596994", "0.5596994", "0.5581495", "0.5581495", "0.5581495", "0.5581495", "0.55800855", "0.5504434", "0.5477391", "0.54664516", "0.54422396", "0.5412556", "0.5412556", "0.5412556", "0.5412556", "0.5412556", "0.5412556", "0.5412556", "0.5412556", "0.5412556", "0.54011214", "0.5397172", "0.53878605", "0.5340062", "0.53369236", "0.5334978", "0.53328204", "0.53263754", "0.53169084", "0.53124446", "0.5312345", "0.53086925", "0.5297445", "0.52942955", "0.5283407", "0.52813655", "0.5267269", "0.5267269", "0.5267269", "0.5267269", "0.5267269", "0.5267269" ]
0.5370377
81
Wrap a given object method with a higherorder function
function fill(source, name, replacementFactory) { if (!(name in source)) { return; } var original = source[name]; var wrapped = replacementFactory(original); // Make sure it's a function first, as we need to attach an empty prototype for `defineProperties` to work // otherwise it'll throw "TypeError: Object.defineProperties called on non-object" if (typeof wrapped === 'function') { try { wrapped.prototype = wrapped.prototype || {}; Object.defineProperties(wrapped, { __sentry_original__: { enumerable: false, value: original, }, }); } catch (_Oo) { // This can throw if multiple fill happens on a global object like XMLHttpRequest // Fixes https://github.com/getsentry/sentry-javascript/issues/2043 } } source[name] = wrapped; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function methodize(func) {\n return function(y) {\n return func(this, y);\n };\n}", "function methodize(func) {\n return function(y) {\n return func(this, y);\n };\n}", "function wrap(object, method, wrapper) {\n // remembers original function so that we can later reference it via\n // a closure should we desire\n var fn = object[method];\n\n // wraps original function by creating a new function that calls\n // function passed as wrapper. within new function, wrapper function\n // is called with apply(), forcing function context to object and\n // passing as arguments to the orignal method(using bind()) to force\n // its function context to object and original arguments.\n return object[method] = function() {\n return wrapper.apply(this, [fn.bind(this)].concat(\n Array.prototype.slice.call(arguments)));\n };\n}", "function wrap(method, wrapper) {\n return function() {\n var args = $.makeArray(arguments);\n args.unshift($.proxy(method, this));\n return wrapper.apply(this, args);\n }\n }", "function around(obj, method, fn) {\n const old = obj[method];\n\n obj[method] = (...args) => {\n const newArgs = new Array(arguments.length);\n for (let i = 0; i < newArgs.length; i += 1) newArgs[i] = args[i];\n return fn.call(this, old, newArgs);\n };\n}", "function around(obj, method, fn) {\n var old = obj[method]\n\n obj[method] = function () {\n var args = new Array(arguments.length)\n for (var i = 0; i < args.length; i++) args[i] = arguments[i]\n return fn.call(this, old, args)\n }\n}", "function around (obj, method, fn) {\n var old = obj[method]\n \n obj[method] = function () {\n var args = new Array(arguments.length)\n for (var i = 0; i < args.length; i++) args[i] = arguments[i]\n return fn.call(this, old, args)\n }\n }", "function around(obj, method, fn) {\n var old = obj[method];\n\n obj[method] = function() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) args[i] = arguments[i];\n return fn.call(this, old, args);\n };\n}", "function proxify(obj, method, fn) {\n const oldMethod = obj[method];\n obj[method] = function(...args) {\n const result = oldMethod.apply(this, args);\n return fn(result);\n };\n}", "function proxy(obj,methodName){var method=obj[methodName];return function(){return method.apply(obj,arguments);};}", "function methodize(binary) {\n return function(y) {\n return binary(this, y);\n };\n}", "function createBoundedWrapper(object, method) {\n return function() {\n return method.apply(object, arguments);\n };\n}", "function wrap(method) {\n return function() {\n // cast any arguments into an array, since they're\n // natively objects\n var args = Array.prototype.slice.apply(arguments);\n // make the first argument the array itself\n args.unshift(this);\n // return the result of the ss method\n return ss[method].apply(ss, args);\n };\n }", "function wrap(method) {\n return function() {\n // cast any arguments into an array, since they're\n // natively objects\n var args = Array.prototype.slice.apply(arguments);\n // make the first argument the array itself\n args.unshift(this);\n // return the result of the ss method\n return ss[method].apply(ss, args);\n };\n }", "function wrap(method) {\n return function() {\n // cast any arguments into an array, since they're\n // natively objects\n var args = Array.prototype.slice.apply(arguments);\n // make the first argument the array itself\n args.unshift(this);\n // return the result of the ss method\n return ss[method].apply(ss, args);\n };\n }", "function wrap(method) {\n return function() {\n // cast any arguments into an array, since they're\n // natively objects\n var args = Array.prototype.slice.apply(arguments);\n // make the first argument the array itself\n args.unshift(this);\n // return the result of the ss method\n return ss[method].apply(ss, args);\n };\n }", "function demothodize(f) {\n return function(x, y) {\n return f.call(x, y);\n };\n}", "function subscribe (object, method, fn) {\n var original = object[method]\n object[method] = function () {\n var retval = original.apply(this, arguments)\n fn.apply(null, arguments)\n return retval\n }\n return function () {\n object[method] = original\n }\n}", "function proxy(obj, methodName) {\n\t\tvar method = obj[methodName];\n\n\t\treturn function() {\n\t\t\treturn method.apply(obj, arguments);\n\t\t};\n\t}", "function wrap_method(obj, key)\n {\n // add to return dict\n ret[key] = 0;\n\n // copy the old function\n obj[\"__coverage_\" + key] = obj[key];\n\n // create the wrapping function\n obj[key] = function()\n {\n // add counter\n ret[key]++;\n\n // call original function\n return obj[\"__coverage_\" + key].apply(this, arguments);\n }\n }", "function proxy(obj, methodName) {\n var method = obj[methodName];\n return function () {\n return method.apply(obj, arguments);\n };\n}", "function proxy(obj, methodName) {\n var method = obj[methodName];\n return function () {\n return method.apply(obj, arguments);\n };\n}", "function proxy(obj, methodName) {\n var method = obj[methodName];\n return function () {\n return method.apply(obj, arguments);\n };\n}", "function proxy(obj, methodName) {\n var method = obj[methodName];\n return function () {\n return method.apply(obj, arguments);\n };\n}", "function wrap(methodname) {\n return function() {\n return this._[methodname].apply(this._, arguments);\n };\n }", "function proxy(obj, methodName) {\n var method = obj[methodName];\n\n return function () {\n return method.apply(obj, arguments);\n };\n }", "function proxy(obj, methodName) {\n\tvar method = obj[methodName];\n\n\treturn function() {\n\t\treturn method.apply(obj, arguments);\n\t};\n}", "function proxy(obj, methodName) {\n\tvar method = obj[methodName];\n\n\treturn function() {\n\t\treturn method.apply(obj, arguments);\n\t};\n}", "function proxy(obj, methodName) {\n\tvar method = obj[methodName];\n\n\treturn function() {\n\t\treturn method.apply(obj, arguments);\n\t};\n}", "function proxy(obj, methodName) {\n\tvar method = obj[methodName];\n\n\treturn function() {\n\t\treturn method.apply(obj, arguments);\n\t};\n}", "function proxy(obj, methodName) {\n\tvar method = obj[methodName];\n\n\treturn function() {\n\t\treturn method.apply(obj, arguments);\n\t};\n}", "function proxy(obj, methodName) {\n\tvar method = obj[methodName];\n\n\treturn function() {\n\t\treturn method.apply(obj, arguments);\n\t};\n}", "function proxy(obj, methodName) {\n\tvar method = obj[methodName];\n\n\treturn function() {\n\t\treturn method.apply(obj, arguments);\n\t};\n}", "function proxy(obj, methodName) {\n\tvar method = obj[methodName];\n\n\treturn function() {\n\t\treturn method.apply(obj, arguments);\n\t};\n}", "function makeUnwrapping0ArgMethod(primitive) {\n return function builtin() {\n var vHandler = safeWeakMapGet(directProxies, this);\n if (vHandler !== undefined) {\n return builtin.call(vHandler.target);\n } else {\n return primitive.call(this);\n }\n }\n}", "function makeUnwrapping0ArgMethod(primitive) {\n return function builtin() {\n var vHandler = safeWeakMapGet(directProxies, this);\n if (vHandler !== undefined) {\n return builtin.call(vHandler.target);\n } else {\n return primitive.call(this);\n }\n }\n}", "function caml_js_wrap_meth_callback(f) {\n var toArray = Array.prototype.slice;\n return function () {\n var args = (arguments.length > 0)?toArray.call (arguments):[0];\n args.unshift (this);\n return caml_call_gen(f, args);\n }\n}", "function bind(toObject, methodName){\n return function(jsonResponse){toObject[methodName](jsonResponse)}\n}", "function makeUnwrapping1ArgMethod(primitive) {\n return function builtin(arg) {\n var vHandler = safeWeakMapGet(directProxies, this);\n if (vHandler !== undefined) {\n return builtin.call(vHandler.target, arg);\n } else {\n return primitive.call(this, arg);\n }\n }\n}", "function makeUnwrapping1ArgMethod(primitive) {\n return function builtin(arg) {\n var vHandler = safeWeakMapGet(directProxies, this);\n if (vHandler !== undefined) {\n return builtin.call(vHandler.target, arg);\n } else {\n return primitive.call(this, arg);\n }\n }\n}", "function method(object, name) {\n\treturn function() {\n\t\treturn object[name].apply(object, arguments);\n\t};\n}", "function demethodize(func) {\n return function(that, y) {\n return func.call(that, y)\n };\n}", "function demethodize(func) {\n return function(that, y) {\n return func.call(that, y);\n };\n}", "function wrap(fn) {\n return helpers.wrap(fn)();\n}", "function interceptMethod(obj, method, interceptor){\n\t//this catches both when it is undefined and when it's not a function\n\tif(typeof obj[method] != \"function\"){\n\t\treturn;\n\t}\n\tvar originalMethod = obj[method];\n\t//create a closure trapping originalMethod\n\tobj[method] = function(){\n\t\treturn interceptor.call(this, originalMethod, arguments);\n\t};\n}", "function wrap$1(fn) {\n\t return wrap$2(fn)();\n\t}", "function addMethod(object, name, fn) {\r\n var old = object[ name ];\r\n object[ name ] = function () {\r\n if (fn.length === arguments.length)\r\n return fn.apply(this, arguments);\r\n else if (typeof old === 'function')\r\n return old.apply(this, arguments);\r\n };\r\n }", "function wrap(fn) {\n return function(cb) { fn.call(null, cb.bind(null, null)); };\n }", "function aliasMethod(method) {\n return function () {\n return this[method].apply(this, arguments);\n };\n}", "function method(obj, name) {\n return function() {obj[name].apply(obj, arguments);};\n}", "function wrapAndReturn(methodname) {\n return function() {\n this._[methodname].apply(this._, arguments);\n return this;\n };\n }", "function wrap(func, wrapper) {\n return partial(wrapper, func);\n }", "function wrap(func, wrapper) {\n return partial(wrapper, func);\n }", "function wrap(func, wrapper) {\n return partial(wrapper, func);\n }", "function wrap(func, wrapper) {\n return partial(wrapper, func);\n }", "function wrap(func, wrapper) {\n return partial(wrapper, func);\n }", "function wrap(func, wrapper) {\n return partial(wrapper, func);\n }", "function wrap(func, wrapper) {\n return partial(wrapper, func);\n }", "function wrap(func, wrapper) {\n return partial(wrapper, func);\n }", "function wrap(func, wrapper) {\n return partial(wrapper, func);\n }", "function proxy ( context, method, callback ) {\n return function () {\n var args = [].slice.apply( arguments )\n\n // do something\n var newArgs = callback( args )\n\n // patch and run the original\n method.apply(\n context,\n newArgs\n )\n }\n}", "function bind (obj, method) {\n var fn = obj[method];\n obj[method] = function () {\n fn.apply(obj, arguments);\n };\n }", "function bind (obj, method) {\n var fn = obj[method];\n obj[method] = function () {\n fn.apply(obj, arguments);\n };\n }", "function bind (obj, method) {\n var fn = obj[method];\n obj[method] = function () {\n fn.apply(obj, arguments);\n };\n }", "function bind (obj, method) {\n var fn = obj[method];\n obj[method] = function () {\n fn.apply(obj, arguments);\n };\n }", "function curry(fn){\n var args = Array.prototype.slice.call(arguments,1);\n return function(){\n return fn.apply(this,args.concat(Array.prototype.slice.call(arguments,0)));\n }\n}", "static monkeyPatch(object, methodName, options, f) {\n const patchedFunction = new PatchedFunction(object, methodName);\n const patch = new Patch(patchedFunction, options, f);\n patchedFunction.addPatch(patch);\n return patch;\n }", "function bindFunc(obj, method, observer) {\n const oldFn = obj[method]\n obj[method] = function(target) {\n if (observer) {\n observer.call(this, target, {\n [method]: true,\n })\n }\n if (oldFn) {\n oldFn.call(this, target)\n }\n }\n}", "function wrapMethod(OriginalInstance, wrappedInstance, methodName) {\n wrappedInstance[methodName] = function () {\n return OriginalInstance[methodName].apply(wrappedInstance, arguments);\n };\n}", "function wrapMethod(OriginalInstance, wrappedInstance, methodName) {\n wrappedInstance[methodName] = function () {\n return OriginalInstance[methodName].apply(wrappedInstance, arguments);\n };\n}", "function wrap(fn) {\n return function wrapper() {\n var cb = arguments[arguments.length - 1]\n try {\n var result = fn.apply(\n null,\n Array.prototype.slice.call(arguments, 0, arguments.length - 1)\n )\n cb(null, result)\n } catch (e) {\n cb(e)\n }\n }\n }", "function methodOp(f) {\n\t\t return function() {\n\t\t if (this.curOp) { return f.apply(this, arguments) }\n\t\t startOperation(this);\n\t\t try { return f.apply(this, arguments) }\n\t\t finally { endOperation(this); }\n\t\t }\n\t\t }", "function wrap(fn, next) {\n return function () {\n fn(next);\n };\n}", "applyToMethod(methodName, ...middlewares) {\n const { target, store, methods, methodMiddlewares, methodIsValid } = this;\n if (methodIsValid(methodName)) {\n const method = methods[methodName] || target[methodName];\n if (isFunction(method)) {\n methods[methodName] = method;\n const validMiddlewares = middlewares\n .filter(isFunction)\n // .map(middleware => middleware(target, store));\n .map(middleware => middleware(store));\n const methodMiddleware = (methodMiddlewares[methodName] || []).concat(validMiddlewares);\n // Promise.all(methodMiddleware).then(r => console.log('solved', r));\n // console.log('applyToMethod', validMiddlewares, methodMiddleware);\n const composed = compose(...methodMiddleware);\n return target[methodName] = composed(method.bind(target));\n }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) { return f.apply(this, arguments) }\n startOperation(this);\n try { return f.apply(this, arguments) }\n finally { endOperation(this); }\n }\n }", "function wrapMethods (proto) {\n\t\tObject.keys(proto)\n\t\t\t.filter(function (prop) {\n\t\t\t\treturn typeof proto[prop] === 'function';\n\t\t\t})\n\t\t\t.forEach(function (method) {\n\t\t\t\tproto[method] = wrapFunction(proto[method]);\n\t\t\t});\n\t}", "function methodOp(f) {\n\t\t return function() {\n\t\t if (this.curOp) return f.apply(this, arguments);\n\t\t startOperation(this);\n\t\t try { return f.apply(this, arguments); }\n\t\t finally { endOperation(this); }\n\t\t };\n\t\t }", "function bind(method,context){return function(){return method.apply(context,arguments);};}", "function bind(method,context){return function(){return method.apply(context,arguments);};}", "function methodOp(f) {\n return function() {\n if (this.curOp) return f.apply(this, arguments);\n startOperation(this);\n try { return f.apply(this, arguments); }\n finally { endOperation(this); }\n };\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) return f.apply(this, arguments);\n startOperation(this);\n try { return f.apply(this, arguments); }\n finally { endOperation(this); }\n };\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) return f.apply(this, arguments);\n startOperation(this);\n try { return f.apply(this, arguments); }\n finally { endOperation(this); }\n };\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) return f.apply(this, arguments);\n startOperation(this);\n try { return f.apply(this, arguments); }\n finally { endOperation(this); }\n };\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) return f.apply(this, arguments);\n startOperation(this);\n try { return f.apply(this, arguments); }\n finally { endOperation(this); }\n };\n }", "function methodOp(f) {\n return function() {\n if (this.curOp) return f.apply(this, arguments);\n startOperation(this);\n try { return f.apply(this, arguments); }\n finally { endOperation(this); }\n };\n }" ]
[ "0.7118614", "0.7118614", "0.69643897", "0.6961941", "0.68753374", "0.68540996", "0.68257385", "0.676492", "0.6675088", "0.6642421", "0.6556523", "0.6324649", "0.62975204", "0.62975204", "0.62975204", "0.6265594", "0.6245071", "0.62206024", "0.62135124", "0.61943644", "0.6186695", "0.6186695", "0.6186695", "0.6186695", "0.61633813", "0.61322016", "0.61256677", "0.61256677", "0.61256677", "0.61256677", "0.61256677", "0.61256677", "0.61256677", "0.61256677", "0.60863996", "0.60863996", "0.6029516", "0.6024335", "0.6001022", "0.6001022", "0.59671324", "0.5965472", "0.59539837", "0.5920228", "0.5908098", "0.58843887", "0.5873898", "0.58508134", "0.58507895", "0.58045375", "0.576144", "0.57445735", "0.57445735", "0.57445735", "0.57445735", "0.57445735", "0.57445735", "0.57445735", "0.57445735", "0.57445735", "0.5729518", "0.5726671", "0.5726671", "0.5726671", "0.5726671", "0.57148635", "0.57146794", "0.5697523", "0.56735104", "0.56735104", "0.56625116", "0.5662484", "0.56613064", "0.56591254", "0.5629191", "0.5629191", "0.5629191", "0.5629191", "0.5629191", "0.5629191", "0.5629191", "0.5629191", "0.5629191", "0.5629191", "0.5629191", "0.5629191", "0.5629191", "0.5629191", "0.5629191", "0.5629191", "0.5629191", "0.56233215", "0.5599616", "0.5598243", "0.5598243", "0.5584336", "0.5584336", "0.5584336", "0.5584336", "0.5584336", "0.5584336" ]
0.0
-1
Encodes given object into urlfriendly format
function urlEncode(object) { return Object.keys(object) .map(function (key) { return encodeURIComponent(key) + "=" + encodeURIComponent(object[key]); }) .join('&'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function urlEncode(object) {\n\t return Object.keys(object)\n\t .map(key => `${encodeURIComponent(key)}=${encodeURIComponent(object[key])}`)\n\t .join('&');\n\t}", "function urlEncode(object) {\n return Object.keys(object)\n .map(key => `${encodeURIComponent(key)}=${encodeURIComponent(object[key])}`)\n .join('&');\n }", "function encode_params(obj)\n {\n return encodeURIComponent(base64.urlencode($.trim(obj)));\n }", "function uriEncodeParams( obj ){\n var pairs = [], key;\n for( key in obj ){\n pairs.push( uriEncodeString(key) +'='+ uriEncodeString(obj[key]) );\n }\n return pairs.join('&');\n}", "function _obj2uri(obj){\n\treturn Object.keys(obj).map(function(k) {\n\t\treturn encodeURIComponent(k) + \"=\" + encodeURIComponent(obj[k]);\n }).join('&'); swiper\n }", "function urlEncode(object) {\r\n return Object.keys(object).map(\r\n // tslint:disable-next-line:no-unsafe-any\r\n function (key) {\r\n return encodeURIComponent(key) + \"=\" + encodeURIComponent(object[key]);\r\n }).join('&');\r\n}", "function urlEncode(object) {\n return Object.keys(object)\n .map(\n // tslint:disable-next-line:no-unsafe-any\n function (key) { return encodeURIComponent(key) + \"=\" + encodeURIComponent(object[key]); })\n .join('&');\n}", "function urlEncode(object) {\n return Object.keys(object)\n .map(\n // tslint:disable-next-line:no-unsafe-any\n function (key) { return encodeURIComponent(key) + \"=\" + encodeURIComponent(object[key]); })\n .join('&');\n}", "function urlEncode(object) {\n return Object.keys(object)\n .map(key => `${encodeURIComponent(key)}=${encodeURIComponent(object[key])}`)\n .join('&');\n}", "_encodeObject(object) {\n switch (object.termType) {\n case 'Quad':\n return this._encodeQuad(object);\n case 'Literal':\n return this._encodeLiteral(object);\n default:\n return this._encodeIriOrBlank(object);\n }\n }", "function urlEncodeObject(obj) {\n let ret = {};\n for (const entry of Object.entries(obj)) {\n ret[encodeURIComponent(entry[0])] = encodeURIComponent(entry[1]);\n }\n return ret;\n}", "_encodeObject(object) {\n return object.termType === 'Literal' ? this._encodeLiteral(object) : this._encodeIriOrBlank(object);\n }", "function _formEncode(obj) {\n var jsonString = '';\n for (var key in obj) {\n if (jsonString.length !== 0) {\n jsonString += '&';\n }\n jsonString += key + '=' + $filter('json')(obj[key]);\n }\n return jsonString;\n }", "encodeAsString(obj) {\n // first is type\n let str = \"\" + obj.type;\n // attachments if we have them\n if (obj.type === PacketType.BINARY_EVENT ||\n obj.type === PacketType.BINARY_ACK) {\n str += obj.attachments + \"-\";\n }\n // if we have a namespace other than `/`\n // we append it followed by a comma `,`\n if (obj.nsp && \"/\" !== obj.nsp) {\n str += obj.nsp + \",\";\n }\n // immediately followed by the id\n if (null != obj.id) {\n str += obj.id;\n }\n // json data\n if (null != obj.data) {\n str += JSON.stringify(obj.data);\n }\n debug(\"encoded %j as %s\", obj, str);\n return str;\n }", "function encodeQueryComponents(obj) {\n if (Array.isArray(obj)) {\n obj = obj.map(function(item) {\n return encodeQueryComponents(item);\n });\n } else if (typeof(obj) === 'object') {\n Object.keys(obj).forEach(function(key) {\n obj[key] = encodeQueryComponents(obj[key]);\n });\n } else if (typeof(obj) === 'string') {\n //Return the encoded component (decode first for avoiding double encode)\n obj = encodeURIComponent(decodeURIComponent(obj));\n }\n return obj;\n }", "encodeAsString(obj) {\n // first is type\n let str = \"\" + obj.type;\n // attachments if we have them\n if (obj.type === PacketType.BINARY_EVENT ||\n obj.type === PacketType.BINARY_ACK) {\n str += obj.attachments + \"-\";\n }\n // if we have a namespace other than `/`\n // we append it followed by a comma `,`\n if (obj.nsp && \"/\" !== obj.nsp) {\n str += obj.nsp + \",\";\n }\n // immediately followed by the id\n if (null != obj.id) {\n str += obj.id;\n }\n // json data\n if (null != obj.data) {\n str += JSON.stringify(obj.data);\n }\n debug(\"encoded %j as %s\", obj, str);\n return str;\n }", "encodeAsString(obj) {\n // first is type\n let str = \"\" + obj.type;\n // attachments if we have them\n if (obj.type === PacketType.BINARY_EVENT ||\n obj.type === PacketType.BINARY_ACK) {\n str += obj.attachments + \"-\";\n }\n // if we have a namespace other than `/`\n // we append it followed by a comma `,`\n if (obj.nsp && \"/\" !== obj.nsp) {\n str += obj.nsp + \",\";\n }\n // immediately followed by the id\n if (null != obj.id) {\n str += obj.id;\n }\n // json data\n if (null != obj.data) {\n str += JSON.stringify(obj.data);\n }\n debug(\"encoded %j as %s\", obj, str);\n return str;\n }", "encodeAsString(obj) {\n // first is type\n let str = \"\" + obj.type; // attachments if we have them\n\n if (obj.type === PacketType.BINARY_EVENT || obj.type === PacketType.BINARY_ACK) {\n str += obj.attachments + \"-\";\n } // if we have a namespace other than `/`\n // we append it followed by a comma `,`\n\n\n if (obj.nsp && \"/\" !== obj.nsp) {\n str += obj.nsp + \",\";\n } // immediately followed by the id\n\n\n if (null != obj.id) {\n str += obj.id;\n } // json data\n\n\n if (null != obj.data) {\n str += JSON.stringify(obj.data);\n }\n\n debug(\"encoded %j as %s\", obj, str);\n return str;\n }", "encodeAsString(obj) {\n // first is type\n let str = \"\" + obj.type;\n // attachments if we have them\n if (obj.type === PacketType.BINARY_EVENT ||\n obj.type === PacketType.BINARY_ACK) {\n str += obj.attachments + \"-\";\n }\n // if we have a namespace other than `/`\n // we append it followed by a comma `,`\n if (obj.nsp && \"/\" !== obj.nsp) {\n str += obj.nsp + \",\";\n }\n // immediately followed by the id\n if (null != obj.id) {\n str += obj.id;\n }\n // json data\n if (null != obj.data) {\n str += JSON.stringify(obj.data, this.replacer);\n }\n return str;\n }", "function objectToURLParameters(obj) {\n var str = \"\";\n for (var key in obj) {\n if (str != \"\") {\n str += \"&\";\n }\n str += key + \"=\" + encodeURIComponent(obj[key]);\n }\n return str;\n }", "function objectToURLParameters(obj) {\n var str = \"\";\n for (var key in obj) {\n if (str != \"\") {\n str += \"&\";\n }\n str += key + \"=\" + encodeURIComponent(obj[key]);\n }\n return str;\n }", "function objectToURI(input) {\n let res = \"?\";\n const keys = Object.keys(input);\n keys.forEach((key, index) => {\n res += encodeURIComponent(key) + \"=\" + encodeURIComponent(input[key]);\n if (index + 1 != keys.length)\n res += \"&\";\n });\n return res;\n}", "function encodedURL(str){\n\t\t\treturn encodeURIComponent(input);\n\t\t\t\n\t\t}", "function transformRequest(obj) \r\n{\r\n var $res = [];\r\n for (var key in obj) {\r\n $res.push(key + '=' + encodeURIComponent(obj[key]));\r\n }\r\n return $res.join('&');\r\n}", "function encode(object) {\n return cbor.encode(exchangeKeys(object, true));\n}", "function serialize(obj) {\n\t var str = [];\n\t for(var p in obj) {\n\t if (obj.hasOwnProperty(p)) {\n\t str.push(encodeURIComponent(p) + '=' + encodeURIComponent(obj[p]));\n\t }\n\t }\n\t return str.join('&');\n\t }", "function UrlEncode(str) {\n return encodeURIComponent(str);\n}", "function encode (obj) {\n return Buffer.from(JSON.stringify(obj)).toString('base64');\n}", "function serializeData( data ) {\n\t\t\t// If this is not an object, defer to native stringification.\n\t\t\tif ( ! angular.isObject( data ) ) {\n\t\t\t\treturn( ( data == null ) ? \"\" : data.toString() );\n\t\t\t}\n\t\t\tvar buffer = [];\n\t\t\t// Serialize each key in the object.\n\t\t\tfor ( var name in data ) {\n\t\t\t\tif ( ! data.hasOwnProperty( name ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tvar value = data[ name ];\n\t\t\t\tbuffer.push(\n\t\t\t\t\tencodeURIComponent( name ) +\n\t\t\t\t\t\"=\" +\n\t\t\t\t\tencodeURIComponent( ( value == null ) ? \"\" : value )\n\t\t\t\t);\n\t\t\t}\n\t\t\t// Serialize the buffer and clean it up for transportation.\n\t\t\tvar source = buffer\n\t\t\t\t.join( \"&\" )\n\t\t\t\t.replace( /%20/g, \"+\" )\n\t\t\t;\n\t\t\treturn( source );\n\t\t}", "function convertirObjeto(obj){\n\t\tvar ret = '',\n\t\tkey, current = 0;\n\t\tfor (key in obj){\n\t\t\tret += ((current === 0 ? '' : '&') + key + '=' + encodeURIComponent(obj[key]) );\n\t\t\tcurrent++\n\t\t}\n\t\treturn ret;\n\t}", "function xwwwfurlenc(srcjson) {\n if (typeof srcjson !== \"object\")\n if (typeof console !== \"undefined\") {\n console.log(\"\\\"srcjson\\\" is not a JSON object\");\n return null;\n }\n u = encodeURIComponent;\n var urljson = \"\";\n var keys = Object.keys(srcjson);\n for (var i = 0; i < keys.length; i++) {\n urljson += u(keys[i]) + \"=\" + u(srcjson[keys[i]]);\n if (i < (keys.length - 1)) urljson += \"&\";\n }\n return urljson;\n}", "function encodeUrlParameters(aObj) {\n let kv = [];\n for (let [k, v] of entries(aObj)) {\n kv.push(k + \"=\" + encodeURIComponent(v));\n }\n return kv.join(\"&\");\n}", "function objectToPHPString(data) {\n var string = \"\";\n\n for (key in data) {\n var value = data[key];\n string += `${key}=${value}&`;\n }\n\n return string;\n }", "function serializeData( data ) {\n // If this is not an object, defer to native stringification.\n if ( ! angular.isObject( data ) ) {\n return( ( data == null ) ? \"\" : data.toString() );\n }\n var buffer = [];\n // Serialize each key in the object.\n for ( var name in data ) {\n if ( ! data.hasOwnProperty( name ) ) {\n continue;\n }\n var value = data[ name ];\n buffer.push(\n encodeURIComponent( name ) +\n \"=\" +\n encodeURIComponent( ( value == null ) ? \"\" : value )\n );\n }\n // Serialize the buffer and clean it up for transportation.\n var source = buffer\n .join( \"&\" )\n .replace( /%20/g, \"+\" )\n ;\n return( source );\n }", "formEncode(obj) {\n var str = []\n for (var p in obj) {\n str.push(encodeURIComponent(p) + \"=\" + encodeURIComponent(obj[p]))\n }\n return str.join(\"&\")\n }", "function uriEncodeString( text ){\n return encodeURIComponent(text).replace( /[\\!\\*\\'\\(\\)]/g, function( chr ){\n chr = chr.charCodeAt(0).toString(16);\n while( chr.length < 2 ){\n chr = '0'+hex;\n }\n return '%'+chr;\n } )\n}", "function serializeData( data ) {\n // If this is not an object, defer to native stringification.\n if ( ! angular.isObject( data ) ) {\n return( ( data == null ) ? \"\" : data.toString() );\n }\n var buffer = [];\n // Serialize each key in the object.\n for ( var name in data ) {\n if ( ! data.hasOwnProperty( name ) ) {\n continue;\n }\n var value = data[ name ];\n buffer.push(\n encodeURIComponent(name ) +\n \"=\" +\n encodeURIComponent( ( value == null ) ? \"\" : value )\n );\n }\n // Serialize the buffer and clean it up for transportation.\n var source = buffer\n .join( \"&\" )\n .replace( /%20/g, \"+\" )\n ;\n return( source );\n }", "function serializeData( data ) {\r\n // If this is not an object, defer to native stringification.\r\n if ( ! angular.isObject( data ) ) {\r\n return( ( data == null ) ? \"\" : data.toString() );\r\n }\r\n var buffer = [];\r\n // Serialize each key in the object.\r\n for ( var name in data ) {\r\n if ( ! data.hasOwnProperty( name ) ) {\r\n continue;\r\n }\r\n var value = data[ name ];\r\n buffer.push(\r\n encodeURIComponent( name ) +\r\n \"=\" +\r\n encodeURIComponent( ( value == null ) ? \"\" : value )\r\n );\r\n }\r\n // Serialize the buffer and clean it up for transportation.\r\n var source = buffer\r\n .join( \"&\" )\r\n .replace( /%20/g, \"+\" )\r\n ;\r\n return( source );\r\n }", "function serializeData( data ) {\n // If this is not an object, defer to native stringification.\n if ( ! angular.isObject( data ) ) {\n return( ( data == null ) ? \"\" : data.toString() );\n }\n var buffer = [];\n // Serialize each key in the object.\n for ( var name in data ) {\n if ( ! data.hasOwnProperty( name ) ) {\n continue;\n }\n var value = data[ name ];\n buffer.push(\n encodeURIComponent( name ) +\n \"=\" +\n encodeURIComponent( ( value == null ) ? \"\" : value )\n );\n }\n // Serialize the buffer and clean it up for transportation.\n var source = buffer\n .join( \"&\" )\n .replace( /%20/g, \"+\" )\n ;\n return( source );\n }", "function serializeData( data ) {\n // If this is not an object, defer to native stringification.\n if ( ! angular.isObject( data ) ) {\n return( ( data == null ) ? \"\" : data.toString() );\n }\n var buffer = [];\n // Serialize each key in the object.\n for ( var name in data ) {\n if ( ! data.hasOwnProperty( name ) ) {\n continue;\n }\n var value = data[ name ];\n buffer.push(\n encodeURIComponent( name ) +\n \"=\" +\n encodeURIComponent( ( value == null ) ? \"\" : value )\n );\n }\n // Serialize the buffer and clean it up for transportation.\n var source = buffer\n .join( \"&\" )\n .replace( /%20/g, \"+\" )\n ;\n return( source );\n }", "encode(obj) {\n logger_1.Logger.log.debug(\"JsonEncoder.encode: start.\");\n return JSON.stringify(obj);\n }", "encode(obj) {\n let encoder = new Encoder(this);\n encoder.encode(obj);\n return encoder.output();\n }", "function serializeData( data ) {\n\n // If this is not an object, defer to native stringification.\n if ( ! angular.isObject( data ) ) {\n\n return( ( data == null ) ? \"\" : data.toString() );\n\n }\n\n var buffer = [];\n\n // Serialize each key in the object.\n for ( var name in data ) {\n\n if ( ! data.hasOwnProperty( name ) ) {\n\n continue;\n\n }\n\n var value = data[ name ];\n\n buffer.push(\n encodeURIComponent( name ) +\n \"=\" +\n encodeURIComponent( ( value == null ) ? \"\" : value )\n );\n //buffer.push(name+\"=\" +( value == null ) ? \"\" : value );\n\n }\n\n // Serialize the buffer and clean it up for transportation.\n var source = buffer\n .join( \"&\" )\n .replace( /%20/g, \"+\" )\n ;\n\n return( source );\n\n }", "function serializeData( data ) {\n\n // If this is not an object, defer to native stringification.\n if ( ! angular.isObject( data ) ) {\n\n return( ( data == null ) ? \"\" : data.toString() );\n\n }\n\n var buffer = [];\n\n // Serialize each key in the object.\n for ( var name in data ) {\n\n if ( ! data.hasOwnProperty( name ) ) {\n\n continue;\n\n }\n\n var value = data[ name ];\n\n buffer.push(\n encodeURIComponent( name ) +\n \"=\" +\n encodeURIComponent( ( value == null ) ? \"\" : value )\n );\n //buffer.push(name+\"=\" +( value == null ) ? \"\" : value );\n\n }\n\n // Serialize the buffer and clean it up for transportation.\n var source = buffer\n .join( \"&\" )\n .replace( /%20/g, \"+\" )\n ;\n\n return( source );\n\n }", "function serialize(obj) {\n var str = [];\n for (var k in obj) {\n if (obj.hasOwnProperty(k)) {\n str.push(encodeURIComponent(k) + '=' + encodeURIComponent(obj[k]));\n }\n }\n return str.join(\"&\");\n }", "function JSON_to_URLEncoded(element,key,list){\n var list = list || [];\n if(typeof(element)=='object'){\n for (var idx in element)\n JSON_to_URLEncoded(element[idx],key?key+'['+idx+']':idx,list);\n } else {\n list.push(key+'='+encodeURIComponent(element));\n }\n return list.join('&');\n}", "function urlEncode() {\n utilitymanager_1.um.utilityManager({\n utilType: utilitymanager_1.um.TIXUtilityType.utTransform,\n sp: utilitymanager_1.um.TIXSelPolicy.Line,\n }, function (up) { return encodeURIComponent(up.intext); });\n }", "function serializeData( data ) {\n // If this is not an object, defer to native stringification.\n if ( ! angular.isObject( data ) ) {\n return( ( data == null ) ? '' : data.toString() );\n }\n var buffer = [];\n // Serialize each key in the object.\n for ( var name in data ) {\n if ( ! data.hasOwnProperty( name ) ) {\n continue;\n }\n var value = data[ name ];\n buffer.push(\n encodeURIComponent( name ) +\n \"=\" +\n encodeURIComponent( ( value == null ) ? '' : value )\n );\n }\n // Serialize the buffer and clean it up for transportation.\n var source = buffer\n .join( '&' )\n .replace( /%20/g, '+' )\n ;\n return( source );\n }", "_encode(ejson) {\n const ejsonString = EJSON.stringify(ejson);\n return encodeURIComponent(ejsonString);\n }", "function encodeUriString(s){return encodeURIComponent(s).replace(/%40/g,'@').replace(/%3A/gi,':').replace(/%24/g,'$').replace(/%2C/gi,',');}", "function encode(uri)\n{\nif (encodeURIComponent)\n{\nreturn encodeURIComponent(uri);\n}\nif (escape)\n{\nreturn escape(uri);\n}\n}", "stringify(object) {\n\t\tconst keys = Object.keys(object)\n\t\tconst values = Object.values(object)\n\t\treturn keys.map((key, i) => `&${key}=${values[i]}`).join('')\n\t}", "function urlencoded_serialize(pairs) {\n\t\t\t\t\tvar output = '', first = true;\n\t\t\t\t\tpairs.forEach(function (pair) {\n\t\t\t\t\t\tvar name = encodeURIComponent(pair.name);\n\t\t\t\t\t\tvar value = encodeURIComponent(pair.value);\n\t\t\t\t\t\tif (!first) output += '&';\n\t\t\t\t\t\toutput += name + '=' + value;\n\t\t\t\t\t\tfirst = false;\n\t\t\t\t\t});\n\t\t\t\t\treturn output.replace(/%20/g, '+');\n\t\t\t\t}", "function encode(string){\n\n}", "function serializeData(data) {\n // If this is not an object, defer to native stringification.\n if (!angular.isObject(data)) {\n return ( ( data == null ) ? \"\" : data.toString() );\n }\n var buffer = [];\n // Serialize each key in the object.\n for (var name in data) {\n if (!data.hasOwnProperty(name)) {\n continue;\n }\n var value = data[name];\n buffer.push(\n encodeURIComponent(name) +\n \"=\" +\n encodeURIComponent(( value == null ) ? \"\" : value)\n );\n }\n // Serialize the buffer and clean it up for transportation.\n var source = buffer\n .join(\"&\")\n //.replace(/%20/g, \"+\")\n ;\n return ( source );\n }", "function encode(data) {\n var regex1 = new RegExp(\" \", \"g\")\n var regex2 = new RegExp(\"/+\", \"g\")\n\n var content = encodeURIComponent(data)\n content = content.replace(regex1, \"%20\")\n content = content.replace(regex2, \"%2B\")\n\n var json = {}\n\n json.name = \"BeginToReason\"\n json.pkg = \"User\"\n json.project = \"Teaching_Project\"\n json.content = content\n json.parent = \"undefined\"\n json.type = \"f\"\n\n return JSON.stringify(json)\n}", "function urlEncode(str) {\n return str.replace(/\\?/g, '%3F').replace(/&/g, '%26').replace(/#/g, '%23').replace(/\\+/g, '%2B');\n}", "function encode(data) {\n return Object.keys(data)\n .map(key => encodeURIComponent(key) + '=' + encodeURIComponent(data[key]))\n .join('&')\n}", "function URLencode(str) {\n var re;\n\n /* ibiencodeURIComponent */\n str=escape(str);\n str=str.replace(/%u/g,'%25u').replace(/%([89A-F])/g,'%25u00$1');\n str=unescape(str);\n str=encodeURIComponent(str);\n re = new RegExp(\"'\",\"g\");\n str = str.replace(re,'%27');\n return str;\n}", "function URLencode(text)\n\t{\n\t\t//The escape() function encodes special characters, with the exception of: * @ - _ + . /\n\t\t//find *+-_/.@ and replace with equivalent url-encode value\n\t\tencodedString = escape(text).replace(/\\*/g,\"%2A\").replace(/\\+/g,\"%2B\")\n\t\t\t\t\t\t\t\t\t.replace(/-/g,\"%2D\").replace(/\\./g,\"%2E\")\n\t\t\t\t\t\t\t\t\t.replace(/\\//,\"%2F\").replace(/_/g,\"%5F\")\n\t\t\t\t\t\t\t\t\t.replace(/@/g,\"%40\");\n\n\t\treturn encodedString;\n\t}", "function urlencoded_serialize(pairs) {\n var output = '', first = true;\n pairs.forEach(function (pair) {\n var name = encodeURIComponent(pair.name);\n var value = encodeURIComponent(pair.value);\n if (!first) output += '&';\n output += name + '=' + value;\n first = false;\n });\n return output.replace(/%20/g, '+');\n }", "function urlencoded_serialize(pairs) {\n var output = '', first = true;\n pairs.forEach(function (pair) {\n var name = encodeURIComponent(pair.name);\n var value = encodeURIComponent(pair.value);\n if (!first) output += '&';\n output += name + '=' + value;\n first = false;\n });\n return output.replace(/%20/g, '+');\n }", "function rawurlencode(str) {\r\n\r\n str = (str + '').toString();\r\n return encodeURIComponent(str).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\\(/g, '%5B').replace(/\\)/g, '%5D').replace(/\\*/g, '%2A');\r\n}", "function url_encode(fromStr) {\n\tvar toStr = escape(fromStr);\n\treturn toStr;\n} // end url_encode", "function encode(data) {\n return Object.keys(data)\n .map(key => encodeURIComponent(key) + \"=\" + encodeURIComponent(data[key]))\n .join(\"&\");\n}", "function serialize(obj) {\n var str = [];\n for(var p in obj)\n if (obj.hasOwnProperty(p)) {\n str.push(encodeURIComponent(p) + \"=\" + encodeURIComponent(obj[p]));\n }\n return str.join(\"&\");\n}", "function fbmlQsString(obj, noencode) {\n // encode everything except special characters used in certain hash parameters:\n // \"/\" in map states, \":\", \",\", {\" and \"}\" in background\n function softEncode(s) {\n return encodeURIComponent(s).replace(/(%2F|%3A|%2C|%7B|%7D)/g, decodeURIComponent);\n }\n\n return Object.keys(obj).map(function(key) { // NO SORT\n return encodeURIComponent(key) + '=' + (\n noencode ? softEncode(obj[key]) : encodeURIComponent(obj[key]));\n }).join('&');\n }", "function encode(objectName) {\n\n let result = '';\n objectName.split('').forEach(function(letter) {\n if(encodings.has(letter)) {\n result += encodings.get(letter);\n } else {\n result += letter;\n }\n })\n return result;\n}", "function encode(object) {\n if (object === undefined) {\n return {\"%\": \"undefined\"};\n } else if (Object(object) !== object) {\n if (typeof object == \"number\") {\n if (object === Number.POSITIVE_INFINITY) {\n return {\"%\": \"+Infinity\"};\n } else if (object === Number.NEGATIVE_INFINITY) {\n return {\"%\": \"-Infinity\"};\n } else if (isNaN(object)) {\n return {\"%\": \"NaN\"};\n }\n }\n return object;\n } else if (Q.isPromise(object) || typeof object === \"function\") {\n var id = makeId();\n makeLocal(id);\n dispatchLocal(id, 'resolve', object);\n return {\"@\": id, \"type\": typeof object};\n } else if (Array.isArray(object)) {\n return object.map(encode);\n } else if (typeof object === \"object\") {\n var result = {};\n if (object instanceof Error) {\n result.message = object.message;\n result.stack = object.stack;\n }\n for (var key in object) {\n if (has.call(object, key)) {\n var newKey = key.replace(/[@!%\\\\]/, function ($0) {\n return \"\\\\\" + $0;\n });\n result[newKey] = encode(object[key]);\n }\n }\n return result;\n } else {\n return object;\n }\n }", "function encodeUriFragment(s){return encodeURI(s);}", "function urlEncode(str)\n{\n\tvar ms = \"%25#23 20?3F<3C>3E{7B}7D[5B]5D|7C^5E~7E`60\"\n\tvar msi = 0\n\tvar i,c,rs,ts\n\twhile (msi < ms.length)\n\t{\n\t\tc = ms.charAt(msi)\n\t\trs = ms.substring(++msi, msi +2)\n\t\tmsi += 2\n\t\ti = 0\n\t\twhile (true)\n\t\t{\n\t\t\ti = str.indexOf(c, i)\n\t\t\tif (i == -1) break\n\t\t\tts = str.substring(0, i)\n\t\t\tstr = ts+\"%\"+rs+str.substring(++i, str.length)\n\t\t}\n\t}\n\treturn str\n}", "function encode(toEncode) {\n\tvar result = null;\n\n\tvar type = typeof toEncode;\n\tif (type == 'object') {\n\t if ('list' in toEncode) {\n\t\tresult = encodeList(toEncode);\n\t }\n\t else {\n\t\tthrow new Error(\"Unsupported object\");\n\t }\n\t}\n\telse if (type == 'number') {\n\t result = encodeNumber(toEncode);\n\t}\n\telse {\n\t throw new Error(\"Unsupported type \" + type);\n\t}\n\treturn result;\n }", "function objectToQueryString(value) {\n return '?' + Object.keys(value).map(function (key) {\n return encodeURIComponent(key) + '=' + encodeURIComponent(String(value[key]));\n }).join('&');\n }", "function rdfproxy_query_encode(str) {\n str = (str + '').toString();\n\n // Tilde should be allowed unescaped in future versions of PHP (as reflected below), but if you want to reflect current\n // PHP behavior, you would need to add \".replace(/~/g, '%7E');\" to the following.\n return encodeURIComponent(str)\n .replace(/!/g, '%21')\n .replace(/'/g, '%27')\n .replace(/\\(/g, '%28')\n .replace(/\\)/g, '%29')\n .replace(/\\*/g, '%2A')\n .replace(/%20/g, '+');\n}", "function encodeURLEncodedBase64(value) {\n return encode(value)\n .replace(/\\+/g, '-')\n .replace(/\\//g, '_')\n .replace(/=/g, '');\n}", "function wikiFeetEncodeURI(uri) {\r\n let result = uri;\r\n //For somereason replace all does not work,\r\n // So im just gonna put it here so most cases if not all should be handled.\r\n result = result.replace('\\\\\\'', \"%27\")\r\n result = result.replace('\\\\\\'', \"%27\")\r\n result = result.replace('\\\\\\'', \"%27\")\r\n result = result.replace('\\\\\\'', \"%27\")\r\n result = result.replace('\\\\\\'', \"%27\")\r\n result = result.replace('\\\\\\'', \"%27\")\r\n result = result.replace('\\\\\\'', \"%27\")\r\n result = result.replace('\\\\\\'', \"%27\")\r\n\r\n return result;\r\n\r\n // return encodeURI(result);\r\n\r\n}", "function encodeUriString(s) {\n return encodeURIComponent(s).replace(/%40/g, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',');\n }", "function stateToUri(obj){\n // Set values to sync to URI\n var valuesToSync = ['text', 'fonts', 'openType', 'textAlign', 'zoom']\n\n // Initialize URI string\n uriStr = '?'\n\n for (var i = 0; i < valuesToSync.length; i++) {\n var key = valuesToSync[i]\n var value = gazeState[key]\n\n // Remove whitespaces\n value = value.replace(/, /g, \",\")\n value = encodeURI(value)\n\n // fix '#'' url problem\n value = value.replace(/#/g, \"%23\")\n\n // Build URI\n uriStr += key + '='\n uriStr += value\n uriStr += '&'\n };\n\n // Lazy remove last ampersand\n uriStr = uriStr.slice(0, -1)\n\n return uriStr\n}", "function xl_Encode( uri ) {\n\tif (encodeURIComponent) {\n\t\treturn encodeURIComponent(uri);\n\t}\n\t\n\tif (escape) {\n\t\treturn escape(uri);\n\t}\n}", "static stringURI(uriobj) {\nvar res;\nres = uriobj.path;\nif (uriobj != null ? uriobj.authority : void 0) {\nres = \"//\" + uriobj.authority + res;\n}\nif (uriobj != null ? uriobj.scheme : void 0) {\nres = uriobj.scheme + \":\" + res;\n}\nif (uriobj.query != null) {\nres += \"?\" + uriobj.query;\n}\nreturn res;\n}", "function serializeQSObject(obj) {\n var str = [];\n for (var p in obj) {\n if (obj[p] == \"\") continue;\n if (Array.isArray(obj[p]) && obj[p].length < 1) continue;\n if (obj.hasOwnProperty(p)) {\n str.push(encodeURIComponent(p) + \"=\" + encodeURIComponent(obj[p]));\n }\n }\n\n return str.join(\"&\").replaceAll(\"%2C\", \",\");\n}", "function objToQueryString(obj){\n\tvar str = \"?\";\n\tfor(key of Object.keys(obj)){\n\t\tstr += key+ \"=\"+ obj[key]+ \"&\";\n\t}\n\treturn str.substring(0,str.length - 1);\n}", "function url_encode(str) {\r\n var hex_chars = \"0123456789ABCDEF\";\r\n var noEncode = /^([a-zA-Z0-9\\_\\-\\.])$/;\r\n var n, strCode, hex1, hex2, strEncode = \"\";\r\n\r\n for(n = 0; n < str.length; n++) {\r\n if (noEncode.test(str.charAt(n))) {\r\n strEncode += str.charAt(n);\r\n } else {\r\n\t strCode = str.charCodeAt(n);\r\n\t hex1 = hex_chars.charAt(Math.floor(strCode / 16));\r\n\t hex2 = hex_chars.charAt(strCode % 16);\r\n\t strEncode += \"%\" + (hex1 + hex2);\r\n\t }\r\n\t}\r\n\treturn strEncode;\r\n}", "function obj2query ( obj ) {\n var list = [];\n for( var key in obj ) {\n var k = encodeURIComponent(key);\n var v = encodeURIComponent(obj[key]);\n list[list.length] = k+'='+v;\n }\n var query = list.join( '&' );\n return query;\n}", "static objectToQueryString(object) {\n return Object.values(object).map(x => \"'\" + x + \"'\").join(',');\n }", "function __encodeURIComponentForReadable(_string)\n\t\t{\n\t\t\t//\tnone\n\t\t\tif (_string == '') { return 'none'; }\n\t\t\t\n\t\t\t//\tencode\n\t\t\treturn encodeURIComponent(_string)\n\t\t\t\t.replace(/!/g, '%21')\n\t\t\t\t.replace(/'/g, '%27')\n\t\t\t\t.replace(/\\(/g, '%28')\n\t\t\t\t.replace(/\\)/g, '%29')\n\t\t\t\t.replace(/\\*/g, '%2A')\n\t\t\t;\n\t\t}", "function __encodeURIComponentForReadable(_string)\n\t\t{\n\t\t\t//\tnone\n\t\t\tif (_string == '') { return 'none'; }\n\t\t\t\n\t\t\t//\tencode\n\t\t\treturn encodeURIComponent(_string)\n\t\t\t\t.replace(/!/g, '%21')\n\t\t\t\t.replace(/'/g, '%27')\n\t\t\t\t.replace(/\\(/g, '%28')\n\t\t\t\t.replace(/\\)/g, '%29')\n\t\t\t\t.replace(/\\*/g, '%2A')\n\t\t\t;\n\t\t}", "function __encodeURIComponentForReadable(_string)\n\t\t{\n\t\t\t//\tnone\n\t\t\tif (_string == '') { return 'none'; }\n\t\t\t\n\t\t\t//\tencode\n\t\t\treturn encodeURIComponent(_string)\n\t\t\t\t.replace(/!/g, '%21')\n\t\t\t\t.replace(/'/g, '%27')\n\t\t\t\t.replace(/\\(/g, '%28')\n\t\t\t\t.replace(/\\)/g, '%29')\n\t\t\t\t.replace(/\\*/g, '%2A')\n\t\t\t;\n\t\t}", "function __encodeURIComponentForReadable(_string)\n\t\t{\n\t\t\t//\tnone\n\t\t\tif (_string == '') { return 'none'; }\n\t\t\t\n\t\t\t//\tencode\n\t\t\treturn encodeURIComponent(_string)\n\t\t\t\t.replace(/!/g, '%21')\n\t\t\t\t.replace(/'/g, '%27')\n\t\t\t\t.replace(/\\(/g, '%28')\n\t\t\t\t.replace(/\\)/g, '%29')\n\t\t\t\t.replace(/\\*/g, '%2A')\n\t\t\t;\n\t\t}", "function base64url_encode(str) {\n var utf8str = unescape(encodeURIComponent(str))\n return base64_encode_data(utf8str, utf8str.length, b64u)\n }", "function UrlEncode(sStr) {\r\n return escape(sStr).\r\n replace(/\\+/g, '%2B').\r\n replace(/\\\"/g,'%22').\r\n replace(/\\'/g, '%27').\r\n replace(/\\//g,'%2F');\r\n}", "function encode(uri) {\n \n var prefix,\n protocolCode,\n encoded;\n\n // check each protocol, unless we've found a match\n // \"urn:\" is the one exception where we need to keep checking\n // slice so we don't check \"\"\n protocols.slice(1).forEach(function(protocol) { \n if ((!prefix || prefix === \"urn:\") && uri.indexOf(protocol) === 0) { \n prefix = protocol;\n }\n });\n\n if (!prefix) {\n prefix = \"\";\n }\n \n encoded = util.stringToBytes(uri.slice(prefix.length));\n protocolCode = protocols.indexOf(prefix); \n // prepend protocol code\n encoded.unshift(protocolCode);\n \n return encoded; \n}", "function serializeQSObject(obj) {\n var str = [];\n for (var p in obj) {\n if (obj[p] == \"\") continue;\n if (Array.isArray(obj[p]) && obj[p].length < 1) continue;\n if (obj.hasOwnProperty(p)) {\n str.push(encodeURIComponent(p) + \"=\" + encodeURIComponent(obj[p]));\n }\n }\n\n return str.join(\"&\").replaceAll(\"%2C\", \",\");\n}", "function encodeUriString(s) {\n return encodeURIComponent(s)\n .replace(/%40/g, '@')\n .replace(/%3A/gi, ':')\n .replace(/%24/g, '$')\n .replace(/%2C/gi, ',');\n}", "function encodeUriString(s) {\n return encodeURIComponent(s)\n .replace(/%40/g, '@')\n .replace(/%3A/gi, ':')\n .replace(/%24/g, '$')\n .replace(/%2C/gi, ',');\n}", "function encodeUriString(s) {\n return encodeURIComponent(s)\n .replace(/%40/g, '@')\n .replace(/%3A/gi, ':')\n .replace(/%24/g, '$')\n .replace(/%2C/gi, ',');\n}", "function encodeUriString(s) {\n return encodeURIComponent(s)\n .replace(/%40/g, '@')\n .replace(/%3A/gi, ':')\n .replace(/%24/g, '$')\n .replace(/%2C/gi, ',');\n}", "function encodeUriString(s) {\n return encodeURIComponent(s)\n .replace(/%40/g, '@')\n .replace(/%3A/gi, ':')\n .replace(/%24/g, '$')\n .replace(/%2C/gi, ',');\n}", "function encodeUriString(s) {\n return encodeURIComponent(s)\n .replace(/%40/g, '@')\n .replace(/%3A/gi, ':')\n .replace(/%24/g, '$')\n .replace(/%2C/gi, ',');\n}" ]
[ "0.7075348", "0.69900453", "0.6940979", "0.69122267", "0.69057965", "0.68956923", "0.6877793", "0.6877793", "0.6849789", "0.67005026", "0.66411144", "0.65580183", "0.6543892", "0.653108", "0.6506763", "0.64945924", "0.64945924", "0.6492153", "0.64404225", "0.6425823", "0.6425823", "0.6368968", "0.62523335", "0.62232536", "0.61922103", "0.6181467", "0.61807394", "0.6157245", "0.6152577", "0.61373734", "0.6089661", "0.608539", "0.607061", "0.6069845", "0.6067519", "0.6067032", "0.6053362", "0.6051725", "0.604488", "0.6036943", "0.60335565", "0.6030194", "0.6010524", "0.6010524", "0.6007239", "0.5993271", "0.5989573", "0.5978595", "0.5949311", "0.5947971", "0.59353614", "0.5925971", "0.5868904", "0.5866844", "0.58642846", "0.5863123", "0.5858296", "0.5854492", "0.58476365", "0.5825053", "0.58133155", "0.58133155", "0.58129233", "0.5799286", "0.57992625", "0.5794171", "0.5786276", "0.57852745", "0.5782194", "0.578192", "0.57684314", "0.5757638", "0.5743822", "0.5740032", "0.5736513", "0.5727905", "0.5727081", "0.57090175", "0.56899", "0.5681263", "0.56792223", "0.56787276", "0.56748", "0.56656384", "0.56583333", "0.5646759", "0.5646759", "0.5646759", "0.5646759", "0.56442624", "0.5636294", "0.5634811", "0.56342804", "0.5602337", "0.5602337", "0.5602337", "0.5602337", "0.5602337", "0.5602337" ]
0.6817048
10
Transforms any object into an object literal with all its attributes attached to it.
function getWalkSource(value) { if (Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isError */ "d"])(value)) { var error = value; var err = { message: error.message, name: error.name, stack: error.stack, }; for (var i in error) { if (Object.prototype.hasOwnProperty.call(error, i)) { err[i] = error[i]; } } return err; } if (Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isEvent */ "f"])(value)) { var event_1 = value; var source = {}; source.type = event_1.type; // Accessing event.target can throw (see getsentry/raven-js#838, #768) try { source.target = Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isElement */ "c"])(event_1.target) ? Object(_browser__WEBPACK_IMPORTED_MODULE_1__[/* htmlTreeAsString */ "a"])(event_1.target) : Object.prototype.toString.call(event_1.target); } catch (_oO) { source.target = '<unknown>'; } try { source.currentTarget = Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isElement */ "c"])(event_1.currentTarget) ? Object(_browser__WEBPACK_IMPORTED_MODULE_1__[/* htmlTreeAsString */ "a"])(event_1.currentTarget) : Object.prototype.toString.call(event_1.currentTarget); } catch (_oO) { source.currentTarget = '<unknown>'; } if (typeof CustomEvent !== 'undefined' && Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isInstanceOf */ "g"])(value, CustomEvent)) { source.detail = event_1.detail; } for (var i in event_1) { if (Object.prototype.hasOwnProperty.call(event_1, i)) { source[i] = event_1; } } return source; } return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "objd(obj) {\n\n return toObject(obj);\n }", "static create(object) {\n let type = getType(object);\n let result;\n\n // this object has objectify?\n if (Objectify.hasObjectify(object)) {\n result = object.objectify();\n\n } else {\n // nope, we can force to get the public properties then:\n result = JSON.parse(JSON.stringify(object));\n }\n\n result._otype = type;\n\n return result;\n }", "toObject () {\n return Object.assign(Object.create({}), this)\n }", "static assign(object, attributes) {\n return Object.assign({ __proto__: Object.getPrototypeOf(object) }, object, attributes);\n }", "function Obj(){ return Literal.apply(this,arguments) }", "function toObject(Ye){if(null==Ye)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(Ye)}", "function toObject(a){if(null==a)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(a)}", "function pyobject2jsobject(obj) {\n if(isinstance(obj,dict)){\n var temp = new Object()\n temp.__class__ = 'dict'\n for(var i=0;i<obj.$keys.length;i++){temp[obj.$keys[i]]=obj.$values[i]}\n return temp\n }\n\n // giving up, just return original object\n return obj\n}", "function objToObj(obj) {\n\t\tlet result = \"\";\n\n\t\tfor (let key in obj) {\n\t\t\tresult = result + obj[key];\n\t\t}\n\n\t\treturn {all: result};\n\t}", "function instantiatePlainObject() {\n return {};\n }", "function clonePlainObject(obj) {\n return $.extend(true, {}, obj);\n }", "function flatClone(obj) {\n return Object.assign({}, obj);\n}", "function standardiseObject(obj) {\n return JSON.parse(JSON.stringify(obj));\n}", "function Object(){}", "function Object(){}", "function object(o) {\n\treturn Object.create(o);\n}", "function instantiatePlainObject() {\n\t return {};\n\t }", "function instantiatePlainObject() {\n\t return {};\n\t }", "function instantiatePlainObject() {\n\t return {};\n\t }", "function clone(object) { return JSON.parse(JSON.stringify(object))}", "function obj(objec){\nreturn objec;\n}", "function va(t){if(null==t)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(t)}", "function convertHookData(obj) {\n let hook = {};\n if (Array.isArray(obj)) {\n hook = { all: obj };\n }\n else if (typeof obj !== 'object') {\n hook = { all: [obj] };\n }\n else {\n each(obj, function (value, key) {\n hook[key] = !Array.isArray(value) ? [value] : value;\n });\n }\n return hook;\n}", "function d(o) {\n var rv = {};\n for (var k in o) {\n var i = o[k];\n switch (typeof i) {\n case \"object\":\n if (i != null) {\n rv[k] = \"[...]\";\n } else {\n rv[k] = null;\n }\n break;\n\n case \"function\":\n continue;\n\n default:\n rv[k] = i;\n break;\n }\n }\n return rv;\n }", "function objectify(wat) {\n let objectified;\n switch (true) {\n case wat === undefined || wat === null:\n objectified = new String(wat);\n break;\n\n // Though symbols and bigints do have wrapper classes (`Symbol` and `BigInt`, respectively), for whatever reason\n // those classes don't have constructors which can be used with the `new` keyword. We therefore need to cast each as\n // an object in order to wrap it.\n case typeof wat === 'symbol' || typeof wat === 'bigint':\n objectified = Object(wat);\n break;\n\n // this will catch the remaining primitives: `String`, `Number`, and `Boolean`\n case is.isPrimitive(wat):\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n objectified = new (wat ).constructor(wat);\n break;\n\n // by process of elimination, at this point we know that `wat` must already be an object\n default:\n objectified = wat;\n break;\n }\n return objectified;\n}", "function shallow(obj) {\n if(typeof obj === 'undefined' || obj === null) return null;\n if(obj instanceof String || typeof obj === 'string') return obj.toString();\n else if(obj instanceof Number || typeof obj === 'number') return Number(obj.toString());\n else if(obj instanceof Boolean || typeof obj === 'boolean') return eval('(' + obj.toString() + ')');\n else if(obj instanceof Function || typeof obj === 'function') return eval('(' + obj.toString() +')');\n else if(obj instanceof RegExp) return eval(obj.toString());\n else if(Array.isArray(obj)) {\n var res = [];\n obj.forEach(function(o) { res.push(shallow(o)); });\n return res;\n } else {\n var result = {};\n for(var prop in obj) if(obj.hasOwnProperty(prop)) {\n result[prop] = shallow(obj[prop]);\n }\n return result;\n }\n}", "function Object() {}", "function Object() {}", "function objectify(wat) {\n var objectified;\n switch (true) {\n case wat === undefined || wat === null:\n objectified = new String(wat);\n break;\n // Though symbols and bigints do have wrapper classes (`Symbol` and `BigInt`, respectively), for whatever reason\n // those classes don't have constructors which can be used with the `new` keyword. We therefore need to cast each as\n // an object in order to wrap it.\n case typeof wat === 'symbol' || typeof wat === 'bigint':\n objectified = Object(wat);\n break;\n // this will catch the remaining primitives: `String`, `Number`, and `Boolean`\n case is_1.isPrimitive(wat):\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n objectified = new wat.constructor(wat);\n break;\n // by process of elimination, at this point we know that `wat` must already be an object\n default:\n objectified = wat;\n break;\n }\n return objectified;\n}", "function makeImmutableObject(obj) {\n\t if (!globalConfig.use_static) {\n\t addPropertyTo(obj, \"merge\", merge);\n\t addPropertyTo(obj, \"replace\", objectReplace);\n\t addPropertyTo(obj, \"without\", without);\n\t addPropertyTo(obj, \"asMutable\", asMutableObject);\n\t addPropertyTo(obj, \"set\", objectSet);\n\t addPropertyTo(obj, \"setIn\", objectSetIn);\n\t addPropertyTo(obj, \"update\", update);\n\t addPropertyTo(obj, \"updateIn\", updateIn);\n\t addPropertyTo(obj, \"getIn\", getIn);\n\t }\n\n\t return makeImmutable(obj, mutatingObjectMethods);\n\t }", "function makeImmutableObject(obj) {\n\t if (!globalConfig.use_static) {\n\t addPropertyTo(obj, \"merge\", merge);\n\t addPropertyTo(obj, \"replace\", objectReplace);\n\t addPropertyTo(obj, \"without\", without);\n\t addPropertyTo(obj, \"asMutable\", asMutableObject);\n\t addPropertyTo(obj, \"set\", objectSet);\n\t addPropertyTo(obj, \"setIn\", objectSetIn);\n\t addPropertyTo(obj, \"update\", update);\n\t addPropertyTo(obj, \"updateIn\", updateIn);\n\t addPropertyTo(obj, \"getIn\", getIn);\n\t }\n\n\t return makeImmutable(obj, mutatingObjectMethods);\n\t }", "function an(e){if(null==e)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(e)}", "function toObject(x) {\n return x == null ? Object.create (null) : Object (x);\n }", "transform(obj, json) {\n delete json._id;\n delete json.__v;\n return json;\n }", "transform(obj, json) {\n delete json._id;\n delete json.__v;\n return json;\n }", "function prepareForStringify(obj) {\n if (isObject(obj) && getClass(obj) != \"[object Object]\") {\n if (obj.type == undefined)\n obj.type = obj.constructor.name;\n for (var entry in obj) {\n prepareForStringify(obj[entry]);\n }\n }\n else if (isArray(obj)) {\n for (var entry in obj) {\n prepareForStringify(obj[entry]);\n }\n }\n return obj;\n}", "function constructObject (value) {\n return {'Type': OBJECT,\n 'Value': value};\n}", "_dehydrateArg(arg) {\n if (typeof arg === \"string\") {\n return ({\n type: \"string\",\n value: String(arg)\n });\n } else if (typeof arg === \"function\") {\n // store a pointer to the function in the function lib\n let functionPointerName = \"f@\" + this._functionPointerCounter;\n this._functionPointerCounter++;\n this._functionPointerLib.put(functionPointerName, arg);\n return ({\n type: \"function\",\n name: functionPointerName\n });\n } else if (typeof arg === \"number\") {\n return ({\n type: \"number\",\n value: arg\n });\n } else if (typeof arg === \"boolean\") {\n return ({\n type: \"boolean\",\n value: arg\n })\n } else if (typeof arg === \"object\") {\n\n if (arg.constructor.name === \"Array\") {\n let argDef = {\n type: \"array\",\n elements: [],\n };\n\n arg.forEach(element => {\n argDef.elements.push(this._dehydrateArg(element));\n });\n\n return argDef;\n } else {\n let argDef = {\n type: \"object\",\n properties: {},\n };\n\n for (let prop in arg) {\n if (arg.hasOwnProperty(prop)) {\n argDef.properties[prop] = this._dehydrateArg(arg[prop]);\n }\n }\n\n return argDef;\n }\n\n // return ({\n // type: \"json\",\n // value: JSON.stringify(arg)\n // })\n } else {\n throw new Error(\"Unsupported argument type for arg: \" + arg)\n }\n }", "function makeImmutableObject(obj) {\n\t if (!globalConfig.use_static) {\n\t addPropertyTo(obj, \"merge\", merge);\n\t addPropertyTo(obj, \"replace\", objectReplace);\n\t addPropertyTo(obj, \"without\", without);\n\t addPropertyTo(obj, \"asMutable\", asMutableObject);\n\t addPropertyTo(obj, \"set\", objectSet);\n\t addPropertyTo(obj, \"setIn\", objectSetIn);\n\t addPropertyTo(obj, \"update\", update);\n\t addPropertyTo(obj, \"updateIn\", updateIn);\n\t addPropertyTo(obj, \"getIn\", getIn);\n\t }\n\t\n\t return makeImmutable(obj, mutatingObjectMethods);\n\t }", "function ct(t){if(null==t)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(t)}", "function flattern(obj){\n var x = {};\n _.each(obj, function(a,b) {\n x[(_.isArray(obj)) ? a : b] = true;\n });\n return x;\n }", "function toObject(arg) {\n if (arg === null) throw new TypeError('Cannot convert null or undefined to object');\n\n if ((typeof arg === 'undefined' ? 'undefined' : babelHelpers$1['typeof'](arg)) === 'object') return arg;\n return Object(arg);\n}", "function toObject(arg) {\n if (arg === null) throw new TypeError('Cannot convert null or undefined to object');\n\n if ((typeof arg === 'undefined' ? 'undefined' : babelHelpers$1['typeof'](arg)) === 'object') return arg;\n return Object(arg);\n}", "function toObject(arg) {\n if (arg === null) throw new TypeError('Cannot convert null or undefined to object');\n\n if ((typeof arg === 'undefined' ? 'undefined' : babelHelpers$1['typeof'](arg)) === 'object') return arg;\n return Object(arg);\n}", "function toObject(arg) {\n if (arg === null) throw new TypeError('Cannot convert null or undefined to object');\n\n if ((typeof arg === 'undefined' ? 'undefined' : babelHelpers$1['typeof'](arg)) === 'object') return arg;\n return Object(arg);\n}", "function toObject(arg) {\n if (arg === null) throw new TypeError('Cannot convert null or undefined to object');\n\n if ((typeof arg === 'undefined' ? 'undefined' : babelHelpers$1['typeof'](arg)) === 'object') return arg;\n return Object(arg);\n}", "function toObject(arg) {\n if (arg === null) throw new TypeError('Cannot convert null or undefined to object');\n\n if ((typeof arg === 'undefined' ? 'undefined' : babelHelpers$1['typeof'](arg)) === 'object') return arg;\n return Object(arg);\n}", "function mangleObject(obj_type, obj)\n{\n return obj;\n}", "function plainObject(obj) {\n if (obj == undefined) {\n return \"undefined\";\n }\n if (typeof obj == \"string\" || obj instanceof String) {\n return \"\\\"\" + obj.replace(/\\\\/g, \"\\\\\\\\\").replace(/\\n/g, \"\\\\n\")\n .replace(/\\r/g, \"\\\\r\").replace(/\\\"/g, \"\\\\\\\"\")\n + \"\\\"\";\n }\n if (obj instanceof Function) {\n return \"\" + obj;\n }\n if (obj instanceof Array) {\n return \"[\" + arrayMap(obj, plainObject).join(\",\") + \"]\";\n }\n if (obj instanceof Object) {\n var os = [];\n for (var name in obj) {\n os.push(plainObject(name) + \":\" + plainObject(obj[name]));\n }\n return \"{\" + os.join(\",\") + \"}\";\n }\n return \"\" + obj;\n}", "function normalize(obj) {\n const {_id, ...res} = obj;\n return res;\n}", "function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}", "function makeImmutableObject(obj) {\n if (!globalConfig.use_static) {\n addPropertyTo(obj, \"merge\", merge);\n addPropertyTo(obj, \"replace\", objectReplace);\n addPropertyTo(obj, \"without\", without);\n addPropertyTo(obj, \"asMutable\", asMutableObject);\n addPropertyTo(obj, \"set\", objectSet);\n addPropertyTo(obj, \"setIn\", objectSetIn);\n addPropertyTo(obj, \"update\", update);\n addPropertyTo(obj, \"updateIn\", updateIn);\n addPropertyTo(obj, \"getIn\", getIn);\n }\n\n return makeImmutable(obj, mutatingObjectMethods);\n }", "objectify(key,value){\n \t return {\n [key]: value\n }\n }", "function funcify(obj) {\n var type = typeof obj;\n if (type === \"object\") {\n var funcified = {}, foo = {};\n for (var prop in obj) {\n funcified[prop] = funcify(obj[prop]);\n foo[prop] = true;\n }\n return funcified;\n } else if (type === \"function\") {\n return obj;\n } else {\n return function () { return obj; };\n }\n}", "function toObject() {\n return Object.clone(this._object);\n }", "function unwrapFunctions(obj){\n\t\tvar res = {};\n\t\tfor(var p in obj){\n\t\t\tvar tp = typeof(obj[p]); \n\t\t\tif(tp == 'function'){\n\t\t\t\tres[p] = obj[p]();\n\t\t\t}else if(tp == 'object'){\n\t\t\t\tvar un = obj[p]; \n\t\t\t\tif(obj[p] && obj[p]['toJSON']){\n\t\t\t\t\tun = obj[p]['toJSON']();\n\t\t\t\t}\n\t\t\t\tres[p] = unwrapFunctions(un);\n\t\t\t}else{\n\t\t\t\tres[p] = obj[p];\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "function prep(obj) {\n\t\tif (obj.__c) {\n\t\t\t// object is entity\n\t\t\tvar data = { c: [], attr: {} };\n\t\t\tobj.trigger(\"SaveData\", data, prep);\n\t\t\tfor (var i in obj.__c) {\n\t\t\t\tdata.c.push(i);\n\t\t\t}\n\t\t\tdata.c = data.c.join(', ');\n\t\t\tobj = data;\n\t\t}\n\t\telse if (typeof obj == 'object') {\n\t\t\t// recurse and look for entities\n\t\t\tfor (var prop in obj) {\n\t\t\t\tobj[prop] = prep(obj[prop]);\n\t\t\t}\n\t\t}\n\t\treturn obj;\n\t}", "function clone (obj) {\n // return JSON.parse(JSON.stringify(obj))\n return Object.assign({}, obj)\n}", "function _object(obj) {\n var stringifiers = this;\n var keys = Object.keys(obj);\n var objArray = [];\n for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {\n var key = keys_1[_i];\n var val = obj[key];\n var valT = typeGuess_1.guessType(val);\n objArray.push(key + ':' + stringifiers[valT](val));\n }\n return '{' + objArray.toString() + '}';\n}", "function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}", "function parseObject(obj){\n\t var ret = { base: {} };\n\n\t forEach(objectKeys(obj), function(name){\n\t merge(ret, name, obj[name]);\n\t });\n\n\t return compact(ret.base);\n\t}", "function parseObject(obj){\n\t var ret = { base: {} };\n\n\t forEach(objectKeys(obj), function(name){\n\t merge(ret, name, obj[name]);\n\t });\n\n\t return compact(ret.base);\n\t}", "function BasicObject() {}", "static iextend(obj) {\n // eslint-disable-next-line prefer-rest-params\n each(slice.call(arguments, 1), function (source) {\n for (let prop in source) {\n if ({}.hasOwnProperty.call(source, prop)) {\n obj[prop] = source[prop];\n }\n }\n });\n return obj;\n }", "function copy(obj) {\n if (!isJSONContainer(obj)) {\n fail('cajita.copy(obj) applies only to JSON Containers: ',\n debugReference(obj));\n }\n var result = isArray(obj) ? [] : {};\n forOwnKeys(obj, markFuncFreeze(function(k, v) {\n result[k] = v;\n }));\n return result;\n }", "function clone(obj) { \n\n return JSON.parse(JSON.stringify(obj));\n}", "function makeObj() {\n return {\n propA: 10,\n propB: 20,\n };\n}", "function manipulationBareObj( value ) {\n\treturn value;\n}", "function clone(object){\n return JSON.parse(JSON.stringify(object));\n}", "function initialize(object) {\n this._object = Object.isHash(object) ? object.toObject() : Object.clone(object);\n }", "function initialize(object) {\n this._object = Object.isHash(object) ? object.toObject() : Object.clone(object);\n }", "function copy(obj) {\n return JSON.parse(JSON.stringify(obj))\n}", "static initialize(obj, id, value) { \n obj['id'] = id;\n obj['value'] = value;\n }", "function copy(obj) {\n return JSON.parse(JSON.stringify(obj));\n}", "function coercePrimitiveToObject(obj) {\n if(isPrimitiveType(obj)) {\n obj = object(obj);\n }\n if(noKeysInStringObjects && isString(obj)) {\n forceStringCoercion(obj);\n }\n return obj;\n }", "function BasicObject(){}", "function BasicObject(){}", "fromObj(noodle, obj, noodleExp = noodle.expr.defaultNoodle(noodle, obj)) {\n return noodle.expr.new(\n noodle, //noodle\n function (noodle, obj) { //func\n return obj;\n },\n [],\n obj, //ans\n noodleExp, //noodleExp\n noodle.expr.done //state\n );\n }", "function transformToMget(obj) {\n\t return { _id: obj.id, _type: obj.type };\n\t }", "function clone(obj) {\n return JSON.parse(JSON.stringify(obj));\n}", "function clone(obj) {\n return JSON.parse(JSON.stringify(obj));\n }", "function t(e){if(null==e)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(e)}", "function t(e){if(null==e)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(e)}", "static getRawObject(data) {\n if (data && typeof data.toObject === 'function') {\n return data.toObject();\n }\n return data;\n }", "function copy(obj)\n {\n return JSON.parse(JSON.stringify(obj));\n }", "toJSON() {\n let obj = { type: this.type.name };\n for (let _ in this.attrs) {\n obj.attrs = this.attrs;\n break;\n }\n return obj;\n }", "function getRegularTypeOfObjectLiteral(type) {\n if (!(type.flags & 16777216 /* FreshObjectLiteral */)) {\n return type;\n }\n var regularType = type.regularType;\n if (regularType) {\n return regularType;\n }\n var resolved = type;\n var members = transformTypeOfMembers(type, getRegularTypeOfObjectLiteral);\n var regularNew = createAnonymousType(resolved.symbol, members, resolved.callSignatures, resolved.constructSignatures, resolved.stringIndexInfo, resolved.numberIndexInfo);\n regularNew.flags = resolved.flags & ~16777216 /* FreshObjectLiteral */;\n type.regularType = regularNew;\n return regularNew;\n }", "function clone(obj) {\n return JSON.parse(JSON.stringify(obj));\n}", "function clone(obj) {\n return JSON.parse(JSON.stringify(obj));\n}", "function parseObject(obj){\r\n\t var ret = { base: {} };\r\n\t\r\n\t forEach(objectKeys(obj), function(name){\r\n\t merge(ret, name, obj[name]);\r\n\t });\r\n\t\r\n\t return compact(ret.base);\r\n\t}", "function obj() {\n return Object.create(null);\n}", "function mapObject(obj, fn) {\n return Object.fromEntries(Object.entries(obj).map(fn));\n}", "function createObjectCoercer(Structs) {\n const knowns = Object.keys(Structs);\n return value => {\n if (typeof value !== 'object' || value == null) {\n return value;\n }\n\n const ret = {};\n const unknowns = new Set(Object.keys(value));\n\n for (const key of knowns) {\n unknowns.delete(key);\n const Value = Structs[key];\n const v = value[key];\n ret[key] = coerce(v, Value);\n }\n\n for (const key of unknowns) {\n ret[key] = value[key];\n }\n\n return ret;\n };\n}", "function createObjectCoercer(Structs) {\n const knowns = Object.keys(Structs);\n return value => {\n if (typeof value !== 'object' || value == null) {\n return value;\n }\n\n const ret = {};\n const unknowns = new Set(Object.keys(value));\n\n for (const key of knowns) {\n unknowns.delete(key);\n const Value = Structs[key];\n const v = value[key];\n ret[key] = coerce(v, Value);\n }\n\n for (const key of unknowns) {\n ret[key] = value[key];\n }\n\n return ret;\n };\n}", "function clone(obj) {\n return JSON.parse(JSON.stringify(obj))\n}", "function copy(obj) {\n return JSON.parse(JSON.stringify(obj)); // deep copy but not methods, and not some other data structures\n}", "function spread(o) { return { ...o }; }", "function clone(obj) {\n return JSON.parse(JSON.stringify(obj));\n}", "function clone(obj) {\n return JSON.parse(JSON.stringify(obj));\n}", "function parseObject(obj){\n var ret = { base: {} };\n\n forEach(objectKeys(obj), function(name){\n merge(ret, name, obj[name]);\n });\n\n return compact(ret.base);\n}", "function clone(obj){\n\treturn JSON.parse( JSON.stringify( obj ) );\n}" ]
[ "0.63033193", "0.6186111", "0.6181688", "0.6178447", "0.6162323", "0.6153746", "0.6097385", "0.6076546", "0.60002905", "0.59292245", "0.5837002", "0.5768401", "0.5759092", "0.57580835", "0.57580835", "0.57333976", "0.56712276", "0.56712276", "0.56712276", "0.56547177", "0.56334955", "0.56317043", "0.56172127", "0.55956054", "0.5593418", "0.55549735", "0.55494535", "0.55494535", "0.5546546", "0.55299854", "0.55299854", "0.55233383", "0.55224544", "0.55186194", "0.55186194", "0.55002296", "0.5495589", "0.549186", "0.549072", "0.5468877", "0.54636", "0.54620534", "0.54620534", "0.54620534", "0.54620534", "0.54620534", "0.54620534", "0.5460644", "0.54604864", "0.54480803", "0.5444658", "0.54388857", "0.5433309", "0.5431498", "0.54240763", "0.5422747", "0.54226273", "0.5422237", "0.54098815", "0.5374526", "0.5358716", "0.5358716", "0.5345127", "0.5340266", "0.5331733", "0.5331584", "0.53281885", "0.53221405", "0.53213197", "0.53204477", "0.53204477", "0.530606", "0.53043246", "0.53030413", "0.52987355", "0.5295783", "0.5295783", "0.5290648", "0.52884436", "0.5285645", "0.52838284", "0.52809644", "0.52809644", "0.52807975", "0.52792317", "0.5277267", "0.52750003", "0.52657866", "0.52657866", "0.52622", "0.52615535", "0.52525693", "0.52521735", "0.52521735", "0.5250507", "0.52476096", "0.52376366", "0.5234407", "0.5234407", "0.5225048", "0.52177024" ]
0.0
-1
Calculates bytes size of input string
function utf8Length(value) { // eslint-disable-next-line no-bitwise return ~-encodeURI(value).split(/%..|./).length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function byteLength(string) {\n var length = 0 | 0;\n Array.prototype.forEach.call(string, function(chr) {\n var code = chr.charCodeAt(0);\n length += (code < 0x80) ? 1 : (code < 0x800) ? 2 : 3;\n });\n return length;\n}", "function sc_stringLength(s) { return s.length; }", "function stringByteLength(str) {\n if (useNodeBuffer) {\n return Buffer.byteLength(str);\n }\n return new Blob([str]).size;\n}", "function stringByteLength(str) {\n if (useNodeBuffer) {\n return Buffer.byteLength(str);\n }\n return new Blob([str]).size;\n}", "function getByteSize(s) {\n return encodeURIComponent('<q></q>' + s).length;\n}", "function getLength(string){\n return string.length;\n}", "function byteLength(input) {\n if (typeof input === 'string') {\n if (HAS_BUFFER) {\n return Buffer.byteLength(input);\n }\n var encoder = new TextEncoder();\n var out = encoder.encode(input);\n return out.length;\n }\n\n return input.length;\n }", "function byteLength(input) {\n if (typeof input === 'string') {\n if (HAS_BUFFER) {\n return Buffer.byteLength(input);\n }\n var encoder = new TextEncoder();\n var out = encoder.encode(input);\n return out.length;\n }\n\n return input.length;\n }", "function getLength(string) {\n return string.length\n}", "function getLength(string) {\n return string.length;\n}", "function getLength(string) {\n return string.length;\n}", "function getLength(string) {\n return string.length;\n}", "function byteLength(str) {\n return encodeURIComponent(str).split(/%(?:u[0-9A-F]{2})?[0-9A-F]{2}|./).length - 1;\n}", "function getLength(input) {\n if (!input || input.length === 0) {\n return Buffer.from([]);\n }\n var inputBuffer = toBuffer(input);\n var firstByte = inputBuffer[0];\n if (firstByte <= 0x7f) {\n return inputBuffer.length;\n }\n else if (firstByte <= 0xb7) {\n return firstByte - 0x7f;\n }\n else if (firstByte <= 0xbf) {\n return firstByte - 0xb6;\n }\n else if (firstByte <= 0xf7) {\n // a list between 0-55 bytes long\n return firstByte - 0xbf;\n }\n else {\n // a list over 55 bytes long\n var llength = firstByte - 0xf6;\n var length = safeParseInt(inputBuffer.slice(1, llength).toString('hex'), 16);\n return llength + length;\n }\n}", "function getLength(input) {\n if (!input || input.length === 0) {\n return Buffer.from([]);\n }\n var inputBuffer = toBuffer(input);\n var firstByte = inputBuffer[0];\n if (firstByte <= 0x7f) {\n return inputBuffer.length;\n }\n else if (firstByte <= 0xb7) {\n return firstByte - 0x7f;\n }\n else if (firstByte <= 0xbf) {\n return firstByte - 0xb6;\n }\n else if (firstByte <= 0xf7) {\n // a list between 0-55 bytes long\n return firstByte - 0xbf;\n }\n else {\n // a list over 55 bytes long\n var llength = firstByte - 0xf6;\n var length = safeParseInt(inputBuffer.slice(1, llength).toString('hex'), 16);\n return llength + length;\n }\n}", "function getLength(input) {\n if (!input || input.length === 0) {\n return Buffer.from([]);\n }\n var inputBuffer = toBuffer(input);\n var firstByte = inputBuffer[0];\n if (firstByte <= 0x7f) {\n return inputBuffer.length;\n }\n else if (firstByte <= 0xb7) {\n return firstByte - 0x7f;\n }\n else if (firstByte <= 0xbf) {\n return firstByte - 0xb6;\n }\n else if (firstByte <= 0xf7) {\n // a list between 0-55 bytes long\n return firstByte - 0xbf;\n }\n else {\n // a list over 55 bytes long\n var llength = firstByte - 0xf6;\n var length = safeParseInt(inputBuffer.slice(1, llength).toString('hex'), 16);\n return llength + length;\n }\n}", "function getLength(input) {\n if (!input || input.length === 0) {\n return Buffer.from([]);\n }\n var inputBuffer = toBuffer(input);\n var firstByte = inputBuffer[0];\n if (firstByte <= 0x7f) {\n return inputBuffer.length;\n }\n else if (firstByte <= 0xb7) {\n return firstByte - 0x7f;\n }\n else if (firstByte <= 0xbf) {\n return firstByte - 0xb6;\n }\n else if (firstByte <= 0xf7) {\n // a list between 0-55 bytes long\n return firstByte - 0xbf;\n }\n else {\n // a list over 55 bytes long\n var llength = firstByte - 0xf6;\n var length = safeParseInt(inputBuffer.slice(1, llength).toString('hex'), 16);\n return llength + length;\n }\n}", "function getLength(input) {\n if (!input || input.length === 0) {\n return Buffer.from([]);\n }\n var inputBuffer = toBuffer(input);\n var firstByte = inputBuffer[0];\n if (firstByte <= 0x7f) {\n return inputBuffer.length;\n }\n else if (firstByte <= 0xb7) {\n return firstByte - 0x7f;\n }\n else if (firstByte <= 0xbf) {\n return firstByte - 0xb6;\n }\n else if (firstByte <= 0xf7) {\n // a list between 0-55 bytes long\n return firstByte - 0xbf;\n }\n else {\n // a list over 55 bytes long\n var llength = firstByte - 0xf6;\n var length = safeParseInt(inputBuffer.slice(1, llength).toString('hex'), 16);\n return llength + length;\n }\n}", "function getLength(input) {\n if (!input || input.length === 0) {\n return Buffer.from([]);\n }\n var inputBuffer = toBuffer(input);\n var firstByte = inputBuffer[0];\n if (firstByte <= 0x7f) {\n return inputBuffer.length;\n }\n else if (firstByte <= 0xb7) {\n return firstByte - 0x7f;\n }\n else if (firstByte <= 0xbf) {\n return firstByte - 0xb6;\n }\n else if (firstByte <= 0xf7) {\n // a list between 0-55 bytes long\n return firstByte - 0xbf;\n }\n else {\n // a list over 55 bytes long\n var llength = firstByte - 0xf6;\n var length = safeParseInt(inputBuffer.slice(1, llength).toString('hex'), 16);\n return llength + length;\n }\n}", "function getLength(input) {\n if (!input || input.length === 0) {\n return Buffer.from([]);\n }\n var inputBuffer = toBuffer(input);\n var firstByte = inputBuffer[0];\n if (firstByte <= 0x7f) {\n return inputBuffer.length;\n }\n else if (firstByte <= 0xb7) {\n return firstByte - 0x7f;\n }\n else if (firstByte <= 0xbf) {\n return firstByte - 0xb6;\n }\n else if (firstByte <= 0xf7) {\n // a list between 0-55 bytes long\n return firstByte - 0xbf;\n }\n else {\n // a list over 55 bytes long\n var llength = firstByte - 0xf6;\n var length = safeParseInt(inputBuffer.slice(1, llength).toString('hex'), 16);\n return llength + length;\n }\n}", "function getLength(input) {\n if (!input || input.length === 0) {\n return Buffer.from([]);\n }\n var inputBuffer = toBuffer(input);\n var firstByte = inputBuffer[0];\n if (firstByte <= 0x7f) {\n return inputBuffer.length;\n }\n else if (firstByte <= 0xb7) {\n return firstByte - 0x7f;\n }\n else if (firstByte <= 0xbf) {\n return firstByte - 0xb6;\n }\n else if (firstByte <= 0xf7) {\n // a list between 0-55 bytes long\n return firstByte - 0xbf;\n }\n else {\n // a list over 55 bytes long\n var llength = firstByte - 0xf6;\n var length = safeParseInt(inputBuffer.slice(1, llength).toString('hex'), 16);\n return llength + length;\n }\n}", "function getUtf8StringLengthInBytes(string) {\n\tvar length = 0;\n\tfor (var n = 0; n < string.length; n++) {\n\t\tvar c = string.charCodeAt(n);\n\t\tif (c < 128) {\n\t\t\tlength++;\n\t\t}\n\t\telse if((c > 127) && (c < 2048)) {\n\t\t\tlength += 2;\n\t\t}\n\t\telse {\n\t\t\tlength += 3;\n\t\t}\n\t}\n\treturn length;\n}", "function getLength (str) {\n return str.length;\n}", "function getLength(input) {\n if (!input || input.length === 0) {\n return Buffer.from([]);\n }\n var inputBuffer = toBuffer(input);\n var firstByte = inputBuffer[0];\n if (firstByte <= 0x7f) {\n return inputBuffer.length;\n }\n else if (firstByte <= 0xb7) {\n return firstByte - 0x7f;\n }\n else if (firstByte <= 0xbf) {\n return firstByte - 0xb6;\n }\n else if (firstByte <= 0xf7) {\n // a list between 0-55 bytes long\n return firstByte - 0xbf;\n }\n else {\n // a list over 55 bytes long\n var llength = firstByte - 0xf6;\n var length = safeParseInt(inputBuffer.slice(1, llength).toString('hex'), 16);\n return llength + length;\n }\n }", "function stringLength( buf, base, bound, encoding ) {\n var length = 0;\n switch (encoding) {\n case undefined:\n case 'utf8':\n for (var i=base; i<bound; i++) {\n // multi-byte utf8 chars are of the form [11...][10...][10...]\n if (buf[i] <= 0x7F) length += 1;\n else if ((buf[i] & 0xF8) === 0xF0) length += 2; // surrogate pair\n else if ((buf[i] & 0xC0) !== 0x80) length += 1; // start of multi-byte char\n }\n break;\n case 'hex': return (bound - base) * 2;\n case 'base64': return 4 * Math.ceil((bound - base) / 3);\n default: return buf.toString(encoding, base, bound).length;\n }\n return length;\n}", "function getLength(str) {\n return str.length;\n}", "function getLength(str) {\n return str.length;\n}", "function getLength(str) {\n return str.length;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n }", "function getByteLength(str) {\r\n var s = str.length;\r\n for (var i=str.length-1; i>=0; i--) {\r\n var code = str.charCodeAt(i);\r\n if (code > 0x7f && code <= 0x7ff) s++;\r\n else if (code > 0x7ff && code <= 0xffff) s+=2;\r\n if (code >= 0xDC00 && code <= 0xDFFF) i--;\r\n }\r\n return s;\r\n}", "function stringLength(str) {\n let strLength = str.length;\n\n return strLength;\n}", "function length (string){\n\treturn string.length;\n}", "function getLength(string1){\n return string1.getLength;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) {\n ++len;\n } else if (u <= 0x7FF) {\n len += 2;\n } else if (u <= 0xFFFF) {\n len += 3;\n } else if (u <= 0x1FFFFF) {\n len += 4;\n } else if (u <= 0x3FFFFFF) {\n len += 5;\n } else {\n len += 6;\n }\n }\n return len;\n}", "function stringLength(str){\nvar result =0;\nwhile(str != \"\"){\n\n \tresult+=1;\n str= str.slice(1);\n}\n \n return result;\n \n }", "function lengthBytesUTF8(str) {\nvar len = 0;\nfor (var i = 0; i < str.length; ++i) {\n// Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n// See http://unicode.org/faq/utf_bom.html#utf16-3\nvar u = str.charCodeAt(i); // possibly a lead surrogate\nif (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\nif (u <= 0x7F) {\n++len;\n} else if (u <= 0x7FF) {\nlen += 2;\n} else if (u <= 0xFFFF) {\nlen += 3;\n} else if (u <= 0x1FFFFF) {\nlen += 4;\n} else if (u <= 0x3FFFFFF) {\nlen += 5;\n} else {\nlen += 6;\n}\n}\nreturn len;\n}", "function length(str) {\n\treturn str.length;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) ++len;\n else if (u <= 0x7FF) len += 2;\n else if (u <= 0xFFFF) len += 3;\n else len += 4;\n }\n return len;\n }", "function lengthBytesUTF8(str) {\n\t var len = 0;\n\t for (var i = 0; i < str.length; ++i) {\n\t // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n\t // See http://unicode.org/faq/utf_bom.html#utf16-3\n\t var u = str.charCodeAt(i); // possibly a lead surrogate\n\t if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n\t if (u <= 0x7F) ++len;\n\t else if (u <= 0x7FF) len += 2;\n\t else if (u <= 0xFFFF) len += 3;\n\t else len += 4;\n\t }\n\t return len;\n\t}", "function length(str) {\n return str.length;\n}", "function length(str) {\n return str.length;\n }", "function UTF8Length(input) {\n var output = 0;\n for (var i = 0; i < input.length; i++) {\n var charCode = input.charCodeAt(i);\n if (charCode > 0x7FF) {\n // Surrogate pair means its a 4 byte character\n if (0xD800 <= charCode && charCode <= 0xDBFF) {\n i++;\n output++;\n }\n output += 3;\n }\n else if (charCode > 0x7F)\n output += 2;\n else\n output++;\n }\n return output;\n }", "function lengthBytesUTF8(str) {\r\n var len = 0;\r\n for (var i = 0; i < str.length; ++i) {\r\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\r\n // See http://unicode.org/faq/utf_bom.html#utf16-3\r\n var u = str.charCodeAt(i); // possibly a lead surrogate\r\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\r\n if (u <= 0x7F) ++len;\r\n else if (u <= 0x7FF) len += 2;\r\n else if (u <= 0xFFFF) len += 3;\r\n else len += 4;\r\n }\r\n return len;\r\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) ++len;\n else if (u <= 0x7FF) len += 2;\n else if (u <= 0xFFFF) len += 3;\n else len += 4;\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) ++len;\n else if (u <= 0x7FF) len += 2;\n else if (u <= 0xFFFF) len += 3;\n else len += 4;\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) ++len;\n else if (u <= 0x7FF) len += 2;\n else if (u <= 0xFFFF) len += 3;\n else len += 4;\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) ++len;\n else if (u <= 0x7FF) len += 2;\n else if (u <= 0xFFFF) len += 3;\n else len += 4;\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) ++len;\n else if (u <= 0x7FF) len += 2;\n else if (u <= 0xFFFF) len += 3;\n else len += 4;\n }\n return len;\n}", "function lengthBytesUTF8(str) {\n var len = 0;\n for (var i = 0; i < str.length; ++i) {\n // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.\n // See http://unicode.org/faq/utf_bom.html#utf16-3\n var u = str.charCodeAt(i); // possibly a lead surrogate\n if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);\n if (u <= 0x7F) ++len;\n else if (u <= 0x7FF) len += 2;\n else if (u <= 0xFFFF) len += 3;\n else len += 4;\n }\n return len;\n}", "function caml_bytes_of_string (s) {\n if ((s.t & 6) != 0 /* BYTES */) caml_convert_string_to_bytes(s);\n return s.c;\n}", "function caml_bytes_of_string (s) {\n if ((s.t & 6) != 0 /* BYTES */) caml_convert_string_to_bytes(s);\n return s.c;\n}", "function UTF8Length(input) {\n var output = 0;\n for (var i = 0; i<input.length; i++)\n {\n var charCode = input.charCodeAt(i);\n if (charCode > 0x7FF)\n {\n // Surrogate pair means its a 4 byte character\n if (0xD800 <= charCode && charCode <= 0xDBFF)\n {\n i++;\n output++;\n }\n output +=3;\n }\n else if (charCode > 0x7F)\n output +=2;\n else\n output++;\n }\n return output;\n }", "function caml_marshal_data_size (s, ofs) {\n function get32(s,i) {\n return (s.get(i) << 24) | (s.get(i + 1) << 16) |\n (s.get(i + 2) << 8) | s.get(i + 3);\n }\n if (get32(s, ofs) != (0x8495A6BE|0))\n caml_failwith(\"Marshal.data_size: bad object\");\n return (get32(s, ofs + 4));\n}", "function byteLength( string, from, to ) {\n var code, len = 0;\n for (var i=from; i<to; i++) {\n code = string.charCodeAt(i);\n if (code < 0xD800 || code > 0xDFFF) {\n // valid 16-bit codepoint\n len += (code <= 0x007F) ? 1 : (code <= 0x07FF) ? 2 : 3;\n }\n else if (i + 1 < to) {\n // maybe a surrogate pair holding a 20-bit codepoint\n var code2 = string.charCodeAt(i + 1);\n if (code < 0xDC00 && code2 >= 0xDC00 && code2 <= 0xDFFF) (len += 4, i++);\n else len += 3;\n }\n else len += 3;\n }\n return len;\n}", "function size_in_bytes(object)\n {\n if (typeof object === \"undefined\" || object === null )\n {\n return 0;\n }\n if (typeof object !== \"string\" && !(object instanceof String))\n {\n object = JSON.stringify(object);\n }\n return text_encoder.encode(object).length;\n }", "function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite);}// Returns the number of bytes the given Javascript string takes if encoded as a UTF8 byte array, EXCLUDING the null terminator byte.", "function UTF8Length(input) {\n\t\tvar output = 0;\n\t\tfor (var i = 0; i<input.length; i++) \n\t\t{\n\t\t\tvar charCode = input.charCodeAt(i);\n\t\t\t\tif (charCode > 0x7FF)\n\t\t\t\t {\n\t\t\t\t\t // Surrogate pair means its a 4 byte character\n\t\t\t\t\t if (0xD800 <= charCode && charCode <= 0xDBFF)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t i++;\n\t\t\t\t\t\t output++;\n\t\t\t\t\t\t}\n\t\t\t\t output +=3;\n\t\t\t\t }\n\t\t\telse if (charCode > 0x7F)\n\t\t\t\toutput +=2;\n\t\t\telse\n\t\t\t\toutput++;\n\t\t} \n\t\treturn output;\n\t}", "function getLength(input){\n return input.length;\n}", "function UTF8Length(input) {\r\n\t\tvar output = 0;\r\n\t\tfor (var i = 0; i<input.length; i++) \r\n\t\t{\r\n\t\t\tvar charCode = input.charCodeAt(i);\r\n\t\t\t\tif (charCode > 0x7FF)\r\n\t\t\t\t {\r\n\t\t\t\t\t // Surrogate pair means its a 4 byte character\r\n\t\t\t\t\t if (0xD800 <= charCode && charCode <= 0xDBFF)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t i++;\r\n\t\t\t\t\t\t output++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t output +=3;\r\n\t\t\t\t }\r\n\t\t\telse if (charCode > 0x7F)\r\n\t\t\t\toutput +=2;\r\n\t\t\telse\r\n\t\t\t\toutput++;\r\n\t\t} \r\n\t\treturn output;\r\n\t}", "function FFString_getByteLength( msg ){\n\tvar str = new String(msg);\n\tvar len = str.length;\n\tvar count = 0;\n\n\tfor (k=0 ; k<len ; k++){\n\t\ttemp = str.charAt(k);\n\n\t\tif (escape(temp).length > 4) {\n\t\t\tcount += 2;\n\t\t}\n\t\telse if (temp == '\\r' && str.charAt(k+1) == '\\n') { // in case \\r\\n\n\t\t\tcount += 2;\n\t\t}\n\t\telse if (temp != '\\n') {\n\t\t\tcount++;\n\t\t}\n\t}\n\treturn count;\t\n}", "function stringSize( string, remove ) {\r\n updateElementData( Object(this) );\r\n return size( string, remove );\r\n }", "bytes(s){\n\treturn ~-encodeURI(s).split(/%..|./).length;\n }", "function textByteLength(text) {\n\tif (!text){\n\t\treturn 0;\n\t}\n\tlen = 0;\n\tfor(i=0; i<text.length;i++) {\n\t\tlen += text.charCodeAt(i) < 128 ? 1 : 3;\n\t}\n\treturn len;\n}", "function getByteLength(str) {\n var ret = 0;\n ret = str.length;\n for (var i = str.length; i >= 0; i -= 1) {\n var charCode = str.charCodeAt(i);\n if (charCode > 0x7f && charCode <= 0x7ff) {\n ret += 1;\n }\n else if (charCode > 0x7ff && charCode <= 0xffff) {\n ret += 2;\n }\n // trail surrogate\n if (charCode >= 0xDC00 && charCode <= 0xDFFF) {\n i -= 1;\n }\n }\n return ret;\n}", "function getStr(str) {\n console.log(str.length);\n}", "function encodedLength(s) {\n var result = 0;\n for (var i = 0; i < s.length; i++) {\n var c = s.charCodeAt(i);\n if (c < 0x80) {\n result += 1;\n }\n else if (c < 0x800) {\n result += 2;\n }\n else if (c < 0xd800) {\n result += 3;\n }\n else if (c <= 0xdfff) {\n if (i >= s.length - 1) {\n throw new Error(INVALID_UTF16);\n }\n i++; // \"eat\" next character\n result += 4;\n }\n else {\n throw new Error(INVALID_UTF16);\n }\n }\n return result;\n}", "function encodedLength(s) {\n var result = 0;\n for (var i = 0; i < s.length; i++) {\n var c = s.charCodeAt(i);\n if (c < 0x80) {\n result += 1;\n }\n else if (c < 0x800) {\n result += 2;\n }\n else if (c < 0xd800) {\n result += 3;\n }\n else if (c <= 0xdfff) {\n if (i >= s.length - 1) {\n throw new Error(INVALID_UTF16);\n }\n i++; // \"eat\" next character\n result += 4;\n }\n else {\n throw new Error(INVALID_UTF16);\n }\n }\n return result;\n}", "function encodedLength(s) {\n var result = 0;\n for (var i = 0; i < s.length; i++) {\n var c = s.charCodeAt(i);\n if (c < 0x80) {\n result += 1;\n }\n else if (c < 0x800) {\n result += 2;\n }\n else if (c < 0xd800) {\n result += 3;\n }\n else if (c <= 0xdfff) {\n if (i >= s.length - 1) {\n throw new Error(INVALID_UTF16);\n }\n i++; // \"eat\" next character\n result += 4;\n }\n else {\n throw new Error(INVALID_UTF16);\n }\n }\n return result;\n}", "function encodedLength(s) {\n var result = 0;\n for (var i = 0; i < s.length; i++) {\n var c = s.charCodeAt(i);\n if (c < 0x80) {\n result += 1;\n }\n else if (c < 0x800) {\n result += 2;\n }\n else if (c < 0xd800) {\n result += 3;\n }\n else if (c <= 0xdfff) {\n if (i >= s.length - 1) {\n throw new Error(INVALID_UTF16);\n }\n i++; // \"eat\" next character\n result += 4;\n }\n else {\n throw new Error(INVALID_UTF16);\n }\n }\n return result;\n}", "function encodedLength(s) {\n var result = 0;\n for (var i = 0; i < s.length; i++) {\n var c = s.charCodeAt(i);\n if (c < 0x80) {\n result += 1;\n }\n else if (c < 0x800) {\n result += 2;\n }\n else if (c < 0xd800) {\n result += 3;\n }\n else if (c <= 0xdfff) {\n if (i >= s.length - 1) {\n throw new Error(INVALID_UTF16);\n }\n i++; // \"eat\" next character\n result += 4;\n }\n else {\n throw new Error(INVALID_UTF16);\n }\n }\n return result;\n}", "function encodedLength(s) {\n var result = 0;\n for (var i = 0; i < s.length; i++) {\n var c = s.charCodeAt(i);\n if (c < 0x80) {\n result += 1;\n }\n else if (c < 0x800) {\n result += 2;\n }\n else if (c < 0xd800) {\n result += 3;\n }\n else if (c <= 0xdfff) {\n if (i >= s.length - 1) {\n throw new Error(INVALID_UTF16);\n }\n i++; // \"eat\" next character\n result += 4;\n }\n else {\n throw new Error(INVALID_UTF16);\n }\n }\n return result;\n}", "function encodedLength(s) {\n var result = 0;\n for (var i = 0; i < s.length; i++) {\n var c = s.charCodeAt(i);\n if (c < 0x80) {\n result += 1;\n }\n else if (c < 0x800) {\n result += 2;\n }\n else if (c < 0xd800) {\n result += 3;\n }\n else if (c <= 0xdfff) {\n if (i >= s.length - 1) {\n throw new Error(INVALID_UTF16);\n }\n i++; // \"eat\" next character\n result += 4;\n }\n else {\n throw new Error(INVALID_UTF16);\n }\n }\n return result;\n}", "static byteLength(string, encoding = 'utf8') {\n if (typeof string != 'string') {\n return string.byteLength;\n }\n\n encoding = normalizeEncoding(encoding) || 'utf8';\n return encodingOps[encoding].byteLength(string);\n }", "get characterSize() {}", "calculateSize(text) {\n\n // Note that we must calculate the text against a span\n // in its entirety - calculating individual characters yields\n // incorrect values.\n return this.calculateCharacterSize(text);\n\n }", "function graphsize(s) {\n var p;\n if (s.charAt(0).charCodeAt(0) == ':') p = s.substring(1);\n else p = s;\n var n;\n n = p.charAt(0).charCodeAt(0) - BIAS6;\n if (n > SMALLN) {\n n = p.charAt(1) - BIAS6;\n n = (n << 6) | (p.charAt(2).charCodeAt(0) - BIAS6);\n n = (n << 6) | (p.charAt(3).charCodeAt(0) - BIAS6);\n }\n return n;\n }", "function byteLength(obj) {\n if (typeof obj === \"string\") {\n return utf8Length(obj);\n }\n // arraybuffer or blob\n return Math.ceil((obj.byteLength || obj.size) * BASE64_OVERHEAD);\n}", "function strLen(str) {\n // hello\n // debugger;\n // isejimo salyga\n if (str === \"\") return 0;\n\n // console.log(\"str:\", str);\n\n //veiksmas ir rekursija\n let total = 1 + strLen(str.slice(1));\n return total;\n}", "function byteLength(str) {\n\t // returns the byte length of an utf8 string\n\t var s = str.length;\n\t for (var i=str.length-1; i>=0; i--) {\n\t\tvar code = str.charCodeAt(i);\n\t\tif (code > 0x7f && code <= 0x7ff) s++;\n\t\telse if (code > 0x7ff && code <= 0xffff) s+=2;\n\t\tif (code >= 0xDC00 && code <= 0xDFFF) i--; //trail surrogate\n\t }\n\t return s;\n\t}", "function utf8Length(str) {\n var c = 0, length = 0;\n for (var i = 0, l = str.length; i < l; i++) {\n c = str.charCodeAt(i);\n if (c < 0x80) {\n length += 1;\n }\n else if (c < 0x800) {\n length += 2;\n }\n else if (c < 0xd800 || c >= 0xe000) {\n length += 3;\n }\n else {\n i++;\n length += 4;\n }\n }\n return length;\n}", "function stringCount(str) {\n return str.length\n}", "function PHP_Unserialize_GetLength(input)\n {\n input = input.substring(2);\n var length = Number(input.substr(0, input.indexOf(':')));\n return length;\n }", "function getLength(str) {\n \"use strict\";\n const { length : len } = str;\n return len;\n}", "function stringLength(string){\n let length = string.length;\n console.log(`The length of \"${string}\" is:`, length);\n return length;\n}", "function Len(s) {\n if (!s || s == undefined) {\n return 0;\n }\n else {\n return s.length;\n }\n }" ]
[ "0.7504241", "0.7437573", "0.7372879", "0.7372879", "0.7289268", "0.7079476", "0.7076118", "0.7076118", "0.7001815", "0.6960768", "0.6960768", "0.6960768", "0.6928371", "0.689141", "0.689141", "0.689141", "0.689141", "0.689141", "0.689141", "0.689141", "0.689141", "0.6885358", "0.6880247", "0.6844083", "0.6842005", "0.68416804", "0.68416804", "0.68416804", "0.6817102", "0.6794484", "0.6792672", "0.67804676", "0.6709944", "0.67069036", "0.67069036", "0.67069036", "0.67069036", "0.67069036", "0.67069036", "0.67069036", "0.67069036", "0.67069036", "0.67069036", "0.67069036", "0.67069036", "0.67069036", "0.67069036", "0.67069036", "0.67069036", "0.67069036", "0.6704833", "0.667712", "0.66731036", "0.66713625", "0.6651262", "0.66366726", "0.66301554", "0.6611293", "0.6604628", "0.66007537", "0.66007537", "0.66007537", "0.66007537", "0.66007537", "0.66007537", "0.6595646", "0.6595646", "0.6592643", "0.6579979", "0.6575589", "0.6570526", "0.6557718", "0.6551299", "0.6548226", "0.6546608", "0.6522241", "0.6512629", "0.65069634", "0.64976925", "0.6492604", "0.6491982", "0.6485236", "0.6485236", "0.6485236", "0.6485236", "0.6485236", "0.6485236", "0.6485236", "0.6480574", "0.64532024", "0.64183515", "0.6414428", "0.63952184", "0.63640624", "0.6339025", "0.63326234", "0.63129", "0.6292469", "0.62914217", "0.6258458", "0.6219254" ]
0.0
-1
Calculates bytes size of input object
function jsonSize(value) { return utf8Length(JSON.stringify(value)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sizeOf(obj) {\n if(obj !== null && obj !== undefined) {\n switch(typeof obj) {\n case 'number':\n bytes += 8;\n break;\n case 'string':\n bytes += obj.length * 2;\n break;\n case 'boolean':\n bytes += 4;\n break;\n case 'object':\n var objClass = Object.prototype.toString.call(obj).slice(8, -1);\n if(objClass === 'Object' || objClass === 'Array') {\n for(var key in obj) {\n if(!obj.hasOwnProperty(key)) continue;\n sizeOf(obj[key]);\n }\n } else bytes += obj.toString().length * 2;\n break;\n }\n }\n return bytes;\n }", "function size_in_bytes(object)\n {\n if (typeof object === \"undefined\" || object === null )\n {\n return 0;\n }\n if (typeof object !== \"string\" && !(object instanceof String))\n {\n object = JSON.stringify(object);\n }\n return text_encoder.encode(object).length;\n }", "function getSize(obj){\n\tvar tam=0;\n\tfor (i in obj)tam++;\n\treturn tam;\n}", "function byteLength(obj) {\n if (typeof obj === \"string\") {\n return utf8Length(obj);\n }\n // arraybuffer or blob\n return Math.ceil((obj.byteLength || obj.size) * BASE64_OVERHEAD);\n}", "function getSize(obj) {\n\t\t\tvar size = 0;\n\n\t\t\tfor (var key in obj) {\n\t\t\t\tif (obj.hasOwnProperty(key)) size++;\n\t\t\t}\n\t\t\treturn size;\n\t\t}", "function tByteSize(obj) {\n var size = byteSize(obj);\n minorgc();\n if (size != byteSize(obj))\n return 0;\n return size;\n}", "get sizeInBytes() {\n return this._sizeInBytes;\n }", "function getObjectSize(obj) {\n\t\tvar size = 0;\n\t\tfor (let i of obj) {\n\t\t\tsize++;\n\t\t}\n\t\treturn size;\n\t}", "function objectSize(obj) {\n\t\tif (typeof obj !== 'object') { return; }\n\n\t\tvar size = 0,\n\t\t\tkey;\n\n\t\tloop(obj, function () {\n\t\t\tsize += 1;\n\t\t});\n\n\t\treturn size;\n\t}", "function roughSizeOfObject(object) {\n const objectList = []\n const stack = [object]\n let bytes = 0\n while (stack.length) {\n const value = stack.pop()\n if (typeof value === 'boolean') {\n bytes += 4\n } else if (typeof value === 'string') {\n bytes += value.length * 2\n } else if (typeof value === 'number') {\n bytes += 8\n } else if (\n typeof value === 'object' &&\n objectList.indexOf(value) === -1\n ) {\n objectList.push(value)\n for (const i in value) {\n if (value.hasOwnProperty(i)) {\n stack.push(value[i])\n }\n }\n }\n }\n return bytes\n }", "function calculateObjectSize(object, options = {}) {\n options = options || {};\n const serializeFunctions = typeof options.serializeFunctions === 'boolean' ? options.serializeFunctions : false;\n const ignoreUndefined = typeof options.ignoreUndefined === 'boolean' ? options.ignoreUndefined : true;\n return calculate_size.calculateObjectSize(object, serializeFunctions, ignoreUndefined);\n}", "function sizeof(object){\n\n // initialise the list of objects and size\n var objects = [object];\n var size = 0;\n\n // loop over the objects\n for (var index = 0; index < objects.length; index += 1) {\n\n // determine the type of the object\n switch (typeof objects[index]) {\n\n case 'boolean': {\n size += 4; break;\n }\n\n case 'number': {\n size += 8; break;\n }\n\n case 'string': {\n size += 2 * objects[index].length;\n break;\n }\n\n case 'object': {\n\n // loop over the keys\n for (var key in objects[index]) {\n if (!objects[index].hasOwnProperty(key)) {\n continue;\n }\n if (key[0] === '$' || key === 'this' || key === 'constructor' || key === 'lenth') {\n continue; // angular's internal property ($apply, etc)\n }\n\n // determine whether the value has already been processed\n var processed = false;\n /* jshint -W073 */\n for (var search = 0; search < objects.length; search += 1){\n if (objects[search] === objects[index][key]){\n processed = true;\n break;\n }\n }\n\n // queue the value to be processed if appropriate\n if (!processed) {\n objects.push(objects[index][key]);\n }\n\n }\n }\n\n }\n\n }\n\n // return the calculated size\n return size;\n\n }", "function sizeOf(object){\n\n // initialise the list of objects and size\n var objects = [object];\n var size = 0;\n\n // loop over the objects\n for (var index = 0; index < objects.length; index ++){\n\n // determine the type of the object\n switch (typeof objects[index]){\n case 'boolean': size += 4; break;\n case 'number': size += 8; break;\n case 'string': size += 2 * objects[index].length; break;\n case 'object':\n // if the object is not an array, add the sizes of the keys\n if (Object.prototype.toString.call(objects[index]) != '[object Array]'){\n for (var key in objects[index]) size += 2 * key.length;\n }\n\n /* determine if this object holds references to anything in itself,\n so we don't count objects twice */\n // loop over the keys\n for (var key in objects[index]){\n // determine whether the value has already been processed\n var processed = false;\n for (var search = 0; search < objects.length; search ++){\n if (objects[search] === objects[index][key]){\n processed = true;\n break;\n }\n }\n // queue the value to be processed if appropriate\n if (!processed) objects.push(objects[index][key]);\n }\n }\n }\n // return the calculated size\n return size;\n}", "function size (obj) {\n return Object.keys(obj).length;\n }", "function size (obj) {\n\t\tvar size = 0, key; for (key in obj) {\n\t\t\tif (obj.hasOwnProperty(key)) size++;\n\t\t} return size;\n\t}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\t// istanbul ignore if: included for completion\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn instance.size || null;\n\t}\n}", "function caml_marshal_data_size (s, ofs) {\n function get32(s,i) {\n return (s.get(i) << 24) | (s.get(i + 1) << 16) |\n (s.get(i + 2) << 8) | s.get(i + 3);\n }\n if (get32(s, ofs) != (0x8495A6BE|0))\n caml_failwith(\"Marshal.data_size: bad object\");\n return (get32(s, ofs + 4));\n}", "function objectSize(obj) {\n var size = 0, key;\n for (key in obj) {\n if (obj.hasOwnProperty(key)) size++;\n }\n return size;\n}", "function getTotalBytes(instance) {\n var body = instance.body;\n\n // istanbul ignore if: included for completion\n\n if (body === null) {\n // body is null\n return 0;\n } else if (typeof body === 'string') {\n // body is string\n return Buffer.byteLength(body);\n } else if (isURLSearchParams(body)) {\n // body is URLSearchParams\n return Buffer.byteLength(String(body));\n } else if (body instanceof _blob2.default) {\n // body is blob\n return body.size;\n } else if (Buffer.isBuffer(body)) {\n // body is buffer\n return body.length;\n } else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {\n // body is array buffer\n return body.byteLength;\n } else if (body && typeof body.getLengthSync === 'function') {\n // detect form data input from form-data module\n if (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n body.hasKnownLength && body.hasKnownLength()) {\n // 2.x\n return body.getLengthSync();\n }\n return null;\n } else {\n // body is stream\n // can't really do much about this\n return null;\n }\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getTotalBytes(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function size(x) {\n if (x === null || x == undefined) return 0;\n return x.size;\n }", "function len(obj){\n\treturn obj.length;\n}", "calculatePartSize(size) {\n if (!isNumber(size)) {\n throw new TypeError('size should be of type \"number\"')\n }\n if (size > this.maxObjectSize) {\n throw new TypeError(`size should not be more than ${this.maxObjectSize}`)\n }\n if (this.overRidePartSize) {\n return this.partSize\n }\n var partSize = this.partSize\n for (;;) {\n // while(true) {...} throws linting error.\n // If partSize is big enough to accomodate the object size, then use it.\n if (partSize * 10000 > size) {\n return partSize\n }\n // Try part sizes as 64MB, 80MB, 96MB etc.\n partSize += 16 * 1024 * 1024\n }\n }", "function getTotalBytes$1(instance) {\n\tconst body = instance.body;\n\n\n\tif (body === null) {\n\t\t// body is null\n\t\treturn 0;\n\t} else if (isBlob$1(body)) {\n\t\treturn body.size;\n\t} else if (Buffer.isBuffer(body)) {\n\t\t// body is buffer\n\t\treturn body.length;\n\t} else if (body && typeof body.getLengthSync === 'function') {\n\t\t// detect form data input from form-data module\n\t\tif (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n\t\tbody.hasKnownLength && body.hasKnownLength()) {\n\t\t\t// 2.x\n\t\t\treturn body.getLengthSync();\n\t\t}\n\t\treturn null;\n\t} else {\n\t\t// body is stream\n\t\treturn null;\n\t}\n}", "function getLength(obj){\n\t\tvar len = 0;\n\t\tfor(var key in obj){ if( obj.hasOwnProperty(key)) len++; }\n\t\treturn len;\n\t}", "function objSize(obj) {\n if (typeof obj == 'undefined') return 0;\n var size = 0, key;\n for (key in obj) {\n if (obj.hasOwnProperty(key)) size++;\n }\n return size;\n}", "function size(object) {\n return Object.keys(object).length;\n}", "function getTotalBytes(instance) {\n var body = instance.body;\n\n if (body === null) {\n // body is null\n return 0;\n } else if (isBlob(body)) {\n return body.size;\n } else if (Buffer.isBuffer(body)) {\n // body is buffer\n return body.length;\n } else if (body && typeof body.getLengthSync === 'function') {\n // detect form data input from form-data module\n if (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x\n body.hasKnownLength && body.hasKnownLength()) {\n // 2.x\n return body.getLengthSync();\n }\n\n return null;\n } else {\n // body is stream\n return null;\n }\n}", "function size() {\n out = 1;\n for (var dim in dimensions) {\n out *= dimensions[dim].members.length;\n }\n return out;\n }", "get size() {}", "fileSize () {\n if (this.isDirectory()) {\n // dirs don't have file size\n return 0\n }\n\n let sum = 0\n this.blockSizes.forEach((size) => {\n sum += size\n })\n\n if (this.data) {\n sum += this.data.length\n }\n\n return sum\n }", "get size() {\n if (this.isEmpty)\n return 0;\n let size = this.nextLayer.size;\n for (let chunk of this.chunk)\n size += chunk.value.length;\n return size;\n }", "estimateSize () {\n // largest possible sig size. final 1 is for pushdata at start. second to\n // final is sighash byte. the rest are DER encoding.\n const sigSize = 1 + 1 + 1 + 1 + 32 + 1 + 1 + 32 + 1 + 1\n // length of script, y odd, x value - assumes compressed public key\n const pubKeySize = 1 + 1 + 33\n\n let size = this.tx.toBuffer().length\n\n this.tx.txIns.forEach((txIn) => {\n const { txHashBuf, txOutNum } = txIn\n const sigOperations = this.sigOperations.get(txHashBuf, txOutNum)\n sigOperations.forEach((obj) => {\n const { nScriptChunk, type } = obj\n const script = new Script([txIn.script.chunks[nScriptChunk]])\n const scriptSize = script.toBuffer().length\n size -= scriptSize\n if (type === 'sig') {\n size += sigSize\n } else if (obj.type === 'pubKey') {\n size += pubKeySize\n } else {\n throw new Error('unsupported sig operations type')\n }\n })\n })\n\n // size = size + sigSize * this.tx.txIns.length\n size = size + 1 // assume txInsVi increases by 1 byte\n return Math.round(size)\n }", "function length(obj) {\n var size = 0,\n key;\n for (key in obj) {\n if (obj.hasOwnProperty(key)) {\n size++;\n }\n }\n return size;\n }", "function getObjectLength(object) {\n // YOUR CODE BELOW HERE //\n \n //utilizing Object.keys() method to ascertain number of key-value pairs\n return Object.keys(object).length;\n \n \n // YOUR CODE ABOVE HERE //\n}", "static getByteLengthSumOfMembers(bufferUse, componentClass) {\n const byteLengthSumOfMembers = this.__byteLengthSumOfMembers.get(componentClass);\n return byteLengthSumOfMembers.get(bufferUse);\n }", "static objectLength(obj) {\n return Object.keys(obj).length;\n }", "function objsize(obj) {\n\t\tif(typeof obj != 'object') return 0;\n\t\tvar count = 0;\n\t\tjQuery.each(obj, function(k, v) {\n\t\t\tcount++;\n\t\t});\n\t\treturn count;\n\t}", "function arraySizeOf(obj) {\n var size = 0, key;\n for (key in obj) {\n if (obj.hasOwnProperty(key)) size++;\n }\n return size;\n}", "get size() {\n\t\treturn this._size;\n\t}", "function size(obj) {\n if (obj == null) return 0;\n return isArrayLike(obj) ? obj.length : keys(obj).length;\n }", "function size(obj) {\n if (obj == null) return 0;\n return isArrayLike(obj) ? obj.length : keys(obj).length;\n }", "function size(obj) {\n if (obj == null) return 0;\n return isArrayLike(obj) ? obj.length : keys(obj).length;\n }", "function size(obj) {\n if (obj == null) return 0;\n return isArrayLike(obj) ? obj.length : keys(obj).length;\n }", "function size(obj) {\n if (obj == null) return 0;\n return isArrayLike(obj) ? obj.length : keys(obj).length;\n }", "function size(obj) {\n if (obj == null) return 0;\n return isArrayLike(obj) ? obj.length : keys(obj).length;\n }", "function size(obj) {\n if (obj == null) return 0;\n return isArrayLike(obj) ? obj.length : keys(obj).length;\n }", "function size(obj) {\n if (obj == null) return 0;\n return isArrayLike(obj) ? obj.length : keys(obj).length;\n }", "function size(obj) {\n if (obj == null) return 0;\n return isArrayLike(obj) ? obj.length : keys(obj).length;\n }", "get imageSizeInBytes() {\n return this.getNumberAttribute('image_size_in_bytes');\n }", "sizeOf() {\n return this.size;\n }", "function len(obj) {\n var count = 0;\n for (var p in obj) {\n count++;\n }\n return count;\n}", "function size(object) {\n if(!(object instanceof Array)) {\n object = [object];\n }\n\n /* \n * helper function to convert primitives to objects\n * (should we allow only string primitives to be converted?\n * as it stands, the number 100 will be converted to \"100\"\n * which will return a length of 3.)\n */\n function toObject(primitive) {\n if(typeof primitive == \"object\" && null != primitive) {\n return primitive;\n }\n else {\n /* if input isn't null, undefined, boolean, or infinity */\n if(typeof primitive != \"undefined\" &&\n typeof primitive != \"boolean\" &&\n primitive != Infinity &&\n null != primitive) {\n /* return an object */\n return new String(primitive);\n }\n else {\n /* otherwise, return an empty object */\n return [];\n }\n }\n }\n \n /* make sure we don't mess with the global namespace */\n var keys = Object.keys.bind(Object);\n\n var arr = object.map(toObject).map(keys).map(pluck('length'))\n return arr;\n}", "function getObjectLength(object) {\n // YOUR CODE BELOW HERE //\n // create an empty array to hold the key/value pairs\n var arr = [];\n // use for in loop to access the key/value pairs\n for(var key in object){\n // push the key/values into the array\n arr.push(object[key]);\n }\n // return the array's length\n return arr.length;\n \n \n \n // YOUR CODE ABOVE HERE //\n}", "get size() {\n return this._size;\n }", "get size() {\n return this._size;\n }", "get size() {\n return this._size;\n }", "get size() {\n return this._size;\n }", "GetSize(){\n return this._size;\n }", "function jsonSize(value) {\n\t return utf8Length(JSON.stringify(value));\n\t}", "get size() {return this._size;}", "getSize() {\n console.log(this.size);\n }", "function jsonSize(value) {\r\n return utf8Length(JSON.stringify(value));\r\n}", "function jsonSize(value) {\n return utf8Length(JSON.stringify(value));\n }", "getSize() {\n return this.#size;\n }", "function serializeSize(output) {\n // Value 8 bytes + Version 2 bytes + serialized varint size for\n // the length of PkScript + PkScript bytes.\n return (\n 8 + 2 + VarIntSerializeSize(output.script.length) + output.script.length\n );\n}", "function objectLength(obj) {\n var result = 0;\n for(var prop in obj) {\n if (obj.hasOwnProperty(prop)) {\n result++;\n }\n }\n return result;\n}", "getSize() {\n return this.size;\n }", "function objectLength(obj) {\n let result = 0;\n for (let prop in obj) {\n if (obj.hasOwnProperty(prop)) {\n result++;\n }\n }\n return result;\n}" ]
[ "0.8283993", "0.7918841", "0.7464799", "0.7323434", "0.72478044", "0.7198797", "0.71818054", "0.7149525", "0.71246827", "0.70923644", "0.7086633", "0.690561", "0.68373615", "0.6832636", "0.6830192", "0.6819628", "0.67580444", "0.67553556", "0.67530406", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6649227", "0.6644247", "0.6642182", "0.66252065", "0.6617054", "0.66017467", "0.65978533", "0.6588367", "0.65522647", "0.65394723", "0.6530181", "0.65274173", "0.6503798", "0.6481888", "0.6453181", "0.6433045", "0.643163", "0.6381898", "0.6329417", "0.63282216", "0.6310077", "0.630901", "0.630901", "0.630901", "0.630901", "0.630901", "0.630901", "0.630901", "0.630901", "0.630901", "0.62961996", "0.62954783", "0.62915355", "0.6279739", "0.62792706", "0.6276712", "0.6276712", "0.6270856", "0.6270856", "0.6256074", "0.6253903", "0.6196944", "0.6193094", "0.61919594", "0.61844975", "0.6183916", "0.61687785", "0.61561644", "0.61527956", "0.61485845" ]
0.61523384
99
Transform any nonprimitive, BigInt, or Symboltype value into a string. Acts as a noop on strings, numbers, booleans, null, and undefined.
function serializeValue(value) { var type = Object.prototype.toString.call(value); // Node.js REPL notation if (typeof value === 'string') { return value; } if (type === '[object Object]') { return '[Object]'; } if (type === '[object Array]') { return '[Array]'; } var normalized = normalizeValue(value); return Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isPrimitive */ "i"])(normalized) ? normalized : type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function coerceToString(value) {\n return \"\" + (value || '');\n}", "function toString(val){return val==null?'':(typeof val===\"undefined\"?\"undefined\":_typeof2(val))==='object'?JSON.stringify(val,null,2):String(val);}", "function toString(val){return val==null?'':(typeof val===\"undefined\"?\"undefined\":_typeof2(val))==='object'?JSON.stringify(val,null,2):String(val);}", "function _toString(val){return val==null?'':(typeof val==='undefined'?'undefined':_typeof(val))==='object'?JSON.stringify(val,null,2):String(val);}", "function valueToString(x) {\n if (x === void 0) {\n return 'undefined';\n } else if (x === null) {\n return 'null';\n } else if (typeof x === 'boolean') {\n return String(x);\n } else if (typeof x === 'number') {\n if (x !== 0) {\n return String(x);\n } else {\n return (1 / x > 0) ? '0' : '-0';\n }\n } else if (typeof x === 'string') {\n return JSON.stringify(x);\n } else if (typeof x === 'symbol') {\n return String(x);\n } else if (typeof x === 'object') {\n return Object.prototype.toString.call(x);\n } else if (typeof x === 'function') {\n var pd = Object.getOwnPropertyDescriptor(x, 'name');\n if (pd && typeof pd.value === 'string') {\n return 'function:' + pd.value;\n } else {\n return 'function';\n }\n } else if (typeof x === 'pointer') {\n if (String(x) === 'null') {\n return 'pointer:null';\n } else {\n return 'pointer:non-null'; // specific pointer is very rarely interesting for tests\n }\n } else if (typeof x === 'buffer') {\n // No longer used in Duktape 2.x.\n return 'buffer:' + x.length;\n } else {\n return 'unknown:' + String(x);\n }\n }", "function toString(value) {\n\t switch (typeof value) {\n\t case 'number':\n\t return value + '';\n\t case 'string':\n\t return value;\n\t default:\n\t return JSON.stringify(value);\n\t }\n\t}", "function renderStringify(value) {\n if (typeof value === 'string')\n return value;\n if (value == null)\n return '';\n return '' + value;\n}", "function toText(value) {\n if (hasValue(value) && !isString(value)) {\n if (isNumber(value)) {\n return castString(value);\n }\n else if (isObject(value)) {\n return value.toString();\n }\n }\n return value;\n}", "function _toString (val) {\n return val == null\n ? ''\n : typeof val === 'object'\n ? JSON.stringify(val, null, 2)\n : String(val)\n}", "function _toString (val) {\n return val == null\n ? ''\n : typeof val === 'object'\n ? JSON.stringify(val, null, 2)\n : String(val)\n}", "function _toString (val) {\n return val == null\n ? ''\n : typeof val === 'object'\n ? JSON.stringify(val, null, 2)\n : String(val)\n}", "function _toString (val) {\n return val == null\n ? ''\n : typeof val === 'object'\n ? JSON.stringify(val, null, 2)\n : String(val)\n}", "function _toString (val) {\n return val == null\n ? ''\n : typeof val === 'object'\n ? JSON.stringify(val, null, 2)\n : String(val)\n}", "function _toString (val) {\n return val == null\n ? ''\n : typeof val === 'object'\n ? JSON.stringify(val, null, 2)\n : String(val)\n}", "function _toString (val) {\n return val == null\n ? ''\n : typeof val === 'object'\n ? JSON.stringify(val, null, 2)\n : String(val)\n}", "function _toString (val) {\n return val == null\n ? ''\n : typeof val === 'object'\n ? JSON.stringify(val, null, 2)\n : String(val)\n}", "function _toString (val) {\n return val == null\n ? ''\n : typeof val === 'object'\n ? JSON.stringify(val, null, 2)\n : String(val)\n}", "function toString(value){return ''+value;}", "function _toString(val) {\n return val == null ? '' : (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object' ? JSON.stringify(val, null, 2) : String(val);\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function toString(value) {\n return '' + value;\n}", "function _toString(val) {\n return val == null ? '' : typeof val === 'object' ? JSON.stringify(val, null, 2) : String(val);\n}", "function _toString (val) {\n\t return val == null\n\t ? ''\n\t : typeof val === 'object'\n\t ? JSON.stringify(val, null, 2)\n\t : String(val)\n\t}", "function _toString (val) {\n\t return val == null\n\t ? ''\n\t : typeof val === 'object'\n\t ? JSON.stringify(val, null, 2)\n\t : String(val)\n\t}", "function _toString (val) {\n\t return val == null\n\t ? ''\n\t : typeof val === 'object'\n\t ? JSON.stringify(val, null, 2)\n\t : String(val)\n\t}" ]
[ "0.770156", "0.7288965", "0.7288965", "0.7242612", "0.72089994", "0.71955764", "0.7188808", "0.70924395", "0.7091439", "0.7091439", "0.7091439", "0.7091439", "0.7091439", "0.7091439", "0.7091439", "0.7091439", "0.7091439", "0.7071465", "0.70560217", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.705158", "0.70490843", "0.70309335", "0.70309335", "0.70309335" ]
0.0
-1
Walks an object to perform a normalization on it
function walk(key, value, depth, memo) { if (depth === void 0) { depth = +Infinity; } if (memo === void 0) { memo = new _memo__WEBPACK_IMPORTED_MODULE_3__[/* Memo */ "a"](); } // If we reach the maximum depth, serialize whatever has left if (depth === 0) { return serializeValue(value); } /* eslint-disable @typescript-eslint/no-unsafe-member-access */ // If value implements `toJSON` method, call it and return early if (value !== null && value !== undefined && typeof value.toJSON === 'function') { return value.toJSON(); } /* eslint-enable @typescript-eslint/no-unsafe-member-access */ // If normalized value is a primitive, there are no branches left to walk, so we can just bail out, as theres no point in going down that branch any further var normalized = normalizeValue(value, key); if (Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isPrimitive */ "i"])(normalized)) { return normalized; } // Create source that we will use for next itterations, either objectified error object (Error type with extracted keys:value pairs) or the input itself var source = getWalkSource(value); // Create an accumulator that will act as a parent for all future itterations of that branch var acc = Array.isArray(value) ? [] : {}; // If we already walked that branch, bail out, as it's circular reference if (memo.memoize(value)) { return '[Circular ~]'; } // Walk all keys of the source for (var innerKey in source) { // Avoid iterating over fields in the prototype if they've somehow been exposed to enumeration. if (!Object.prototype.hasOwnProperty.call(source, innerKey)) { continue; } // Recursively walk through all the child nodes acc[innerKey] = walk(innerKey, source[innerKey], depth - 1, memo); } // Once walked through all the branches, remove the parent from memo storage memo.unmemoize(value); // Return accumulated values return acc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async normalize () {\n\t}", "function normalize_parsed_OBJ( mesh )\n {\n /// 1 Initialize a min and max variable for x,y,z.\n /// 2 Iterate over each vertex and update the min and max.\n /// 3 Iterate again over each vertex, translating it by -(min+max)/2\n /// and scaling it by one over the maximum coordinate of (max-min).\n \n /// 1\n // Use slice(0) to create a deep copy.\n var min = mesh.vertex.positions[0].slice(0);\n var max = mesh.vertex.positions[0].slice(0);\n \n /// 2\n for( var i = 0; i < mesh.vertex.positions.length; ++i )\n {\n min = cmin( min, mesh.vertex.positions[i] );\n max = cmax( max, mesh.vertex.positions[i] );\n }\n \n /// 3\n var s = 2. / Math.max.apply( null, sub( max, min ) );\n for( var i = 0; i < mesh.vertex.positions.length; ++i )\n {\n mesh.vertex.positions[i] = scale( s, add( mesh.vertex.positions[i], scale( -.5, add( min, max ) ) ) );\n }\n }", "function normalize(d) {\n\tvar total = sum(d);\n\tfor (var key in d) {\n\t if (d.hasOwnProperty(key)) {\n\t d[key] = d[key]/total;\n\t }\n\t}\n}", "function normalizeAll()\n {\n normalizeForms();\n normalizeControls();\n }", "normalize() {\r\n this.scale(1 / this.norm());\r\n }", "function normalize() {\n console.log(this.coords.map((n) => n / this.length));\n //this in the normalize function will be the object that is given to this function when it is called\n // this in the arrow function is the same as 'this' in the outer function\n} // the function maps the arrays coords of the object to return a new array of the elements divided by their length", "function normalize(data) {\n var ret = { input: [], output: [] };\n\n\n for (var i = 0; i < data.length; i++) {\n var datum = data[i];\n\n ret.output.push(datum.output);\n ret.input.push(datum.input);\n }\n\n ret.output = Matrix(ret.output);\n ret.input = Matrix(ret.input);\n\n\n return ret;\n\n}", "function normalizeAndRescale(obj, newScale)\r\n{\r\n var scale = getMaxSize(obj); // Available in 'utils.js'\r\n obj.scale.set(newScale * (1.0/scale),\r\n newScale * (1.0/scale),\r\n newScale * (1.0/scale));\r\n return obj;\r\n}", "function normalizeAndRescale(obj, newScale)\r\n{\r\n var scale = getMaxSize(obj); // Available in 'utils.js'\r\n obj.scale.set(newScale * (1.0/scale),\r\n newScale * (1.0/scale),\r\n newScale * (1.0/scale));\r\n return obj;\r\n}", "function normalizeAndRescale(obj, newScale)\n{\n var scale = getMaxSize(obj); \n obj.scale.set(newScale * (1.0/scale),\n newScale * (1.0/scale),\n newScale * (1.0/scale));\n return obj;\n}", "normalize() {\n if (this._vector[3] !== 0) {\n this._vector[0] = this._vector[0] / this._vector[3];\n this._vector[1] = this._vector[1] / this._vector[3];\n this._vector[2] = this._vector[2] / this._vector[3];\n this._vector[3] = 1;\n }\n }", "normalize() {\n return this.multiply(1 / this.magnitude());\n }", "function normalizeAndRescale(obj, newScale) {\n var scale = getMaxSize(obj); // Available in 'utils.js'\n obj.scale.set(newScale * (1.0 / scale),\n newScale * (1.0 / scale),\n newScale * (1.0 / scale));\n return obj;\n}", "normalize() {var m = this.magnitude();return new M.XY(this.x/m,this.y/m);}", "function normalise(img) {\n\timg = img.sub(img.min())\n\treturn img.div(img.max())\n}", "function normalize() {\n console.log(this.coords.map((n) => n / this.length));\n}", "function undoNormalize(g) {\n g.eachNode(function(u, a) {\n if (a.dummy) {\n if ('index' in a) {\n var edge = a.edge;\n if (!g.hasEdge(edge.id)) {\n g.addEdge(edge.id, edge.source, edge.target, edge.attrs);\n }\n var points = g.edge(edge.id).points;\n points[a.index] = { x: a.x, y: a.y, ul: a.ul, ur: a.ur, dl: a.dl, dr: a.dr };\n }\n g.delNode(u);\n }\n });\n }", "set normalized(value) {}", "function normalize() {\n console.log(this.coords.map(n => n / this.length));\n}", "function normalize(a){\r\n var factor = 1/Math.sqrt(a.x*a.x + a.y*a.y);\r\n return scalar(factor,a);\r\n}", "static process(obj, attrKey, charKey)\n {\n valid(obj, 'object')\n valid(attrKey, 'string')\n valid(charKey, 'string')\n\n return new TranslatorXmlNormalizer(obj, attrKey, charKey)\n .all()\n }", "function normalize () {\n console.log(this.coords.map(n => n / this.length))\n // the \"this\" in the arrow function refers to the local object rather than the global object since it is an arrow function.\n}", "function normalize(obj) {\n return likeArray(obj) ? obj :\n isNodeLike(obj) ? [obj] :\n htmlRegex.exec(obj) ? htmlify(obj) :\n [];\n }", "get normalized() {}", "normalize(inplace=true)\n\t{\n\t\t//TODO: done\n\t\tvar magnitude = this.magnitude();\n\t\tif (!inplace)\n\t\t\treturn new Vector(this.x/magnitude, this.y/magnitude, this.z/magnitude);\n\t\tthis.x /= magnitude;\n\t\tthis.y /= magnitude;\n\t\tthis.z /= magnitude;\n\t\treturn this;\n\t}", "function normalize(obj) {\n const {_id, ...res} = obj;\n return res;\n}", "normalized() {\n return this.clone().normalize();\n }", "function transform(object) {\r\n for (item in object) {\r\n for (let i = 0; i < object[item].length; i++) {\r\n newPointStructure[(object[item][i]).toLowerCase()] = Number(item);\r\n }\r\n }\r\n}", "function update_obj(obj) {\n obj.transform = obj.matrix;\n obj.transform = CG.Matrix4.multiply(viewProjectionMatrix, obj.transform);\n\n obj.vector.forEach((vertex, index) => {\n obj.new_vertices[index] = obj.transform.multiplyVector3(vertex);\n });\n }", "function normalize(rule) {\n // TODO:\n}", "function setObjectMass(object){\r\n object.mass = 0;\r\n for(var p = 0; p < object.points.length; p++){\r\n object.mass += object.points[p].mass;\r\n }\r\n}", "normalized () {\n return Vector.normalize(this);\n }", "normalized () {\n return Vector.normalize(this);\n }", "calculateNormal(){\n this.normal = vec3.create();\n for (let i = 0; i < this.polygons.length; i++) {\n vec3.add(this.normal, this.normal, this.polygons[i].getNormal());\n }\n vec3.normalize(this.normal, this.normal)\n }", "function normalize(people){\n\tfor(var i=0 ; i<people.length ; i++){\n\t\t//main function to recursively iterate\n\t\trecursive(people[i]);\n\t\tsort(output);\n\t}\n}", "normalize() {\n\t\tlet m = this.getMagnitude();\n\t\tlet x = 0;\n\t\tlet y = 0\n\t\t\n\t\tif(m !== 0) {\n\t\t\tx = this.x / m;\n\t\t\ty = this.y / m;\n\t\t}\n\t\t\n\t\treturn new Vector(x, y);\n\t}", "normalize()\r\n {\r\n var len = this.mag();\r\n if (len !== 0) \r\n this.mult(1 / len);\r\n\r\n return this;\r\n }", "static Normalized(vec) {\n vec = new VecX(vec);\n if (vec.Magnitude() === 0)\n return vec.Multiply(0);\n return vec.Divide(vec.Magnitude());\n }", "calculateNormals() {\r\n // MP2: Implement this function!\r\n \r\n }", "normalize() { \n\t\tlet m = Math.sqrt(this.x * this.x + this.y * this.y);\n\n\t\tthis.x /= m;\n\t\tthis.y /= m;\n\t\treturn this;\n\t}", "normalize(editor) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var {\n force = false\n } = options;\n\n var getDirtyPaths = editor => {\n return DIRTY_PATHS.get(editor) || [];\n };\n\n if (!Editor.isNormalizing(editor)) {\n return;\n }\n\n if (force) {\n var allPaths = Array.from(Node.nodes(editor), _ref2 => {\n var [, p] = _ref2;\n return p;\n });\n DIRTY_PATHS.set(editor, allPaths);\n }\n\n if (getDirtyPaths(editor).length === 0) {\n return;\n }\n\n Editor.withoutNormalizing(editor, () => {\n /*\n Fix dirty elements with no children.\n editor.normalizeNode() does fix this, but some normalization fixes also require it to work.\n Running an initial pass avoids the catch-22 race condition.\n */\n for (var dirtyPath of getDirtyPaths(editor)) {\n if (Node.has(editor, dirtyPath)) {\n var entry = Editor.node(editor, dirtyPath);\n var [node, _] = entry;\n /*\n The default normalizer inserts an empty text node in this scenario, but it can be customised.\n So there is some risk here.\n As long as the normalizer only inserts child nodes for this case it is safe to do in any order;\n by definition adding children to an empty node can't cause other paths to change.\n */\n\n if (Element.isElement(node) && node.children.length === 0) {\n editor.normalizeNode(entry);\n }\n }\n }\n\n var max = getDirtyPaths(editor).length * 42; // HACK: better way?\n\n var m = 0;\n\n while (getDirtyPaths(editor).length !== 0) {\n if (m > max) {\n throw new Error(\"\\n Could not completely normalize the editor after \".concat(max, \" iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\\n \"));\n }\n\n var _dirtyPath = getDirtyPaths(editor).pop(); // If the node doesn't exist in the tree, it does not need to be normalized.\n\n\n if (Node.has(editor, _dirtyPath)) {\n var _entry = Editor.node(editor, _dirtyPath);\n\n editor.normalizeNode(_entry);\n }\n\n m++;\n }\n });\n }", "function normalizar() {\n console.log(this.coords.map((elemento) => elemento / this.length));\n}", "function _prepareForGun(obj) {\n\tconsole.log('converting Arrays to Objects')\n let _iterate = function(o,s) {\n\n\t\tfor(var p in o) {\n\t \tif(o.hasOwnProperty(p)) {\n\t \t\tif( Gun.list.is(o[p]) ){\n\t \t\t\tconvertBack[s + '.' + p] = true;\n\t \t\t\tconsole.log('...',s + '.' + p)\n\t \t\t\to[p] = _arrToObj(o[p]);\n\t \t\t} else if( Gun.obj.is(o[p]) ) {\n\t \t\ts ? _iterate(o[p], s + '.' + p) : _iterate(o[p],p);\n\t } \n\t } \n\t } \n\t return o\n\t}\n // Start the iteration\n return _iterate(obj);\n}", "withoutNormalizing(editor, fn) {\n var value = Editor.isNormalizing(editor);\n Editor.setNormalizing(editor, false);\n\n try {\n fn();\n } finally {\n Editor.setNormalizing(editor, value);\n }\n\n Editor.normalize(editor);\n }", "setNormal(){\r\n for(var i = 0; i < this.fBuffer.length; i += 3){\r\n var faceVertices = [];\r\n //j = 0,1,2\r\n for(var j = 0; j < 3; j++){\r\n var temp = [];\r\n //i+j = 0,1,2...3,4,5...6,7,8\r\n temp[0] = this.vBuffer[this.fBuffer[i + j] * 3];\r\n temp[1] = this.vBuffer[this.fBuffer[i + j] * 3 + 1];\r\n temp[2] = this.vBuffer[this.fBuffer[i + j] * 3 + 2]; \r\n faceVertices[j] = vec3.fromValues.apply(this, temp);\r\n }\r\n //Find per face normal \r\n var v1_v0 = vec3.create();\r\n var v2_v0 = vec3.create();\r\n vec3.sub(v1_v0, faceVertices[1], faceVertices[0]);\r\n vec3.sub(v2_v0, faceVertices[2], faceVertices[0])\r\n var normalCP = vec3.create();\r\n vec3.cross(normalCP, v1_v0, v2_v0);\r\n \r\n for(var k = 0; k < 3; k++){\r\n this.nBuffer[this.fBuffer[i + j] * 3] += normalCP[0];\r\n this.nBuffer[this.fBuffer[i + j] * 3 + 1] += normalCP[1];\r\n this.nBuffer[this.fBuffer[i + j] * 3 + 2] += normalCP[2];\r\n }\r\n \r\n }\r\n \r\n //Finally, normals needs to be unitized \r\n for(var i = 0; i < this.nBuffer.length; i += 3){\r\n var uni = vec3.fromValues(this.nBuffer[i], this.nBuffer[i + 1], this.nBuffer[i + 2]);\r\n \r\n vec3.normalize(uni, uni);\r\n \r\n this.nBuffer[i] = uni[0];\r\n this.nBuffer[i + 1] = uni[1];\r\n this.nBuffer[i + 2] = uni[2];\r\n }\r\n \r\n}", "function undoNormalize(g) {\n var visited = {};\n\n g.eachNode(function(u, a) {\n if (a.dummy && \"index\" in a) {\n var edge = a.edge;\n if (!g.hasEdge(edge.id)) {\n g.addEdge(edge.id, edge.source, edge.target, edge.attrs);\n }\n var points = g.edge(edge.id).points;\n points[a.index] = { x: a.x, y: a.y, ul: a.ul, ur: a.ur, dl: a.dl, dr: a.dr };\n g.delNode(u);\n }\n });\n }", "function undoNormalize(g) {\n var visited = {};\n\n g.eachNode(function(u, a) {\n if (a.dummy && \"index\" in a) {\n var edge = a.edge;\n if (!g.hasEdge(edge.id)) {\n g.addEdge(edge.id, edge.source, edge.target, edge.attrs);\n }\n var points = g.edge(edge.id).points;\n points[a.index] = { x: a.x, y: a.y, ul: a.ul, ur: a.ur, dl: a.dl, dr: a.dr };\n g.delNode(u);\n }\n });\n }", "normalized() {\r\n return this.times(1 / this.norm());\r\n }", "function normalizeToObject(doc, ret) {\n delete ret.__v;\n}", "withoutNormalizing(editor, fn) {\n var value = Editor.isNormalizing(editor);\n NORMALIZING.set(editor, false);\n fn();\n NORMALIZING.set(editor, value);\n Editor.normalize(editor);\n }", "normalized() {\n\t\treturn this.multiply(1 / this.magnitude());\n\t}", "normalize(vec) {\n const norm = Util.magnitude(vec);\n return Util.scale(vec, 1 / norm);\n }", "function objectApply(object, f) {\n for (var key in object) {\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n f(object[key], key, object);\n }\n }\n }", "_normalizeEvent(event, depth, maxBreadth) {\n\t if (!event) {\n\t return null;\n\t }\n\n\t const normalized = {\n\t ...event,\n\t ...(event.breadcrumbs && {\n\t breadcrumbs: event.breadcrumbs.map(b => ({\n\t ...b,\n\t ...(b.data && {\n\t data: normalize$3(b.data, depth, maxBreadth),\n\t }),\n\t })),\n\t }),\n\t ...(event.user && {\n\t user: normalize$3(event.user, depth, maxBreadth),\n\t }),\n\t ...(event.contexts && {\n\t contexts: normalize$3(event.contexts, depth, maxBreadth),\n\t }),\n\t ...(event.extra && {\n\t extra: normalize$3(event.extra, depth, maxBreadth),\n\t }),\n\t };\n\n\t // event.contexts.trace stores information about a Transaction. Similarly,\n\t // event.spans[] stores information about child Spans. Given that a\n\t // Transaction is conceptually a Span, normalization should apply to both\n\t // Transactions and Spans consistently.\n\t // For now the decision is to skip normalization of Transactions and Spans,\n\t // so this block overwrites the normalized event to add back the original\n\t // Transaction information prior to normalization.\n\t if (event.contexts && event.contexts.trace && normalized.contexts) {\n\t normalized.contexts.trace = event.contexts.trace;\n\n\t // event.contexts.trace.data may contain circular/dangerous data so we need to normalize it\n\t if (event.contexts.trace.data) {\n\t normalized.contexts.trace.data = normalize$3(event.contexts.trace.data, depth, maxBreadth);\n\t }\n\t }\n\n\t // event.spans[].data may contain circular/dangerous data so we need to normalize it\n\t if (event.spans) {\n\t normalized.spans = event.spans.map(span => {\n\t // We cannot use the spread operator here because `toJSON` on `span` is non-enumerable\n\t if (span.data) {\n\t span.data = normalize$3(span.data, depth, maxBreadth);\n\t }\n\t return span;\n\t });\n\t }\n\n\t return normalized;\n\t }", "function normalize(obj) {\n if(!obj) return;\n\n if(obj._id) {\n obj.id = obj._id.toString();\n delete obj._id;\n }\n\n return obj;\n}", "function prep(obj) {\n\t\tif (obj.__c) {\n\t\t\t// object is entity\n\t\t\tvar data = { c: [], attr: {} };\n\t\t\tobj.trigger(\"SaveData\", data, prep);\n\t\t\tfor (var i in obj.__c) {\n\t\t\t\tdata.c.push(i);\n\t\t\t}\n\t\t\tdata.c = data.c.join(', ');\n\t\t\tobj = data;\n\t\t}\n\t\telse if (typeof obj == 'object') {\n\t\t\t// recurse and look for entities\n\t\t\tfor (var prop in obj) {\n\t\t\t\tobj[prop] = prep(obj[prop]);\n\t\t\t}\n\t\t}\n\t\treturn obj;\n\t}", "static Normalized(x, y) {\n let vec = new Vec2(x, y);\n if (vec.Magnitude() === 0)\n return new Vec2(0);\n return vec.Divide(vec.Magnitude());\n }", "normalize() {\r\n let length = this.length();\r\n return new Vector2D(this.x / length, this.y / length);\r\n }", "normalize(editor) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var {\n force = false\n } = options;\n\n var getDirtyPaths = editor => {\n return DIRTY_PATHS.get(editor) || [];\n };\n\n if (!Editor.isNormalizing(editor)) {\n return;\n }\n\n if (force) {\n var allPaths = Array.from(Node.nodes(editor), (_ref2) => {\n var [, p] = _ref2;\n return p;\n });\n DIRTY_PATHS.set(editor, allPaths);\n }\n\n if (getDirtyPaths(editor).length === 0) {\n return;\n }\n\n Editor.withoutNormalizing(editor, () => {\n var max = getDirtyPaths(editor).length * 42; // HACK: better way?\n\n var m = 0;\n\n while (getDirtyPaths(editor).length !== 0) {\n if (m > max) {\n throw new Error(\"\\n Could not completely normalize the editor after \".concat(max, \" iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\\n \"));\n }\n\n var path = getDirtyPaths(editor).pop();\n var entry = Editor.node(editor, path);\n editor.normalizeNode(entry);\n m++;\n }\n });\n }", "static setNormalizeV3(xyz) {\nvar len;\n//--------------\nlen = this.lengthV3(xyz);\nif (1e-5 <= len) {\nreturn this.setInverseScaleV3(xyz, len);\n} else {\nreturn xyz;\n}\n}", "function normalize(obj) {\n var result = obj;\n if (typeof obj !== \"function\") {\n if (typeof obj !== \"undefined\") {\n if (typeof obj !== \"object\") {\n result = (function(value) { return function() { return value; }; })(obj);\n } else {\n result = (function(o) { return function(key) {\n if (o[key] === void 0) {\n if (o.__default) {\n return o.__default;\n }\n return key;\n } else {\n return o[key];\n }\n }; })(obj);\n }\n } else {\n result = function(passthru) { return passthru; };\n }\n }\n return result;\n}", "normalize() {\n let len = this.length();\n this.div(len);\n return this;\n }", "Normalize() {\n this.values = VecX.Normalized(this).values;\n return this;\n }", "function normalize(point) {\n var oneOverLen = 1 / ParticleUtils.length(point);\n point.x *= oneOverLen;\n point.y *= oneOverLen;\n }", "function sanitize(o) {\n if (o != null && typeof o === 'object' && !o._sanitized) {\n if (Array.isArray(o)) {\n let a = [];\n Object.defineProperty(a, '_sanitized', { value: true });\n o.forEach(e => a.push(sanitize(e)));\n return a;\n } else if (o.constructor && o.constructor.name === 'model') {\n let s = {};\n Object.defineProperty(s, '_sanitized', { value: true });\n for (const p in o) {\n let v = o[p];\n if (/^\\$/.test(p) || p === 'db' || p === 'opts' || p === 'conn' || p === 'schema' || p === 'collection')\n continue;\n if (typeof v !== 'function')\n s[p] = sanitize(v);\n }\n return s;\n }\n }\n return o;\n}", "function restoreObjectTransforms(objectData) {\n objectData = objectData || {};\n var object, objectId, transform;\n\n for (objectId in objectData) {\n if (objectData.hasOwnProperty(objectId)) {\n object = Human.scene.objects[objectId];\n transform = objectData[objectId].transform;\n if (object && transform) {\n object.setTransform(restoreTransform(object, transform));\n }\n }\n }\n }", "static normalizeV3(xyza) {\nreturn this.setNormalizeV3(this.copyOfV3(xyza));\n}", "function normalize(term) {\n var arr = [];\n for(var i in term) {\n // normalize everything!\n var value = term[i];\n if(value instanceof Object) {\n // it's an object, loop through these values as well\n var a = normalize(value);\n a.forEach(function(el) {\n arr.push(el);\n });\n }\n value = \"\"+value; // JS string\n // ok for each value we must trim() it and lowercase() it\n value = value.trim().toLowerCase();\n // then we must split it by space, comma and other things\n var words = splitter(value);\n\n for(var x=0; x<words.length; x++) {\n // add each word to our main array\n arr.push(words[x]);\n }\n }\n return arr;\n }", "setNormalizing(editor, isNormalizing) {\n NORMALIZING.set(editor, isNormalizing);\n }", "Normalized() {\n return Vec3.Normalized(this);\n }", "applyToObjects ( to_obj ) {\n\t\tthis.applyIn( this.root, to_obj )\n\t}", "Normalized() {\n return Vec2.Normalized(this);\n }", "function normalize(obj) {\n if (obj === null || typeof obj !== 'object') {\n return JSON.stringify(obj);\n }\n if (obj instanceof Array) {\n return '[' + obj.map(normalize).join(', ') + ']';\n }\n let answer = '{';\n for (const key of Object.keys(obj).sort()) {\n answer += key + ': ';\n answer += normalize(obj[key]);\n answer += ', ';\n }\n answer += '}';\n return answer;\n}", "function normalizeInputs(inputs) {\n var rinputs = [];\n\n for (var i = 0; i < inputs.length; i++) {\n rinputs.push(inputs[i].normalize());\n }\n\n return rinputs;\n}", "function normalizer(toBeNormalized){\n return toBeNormalized.toLowerCase();\n}", "function normalizesynth(ob){\r\n\t\r\n\tvar o = JSON.parse(JSON.stringify(ob));\r\n\t\r\n\tif(!o){ o = {}; }\r\n\t\r\n\t// Defaults\r\n\tif(!o.waveforms){ o.waveforms = [ [0, [[0.25, 1], [0.75, -1]] ] ]; }\r\n\tif(o.waveforms.length<1){ o.waveforms = [ [0, [[0.25, 1], [0.75, -1]] ] ]; }\r\n\tif(!o.voices){ o.voices = [ [1,[[0.5, 0]]] ]; }\r\n\tif(o.voices.length<1){ o.voices = [ [1,[[0.5, 0]]] ]; }\r\n\tif(!o.predrive){ o.predrive = [[0.5, 1]]; }\r\n\tif(!o.envelope){ o.envelope = [[0,0],[0.001,1],[1,0]]; }\r\n\tif(!o.pan){ o.pan = [[0.5, 0]]; }\r\n\tif(!o.defaultlength){ o.defaultlength = 1; }\r\n\tif(!o.defaultbasefreq){ o.defaultbasefreq = 440; }\r\n\t\r\n\t// Waveforms\r\n\tfor(var i=0; i<o.waveforms.length; i++){ normalizecontrolpoints(o.waveforms[i][1]); }\r\n\to.waveforms.sort( function(a,b){return a[0]-b[0];} );\r\n\t\r\n\t// making sure all waveforms has the same number of controlpoints\r\n\tvar ml = 0, dml = 0;\r\n\tfor(var i=0; i<o.waveforms.length; i++){ if(o.waveforms[i][1].length>ml){ ml = o.waveforms[i][1].length;} }\r\n\tfor(var i=0; i<o.waveforms.length; i++){ \r\n\t\tdml = ml-o.waveforms[i][1].length;\r\n\t\tfor(var j=0; j<dml; j++){ o.waveforms[i][1].push([0.5, 0]); }\r\n\t}\r\n\t\r\n\t// Voices\r\n\tfor(var i=0; i<o.voices.length; i++){ normalizecontrolpoints(o.voices[i][1]); }\r\n\t\r\n\t// Pre-drive\r\n\tnormalizecontrolpoints(o.predrive);\r\n\t\r\n\t// Envelope\r\n\tnormalizecontrolpoints(o.envelope);\r\n\t\r\n\t// Pan\r\n\tnormalizecontrolpoints(o.pan);\r\n\t\r\n\treturn o;\r\n\t\r\n}// End of normalizesynth()", "attract(object){\n\t\tlet force = p5.Vector.sub(this.loc, object.loc);\n\t\tlet distance = force.mag();\n\t\tdistance = constrain(distance, 10, 30);\n\n\t\tforce.normalize();\n\t\tlet strength = (this.G*this.mass)/(distance*distance);\n\t\tforce.mult(strength);\n\t\tobject.applyForce(force);\n\t}", "static normalize(v) {\r\n try {\r\n if (!(v instanceof Vector))\r\n throw \"Vector.normalize: parameter not a vector\";\r\n else {\r\n var lenDenom = 1/Math.sqrt(Vector.dot(v,v));\r\n return(Vector.scale(lenDenom,v));\r\n }\r\n } // end try\r\n\r\n catch(e) {\r\n console.log(e);\r\n return(new Vector(NaN,NaN,NaN));\r\n }\r\n }", "function normalize(massfunc) {\n // calculate the sum of numbers in pmf to normalize it\n let pmf = Object.assign({}, massfunc); // javascript uses call by sharing for object arguments, so copy object using Object.assign\n let sum = 0;\n for (let i in pmf) {\n sum += pmf[i];\n }\n // normalize pmf and convert to cmf\n let cmf = {};\n for (let i = 1; i <= 5; ++i) {\n pmf[i] /= sum;\n cmf[i] = i == 1 ? pmf[i] : cmf[i - 1] + pmf[i];\n }\n return cmf;\n }", "Normalize() {\n let vec = Vec2.Normalized(this);\n this.x = vec.x;\n this.y = vec.y;\n return this;\n }", "function traverse(obj) {\n _lodash2.default.each(obj, function (val, indexOrProp) {\n // Move deeper into the object\n var next = obj[indexOrProp];\n\n // If we can go no further, then quit\n if (MongoObject.isBasicObject(next)) {\n traverse(next);\n } else if (Array.isArray(next)) {\n obj[indexOrProp] = _lodash2.default.without(next, REMOVED_MARKER);\n traverse(obj[indexOrProp]);\n }\n });\n }", "function process(obj) {\n\t\tif (obj.c) {\n\t\t\tvar d = Crafty.e(obj.c)\n\t\t\t\t\t\t.attr(obj.attr)\n\t\t\t\t\t\t.trigger('LoadData', obj, process);\n\t\t\treturn d;\n\t\t}\n\t\telse if (typeof obj == 'object') {\n\t\t\tfor (var prop in obj) {\n\t\t\t\tobj[prop] = process(obj[prop]);\n\t\t\t}\n\t\t}\n\t\treturn obj;\n\t}", "static normalize(v) {\n try {\n if (!(v instanceof Vector))\n throw \"Vector.normalize: parameter not a vector\";\n else {\n var lenDenom = 1/Math.sqrt(Vector.dot(v,v));\n return(Vector.scale(lenDenom,v));\n }\n } // end try\n \n catch(e) {\n console.log(e);\n return(new Vector(NaN,NaN,NaN));\n }\n }", "function normalizeWordpress(data) {\n return (0, _applyToOneOrMany.default)(_normalizeWordpressPost, data);\n}", "normalize (data) {\n if (data.coordinates.length > 2) {\n return openlayers.proj.transformExtent(data.coordinates, openlayers.proj.get(data.from), openlayers.proj.get(data.to))\n } else {\n return openlayers.proj.transform(data.coordinates, data.from, data.to)\n }\n }", "normalize() {\n let scale = 1.0 / this.length();\n this.xyz = this.xyz.multiplyScalar(scale);\n this.w *= scale;\n return this;\n }", "_normalizeEvent(event, depth, maxBreadth) {\n if (!event) {\n return null;\n }\n\n const normalized = {\n ...event,\n ...(event.breadcrumbs && {\n breadcrumbs: event.breadcrumbs.map(b => ({\n ...b,\n ...(b.data && {\n data: utils.normalize(b.data, depth, maxBreadth),\n }),\n })),\n }),\n ...(event.user && {\n user: utils.normalize(event.user, depth, maxBreadth),\n }),\n ...(event.contexts && {\n contexts: utils.normalize(event.contexts, depth, maxBreadth),\n }),\n ...(event.extra && {\n extra: utils.normalize(event.extra, depth, maxBreadth),\n }),\n };\n\n // event.contexts.trace stores information about a Transaction. Similarly,\n // event.spans[] stores information about child Spans. Given that a\n // Transaction is conceptually a Span, normalization should apply to both\n // Transactions and Spans consistently.\n // For now the decision is to skip normalization of Transactions and Spans,\n // so this block overwrites the normalized event to add back the original\n // Transaction information prior to normalization.\n if (event.contexts && event.contexts.trace && normalized.contexts) {\n normalized.contexts.trace = event.contexts.trace;\n\n // event.contexts.trace.data may contain circular/dangerous data so we need to normalize it\n if (event.contexts.trace.data) {\n normalized.contexts.trace.data = utils.normalize(event.contexts.trace.data, depth, maxBreadth);\n }\n }\n\n // event.spans[].data may contain circular/dangerous data so we need to normalize it\n if (event.spans) {\n normalized.spans = event.spans.map(span => {\n // We cannot use the spread operator here because `toJSON` on `span` is non-enumerable\n if (span.data) {\n span.data = utils.normalize(span.data, depth, maxBreadth);\n }\n return span;\n });\n }\n\n return normalized;\n }", "Normalized() {\n return VecX.Normalized(this);\n }", "function walkObjectProcess()\n\t\t{\n\t\t\t// the function to process the children\n\t\t\t\tfunction process(element, index, depth)\n\t\t\t\t{\n\t\t\t\t\ttrace (indent(depth) + '/' + element.name);\n\t\t\t\t}\n\n\t\t\t// the function to identify the children\n\t\t\t\tfunction getContents(element)\n\t\t\t\t{\n\t\t\t\t\treturn element instanceof Folder ? element.contents : null;\n\t\t\t\t}\n\n\t\t\t// start processing\n\t\t\t\tvar folder = new Folder('{user}');\n\t\t\t\tUtils.walk (folder, process, getContents)\n\t\t}", "function normalizamosElFitness() {\n let sum = 0;\n for (let i = 0; i < fitness.length; i++) {\n sum += fitness[i];\n }\n for (let i = 0; i < fitness.length; i++) {\n fitness[i] = fitness[i] / sum;\n }\n}", "function normalize(point) {\n let x = point.x;\n let y = point.y;\n let bSquared = (x * x) + (y * y);\n let mag = Math.sqrt(bSquared);\n point.x = x / mag;\n point.y = y / mag;\n return point;\n}", "function normalize(vec) {\n\tvar mag = magnitude(vec);\n\t// console.log(typeof vec[0]);\n\tvar norm = [vec[0] / mag, vec[1] / mag];\n\t// console.log(norm);\n\treturn norm;\n}", "function NormalizedArray() {\n\n var members = {};\n var wordCount = 0;\n var normalized = false;\n this.ls = [];\n\n /* add(string) => pushes into ls and members if it's unique\n otherwise, add 1 to the number of times it has been added */\n this.add = function(item) {\n if (members[item] != undefined)\n members[item] += 1;\n\n else {\n members[item] = 1;\n this.ls.push(item);\n }\n wordCount += 1; // always\n }\n // word count => word frequency\n this.normalize = function() {\n if (normalized)\n throw 'NormalizedArray: normalize can only be called once';\n\n for (var i = 0; i < this.ls.length; i++)\n this.ls[i] = [this.ls[i], (members[this.ls[i]] / wordCount)];\n\n normalized = true;\n }\n}", "function insert_per_vertex_normals_to_parsed_OBJ( mesh )\n {\n /// 1 Initialize each vertex normal to zero.\n /// 2 Iterate over each face and calculate the cross product of its (first two) edges.\n /// 3 Contribute the face's normal to each of its vertices's normals.\n /// 4 Normalize each vertex normal.\n /// 5 Create faceNormalIndices.\n \n /// 1\n var vertex_normals = [];\n for( var i = 0; i < mesh.vertex.positions.length; ++i )\n {\n vertex_normals.push( [ 0., 0., 0. ] );\n }\n \n for( var i = 0; i < mesh.faceVertexIndices.positions.length; ++i )\n {\n var fvi = mesh.faceVertexIndices.positions[i];\n \n /// 2\n var n = cross(\n sub( mesh.vertex.positions[ fvi[1] ], mesh.vertex.positions[ fvi[0] ] ),\n sub( mesh.vertex.positions[ fvi[2] ], mesh.vertex.positions[ fvi[0] ] )\n );\n \n /// 3\n for( var vi = 0; vi < fvi.length; ++vi )\n {\n vertex_normals[ fvi[ vi ] ] = add( vertex_normals[ fvi[ vi ] ], n );\n }\n }\n \n /// 4\n for( var i = 0; i < vertex_normals.length; ++i )\n {\n vertex_normals[i] = normalized( vertex_normals[i] );\n }\n \n /// 5\n mesh.vertex.normals = vertex_normals;\n // Use map and slice(0) to create a deep copy.\n mesh.faceVertexIndices.normals = mesh.faceVertexIndices.positions.map( function( face ) { return face.slice(0); } );\n }", "function edgeVisual_normalize(a) {\n if (!(a instanceof Array)) {\n a = [a, a];\n }\n\n return a;\n}", "static Normalized(x, y, z) {\n let vec = new Vec3(x, y, z);\n if (vec.Magnitude() === 0)\n return new Vec3(0);\n return vec.Divide(vec.Magnitude());\n }", "function normalize(point){\n while (point.node.nodeType != 3 && !isBR(point.node)) {\n var newNode = point.node.childNodes[point.offset] || point.node.nextSibling;\n point.offset = 0;\n while (!newNode && point.node.parentNode) {\n point.node = point.node.parentNode;\n newNode = point.node.nextSibling;\n }\n point.node = newNode;\n if (!newNode) {\n break;\n }\n }\n }", "Normalize() {\n let vec = Vec3.Normalized(this);\n this.x = vec.x;\n this.y = vec.y;\n this.z = vec.z;\n return this;\n }", "function normalizeV(v) {\n\tvar vLen = Math.sqrt(v.x*v.x + v.y*v.y + v.z*v.z);\n\tv.x /= vLen;\n\tv.y /= vLen;\n\tv.z /= vLen;\n\treturn v;\n}", "function clean_obj(obj) {\n Object.keys(obj).forEach(function(key) {\n if (obj[key].length) obj[key] = obj[key][0];\n });\n}", "calculateNormals() {\r\n // MP2: Implement this function!\r\n\r\n // initialize an NArray containing M normals\r\n let normals = [];\r\n for(let i = 0; i < this.numVertices; i++) {\r\n normals.push([0, 0, 0]);\r\n }\r\n\r\n // iterate all triangles\r\n for(let i = 0; i < this.numFaces; i++) {\r\n let indices = this.getTriangleVertexByIndex(i);\r\n let vertices = this.createAndGetPosDataByIndex(indices);\r\n let N = this.computeNormalForTriangles(vertices[0], vertices[1], vertices[2]);\r\n // average vertex normals by scale with factor 0.5\r\n glMatrix.vec3.scale(N, N, 0.5);\r\n\r\n indices.forEach(function(index) {\r\n normals[index] = normals[index].map((a, i) => a + N[i]);\r\n });\r\n }\r\n\r\n // normalize each normal in N array to unit length\r\n for(let i = 0; i < this.numVertices; i++) {\r\n let tmp = glMatrix.vec3.fromValues(normals[i][0], normals[i][1], normals[i][2]);\r\n glMatrix.vec3.normalize(tmp, tmp);\r\n this.normalData.push(...tmp);\r\n }\r\n }" ]
[ "0.63614464", "0.61781055", "0.61748886", "0.61282885", "0.6031321", "0.5866984", "0.5849714", "0.5836643", "0.5836643", "0.5826804", "0.5739979", "0.5727746", "0.57100224", "0.5659664", "0.5642877", "0.55743283", "0.5571632", "0.55670726", "0.5559348", "0.55572414", "0.5555236", "0.55392885", "0.552726", "0.5489828", "0.5480721", "0.545962", "0.5453913", "0.5450718", "0.5429013", "0.542068", "0.5385948", "0.53672385", "0.53672385", "0.5350604", "0.53349155", "0.5290781", "0.5276971", "0.5265457", "0.5252061", "0.52459365", "0.520056", "0.51926076", "0.51915455", "0.5184227", "0.5173469", "0.5161001", "0.5161001", "0.51585877", "0.51580185", "0.5140915", "0.5139075", "0.5127517", "0.5118723", "0.50846684", "0.507479", "0.5050321", "0.5047414", "0.5046044", "0.5035708", "0.5027187", "0.5024793", "0.5015864", "0.49985594", "0.49970958", "0.4990013", "0.49852502", "0.49850693", "0.49799216", "0.49783197", "0.49740514", "0.4970548", "0.49644312", "0.4949066", "0.49413192", "0.49380362", "0.4930696", "0.4919163", "0.49123198", "0.49069306", "0.4900957", "0.48730695", "0.48638827", "0.4850183", "0.4848171", "0.4842566", "0.48417613", "0.4841174", "0.48310554", "0.48299766", "0.48299298", "0.48291925", "0.4824906", "0.48154083", "0.4812739", "0.4809051", "0.4799196", "0.47865492", "0.47823372", "0.4781484", "0.477965", "0.47791654" ]
0.0
-1
Given any captured exception, extract its keys and create a sorted and truncated list that will be used inside the event message. eg. `Nonerror exception captured with keys: foo, bar, baz`
function extractExceptionKeysForMessage(exception, maxLength) { if (maxLength === void 0) { maxLength = 40; } var keys = Object.keys(getWalkSource(exception)); keys.sort(); if (!keys.length) { return '[object has no keys]'; } if (keys[0].length >= maxLength) { return Object(_string__WEBPACK_IMPORTED_MODULE_5__[/* truncate */ "d"])(keys[0], maxLength); } for (var includedKeys = keys.length; includedKeys > 0; includedKeys--) { var serialized = keys.slice(0, includedKeys).join(', '); if (serialized.length > maxLength) { continue; } if (includedKeys === keys.length) { return serialized; } return Object(_string__WEBPACK_IMPORTED_MODULE_5__[/* truncate */ "d"])(serialized, maxLength); } return ''; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function extractExceptionKeysForMessage(exception, maxLength) {\n if (maxLength === void 0) { maxLength = 40; }\n var keys = Object.keys(getWalkSource(exception));\n keys.sort();\n if (!keys.length) {\n return '[object has no keys]';\n }\n if (keys[0].length >= maxLength) {\n return string_1.truncate(keys[0], maxLength);\n }\n for (var includedKeys = keys.length; includedKeys > 0; includedKeys--) {\n var serialized = keys.slice(0, includedKeys).join(', ');\n if (serialized.length > maxLength) {\n continue;\n }\n if (includedKeys === keys.length) {\n return serialized;\n }\n return string_1.truncate(serialized, maxLength);\n }\n return '';\n}", "function extractExceptionKeysForMessage(exception, maxLength = 40) {\n\t const keys = Object.keys(convertToPlainObject(exception));\n\t keys.sort();\n\n\t if (!keys.length) {\n\t return '[object has no keys]';\n\t }\n\n\t if (keys[0].length >= maxLength) {\n\t return truncate(keys[0], maxLength);\n\t }\n\n\t for (let includedKeys = keys.length; includedKeys > 0; includedKeys--) {\n\t const serialized = keys.slice(0, includedKeys).join(', ');\n\t if (serialized.length > maxLength) {\n\t continue;\n\t }\n\t if (includedKeys === keys.length) {\n\t return serialized;\n\t }\n\t return truncate(serialized, maxLength);\n\t }\n\n\t return '';\n\t}", "function extractExceptionKeysForMessage(exception, maxLength) {\n if (maxLength === void 0) { maxLength = 40; }\n // tslint:disable:strict-type-predicates\n var keys = Object.keys(getWalkSource(exception));\n keys.sort();\n if (!keys.length) {\n return '[object has no keys]';\n }\n if (keys[0].length >= maxLength) {\n return Object(_string__WEBPACK_IMPORTED_MODULE_4__[\"truncate\"])(keys[0], maxLength);\n }\n for (var includedKeys = keys.length; includedKeys > 0; includedKeys--) {\n var serialized = keys.slice(0, includedKeys).join(', ');\n if (serialized.length > maxLength) {\n continue;\n }\n if (includedKeys === keys.length) {\n return serialized;\n }\n return Object(_string__WEBPACK_IMPORTED_MODULE_4__[\"truncate\"])(serialized, maxLength);\n }\n return '';\n}", "function extractExceptionKeysForMessage(exception, maxLength = 40) {\n const keys = Object.keys(convertToPlainObject(exception));\n keys.sort();\n\n if (!keys.length) {\n return '[object has no keys]';\n }\n\n if (keys[0].length >= maxLength) {\n return truncate(keys[0], maxLength);\n }\n\n for (let includedKeys = keys.length; includedKeys > 0; includedKeys--) {\n const serialized = keys.slice(0, includedKeys).join(', ');\n if (serialized.length > maxLength) {\n continue;\n }\n if (includedKeys === keys.length) {\n return serialized;\n }\n return truncate(serialized, maxLength);\n }\n\n return '';\n }", "function extractExceptionKeysForMessage(exception, maxLength = 40) {\n const keys = Object.keys(convertToPlainObject(exception));\n keys.sort();\n\n if (!keys.length) {\n return '[object has no keys]';\n }\n\n if (keys[0].length >= maxLength) {\n return string.truncate(keys[0], maxLength);\n }\n\n for (let includedKeys = keys.length; includedKeys > 0; includedKeys--) {\n const serialized = keys.slice(0, includedKeys).join(', ');\n if (serialized.length > maxLength) {\n continue;\n }\n if (includedKeys === keys.length) {\n return serialized;\n }\n return string.truncate(serialized, maxLength);\n }\n\n return '';\n}", "function getKeyError(err){\n var regex = /index\\:\\ (?:.*\\.)?\\$?(?:([_a-z0-9]*)(?:_\\d*)|([_a-z0-9]*))\\s*dup key/i,\n match = err.match(regex);\n return match[1] || match[2]; \n}", "function keysToEventMessage(keys, maxLength) {\r\n if (maxLength === void 0) {\r\n maxLength = 40;\r\n }\r\n if (!keys.length) {\r\n return '[object has no keys]';\r\n }\r\n if (keys[0].length >= maxLength) {\r\n return truncate(keys[0], maxLength);\r\n }\r\n for (var includedKeys = keys.length; includedKeys > 0; includedKeys--) {\r\n var serialized = keys.slice(0, includedKeys).join(', ');\r\n if (serialized.length > maxLength) {\r\n continue;\r\n }\r\n if (includedKeys === keys.length) {\r\n return serialized;\r\n }\r\n return truncate(serialized, maxLength);\r\n }\r\n return '';\r\n}", "getRetryableErrorMessages() {\n const {StatusCode} = this.Errors;\n\n const filtered = Object.keys(StatusCode)\n .filter(key => [\n 'STALE_ELEMENT_REFERENCE',\n 'ELEMENT_CLICK_INTERCEPTED',\n 'INVALID_ELEMENT_STATE',\n 'ELEMENT_IS_NOT_INTERACTABLE'\n ].includes(key))\n .reduce((obj, key) => {\n return {\n ...obj,\n [key]: StatusCode[key]\n };\n }, {});\n\n return Object.values(filtered);\n }", "function expandUnwindProtect(e, xs) {\n var ys = []\n \n var VALID_KEYS = [\n\t Keyword.create('try'), \n\t Keyword.create('catch'), \n\t Keyword.create('finally')\n ]\n\n function validate(key) {\n\t if (VALID_KEYS.indexOf(key) == -1) {\n\t throw Error('invalid key in unwind protect')\n\t }\n } \n\n xs.rest().forEach(function(x) {\n\t var key = x.first()\n\t var body = x.rest()\n\t validate(key)\n\n\t // if catch\n\t if (key == VALID_KEYS[1]) {\n\t var _e = e.extend()\t\n\t var local = bindLocal(e, body.first().first())\n\t body = expandBody(_e, body.rest())\n\t \n\t ys.push(List.create(key, List.create(local), body))\t \t \n\t } else {\n\t ys.push(List.create(key, expandBody(e, body)))\n\t }\n })\n\n return List.fromArray(ys).cons(Symbol.builtin('unwind-protect'))\n \n}", "parseErr(err) {\n if (!err.errors) return err;\n const messages = Object.keys(err.errors).map(errorKey =>\n `${errorKey} error: ${err.errors[errorKey]}`);\n return messages;\n }", "function notarizeFailure(collector, key) {\n return error => {\n console.error(key, error);\n collector[key] = error.message || error;\n };\n}", "function replaceErrors(key, value) {\r\n\t\t\tif (value instanceof Error) {\r\n\t\t\t\treturn Object.getOwnPropertyNames(value).reduce(function (error, key) {\r\n\t\t\t\t\terror[key] = value[key];\r\n\t\t\t\t\treturn error;\r\n\t\t\t\t}, {});\r\n\t\t\t}\r\n\t\t\treturn value;\r\n\t\t}", "function getOriginalErrorStack (e) {\n while (e.error != null) {\n e = e.error\n }\n\n return e.stack\n ? ErrorStackParser.parse(e)\n : []\n}", "moveErrorsToEvents(test) {\n if (test.errors) {\n for (let i = test.errorIndex; i < test.errors.length; i++) {\n test.events.push(test.errors[i]);\n }\n\n test.errorIndex = test.errors.length;\n }\n }", "function flattenError(errors){\n var fin = {};\n errors.array().forEach(element => {\n if(fin[element.param] === undefined)\n fin[element.param] = [element.msg]\n else\n fin[element.param].push(element.msg);\n \n });\n return fin;\n}", "function normalizeHeaders(headers) {\n var keys = [];\n for (var i = 0; i < headers.length; ++i) {\n var key = normalizeHeader(headers[i]);\n if (key.length > 0) {\n keys.push(key);\n Logger.log(key);\n }\n }\n return keys;\n}", "function getKeys(clickedEvent) {\n const keys = Object.keys(clickedEvent);\n keys.splice(keys.length - 1, 1);\n for (let i = 0; i < keys.length; i++) {\n if (keys[i] === \"startDate\") {\n keys.splice(i, 1, \"Start Date\")\n } else if (keys[i] === \"endDate\") {\n keys.splice(i, 1, \"End Date\")\n }\n }\n return keys;\n}", "initialiseStateErrors(fields) {\n return Object.keys(fields).reduce((accumulator, currentValue) => {\n accumulator[currentValue] = []\n return accumulator\n }, {})\n }", "function gatherParseErrors(err, hash) {\n var errLineNo = hash.loc.first_line;\n if (!parseErrMap[errLineNo]) {\n\tparseErrMap[errLineNo] = [ hash ];\n }\n else {\n\tparseErrMap[errLineNo].push(hash);\n }\n if (!parseErrMap.recoverable) {\n\t// I don't know why some errors are unrecoverable, but I think\n\t// this produces the best message we can under the circumstances.\n\tthrow new Error(\"Unrecoverable parser error\");\n }\n // don't throw, so we can find additional errors.\n}", "function _(e){return-1<Object.prototype.toString.call(e).indexOf(\"Error\")}", "function transformAjvErrors() {\n var errors = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n\n if (errors === null) {\n return [];\n }\n\n return errors.map(function (e) {\n var dataPath = e.dataPath,\n keyword = e.keyword,\n message = e.message,\n params = e.params,\n schemaPath = e.schemaPath;\n var property = \"\".concat(dataPath); // put data in expected format\n\n return {\n name: keyword,\n property: property,\n message: message,\n params: params,\n // specific to ajv\n stack: \"\".concat(property, \" \").concat(message).trim(),\n schemaPath: schemaPath\n };\n });\n}", "function normalizeArguments(raw_args) {\n var _a;\n\n const message_parts = [];\n let details = {};\n let err = undefined;\n Array.from(raw_args).forEach(arg => {\n if (!arg) return; // errors are first class, look for them first\n\n if (looksLikeAnError(arg)) {\n if (!err) err = arg; // extract it\n\n return;\n }\n\n if (!err && looksLikeAnError(arg.err)) {\n err = arg.err; // extract it\n // don't return, still stuff to pick\n }\n\n if (typeof arg === 'object') {\n details = { ...details,\n ...arg\n };\n return;\n }\n\n message_parts.push(String(arg));\n });\n\n if (typeof details.message === 'string' && !message_parts.length) {\n message_parts.push(details.message);\n delete details.message;\n }\n\n const message = message_parts.join(' ') || ((_a = err) === null || _a === void 0 ? void 0 : _a.message) || '(no message)';\n if (err) details.err = err;else delete details.err; // because could be present but not be a correct err type\n\n return [message, details];\n}", "function chkerr(err, kv, next) {\n if (err) { console.error(err, name); }\n _.each(kv, (v, k) => {\n result[k] = v;\n });\n return next();\n }", "renderErrors() {\n return (\n <ul>\n {Object.keys(this.props.errors).map((error, i) => (\n <li key={`error-${i}`}>{this.props.errors[error]}</li>\n ))}\n </ul>\n );\n }", "extractSequelizeErrors(errors) {\n let validationErrors = [];\n for (let i in errors) {\n if (validationErrors.indexOf(errors[i].message) === -1) {\n validationErrors.push(errors[i].message);\n }\n }\n return validationErrors;\n }", "function squash_errors() {\n if (error_list[0].type) {\n return;\n }\n\n // squask all un-type related errors\n var i;\n var err_data = error_list[0];\n for (i = 1; i < error_list.length; ++i) {\n if (!error_list[i].error.type) {\n err_data.error.list = err_data.error.list\n .concat(error_list[i].error.list)\n .filter(unique);\n err_data.response.push(error_list[i].response[0]);\n err_data.deferred.push(error_list[i].deferred[0]);\n error_list.splice(i, 1);\n --i;\n }\n }\n }", "renderErrors() {\n return (\n <ul>\n {Object.keys(this.state.errors).map((error, i) => (\n <li key={`error-${i}`}>{this.state.errors[error]}</li>\n ))}\n </ul>\n );\n }", "function transformV2Errors (sourceErrors) {\n if (!sourceErrors) {\n return null\n }\n\n const errors = {}\n const req = ' is required'\n const typeMatcher = new RegExp(/.*type': '(.*)'}}.*/)\n\n sourceErrors.forEach((err) => {\n // deal with errors which do not contain a source for the error\n if (typeof err.detail === 'string') {\n if (err.source.pointer === '/data/attributes/subject') {\n errors.subject = 'Subject' + req\n }\n\n if (err.source.pointer === '/data/attributes/notes') {\n errors.notes = 'Notes are required'\n }\n // this error only occurs if the service delivery exists and there are no other errors\n if (err.detail === 'This combination of service and service provider does not exist.') {\n errors.Alert = 'This combination of service and service provider does not exist.'\n }\n\n // most errors come in this form: {\"errors\":[{\"detail\":\"{'data': {'type': 'UKRegion'}} has no key id\",\n if (err.detail.startsWith('{\\'data')) {\n let type = typeMatcher.exec(err.detail)\n if (type.length > 1) {\n if (type[1] === 'Country') {\n errors.country_of_interest = type[1] + req\n } else if (type[1] === 'ServiceDeliveryStatus') {\n errors.status = 'Status ' + req\n } else if (type[1] === 'Team') {\n errors.dit_team = 'Service provider ' + req\n } else if (type[1] === 'UKRegion') {\n errors.uk_region = 'UK Region ' + req\n } else {\n errors[type[1].toLowerCase()] = type[1] + req\n }\n }\n }\n }\n })\n return errors\n}", "function hashList (hash, error) {\n let toReturn = ''\n if (Object.keys(hash).length > 0) {\n for (let item in hash) {\n toReturn += item + ': (' + hash[item] + ') \\n'\n }\n return toReturn\n } else {\n return error\n }\n}", "function propKeys(sourceKey) {\n return {\n error: sourceKey + 'Error',\n fetchedAt: sourceKey + 'FetchedAt',\n loading: sourceKey + 'Loading',\n ready: sourceKey + 'Ready'\n };\n}", "renderErrors() {\n return (\n <ul>\n {Object.keys(this.state.errors).map((error, i) => (\n <li key={`error-${i}`}>\n {this.state.errors[error]}\n </li>\n ))}\n </ul>\n );\n }", "normalize(events) {\n if (events.length == 0) {\n return events;\n }\n\n return events.map((e) => e.split('.').shift());\n }", "function Errors(props) {\n const { errors } = props;\n //index as key not best choice, but no other candidate\n const errs =\n errors.map((err, i) => <li key={i}>{err.message ?? err.toString()}</li>);\n return <ul className=\"errors\">{errs}</ul>;\n}", "function _(e){return Object.prototype.toString.call(e).indexOf(\"Error\")>-1}", "function getFirstKeyStartProps(prev) {\n if (prev.length === 0)\n return [];\n let i = prev.length;\n loop: while (--i >= 0) {\n switch (prev[i].type) {\n case 'doc-start':\n case 'explicit-key-ind':\n case 'map-value-ind':\n case 'seq-item-ind':\n case 'newline':\n break loop;\n }\n }\n while (prev[++i]?.type === 'space') {\n /* loop */\n }\n return prev.splice(i, prev.length);\n }", "function getLogEventStrings() {\n var eventsArr = [];\n var str = Logger.getLog();\n var arr = str.split(\"\\n\");\n// Logger.log(\"arr=\" + arr.length);\n for (var i in arr) {\n// Logger.log(\"arr[\" + i + \"]=\" + arr[i]);\n if ( arr[i].length > 0 ) {\n var regexResult = /.+?INFO: \\[EVENT\\] (.+)/.exec(arr[i]); //Is log string of [EVENT] type\n if (regexResult && regexResult[0].length>0) eventsArr.push(regexResult[1]);\n }\n }\n return eventsArr;\n}", "function squashErrors() {\n if (errorList[0].type) {\n return;\n }\n\n // squask all un-type related errors\n let i;\n const err = errorList[0];\n for (i = 1; i < errorList.length; ++i) {\n if (!errorList[i].error.type) {\n err.error.list = err.error.list\n .concat(errorList[i].error.list)\n .filter(unique);\n err.response.push(errorList[i].response[0]);\n err.deferred.push(errorList[i].deferred[0]);\n errorList.splice(i, 1);\n --i;\n }\n }\n }", "convertStack(err) {\n let frames;\n\n if (type.array(err.stack)) {\n frames = err.stack.map((frame) => {\n if (type.string(frame)) return frame;\n else return frame.toString();\n });\n } else if (type.string(err.stack)) {\n frames = err.stack.split(/\\n/g);\n }\n\n return frames;\n }", "function warnOnInvalidKey(child,knownKeys){{if(typeof child!=='object'||child===null){return knownKeys;}switch(child.$$typeof){case REACT_ELEMENT_TYPE:case REACT_PORTAL_TYPE:warnForMissingKey(child);var key=child.key;if(typeof key!=='string'){break;}if(knownKeys===null){knownKeys=new Set();knownKeys.add(key);break;}if(!knownKeys.has(key)){knownKeys.add(key);break;}warning(false,'Encountered two children with the same key, `%s`. '+'Keys should be unique so that components maintain their identity '+'across updates. Non-unique keys may cause children to be '+'duplicated and/or omitted — the behavior is unsupported and '+'could change in a future version.%s',key,getCurrentFiberStackAddendum$7());break;default:break;}}return knownKeys;}", "function getFirstKeyStartProps(prev) {\n if (prev.length === 0)\n return [];\n let i = prev.length;\n loop: while (--i >= 0) {\n switch (prev[i].type) {\n case 'doc-start':\n case 'explicit-key-ind':\n case 'map-value-ind':\n case 'seq-item-ind':\n case 'newline':\n break loop;\n }\n }\n while (prev[++i]?.type === 'space') {\n /* loop */\n }\n return prev.splice(i, prev.length);\n}", "function d(e){return-1<Object.prototype.toString.call(e).indexOf(\"Error\")}", "function formatError(e) {\n if (!e.err) {\n return e.message;\n }\n\n // PluginError\n if (typeof e.err.showStack === 'boolean') {\n return e.err.toString();\n }\n\n // Normal error\n if (e.err.stack) {\n return e.err.stack;\n }\n\n // Unknown (string, number, etc.)\n return new Error(String(e.err)).stack;\n}", "stackErrors(data) {\n if (!this.errors.find((error) => error.key == data.key)) {\n this.errors[data.key] = data.error;\n }\n }", "async function getKnownErrors() {\n const errs = await store.getAllKnownErrors();\n const indexedErrs = {\n unmanagedConvClassifiers: [],\n unmanagedVisrecClassifiers: [],\n badBluemixConvCredentials: [],\n badBluemixVisrecCredentials: [],\n };\n for (const err of errs) {\n switch (err.type) {\n case training_types_1.KnownErrorCondition.UnmanagedBluemixClassifier:\n if (err.servicetype === 'conv') {\n indexedErrs.unmanagedConvClassifiers.push(err.objid);\n }\n else if (err.servicetype === 'visrec') {\n indexedErrs.unmanagedVisrecClassifiers.push(err.objid);\n }\n else {\n log.error({ err }, 'Unrecognised known error');\n slack.notify('Unrecognised known error service type ' + err.servicetype, slack.SLACK_CHANNELS.CREDENTIALS);\n }\n break;\n case training_types_1.KnownErrorCondition.BadBluemixCredentials:\n if (err.servicetype === 'conv') {\n indexedErrs.badBluemixConvCredentials.push(err.objid);\n }\n else if (err.servicetype === 'visrec') {\n indexedErrs.badBluemixVisrecCredentials.push(err.objid);\n }\n else {\n log.error({ err }, 'Unrecognised known error');\n slack.notify('Unrecognised known error service type ' + err.servicetype, slack.SLACK_CHANNELS.CREDENTIALS);\n }\n break;\n default:\n log.error({ err }, 'Unrecognised known error');\n slack.notify('Unrecognised known error type ' + err.type, slack.SLACK_CHANNELS.CREDENTIALS);\n }\n }\n return indexedErrs;\n}", "function keymoved(err) {\n if(err) {\n var match = /^(MOVED|ASK) (\\d+) (.+)/.exec(err.message);\n if(match) {\n return match.slice(1,4);\n }\n }\n }", "formatEvent(event, eidx) {\n\t\t// Enum to human-readable structure to translate the various DOM contexts.\n\t\tconst locationTypes = {\n\t\t\t0: \"attribute name\",\n\t\t\t1: \"text\",\n\t\t\t2: \"node name\",\n\t\t\t3: \"attribute value\",\n\t\t\t4: \"comment block\"\n\t\t};\n\n\t\tvar ret = [];\n\t\tif (event.DOMContexts && event.DOMContexts.length > 0) {\n\t\t\tret = event.DOMContexts.map(\n\t\t\t\tfunction(context, cidx) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tHTMLLocationType:\n\t\t\t\t\t\t\tlocationTypes[context.HTMLLocationType],\n\t\t\t\t\t\tHTMLNodeType: context.HTMLNodeType,\n\t\t\t\t\t\tEventContext: context.EventContext,\n\t\t\t\t\t\tRawEvent: event.RawEvent.Data,\n\t\t\t\t\t\tRawEventIndex: cidx,\n\t\t\t\t\t\tEventType: event.EventType,\n\t\t\t\t\t\tEventHost: this.parseHost(event.EventURL),\n\t\t\t\t\t\tEventPath: this.parsePath(event.EventURL),\n\t\t\t\t\t\tSeverity: context.Severity\n\t\t\t\t\t};\n\t\t\t\t}.bind(this)\n\t\t\t);\n\t\t} else {\n\t\t\t// If there are no DOMContexts, it is most likely an HTTP response.\n\t\t\treturn {\n\t\t\t\tHTMLLocationType: \"n/a\",\n\t\t\t\tHTMLNodeType: \"n/a\",\n\t\t\t\tEventContext: \"n/a\",\n\t\t\t\tRawEvent: event.RawEvent.Data,\n\t\t\t\tRawEventIndex: 0, // this isn't really correct. there could be a case where there are two of the same tracer in an HTTP response\n\t\t\t\tEventType: event.EventType,\n\t\t\t\tEventHost: this.parseHost(event.EventURL),\n\t\t\t\tEventPath: this.parsePath(event.EventURL),\n\t\t\t\tSeverity: 0\n\t\t\t};\n\t\t}\n\n\t\treturn ret;\n\t}", "function findEntryPairsFromSourceEntries_(sourceEntryList, eventType) {\n var eventPairs = [];\n for (var i = 0; i < sourceEntryList.length; ++i) {\n var sourceEntry = sourceEntryList[i];\n if (sourceEntry) {\n var entries = sourceEntry.getLogEntries();\n var matchingEventPairs = findEntryPairsByType_(entries, eventType);\n eventPairs = eventPairs.concat(matchingEventPairs);\n }\n }\n return eventPairs;\n }", "function getLogEvents() {\n var eventMap = {};\n if ( Logger.getLog().length > 0 ) {\n var arr = Logger.getLog().split(\"\\n\");\n for (var i in arr) {\n var str = arr[i];\n var regexResultArr = str.match(\"(.+?) INFO: (.+)\");\n var timestamp = regexResultArr[0];\n var event = regexResultArr[1];\n eventMap[i] = timestamp + \" \" + event;\n }\n }\n return eventMap;\n}", "renderErrors() {\n return (\n <ul>\n {Object.keys(this.state.errors).map((error, i) => (\n <li key={`error-${i}`}>\n {this.state.errors[error]}\n </li>\n ))}\n </ul>\n );\n }", "function warnOnInvalidKey(child,knownKeys){{if((typeof child==='undefined'?'undefined':_typeof(child))!=='object'||child===null){return knownKeys;}switch(child.$$typeof){case REACT_ELEMENT_TYPE:case REACT_PORTAL_TYPE:warnForMissingKey(child);var key=child.key;if(typeof key!=='string'){break;}if(knownKeys===null){knownKeys=new Set();knownKeys.add(key);break;}if(!knownKeys.has(key)){knownKeys.add(key);break;}warning(false,'Encountered two children with the same key, `%s`. '+'Keys should be unique so that components maintain their identity '+'across updates. Non-unique keys may cause children to be '+'duplicated and/or omitted — the behavior is unsupported and '+'could change in a future version.%s',key,getCurrentFiberStackAddendum$7());break;default:break;}}return knownKeys;}", "function buildValidationMessage(dbError) {\n console.log(dbError);\n const errors = {};\n for (field in dbError) {\n if (field)\n errors[field] = dbError[field].message;\n }\n return errors;\n}", "function renderError() {\n console.log(\"errorMessage: \", errorMessage);\n if (!errorMessage || errorMessage === \"\") {\n return null;\n }\n\n const list = Object.entries(errorMessage).map(([key, val], index) => (\n <li key={index}>\n {key}: {val}\n </li>\n ));\n\n // render list\n return (\n <div>\n <ul>{list}</ul>\n </div>\n );\n }", "function warnOnInvalidKey(child,knownKeys){{if((typeof child==='undefined'?'undefined':_typeof(child))!=='object'||child===null){return knownKeys;}switch(child.$$typeof){case REACT_ELEMENT_TYPE:case REACT_CALL_TYPE:case REACT_PORTAL_TYPE:warnForMissingKey(child);var key=child.key;if(typeof key!=='string'){break;}if(knownKeys===null){knownKeys=new Set();knownKeys.add(key);break;}if(!knownKeys.has(key)){knownKeys.add(key);break;}warning(false,'Encountered two children with the same key, `%s`. '+'Keys should be unique so that components maintain their identity '+'across updates. Non-unique keys may cause children to be '+'duplicated and/or omitted — the behavior is unsupported and '+'could change in a future version.%s',key,getCurrentFiberStackAddendum$1());break;default:break;}}return knownKeys;}", "function warnOnInvalidKey(child,knownKeys){{if((typeof child==='undefined'?'undefined':_typeof(child))!=='object'||child===null){return knownKeys;}switch(child.$$typeof){case REACT_ELEMENT_TYPE:case REACT_CALL_TYPE:case REACT_PORTAL_TYPE:warnForMissingKey(child);var key=child.key;if(typeof key!=='string'){break;}if(knownKeys===null){knownKeys=new Set();knownKeys.add(key);break;}if(!knownKeys.has(key)){knownKeys.add(key);break;}warning(false,'Encountered two children with the same key, `%s`. '+'Keys should be unique so that components maintain their identity '+'across updates. Non-unique keys may cause children to be '+'duplicated and/or omitted — the behavior is unsupported and '+'could change in a future version.%s',key,getCurrentFiberStackAddendum$1());break;default:break;}}return knownKeys;}", "function warnOnInvalidKey(child,knownKeys){{if((typeof child==='undefined'?'undefined':_typeof(child))!=='object'||child===null){return knownKeys;}switch(child.$$typeof){case REACT_ELEMENT_TYPE:case REACT_CALL_TYPE:case REACT_PORTAL_TYPE:warnForMissingKey(child);var key=child.key;if(typeof key!=='string'){break;}if(knownKeys===null){knownKeys=new Set();knownKeys.add(key);break;}if(!knownKeys.has(key)){knownKeys.add(key);break;}warning(false,'Encountered two children with the same key, `%s`. '+'Keys should be unique so that components maintain their identity '+'across updates. Non-unique keys may cause children to be '+'duplicated and/or omitted — the behavior is unsupported and '+'could change in a future version.%s',key,getCurrentFiberStackAddendum$1());break;default:break;}}return knownKeys;}", "function getEventDescription(event) {\n const { message, event_id: eventId } = event;\n if (message) {\n return message;\n }\n\n const firstException = getFirstException(event);\n if (firstException) {\n if (firstException.type && firstException.value) {\n return `${firstException.type}: ${firstException.value}`;\n }\n return firstException.type || firstException.value || eventId || '<unknown>';\n }\n return eventId || '<unknown>';\n }", "function normalizeEventKey(event) {\n const { key, keyCode } = event;\n const isArrowKey =\n keyCode >= 37 && keyCode <= 40 && key.indexOf(\"Arrow\") !== 0;\n const eventKey = isArrowKey ? `Arrow${key}` : key;\n return eventKey;\n}", "function getEventDescription(event) {\n const { message, event_id: eventId } = event;\n if (message) {\n return message;\n }\n\n const firstException = getFirstException(event);\n if (firstException) {\n if (firstException.type && firstException.value) {\n return `${firstException.type}: ${firstException.value}`;\n }\n return firstException.type || firstException.value || eventId || '<unknown>';\n }\n return eventId || '<unknown>';\n}", "function normalizeHeaders(headers) {\n var keys = [];\n for (var i = 0; i < headers.length; ++i) {\n var key = normalizeHeader(headers[i]);\n if (key.length > 0) {\n keys.push(key);\n }\n }\n return keys;\n}", "function normalizeHeaders(headers) {\n var keys = [];\n for (var i = 0; i < headers.length; ++i) {\n var key = normalizeHeader(headers[i]);\n if (key.length > 0) {\n keys.push(key);\n }\n }\n return keys;\n}", "function normalizeHeaders(headers) {\n var keys = [];\n for (var i = 0; i < headers.length; ++i) {\n var key = normalizeHeader(headers[i]);\n if (key.length > 0) {\n keys.push(key);\n }\n }\n return keys;\n}", "function normalizeHeaders(headers) {\n var keys = [];\n for (var i = 0; i < headers.length; ++i) {\n var key = normalizeHeader(headers[i]);\n if (key.length > 0) {\n keys.push(key);\n }\n }\n return keys;\n}", "function normalizeHeaders(headers) {\n var keys = [];\n for (var i = 0; i < headers.length; ++i) {\n var key = normalizeHeader(headers[i]);\n if (key.length > 0) {\n keys.push(key);\n }\n }\n return keys;\n}", "function normalizeHeaders(headers) {\n var keys = [];\n for (var i = 0; i < headers.length; ++i) {\n var key = normalizeHeader(headers[i]);\n if (key.length > 0) {\n keys.push(key);\n }\n }\n return keys;\n}", "function warnOnInvalidKey(child, knownKeys) {\n\t {\n\t if (typeof child !== 'object' || child === null) {\n\t return knownKeys;\n\t }\n\t switch (child.$$typeof) {\n\t case REACT_ELEMENT_TYPE:\n\t case REACT_CALL_TYPE:\n\t case REACT_PORTAL_TYPE:\n\t warnForMissingKey(child);\n\t var key = child.key;\n\t if (typeof key !== 'string') {\n\t break;\n\t }\n\t if (knownKeys === null) {\n\t knownKeys = new Set();\n\t knownKeys.add(key);\n\t break;\n\t }\n\t if (!knownKeys.has(key)) {\n\t knownKeys.add(key);\n\t break;\n\t }\n\t warning(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$1());\n\t break;\n\t default:\n\t break;\n\t }\n\t }\n\t return knownKeys;\n\t }", "function getEventDescription(event) {\n\t const { message, event_id: eventId } = event;\n\t if (message) {\n\t return message;\n\t }\n\n\t const firstException = getFirstException(event);\n\t if (firstException) {\n\t if (firstException.type && firstException.value) {\n\t return `${firstException.type}: ${firstException.value}`;\n\t }\n\t return firstException.type || firstException.value || eventId || '<unknown>';\n\t }\n\t return eventId || '<unknown>';\n\t}", "function warnOnInvalidKey(child,knownKeys){{if(typeof child!=='object'||child===null){return knownKeys;}switch(child.$$typeof){case REACT_ELEMENT_TYPE:case REACT_PORTAL_TYPE:warnForMissingKey(child);var key=child.key;if(typeof key!=='string'){break;}if(knownKeys===null){knownKeys=new Set();knownKeys.add(key);break;}if(!knownKeys.has(key)){knownKeys.add(key);break;}error('Encountered two children with the same key, `%s`. '+'Keys should be unique so that components maintain their identity '+'across updates. Non-unique keys may cause children to be '+'duplicated and/or omitted — the behavior is unsupported and '+'could change in a future version.',key);break;}}return knownKeys;}", "function warnOnInvalidKey(child,knownKeys){{if(typeof child!=='object'||child===null){return knownKeys;}switch(child.$$typeof){case REACT_ELEMENT_TYPE:case REACT_PORTAL_TYPE:warnForMissingKey(child);var key=child.key;if(typeof key!=='string'){break;}if(knownKeys===null){knownKeys=new Set();knownKeys.add(key);break;}if(!knownKeys.has(key)){knownKeys.add(key);break;}error('Encountered two children with the same key, `%s`. '+'Keys should be unique so that components maintain their identity '+'across updates. Non-unique keys may cause children to be '+'duplicated and/or omitted — the behavior is unsupported and '+'could change in a future version.',key);break;}}return knownKeys;}", "function findLeft(event, key) {\n var arr = new Array();\n var copy = Object.assign({}, event);\n copy.key = key;\n arr.push(copy);\n if (!event.collideWith) {\n return 0;\n }\n var c_events = event.collideWith.split(\",\");\n for (var i = 0; i < c_events.length; i++) {\n if (c_events[i] == \"\") {\n continue;\n }\n var c_event_object = time[c_events[i]];\n var c_copy = Object.assign({}, c_event_object);\n c_copy.key = c_events[i];\n arr.push(c_copy);\n }\n arr.sort(compare);\n var idx = findIndexOfEvent(key, arr);\n var width = 620 / arr.length;\n var left = width * idx;\n return left;\n}", "getElementName(errors) {\n return Object.keys(errors.collect())[0];\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n\n if (typeof key !== 'string') {\n break;\n }\n\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n\n error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n\n if (typeof key !== 'string') {\n break;\n }\n\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n\n error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n\n if (typeof key !== 'string') {\n break;\n }\n\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n\n error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n\n if (typeof key !== 'string') {\n break;\n }\n\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n\n error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n\n if (typeof key !== 'string') {\n break;\n }\n\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n\n error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n\n if (typeof key !== 'string') {\n break;\n }\n\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n\n error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_COROUTINE_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning$24(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$5());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_COROUTINE_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning$24(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$5());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_COROUTINE_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning$24(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$5());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_COROUTINE_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning$24(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$5());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_COROUTINE_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning$24(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$5());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_COROUTINE_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning$24(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$5());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$1());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n\n if (typeof key !== 'string') {\n break;\n }\n\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n\n error(\n 'Encountered two children with the same key, `%s`. ' +\n 'Keys should be unique so that components maintain their identity ' +\n 'across updates. Non-unique keys may cause children to be ' +\n 'duplicated and/or omitted — the behavior is unsupported and ' +\n 'could change in a future version.',\n key,\n );\n\n break;\n }\n }\n\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$2());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$2());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$2());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$2());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$2());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$2());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$2());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$2());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$2());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$2());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n if (typeof key !== 'string') {\n break;\n }\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n warning(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.%s', key, getCurrentFiberStackAddendum$2());\n break;\n default:\n break;\n }\n }\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n\n if (typeof key !== 'string') {\n break;\n }\n\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n\n error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);\n\n break;\n }\n }\n\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n\n if (typeof key !== 'string') {\n break;\n }\n\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n\n error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);\n\n break;\n }\n }\n\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n\n if (typeof key !== 'string') {\n break;\n }\n\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n\n error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);\n\n break;\n }\n }\n\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n\n if (typeof key !== 'string') {\n break;\n }\n\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n\n error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);\n\n break;\n }\n }\n\n return knownKeys;\n }", "function warnOnInvalidKey(child, knownKeys) {\n {\n if (typeof child !== 'object' || child === null) {\n return knownKeys;\n }\n\n switch (child.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n warnForMissingKey(child);\n var key = child.key;\n\n if (typeof key !== 'string') {\n break;\n }\n\n if (knownKeys === null) {\n knownKeys = new Set();\n knownKeys.add(key);\n break;\n }\n\n if (!knownKeys.has(key)) {\n knownKeys.add(key);\n break;\n }\n\n error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);\n\n break;\n }\n }\n\n return knownKeys;\n }" ]
[ "0.7304901", "0.73008126", "0.7290147", "0.72591186", "0.72258234", "0.54549325", "0.53605604", "0.5154988", "0.5112228", "0.5079283", "0.5035567", "0.4984389", "0.49531645", "0.49511376", "0.4893601", "0.48805863", "0.48525614", "0.48444852", "0.4748979", "0.47236496", "0.46356267", "0.4624451", "0.4609782", "0.45778665", "0.45723602", "0.4554321", "0.45381472", "0.45362526", "0.45281214", "0.4524474", "0.45238692", "0.45225975", "0.45196798", "0.45152485", "0.45070392", "0.44969377", "0.44895697", "0.4473845", "0.44658202", "0.44533098", "0.4449805", "0.44455674", "0.4444273", "0.44427136", "0.44266462", "0.44119167", "0.43985838", "0.439799", "0.43905067", "0.43830347", "0.43761867", "0.4375534", "0.4365671", "0.4365671", "0.4365671", "0.43596122", "0.43437663", "0.4340334", "0.43324804", "0.43324804", "0.43324804", "0.43324804", "0.43324804", "0.43324804", "0.43316287", "0.43302324", "0.4329147", "0.4329147", "0.43285018", "0.4325435", "0.43199456", "0.43199456", "0.43199456", "0.43199456", "0.43199456", "0.43199456", "0.43170053", "0.43170053", "0.43170053", "0.43170053", "0.43170053", "0.43170053", "0.43167335", "0.4315515", "0.4313027", "0.4313027", "0.4313027", "0.4313027", "0.4313027", "0.4313027", "0.4313027", "0.4313027", "0.4313027", "0.4313027", "0.4313027", "0.43116206", "0.43116206", "0.43116206", "0.43116206", "0.43116206" ]
0.7280513
3
Given any object, return the new object with removed keys that value was `undefined`. Works recursively on objects and arrays.
function dropUndefinedKeys(val) { var e_1, _a; if (Object(_is__WEBPACK_IMPORTED_MODULE_2__[/* isPlainObject */ "h"])(val)) { var obj = val; var rv = {}; try { for (var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[/* __values */ "f"])(Object.keys(obj)), _c = _b.next(); !_c.done; _c = _b.next()) { var key = _c.value; if (typeof obj[key] !== 'undefined') { rv[key] = dropUndefinedKeys(obj[key]); } } } catch (e_1_1) { e_1 = { error: e_1_1 }; } finally { try { if (_c && !_c.done && (_a = _b.return)) _a.call(_b); } finally { if (e_1) throw e_1.error; } } return rv; } if (Array.isArray(val)) { return val.map(dropUndefinedKeys); } return val; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function removeUndefinedFromObject(obj) {\n return Object.entries(obj).reduce(function (acc, curEntry) {\n var key = curEntry[0],\n val = curEntry[1];\n if (val !== undefined) acc[key] = val;\n return acc;\n }, {});\n }", "function remove_falsy_values(obj) {\n var new_obj = {};\n for (var key in obj) {\n if (obj[key]) {\n new_obj[key] = obj[key];\n }\n }\n return new_obj;\n}", "static cleanObject(obj) {\n const validObj = (o) =>\n (Object.keys(o).length || (Array.isArray(o) && o.length)) && o;\n const itemToBool = (item) => {\n return typeof item !== 'object' || item === null\n ? item\n : // eslint-disable-next-line no-use-before-define\n validObj(clean(item));\n };\n\n const clean = (o) =>\n validObj(\n Array.isArray(o)\n ? o.map(itemToBool).filter(Boolean)\n : Object.entries(o).reduce((a, [key, val]) => {\n const newVal = itemToBool(val);\n if (\n // Here is the magic check null, undefined and type change (=> undefined recursively)\n newVal !== undefined &&\n newVal !== null &&\n typeof val === typeof newVal\n )\n a[key] = newVal;\n return a;\n }, {})\n );\n\n return clean(obj);\n }", "function removeFalsy(obj) {\n for(key in obj) {\n if(obj[key] == false || obj[key] == null || obj[key] == undefined ) {\n delete obj[key];\n }\n }\n return obj\n}", "function dropUndefinedKeys(inputValue) {\n // This map keeps track of what already visited nodes map to.\n // Our Set - based memoBuilder doesn't work here because we want to the output object to have the same circular\n // references as the input object.\n const memoizationMap = new Map();\n\n // This function just proxies `_dropUndefinedKeys` to keep the `memoBuilder` out of this function's API\n return _dropUndefinedKeys(inputValue, memoizationMap);\n }", "function dropUndefinedKeys(inputValue) {\n // This map keeps track of what already visited nodes map to.\n // Our Set - based memoBuilder doesn't work here because we want to the output object to have the same circular\n // references as the input object.\n const memoizationMap = new Map();\n\n // This function just proxies `_dropUndefinedKeys` to keep the `memoBuilder` out of this function's API\n return _dropUndefinedKeys(inputValue, memoizationMap);\n}", "function dropUndefinedKeys(inputValue) {\n\t // This map keeps track of what already visited nodes map to.\n\t // Our Set - based memoBuilder doesn't work here because we want to the output object to have the same circular\n\t // references as the input object.\n\t const memoizationMap = new Map();\n\n\t // This function just proxies `_dropUndefinedKeys` to keep the `memoBuilder` out of this function's API\n\t return _dropUndefinedKeys(inputValue, memoizationMap);\n\t}", "function filterNullInObject(object) {\n let newObject = {};\n\n let keys = Object.keys(object);\n\n for (var key of keys) {\n if (object[key] || object[key] == false) {\n newObject[key] = object[key];\n }\n }\n\n return newObject;\n}", "function dropUndefinedKeys(val) {\n var e_1, _a;\n if (is_1.isPlainObject(val)) {\n var obj = val;\n var rv = {};\n try {\n for (var _b = tslib_1.__values(Object.keys(obj)), _c = _b.next(); !_c.done; _c = _b.next()) {\n var key = _c.value;\n if (typeof obj[key] !== 'undefined') {\n rv[key] = dropUndefinedKeys(obj[key]);\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n return rv;\n }\n if (Array.isArray(val)) {\n return val.map(dropUndefinedKeys);\n }\n return val;\n}", "function dropUndefinedKeys(val) {\n var e_1, _a;\n if (Object(_is__WEBPACK_IMPORTED_MODULE_1__[\"isPlainObject\"])(val)) {\n var obj = val;\n var rv = {};\n try {\n for (var _b = tslib__WEBPACK_IMPORTED_MODULE_0__[\"__values\"](Object.keys(obj)), _c = _b.next(); !_c.done; _c = _b.next()) {\n var key = _c.value;\n if (typeof obj[key] !== 'undefined') {\n rv[key] = dropUndefinedKeys(obj[key]);\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n return rv;\n }\n if (Array.isArray(val)) {\n return val.map(dropUndefinedKeys);\n }\n return val;\n}", "function cleanObj(obj) {\n return Object.keys(obj).reduce(function (newObj, key) {\n if (typeof obj[key] !== 'undefined') {\n newObj[key] = obj[key];\n }\n\n return newObj;\n }, {});\n}", "function clean(obj) {\n var res = {};\n\n _underscoreWrapper.default.each(obj, function (value, key) {\n if (!_underscoreWrapper.default.isNull(value)) {\n res[key] = value;\n }\n });\n\n return res;\n}", "function cleanObject(obj) {\n const result = Object.assign(obj)\n for (const propName in result) {\n if (result[propName] === null || result[propName] === undefined) {\n delete result[propName];\n }\n }\n\n return result\n}", "remove_values(obj, vals = []) {\n if (!this.is_object(obj)) return false;\n for (var key in obj) {\n if (!obj.hasOwnProperty(key))\n continue;\n if (typeof obj[key] === 'object' && obj[key] !== null)\n obj[key] = this.remove_values(obj[key], vals);\n else\n if (vals.includes(obj[key])) \n delete obj[key];\n }\n return obj;\n }", "function reject(obj) {\n return foldl(function(result, val, key) {\n // strip any null or empty string values\n if (val !== null && val !== '' && !is.array(val)) {\n result[key] = val;\n }\n // strip any empty arrays\n if (is.array(val)) {\n var ret = [];\n // strip if there's only an empty string or null in the array since the settings UI lets you save additional rows even though some may be empty strings\n for (var x = 0; x < val.length; x++) {\n if (val[x] !== null && val[x] !== '') ret.push(val[x]);\n }\n if (!is.empty(ret)) {\n result[key] = ret;\n }\n }\n return result;\n }, {}, obj);\n}", "function gmaps_remove_empty_values(obj) {\n for(var key in obj) {\n\n // value is empty string\n if(obj[key] === '') {\n delete obj[key];\n }\n\n // value is array with only emtpy strings\n if(obj[key] instanceof Array) {\n var empty = true;\n for(var i = 0; i < obj[key].length; i++) {\n if(obj[key][i] !== '') {\n empty = false;\n break;\n }\n }\n\n if(empty)\n delete obj[key];\n }\n\n // value is object with only empty strings or arrays of empty strings\n if(typeof obj[key] === \"object\") {\n obj[key] = gmaps_remove_empty_values(obj[key]);\n\n var hasKeys = false;\n for(var objKey in obj[key]) {\n hasKeys = true;\n break;\n }\n\n if(!hasKeys)\n delete obj[key];\n }\n }\n\n return obj;\n}", "function denullify(obj) {\n Object.keys(obj).forEach((key) => {\n if (obj[key] && typeof obj[key] === 'object') {\n denullify(obj[key])\n } else if (obj[key] == null) {\n delete obj[key]\n }\n })\n}", "function purgeEmptyFields(obj) {\n Object.keys(obj).forEach(key => {\n const val = obj[key];\n if (val === '' || val === false || val === undefined || val === null) {\n delete obj[key];\n }\n });\n return obj;\n}", "async function removeEmptyKeys(obj) {\n\tObject.keys(obj).forEach((key) => {\n\t\tif (obj[key].length === 0) {\n\t\t\tdelete obj[key];\n\t\t}\n\t\tif (obj === 'Falso') {\n\t\t\tdelete obj[key];\n\t\t}\n\t});\n\treturn obj;\n}", "function purgeNullsFromObject(object) {\n if (object && typeof object === 'object' && !Array.isArray(object)) {\n for (const [key, value] of Object.entries(object)) {\n if (value === null)\n Reflect.deleteProperty(object, key);\n }\n }\n return object;\n}", "function clean(t) {\n for (const prop in t) {\n if (t[prop] === undefined) {\n delete t[prop];\n }\n }\n return t;\n}", "_ensureNoNulls(object) {\n Object.keys(object).forEach(key => {\n if (object[key] && typeof object[key] === 'object') this._ensureNoNulls(object[key])\n else if (object[key] == null) delete object[key]\n })\n }", "removeEmpty(obj){\n Object.keys(obj).forEach(key => {\n if (obj[key] && typeof obj[key] === 'object'){ \n this.removeEmpty(obj[key]);\n }\n else if (obj[key] == null){\n delete obj[key];\n } \n });\n return obj;\n }", "static stripUndefinedProperties(options) {\n return Object.keys(options).reduce((object, key) => {\n if (options[key] !== undefined) {\n object[key] = options[key];\n }\n return object;\n }, {});\n }", "function deleteEmptyProperties(obj) {\n for (const i in obj) {\n if (i === 'missingValues') continue\n if (obj[i] === undefined || obj[i] === '' || obj[i].length === 0) {\n delete obj[i]\n } else if (typeof obj[i] === 'object') {\n deleteEmptyProperties(obj[i])\n }\n }\n}", "function cleanArgs(args) {\n for (const arg of args) {\n if (typeof arg === 'object') {\n for (const [key, value] of Object.entries(arg)) {\n if (value === undefined) {\n delete arg[key];\n }\n }\n }\n }\n\n return args;\n}", "function truthy(Obj) {\n\t\tconsole.log('removing falsy values');\n\t\tfor (var i in Obj) {\n\t\t\tif (!Obj[i]) {\n\t\t\t\tdelete Obj[i];\n\t\t\t}\n\t\t}\n\t\tObj = Obj;\n\t\treturn Obj;\n\t}", "function clearEmpties(obj) {\n for (var key in obj) {\n if (!obj[key] || typeof obj[key] !== 'object') {\n continue;\n }\n\n clearEmpties(obj[key]);\n if (Object.keys(obj[key]).length === 0) {\n delete obj[key];\n }\n }\n return obj;\n}", "function without_nulls(obj, recurse) {\n if (recurse == null) {\n delete_null_properties(obj, true);\n } else {\n delete_null_properties(obj, recurse);\n }\n return obj;\n}", "function clean_obj(obj) {\n Object.keys(obj).forEach(function(key) {\n if (obj[key].length) obj[key] = obj[key][0];\n });\n}", "cleanFields(obj) {\n\n if (!(this.judgeNotNull(obj) && this.isObj(obj))) {\n return obj\n }\n for (let key in obj) {\n if (this.getType(obj[key]) === 'object') {\n this.cleanFields(obj[key])\n }\n if (!this.judgeNotNull(obj[key])) {\n delete obj[key]\n }\n }\n return obj\n }", "function without_fields(obj, fields) {\n var newObj = {}\n for (var key in obj) {\n if (!fields || fields.indexOf(key) < 0) {\n newObj[key] = obj[key];\n }\n }\n return newObj;\n}", "static removeUndefined(property) {\n if (typeof property === 'object') {\n Object.getOwnPropertyNames(property)\n .map(key => {\n if (typeof property[key] === 'undefined')\n delete property[key]\n else\n Record.removeUndefined(property[key])\n })\n }\n }", "function omitUndesired(obj) {\n return omitDeep(obj, ['structuredExample', 'structuredValue'])\n}", "function removeKeys(obj, keys) {\n if (!obj)\n return obj;\n const allKeys = Object.keys(obj);\n const keepKeys = allKeys.filter(x => !keys.includes(x));\n return pick(obj, keepKeys);\n}", "function filterUndefined(value) {\n return value !== undefined;\n}", "function removeUndefined(arr) {\n return arr.filter(function(item){\n return item !== undefined ? true: false;\n });\n }", "remove_props(obj, props = []) {\n if (!this.is_object(obj)) return false;\n for (var key in obj) {\n if (!obj.hasOwnProperty(key))\n continue;\n if (typeof obj[key] === 'object' && obj[key] !== null)\n obj[key] = this.remove_props(obj[key], props);\n else\n if (props.includes(key)) \n delete obj[key];\n }\n return obj;\n }", "function compactObject(data) {\n if (!isObject(data)) {\n return data;\n }\n\n return Object.keys(data).reduce(function (accumulator, key) {\n var isObj = isObject(data[key]);\n var value = isObj ? compactObject(data[key]) : data[key];\n var isEmptyObject = isObj && !Object.keys(value).length;\n\n if (value === undefined || isEmptyObject) {\n return accumulator;\n }\n\n return Object.assign(accumulator, _defineProperty({}, key, value));\n }, {});\n }", "function destructivelyDeleteFromObjectByKey(object, key){\n delete object[key];// modifies the original object\n return object;//returns object without the delete key/value pair\n}", "function clean(obj) {\n for (var propName in obj) { \n if (obj[propName] === null || obj[propName] === undefined || obj[propName] === \"\") {\n delete obj[propName];\n }\n }\n }", "function clean(obj) {\n for (var propName in obj) { \n if (obj[propName] === null || obj[propName] === undefined || obj[propName] === \"\") {\n delete obj[propName];\n }\n }\n }", "function remove_blanks(group, value_to_remove) {\n return {\n all: function() {\n return group.all().filter(function(d) {\n return d.key !== value_to_remove;\n });\n }\n };\n}", "function zeroNullObj(obj) {\n for (var prop in obj) {\n if (obj.hasOwnProperty(prop) && obj[prop] == null) {\n delete obj[prop];\n }\n }\n return obj;\n}", "function compactObject(data) {\n if (!isObject(data)) {\n return data;\n }\n\n return Object.keys(data).reduce(function(accumulator, key) {\n const isObj = isObject(data[key]);\n const value = isObj ? compactObject(data[key]) : data[key];\n const isEmptyObject = isObj && !Object.keys(value).length;\n if (value === undefined || isEmptyObject) {\n return accumulator;\n }\n return Object.assign(accumulator, {[key]: value});\n }, {});\n}", "function compactObject(data) {\n if (!isObject(data)) {\n return data;\n }\n\n return Object.keys(data).reduce(function(accumulator, key) {\n const isObj = isObject(data[key]);\n const value = isObj ? compactObject(data[key]) : data[key];\n const isEmptyObject = isObj && !Object.keys(value).length;\n if (value === undefined || isEmptyObject) {\n return accumulator;\n }\n return Object.assign(accumulator, {[key]: value});\n }, {});\n}", "function compactObject(data) {\n if (!isObject(data)) {\n return data;\n }\n\n return Object.keys(data).reduce(function (accumulator, key) {\n const isObj = isObject(data[key]);\n const value = isObj ? compactObject(data[key]) : data[key];\n const isEmptyObject = isObj && !Object.keys(value).length;\n\n if (value === undefined || isEmptyObject) {\n return accumulator;\n }\n\n return Object.assign(accumulator, {\n [key]: value\n });\n }, {});\n}", "function cleanObject(obj) {\n Object.keys(obj).forEach(function (key) {\n delete obj[key];\n });\n }", "function filterNull(opt) {\n const next = {}\n Object.keys(opt).forEach(key => {\n if (opt[key] !== null && opt[key] !== undefined) {\n next[key] = opt[key]\n }\n })\n return next\n}", "function noblanks(obj) {\n if (Array.isArray(obj)) {\n obj=obj.filter(item => item.toString().trim()!='');\n obj.forEach(item => { if (item instanceof Object) return this.noblanks(item); })\n } else if (obj instanceof Object) {\n Object.keys(obj).forEach(key => {\n let chd=obj[key];\n if (chd==='') delete obj[key];\n else if (chd instanceof Object) return this.noblanks(chd);\n })\n } else { if (obj=='') obj='--'; } // NOT an array OR object\n return obj;\n}", "function oreqUndefined () {\n var truthy = function truthy(v) {\n return v !== undefined;\n };\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var val = args.filter(truthy)[0];\n return truthy(val) ? val : undefined;\n}", "function applyReviver(reviver, obj, key, val) {\n if (val && typeof val === 'object') {\n if (Array.isArray(val)) {\n for (let i = 0, len = val.length; i < len; ++i) {\n const v0 = val[i];\n const v1 = applyReviver(reviver, val, String(i), v0);\n if (v1 === undefined)\n delete val[i];\n else if (v1 !== v0)\n val[i] = v1;\n }\n }\n else if (val instanceof Map) {\n for (const k of Array.from(val.keys())) {\n const v0 = val.get(k);\n const v1 = applyReviver(reviver, val, k, v0);\n if (v1 === undefined)\n val.delete(k);\n else if (v1 !== v0)\n val.set(k, v1);\n }\n }\n else if (val instanceof Set) {\n for (const v0 of Array.from(val)) {\n const v1 = applyReviver(reviver, val, v0, v0);\n if (v1 === undefined)\n val.delete(v0);\n else if (v1 !== v0) {\n val.delete(v0);\n val.add(v1);\n }\n }\n }\n else {\n for (const [k, v0] of Object.entries(val)) {\n const v1 = applyReviver(reviver, val, k, v0);\n if (v1 === undefined)\n delete val[k];\n else if (v1 !== v0)\n val[k] = v1;\n }\n }\n }\n return reviver.call(obj, key, val);\n}", "function clean(obj) {\n var propNames = Object.getOwnPropertyNames(obj);\n for (var i = 0; i < propNames.length; i++) {\n var propName = propNames[i];\n if (typeof obj[propName] === 'object') {\n this.clean(obj[propName]); //Recursively clean the subObject\n } else if (obj[propName] === null || obj[propName] === undefined || obj[propName] === '') {\n delete obj[propName];\n }\n }\n return obj;\n}", "function removeEmpty(x) {\n for (const key of Object.keys(x)) {\n if (!x[key]) {\n delete x[key];\n }\n }\n return x;\n}", "function unextend(object, baseObject) {\n var ret = {};\n\n $.each(object, function(key, value) {\n if (baseObject[key] !== value) {\n if (typeof value === 'object') {\n ret[key] = $.extend(true, {}, value);\n } else {\n ret[key] = value;\n }\n }\n });\n return ret;\n }", "function correctNull(object) {\n for (var key in object) {\n if (object[key] == \"null\") {\n object[key] = null;\n }\n }\n return object\n}", "function _nullAllProperties(obj) {\n _.forEach(obj, (value, key) => {\n if (_.isObject(value)) {\n _nullAllProperties(value);\n obj[key] = value;\n }\n else {\n obj[key] = null;\n }\n });\n}", "function filterByValue(arr, key){\n return arr.filter(curVal => curVal[key] !== undefined);\n}", "function clean(data) {\n var rt\n if (utilx.isObject(data)) {\n rt = {}\n Object.keys(data).forEach(function(k) {\n var n = data[k]\n var stats = n.__stats\n if (stats === STATS.LEFT || stats === STATS.DEFINE) {\n if (n.__origin) {\n data[k] = n.__origin\n } else {\n return\n }\n }\n innerClean(data, k, rt)\n })\n return rt\n }\n\n if (utilx.isArray(data)) {\n rt = []\n data.forEach(function(n, k) {\n innerClean(data, k, rt)\n })\n return rt\n }\n}", "function hasUndefined(obj) {\n\t if (obj === undefined) {\n\t return true;\n\t }\n\t if (obj) {\n\t if (_isArray(obj)) {\n\t for (var i = 0, len = obj.length; i < len; i++) {\n\t if (hasUndefined(obj[i])) {\n\t return true;\n\t }\n\t }\n\t }\n\t else if (typeof obj === \"object\") {\n\t var objKeys = _objectKeys(obj);\n\t var objKeysLength = objKeys.length;\n\t for (var i = 0; i < objKeysLength; i++) {\n\t if (hasUndefined(obj[objKeys[i]])) {\n\t return true;\n\t }\n\t }\n\t }\n\t }\n\t return false;\n\t }", "function hasUndefined(obj) {\n\t if (obj === undefined) {\n\t return true;\n\t }\n\t if (obj) {\n\t if (_isArray(obj)) {\n\t for (var i = 0, len = obj.length; i < len; i++) {\n\t if (hasUndefined(obj[i])) {\n\t return true;\n\t }\n\t }\n\t }\n\t else if (typeof obj === \"object\") {\n\t var objKeys = _objectKeys(obj);\n\t var objKeysLength = objKeys.length;\n\t for (var i = 0; i < objKeysLength; i++) {\n\t if (hasUndefined(obj[objKeys[i]])) {\n\t return true;\n\t }\n\t }\n\t }\n\t }\n\t return false;\n\t }", "function blankedObject (obj, defaultValue) {\n defaultValue = defaultValue === undefined ? '' : defaultValue\n return _.reduce(obj, function (result, value, key) {\n result[key] = defaultValue\n return result\n }, {})\n}", "function myFunction(obj) {\n let ret = {};\n Object.keys(obj).forEach( key => {\n if (obj[key] === '' || obj[key] === ' ' ) {\n console.log(obj[key]);\n ret[key] = null;\n } else {\n ret[key] = obj[key];\n }\n })\n return ret\n}", "function applyReviver(reviver, obj, key, val) {\n if (val && _typeof(val) === 'object') {\n if (Array.isArray(val)) {\n for (var i = 0, len = val.length; i < len; ++i) {\n var v0 = val[i];\n var v1 = applyReviver(reviver, val, String(i), v0);\n if (v1 === undefined) delete val[i];else if (v1 !== v0) val[i] = v1;\n }\n } else if (val instanceof Map) {\n for (var _i = 0, _Array$from = Array.from(val.keys()); _i < _Array$from.length; _i++) {\n var k = _Array$from[_i];\n\n var _v = val.get(k);\n\n var _v2 = applyReviver(reviver, val, k, _v);\n\n if (_v2 === undefined) val.delete(k);else if (_v2 !== _v) val.set(k, _v2);\n }\n } else if (val instanceof Set) {\n for (var _i2 = 0, _Array$from2 = Array.from(val); _i2 < _Array$from2.length; _i2++) {\n var _v3 = _Array$from2[_i2];\n\n var _v4 = applyReviver(reviver, val, _v3, _v3);\n\n if (_v4 === undefined) val.delete(_v3);else if (_v4 !== _v3) {\n val.delete(_v3);\n val.add(_v4);\n }\n }\n } else {\n for (var _i3 = 0, _Object$entries = Object.entries(val); _i3 < _Object$entries.length; _i3++) {\n var _Object$entries$_i = _slicedToArray(_Object$entries[_i3], 2),\n _k = _Object$entries$_i[0],\n _v5 = _Object$entries$_i[1];\n\n var _v6 = applyReviver(reviver, val, _k, _v5);\n\n if (_v6 === undefined) delete val[_k];else if (_v6 !== _v5) val[_k] = _v6;\n }\n }\n }\n\n return reviver.call(obj, key, val);\n}", "truncateObject(obj) {\n\t\tconst visibleObject = this.copyObject(obj);\n\t\tconst setObject = (obj) => {\n\t\t\tObject.keys(obj).forEach(key => {\n\t\t\t\tif(key.charAt(0) === '_') delete obj[key];\n\t\t\t\tif (typeof obj[key] === 'object' && obj[key] !== null) {\n\t\t\t\t\tsetObject(obj[key]);\n\t\t\t\t}\n\t\t\t});\n\t\t};\n\t\tsetObject(visibleObject);\n\t\treturn visibleObject;\n\t}", "function clean (o) {\n const c = {}\n for (var p in o) {\n if (typeof o[p] !== 'function') {\n c[p] = o[p]\n }\n }\n return c\n}", "function hasUndefined(obj) {\r\n if (obj === undefined) {\r\n return true;\r\n }\r\n if (obj) {\r\n if (Array.isArray(obj)) {\r\n for (var i = 0, len = obj.length; i < len; i++) {\r\n if (hasUndefined(obj[i])) {\r\n return true;\r\n }\r\n }\r\n }\r\n else if (typeof obj === \"object\") {\r\n var objKeys = _objectKeys(obj);\r\n var objKeysLength = objKeys.length;\r\n for (var i = 0; i < objKeysLength; i++) {\r\n if (hasUndefined(obj[objKeys[i]])) {\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n return false;\r\n}", "function hasUndefined(obj) {\r\n if (obj === undefined) {\r\n return true;\r\n }\r\n if (obj) {\r\n if (Array.isArray(obj)) {\r\n for (var i = 0, len = obj.length; i < len; i++) {\r\n if (hasUndefined(obj[i])) {\r\n return true;\r\n }\r\n }\r\n }\r\n else if (typeof obj === \"object\") {\r\n var objKeys = _objectKeys(obj);\r\n var objKeysLength = objKeys.length;\r\n for (var i = 0; i < objKeysLength; i++) {\r\n if (hasUndefined(obj[objKeys[i]])) {\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n return false;\r\n}", "function hasUndefined(obj) {\n if (obj === undefined) {\n return true;\n }\n if (obj) {\n if (Array.isArray(obj)) {\n for (var i = 0, len = obj.length; i < len; i++) {\n if (hasUndefined(obj[i])) {\n return true;\n }\n }\n }\n else if (typeof obj === \"object\") {\n var objKeys = _objectKeys(obj);\n var objKeysLength = objKeys.length;\n for (var i = 0; i < objKeysLength; i++) {\n if (hasUndefined(obj[objKeys[i]])) {\n return true;\n }\n }\n }\n }\n return false;\n}", "function compactObject(obj) {\n const compacted = reduce(\n obj,\n (acc, val, key) => {\n if (val) {\n acc[key] = val;\n return acc;\n }\n return acc;\n },\n {}\n );\n return compacted;\n}", "function prune2level(obj, level) {\n\t\tvar top_obj = {};\n\t\tvar t;\n\t\tfor (key in obj) {\n\t\t\tt = typeof obj[key];\n\t\t\tif (t !== \"undefined\" && t !== \"object\" && t !== \"function\") {\n\t\t\t\ttop_obj[key] = obj[key];\n\t\t\t}\n\t\t\tif (level > 1 && t === \"object\" && obj[key] !== null) {\n\t\t\t\ttop_obj[key] = prune2level(obj[key], level -1);\n\t\t\t}\n\t\t}\n\t\treturn top_obj;\n\t}", "function hasUndefined(obj) {\n\t if (obj === undefined) {\n\t return true;\n\t }\n\t if (typeof obj == \"array\" || typeof obj == \"object\") {\n\t for (var i in obj) {\n\t if (hasUndefined(obj[i])) {\n\t return true;\n\t }\n\t }\n\t }\n\t return false;\n\t }", "function isUndefined(obj) {\n return obj === undefined;\n}", "function stripDelete(a) {\n for (var _i = 0, _Object$keys = keys$6(a); _i < _Object$keys.length; _i++) {\n var prop = _Object$keys[_i];\n\n if (a[prop] === DELETE) {\n delete a[prop];\n } else if (_typeof_1(a[prop]) === \"object\" && a[prop] !== null) {\n stripDelete(a[prop]);\n }\n }\n}", "function stripDelete(a) {\n for (var _i = 0, _Object$keys = keys$3(a); _i < _Object$keys.length; _i++) {\n var prop = _Object$keys[_i];\n\n if (a[prop] === DELETE) {\n delete a[prop];\n } else if (_typeof_1(a[prop]) === \"object\" && a[prop] !== null) {\n stripDelete(a[prop]);\n }\n }\n}", "function stripDelete(a) {\n for (var _i = 0, _Object$keys = keys$3(a); _i < _Object$keys.length; _i++) {\n var prop = _Object$keys[_i];\n\n if (a[prop] === DELETE) {\n delete a[prop];\n } else if (_typeof_1(a[prop]) === \"object\" && a[prop] !== null) {\n stripDelete(a[prop]);\n }\n }\n}", "function myFunction(obj) {\n delete obj.country;\n return obj\n}", "function applyReviver(reviver, obj, key, val) {\n if (val && typeof val === 'object') {\n if (Array.isArray(val)) {\n for (let i = 0, len = val.length; i < len; ++i) {\n const v0 = val[i];\n const v1 = applyReviver(reviver, val, String(i), v0);\n if (v1 === undefined)\n delete val[i];\n else if (v1 !== v0)\n val[i] = v1;\n }\n }\n else if (val instanceof Map) {\n for (const k of Array.from(val.keys())) {\n const v0 = val.get(k);\n const v1 = applyReviver(reviver, val, k, v0);\n if (v1 === undefined)\n val.delete(k);\n else if (v1 !== v0)\n val.set(k, v1);\n }\n }\n else if (val instanceof Set) {\n for (const v0 of Array.from(val)) {\n const v1 = applyReviver(reviver, val, v0, v0);\n if (v1 === undefined)\n val.delete(v0);\n else if (v1 !== v0) {\n val.delete(v0);\n val.add(v1);\n }\n }\n }\n else {\n for (const [k, v0] of Object.entries(val)) {\n const v1 = applyReviver(reviver, val, k, v0);\n if (v1 === undefined)\n delete val[k];\n else if (v1 !== v0)\n val[k] = v1;\n }\n }\n }\n return reviver.call(obj, key, val);\n }", "function toUndefined(ma) {\n return isNone(ma) ? undefined : ma.value;\n}", "function scrub(obj) {\n if (Array.isArray(obj)) {\n return obj.map(function (item) { return scrub(item); });\n } else if (typeof obj === 'object') {\n for (var key in obj) {\n if (!obj.hasOwnProperty(key)) continue;\n if (key === 'range' || key === 'loc') {\n delete obj[key];\n } else {\n obj[key] = scrub(obj[key]);\n }\n }\n return obj;\n } else {\n return obj;\n }\n}", "function omit(obj, keys) {\n return Object.keys(obj)\n .filter((key) => !keys.includes(key))\n .reduce((result, key) => {\n result[key] = obj[key];\n return result;\n }, {});\n}", "function hasUndefined(obj) {\n if (obj === undefined) {\n return true;\n }\n if (obj) {\n if (_isArray(obj)) {\n for (var i = 0, len = obj.length; i < len; i++) {\n if (hasUndefined(obj[i])) {\n return true;\n }\n }\n }\n else if (typeof obj === \"object\") {\n var objKeys = _objectKeys(obj);\n var objKeysLength = objKeys.length;\n for (var i = 0; i < objKeysLength; i++) {\n if (hasUndefined(obj[objKeys[i]])) {\n return true;\n }\n }\n }\n }\n return false;\n }", "function hasUndefined(obj) {\n if (obj === undefined) {\n return true;\n }\n\n if (typeof obj == \"array\" || (0, _typeof2.default)(obj) == \"object\") {\n for (var i in obj) {\n if (hasUndefined(obj[i])) {\n return true;\n }\n }\n }\n\n return false;\n }", "clean() {\n let clone = {};\n Object.assign(clone, this);\n\n for (const i in clone) {\n if (typeof clone[i] === 'undefined') {\n delete clone[i];\n }\n }\n\n return clone;\n }", "function Common_removeEmptyStrings(obj){\n\t switch(typeof obj){\n\t\t case 'object':\n\t\t\t for(let key in obj){\n\t\t\t\t obj[key] = Common_removeEmptyStrings(obj[key]);\n\t\t\t }\n\t\t\tbreak;\n\t\t case 'string':\n\t\t\t if(obj.length <= 0){\n\t\t\t\t obj = null;\n\t\t\t }\n\t\t\tbreak;\n\t }\n\n\t return obj;\n}", "function redacted (object, publishable) {\n const clone = JSON.parse(JSON.stringify(object))\n Object.keys(clone).forEach(key => {\n if (!publishable.includes(key)) delete clone[key]\n })\n return clone\n}", "function compactObject(data) {\n\t var _context;\n\n\t if (!isObject$1(data)) {\n\t return data;\n\t }\n\n\t return reduce$2(_context = keys$3(data)).call(_context, function (accumulator, key) {\n\t const isObj = isObject$1(data[key]);\n\t const value = isObj ? compactObject(data[key]) : data[key];\n\t const isEmptyObject = isObj && !keys$3(value).length;\n\n\t if (value === undefined || isEmptyObject) {\n\t return accumulator;\n\t }\n\n\t return assign$2(accumulator, {\n\t [key]: value\n\t });\n\t }, {});\n\t}", "function hasUndefined(obj) {\n if (obj === undefined) {\n return true;\n }\n if (typeof obj == \"array\" || typeof obj == \"object\") {\n for (var i in obj) {\n if (hasUndefined(obj[i])) {\n return true;\n }\n }\n }\n return false;\n }", "isEmpty(obj){\n return !Object.keys(obj).length;\n }", "function shrinkKeys(OBJECT) {\n var SHRUNK = {};\n var val = null;\n for(var KEY in OBJECT) {\n val = OBJECT[KEY];\n if(val) {\n SHRUNK[KEY] = val;\n }\n }\n return SHRUNK;\n }", "function delete_null_properties(obj, recurse) {\n for (var i in obj) {\n if (obj[i] === null) {\n delete obj[i];\n } else if (recurse && typeof obj[i] === 'object') {\n delete_null_properties(obj[i], recurse);\n }\n }\n}", "function isEmptyObject(obj) {\r\n return !Object.keys(obj).length;\r\n}", "function isEmptyObject(obj) {\n return !Object.keys(obj).length;\n}", "function isEmptyObject(obj) {\n return !Object.keys(obj).length;\n}", "function isEmptyObject(obj) {\n return !Object.keys(obj).length;\n}", "function isEmptyObject(obj) {\n return !Object.keys(obj).length;\n}", "function isEmptyObject(obj) {\n return !Object.keys(obj).length;\n}", "function isUndefined (obj) { \n\treturn obj == void 0 \n}", "function dictNotEmpty(o) {\n for (let i in o) {\n return true;\n }\n return false;\n}", "function omit(obj) {\n\t\tvar copy = {};\n\t\tvar keys = Array.prototype.concat.apply(Array.prototype, Array.prototype.slice.call(arguments, 1));\n\t\tfor (var key in obj) {\n\t\t\tif (indexOf(keys, key) == -1) copy[key] = obj[key];\n\t\t}\n\t\treturn copy;\n\t}" ]
[ "0.74809533", "0.7117657", "0.71070737", "0.6905473", "0.6897231", "0.6877788", "0.68554044", "0.6844166", "0.6809099", "0.6786408", "0.66902", "0.6581826", "0.6543314", "0.63499093", "0.63324165", "0.6279909", "0.61685574", "0.6167942", "0.61546713", "0.61524314", "0.6145421", "0.61074895", "0.60398614", "0.60238665", "0.6001555", "0.5967888", "0.5947764", "0.5899595", "0.5871545", "0.58595085", "0.5825331", "0.5810774", "0.57632273", "0.5742651", "0.57379043", "0.5731362", "0.57274914", "0.56614137", "0.5614008", "0.5606046", "0.5573376", "0.5573376", "0.5566399", "0.55641335", "0.5558291", "0.5558291", "0.5549619", "0.5546406", "0.5545576", "0.55319136", "0.5526549", "0.5509141", "0.54985934", "0.54842436", "0.54826516", "0.5472258", "0.54720885", "0.5457936", "0.54485685", "0.5441706", "0.5441706", "0.54413587", "0.5430951", "0.5422133", "0.5419463", "0.54137886", "0.5409051", "0.5409051", "0.539192", "0.5377713", "0.537479", "0.53364563", "0.53353184", "0.53275067", "0.53240925", "0.53240925", "0.5310273", "0.5307309", "0.5300961", "0.53007215", "0.52905655", "0.528135", "0.5276037", "0.52662814", "0.5256938", "0.5256355", "0.52554303", "0.5247716", "0.5243469", "0.5236115", "0.5230778", "0.5222332", "0.52076346", "0.52076346", "0.52076346", "0.52076346", "0.52076346", "0.52004695", "0.5197907", "0.5187757" ]
0.68371415
8
which is reasonable. But dimension name is duplicated. Returns undefined or an array contains only object without null/undefiend or string.
function normalizeDimensionsDefine(dimensionsDefine) { if (!dimensionsDefine) { // The meaning of null/undefined is different from empty array. return; } var nameMap = createHashMap(); return map(dimensionsDefine, function (item, index) { item = extend({}, isObject(item) ? item : { name: item }); // User can set null in dimensions. // We dont auto specify name, othewise a given name may // cause it be refered unexpectedly. if (item.name == null) { return item; } // Also consider number form like 2012. item.name += ''; // User may also specify displayName. // displayName will always exists except user not // specified or dim name is not specified or detected. // (A auto generated dim name will not be used as // displayName). if (item.displayName == null) { item.displayName = item.name; } var exist = nameMap.get(item.name); if (!exist) { nameMap.set(item.name, { count: 1 }); } else { item.name += '-' + exist.count++; } return item; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDimensionName() {\n var dummyRecord = {};\n Object.keys(dimensions).forEach(function(d) {\n dummyRecord[d] = d;\n });\n\n return dimensionFct(dummyRecord);\n }", "parseArrayDimension () {\n const dimToken = this.getToken();\n if(dimToken.type === this.lexerClass.INTEGER) {\n //parse as int literal\n this.pos++;\n return this.getIntLiteral(dimToken);\n } else if(dimToken.type === this.lexerClass.ID) {\n //parse as variable\n this.pos++;\n return this.parseVariable(dimToken);\n } else {\n throw SyntaxErrorFactory.invalid_array_dimension(this.lexer.literalNames[this.lexerClass.RK_INTEGER], dimToken);\n }\n }", "function getSlice(dimensionName) {\n if (typeof filters[dimensionName] != \"undefined\") {\n return filters[dimensionName];\n }\n else {\n return dimensions[dimensionName].members;\n }\n }", "_returnEmptyArray() {\n const that = this,\n emptyArray = [];\n let current = emptyArray;\n\n if (that.dimensions > 1) {\n for (let i = 1; i < that.dimensions; i++) {\n current[0] = [];\n current = current[0];\n }\n }\n\n return emptyArray;\n }", "getDimensions() {\n return { x: 1, y: 1, z: 1 };\n }", "_validateValueArrayDimensions() {\n const that = this;\n let dimensions = 0,\n tempArray = that.value,\n emptyArray = false;\n\n while (tempArray.constructor === Array) {\n dimensions++;\n tempArray = tempArray[0];\n\n if (tempArray === undefined) {\n emptyArray = true;\n break;\n }\n }\n\n if (that.dimensions > dimensions) {\n if (emptyArray) {\n that.value = that._returnEmptyArray();\n return;\n }\n\n while (that.dimensions > dimensions) {\n that._addDimensionToJSArray(dimensions);\n dimensions++;\n }\n }\n }", "function GetDimension()\n{\n\treturn m_dimension;\n}", "function normalizeDimensionsOption(dimensionsDefine) {\n\t if (!dimensionsDefine) {\n\t // The meaning of null/undefined is different from empty array.\n\t return;\n\t }\n\t\n\t var nameMap = createHashMap();\n\t return map(dimensionsDefine, function (rawItem, index) {\n\t rawItem = isObject(rawItem) ? rawItem : {\n\t name: rawItem\n\t }; // Other fields will be discarded.\n\t\n\t var item = {\n\t name: rawItem.name,\n\t displayName: rawItem.displayName,\n\t type: rawItem.type\n\t }; // User can set null in dimensions.\n\t // We dont auto specify name, othewise a given name may\n\t // cause it be refered unexpectedly.\n\t\n\t if (item.name == null) {\n\t return item;\n\t } // Also consider number form like 2012.\n\t\n\t\n\t item.name += ''; // User may also specify displayName.\n\t // displayName will always exists except user not\n\t // specified or dim name is not specified or detected.\n\t // (A auto generated dim name will not be used as\n\t // displayName).\n\t\n\t if (item.displayName == null) {\n\t item.displayName = item.name;\n\t }\n\t\n\t var exist = nameMap.get(item.name);\n\t\n\t if (!exist) {\n\t nameMap.set(item.name, {\n\t count: 1\n\t });\n\t } else {\n\t item.name += '-' + exist.count++;\n\t }\n\t\n\t return item;\n\t });\n\t }", "_removeDimensionFromJSArray() {\n const that = this;\n\n if (that.arrayIndexingMode === 'LabVIEW') {\n that.value = that.value[0];\n }\n else {\n const dimensions = that.dimensions + 1,\n recursion = function (arr, level, parent, index) {\n for (let i = 0; i < arr.length; i++) {\n if (level !== dimensions && arr[i].length > 0) {\n recursion(arr[i], level + 1, arr, i);\n }\n else {\n if (parent !== undefined) {\n parent[index] = arr[0];\n }\n else {\n that.value = that.value[0];\n }\n }\n }\n };\n\n recursion(that.value, 1);\n }\n }", "function getDimension(unit, ID) {\n var index = 0;\n // Declare a local dimension object\n var selectedDim = new Dimension();\n\n while (index < unit.Dimensions.length) {\n if (ID == unit.Dimensions[index].ID) {\n selectedDim = unit.Dimensions[index];\n break;\n }\n index++;\n\n }\n return (selectedDim);\n }", "function normalizeDimensionsOption(dimensionsDefine) {\n if (!dimensionsDefine) {\n // The meaning of null/undefined is different from empty array.\n return;\n }\n\n var nameMap = createHashMap();\n return map(dimensionsDefine, function (rawItem, index) {\n rawItem = isObject(rawItem) ? rawItem : {\n name: rawItem\n }; // Other fields will be discarded.\n\n var item = {\n name: rawItem.name,\n displayName: rawItem.displayName,\n type: rawItem.type\n }; // User can set null in dimensions.\n // We dont auto specify name, othewise a given name may\n // cause it be refered unexpectedly.\n\n if (item.name == null) {\n return item;\n } // Also consider number form like 2012.\n\n\n item.name += ''; // User may also specify displayName.\n // displayName will always exists except user not\n // specified or dim name is not specified or detected.\n // (A auto generated dim name will not be used as\n // displayName).\n\n if (item.displayName == null) {\n item.displayName = item.name;\n }\n\n var exist = nameMap.get(item.name);\n\n if (!exist) {\n nameMap.set(item.name, {\n count: 1\n });\n } else {\n item.name += '-' + exist.count++;\n }\n\n return item;\n });\n}", "function isArray(e){return e!=null&&typeof e==\"object\"&&typeof e.length==\"number\"&&(e.length==0||defined(e[0]))}", "function normalizeDimensionsOption(dimensionsDefine) {\n if (!dimensionsDefine) {\n // The meaning of null/undefined is different from empty array.\n return;\n }\n\n var nameMap = Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_0__[/* createHashMap */ \"g\"])();\n return Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_0__[/* map */ \"H\"])(dimensionsDefine, function (rawItem, index) {\n rawItem = Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_0__[/* isObject */ \"z\"])(rawItem) ? rawItem : {\n name: rawItem\n }; // Other fields will be discarded.\n\n var item = {\n name: rawItem.name,\n displayName: rawItem.displayName,\n type: rawItem.type\n }; // User can set null in dimensions.\n // We dont auto specify name, othewise a given name may\n // cause it be refered unexpectedly.\n\n if (item.name == null) {\n return item;\n } // Also consider number form like 2012.\n\n\n item.name += ''; // User may also specify displayName.\n // displayName will always exists except user not\n // specified or dim name is not specified or detected.\n // (A auto generated dim name will not be used as\n // displayName).\n\n if (item.displayName == null) {\n item.displayName = item.name;\n }\n\n var exist = nameMap.get(item.name);\n\n if (!exist) {\n nameMap.set(item.name, {\n count: 1\n });\n } else {\n item.name += '-' + exist.count++;\n }\n\n return item;\n });\n}", "get ndim() {\n if (this.$isSeries) {\n return 1;\n } else {\n return 2;\n }\n }", "get dimension() {\r\n return this.cpoints.shape[1];\r\n }", "get dimension() {\r\n return this.cpoints.shape[1];\r\n }", "function buildOneHeader(index, startDim, dimNum)\r\n {\r\n var result = [];\r\n for(var i = startDim; i < startDim + dimNum; ++i)\r\n {\r\n // push null value doesn't work so we use empty object instead\r\n if(data_.values[i].rows[index].val === null || data_.values[i].rows[index].val === undefined){\r\n result.push({}); \r\n }else{\r\n result.push(data_.values[i].rows[index].val);\r\n }\r\n }\r\n return result;\r\n }", "function n(e){return null!=e&&\"object\"==typeof e&&!1===Array.isArray(e)}", "function n(e){return null!=e&&\"object\"==typeof e&&!1===Array.isArray(e)}", "_addDimensionToJSArray(dimensions) {\n const that = this;\n\n if (that.arrayIndexingMode === 'LabVIEW') {\n that.value = [that.value];\n }\n else {\n if (dimensions === undefined) {\n dimensions = that.dimensions - 1;\n }\n\n const recursion = function (arr, level) {\n for (let i = 0; i < arr.length; i++) {\n if (level !== dimensions) {\n recursion(arr[i], level + 1);\n }\n else {\n arr[i] = [arr[i]];\n }\n }\n };\n\n recursion(that.value, 1);\n }\n }", "getDimensions () {\n return this.properties.length\n }", "get shape() {\n if (this.$data.length === 0) return [0, 0];\n if (this.$isSeries) {\n return [this.$data.length, 1];\n } else {\n const rowLen = (this.$data).length;\n const colLen = (this.$data[0]).length;\n return [rowLen, colLen];\n }\n\n }", "function summarizeDimensions(data) {\n var summary = {};\n var encode = summary.encode = {};\n var notExtraCoordDimMap = Object(util[\"g\" /* createHashMap */])();\n var defaultedLabel = [];\n var defaultedTooltip = []; // See the comment of `List.js#userOutput`.\n\n var userOutput = summary.userOutput = {\n dimensionNames: data.dimensions.slice(),\n encode: {}\n };\n Object(util[\"k\" /* each */])(data.dimensions, function (dimName) {\n var dimItem = data.getDimensionInfo(dimName);\n var coordDim = dimItem.coordDim;\n\n if (coordDim) {\n if (false) {}\n\n var coordDimIndex = dimItem.coordDimIndex;\n getOrCreateEncodeArr(encode, coordDim)[coordDimIndex] = dimName;\n\n if (!dimItem.isExtraCoord) {\n notExtraCoordDimMap.set(coordDim, 1); // Use the last coord dim (and label friendly) as default label,\n // because when dataset is used, it is hard to guess which dimension\n // can be value dimension. If both show x, y on label is not look good,\n // and conventionally y axis is focused more.\n\n if (mayLabelDimType(dimItem.type)) {\n defaultedLabel[0] = dimName;\n } // User output encode do not contain generated coords.\n // And it only has index. User can use index to retrieve value from the raw item array.\n\n\n getOrCreateEncodeArr(userOutput.encode, coordDim)[coordDimIndex] = dimItem.index;\n }\n\n if (dimItem.defaultTooltip) {\n defaultedTooltip.push(dimName);\n }\n }\n\n util_types[\"i\" /* VISUAL_DIMENSIONS */].each(function (v, otherDim) {\n var encodeArr = getOrCreateEncodeArr(encode, otherDim);\n var dimIndex = dimItem.otherDims[otherDim];\n\n if (dimIndex != null && dimIndex !== false) {\n encodeArr[dimIndex] = dimItem.name;\n }\n });\n });\n var dataDimsOnCoord = [];\n var encodeFirstDimNotExtra = {};\n notExtraCoordDimMap.each(function (v, coordDim) {\n var dimArr = encode[coordDim];\n encodeFirstDimNotExtra[coordDim] = dimArr[0]; // Not necessary to remove duplicate, because a data\n // dim canot on more than one coordDim.\n\n dataDimsOnCoord = dataDimsOnCoord.concat(dimArr);\n });\n summary.dataDimsOnCoord = dataDimsOnCoord;\n summary.encodeFirstDimNotExtra = encodeFirstDimNotExtra;\n var encodeLabel = encode.label; // FIXME `encode.label` is not recommanded, because formatter can not be set\n // in this way. Use label.formatter instead. May be remove this approach someday.\n\n if (encodeLabel && encodeLabel.length) {\n defaultedLabel = encodeLabel.slice();\n }\n\n var encodeTooltip = encode.tooltip;\n\n if (encodeTooltip && encodeTooltip.length) {\n defaultedTooltip = encodeTooltip.slice();\n } else if (!defaultedTooltip.length) {\n defaultedTooltip = defaultedLabel.slice();\n }\n\n encode.defaultedLabel = defaultedLabel;\n encode.defaultedTooltip = defaultedTooltip;\n return summary;\n}", "getDimensions(data){\n const n = data.length;\n const p = data[0].length ? data[0].length: 1;\n return {rows: n,cols: p}\n }", "function getDataArray(obj) {\n\t if (obj.rows) {\n\t return obj.rows;\n\t } else if (obj.columns) {\n\t return obj.columns;\n\t } else if (obj.series) {\n\t return [obj];\n\t }\n\t }", "function getCustomDims() {\n var dims = [];\n \n // client id\n \n var tracker = ga.getByName('t0');\n \n dims.push( {slot: 11, value: tracker.get('clientId')} );\n \n if (typeof dataLayer.user === 'object') {\n \n var loggedIn = 'not logged in';\n var ban = 'not set';\n var userID = 'not set';\n \n if (dataLayer.user.userid) {\n userID = dataLayer.user.userid;\n loggedIn = 'logged in';\n \n }\n \n dims.push( {slot: 1, value: userID},\n {slot: 4, value: loggedIn});\n \n if (dataLayer.user.ban) {\n ban = dataLayer.user.ban;\n }\n \n dims.push({slot: 2, value: ban});\n \n }\n \n // FlashTalking parameters\n var ft_paramid = self.getQueryParam('FT_ParamIDs');\n\n // check if FT parameters exist but missing '?' so it's a part of the pathname\n if (ft_paramid === null) {\n ft_paramid = self.pathname.match(/FT_ParamIDs=([^&]*)/);\n \n if (ft_paramid)\n ft_paramid = ft_paramid[1];\n }\n \n if (ft_paramid !== null) {\n dims.push( {slot: 8, value: ft_paramid},\n {slot: 9, value: ft_paramid});\n }\n \n // Internal promos\n \n var cm_re = self.getQueryParam('cm_re');\n if (cm_re !== null)\n dims.push({slot: 3, value: cm_re});\n \n var purchaser = 'no';\n \n // purchaser - set on confirmation pages\n if (dataLayer.page && dataLayer.page.type === 'order_receipt_page') {\n purchaser = 'yes';\n }\n \n dims.push({slot: 5, value: purchaser});\n \n // page tracking\n dims.push({slot: 17, value: self.pathname + self.query + self.anchor});\n \n return dims;\n }", "function getReferenceDimension(ID) {\n var index = 0;\n var selectedDim = new Dimension();\n\n while (index < currentOrg.Dimensions.length) {\n if (ID == currentOrg.Dimensions[index].ID) {\n selectedDim = currentOrg.Dimensions[index];\n break;\n }\n index++;\n }\n return (selectedDim);\n }", "function _dim() {\r\n var d = _dfa(arguments);\r\n if (d) {\r\n this.d = objDim(this, d);\r\n }\r\n return objCss(this, \"position\") == \"absolute\" ? this.d : objDim(this);\r\n}", "function jdcDataProvider(o){\n\t//Too many characters/values set\n\tvar ret = {};\n\tvar cache = {}; //= dataArray; //cached slices\n\tvar calc = {}; //calculated definitions\n\tvar o;\n\n\tvar def = {\n\t\tall : '_', //used for where no filter on dimension\n\t\tfn : 'fn', //used for function branching\n\t\tresult : function(){ return 0; }, //to be a function - called for default result and map reduce\n\t\tindices : []\n\t}\n\n\tret.init = function(options){\n\t // Extend defaults\n\t var extended = def;\n\t for (var prop in options) {\n\t if (options.hasOwnProperty(prop)) {\n\t extended[prop] = options[prop];\n\t }\n\t }\n\t\to = ret.options = extended; //var o used for shorthand - will this lead to trouble later overriding o?\n\n\t\tret.dims={};\n\n\t\tfor(var i=0;i<o.dims.length;i++){\n\t\t\tconsole.log(i);\n\t\t\tvar d = o.dims[i];\n\t\t\tconsole.log(d);\n\t\t\tret.dims[i] = {}; //ordered map\n\t\t\tret.dims[d] = {}; //associative map\n\t\t\tret.dims[i].val=d; //e.g. [0].val = \"dim 1 Name\"\n\t\t\tret.dims[d].val=i; //e.g. [name].val = order\n\t\t\tret.dims[i].range = [];\n\t\t}\n\t\tconsole.log(o.dims.length);\n\t\t//New version - iterates over population once\n\t\tvar res={}, mre, val;\n\t\tfor(var j=0;j<o.dims.length;j++){\n\t\t\tres[o.dims[j]]={};\n\t\t}\n\t\tvar vals = o.data.reduce(function(res,e,i,a){\n\t\t\tfor(var j=0;j<o.dims.length;j++){\n\t\t\t\tmre=o.dims[j];\n\t\t\t\tval=wlk(e,mre);\n\t\t\t\tif(!res[mre][val]){\n\t\t\t\t\tres[mre][val]={ \"n\":0, \"val\":0.0 };\n\t\t\t\t\tret.dims[j].range.push(val);\n\t\t\t\t}\n\t\t\t\tres[mre][val][\"n\"]++;\n\t\t\t\tres[mre][val][\"val\"]+=e[\"Price\"];\n\t\t\t}\n\t\t\treturn res;\n\t\t},res);\n\t\tfor(var j=0;j<o.dims.length;j++){\n\t\t\tret.dims[j].range.sort();\n\t\t}\n\t\tconsole.log(res);\n\t\tif(o.cache){\n\t\t\tcache = o.cache;\n\t\t}\n\n\t\treturn ret;\n\t}\n\n\t//Where should order of keys be controlled?\n\tret.idString = function(keys){\n\t\tvar res = [];\n\t\tfor(var i=0;i<o.dims.length;i++){\n\t\t\tres.push(def.all); //Push blank for no filter\n\t\t}\n\t\tfor(k in keys){\n\t\t\tif(ret.dims[k]){\n\t\t\t\tvar r = f(keys[k]);\n\t\t\t\tres[ret.dims[k].val] = r.label || r; //use f to resolve function here - need to make this generic\n\t\t\t} else {\n\t\t\t\tif(k.indexOf(def.fn)<1){\n\t\t\t\t\tconsole.log(\"Invalid key: \" + k);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tres[ret.dims[\"mre\"].val]=def.all; //Set mre to all as measures in object\n\t\treturn res.join('|');\n\t}\n\n\t//Key expanded to include all dimensions\n\tret.fullKey = function(keys){\n\t\tvar res = {};\n\t\tfor(var i=0;i<o.dims.length;i++){\n\t\t\tres[o.dims[i]]=def.all; //using '' causes problems - don't know why\n\t\t}\n\t\tfor(k in keys){ //would $.extend be better? - check k is in result\n\t\t\tif(ret.dims[k]){\n\t\t\t\tres[k] = f(keys[k]); //use f to resolve function here - need to make this generic\n\t\t\t} else {\n\t\t\t\tif(k.indexOf(def.fn)<1){\n\t\t\t\t\tconsole.log(\"Invalid key: \" + k);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}\n\n\t//New Reduce Functionality\n\tfunction objInKey(obj,key){\n\t\tres=true;\n\t\tfor(k in key){\n\t\t\tvar v=key[k];\n\t\t\tvar o=wlk(obj,k); // walks if nested\n\t\t\tif(typeof(v)==='object'){ //allDims firing initial function\n\t\t\t\tif(v.fn){\n\t\t\t\t\tres=v.fn(o);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(v!==\"_\"){\n\t\t\t\t\tif(o){\n\t\t\t\t\t\tres=((o===v)||(+o===+v));\n\t\t\t\t\t//console.log(\"fn objInKey - value comparison - \" + obj[k] + \" with \" + v);\n\t\t\t\t\t} else { return false; } //value key with no corresponding key in object\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(res===false){ return false };\n\t\t}\n\t\treturn true;\n\t}\n\n\tfunction keyFilter(key,field){\n\t\treturn function(obj,i,a){\n\t\t\tif(objInKey(obj,key)){\n\t\t\t\tif(!field) return obj;\n\t\t\t\treturn wlk(obj,field); //return the target field\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction keyFilterReduce(key,field){\n\t\treturn function(res,obj,i,a){\n\t\t\tres.push(wlk(obj,field)); //return the target field\n\t\t\treturn res;\n\t\t}\n\t}\n\n\tfunction kFilter(key){\n\t\treturn function(obj,i,a){\n\t\t\treturn objInKey(obj,key);\n\t\t}\n\t}\n\n\tfunction keyReduce(key){ //want this to be the stats\n\t\treturn function(res, obj) {\n\t\t\tif(objInKey(obj,key)){\n\t\t\t\tvar v=obj.values;\n\t\t\t\tfor(var i=0;i<v.length;i++){\n\t\t\t\t\tres[i]+=v[i];\n\t\t\t\t}\n\t\t\t}\n\t\t return res;\n\t\t}\n\t}\n\n\tfunction fillArray(value, len) {\n\t var arr = [];\n\t for (var i=0; i<len; i++) {\n\t arr.push(value);\n\t };\n\t return arr;\n\t}\n\n\tfunction filterData(key){ //should always be a full key\n\t\t//return a filtered set of data based on ordered indices supplied\n\t\t//if(o.indices.length>0){ //need to ensure default value\n\t\t//o.indices.each(function(index,i,a)){ //object with indices - confirmed can rely on ordering - won't work as return won't exit loop\n\t\tfor (var i=0; i<o.indices.length; i++) {\n\t\t\tvar index = o.indices[i];\n\t\t\tif(index[\"field\"]){\n\t\t\t\tif(index[\"field\"] in key){ //should maybe use hasOwnProperty\n\t\t\t\t\tvar v=key[index[\"field\"]]; //index used\n\t\t\t\t\tif(v!==\"_\" && typeof(v)!=='object'){ //not all and not an object\n\t\t\t\t\t\treturn index[\"index\"][v].map(function(e,i,a){\n\t\t\t\t\t\t\tindex[\"indexMap\"][e]; //iterate through index to return array of objects\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn o.data;\n\t}\n\n\t//may rename to get measures\n\tret.getValues = function(key){ //same interface as previous - key has already been processed though fullkey function\n\t\t//var population = filterData(ret.fullKey(key)).filter(kFilter(key));\n\t\tvar keyAllMre = ret.fullKey(key);\n\t\tkeyAllMre[\"mre\"] = def.all;\n\t\t//console.log(ret.idString(keyAllMre));\n\t\tvar pop = filterData(keyAllMre).filter(kFilter(keyAllMre));\n\t\t//console.log(pop[0]);\n\t\t//console.log(pop.length);\n\t\t//population = population.reduce(keyFilterReduce(key,\"Price\"),[]);\n\t\tvar population = pop.reduce(function(r,e,i,a){ if(e[\"Price\"]) { r.push(e[\"Price\"]);} return r; },[]);\n\t\t//console.log(population[0]);\n\t\t//console.log(population.length);\n\t\tvar r = population.stats();\n\t\t//console.log(r);\n\t\treturn {\n\t\t\tid : ret.idString(key),\n\t\t\tkey : key,\n\t\t\tvalue : population.stats() //introduces filter on an index - need to parameterise\n\t\t}\n\t}\n\n\t//function to return population of array objects without summarisation\n\tret.getPopulation = function(key){ //same interface as previous - key has already been processed though fullkey function\n\t\tconsole.log(\"getPopulation\");\n\t\treturn {\n\t\t\tid : ret.idString(key), //arguable this is not required\n\t\t\tkey : key,\n\t\t\tvalue : filterData(ret.fullKey(key)).filter(kFilter(key)) //introduces filter on an index\n\t\t}\n\t}\n\n\tret.segmentSum = function(key,range){ //this should be accessible as string or object key\n\t\treturn ret.segmentRange(key,range).reduce( function(previousValue, currentValue, index, array){\n\t\t\t\treturn previousValue + currentValue;\n\t\t\t});\n\t}\n\n\tret.segment = function(key,range){ //range can be single value or array with 2 values - index and offset\n\t\tvar res = ret.segmentFromCache(key);\n\t\t/*var r = range;\n\t\tvar r0, r1;\n\t\tif(r){\n\t\t\tr0 = r[0] || r; r0 = f(r0);\n\t\t\tr1 = r[1] || r0+1; r1 = f(r1);\n\t\t\tif(r1<r0){\n\t\t\t\tif(r1<0) {\n\t\t\t\t\tr0 += r1+1;\n\t\t\t\t\tr1 = r0-r1;\n\t\t\t\t} else {\n\t\t\t\t\tr1 += r0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn (!range ? res : res.slice(r0,r1));*/\n\t\treturn res;\n\t}\n\n\tret.segmentFromCache = function(key){ //cache will use string key\n\t\t//console.log(ret.idString(key));\n\t\treturn (cache[ret.idString(key)] ? cache[ret.idString(key)][key[\"mre\"]] : ret.fillCache(key));\n\t}\n\n\tret.fillCache = function(key){ //should be a private function\n\t\tvar res;\n\t\tif(key.xfn){\n\t\t\tif(key.xfn.fn){\n\t\t\t\tif(key.xfn.fn){ //is it a calculated field - check definitions?\n\t\t\t\t\tres = calc[key.xfn.fn](key);\n\t\t\t\t\tcache[res.id] = res.value;\n\t\t\t\t}\n\t\t\t} else if(calc[key.xfn]){ //is it a calculated field - check definitions?\n\t\t\t\tres = calc[key.xfn](key);\n\t\t\t\tcache[res.id] = res.value;\n\t\t\t} else {\n\t\t\t\tconsole.log(\"Error - transform function not logged\");\n\t\t\t}\n\t\t} else {\n\t\t\tres = ret.getValues(ret.fullKey(key));\n\t\t\tcache[res.id] = res.value;\n\t\t}\n\t\treturn cache[res.id][key[\"mre\"]]; //different as now returning a measure within an object of measures - not presently an array - this may need to change\n\t}\n\n\tfunction preCalculated(key){\n\t\t//console.log(\"preCalc Fired\");\n\t\t//console.log(ret.idString(key));\n\t\tfor(k in key){\n\t\t\tif(!preCalc[k][key[k]]){\n\t\t\t\treturn false; //return as soon as failed\n\t\t\t}\n\t\t}\n\t\t//console.log(\"preCalc Fired - & short circuited\");\n\t\treturn true;\n\t}\n\n\tvar measureChange = function(key){\n\t\tvar newKey=$.extend({},key);\n\t\tnewKey.mre = f(newKey.mre).replace('Chg','');\n\t\tdelete newKey.xfn; //need to delete or\n\t\tvar values = ret.segment(newKey);\n\t\tvar res=[0];\n\t\tfor(var i=1;i<values.length;i++){\n\t\t\tres.push(values[i]-values[i-1]);\n\t\t}\n\t\treturn { id : ret.idString(key), key : key, value : res }\n\t}\n\n\tvar chg = function(dim,suffix,transform){\n\t\treturn function(key){\n\t\t\tvar base = $.extend({},key);\n\t\t\tbase[dim] = f(base[dim]).replace(suffix,'');\n\t\t\tdelete base[transform]; //necessary to stop looking in calc\n\t\t\tvar values = ret.segment(base);\n\t\t\tvar res=[0];\n\t\t\tfor(var i=1;i<values.length;i++){\n\t\t\t\tres.push(values[i]-values[i-1]);\n\t\t\t}\n\t\t\treturn { id : ret.idString(key), key : key, value : res }\n\t\t}\n\t}\n\n\tvar ofTotal = function(dim,suffix,transform,total){\n\t\treturn function(key){\n\t\t\tvar base = $.extend({},key);\n\t\t\tbase[dim] = f(base[dim]).replace(suffix,''); //Change this to add suffix later & output\n\t\t\tdelete base[transform];\n\t\t\tvar values = ret.segment(base);\n\t\t\tfor(k in total){\n\t\t\t\tif(base[k]){\n\t\t\t\t\tbase[k]=total[k];\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar div = ret.segment(base);\n\t\t\tvar res = [];\n\t\t\tfor(var i=0;i<values.length;i++){\n\t\t\t\tres.push(div[i]===0 ? 0 : values[i]/div[i] );\n\t\t\t}\n\t\t\treturn { id : ret.idString(key), key : key, value : res }\n\t\t}\n\t}\n\n\tvar ofTot = function(transform){\n\t\treturn function(key){\n\t\t\tvar tfm = $.extend({},key[transform]);\n\t\t\tvar base = $.extend({},key,tfm.args[0]);\n\t\t\tdelete base[transform];\n\t\t\tvar divKey = $.extend({},base,tfm.args[1]);\n\t\t\t//console.log(divKey);\n\t\t\tvar val = ret.segment(base);\n\t\t\tvar div = ret.segment(divKey);\n\t\t\tvar vals = [];\n\t\t\tfor(var i=0;i<val.length;i++){\n\t\t\t\tvals.push(div[i]===0 ? 0 : val[i]/div[i] );\n\t\t\t}\n\t\t\treturn { id : ret.idString(key), key : key, value : vals }\n\t\t}\n\t}\n\n\t//calc['Chg'] = measureChange;\n\tcalc['Chg'] = chg('mre','Chg','xfn');\n\tcalc['ofTotalArr'] = ofTotal('uom','OfTotal','xfn', {arr : xfFilter('arr','All',function(){ return d>0; })});\n\tcalc['ofTotalEnt'] = ofTotal('uom','OfTotal','xfn', {ent : '_'});\n\tcalc['rate'] = ofTotal('mre','Rate','xfn', {mre : 'Bal'});//This will change to the following\n\t//calc['rate'] = ofTotal('mre','Rate','xfn', {mre : 'Bal'});\n\tcalc['ofTotal'] = ofTot('xfn');\n\n\treturn ret.init(o);\n}", "function r(e){return null!=e&&\"object\"==typeof e&&!1===Array.isArray(e)}", "function r(e){return null!=e&&\"object\"==typeof e&&!1===Array.isArray(e)}", "function r(e){return null!=e&&\"object\"==typeof e&&!1===Array.isArray(e)}", "function unit(x) {\n return !exists(x) ? [] : !exists(x.length) ? [x] : toArray(x);\n}", "get dimensions() { return this._dimensions; }", "function r(t){return t&&Object(i[\"l\"])(t.getArray)}", "function isDataArray(val, key) {\n\t\n\t var containers = ['annotations', 'shapes', 'range', 'domain', 'buttons'],\n\t isNotAContainer = containers.indexOf(key) === -1;\n\t\n\t return Array.isArray(val) && isNotAContainer;\n\t}", "function dt(t) {\n return !!t && \"arrayValue\" in t;\n}", "function dt(t) {\n return !!t && \"arrayValue\" in t;\n}", "get flexibleDimensions() { return this._flexibleDimensions; }", "function w$(e){return Array.isArray(e)}", "stats (propertyName) {\n const { dimension } = this._dimensionInfo(propertyName);\n if (dimension && dimension.grouping) {\n return dimension;\n }\n return super.stats(propertyName);\n }", "function _dfa(a) {\r\n if (a.length) {\r\n // XXX: How should we flag an error?\r\n if (a.length > 2) return null;\r\n // Assume that 2 array elements specify width and height.\r\n if (a.length > 1) return new Dim(a[0], a[1]);\r\n // Assume a[0] is a valid Dim object.\r\n return a[0];\r\n }\r\n return null;\r\n}", "function isArray1D(a) {\n return !isArrayOrTypedArray(a[0]);\n}", "_getNonTransformedDimensions() {\n // Object dimensions\n return new fabric.Point(this.width, this.height).scalarAdd(\n this.padding + boundingBoxPadding\n )\n }", "function visible(dimension) {return !('visible' in dimension) || dimension.visible;}", "function visible(dimension) {return !('visible' in dimension) || dimension.visible;}", "function X(t) {\n return !!t && \"arrayValue\" in t;\n}", "function isDataArray(x) {\n return Array.isArray(x);\n}", "function isDataArray(x) {\n return Array.isArray(x);\n}", "function isDataArray(x) {\n return Array.isArray(x);\n}", "function getSillyShape(arr) {\n for (var i = 0; i < arr.length; i++) {\n return arr[i].getInfo();\n }\n }", "function isArray(obj){return(typeof(obj.length)==\"undefined\")?false:true;}", "function availableShape() {\n let shapes = [];\n Object.values(tdata).forEach(value => {\n let shape = value.shape;\n shape = shape[0].toUpperCase() + shape.substring(1);\n if(shapes.indexOf(shape) !== -1) {\n\n }\n else {\n shapes.push(shape);\n }\n });\n return shapes;\n}", "function isArrayOfShapes(x) {\n return Array.isArray(x) && Array.isArray(x[0]);\n}", "function isArrayOfShapes(x) {\n return Array.isArray(x) && Array.isArray(x[0]);\n}", "function r(e){return null!=e&&\"object\"===a(e)&&!1===Array.isArray(e)}", "function s(t){return null!=t&&\"object\"===typeof t&&!1===Array.isArray(t)}", "function dimensionConstructor(driver){\n var driver = driver;\n return $rootScope.dataMeta.crossFilterData.dimension(function(d) { return d[driver]; });\n }", "function getDimension(dimension) {\n var imgIndex = param.imgN.indexOf(iName),\n imgW = param.imgW[imgIndex],\n imgH = param.imgH[imgIndex];\n return dimension == \"w\" ? imgW : imgH;\n }", "getByName(name) {\n const unknown = { name: 'unknown', width: NaN };\n const breakpoints = this.getBreakpoints();\n return breakpoints.find((point) => name === point.name) || unknown;\n }", "function buildNullArray() {\n return { __proto__: null };\n }", "function buildNullArray() {\n return { __proto__: null };\n }", "function Nt(t) {\n return !!t && \"arrayValue\" in t;\n}", "function buildNullArray() {\n return { __proto__: null };\n}", "function j(n){return\"[object Array]\"===x.call(n)}", "function n(e){return e&&\"object\"==typeof e&&!Array.isArray(e)}", "function n(e){return e&&\"object\"==typeof e&&!Array.isArray(e)}", "function getDimensionPartInfo(dimensionNamePart) {\n var result = {};\n var key = dimensionNamePart.substr(0, 1);\n var value = dimensionNamePart.substr(1);\n\n result['value'] = value;\n switch (key) {\n case 'w':\n result['key'] ='width';\n break;\n case 'h':\n result['key'] ='height';\n break;\n case 'p':\n result['key'] ='platform';\n break;\n default:\n result = null;\n break;\n }\n\n return result;\n }", "get dimensions() {\n var dimensions = new Range();\n this._rows.forEach(function (row) {\n if (row) {\n var rowDims = row.dimensions;\n if (rowDims) {\n dimensions.expand(row.number, rowDims.min, row.number, rowDims.max);\n }\n }\n });\n return dimensions;\n }", "function a$k(a)\n{\n if (a===undefined) return [];\n if (a.constructor!=Array || a.length<2) return [a];\n return a;\n}", "function names(arr) {\n return names.name;\n}", "function n(t){return t&&\"object\"==typeof t&&!Array.isArray(t)}", "getIndex(name){\n var result;\n if(isNaN(name)){\n result=this.layerNames[name];\n if(result)\n return result.id;\n }else return name;\n return undefined;\n //return (isNaN(name))? this.layerNames[name].id:name;\n }", "function typeIsArray(instance_var) {\n return getType(instance_var).includes(\"[]\") || getName(instance_var).includes(\"[]\");\n}", "function createDimensions( // TODO: TYPE completeDimensions type\nsource, opt) {\n opt = opt || {};\n return helper_completeDimensions(opt.coordDimensions || [], source, {\n // FIXME:TS detect whether source then call `.dimensionsDefine` and `.encodeDefine`?\n dimsDef: opt.dimensionsDefine || source.dimensionsDefine,\n encodeDef: opt.encodeDefine || source.encodeDefine,\n dimCount: opt.dimensionsCount,\n encodeDefaulter: opt.encodeDefaulter,\n generateCoord: opt.generateCoord,\n generateCoordCount: opt.generateCoordCount\n });\n}", "function getDrumArray(drumArrayName){\n\tswitch (drumArrayName) {\n\t\tcase 'kicks':\n\t\t\treturn kicks;\n\t\tcase 'snares':\n\t\t\treturn snares;\n\t\tcase 'hiHats':\n\t\t\treturn hiHats;\n\t\tcase 'rideCymbals':\n\t\t\treturn rideCymbals;\n\t\tdefault:\n\t\t\treturn;\n\t}\n}", "static is_data_array_ok(data){\n return this.is_1d_array(data) ||\n this.is_2d_array(data) ||\n this.is_3d_array(data) ||\n this.is_heat_map_suitable_data(data)\n }", "function getElementDimension(Element, dim) {\n oElement = createReference(Element)\n if (isIE) {\t\t\t\t\t\t\t\t\t\t\t\t//String manip: Make sure side is Left or Top...IE doesn't understand all lower case.\n\t\telementDim = eval('oElement.pixel' + (dim.toUpperCase()).substring(0,1) + (dim.toLowerCase()).substring(1,dim.length))\n\t} else if (isDOM) {\n elementDim = parseInt(eval('oElement.' + dim.toLowerCase()))\n } else {\n\t\telementDim = eval('oElement.document.' + dim.toLowerCase())\n\t}\n return elementDim\n}", "__is_1D_array(arr) {\n if ((typeof (arr[0]) == \"number\") || (typeof (arr[0]) == \"string\") || (typeof (arr[0]) == \"boolean\")) {\n return true\n } else {\n return false\n }\n }", "function size() {\n out = 1;\n for (var dim in dimensions) {\n out *= dimensions[dim].members.length;\n }\n return out;\n }", "getEmptyBitmap(dimension, figures){\r\n var bitmap = Array(dimension)\r\n\r\n for(let x=0; x<dimension;x++){\r\n bitmap[x] = Array(dimension)\r\n for(let y=0; y<dimension; y++){\r\n bitmap[x][y] = Array(figures)\r\n for(let z=0; z< figures; z++){\r\n bitmap[x][y][z] = 0; // fill all with zero = no piece present\r\n }\r\n }\r\n }\r\n return bitmap\r\n }", "function defaultGetter() {\r\n return defaultUnidimensionalValue;\r\n }", "function defaultGetter() {\r\n return defaultUnidimensionalValue;\r\n }", "function data(){\n return [1,2]; //undefined\n}", "function r(e){return e&&\"object\"==typeof e&&!Array.isArray(e)}", "function r(e){return e&&\"object\"==typeof e&&!Array.isArray(e)}", "function r(e){return e&&\"object\"==typeof e&&!Array.isArray(e)}", "function jt(t){return\"[object Array]\"===Rt.call(t)}", "getDim() {\n var width, height;\n\n // If the particle only has a set size (not width/height)\n if (this.size) {\n width = this.size;\n height = this.size;\n } else {\n width = this.width;\n height = this.height;\n }\n\n return {\n width: width,\n height: height\n };\n }", "shape() {\n return [this.grid.length, this.grid[0].length];\n }", "'has'(item_name) {\n\t\tvar arr = item_name.split('.');\n\t\t//console.log('arr ' + arr);\n\t\tvar c = 0,\n\t\t\tl = arr.length;\n\t\tvar i = this;\n\t\tvar s;\n\t\twhile (c < l) {\n\t\t\ts = arr[c];\n\t\t\t//console.log('s ' + s);\n\t\t\tif (typeof i[s] == 'undefined') {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ti = i[s];\n\t\t\tc++;\n\t\t};\n\t\treturn i;\n\t}", "function getArrayDimensions(arr) {\n // We assume that it's a rectangular array\n var dim = [];\n dim.push(arr.length);\n\n if (arr.length > 0 && Array.isArray(arr[0])) {\n var inner_dim = getArrayDimensions(arr[0]);\n dim = dim.concat(inner_dim);\n }\n\n return dim;\n}", "function defaultGetter() {\n return defaultUnidimensionalValue;\n }", "function getElementUNPOSDimension(Element, dim) {\n\toElement = createReference(Element)\n if (isIE && !isMac) {\t\n\t\tif (dim == \"width\") {\n\t\t\tdim = \"scrollWidth\"\n\t\t} else {\n\t\t\tdim = \"scrollHeight\"\n\t\t}\t\t\t\t\t\t\n\t\telementDim = eval('document.all.' + Element + '.' + dim);\n\t} else {\n\t\tif (dim == \"width\") {\n\t\t\tdim = \"offsetWidth\"\n\t\t} else {\n\t\t\tdim = \"offsetHeight\"\n\t\t}\t\n\t\telementDim = eval('document.getElementById(\"' + Element + '\").' + dim);\t\n }\n return elementDim\n}", "function arrayDefined(array) {\n return array.filter(function (item) { return item != null; });\n}", "function r(t){return t&&\"object\"===typeof t&&!Array.isArray(t)}" ]
[ "0.6884483", "0.6139163", "0.5990928", "0.5961865", "0.58693033", "0.5855728", "0.57637715", "0.57536316", "0.5712528", "0.55924106", "0.55911034", "0.55376387", "0.55022717", "0.54896414", "0.5485744", "0.5485744", "0.52894366", "0.5250677", "0.5250677", "0.5245448", "0.52334523", "0.5232023", "0.5227809", "0.5225511", "0.5215204", "0.5213667", "0.5192954", "0.51881635", "0.5186952", "0.518516", "0.518516", "0.518516", "0.5147813", "0.5136503", "0.5129748", "0.51224697", "0.51047873", "0.51047873", "0.50995076", "0.50937456", "0.5081328", "0.5072436", "0.50674075", "0.504623", "0.5034377", "0.5034377", "0.5026843", "0.50229394", "0.50229394", "0.50229394", "0.50158566", "0.50142854", "0.501305", "0.5010654", "0.5010654", "0.5006061", "0.4995329", "0.49952555", "0.49836394", "0.49793926", "0.4969821", "0.4969821", "0.4950316", "0.49406677", "0.4940222", "0.4939021", "0.4939021", "0.4927854", "0.49225968", "0.49215427", "0.49208638", "0.49003395", "0.48986006", "0.48912582", "0.48759073", "0.4855217", "0.48542038", "0.48500216", "0.48467475", "0.48454002", "0.48267752", "0.48253858", "0.48253858", "0.48146617", "0.4812806", "0.4812806", "0.4812806", "0.4805794", "0.48043147", "0.47967875", "0.4785565", "0.47796515", "0.47786123", "0.47757685", "0.47742665", "0.47530252" ]
0.57112443
11
If return null/undefined, indicate that should not use datasetModel.
function getDatasetModel(seriesModel) { var option = seriesModel.option; // Caution: consider the scenario: // A dataset is declared and a series is not expected to use the dataset, // and at the beginning `setOption({series: { noData })` (just prepare other // option but no data), then `setOption({series: {data: [...]}); In this case, // the user should set an empty array to avoid that dataset is used by default. var thisData = option.data; if (!thisData) { return seriesModel.ecModel.getComponent('dataset', option.datasetIndex || 0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function datasetDangerously () {}", "function useSelectedDataset() {\n let modUrl = \"/models-for-dataset?dataset=\" + getSelectedDatasetName();\n let imgUrl = \"/dataset-details?dataset=\" + getSelectedDatasetName();\n\n populateModels(modUrl);\n populateStaticImages(imgUrl);\n}", "get dataset() {\n return this.#el?.dataset ?? this.#dataset;\n }", "modelCanExist () {\n\t\treturn true;\n\t}", "function ifDataset(string) {\n return string === 'Dataset'\n}", "load_dataset(dataset, dataset_elec) {\n if (dataset === undefined || dataset_elec === undefined) {\n // console.log('dataset:', dataset);\n // console.log('dataset_elect:', dataset_elec);\n }\n this.dataset = dataset;\n this.dataset_elec = dataset_elec;\n }", "function useDataLayer() {\n return {};\n}", "modelCanExist (/*model*/) {\n\t\treturn false;\n\t}", "function hasCustomDataProvider(object) {\n return object.dataProvider !== undefined;\n}", "function isDatasetObject(dataset) {\n return (typeof dataset.iterator === 'function');\n}", "function isDatasetObject(dataset) {\n return (typeof dataset.iterator === 'function');\n}", "function isDatasetObject(dataset) {\n return (typeof dataset.iterator === 'function');\n}", "_hasTableData() {\n return this.props.source || !ObjectUtils.isNull(this.props.source);\n }", "function createSolidDataset() {\n return dataset();\n}", "validateDatasetForm() {\n if(this.nameValidationState != undefined && this.descValidationState != undefined && this.attribValidationState != undefined) {\n if(this.nameValidationState == 'error' || this.descValidationState == 'error' || this.attribValidationState == 'error') {\n return true;\n } else {\n return false;\n }\n } else {\n return true;\n }\n }", "function ISDataSet(){ this._Type=\"ISDataSet\"; ISObject.call(this); this.Name=null; this.DataSetName=null; this.Tables=new ISArray(); }", "function getDefault() {\n getData(getInputs);\n}", "function DefaultGraphModel(domain) \r\n{\r\n if (arguments.length > 0) {\r\n\tthis.init(domain);\r\n }\r\n}", "static get isResourceModel() {\n return true;\n }", "function createSolidDataset() {\n return freeze({\n type: \"Dataset\",\n graphs: {\n default: {}\n }\n });\n}", "_newDataSet(...params){\n const Type = this.options.DataSetType || DataSet;\n return new Type(...params); \n }", "function configureDataset() {\n const response = SpreadsheetApp.getUi().prompt('BigQuery dataset name:');\n if (response.getSelectedButton() == SpreadsheetApp.getUi().Button.OK) {\n const dataset = response.getResponseText();\n PropertiesService.getUserProperties().\n setProperty(DATASET_PROPERTY, dataset);\n Logger.log('Dataset configured: ' + dataset);\n return dataset;\n }\n\n Logger.log('Dataset was not configured.');\n return null;\n}", "static getModel() {\n return routineModel;\n }", "function isEmpty() {\n return ( 0 === dataset.length );\n }", "function basicModel() {\n \n }", "function createDatasetIfNotExists() {\n [projectId, datasetId] = getConfiguration();\n\n try {\n BigQuery.Datasets.get(projectId, datasetId);\n } catch (e) {\n Logger.log('Dataset does not exist. Creating new dataset with ID: ' +\n datasetId);\n const dataset = BigQuery.newDataset();\n const reference = BigQuery.newDatasetReference();\n reference.datasetId = datasetId;\n dataset.datasetReference = reference;\n BigQuery.Datasets.insert(dataset, projectId);\n }\n return datasetId;\n}", "notARealComplexDataType(user, args, context) {\n return null;\n }", "checkTrainableWeightsConsistency() {\n if (this.collectedTrainableWeights == null) {\n return;\n }\n if (this.trainableWeights.length !==\n this.collectedTrainableWeights.length) {\n console.warn('Discrepancy between trainableweights and collected trainable ' +\n 'weights. Did you set `model.trainable` without calling ' +\n '`model.compile()` afterwards?');\n }\n }", "function init(datasets) {\n /* jshint unused: false */\n }", "modelCanExist () {\n\t\t// we match on a New Relic object ID and object type, in which case we add a new stack trace as needed\n\t\treturn true;\n\t}", "function loadNothing() {\n return null;\n }", "get dataRequirement() {\n\t\treturn this.__dataRequirement;\n\t}", "all() {\n return Util_1.default.toDataset(this.data);\n }", "safeReplaceDataset(oldDataset, newDataset) {\n oldDataset.data = newDataset.data\n oldDataset.labels = newDataset.labels\n }", "function CMLayerDataset() \r\n{\r\n\tCMLayer.call(this);\r\n\tthis.TheDataset=null; // default\r\n}", "function getModel(cb) {\n dataModel.getModel(function (err, model) {\n if (err) {\n console.error('Error getting model');\n } else {\n // TODO: at this point we are just getting the default model but we\n // need to extend this to include overrides in the model\n cb(model.default);\n }\n });\n}", "function inputDataUndef(states, lastOutput) { \n if (_.isArray(states)) {\n return _.reduce(states, function(result, state) {\n return ((_.isUndefined( state) || _.isUndefined(state.data)) && ! _.isUndefined(lastOutput.lm));\n }, false);\n } else {\n return ((_.isUndefined(states) || _.isUndefined(states.data)) && ! _.isUndefined(lastOutput.lm));\n }\n}", "function getDataModel(name){\n\t\treturn dataList[name];\n\t}", "function setEntityTypeDefault() {\n entityTypeDefault = $(this).attr('label');\n return false;\n }", "getDatasetName() {\n return this.options.datasetName || '';\n }", "function modelReady() \n{\n print(\"Model REady\");\n loadData(); \n}", "function d3_true() {\n return true;\n}", "getDataModel(name){\n\t\t\treturn this[dataSymbol][name].model;\n\t\t}", "model() {}", "isPersistentModel () {\n let connectionCount = this.model.connection.length\n\n if (connectionCount > 2) {\n console.error(`Persistent connection is ambiguous for model ${this.model.identity}`)\n }\n\n return connectionCount === 2\n }", "train() {\n\t\tif (!this.model) {\n\t\t\tthis.model = this.buildModel();\n\t\t}\n\t}", "autoSaveHasMinimumData() {\n return false;\n }", "function FalseSpecification() {}", "get noRecordsToDisplay(){\n if(this.recordToDisplay == ''){\n return true;\n }\n }", "function MissingModelCompatibilityDecorator(api, modelService) {\n this.api = api;\n this.modelService = modelService;\n this.apiFetching = {}; // to prevent loops, if we have already\n }", "get _inDefaultGraph() {\n return DEFAULTGRAPH.equals(this._graph);\n }", "get _inDefaultGraph() {\n return DEFAULTGRAPH.equals(this._graph);\n }", "function _default(ecModel, api) {\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n var layout = seriesModel.get('layout');\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.type !== 'view') {\n var data = seriesModel.getData();\n var dimensions = [];\n each(coordSys.dimensions, function (coordDim) {\n dimensions = dimensions.concat(data.mapDimension(coordDim, true));\n });\n\n for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n var value = [];\n var hasValue = false;\n\n for (var i = 0; i < dimensions.length; i++) {\n var val = data.get(dimensions[i], dataIndex);\n\n if (!isNaN(val)) {\n hasValue = true;\n }\n\n value.push(val);\n }\n\n if (hasValue) {\n data.setItemLayout(dataIndex, coordSys.dataToPoint(value));\n } else {\n // Also {Array.<number>}, not undefined to avoid if...else... statement\n data.setItemLayout(dataIndex, [NaN, NaN]);\n }\n }\n\n simpleLayoutEdge(data.graph);\n } else if (!layout || layout === 'none') {\n simpleLayout(seriesModel);\n }\n });\n}", "function _default(ecModel, api) {\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n var layout = seriesModel.get('layout');\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.type !== 'view') {\n var data = seriesModel.getData();\n var dimensions = [];\n each(coordSys.dimensions, function (coordDim) {\n dimensions = dimensions.concat(data.mapDimension(coordDim, true));\n });\n\n for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n var value = [];\n var hasValue = false;\n\n for (var i = 0; i < dimensions.length; i++) {\n var val = data.get(dimensions[i], dataIndex);\n\n if (!isNaN(val)) {\n hasValue = true;\n }\n\n value.push(val);\n }\n\n if (hasValue) {\n data.setItemLayout(dataIndex, coordSys.dataToPoint(value));\n } else {\n // Also {Array.<number>}, not undefined to avoid if...else... statement\n data.setItemLayout(dataIndex, [NaN, NaN]);\n }\n }\n\n simpleLayoutEdge(data.graph);\n } else if (!layout || layout === 'none') {\n simpleLayout(seriesModel);\n }\n });\n}", "applyDefaultToUndefined(field, data) {\n if(data[field] === undefined && this.model[field].default !== undefined)\n data[field] = this.model[field].default;\n }", "getModel() {\n }", "function _default(ecModel) {\n var legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n\n if (legendModels && legendModels.length) {\n ecModel.filterSeries(function (series) {\n // If in any legend component the status is not selected.\n // Because in legend series is assumed selected when it is not in the legend data.\n for (var i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(series.name)) {\n return false;\n }\n }\n\n return true;\n });\n }\n}", "function _default(ecModel) {\n var legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n\n if (legendModels && legendModels.length) {\n ecModel.filterSeries(function (series) {\n // If in any legend component the status is not selected.\n // Because in legend series is assumed selected when it is not in the legend data.\n for (var i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(series.name)) {\n return false;\n }\n }\n\n return true;\n });\n }\n}", "function _default(ecModel) {\n var legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n\n if (legendModels && legendModels.length) {\n ecModel.filterSeries(function (series) {\n // If in any legend component the status is not selected.\n // Because in legend series is assumed selected when it is not in the legend data.\n for (var i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(series.name)) {\n return false;\n }\n }\n\n return true;\n });\n }\n}", "function _default(ecModel) {\n var legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n\n if (legendModels && legendModels.length) {\n ecModel.filterSeries(function (series) {\n // If in any legend component the status is not selected.\n // Because in legend series is assumed selected when it is not in the legend data.\n for (var i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(series.name)) {\n return false;\n }\n }\n\n return true;\n });\n }\n}", "function _default(ecModel) {\n var legendModels = ecModel.findComponents({\n mainType: 'legend'\n });\n\n if (legendModels && legendModels.length) {\n ecModel.filterSeries(function (series) {\n // If in any legend component the status is not selected.\n // Because in legend series is assumed selected when it is not in the legend data.\n for (var i = 0; i < legendModels.length; i++) {\n if (!legendModels[i].isSelected(series.name)) {\n return false;\n }\n }\n\n return true;\n });\n }\n}", "get nonTrainableWeights() {\n return this.layer.nonTrainableWeights;\n }", "get nonTrainableWeights() {\n return this.layer.nonTrainableWeights;\n }", "getMetamodel() {\n return Common.assertInstanceOf(this.metamodel, Metamodel);\n }", "initRunEntity () {\n if (!this.checkRunEntity()) return false // return error if model, run or entity name is empty\n\n this.runText = this.runTextByDigest({ ModelDigest: this.digest, RunDigest: this.runDigest })\n if (!Mdf.isNotEmptyRunText(this.runText)) {\n console.warn('Model run not found:', this.digest, this.runDigest)\n this.$q.notify({ type: 'negative', message: this.$t('Model run not found' + ': ' + this.runDigest) })\n return false\n }\n\n this.entityText = Mdf.entityTextByName(this.theModel, this.entityName)\n if (!Mdf.isNotEmptyEntityText(this.entityText)) {\n console.warn('Model entity not found:', this.entityName)\n this.$q.notify({ type: 'negative', message: this.$t('Model entity not found' + ': ' + this.entityName) })\n return false\n }\n this.runEntity = Mdf.runEntityByName(this.runText, this.entityName)\n if (!Mdf.isNotEmptyRunEntity(this.runEntity)) {\n console.warn('Entity microdata not found in model run:', this.entityName, this.runDigest)\n this.$q.notify({ type: 'negative', message: this.$t('Entity microdata not found in model run' + ': ' + this.entityName + ' ' + this.runDigest) })\n return false\n }\n return true\n }", "function checkDataset(object) {\n\tvar dataset = object.value;\n\tif(dataset == 'select') {\n\t\tunhide(\"submitbutton\");\n\t\tdocument.getElementById(\"serverMessage\").innerHTML = '&nbsp;';\n\t\treturn;\n\t}\n\tXHR = createXHR();\n\tif(XHR) {\n \t\tXHR.onreadystatechange = processDataSetCheckResponse;\n\t\tXHR.open(\"POST\", 'checkDataSet.do', true);\n\t\tXHR.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded; charset=UTF-8\");\n\t\tvar x = 'value=' + dataset;\n\t\tXHR.send(x);\n\t}\t\n}", "_initModels() {}", "function isNotNull(item){\n return (item && item.label);\n }", "function _default(ecModel, api) {\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n var layout = seriesModel.get('layout');\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.type !== 'view') {\n var data = seriesModel.getData();\n var dimensions = [];\n each(coordSys.dimensions, function (coordDim) {\n dimensions = dimensions.concat(data.mapDimension(coordDim, true));\n });\n\n for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n var value = [];\n var hasValue = false;\n\n for (var i = 0; i < dimensions.length; i++) {\n var val = data.get(dimensions[i], dataIndex);\n\n if (!isNaN(val)) {\n hasValue = true;\n }\n\n value.push(val);\n }\n\n if (hasValue) {\n data.setItemLayout(dataIndex, coordSys.dataToPoint(value));\n } else {\n // Also {Array.<number>}, not undefined to avoid if...else... statement\n data.setItemLayout(dataIndex, [NaN, NaN]);\n }\n }\n\n simpleLayoutEdge(data.graph, seriesModel);\n } else if (!layout || layout === 'none') {\n simpleLayout(seriesModel);\n }\n });\n}", "setModel(input) {\n if (input) {\n const isInitModel = this.initModel(input);\n this.data.push(isInitModel);\n }\n }", "function isDataObject(subject) {\n return subject != null\n && typeof subject.toData == 'function' }", "initializeModel() { }", "function isDataSetLike(idProp, v) {\n return _typeof_1(v) === \"object\" && v !== null && idProp === v.idProp && typeof v.add === \"function\" && typeof v.clear === \"function\" && typeof v.distinct === \"function\" && typeof forEach$2(v) === \"function\" && typeof v.get === \"function\" && typeof v.getDataSet === \"function\" && typeof v.getIds === \"function\" && typeof v.length === \"number\" && typeof map$2(v) === \"function\" && typeof v.max === \"function\" && typeof v.min === \"function\" && typeof v.off === \"function\" && typeof v.on === \"function\" && typeof v.remove === \"function\" && typeof v.setOptions === \"function\" && typeof v.stream === \"function\" && typeof v.update === \"function\" && typeof v.updateOnly === \"function\";\n}", "function loadInitialModel() {\r\n\r\n\t$.ajax({\r\n\t\ttype: \"get\",\r\n\t\turl: \"/space/getinitialmodel\",\r\n\t\tcache: false,\r\n\t\tdataType: \"json\",\r\n\t\tdata: {},\r\n\t\tsuccess: function(data) {\r\n\t\t\tif(data.issuc == \"true\") {\r\n\t\t\t\tvar options = {};\r\n\t\t\t\toptions.env = \"Local\"; // AutodeskProduction, AutodeskStaging, or AutodeskDevelopment (set in global var in this project)\r\n\t\t\t\toptions.document = \"http://\"+window.location.host+data.modelfile;\r\n\t\t\t\t_curUnitId = data.unitid;\r\n\t\t\t\t_curMajor = data.majorid;\r\n\t\t\t\t_isWholeModel = data.iswhole;\r\n\r\n\t\t\t\tAutodesk.Viewing.Initializer(options, function() {\r\n\t\t\t\t\tloadDocument(options.document); // load first entry by default\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n}", "initializeDefaultArtworkCollection(options) {\n if (!(__guard__(this.get('artworkCollections'), x => x.length) > 0)) {\n this.set({artworkCollections: [new ArtworkCollection({userId: this.get('id')})]});\n }\n if (!this.defaultArtworkCollection.fetched) { return this.defaultArtworkCollection().fetch(options); }\n }", "function selectDataset(datasetIndex){\n var datasetForm = document.getElementById(\"datasets\");\n datasetForm.options[datasetIndex].selected = !(datasetForm.options[datasetIndex].selected);\n //Focus the main select form, update the metadata for the options selected in the main select form\n datasetForm.focus();\n displayMetadata(datasetForm);\n}", "checkDataSouresItems() {\n return Object.keys(this.items).filter((item) => this.items[item].datasource != undefined)\n }", "function camDef(something)\n{\n\treturn typeof(something) !== \"undefined\";\n}", "setModel(model) {\n // Do nothing. Use Callback instead of BaseCallback to track the model.\n }", "get performsNonLearnerFunction() {\n return Boolean(\n this._directedCourses?.length ||\n this._administeredCourses?.length ||\n this._administeredSessions?.length ||\n this._instructorGroups?.length ||\n this._instructedOfferings?.length ||\n this._instructedIlmSessions?.length ||\n this._instructedLearnerGroups?.length ||\n this._directedPrograms?.length ||\n this._programYears?.length ||\n this._administeredCurriculumInventoryReports?.length ||\n this._directedSchools?.length ||\n this._administeredSchools?.length\n );\n }", "function resetSourceDefaulter(ecModel) {\n\t // `datasetMap` is used to make default encode.\n\t innerGlobalModel(ecModel).datasetMap = createHashMap();\n\t }", "isDataVizEmpty() {\n return document.querySelector(\"[data-viz='wrapper']\").getElementsByTagName(\"svg\").length === 0\n }", "model(code) {\n if (typeof code !== 'string' || !code) return null;\n return this[models][code] || null;\n }", "isSubmodel(filename) {\n\t\t\treturn api.partDictionary[filename].isSubModel;\n\t\t}", "componentDidMount() {\n if (this.props.dataset.length === 0) {\n const { dispatch } = this.props;\n dispatch(fetchDataset());\n }\n }", "constructor () {\n this._model = null;\n this._formatter = null;\n this._config = this.constructor.defaultConfig();\n }", "function CMDataset() \r\n{\r\n\tCMBase.call(this);\r\n\tthis.URL=null;\r\n\t\r\n\tthis.SelectedFeature=-1;\r\n\tthis.MouseOverFeatureIndex=-1; // array of flags for rows?\r\n\tthis.ClickTolerance=8;\r\n}", "function checkPrjModel(model, modelRelation, prjset, prjtype, setname) {\n if (model === undefined || model.length == 0) {\n missing.push({'missingSet': setname});\n return;\n }\n model.forEach(function(m) {\n if (m.value.files.length === 0) {\n m.value[modelRelation].forEach(function(mr){\n prjset.forEach(function(p){\n if (p.uuid == mr) {\n var ptitle = p.value.title;\n var modeltitle = m.value.title;\n var obj = {};\n obj.title = ptitle;\n obj.model = modeltitle;\n obj.type = prjtype;\n missing.push(obj);\n }\n });\n });\n }\n });\n }", "checkIfModelBuiltFn () {\n fetch(test_url + '/TM/ldamodel', {\n mode: 'cors',\n method: 'GET'\n })\n .then((resp) => resp.json())\n .then((data) => {\n var modelBuilt = data['modelBuilt'];\n\n if (modelBuilt) {\n clearInterval(this.timerId);\n this.setState( { modelCreated: true } );\n }\n })\n .catch(function (error) {\n console.log(JSON.stringify(error));\n });\n }", "function Model() {}", "get defaultValueSampledData() {\n\t\treturn this.__defaultValueSampledData;\n\t}", "function isGraph(object){\r\n return object.data('plot') !== undefined;\r\n}", "function isGraph(object){\r\n return object.data('plot') !== undefined;\r\n}", "function isGraph(object){\r\n return object.data('plot') !== undefined;\r\n}", "function isGraph(object){\r\n return object.data('plot') !== undefined;\r\n}", "function isGraph(object){\r\n return object.data('plot') !== undefined;\r\n}" ]
[ "0.6383661", "0.6067127", "0.5612951", "0.5528505", "0.54733825", "0.53940594", "0.53370905", "0.531399", "0.5253888", "0.5207945", "0.5207945", "0.5207945", "0.5184196", "0.5141729", "0.51400405", "0.51392275", "0.5070492", "0.50489503", "0.5045966", "0.4974367", "0.4963073", "0.49601552", "0.49576992", "0.4954226", "0.49398804", "0.49283046", "0.49196866", "0.4910769", "0.49098274", "0.49065965", "0.49000135", "0.489425", "0.48917505", "0.48782817", "0.48692125", "0.486714", "0.48524356", "0.4845398", "0.4844606", "0.4841038", "0.48307472", "0.4828032", "0.48159668", "0.48106536", "0.48003232", "0.47689706", "0.4760639", "0.47565293", "0.47489777", "0.4743746", "0.4742296", "0.4742296", "0.47356358", "0.47356358", "0.47278026", "0.47148138", "0.46987605", "0.46987605", "0.46987605", "0.46987605", "0.46987605", "0.4698246", "0.4698246", "0.46960443", "0.46935904", "0.46892506", "0.46832925", "0.46814677", "0.46777773", "0.4677138", "0.46729505", "0.4664957", "0.46585786", "0.46567482", "0.4653013", "0.46493587", "0.46417892", "0.46379867", "0.4617159", "0.46019462", "0.4599559", "0.4598885", "0.45969877", "0.4593417", "0.45895734", "0.4584885", "0.4574858", "0.45615858", "0.45580283", "0.45569938", "0.45525038", "0.45517018", "0.45517018", "0.45517018", "0.45517018", "0.45517018" ]
0.6284609
4
Throws a `Cancel` if cancellation has been requested.
function throwIfCancellationRequested(config) { if (config.cancelToken) { config.cancelToken.throwIfRequested(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async cancel() {\n throw new Error(this.cancelMessage);\n }", "cancel() {\n throw new Error(\"Not implemented.\")\n }", "isCanceled(cancelled) {\n if (cancelled) {\n throw new Error(\"Cancelled request\");\n }\n }", "function throwIfCancellationRequested(config) {\n if (config.cancelToken) config.cancelToken.throwIfRequested();\n if (config.signal && config.signal.aborted) throw new Cancel('canceled');\n}", "function throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new Cancel('canceled');\n }\n}", "function throwIfCancellationRequested(config){if(config.cancelToken){config.cancelToken.throwIfRequested();}}", "function throwIfCancellationRequested(config){if(config.cancelToken){config.cancelToken.throwIfRequested();}}", "function throwIfCancellationRequested(config){if(config.cancelToken){config.cancelToken.throwIfRequested();}}", "function throwIfCancellationRequested(config){if(config.cancelToken){config.cancelToken.throwIfRequested();}}", "function throwIfCancellationRequested(config){if(config.cancelToken){config.cancelToken.throwIfRequested();}}", "function throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n }", "function throwIfCancellationRequested(config){\nif(config.cancelToken){\nconfig.cancelToken.throwIfRequested();\n}\n}", "function cancel () {\n const e = new Error('Coroutine canceled.');\n e.cause = 'canceled';\n this.resume(e);\n}", "function throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n }", "function throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n }", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n\t if (config.cancelToken) {\n\t config.cancelToken.throwIfRequested();\n\t }\n\t}", "function throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n }", "actionCancel() {\n this.source && this.source.cancel('Operation canceled by the user.');\n }", "cancel() {\n cancel();\n }", "function throwIfCancellationRequested(config) {\r\n if (config.cancelToken) {\r\n config.cancelToken.throwIfRequested();\r\n }\r\n}", "cancel() {\n if (this.isCloseable_) {\n this.userActed('cancel');\n }\n }", "cancel() {}" ]
[ "0.79484594", "0.7737491", "0.75342494", "0.7447438", "0.7424596", "0.7386911", "0.7386911", "0.7386911", "0.7386911", "0.7386911", "0.7206988", "0.7168578", "0.71630925", "0.7162724", "0.7143389", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.71397495", "0.7080394", "0.7068254", "0.7049706", "0.7024931", "0.7013523", "0.7005552" ]
0.0
-1
Set area to each child, and calculate data extent for visual coding.
function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) { var viewChildren = node.children || []; var orderBy = options.sort; orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null); var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth; // leafDepth has higher priority. if (hideChildren && !overLeafDepth) { return node.viewChildren = []; } // Sort children, order by desc. viewChildren = zrUtil.filter(viewChildren, function (child) { return !child.isRemoved(); }); sort(viewChildren, orderBy); var info = statistic(nodeModel, viewChildren, orderBy); if (info.sum === 0) { return node.viewChildren = []; } info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren); if (info.sum === 0) { return node.viewChildren = []; } // Set area to each child. for (var i = 0, len = viewChildren.length; i < len; i++) { var area = viewChildren[i].getValue() / info.sum * totalArea; // Do not use setLayout({...}, true), because it is needed to clear last layout. viewChildren[i].setLayout({ area: area }); } if (overLeafDepth) { viewChildren.length && node.setLayout({ isLeafRoot: true }, true); viewChildren.length = 0; } node.viewChildren = viewChildren; node.setLayout({ dataExtent: info.dataExtent }, true); return viewChildren; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "resizeToChildren() {\n let totalBounds = this.recurseThroughChildren(this, []);\n let minX;\n let minY;\n let maxX;\n let maxY;\n for (let bound in totalBounds) {\n if (!minX) {\n minX = this.x;\n maxX = totalBounds[bound].x + totalBounds[bound].width;\n minY = this.y;\n maxY = totalBounds[bound].y + totalBounds[bound].height\n continue;\n }\n if (totalBounds[bound].x + totalBounds[bound].width > maxX) {\n maxX = totalBounds[bound].x + totalBounds[bound].width\n }\n if (totalBounds[bound].y + totalBounds[bound].height > maxY) {\n maxY = totalBounds[bound].y + totalBounds[bound].height\n }\n }\n this.x = minX;\n this.y = minY;\n this.width = maxX - minX;\n this.height = maxY - minY;\n this.sizeUpdated = true;\n }", "calculateBounds() {\n this._bounds.clear();\n this._calculateBounds();\n for (var i = 0; i < this.children.length; i++) {\n var child = this.children[i];\n if (!child.visible || !child.renderable) {\n continue;\n }\n child.calculateBounds();\n // TODO: filter+mask, need to mask both somehow\n if (child._mask) {\n child._mask.calculateBounds();\n this._bounds.addBoundsMask(child._bounds, child._mask._bounds);\n }\n else if (child.filterArea) {\n this._bounds.addBoundsArea(child._bounds, child.filterArea);\n }\n else {\n this._bounds.addBounds(child._bounds);\n }\n }\n this._lastBoundsID = this._boundsID;\n }", "updateDimensions() {\n let height = 0.0;\n let depth = 0.0;\n let maxFontSize = 1.0;\n if (this.children) {\n this.children.forEach(x => {\n if (x.height > height) height = x.height;\n if (x.depth > depth) depth = x.depth;\n if (x.maxFontSize > maxFontSize) maxFontSize = x.maxFontSize;\n });\n }\n this.height = height;\n this.depth = depth;\n this.maxFontSize = maxFontSize;\n }", "updateInnerHeightDependingOnChilds(){}", "setExtent() {\n\n var tl = this.props.map.containerPointToLatLng(this.tl);\n var br = this.props.map.containerPointToLatLng(this.br);\n\n tl = this.projection([tl.lng, tl.lat]);\n br = this.projection([br.lng, br.lat]);\n\n this.extent.attr({\n x: tl[0],\n y: tl[1],\n height: br[1]-tl[1],\n width: br[0]-tl[0],\n });\n\n }", "updateInnerHeightDependingOnChilds(){this.__cacheWidthPerColumn=null,this.__asyncWorkData[\"System.TcHmiGrid.triggerRebuildAll\"]=!0,this.__asyncWorkData[\"System.TcHmiGrid.triggerRecheckHeight\"]=!0,this.__requestAsyncWork()}", "merge() {\n\n\t\tconst children = this.children;\n\n\t\tlet i, l;\n\t\tlet child;\n\n\t\tif(children !== null) {\n\n\t\t\tthis.points = [];\n\t\t\tthis.data = [];\n\n\t\t\tfor(i = 0, l = children.length; i < l; ++i) {\n\n\t\t\t\tchild = children[i];\n\n\t\t\t\tif(child.points !== null) {\n\n\t\t\t\t\tthis.points.push(...child.points);\n\t\t\t\t\tthis.data.push(...child.data);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tthis.children = null;\n\n\t\t}\n\n\t}", "updateInnerWidthDependingOnChilds(){}", "function _calcSize() {\n var bounds = parent.getBoundingClientRect();\n\n _chart.width(bounds.width);\n _chart.height(_svgHeight);\n }", "updateInnerWidthDependingOnChilds(){this.__cacheWidthPerColumn=null,this.__asyncWorkData[\"System.TcHmiGrid.triggerRebuildAll\"]=!0,this.__requestAsyncWork()}", "function GeomContainer() {\r\n\t'use strict';\r\n\tthis.children = [];\r\n}", "function set_all_position(data, parent_coor) {\n data.data.hexagons = [];\n for (var i = 0; i < 6; i++) {\n var a = (i) / 6 * Math.PI * 2; //angle of this hex relative to parent center\n var x = _this.config.hexagon_scale * Math.cos(a) * (Math.sqrt(3) / 3);\n var y = _this.config.hexagon_scale * Math.sin(a) * (Math.sqrt(3) / 3);\n data.data.hexagons[i] = {\n x: x,\n y: y,\n absolute_x: parent_coor.absolute_x + x * Math.pow(1 / 3, data.depth - 1),\n absolute_y: parent_coor.absolute_y + y * Math.pow(1 / 3, data.depth - 1),\n pos: i\n };\n\n //update boundary box\n var d = data.data.hexagons[i];\n if (d.absolute_x > boundary_box.max_x) boundary_box.max_x = d.absolute_x;\n if (d.absolute_y > boundary_box.max_y) boundary_box.max_y = d.absolute_y;\n if (d.absolute_x < boundary_box.min_x) boundary_box.min_x = d.absolute_x;\n if (d.absolute_y < boundary_box.min_y) boundary_box.min_y = d.absolute_y;\n\n\n }\n data.data.hexagons[6] = {\n x: 0,\n y: 0,\n absolute_x: parent_coor.absolute_x,\n absolute_y: parent_coor.absolute_y,\n pos: 6\n\n };\n //data.children[6].words = data.data.topics[6];\n //delete data.data.topics;\n\n delete data.data.submodels;\n\n if (data.children && data.children.length > 0) {\n for (var i = 0; i < data.children.length; i++) {\n set_all_position(data.children[i], data.data.hexagons[i]);\n }\n\n }\n if (data.parent == null)\n data.is_root = true;\n else\n data.is_root = false;\n //delete data.parent;\n }", "expandAll() {\n const data = this.dataManager.getData();\n const parentsToExpand = [];\n\n arrayEach(data, (elem) => {\n if (this.dataManager.hasChildren(elem)) {\n parentsToExpand.push(elem);\n }\n });\n\n this.expandMultipleChildren(parentsToExpand);\n\n this.renderAndAdjust();\n }", "function summarizeChildren(datum) {\n function _summarize(datum) {\n var descendantValues = datum.values.reduce(function (acc, cur) {\n cur.parent = datum;\n return acc.concat(cur.values ? _summarize(cur) : cur.value);\n }, []);\n var pValues = returnPValues(datum);\n\n function returnPValues(datum) {\n // var _datumValues = datum.values.slice();\n // there's a problem here: dividing by zero when the first value is zero, or all are zero\n // take a slice() copy of datum.values to avoid mutating datum and shift of the first value\n // so long as it's value === 0. in effect, measure pValue against the first nonzero value\n // in the series\n while (datum.values.length > 0 && datum.values[0].value === 0) {\n datum.values.shift();\n }\n\n return datum.values.reduce(function (acc, cur) {\n var min = d3_importer.min([acc[0], cur.values ? returnPValues(cur)[0] : (cur.value - datum.values[0].value) / datum.values[0].value]);\n var max = d3_importer.max([acc[1], cur.values ? returnPValues(cur)[1] : (cur.value - datum.values[0].value) / datum.values[0].value]);\n return [min, max];\n }, [Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY]);\n }\n\n datum.descendantValues = descendantValues;\n datum.max = d3_importer.max(descendantValues);\n datum.min = d3_importer.min(descendantValues);\n datum.mean = d3_importer.mean(descendantValues);\n datum.median = d3_importer.median(descendantValues);\n datum.variance = d3_importer.variance(descendantValues);\n datum.deviation = d3_importer.deviation(descendantValues);\n datum.maxZ = d3_importer.max(descendantValues, function (d) {\n return (d - datum.mean) / datum.deviation;\n }); // z-score\n\n datum.minZ = d3_importer.min(descendantValues, function (d) {\n return (d - datum.mean) / datum.deviation;\n }); // z-score \n\n datum.minP = pValues[0]; // percentage values. min/max value as expressed as a percentage of the first data point (year 0).\n\n datum.maxP = pValues[1]; // percentage values. min/max value as expressed as a percentage of the first data point (year 0).\n\n return descendantValues;\n }\n\n _summarize(datum);\n\n return datum;\n}", "decorateChildren() {\n this.forEachChild(aChild => {\n var element = this.getDomHelper().getElement(aChild.getId());\n if (element) {\n aChild.decorate(element);\n }\n });\n }", "function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {\n\t var viewChildren = node.children || [];\n\t var orderBy = options.sort;\n\t orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n\t var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth; // leafDepth has higher priority.\n\t\n\t if (hideChildren && !overLeafDepth) {\n\t return node.viewChildren = [];\n\t } // Sort children, order by desc.\n\t\n\t\n\t viewChildren = filter(viewChildren, function (child) {\n\t return !child.isRemoved();\n\t });\n\t sort$1(viewChildren, orderBy);\n\t var info = statistic(nodeModel, viewChildren, orderBy);\n\t\n\t if (info.sum === 0) {\n\t return node.viewChildren = [];\n\t }\n\t\n\t info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\t\n\t if (info.sum === 0) {\n\t return node.viewChildren = [];\n\t } // Set area to each child.\n\t\n\t\n\t for (var i = 0, len = viewChildren.length; i < len; i++) {\n\t var area = viewChildren[i].getValue() / info.sum * totalArea; // Do not use setLayout({...}, true), because it is needed to clear last layout.\n\t\n\t viewChildren[i].setLayout({\n\t area: area\n\t });\n\t }\n\t\n\t if (overLeafDepth) {\n\t viewChildren.length && node.setLayout({\n\t isLeafRoot: true\n\t }, true);\n\t viewChildren.length = 0;\n\t }\n\t\n\t node.viewChildren = viewChildren;\n\t node.setLayout({\n\t dataExtent: info.dataExtent\n\t }, true);\n\t return viewChildren;\n\t }", "function position(group, type, rect) {\n console.log('%c\\n'+' parent ' + type + ' rect is: ', 'background: #222; color: #EFEFEF; font-family: helvetica neue; font-size:20px; padding: 0 7px 3px 0;');\n console.log(rect);\n var i = -1,\n n = group.length,\n x = rect.x,\n y = rect.y,\n o;\n if (type === \"column\") { // vertical subdivision (children are rows)\n console.log('\\n'+'calculating child rows');\n while (++i < n) {\n o = group[n-(i+1)];\n o.x = x;\n o.y = y + (rect.dy/n) * i; \n o.dx = rect.dx;\n o.dy = rect.dy/n;\n console.log({x:o.x, y: o.y, width:o.dx, height: o.dy});\n }\n } else { // horizontal subdivision (children are columns)\n console.log('\\n'+'calculating child columns');\n while (++i < n) {\n o = group[n-(i+1)];\n o.x = x + (rect.dx/n) * i; \n o.y = y;\n o.dx = rect.dx/n;\n o.dy = rect.dy;\n console.log({x:o.x, y: o.y, width:o.dx, height: o.dy});\n }\n }\n }", "function scale(children, k) {\n var i = -1,\n n = children.length,\n child,\n area;\n while (++i < n) {\n area = (child = children[i]).value * (k < 0 ? 0 : k);\n child.area = isNaN(area) || area <= 0 ? 0 : area;\n }\n }", "function scale(children, k) {\n var i = -1,\n n = children.length,\n child,\n area;\n while (++i < n) {\n area = (child = children[i]).value * (k < 0 ? 0 : k);\n child.area = isNaN(area) || area <= 0 ? 0 : area;\n }\n }", "function scale(children, k) {\n var i = -1,\n n = children.length,\n child,\n area;\n while (++i < n) {\n area = (child = children[i]).value * (k < 0 ? 0 : k);\n child.area = isNaN(area) || area <= 0 ? 0 : area;\n }\n }", "function clearParentPoints() {\n for( var i = 0; i < app.getImage().getSize().getNumberOfRows(); ++i ) {\n parentPoints[i] = [];\n }\n }", "update() {\n if (!this.renderer.renderingToScreen) {\n return;\n }\n // update children...\n this.updateAccessibleObjects(this.renderer._lastObjectRendered);\n var rect = this.renderer.view.getBoundingClientRect();\n var sx = rect.width / this.renderer.width;\n var sy = rect.height / this.renderer.height;\n var div = this.div;\n div.style.left = (rect.left) + \"px\";\n div.style.top = (rect.top) + \"px\";\n div.style.width = (this.renderer.width) + \"px\";\n div.style.height = (this.renderer.height) + \"px\";\n for (var i = 0; i < this.children.length; i++) {\n var child = this.children[i];\n if (child.renderId !== this.renderId) {\n child._accessibleActive = false;\n UtilsSettings_1.UtilsSettings.removeItems(this.children, i, 1);\n this.div.removeChild(child._accessibleDiv);\n this.pool.push(child._accessibleDiv);\n child._accessibleDiv = null;\n i--;\n if (this.children.length === 0) {\n this.deactivate();\n }\n }\n else {\n // map div to display..\n div = child._accessibleDiv;\n var hitArea = child.hitArea;\n var wt = child.worldTransform;\n if (child.hitArea) {\n div.style.left = ((wt.tx + (hitArea.x * wt.a)) * sx) + \"px\";\n div.style.top = ((wt.ty + (hitArea.y * wt.d)) * sy) + \"px\";\n div.style.width = (hitArea.width * wt.a * sx) + \"px\";\n div.style.height = (hitArea.height * wt.d * sy) + \"px\";\n }\n else {\n hitArea = child.getBounds();\n this.capHitArea(hitArea);\n div.style.left = (hitArea.x * sx) + \"px\";\n div.style.top = (hitArea.y * sy) + \"px\";\n div.style.width = (hitArea.width * sx) + \"px\";\n div.style.height = (hitArea.height * sy) + \"px\";\n // update button titles and hints if they exist and they've changed\n if (div.title !== child.accessibleTitle && child.accessibleTitle !== null) {\n div.title = child.accessibleTitle;\n }\n if (div.getAttribute('aria-label') !== child.accessibleHint\n && child.accessibleHint !== null) {\n div.setAttribute('aria-label', child.accessibleHint);\n }\n }\n }\n }\n // increment the render id..\n this.renderId++;\n }", "subdivide(){\n //Create child quadtrees\n this.northeast = new QTree(new Boundary(\n this.boundary.x + (this.boundary.w/4), //origin x\n this.boundary.y - (this.boundary.h/4), //origin y\n this.boundary.w/2, this.boundary.h/2), //width, height\n this.capacity); //capacity\n this.northwest = new QTree(new Boundary(\n this.boundary.x - (this.boundary.w/4),\n this.boundary.y - (this.boundary.h/4),\n this.boundary.w/2, this.boundary.h/2),\n this.capacity);\n this.southeast = new QTree(new Boundary(\n this.boundary.x + (this.boundary.w/4),\n this.boundary.y + (this.boundary.h/4),\n this.boundary.w/2, this.boundary.h/2),\n this.capacity);\n this.southwest = new QTree(new Boundary(\n this.boundary.x - (this.boundary.w/4),\n this.boundary.y + (this.boundary.h/4),\n this.boundary.w/2, this.boundary.h/2),\n this.capacity);\n this.isParent = true;\n\n //Pass elements to children and clear parent elements\n for(let e of this.elements){\n if(this.northeast.insert(e)){ continue; }\n else if(this.northwest.insert(e)){ continue; }\n else if(this.southeast.insert(e)){ continue; }\n else if(this.southwest.insert(e)){ continue; }\n }\n this.elements = null;\n }", "function GroupBox_UpdateChildArea(theHTML, theObject)\n{\n\t//check the interface too\n\tswitch (theObject.InterfaceLook)\n\t{\n\t\tdefault:\n\t\t\t//ensure that our child area is located at the right place\n\t\t\ttheObject.HTMLParent.style.top = \"0px\";\n\t\t\t//get the rects\n\t\t\tvar realRect = Position_GetDisplayRect(theHTML);\n\t\t\t//our current rect\n\t\t\tvar ourRect = Position_GetDisplayRect(theObject.HTMLParent);\n\t\t\t//correct the position\n\t\t\ttheObject.HTMLParent.style.left = Math.max(theHTML.GRIDIMAGE ? Number.NEGATIVE_INFINITY : 0, realRect.left - ourRect.left) / __SIMULATOR.Scale + \"px\";\n\t\t\ttheObject.HTMLParent.style.top = (realRect.top - ourRect.top) / __SIMULATOR.Scale + \"px\";\n\t\t\ttheObject.HTMLParent.style.width = realRect.width / __SIMULATOR.Scale + \"px\";\n\t\t\ttheObject.HTMLParent.style.height = realRect.height / __SIMULATOR.Scale + \"px\";\n\t\t\tbreak;\n\t\tcase __NEMESIS_LOOK_SAP_BELIZE:\n\t\t\tBasic_SetBorders(theObject.HTMLParent, theObject);\n\t\t\ttheObject.HTMLParent.style.left = \"0px\";\n\t\t\ttheObject.HTMLParent.style.top = \"0px\";\n\t\t\ttheObject.HTMLParent.style.width = theHTML.clientWidth - 2 + \"px\"\n\t\t\ttheObject.HTMLParent.style.height = theHTML.clientHeight - theHTML.CAPTION.offsetHeight - 2 + \"px\";\t//dont forget to adjust for border\n\t\t\tbreak;\n\t}\n}", "function Ba(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var a=e.widgets[t],n=a.node.parentNode;n&&(a.height=n.offsetHeight)}}", "function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {\n var viewChildren = node.children || [];\n var orderBy = options.sort;\n orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth; // leafDepth has higher priority.\n\n if (hideChildren && !overLeafDepth) {\n return node.viewChildren = [];\n } // Sort children, order by desc.\n\n\n viewChildren = util[\"n\" /* filter */](viewChildren, function (child) {\n return !child.isRemoved();\n });\n treemapLayout_sort(viewChildren, orderBy);\n var info = statistic(nodeModel, viewChildren, orderBy);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n }\n\n info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n } // Set area to each child.\n\n\n for (var i = 0, len = viewChildren.length; i < len; i++) {\n var area = viewChildren[i].getValue() / info.sum * totalArea; // Do not use setLayout({...}, true), because it is needed to clear last layout.\n\n viewChildren[i].setLayout({\n area: area\n });\n }\n\n if (overLeafDepth) {\n viewChildren.length && node.setLayout({\n isLeafRoot: true\n }, true);\n viewChildren.length = 0;\n }\n\n node.viewChildren = viewChildren;\n node.setLayout({\n dataExtent: info.dataExtent\n }, true);\n return viewChildren;\n}", "update()\n {\n if (!this.renderer.renderingToScreen)\n {\n return;\n }\n\n // update children...\n this.updateAccessibleObjects(this.renderer._lastObjectRendered);\n\n const rect = this.renderer.view.getBoundingClientRect();\n const sx = rect.width / this.renderer.width;\n const sy = rect.height / this.renderer.height;\n\n let div = this.div;\n\n div.style.left = `${rect.left}px`;\n div.style.top = `${rect.top}px`;\n div.style.width = `${this.renderer.width}px`;\n div.style.height = `${this.renderer.height}px`;\n\n for (let i = 0; i < this.children.length; i++)\n {\n const child = this.children[i];\n\n if (child.renderId !== this.renderId)\n {\n child._accessibleActive = false;\n\n core.utils.removeItems(this.children, i, 1);\n this.div.removeChild(child._accessibleDiv);\n this.pool.push(child._accessibleDiv);\n child._accessibleDiv = null;\n\n i--;\n\n if (this.children.length === 0)\n {\n this.deactivate();\n }\n }\n else\n {\n // map div to display..\n div = child._accessibleDiv;\n let hitArea = child.hitArea;\n const wt = child.worldTransform;\n\n if (child.hitArea)\n {\n div.style.left = `${(wt.tx + (hitArea.x * wt.a)) * sx}px`;\n div.style.top = `${(wt.ty + (hitArea.y * wt.d)) * sy}px`;\n\n div.style.width = `${hitArea.width * wt.a * sx}px`;\n div.style.height = `${hitArea.height * wt.d * sy}px`;\n }\n else\n {\n hitArea = child.getBounds();\n\n this.capHitArea(hitArea);\n\n div.style.left = `${hitArea.x * sx}px`;\n div.style.top = `${hitArea.y * sy}px`;\n\n div.style.width = `${hitArea.width * sx}px`;\n div.style.height = `${hitArea.height * sy}px`;\n }\n }\n }\n\n // increment the render id..\n this.renderId++;\n }", "function setEntities() {\n var entitiesArr = new Array();\n var entitiesCurrent = new Array();\n for (var i = 0; i < mRoot.objEntities.count; i++) {\n var entity = mRoot.objEntities.collection[i];\n if (!checkIn(entity.info.id, entitiesCurrent)) {\n if (entity.info.type === typeEntity.t_start) {\n entitiesCurrent.push(entity.info.id);\n var item = {\n x: entity.entity.attr(\"x\"),\n y: entity.entity.attr(\"y\"),\n width: entity.entity.attr(\"width\"),\n height: entity.entity.attr(\"height\"),\n id: entity.info.id,\n annotation: entity.info.annotation,\n label: entity.info.label,\n type: entity.info.type,\n sizeW: $(\"#viewport\").width(),\n sizeH: $(\"#viewport\").height()\n }\n entitiesArr.push(item);\n } else {\n var parent = checkParent(entity);\n if (parent != entity) {\n entitiesArr.push(checkChildren(parent));\n } else {\n entitiesArr.push(checkChildren(entity));\n }\n }\n }\n }\n return entitiesArr;\n\n function checkChildren(entity) {\n // check connection\n if (entity.info._case !== undefined) {\n entity.info._case = undefined;\n }\n if (entity.info._true !== undefined) {\n entity.info[\"_true\"] = undefined;\n }\n if (entity.info._false !== undefined) {\n entity.info[\"_false\"] = undefined;\n }\n if (entity.info._next !== undefined) {\n entity.info[\"_next\"] = undefined;\n }\n var item = entity.info;\n item.x = entity.entity.attr(\"x\"),\n item.y = entity.entity.attr(\"y\"),\n item.width = entity.entity.attr(\"width\"),\n item.height = entity.entity.attr(\"height\"),\n\n item.child = new Array();\n if (entity.info.type === typeEntity.t_decision) {\n item.condition = entity.info.condition;\n }\n if (entity.info.type === typeEntity.t_switch) {\n item.expression = entity.info.expression;\n }\n entitiesCurrent.push(entity.info.id);\n for (var i = 0; i < mRoot.objConnections.count; i++) {\n var conn = mRoot.objConnections.collection[i];\n if (conn.info.from === entity.info.id) {\n for (var j = 0; j < mRoot.objEntities.count; j++) {\n var entityTo = mRoot.objEntities.collection[j];\n if (!checkIn(entityTo.info.id, entitiesCurrent)) {\n if (conn.info.to === entityTo.info.id) {\n var obj = checkChildren(entityTo);\n item.child.push(obj);\n }\n }\n }\n }\n }\n return item;\n }\n\n function checkParent(entity, parent) {\n for (var i = 0; i < mRoot.objConnections.count; i++) {\n var conn = mRoot.objConnections.collection[i];\n if (conn.info.to == entity.info.id) {\n for (var j = 0; j < mRoot.objEntities.count; j++) {\n var entityFrom = mRoot.objEntities.collection[j];\n if (parent !== undefined && parent === entityFrom) {\n return entity;\n }\n if (conn.info.from == entityFrom.info.id) {\n if (entityFrom.info.type === typeEntity.t_start) {\n return entity;\n }\n if (entity === entityFrom) {\n return entity;\n }\n return checkParent(entityFrom, entity);\n }\n }\n }\n }\n return entity;\n }\n}", "updateTransform() {\n if (this.sortableChildren && this.sortDirty) {\n this.sortChildren();\n }\n this._boundsID++;\n this.transform.updateTransform(this.parent.transform);\n // TODO: check render flags, how to process stuff here\n this.worldAlpha = this.alpha * this.parent.worldAlpha;\n for (var i = 0, j = this.children.length; i < j; ++i) {\n var child = this.children[i];\n if (child.visible) {\n child.updateTransform();\n }\n }\n }", "function populateRect(tree, boundaries, width, height) {\n var r,\n settings = tree.context.settings,\n originalDepth = tree.depth || 0;\n \n if (!width || !height) {\n r = d3plus.geom.largestRect(boundaries, { 'angle': 0, 'maxAspectRatio': 11 })[0];\n r.cx -= r.width / 2;\n r.cy -= r.height / 2;\n }\n else\n r = { cx: 0, cy: 0, width: width, height: height };\n \n if (tree.origin != null) {\n r.cx += tree.origin.x;\n r.cy += tree.origin.y;\n boundaries = boundaries.transform({ a: 1, b: 0, c: 0, d: 1, e: tree.origin.x, f: tree.origin.y });\n }\n \n var treemap = d3.layout.treemap()\n .size([r.width, r.height])\n .sticky(true)\n .value(function (d) { return Math.sqrt(d.size); });\n \n var nodes = treemap.nodes(tree).reverse(),\n vertices = nodes\n \t \t.map(function (e, i) { \n \t \te.depth += originalDepth; \n \t \treturn !e.children ? { x: r.cx + e.x + e.dx / 2, y: r.cy + e.y + e.dy / 2, size: e.size, index: i } : null; \n \t })\n \t \t.filter(function (e) { return e != null; });\n\n var voronoi = d3.geom.voronoi()\n .clipPoly(boundaries)\n .x(function (d) { return d.x; })\n .y(function (d) { return d.y; })\n .value (function (d) { return d.size; });\n\n voronoi.edges(vertices).forEach(function (p) { \n var i = p.point.index;\n\n nodes[i].polygon = p;\n nodes[i].origin = p.site;\n }); \n \n // ensure everybody has polygon and centroid members. NOTE: We're traversing in reverse\n // which implies that children are traversed before their parents.\n nodes.forEach(function (node) {\n if (!node.origin) {\n node.polygon = mergePolygons(node.children.map(function(n) { return n.polygon; }))\n var carr = d3.geom.polygon(node.polygon).centroid();\n node.origin = { x: carr[0], y: carr[1] };\n }\n \n node.depthRoot = tree;\n delete node.x;\n delete node.y;\n });\n \n nodes.pop(); // clears the last one... which is the master parent.\n \n // we have to do that separately, because otherwise we're going to mess up the\n // mergePolygons procedure up there.\n nodes.forEach(function (node) {\n node.polygon.forEach(function (pt) { pt[0] -= node.origin.x; pt[1] -= node.origin.y; }); \n });\n }", "function changeAreaSize() {\n changeBackgroundSize();\n for (i = 0; i <= width; i++) {\n changeLineSize(0, i);\n }\n for (i = 0; i <= height; i++) {\n changeLineSize(1, i);\n }\n for (i = 0; i < $MAX_WIDTH_DIMENSION; i++) {\n for (j = 0; j < $MAX_HEIGTH_DIMENSION; j++) {\n changeSquareSize(i, j);\n changeSquareAuxSize(i, j);\n }\n }\n changeCalculatedSize(0);\n changeCalculatedSize(1);\n changeDecreaseArrowSize(0);\n changeIncreaseArrowSize(0);\n changeDecreaseArrowSize(1);\n changeIncreaseArrowSize(1);\n changeDecreaseArrowSize(2);\n changeIncreaseArrowSize(2);\n}", "_drawAreas() {\n let layout = this._chartLayout;\n\n // plot area\n this._setColor(\"#ffa500\");\n this._context.fillRect(\n layout.plotAreaRect.left + layout.canvasXOffset, layout.plotAreaRect.top + layout.canvasYOffset,\n layout.plotAreaRect.width, layout.plotAreaRect.height);\n\n // X-axis area\n this._setColor(\"#008000\");\n this._context.fillRect(\n layout.xAxisLayout.areaRect.left + layout.canvasXOffset, layout.xAxisLayout.areaRect.top + layout.canvasYOffset,\n layout.xAxisLayout.areaRect.width, layout.xAxisLayout.areaRect.height);\n\n // legend area\n this._setColor(\"#ff00ff\");\n this._context.fillRect(\n layout.legendAreaRect.left + layout.canvasXOffset, layout.legendAreaRect.top + layout.canvasYOffset,\n layout.legendAreaRect.width, layout.legendAreaRect.height);\n\n // Y-axis areas\n let n = 0;\n for (let yAxisRect of layout.yAxisAreaRects) {\n this._setColor(++n % 2 ? \"#0000ff\" : \"#00ffff\");\n this._context.fillRect(\n yAxisRect.left + layout.canvasXOffset, yAxisRect.top + layout.canvasYOffset,\n yAxisRect.width, yAxisRect.height);\n }\n }", "function extent() { }", "split() {\n\n\t\tconst min = this.min;\n\t\tconst max = this.max;\n\t\tconst mid = this.getCenter(c);\n\n\t\tconst children = this.children = [\n\n\t\t\tnull, null,\n\t\t\tnull, null,\n\t\t\tnull, null,\n\t\t\tnull, null\n\n\t\t];\n\n\t\tlet i, combination;\n\n\t\tfor(i = 0; i < 8; ++i) {\n\n\t\t\tcombination = pattern[i];\n\n\t\t\tchildren[i] = new this.constructor(\n\n\t\t\t\tnew Vector3(\n\t\t\t\t\t(combination[0] === 0) ? min.x : mid.x,\n\t\t\t\t\t(combination[1] === 0) ? min.y : mid.y,\n\t\t\t\t\t(combination[2] === 0) ? min.z : mid.z\n\t\t\t\t),\n\n\t\t\t\tnew Vector3(\n\t\t\t\t\t(combination[0] === 0) ? mid.x : max.x,\n\t\t\t\t\t(combination[1] === 0) ? mid.y : max.y,\n\t\t\t\t\t(combination[2] === 0) ? mid.z : max.z\n\t\t\t\t)\n\n\t\t\t);\n\n\t\t}\n\n\t}", "recalculateSizes() {\n let elem = ReactDOM.findDOMNode(this).parentNode;\n this.width = elem.offsetWidth - 30;\n this.divHeight = elem.offsetHeight;\n this.height = this.data.length * 60;\n this.barHeight = (this.height - 50) / this.data.length / 2;\n const minSize = Math.min(this.width, this.divHeight);\n this.textSize = minSize / 30;\n }", "adjustChildren(){\n var { context, href, schemas, children, windowWidth } = this.props;\n if (!context) return children;\n // We shouldn't ever receive a single Child.\n return React.Children.map(children, (child)=>\n React.cloneElement(child, { context, href, windowWidth, schemas })\n );\n }", "function populateVisualisations(con){\n\n console.log(con);\n\n var temp = [];\n\n var parent_of_parent = con['parent_of_parent'];\n parent_of_parent['type'] = \"parent_of_parent\";\n\n var parent = con['parent'];\n parent['type'] = \"parent\";\n\n temp.push(parent_of_parent);\n temp.push(parent);\n\n var siblings = con['siblings'];\n for (var elem in siblings) {\n\n siblings[elem]['type'] = \"sibling\";\n temp.push(siblings[elem]);\n }\n\n var children = con['children'];\n for (var elem in children) {\n children[elem]['type'] = \"child\";\n temp.push(children[elem]);\n }\n\n var initCommentHeight;\n var prevNode;\n contextTree.selectAll(\"circle\")\n .data(temp)\n .enter()\n .append(\"circle\")\n .attr(\"id\", function(d) {\n return d['id'];\n })\n .attr(\"class\", function(d) {\n return d['type'];\n })\n .attr(\"r\", 10)\n .attr(\"cx\", function(d) {\n if (d['type'] == 'parent_of_parent' && parent_of_parent != \"\") {\n return (contextTreeContainer.width() / 5);\n } else if (d['type'] == 'parent') {\n return (contextTreeContainer.width() / 5) * 2;\n } else if (d['type'] == 'sibling') {\n return (contextTreeContainer.width() / 5) * 3;\n } else if (d['type'] == 'child') {\n return (contextTreeContainer.width() / 5) * 4;\n } else {\n console.log(\"No 'type'specified for Node\" + d);\n return 1000;\n }\n })\n .attr(\"cy\", function(d, i) {\n if (d['type'] == 'parent_of_parent' && parent_of_parent != \"\") {\n return detailsHeight/2;\n } else if (d['type'] == 'parent') {\n return detailsHeight/2;\n } else if (d['type'] == 'sibling') {\n if (d['id'] == comment['id']) {\n initCommentHeight = (detailsHeight / (1 + siblings.length)) * (i - 1);\n }\n return (detailsHeight/(1+siblings.length)) * (i-1);\n } else if (d['type'] == 'child') {\n return (detailsHeight/(1+children.length)) * (i-1 - siblings.length);\n } else {\n console.log(\"No 'type'specified for Node\" + d);\n return 1000;\n }\n })\n .attr(\"fill\", function(d){\n if (d['id'] == comment['id']) {\n return \"red\";\n } else {\n return \"green\";\n }\n })\n .on(\"click\", function(d) {\n if (prevNode != undefined) {\n if (prevNode.id == comment['id']){\n d3.select(prevNode)\n .attr(\"fill\", \"red\");\n } else {\n d3.select(prevNode)\n .attr(\"fill\", \"green\");\n }\n }\n prevNode = this;\n d3.select(prevNode)\n .attr(\"fill\", \"violet\");\n updateDetails2(d);\n });\n\n contextTree.selectAll(\"line\")\n .data(temp)\n .enter()\n .append(\"line\")\n .attr(\"id\", function(d) {\n return d['type'];\n })\n .attr(\"x1\", function(d){\n if (d['type'] == 'parent_of_parent') {\n return 1000;\n } else if (d['type'] == 'parent' && parent_of_parent != \"\") {\n return (contextTreeContainer.width() / 5);\n } else if (d['type'] == 'sibling') {\n return (contextTreeContainer.width() / 5) * 2;\n } else if (d['type'] == 'child') {\n return (contextTreeContainer.width() / 5) * 3;\n } else {\n console.log(\"No 'type'specified for Node\" + d);\n return 1000;\n }\n })\n .attr(\"x2\", function(d){\n if (d['type'] == 'parent_of_parent') {\n return 1000;\n } else if (d['type'] == 'parent' && parent_of_parent != \"\") {\n return (contextTreeContainer.width() / 5) * 2;\n } else if (d['type'] == 'sibling') {\n return (contextTreeContainer.width() / 5) * 3;\n } else if (d['type'] == 'child') {\n return (contextTreeContainer.width() / 5) * 4;\n } else {\n console.log(\"No 'type'specified for Node\" + d);\n return 1000;\n }\n })\n .attr(\"y1\", function(d){\n if (d['type'] == 'parent_of_parent') {\n return 1000;\n } else if (d['type'] == 'parent' && parent_of_parent != \"\") {\n return detailsHeight/2;\n } else if (d['type'] == 'sibling') {\n return detailsHeight/2;\n } else if (d['type'] == 'child') {\n return initCommentHeight;\n } else {\n console.log(\"No 'type'specified for Node\" + d);\n return 100;\n }\n })\n .attr(\"y2\", function(d, i){\n if (d['type'] == 'parent_of_parent') {\n return 1000;\n } else if (d['type'] == 'parent' && parent_of_parent != \"\") {\n return detailsHeight/2;\n } else if (d['type'] == 'sibling') {\n return (detailsHeight/(1+siblings.length)) * (i-1);\n } else if (d['type'] == 'child') {\n return (detailsHeight/(1+children.length)) * (i-1 - siblings.length);\n } else {\n console.log(\"No 'type'specified for Node\" + d);\n return 100;\n }\n })\n .attr(\"stroke-width\", 2)\n .attr(\"stroke\", \"black\");\n\n\n details1.selectAll(\"text\")\n .data(lcomment)\n .enter()\n .append(\"text\")\n .attr(\"x\", margin.left)\n .attr(\"y\", function(d, i) {\n return margin.top + i*50;\n })\n .text(function (d, i) {\n return \"\" + keys[i] + \": \" + d;\n })\n .attr(\"font-size\", \"20px\")\n .attr(\"fill\", \"red\");\n\n\n function updateDetails2(d) {\n // clear old details\n details2.selectAll(\"svg > g > *\").remove();\n\n // var lkeys = Object.keys(d);\n // var ld = $.map(comment, function(value, index) {\n // return [value];\n // });\n\n // add new details\n body2Container.html(\"<p>\" + d['body'] + \"</p>\")\n\n delete d['body'];\n\n var counter = 0;\n for (var key in d) {\n if (d.hasOwnProperty(key)) {\n details2.append(\"text\")\n .attr(\"x\", margin.left)\n .attr(\"y\", margin.top + counter*50)\n .text(key + \": \" +d[key])\n .attr(\"font-size\", \"20px\")\n .attr(\"fill\", \"red\");\n }\n counter++;\n }\n\n }\n }", "function chart(selection) {\n\n selection.each(function(data){\n\n var parent = d3.select(this);\n var yscale; // not a d3.scale, just a number\n var currentlyActive = null; // node\n\n var availableWidth = width - (labelspace.right+labelspace.left);\n var availableHeight = height - (labelspace.top + labelspace.bottom);\n\n var flowAreasData = [];\n\n\n /* \n The following anonymous function is used to scope the algorithm for\n preparing the data.\n\n It computes sizes and positions for all nodes \n and flows and saves them *on* original data structure.\n\n It does not mutate original data (because then multiple call() would\n destroy the chart.) \n */ \n (function() {\n\n var nodes = data.nodes;\n var flows = data.flows;\n\n // reset counters from any previous render\n nodes.forEach(function(layer){\n layer.size = layer.sizeIn = layer.sizeOut = 0;\n layer.items.forEach(function(group){\n group.size = group.sizeIn = group.sizeOut = 0;\n group.items.forEach(function(node){\n node.size = node.sizeIn = node.sizeOut = 0;\n node.filledOutY = 0;\n node.filledInY = 0;\n });\n });\n });\n\n // compute and store sizes of all layers, groups and nodes by counting flows through them\n flows.forEach(function(flow){\n flow.path.forEach(function(p,i) {\n var layer = nodes[p[0]];\n var nodeGroup = layer.items[p[1]];\n var node = nodeGroup.items[p[2]];\n if (i > 0) { \n layer.sizeIn += flow.magnitude;\n nodeGroup.sizeIn += flow.magnitude;\n node.sizeIn += flow.magnitude;\n }\n if (i < flow.path.length-1) {\n layer.sizeOut += flow.magnitude;\n nodeGroup.sizeOut += flow.magnitude;\n node.sizeOut += flow.magnitude;\n }\n });\n });\n\n nodes.forEach(function(layer){\n layer.size = d3.max([layer.sizeIn, layer.sizeOut]);\n layer.items.forEach(function(group){\n group.size = d3.max([group.sizeIn, group.sizeOut]);\n group.items.forEach(function(node){\n node.size = d3.max([node.sizeIn, node.sizeOut]);\n });\n });\n }); \n\n \n nodes.forEach(function(layer){\n layer.numNodeSpacings = d3.sum(layer.items, function(g){return g.items.length-1;});\n layer.numGroupSpacings = layer.items.length-1;\n });\n\n // yscale calibrated to fill available height according to equation:\n // availableHeight == size*yscale + group_spacing + group_padding + node_spacing\n // (take worst case: smallest value)\n yscale = d3.min(nodes, function(d){\n return (availableHeight \n - d.numGroupSpacings*nodeGroupYSpacing\n - d.items.length*nodeGroupYPadding*2\n - d.numNodeSpacings*nodeYSpacing)/d.size;\n });\n\n // compute layer heights by summing all sizes and spacings\n nodes.forEach(function(layer){\n layer.totalHeight = layer.size * yscale\n + layer.numGroupSpacings*nodeGroupYSpacing\n + layer.items.length*nodeGroupYPadding*2\n + layer.numNodeSpacings*nodeYSpacing;\n });\n\n\n // use computed sizes to compute positions of all layers, groups and nodes\n nodes.forEach(function(layer, layerIdx){\n var y = 0.5*(availableHeight-layer.totalHeight) + labelspace.top;\n layer.y = y;\n layer.items.forEach(function(group, groupIdx){\n\n group.x = labelspace.left+(availableWidth-nodeWidth)*layer.x;\n group.y = y;\n y += nodeGroupYPadding;\n\n group.items.forEach(function(node, nodeIdx){\n node.x = group.x;\n node.y = y;\n y += node.size * yscale;\n node.height = y - node.y;\n y += nodeYSpacing;\n\n node.layerIdx = layerIdx;\n node.groupIdx = groupIdx;\n node.nodeIdx = nodeIdx;\n node.uniqueId = [layerIdx, groupIdx, nodeIdx].join(\"-\");\n \n // convernt string colors and set a default color\n // todo: where should this go?\n if (node.color.length) {\n node.color = d3.hsl(node.color);\n }\n if (!node.color) node.color = d3.hsl(\"#aaa\");\n });\n\n y -= nodeYSpacing;\n y += nodeGroupYPadding;\n group.height = y - group.y;\n \n y += nodeGroupYSpacing;\n\n });\n y -= nodeGroupYSpacing;\n });\n\n\n \n /*\n Compute all the path data for the flows.\n First make a deep copy of the flows data because\n algorithm is destructive\n */\n var flowsCopy = data.flows.map(function(f){\n var f2 = {magnitude: f.magnitude};\n f2.extraClasses = f.path.map(function(addr){return \"passes-\"+addr.join(\"-\");}).join(\" \");\n f2.path = f.path.map(function(addr){\n return addr.slice(0);\n });\n return f2;\n });\n\n while(true) {\n\n flowsCopy = flowsCopy.filter(function(d){return d.path.length > 1;});\n if (flowsCopy.length === 0) return;\n\n flowsCopy.sort(function(a,b){\n return a.path[0][0]-b.path[0][0] \n || a.path[0][1]-b.path[0][1] \n || a.path[0][2]-b.path[0][2]\n || a.path[1][0]-b.path[1][0] \n || a.path[1][1]-b.path[1][1] \n || a.path[1][2]-b.path[1][2];\n });\n\n var layerIdx = flowsCopy[0].path[0][0];\n flowsCopy.forEach(function(flow){\n\n if (flow.path[0][0] != layerIdx) return;\n var from = flow.path[0];\n var to = flow.path[1];\n var h = flow.magnitude*yscale;\n\n var source = nodes[from[0]].items[from[1]].items[from[2]];\n var target = nodes[to[0]].items[to[1]].items[to[2]];\n\n var sourceY0 = source.filledOutY || source.y;\n var sourceY1 = sourceY0 + h;\n source.filledOutY = sourceY1;\n var targetY0 = target.filledInY || target.y;\n var targetY1 = targetY0 + h;\n target.filledInY = targetY1;\n\n flowAreasData.push({\n area: [\n {x: source.x+nodeWidth, y0: sourceY0, y1: sourceY1},\n {x: source.x+nodeWidth+flowStartWidth, y0: sourceY0, y1: sourceY1},\n {x: target.x-flowStartWidth, y0: targetY0, y1: targetY1},\n {x: target.x, y0: targetY0, y1: targetY1},\n ],\n class: [\"flow\", flow.extraClasses].join(\" \")\n });\n\n flow.path.shift();\n });\n } \n\n })(); // end of data preparation\n\n\n // Create all svg elements: layers, groups, nodes and flows.\n var nodeLayers = parent.selectAll(\".node-layers\")\n .data(prop(\"nodes\"));\n\n // layer label positioning functions\n layerLabelx = function(d){return labelspace.left+d.x*(availableWidth-nodeWidth)+0.5*nodeWidth;};\n layerLabely = function(d){return 0.5*labelspace.top;};\n nodeLayers.enter()\n .append(\"g\").classed(\"node-layer\",true)\n .append(\"text\")\n .attr(\"class\", \"layer-label\")\n .attr(\"text-anchor\",\"middle\")\n .attr(\"dx\",0)\n .attr(\"dy\",0);\n\n nodeLayers.selectAll(\"text\")\n .attr(\"x\", layerLabelx)\n .attr(\"y\", layerLabely)\n .text(prop(\"title\")).call(linebreak);\n\n nodeLayers.exit().remove();\n\n var nodeGroups = nodeLayers.selectAll(\"g.node-group\").data(prop(\"items\"));\n var enteringNodeGroups = nodeGroups.enter().append(\"g\").classed(\"node-group\", true);\n\n enteringNodeGroups.append(\"rect\").classed(\"node-group\", true);\n var enteringNodeGroupsG = enteringNodeGroups.append(\"g\").attr(\"class\",\"node-group-label\");\n\n enteringNodeGroupsG.append(\"path\");\n enteringNodeGroupsG.append(\"text\");\n\n nodeGroups.selectAll(\"g.node-group > rect\")\n .attr(\"x\", prop(\"x\"))\n .attr(\"y\", prop(\"y\"))\n .attr(\"width\", nodeWidth)\n .attr(\"height\", prop(\"height\"));\n\n nodeGroups.selectAll(\"g.node-group > g\")\n .style(\"display\",function(d){return d.label ? \"\" : \"none\";});\n\n // node group label position functions\n nodeGroupLabelx = function(d){return d.x+0.5*nodeWidth+0.5*d.label*nodeWidth;};\n nodeGroupLabely = function(d){return d.y + 0.5*d.height;};\n nodeGroups.selectAll(\"g.node-group > g > path\")\n .attr(\"d\", function(d){\n return d3.svg.line()([\n [nodeGroupLabelx(d)+groupLabelDistance*d.label ,d.y+nodeGroupYPadding],\n [nodeGroupLabelx(d)+groupLabelDistance*d.label ,d.y+d.height-nodeGroupYPadding]\n ]);});\n\n nodeGroups.selectAll(\"g.node-group > g > text\")\n .attr(\"text-anchor\",function(d) {return d.label == -1 ? \"end\" : \"start\";})\n .attr(\"dx\",function(d){return d.label*(groupLabelDistance*2);})\n .attr(\"dy\",\"0.3em\")\n .attr(\"x\", nodeGroupLabelx)\n .attr(\"y\", nodeGroupLabely)\n .text(prop(\"title\")).call(linebreak);\n\n\n nodeGroups.exit().remove();\n\n var flowElements = parent.selectAll(\"path.flow\").data(flowAreasData);\n flowElements.enter().append(\"path\").attr(\"class\", prop(\"class\"));\n\n flowElements \n .datum(prop(\"area\"))\n .attr(\"d\", \n d3.svg.area()\n .x(prop(\"x\"))\n .y0(prop(\"y0\"))\n .y1(prop(\"y1\"))\n .interpolate(\"basis\"));\n flowElements.exit().remove();\n\n \n function activateNode(d){\n var node_id = d.uniqueId;\n var theflows, thenode;\n\n if (currentlyActive) {\n \n if (onNodeDeselected) onNodeDeselected(currentlyActive.d);\n\n theflows = parent.selectAll(\".passes-\"+currentlyActive.id);\n thenode = parent.selectAll(\".node-\"+currentlyActive.id);\n\n theflows\n .style(\"fill\", null)\n .style(\"fill-opacity\", null);\n\n\n if (currentlyActive.id == node_id) {\n currentlyActive = selectedNodeAddress = null;\n return;\n }\n }\n\n\n theflows = parent.selectAll(\".passes-\"+node_id);\n thenode = parent.selectAll(\".node-\"+node_id);\n\n theflows.transition()\n .style(\"fill\", d.color)\n .style(\"fill-opacity\", 1.0); \n\n thenode.style(\"fill\", d.color);\n currentlyActive = {\"id\": node_id, \"d\": d};\n selectedNodeAddress = node_id.split(\"-\").map(function(d){return parseInt(d);});\n if (onNodeSelected) onNodeSelected(d); \n }\n\n function mouseoverNode(d) {\n \n if (currentlyActive && currentlyActive.id == d.uniqueId) {\n return;\n }\n d3.select(this).style(\"fill\", d.color.brighter());\n }\n\n function mouseoutNode(d) {\n if (currentlyActive && currentlyActive.id == d.uniqueId) {\n return;\n }\n d3.select(this).style(\"fill\", d.color);\n }\n\n var nodeElements = nodeGroups.selectAll(\"rect.node\").data(prop(\"items\"));\n nodeElements.enter().append(\"rect\").attr(\"class\", function(d){return \"node node-\"+d.uniqueId;});\n nodeElements\n .attr(\"x\", prop(\"x\"))\n .attr(\"y\", prop(\"y\"))\n .attr(\"width\", nodeWidth)\n .attr(\"height\",prop(\"height\"))\n .style(\"fill\", function(d){return d.color;})\n .on(\"mouseover\", mouseoverNode)\n .on(\"mouseout\", mouseoutNode)\n .on(\"click\", activateNode);\n nodeElements.exit().remove();\n \n if (selectedNodeAddress) {\n var node = data.nodes[selectedNodeAddress[0]]\n .items[selectedNodeAddress[1]]\n .items[selectedNodeAddress[2]];\n activateNode(node);\n } \n }); // selection.each()\n }", "createChildren(){\n\t\tvar left = []; \n\t\tvar right = [];\n\t\tvar intersection_points = [];\n\t\tvar color = [];\n\t\tvar origin = [];\n\t\t\t\n\t\t\tarrange(this.vertex);\n\t\t\t//gets points where polygon line intersects with mouse line\n\t\t\tfor(var i = 0; i < this.vertex.length ; i ++){\n\t\t\t\tif(i == this.vertex.length - 1)\n\t\t\t\t\tvar point = getIntersection(this.vertex[i], this.vertex[0]);\t\t\t\t\n\t\t\t\telse\n\t\t\t\t\tvar point = getIntersection(this.vertex[i], this.vertex[i+1]);\n\t\t\t\tif(point != null){\n\t\t\t\t\tintersection_points.push(point);\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tleft = intersection_points.slice();\n\t\t\tright = intersection_points.slice();\n\t\t\torigin = intersection_points.slice();\n\t\t\t//separates in two nodes\n\t\t\tfor(var i = 0; i < this.vertex.length; i ++){\n\t\t\t\t\n\t\t\t\tif(position(mouse_press, mouse_drag, this.vertex[i]) < 0)\n\t\t\t\t\tleft.push(this.vertex[i]);\n\n\t\t\t\telse if(position(mouse_press, mouse_drag, this.vertex[i]) > 0)\n\t\t\t\t\tright.push(this.vertex[i]);\n\n\t\t\t}\n\n\t\t\t//sets child variables\n\t\t\tcolor = this.color.slice();\n\t\t\tthis.children.push(new Node(left, color, this));\n\t\t\tcolor = randomColor();\n\t\t\tthis.children.push(new Node(right, color, this));\t\n\t\t\tthis.children[0].origin_line = origin.slice();\n\t\t\tthis.children[1].origin_line = origin.slice();\n\t\t\tthis.children[0].root = this.root;\n\t\t\tthis.children[1].root = this.root;\n\n\n\t}", "render() {\n const total = this.values.reduce((a, b) => a + b, 0);\n\n const rest = 100 - total;\n const dataset = rest > 0 ? [...this.values, rest] : this.values;\n\n this._renderSvg();\n this._renderGroups(dataset, rest);\n this._renderRects(dataset);\n this._renderMarkers();\n }", "function initChildren(node,nodeModel,totalArea,options,hideChildren,depth){var viewChildren=node.children || [];var orderBy=options.sort;orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);var overLeafDepth=options.leafDepth != null && options.leafDepth <= depth; // leafDepth has higher priority.\n if(hideChildren && !overLeafDepth){return node.viewChildren = [];} // Sort children, order by desc.\n viewChildren = zrUtil.filter(viewChildren,function(child){return !child.isRemoved();});sort(viewChildren,orderBy);var info=statistic(nodeModel,viewChildren,orderBy);if(info.sum === 0){return node.viewChildren = [];}info.sum = filterByThreshold(nodeModel,totalArea,info.sum,orderBy,viewChildren);if(info.sum === 0){return node.viewChildren = [];} // Set area to each child.\n for(var i=0,len=viewChildren.length;i < len;i++) {var area=viewChildren[i].getValue() / info.sum * totalArea; // Do not use setLayout({...}, true), because it is needed to clear last layout.\n viewChildren[i].setLayout({area:area});}if(overLeafDepth){viewChildren.length && node.setLayout({isLeafRoot:true},true);viewChildren.length = 0;}node.viewChildren = viewChildren;node.setLayout({dataExtent:info.dataExtent},true);return viewChildren;}", "function setBounds() {\n let el = angular.element(canvas);\n\n //set initial style\n if ( scope.options.layout.height === \"inherit\" ) {\n let viewHeight = view.getHeight();\n el.css(\"height\", `${viewHeight}px`);\n el.attr(\"height\", `${viewHeight * view.scale}px`);\n } else {\n el.css(\"height\", `${scope.options.layout.height}px`);\n el.attr(\"height\", `${scope.options.layout.height * view.scale}px`);\n }\n //set initial style\n if ( scope.options.layout.width === \"inherit\" ) {\n let viewWidth = view.getWidth();\n el.css(\"width\", `${viewWidth}px`);\n el.attr(\"width\", `${viewWidth * view.scale}px`);\n } else {\n el.css(\"width\", `${scope.options.layout.width}px`);\n el.attr(\"width\", `${scope.options.layout.width * view.scale}px`);\n }\n }", "createVisualBoundaries() {\n this.groups.forEach(item => {\n if (item.id != ID_GROUP_TOTAL) {\n this.items.add({\n group: item.id,\n start: item.end,\n end: item.end,\n type: \"background\"\n });\n }\n });\n }", "_calcCoordinates(dataNodes) {\n let distScale = linear().range([20, this._innerRadius]).domain([0, this._dataLinks.heightTree]);\n this._vOrder.forEach((d, i) => {\n dataNodes[d].x = this._vAngle[i];\n dataNodes[d].y = this._innerRadius;\n });\n posOrdem(this._dataLinks.tree);\n function posOrdem(raiz) {\n let xPrim, xUlt;\n if (raiz.children !== undefined) {\n raiz.children.forEach(function (d) {\n posOrdem(d);\n });\n console.log(\"parent\", raiz);\n console.log(\"children\", raiz.children[0]);\n xPrim = raiz.children[0].data.x;\n xUlt = raiz.children[raiz.children.length - 1].data.x;\n if (xPrim < xUlt) {\n raiz.x = (xPrim + xUlt) / 2;\n raiz.data.x = (xPrim + xUlt) / 2;\n }\n else {\n raiz.x = ((xUlt + 360 - xPrim) / 2 + xPrim) % 360;\n raiz.data.x = (xPrim + xUlt) / 2;\n }\n raiz.y = distScale(raiz.depth);\n raiz.data.y = distScale(raiz.depth);\n }\n }\n }", "GridProportion(ev, data) {\n let parentName = ev.target.offsetParent.className,\n containerName = 'container_' + parentName.split('_')[1],\n configName = parentName.split(' ')[1],\n gridTotally = 0,\n nodes = $('.' + configName + ' .column input[type=\"text\"]');\n\n for (let j = 0; j < nodes.length; j++) {\n let num = parseInt(nodes[j].value, 10);\n let name = $('.' + containerName)[0].childNodes[j].className;\n\n gridTotally += num;\n data.map(d=>{\n d.id === name ? d.properties.map(p=>{\n p.name === 'bootstrapSmall' ? p.value = num : null;\n }) : null;\n });\n }\n if (gridTotally === 12) {\n for (let i = 0; i < nodes.length; i++) {\n let value = nodes[i].value,\n chartProperty = {},\n node = $('.' + containerName)[0].childNodes[i],\n canvas = node.childNodes[0] ?\n node.childNodes[0].childNodes[0].className : null;\n\n node.style.width = (value / 12 * 100) + '%';\n let cntWidth = $('.' + containerName)[0].clientWidth;\n\n data.map((d, i)=>{\n if (d.canvas && d.canvas.className === canvas) {\n d.components.properties.map(t=>{\n t.name === 'width' ? t.value = value / 12 * cntWidth - 10 : null;\n chartProperty[t.name] = (t.value === 'false' || t.value === 'true') ?\n JSON.parse(t.value) : t.value;\n });\n let obj = {\n option: d.type,\n node: [d.canvas],\n chartData: chartProperty\n };\n\n ChartComponent(obj);\n }\n });\n this.props.saveData(data);\n }\n }\n }", "applyNodeDimensions() {\n if (this.nodeElements && this.nodeElements.length) {\n this.nodeElements.map(elem => {\n const nativeElement = elem.nativeElement;\n const node = this.graph.nodes.find(n => n.id === nativeElement.id);\n if (!node) {\n return;\n }\n // calculate the height\n let dims;\n try {\n dims = nativeElement.getBBox();\n if (!dims.width || !dims.height) {\n return;\n }\n }\n catch (ex) {\n // Skip drawing if element is not displayed - Firefox would throw an error here\n return;\n }\n if (this.nodeHeight) {\n node.dimension.height =\n node.dimension.height && node.meta.forceDimensions ? node.dimension.height : this.nodeHeight;\n }\n else {\n node.dimension.height =\n node.dimension.height && node.meta.forceDimensions ? node.dimension.height : dims.height;\n }\n if (this.nodeMaxHeight) {\n node.dimension.height = Math.max(node.dimension.height, this.nodeMaxHeight);\n }\n if (this.nodeMinHeight) {\n node.dimension.height = Math.min(node.dimension.height, this.nodeMinHeight);\n }\n if (this.nodeWidth) {\n node.dimension.width =\n node.dimension.width && node.meta.forceDimensions ? node.dimension.width : this.nodeWidth;\n }\n else {\n // calculate the width\n if (nativeElement.getElementsByTagName('text').length) {\n let maxTextDims;\n try {\n for (const textElem of nativeElement.getElementsByTagName('text')) {\n const currentBBox = textElem.getBBox();\n if (!maxTextDims) {\n maxTextDims = currentBBox;\n }\n else {\n if (currentBBox.width > maxTextDims.width) {\n maxTextDims.width = currentBBox.width;\n }\n if (currentBBox.height > maxTextDims.height) {\n maxTextDims.height = currentBBox.height;\n }\n }\n }\n }\n catch (ex) {\n // Skip drawing if element is not displayed - Firefox would throw an error here\n return;\n }\n node.dimension.width =\n node.dimension.width && node.meta.forceDimensions ? node.dimension.width : maxTextDims.width + 20;\n }\n else {\n node.dimension.width =\n node.dimension.width && node.meta.forceDimensions ? node.dimension.width : dims.width;\n }\n }\n if (this.nodeMaxWidth) {\n node.dimension.width = Math.max(node.dimension.width, this.nodeMaxWidth);\n }\n if (this.nodeMinWidth) {\n node.dimension.width = Math.min(node.dimension.width, this.nodeMinWidth);\n }\n });\n }\n }", "function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {\n\t var viewChildren = node.children || [];\n\t var orderBy = options.sort;\n\t orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n\n\t var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth;\n\n\t // leafDepth has higher priority.\n\t if (hideChildren && !overLeafDepth) {\n\t return node.viewChildren = [];\n\t }\n\n\t // Sort children, order by desc.\n\t viewChildren = zrUtil.filter(viewChildren, function (child) {\n\t return !child.isRemoved();\n\t });\n\n\t sort(viewChildren, orderBy);\n\n\t var info = statistic(nodeModel, viewChildren, orderBy);\n\n\t if (info.sum === 0) {\n\t return node.viewChildren = [];\n\t }\n\n\t info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\n\t if (info.sum === 0) {\n\t return node.viewChildren = [];\n\t }\n\n\t // Set area to each child.\n\t for (var i = 0, len = viewChildren.length; i < len; i++) {\n\t var area = viewChildren[i].getValue() / info.sum * totalArea;\n\t // Do not use setLayout({...}, true), because it is needed to clear last layout.\n\t viewChildren[i].setLayout({ area: area });\n\t }\n\n\t if (overLeafDepth) {\n\t viewChildren.length && node.setLayout({ isLeafRoot: true }, true);\n\t viewChildren.length = 0;\n\t }\n\n\t node.viewChildren = viewChildren;\n\t node.setLayout({ dataExtent: info.dataExtent }, true);\n\n\t return viewChildren;\n\t}", "normalizeWidths() {\n // Loop through each level for tree\n for (let i = 0; i <= this.treeDepth; i++) {\n // Retrieve all nodes in level\n const nodes = document.querySelectorAll(`.level-${i}`);\n const nodeList = Array.from(nodes);\n\n // Determine the maximum width for all nodes\n const maxWidth = nodeList.reduce((max, curr) => {\n return curr.clientWidth > max ? curr.clientWidth : max;\n }, 0);\n\n // Set each node to max width\n nodeList.forEach(node => {\n node.style.width = maxWidth;\n });\n }\n }", "function resize() { \n\t\t\tconsole.log(\"resizing base\");\n\t\t\tbase.width = parent.clientWidth;\n\t\t\tsvg.setAttributeNS(null, \"width\", base.width);\n\n\t\t\t// only resize the height if aspect was specified instead of height\n\t\t\tif (opts.aspect) {\n\t\t\t base.height = base.width * opts.aspect;\n\t\t\t\tsvg.setAttributeNS(null, \"height\", base.height);\n\t\t\t}\n\n\t\t base.scale = base.width / base.original_width;\n\n\t\t\t// optional callback\n\t\t\tif (opts.onResize) {\n\t\t\t\topts.onResize(base.width, base.height, base.scale);\n\t\t\t}\n\t\t}", "function resize() {\n\t\tpositionExpandedLevels();\n\t}", "resize() {\n\t\t\t\t// defaults to grabbing dimensions from container element\n\t\t\t\tif (data.location === 'Maine'){\n \t\t\t\twidth = $sel.node().offsetWidth\n \t\t\t\t$sel.style('height', `${width * 0.7}px`)\n\t\t\t\t} else {\n\t\t\t\t\twidth = d3.select('.block-Maine').node().offsetWidth\n\t\t\t\t\t$sel.style('height', `${width * 0.7}px`)\n\t\t\t\t}\n\n\t\t\t\tconst windowWidth = window.innerWidth\n\t\t\t\tisMobile = windowWidth <= 600\n\t\t\t\tfactor = isMobile === true ? 20 : 4\n\n\t\t\t\t$legendScale.text(`${factor}`)\n\n\t\t\t\t// container height should be height - text height\n\t\t\t\tcontainerHeight = (width * 0.7) - textHeight\n\n\t\t\t\t// resize entire bounding chart once\n\t\t\t\tif (data.location === 'Florida') {\n\t\t\t\t\tconst $figure = d3.select('.movement-figure')\n\t\t\t\t\tconst $bound = $figure.select('.figure-container')\n\t\t\t\t\t\t.style('height', `${width * 8}px`)\n\t\t\t\t}\n\n\n\n\t\t\t\tconst $imports = $sel.select('.container-imports')\n\t\t\t\tconst $exports = $sel.select('.container-exports')\n\n\t\t\t\t// if the blocks have already been drawn\n\t\t\t\tif (rendered && data.location !== 'blank') {\n\t\t\t\t\t// console.log({factor})\n\t\t\t\t\t// addDogBlocks({$imports, $exports, factor})\n\t\t\t\t\t$imports.selectAll('.import')\n\t\t\t\t\t\t.data(d3.range(data.count.imported / factor))\n\t\t\t\t\t\t.join(update => {\n\t\t\t\t\t\t\tupdate.append('div')\n\t\t\t\t\t\t\t\t.attr('class', 'export')\n\t\t\t\t\t\t\t\t.style('background-color', 'red')\n\t\t\t\t\t\t})\n\n\t\t\t\t\t$exports.selectAll('.export')\n\t\t\t\t\t\t.data(d3.range(data.count.exported / factor))\n\t\t\t\t\t\t.join(update => {\n\t\t\t\t\t\t\tupdate.append('div')\n\t\t\t\t\t\t\t\t.attr('class', 'export')\n\t\t\t\t\t\t})\n\n\t\t\t\t}\n\n\t\t\t\treturn Chart;\n\t\t\t}", "function layout(node) {\n //all children of the same parent are rendered on the same x level\n //y increases every time a child is added to the list\n var x = 0, y = 0;\n visit(function (n, index, parent) {\n x = parent ? parent.x + childIndent : 0;\n y = y + nodeHeight;\n n.y = y;\n n.x = x;\n\n }, node);\n //update size after visiting\n size = [x, y];\n }", "GetChildrenBounds(child) {\n let childSize;\n childSize = child.desiredSize.clone();\n let diffAngle = child.rotateAngle - this.rotateAngle;\n let refPoint = { x: child.offsetX, y: child.offsetY };\n let left = refPoint.x - childSize.width * child.pivot.x;\n let top = refPoint.y - childSize.height * child.pivot.y;\n let right = left + childSize.width;\n let bottom = top + childSize.height;\n let topLeft = { x: left, y: top };\n let topRight = { x: right, y: top };\n let bottomLeft = { x: left, y: bottom };\n let bottomRight = { x: right, y: bottom };\n topLeft = rotatePoint(child.rotateAngle, child.offsetX, child.offsetY, topLeft);\n topRight = rotatePoint(child.rotateAngle, child.offsetX, child.offsetY, topRight);\n bottomLeft = rotatePoint(child.rotateAngle, child.offsetX, child.offsetY, bottomLeft);\n bottomRight = rotatePoint(child.rotateAngle, child.offsetX, child.offsetY, bottomRight);\n if (this.rotateAngle !== 0) {\n topLeft = rotatePoint(-this.rotateAngle, undefined, undefined, topLeft);\n topRight = rotatePoint(-this.rotateAngle, undefined, undefined, topRight);\n bottomLeft = rotatePoint(-this.rotateAngle, undefined, undefined, bottomLeft);\n bottomRight = rotatePoint(-this.rotateAngle, undefined, undefined, bottomRight);\n }\n return Rect.toBounds([topLeft, topRight, bottomLeft, bottomRight]);\n }", "constructor(upper, lower, splitter, upperMin, lowerMin, initialPosition, percentage) {\n this.upper = upper;\n this.lower = lower;\n this.splitter = splitter;\n this.upperMin = upperMin;\n this.lowerMin = lowerMin;\n this.initialPosition = initialPosition;\n this.percentage = percentage;\n\n this.container = this.splitter.parentNode;\n this.dragging = false;\n\n this.upperHeight = getDimension(this.upper, \"height\");\n this.lowerHeight = getDimension(this.lower, \"height\")\n this.totalHeight = this.upperHeight + this.lowerHeight;\n\n if (typeof this.initialPosition != \"undefined\") {\n this.updateTotalHeight();\n this.setHeights((typeof this.percentage != \"undefined\")\n ? this.totalHeight * this.initialPosition / 100\n : this.initialPosition);\n\n this.totalWidth = getDimension(this.container, \"width\");\n this.setWidths();\n }\n\n this.splitter.onmousedown = ev => {\n this.dragging = true;\n this.latestY = ev.clientY;\n };\n\n this.container.onmousemove =\n ev => {\n if (this.dragging) {\n let delta = ev.clientY - this.latestY;\n this.latestY = ev.clientY;\n this.setHeights(this.upperHeight + delta);\n }\n };\n\n this.container.onmouseup =\n this.container.onmouseleave =\n ev => { this.dragging = false; };\n\n this.container.onresize = ev => {\n this.totalWidth = getDimension(this.container, \"width\");\n this.setWidths();\n\n let proportion = this.upperHeight / this.totalHeight;\n this.updateTotalHeight();\n this.setHeights(this.totalHeight * proportion);\n };\n }", "function resize() { \n\t\tbase.width = parent.clientWidth;\n\t\tsvg.setAttributeNS(null, \"width\", base.width);\n\n\t\t// only resize the height if aspect was specified instead of height\n\t\tif (opts.aspect) {\n\t\t base.height = base.width * opts.aspect;\n\t\t\tsvg.setAttributeNS(null, \"height\", base.height);\n\t\t}\n\n\t base.scale = base.width / base.original_width;\n\n\t\t// optional callback\n\t\tif (opts.onResize) {\n\t\t\topts.onResize(base.width, base.height, base.scale, svg);\n\t\t}\n\t}", "function handleFigures(figures) {\n let areasArray = [];\n for (let i = 0; i<figures.length; i++) {\n let parentClass = Object.getPrototypeOf(figures[i].constructor).name;\n let className = figures[i].toString();\n let area = figures[i].getArea();\n console.log(parentClass + ': ' + className + ' - ' + area);\n areasArray.push(area);\n }\n console.log('Total area: ' + areasArray.reduce((acc,currentValue, currentIndex, array)=>acc+currentValue));\n}", "offsetAll(){\n var self = this;\n this.components.forEach(function(item){\n item.set({left: item.left+self.left, top: item.top+self.top, scaleX: 1, scaleY: 1});\n });\n }", "function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {\n var viewChildren = node.children || [];\n var orderBy = options.sort;\n orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n\n var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth;\n\n // leafDepth has higher priority.\n if (hideChildren && !overLeafDepth) {\n return (node.viewChildren = []);\n }\n\n // Sort children, order by desc.\n viewChildren = zrUtil.filter(viewChildren, function (child) {\n return !child.isRemoved();\n });\n\n sort(viewChildren, orderBy);\n\n var info = statistic(nodeModel, viewChildren, orderBy);\n\n if (info.sum === 0) {\n return (node.viewChildren = []);\n }\n\n info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\n if (info.sum === 0) {\n return (node.viewChildren = []);\n }\n\n // Set area to each child.\n for (var i = 0, len = viewChildren.length; i < len; i++) {\n var area = viewChildren[i].getValue() / info.sum * totalArea;\n // Do not use setLayout({...}, true), because it is needed to clear last layout.\n viewChildren[i].setLayout({area: area});\n }\n\n if (overLeafDepth) {\n viewChildren.length && node.setLayout({isLeafRoot: true}, true);\n viewChildren.length = 0;\n }\n\n node.viewChildren = viewChildren;\n node.setLayout({dataExtent: info.dataExtent}, true);\n\n return viewChildren;\n }", "function SaveTheView()\n{\n console.log($(\".display-area\")[0].children)\n var z=$(\".display-area\")[0].children.length;\n for(i=0;i<z;i++)\n {\n console.log($(\".display-area\")[0].children[i])\n console.log($(\".display-area\")[0].children[i].attributes.name.value)\n console.log($(\".display-area\")[0].children[i].style.position)\n console.log($(\".display-area\")[0].children[i].style.top)\n console.log($(\".display-area\")[0].children[i].style.left)\n \n shapes.id=$(\".display-area\")[0].children[i].id;\n shapes.type=$(\".display-area\")[0].children[i].attributes.name.value;\n shapes.position=$(\".display-area\")[0].children[i].style.position;\n shapes.left=$(\".display-area\")[0].children[i].style.left;\n shapes.top=$(\".display-area\")[0].children[i].style.top;\n }\n console.log(shapes)\n}", "function setPos(root, bounds) {\n if (!root.children) {\n return;\n }\n\n // Space out remaining bounds evenly to children\n let n = root.children.length;\n let spacing = (bounds.max - bounds.min) / n;\n\n for (let i = 0; i < root.children.length; i++) {\n let child = root.children[i];\n child.x = bounds.min + (spacing * i) + (spacing / 2);\n child.y = child.level * 30;\n g.append('text').attr('x', child.x).attr('y', child.y).text(child.element.tagName).style('fill', colorScale(child.level));\n setPos(child, {min: child.x - (spacing / 2), max: child.x + (spacing / 2)});\n }\n}", "function drawAll() {\n if (!currentViewExtents) {\n currentViewExtents = timelineController.viewExtents;\n }\n\n // update size of main canvas\n var w = timelineController.width + margin.left + margin.right;\n var e = angular.element(main.canvas);\n main.resize(w);\n\n var s = function(v) {\n return v * main.ratio;\n };\n\n main.ctx.clearRect(0, 0, main.canvas.width, main.canvas.height);\n main.ctx.drawImage(lanes.canvas, 0, 0);\n\n // draw all visible regions\n var startX = absolute(currentViewExtents[0]);\n var endX = absolute(currentViewExtents[1]);\n var viewRegions = getContainedRegions(startX, endX);\n\n var effectiveWidth = 0;\n viewRegions.forEach(function(region) {\n effectiveWidth += region.width;\n });\n\n if (effectiveWidth < timelineController.width) {\n // we had to cap the region generation previously, but moved outside of\n // the generated area, so regenerate regions around the current view\n createRegions();\n viewRegions = getContainedRegions(startX, endX);\n }\n\n viewRegions.forEach(function(region) {\n drawRegion(region);\n\n // calculate the cropping area and offsets needed to place the region\n // in the main canvas\n var sx1 = Math.max(0, startX - region.x);\n var sx2 = Math.min(region.width, endX - region.x);\n var sw = sx2 - sx1;\n var dx = Math.max(0, startX - region.x);\n if (Math.floor(sw) === 0) {\n return;\n }\n\n main.ctx.drawImage(\n region.c.canvas,\n s(sx1), 0, Math.floor(s(sw)), s(height),\n s(margin.left + region.x - startX + sx1), 0, s(sw), s(height));\n });\n }", "function expandArea(elms) {\r\n\t\t//alert(\"running expandArea(elms) function...\");\r\n\t\tvar\toldX = 0;\r\n\t\tvar\toldY = 0;\r\n\t\tvar\tzIndexCnt =\t999;\r\n\t\tvar\telms2 =\t[];\r\n\t\tfor(var\ti =\t0; i < elms.length;\ti++) { \r\n\t\t\telms2.push(elms[i]);\r\n\t\t}\r\n\t\tfor(var\ti =\t0; i < elms2.length; i++) {\t\r\n\t\t\tapplyArea(elms2[i]);\r\n\t\t}\r\n\r\n\t\tfunction applyArea(elm)\t{\r\n\t\t\t//alert(\"running applyArea(elm) function...\");\r\n\t\t\tvar\tw =\telm.offsetWidth,\r\n\t\t\t\th =\telm.offsetHeight;\r\n\t\t\tvar\tpos\t= getAbsolutePosition(elm);\r\n\t\t\tvar\torigPos\t= {x: pos.x, y:\tpos.y};\r\n\r\n\t\t\tvar\toverlay\t= document.createElement(\"div\");\r\n\t\t\toverlay.style.width\t= w\t+ \"px\";\r\n\t\t\toverlay.style.height = h + \"px\";\r\n\t\t\toverlay.style.position = \"absolute\";\r\n\t\t\toverlay.style.left = pos.x + \"px\";\r\n\t\t\toverlay.style.top =\tpos.y +\t\"px\";\r\n\t\t\t//overlay.style.padding\t= \"4px\";\r\n\t\t\toverlay.style.zIndex = \"\" +\tzIndexCnt;\r\n\t\t\toverlay.className =\t\"ExpandArea\";\r\n\r\n\t\t\tvar\tsize = document.createElement(\"div\");\r\n\t\t\tsize.style.width = size.style.height = \"8px\";\r\n\t\t\tsize.style.background =\t\"#33f\";\r\n\t\t\tsize.style.position\t= \"absolute\";\r\n\t\t\tsize.style.right = \"-12px\";\r\n\t\t\tsize.style.bottom =\t\"-12px\";\r\n\t\t\tsize.style.cursor =\t\"nw-resize\";\r\n\t\t\tsize.style.MozBorderRadius = \"4px\";\r\n\t\t\tsize.style.border =\t\"1px solid white\";\r\n\t\t\tsize.style.zIndex =\t\"\" + zIndexCnt;\r\n\t\t\tsize.setAttribute(\"title\", \"Drag to size text area, or press SHIFT key and drag to zoom\");\r\n\t\t\tvar\toffX, offY;\r\n\t\t\tsize.addEventListener(\"mousedown\", function(e) {\r\n\t\t\t\traiseToTop();\r\n\t\t\t\toffX = e.layerX\t+ 2; offY =\te.layerY + 2;\r\n\t\t\t\t//window.alert(\"e.layerX/Y:\t\" +\te.layerX + \"/\" + e.layerY);\r\n\t\t\t\tdocument.body.addEventListener(\"mousemove\", doSize, false);\t// Looks for SHIFT key\r\n\t\t\t\tdocument.body.addEventListener(\"mouseup\", endSize, false);\r\n\t\t\t}, false);\r\n\t\t\toverlay.appendChild(size);\r\n\r\n\t\t\tvar\tstartingPos;\r\n\t\t\tvar\treset =\tsize.cloneNode(false);\r\n\t\t\treset.style.background = \"#c00\";\r\n\t\t\treset.style.right =\t\"1px\";\r\n\t\t\treset.style.cursor = \"pointer\";\r\n\t\t\treset.setAttribute(\"title\",\t\"Click to toggle between reset/maximized, or drag to move text area\");\r\n\t\t\treset.addEventListener(\"mousedown\",\tfunction(e)\t{\r\n\t\t\t\tstartingPos\t= {x: pos.x, y:\tpos.y};\r\n\t\t\t\traiseToTop();\r\n\t\t\t\toffX = e.layerX; offY =\te.layerY + 2;\r\n\t\t\t\tdocument.body.addEventListener(\"mousemove\",\tdoMove,\tfalse);\r\n\t\t\t\tdocument.body.addEventListener(\"mouseup\", endMove, false);\r\n\t\t\t}, false);\r\n\t\t\toverlay.appendChild(reset);\r\n\r\n\t\t\tvar\ttxt\t= document.createElement(\"textarea\");\r\n\t\t\ttxt.value =\telm.value;\r\n\t\t\ttxt.style.width\t= \"100%\";\r\n\t\t\ttxt.style.height = \"100%\";\r\n\t\t\ttxt.addEventListener(\"blur\", function(e) {\r\n\t\t\t\telm.value =\tthis.value;\r\n\t\t\t}, false);\r\n\t\t\t\r\n\t\t\toverlay.appendChild(txt);\r\n\r\n\t\t\tdocument.body.appendChild(overlay);\r\n\t\t\telm.style.visibility = \"hidden\";\r\n\r\n\t\t\tfunction raiseToTop() {\r\n\t\t\t\tzIndexCnt++;\r\n\t\t\t\tsize.style.zIndex\t = \"\" +\tzIndexCnt;\r\n\t\t\t\treset.style.zIndex\t = \"\" +\tzIndexCnt;\r\n\t\t\t\toverlay.style.zIndex = \"\" +\tzIndexCnt;\r\n\t\t\t\t//window.alert(\"zIndexCnt is now: \"\t+ zIndexCnt);\r\n\t\t\t}\r\n\r\n\t\t\tfunction doSize(e) {\r\n\t\t\t\tvar\tx =\te.pageX\t- pos.x\t- offX;\r\n\t\t\t\tvar\ty =\te.pageY\t- pos.y\t- offY;\r\n\r\n\t\t\t\tif (! e.shiftKey) {\r\n\t\t\t\t\t// standard\tresize\r\n\t\t\t\t\toverlay.style.width\t= x\t+ \"px\";\r\n\t\t\t\t\toverlay.style.height = y + \"px\";\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// Do \"centered\tzoom\" resizing if SHIFT\tkey\tis held\tdown\r\n\t\t\t\t\tif (oldX ==\t0) { oldX =\tx; oldY\t= y; }\r\n\r\n\t\t\t\t\tpos.x =\tpos.x +\t(oldX-x);\r\n\t\t\t\t\toverlay.style.left = pos.x + \"px\";\r\n\t\t\t\t\tx =\te.pageX\t- pos.x\t- offX;\r\n\t\t\t\t\toverlay.style.width\t= x\t+ \"px\";\r\n\r\n\t\t\t\t\tpos.y =\tpos.y +\t(oldY-y);\r\n\t\t\t\t\toverlay.style.top =\tpos.y +\t\"px\";\r\n\t\t\t\t\ty =\te.pageY\t- pos.y\t- offY;\r\n\t\t\t\t\toverlay.style.height = y + \"px\";\r\n\r\n\t\t\t\t\toldX = x; oldY = y;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfunction endSize(e)\t{\r\n\t\t\t\toldX = 0; oldY = 0;\r\n\t\t\t\tdocument.body.removeEventListener(\"mousemove\", doSize, false);\r\n\t\t\t\tdocument.body.removeEventListener(\"mouseup\", endSize, false);\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\tfunction doMove(e) {\r\n\t\t\t\tvar\tx =\te.pageX\t- (pos.x + offX);\r\n\t\t\t\tvar\ty =\te.pageY\t- (pos.y + offY);\r\n\t\t\t\t\r\n\t\t\t\tif (oldX ==\t0) { oldX =\tx; oldY\t= y; }\r\n\r\n\t\t\t\tpos.x =\tpos.x -\t(oldX-x);\r\n\t\t\t\toverlay.style.left = pos.x + \"px\";\r\n\r\n\t\t\t\tpos.y =\tpos.y -\t(oldY-y);\r\n\t\t\t\toverlay.style.top =\tpos.y +\t\"px\";\r\n\r\n\t\t\t\tx =\te.pageX\t- (pos.x + offX);\r\n\t\t\t\ty =\te.pageY\t- (pos.y + offY);\r\n\t\t\t\toldX = x; oldY = y;\r\n\t\t\t}\r\n\t\t\tfunction endMove(e)\t{\r\n\t\t\t\toldX = 0; oldY = 0;\r\n\t\t\t\tdocument.body.removeEventListener(\"mousemove\", doMove, false);\r\n\t\t\t\tdocument.body.removeEventListener(\"mouseup\", endMove, false);\r\n\t\t\t\tif (startingPos.x == pos.x && startingPos.y\t== pos.y) doResetMaxToggle();\r\n\t\t\t}\r\n\t\t\tfunction doResetMaxToggle()\t{\t\r\n\t\t\t\tvar\tisInOrigPos\t=\r\n\t\t\t\t\t(pos.x == origPos.x\t&&\r\n\t\t\t\t\t pos.y == origPos.y\t&&\r\n\t\t\t\t\t overlay.style.width ==\tw +\t\"px\" &&\t\r\n\t\t\t\t\t overlay.style.height == h + \"px\") ? true :\tfalse ;\r\n\t\t\t\tif (isInOrigPos) {\r\n\t\t\t\t\tpos.x =\t4;\r\n\t\t\t\t\tpos.y =\twindow.scrollY + 4;\r\n\t\t\t\t\toverlay.style.left = pos.x + \"px\";\r\n\t\t\t\t\toverlay.style.top =\tpos.y +\t\"px\";\r\n\t\t\t\t\toverlay.style.width\t= (window.innerWidth - 50) + \"px\";\r\n\t\t\t\t\toverlay.style.height = (window.innerHeight - 50) + \"px\";\r\n\t\t\t\t}\r\n\t\t\t\telse { \r\n\t\t\t\t\tpos.x =\torigPos.x; pos.y = origPos.y;\r\n\t\t\t\t\toverlay.style.left = pos.x + \"px\";\r\n\t\t\t\t\toverlay.style.top =\tpos.y +\t\"px\";\r\n\t\t\t\t\toverlay.style.width\t= w\t+ \"px\";\r\n\t\t\t\t\toverlay.style.height = h + \"px\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfunction getAbsolutePosition(elm) {\r\n\t\t\tvar\tx =\t0, y = 0;\r\n\t\t\twhile( elm && elm != document.body ) {\r\n\t\t\t\tx += elm.offsetLeft;\r\n\t\t\t\ty += elm.offsetTop;\r\n\t\t\t\telm\t= elm.offsetParent;\r\n\t\t\t}\r\n\t\t\treturn { x:\tx, y: y\t};\r\n\t\t}\r\n\t} // end expandArea()", "function layout(d) {\n if (d._children) {\n treemap.nodes({_children: d._children});\n d._children.forEach(function (c) {\n c.x = d.x + c.x * d.dx;\n c.y = d.y + c.y * d.dy;\n c.dx *= d.dx;\n c.dy *= d.dy;\n c.parent = d;\n c.fill = getContrastYIQ( colorScale(c.sector_id || 0) );\n layout(c);\n });\n }\n }", "function calcParentSizes(elements) {\n _.map(elements, function (e) {\n e.lastParentSize = e.parentSize;\n var sizedParent = findSizedParent(e.element);\n e.parentSize = sizedParent && sizedParent.width();\n });\n }", "function show_childs (data, r, s, pa, colors, raphael) {\n var chldrns = data.childrens,\n angle_covered = (pa*data.percent)/100,\n color = colors.next_color(data.order),\n ele;\n\n ele = ring(raphael, 100.001, 100.001, r, s, angle_covered , {'stroke':color, 'stroke-width':20});\n\n\n // ele._gdata = data;\n ele.set_data(data);\n data.element = ele.node;\n\n // if chlds then for each one show it on the canvas plot.\n // todo: do we need to sort this data.\n if (chldrns != {}) {\n var perc = 0, cr, cs, chld;\n colors = getColors(options.color_options);\n // for (var i=0, len=chldrns.length; i<len; i++) {\n for (var i in chldrns) {\n chld = chldrns[i];\n cr = r + 20; // go to outer layer.\n cs = s + (perc*angle_covered/100); // start after all the previous childs.\n arguments.callee.apply(this, [chld, cr, cs, angle_covered, colors, raphael]);\n perc += chld.percent;\n }\n }\n }", "function SetGridAutoResize(parent, children) {\n parentContainer = parent;\n childGrids = children\n jQuery(window).bind('resize', function () {\n // Get width of parent container\n if (parentContainer != \"\") {\n var width = jQuery(parentContainer).width();\n if (width == null || width < 1) {\n // For IE, revert to offsetWidth if necessary\n width = $(window).width() - 20;\n }\n width = width - 40; // Fudge factor to prevent horizontal scrollbars and fit inside the tabbed area (parent)\n if (childGrids != null && childGrids.length >= 1) {\n if (width > 0 && Math.abs(width - jQuery(childGrids[0]).width()) > 5) {\n // Only resize if new width exceeds a minimal threshold\n // Fixes IE issue with in-place resizing when mousing-over frame bars\n childGrids.forEach(function (grid) {\n jQuery(grid).setGridWidth(width);\n });\n }\n }\n }\n\n }).trigger('resize');\n // Set initial width based on current window size\n childGrids.forEach(function (grid) {\n if (parentContainer != \"\") {\n var width = jQuery(parentContainer).width() - 40;\n if (width == null || width < 1) {\n // For IE, revert to offsetWidth if necessary\n width = $(window).width() - 20;\n }\n jQuery(grid).setGridWidth(width);\n }\n });\n\n}", "get Area() { return this.Width * this.Height; }", "get Area() { return this.Width * this.Height; }", "function bindChildren() {\n for (var idx = 0; idx < childContainerPropNames.length; idx++) {\n var childContainerPropName = childContainerPropNames[idx];\n var childContainer = config[childContainerPropName];\n if (Ext.isArray(childContainer)) {\n var newItems = [];\n for (var i = 0; i < childContainer.length; i++) {\n var childItem = childContainer[i];\n var result = this.collectBindings(childItem, viewmodel, config, childContainerPropName, xtypeAdapter, bindingsList, indents + 1);\n newItems.push(result.config);\n }\n config[childContainerPropName] = newItems;\n } else {\n //otherwise do a simple recursion\n config[childContainerPropName] = this.collectBindings(childContainer, viewmodel, config, childContainerPropName, xtypeAdapter, bindingsList, indents + 1).config;\n }\n }\n }", "collapseAll() {\n const data = this.dataManager.getData();\n const parentsToCollapse = [];\n\n arrayEach(data, (elem) => {\n if (this.dataManager.hasChildren(elem)) {\n parentsToCollapse.push(elem);\n }\n });\n\n this.collapseMultipleChildren(parentsToCollapse);\n\n this.renderAndAdjust();\n }", "innerHeightDependsOnChilds(){if(this.__controlStretchedHeight)return!0;if(this.__rowOptions)for(const rowOption of this.__rowOptions)if(\"Content\"===rowOption.heightMode)return!0;return super.innerHeightDependsOnChilds()}", "setPageSize() {\n let height = 0;\n for ( let i = 0; i < this['$content'].rows.all.length; i++ ) {\n height += this['$content'].rows.all[i].size;\n }\n let width = 0;\n for ( let i = 0; i < this['$content'].columns.all.length; i++ ) {\n width += this['$content'].columns.all[i].size;\n }\n this['$container']['$node'].style.width = width + 'px';\n this['$container']['$node'].style.height = height + 'px';\n }", "function getAreas() {\n\tlet scalingFactor = Math.min(clientWidth / 1200, clientHeight / 1000);\n\t// Change the blocks' size according to the input surface area\n\tlet size1 = Math.min(48, 5 + Math.sqrt(area1) * scalingFactor * 8) + \"px\";\n\tlet size2 = Math.min(48, 5 + Math.sqrt(area2) * scalingFactor * 8) + \"px\";\n\t$(\".sit1block\").css({\n\t\theight: size1,\n\t\twidth: size1,\n\t\tbottom: \"51%\"\n\t});\n\n\t$(\".sit2block\").css({\n\t\theight: size2,\n\t\twidth: size2,\n\t\tbottom: \"51%\"\n\t});\n\t\n}", "function minorAdjustmentsToElementsOnResize() {\n\n\t// do some IE stuff, unfortunately, check for IE7\n\tif(isIEorEDGE()) {\n\t\tjQuery('html').addClass('ie');\n\t\tjQuery('.image-group').each(function(){\n\t\t\tvar $this = jQuery(this),\n\t\t\t\tdivs = $this.find('> div'),\n\t\t\t\tdivs1 = $this.find('> div:first'),\n\t\t\t\tdivs_count = divs.length,\n\n\t\t\t\tparent_width = $this.width(),\n\t\t\t\tborder_width_left = divs1.css('borderLeftWidth'),\n\t\t\t\tborder_width_right = divs1.css('borderRightWidth'),\n\t\t\t\twidth_padding = parseInt(border_width_left) + parseInt(border_width_right),\n\n\t\t\t\twidth = (parent_width / divs_count) - width_padding,\n\t\t\t\twidth_percent = ( (width / parent_width) * 100 ) + '%';\n\t\t\t//console.log(divs_count);\n\t\t\t//console.log(parent_width);\n\t\t\t//console.log(width);\n\t\t\t//console.log(width_percent);\n\t\t\t//console.log(width_padding);\n\t\t\t// set width\n\t\t\tdivs.css('width', width_percent);\n\t\t\tdivs.css('float', 'left');\n\t\t});\n\t}\n}", "placenodes() {\n this._extents = [\n [0, 0],\n [0, 0]\n ];\n\n this.x = 0.0;\n this.last_span = 0.0;\n //let x = 0.0,\n // last_span = 0;\n \n this.last_node = null;\n this.last_span = 0.0;\n\n (this.save_x = this.x), (this.save_span = this.last_span * 0.5);\n\n this.do_scaling = this.options[\"scaling\"];\n let undef_BL = false;\n\n this.is_under_collapsed_parent = false;\n this.max_depth = 1;\n \n // Set initial x\n this.phylotree.nodes.x = this.tree_layout(\n this.phylotree.nodes,\n this.do_scaling\n );\n\n this.max_depth = d3.max(this.phylotree.nodes.descendants(), n => {\n return n.depth;\n });\n\n if (this.do_scaling && undef_BL) {\n // requested scaling, but some branches had no branch lengths\n // redo layout without branch lengths\n this.do_scaling = false;\n this.phylotree.nodes.x = this.tree_layout(this.phylotree.nodes);\n }\n\n let at_least_one_dimension_fixed = false;\n\n this.draw_scale_bar = this.options[\"show-scale\"] && this.do_scaling;\n\n // this is a hack so that phylotree.pad_height would return ruler spacing\n this.offsets[1] = Math.max(\n this.font_size,\n -this._extents[1][0] * this.fixed_width[0]\n );\n\n if (this.options[\"top-bottom-spacing\"] == \"fixed-step\") {\n this.size[0] = this._extents[0][1] * this.fixed_width[0];\n this.scales[0] = this.fixed_width[0];\n } else {\n this.scales[0] = (this.size[0] - this.pad_height()) / this._extents[0][1];\n at_least_one_dimension_fixed = true;\n }\n\n this.shown_font_size = Math.min(this.font_size, this.scales[0]);\n\n if (this.radial()) {\n // map the nodes to polar coordinates\n this.draw_branch = _.partial(drawArc, this.radial_center);\n this.edge_placer = arcSegmentPlacer;\n\n let last_child_angle = null,\n last_circ_position = null,\n last_child_radius = null,\n min_radius = 0,\n effective_span = this._extents[0][1] * this.scales[0];\n\n let compute_distance = function(r1, r2, a1, a2, annular_shift) {\n annular_shift = annular_shift || 0;\n return Math.sqrt(\n (r2 - r1) * (r2 - r1) +\n 2 *\n (r1 + annular_shift) *\n (r2 + annular_shift) *\n (1 - Math.cos(a1 - a2))\n );\n };\n\n let max_r = 0;\n\n this.phylotree.nodes.each(d => {\n let my_circ_position = d.x * this.scales[0];\n d.angle = (2 * Math.PI * my_circ_position) / effective_span;\n d.text_angle = d.angle - Math.PI / 2;\n d.text_angle = d.text_angle > 0 && d.text_angle < Math.PI;\n d.text_align = d.text_angle ? \"end\" : \"start\";\n d.text_angle = (d.text_angle ? 180 : 0) + (d.angle * 180) / Math.PI;\n });\n\n this.do_lr(at_least_one_dimension_fixed);\n\n this.phylotree.nodes.each(d => {\n d.radius = (d.y * this.scales[1]) / this.size[1];\n max_r = Math.max(d.radius, max_r);\n });\n\n let annular_shift = 0;\n\n this.phylotree.nodes.each(d => {\n if (!d.children) {\n let my_circ_position = d.x * this.scales[0];\n if (last_child_angle !== null) {\n let required_spacing = my_circ_position - last_circ_position,\n radial_dist = compute_distance(\n d.radius,\n last_child_radius,\n d.angle,\n last_child_angle,\n annular_shift\n );\n\n let local_mr =\n radial_dist > 0\n ? required_spacing / radial_dist\n : 10 * this.options[\"max-radius\"];\n\n if (local_mr > this.options[\"max-radius\"]) {\n // adjust the annular shift\n let dd = required_spacing / this.options[\"max-radius\"],\n b = d.radius + last_child_radius,\n c =\n d.radius * last_child_radius -\n (dd * dd -\n (last_child_radius - d.radius) *\n (last_child_radius - d.radius)) /\n 2 /\n (1 - Math.cos(last_child_angle - d.angle)),\n st = Math.sqrt(b * b - 4 * c);\n\n annular_shift = Math.min(\n this.options[\"annular-limit\"] * max_r,\n (-b + st) / 2\n );\n min_radius = this.options[\"max-radius\"];\n } else {\n min_radius = Math.max(min_radius, local_mr);\n }\n }\n\n last_child_angle = d.angle;\n last_circ_position = my_circ_position;\n last_child_radius = d.radius;\n }\n });\n\n this.radius = Math.min(\n this.options[\"max-radius\"],\n Math.max(effective_span / 2 / Math.PI, min_radius)\n );\n\n if (at_least_one_dimension_fixed) {\n this.radius = Math.min(\n this.radius,\n (Math.min(effective_span, this._extents[1][1] * this.scales[1]) -\n this.label_width) *\n 0.5 -\n this.radius * annular_shift\n );\n }\n\n this.radial_center = this.radius_pad_for_bubbles = this.radius;\n this.draw_branch = _.partial(drawArc, this.radial_center);\n\n let scaler = 1;\n\n if (annular_shift) {\n scaler = max_r / (max_r + annular_shift);\n this.radius *= scaler;\n }\n\n this.phylotree.nodes.each(d => {\n cartesianToPolar(\n d,\n this.radius,\n annular_shift,\n this.radial_center,\n this.scales,\n this.size\n );\n\n max_r = Math.max(max_r, d.radius);\n\n if (this.options[\"draw-size-bubbles\"]) {\n this.radius_pad_for_bubbles = Math.max(\n this.radius_pad_for_bubbles,\n d.radius + this.nodeBubbleSize(d)\n );\n } else {\n this.radius_pad_for_bubbles = Math.max(\n this.radius_pad_for_bubbles,\n d.radius\n );\n }\n\n if (d.collapsed) {\n d.collapsed = d.collapsed.map(p => {\n let z = {};\n z.x = p[0];\n z.y = p[1];\n z = cartesianToPolar(\n z,\n this.radius,\n annular_shift,\n this.radial_center,\n this.scales,\n this.size\n );\n return [z.x, z.y];\n });\n\n let last_point = d.collapsed[1];\n\n d.collapsed = d.collapsed.filter(function(p, i) {\n if (i < 3 || i > d.collapsed.length - 4) return true;\n if (\n Math.sqrt(\n Math.pow(p[0] - last_point[0], 2) +\n Math.pow(p[1] - last_point[1], 2)\n ) > 3\n ) {\n last_point = p;\n return true;\n }\n return false;\n });\n }\n });\n\n this.size[0] = this.radial_center + this.radius / scaler;\n this.size[1] = this.radial_center + this.radius / scaler;\n } else {\nthis.do_lr();\n\n this.draw_branch = draw_line;\n this.edge_placer = lineSegmentPlacer;\n this.right_most_leaf = 0;\n\n this.phylotree.nodes.each(d => {\n\n d.x *= this.scales[0];\n d.y *= this.scales[1]*.8;\n\n if (this.options[\"layout\"] == \"right-to-left\") { \n d.y = this._extents[1][1] * this.scales[1] - d.y;\n }\n\n\n if (isLeafNode(d)) {\n this.right_most_leaf = Math.max(\n this.right_most_leaf,\n d.y + this.nodeBubbleSize(d)\n );\n }\n\n if (d.collapsed) {\n d.collapsed.forEach(p => {\n p[0] *= this.scales[0];\n p[1] *= this.scales[1]*.8;\n });\n\n let last_x = d.collapsed[1][0];\n\n d.collapsed = d.collapsed.filter(function(p, i) {\n if (i < 3 || i > d.collapsed.length - 4) return true;\n if (p[0] - last_x > 3) {\n last_x = p[0];\n return true;\n }\n return false;\n });\n }\n });\n }\n\n if (this.draw_scale_bar) {\n let domain_limit, range_limit;\n\n if (this.radial()) {\n range_limit = Math.min(this.radius / 5, 50);\n domain_limit = Math.pow(\n 10,\n Math.ceil(\n Math.log((this._extents[1][1] * range_limit) / this.radius) /\n Math.log(10)\n )\n );\n \n\n range_limit = domain_limit * (this.radius / this._extents[1][1]);\n\n if (range_limit < 30) {\n let stretch = Math.ceil(30 / range_limit);\n range_limit *= stretch;\n domain_limit *= stretch;\n }\n } else {\n domain_limit = this._extents[1][1];\n\n range_limit =\n this.size[1] - this.offsets[1] - this.options[\"left-offset\"] - this.shown_font_size;\n }\n\n let scale = d3\n .scaleLinear()\n .domain([0, domain_limit])\n .range([0, range_limit]),\n \n scaleTickFormatter = d3.format(\".2f\");\n\n this.draw_scale_bar = d3\n .axisTop()\n .scale(scale)\n .tickFormat(function(d) {\n if (d === 0) {\n return \"\";\n }\n return scaleTickFormatter(d);\n });\n\n if (this.radial()) {\n this.draw_scale_bar.tickValues([domain_limit]);\n } else {\n let round = function(x, n) {\n return n ? Math.round(x * (n = Math.pow(10, n))) / n : Math.round(x);\n };\n\n let my_ticks = scale.ticks();\n my_ticks = my_ticks.length > 1 ? my_ticks[1] : my_ticks[0];\n\n this.draw_scale_bar.ticks(\n Math.min(\n 10,\n round(\n range_limit /\n (this.shown_font_size *\n scaleTickFormatter(my_ticks).length *\n 2),\n 0\n )\n )\n );\n }\n } else {\n this.draw_scale_bar = null;\n }\n\n return this;\n }", "resize() {\n this.size = (this.children[0] ? this.children[0].size : 0) +\n (this.children[1] ? this.children[1].size : 0) + 1;\n this.height = Math.max(this.children[0] ? this.children[0].height : 0,\n this.children[1] ? this.children[1].height : 0) + 1;\n return this;\n }", "arrange(desiredSize) {\n this.outerBounds = new Rect();\n if (this.hasChildren()) {\n let y;\n let x;\n y = this.offsetY - desiredSize.height * this.pivot.y;\n x = this.offsetX - desiredSize.width * this.pivot.x;\n for (let child of this.children) {\n if ((child.transform & RotateTransform.Parent) !== 0) {\n child.parentTransform = this.parentTransform + this.rotateAngle;\n let childSize = child.desiredSize.clone();\n let topLeft;\n let center = { x: 0, y: 0 };\n let childX = x;\n let childY = y;\n if (child.relativeMode === 'Point') {\n let position = child.getAbsolutePosition(desiredSize);\n if (position !== undefined) {\n childX += position.x;\n childY += position.y;\n }\n }\n if (child.relativeMode === 'Object') {\n topLeft = this.alignChildBasedOnParent(child, childSize, desiredSize, childX, childY);\n }\n else {\n topLeft = this.alignChildBasedOnaPoint(child, childX, childY);\n }\n center = { x: topLeft.x + childSize.width / 2, y: topLeft.y + childSize.height / 2 };\n if (child.rotateValue) {\n let rotateValue = {\n x: this.offsetX + (child.rotateValue.x || 0),\n y: this.offsetY + (child.rotateValue.y || 0)\n };\n let centerPoint = { x: this.offsetX, y: this.offsetY };\n let angle = child.rotateValue.angle | 0;\n let matrix = identityMatrix();\n rotateMatrix(matrix, angle, centerPoint.x, centerPoint.y);\n center = transformPointByMatrix(matrix, rotateValue);\n }\n super.findChildOffsetFromCenter(child, center);\n }\n if ((child.horizontalAlignment === 'Stretch' || child.verticalAlignment === 'Stretch')) {\n child.arrange(desiredSize);\n }\n else {\n if (child instanceof TextElement && child.canMeasure) {\n child.arrange(child.desiredSize);\n this.outerBounds.uniteRect(child.outerBounds);\n }\n else if (!(child instanceof TextElement)) {\n child.arrange(child.desiredSize);\n this.outerBounds.uniteRect(child.outerBounds);\n }\n }\n }\n }\n this.actualSize = desiredSize;\n this.updateBounds();\n this.outerBounds.uniteRect(this.bounds);\n return desiredSize;\n }", "subdivide() {\n // create new HalfDim and QuarterDim (For moving x/y centers)\n let subboxHalfDim = this.boundary.halfDim/2;\n\n // create a pointer that will point from old center to new center\n let clockPointer = createVector(subboxHalfDim,subboxHalfDim);\n\n // create Angle to Rotate\n let angleToRot = HALF_PI;\n for (let i = 0; i < 4; i++) {\n // create new CenterVector & rotate by an angle\n let newCenterVect = p5.Vector.add(this.boundary.center);\n newCenterVect.add(clockPointer.rotate(angleToRot*i));\n\n // initialize childBox into this.childBoxes array\n this.childTrees.push(new quadTree(new box(newCenterVect,subboxHalfDim)));\n }\n \n // loop over all points in this.childPoints and insert\n // SHOULD automatically insert into childBoxes...\n for (let parentPoint of this.childPoints) {\n this.insertPoint(parentPoint);\n }\n }", "calculateBounds() {\n var minX = Infinity;\n var maxX = -Infinity;\n var minY = Infinity;\n var maxY = -Infinity;\n if (this.graphicsData.length) {\n var shape = null;\n var x = 0;\n var y = 0;\n var w = 0;\n var h = 0;\n for (var i = 0; i < this.graphicsData.length; i++) {\n var data = this.graphicsData[i];\n var type = data.type;\n var lineWidth = data.lineStyle ? data.lineStyle.width : 0;\n shape = data.shape;\n if (type === ShapeSettings_1.ShapeSettings.SHAPES.RECT || type === ShapeSettings_1.ShapeSettings.SHAPES.RREC) {\n x = shape.x - (lineWidth / 2);\n y = shape.y - (lineWidth / 2);\n w = shape.width + lineWidth;\n h = shape.height + lineWidth;\n minX = x < minX ? x : minX;\n maxX = x + w > maxX ? x + w : maxX;\n minY = y < minY ? y : minY;\n maxY = y + h > maxY ? y + h : maxY;\n }\n else if (type === ShapeSettings_1.ShapeSettings.SHAPES.CIRC) {\n x = shape.x;\n y = shape.y;\n w = shape.radius + (lineWidth / 2);\n h = shape.radius + (lineWidth / 2);\n minX = x - w < minX ? x - w : minX;\n maxX = x + w > maxX ? x + w : maxX;\n minY = y - h < minY ? y - h : minY;\n maxY = y + h > maxY ? y + h : maxY;\n }\n else if (type === ShapeSettings_1.ShapeSettings.SHAPES.ELIP) {\n x = shape.x;\n y = shape.y;\n w = shape.width + (lineWidth / 2);\n h = shape.height + (lineWidth / 2);\n minX = x - w < minX ? x - w : minX;\n maxX = x + w > maxX ? x + w : maxX;\n minY = y - h < minY ? y - h : minY;\n maxY = y + h > maxY ? y + h : maxY;\n }\n else {\n // POLY\n var points = shape.points;\n var x2 = 0;\n var y2 = 0;\n var dx = 0;\n var dy = 0;\n var rw = 0;\n var rh = 0;\n var cx = 0;\n var cy = 0;\n for (var j = 0; j + 2 < points.length; j += 2) {\n x = points[j];\n y = points[j + 1];\n x2 = points[j + 2];\n y2 = points[j + 3];\n dx = Math.abs(x2 - x);\n dy = Math.abs(y2 - y);\n h = lineWidth;\n w = Math.sqrt((dx * dx) + (dy * dy));\n if (w < 1e-9) {\n continue;\n }\n rw = ((h / w * dy) + dx) / 2;\n rh = ((h / w * dx) + dy) / 2;\n cx = (x2 + x) / 2;\n cy = (y2 + y) / 2;\n minX = cx - rw < minX ? cx - rw : minX;\n maxX = cx + rw > maxX ? cx + rw : maxX;\n minY = cy - rh < minY ? cy - rh : minY;\n maxY = cy + rh > maxY ? cy + rh : maxY;\n }\n }\n }\n }\n else {\n minX = 0;\n maxX = 0;\n minY = 0;\n maxY = 0;\n }\n var padding = this.boundsPadding;\n this._bounds.minX = minX - padding;\n this._bounds.maxX = maxX + padding;\n this._bounds.minY = minY - padding;\n this._bounds.maxY = maxY + padding;\n }", "function recArrangeContent(uid, R) {\n\n\tlet n = R.uiNodes[uid];\t//n is the parent\n\t//console.log('............',uid,'children',n.children,'\\nparams',n.params)\n\n\tif (nundef(n.children)) return;\n\n\tlet parentPadding = isdef(n.params.paddingAroundChildren) ? n.params.paddingAroundChildren : DEFS.defaultPadding;\n\tlet childMargin = isdef(n.params.gapBetweenChildren) ? n.params.gapBetweenChildren : DEFS.defaultGap;\n\tlet posModified = false;\n\tlet sizeModified = false;\n\tlet children = n.children.map(x => R.uiNodes[x]);\n\n\tif (isdef(n.params.contentwalign) && n.params.contentwalign == 'center') {\n\t\t//calc total with of content\n\t\t//console.log('...................................>>')\n\t\tlet children = n.children.map(x => R.uiNodes[x]);\n\t\tlet xchimin = Math.min(...children.map(x => x.pos.x));\n\t\tlet xchimax = Math.max(...children.map(x => x.pos.x + x.size.w));\n\t\tlet diff = xchimax - xchimin;\n\t\tlet wpar = n.size.w - 2 * parentPadding;\n\t\t//console.log('wpar', wpar, 'diff', diff, 'should align?', wpar > diff + 2 ? 'yes' : 'no');\n\t\t//align each child by (wpar-diff)/2\n\t\tlet displ = (wpar - diff) / 2;\n\t\tif (displ >= 1) {\n\t\t\tposModified = true;\n\t\t\tfor (const ch of children) { ch.params.pos = { x: ch.pos.x + displ, y: ch.pos.y }; }\n\t\t}\n\t}\n\tif (isdef(n.params.contenthalign) && n.params.contenthalign == 'center') {\n\t\t//calc total with of content\n\t\t//console.log('...................................>>')\n\t\tlet ychimin = Math.min(...children.map(ch => ch.pos.y));\n\t\tlet ychimax = Math.max(...children.map(ch => ch.pos.y + ch.size.h));\n\t\tlet diff = ychimax - ychimin;\n\t\tlet hpar = n.size.h - 2 * parentPadding;\n\t\t//console.log('hpar', hpar, 'diff', diff, 'should align?', hpar > diff + 2 ? 'yes' : 'no');\n\t\t//align each child by (wpar-diff)/2\n\t\tlet displ = (hpar - diff) / 2;\n\t\tif (displ >= 1) {\n\t\t\tposModified = true;\n\t\t\tfor (const ch of children) { ch.params.pos = { x: ch.pos.x, y: ch.pos.y + displ }; }\n\t\t}\n\t}\n\n\tif (posModified || sizeModified) {\n\t\tfor (const ch of children) { setFixedSizeAndPos(ch); }\n\t}\n\t// else return;\n\n\tfor (const ch of n.children) recArrangeContent(ch, R);\n\n}", "setCenterAlignmentGarph() {\n\t\tconst parentBoundary = _.find(this.dataContainer.boundary, {'parent': null});\n\n\t\tconst rightScrollWidth = 10;\n\t\tconst marginTop = 10;\n\t\tconst marginLeft = 5;\n\t\tconst marginRight = 5;\n\n\t\tlet newX = marginLeft;\n\t\tconst newY = marginTop;\n\n\t\tif (parentBoundary) {\n\t\t\t$('.left-svg').css('width', parentBoundary.width + rightScrollWidth + marginLeft + marginRight);\n\t\t\t$('.middle-svg').css('left', parentBoundary.width + rightScrollWidth + marginLeft + marginRight);\n\n\t\t\tconst inputRec = $('.left-svg')[0].getBoundingClientRect();\n\t\t\tconst outputRec = $('.right-svg')[0].getBoundingClientRect();\n\t\t\t$('.middle-svg').css('width', `calc(100% - ${inputRec.width + outputRec.width}px)`);\n\n\t\t\tconst containerRect = $(`#${parentBoundary.svgId}`)[0].parentNode.getBoundingClientRect();\n\n\t\t\tif ( containerRect.width - rightScrollWidth - marginLeft - marginRight >= parentBoundary.width ) {\n\t\t\t\tnewX = newX + ((containerRect.width - rightScrollWidth - marginLeft - marginRight - parentBoundary.width) / 2);\n\t\t\t}\n\n\t\t\tconst offsetX = newX - parentBoundary.x;\n const offsetY = newY - parentBoundary.y;\n\t\t\tif (offsetX != 0 || offsetY != 0) {\n\t\t\t\tparentBoundary.move(offsetX, offsetY);\n\t\t\t}\n\t\t}\n\t}", "get children() {\n return this.renderChildren();\n }", "function HFlowLayout() {\n this.base = new BaseObj(this);\n this.tpos = new Rect(0, 0, 0, 0);\n\n var children = [];\n\n this.clear = function () {\n children = [];\n this.base.removeAllChildren();\n }\n\n this.add = function (ui) {\n children.push(ui);\n this.base.addChild(ui);\n }\n\n this.insert = function (index, ui) {\n children.splice(index, 0, ui);\n this.base.addChild(ui);\n }\n\n this.resize = function (rect) {\n var height = rect.h;\n var widths = [];\n var totalWidth = 0;\n for (var i = 0; i < children.length; i++) {\n var child = children[i];\n var width = child.optimalWidth(height);\n totalWidth += width;\n widths.push(width);\n }\n\n // Make sure we can fit.\n if (totalWidth > rect.w) {\n for (var i = 0; i < widths.length; i++) {\n widths[i] *= rect.w / totalWidth;\n widths[i] = Math.max(Math.round(widths[i]), 1);\n }\n }\n\n var curX = rect.x;\n for (var i = 0; i < children.length; i++) {\n var width = widths[i];\n var childRect = new Rect(curX, rect.y, width, height);\n children[i].resize(childRect);\n curX += width;\n }\n }\n\n this.optimalWidth = function (height) {\n var totalWidth = 0;\n for (var i = 0; i < children.length; i++) {\n totalWidth += children[i].optimalWidth(height);\n }\n return totalWidth;\n }\n}", "*intrinsicSizes(children, edges, styleMap) {\n // children - Child elements of box being laid out\n // edges - Layout Edges of the box being\n // styleMap - Typed OM style map of box being laid out\n \n const childrenSizes = children.map((child) => {\n return child.intrinsicSizes();\n });\n \n const maxContentSize = childrenSizes.reduce((max, childSizes) => {\n return Math.max(max, childSizes.maxContentSize);\n }, 0);\n \n const minContentSize = childrenSizes.reduce((max, childSizes) => {\n return Math.max(max, childSizes.minContentSize);\n }, 0);\n \n return {maxContentSize, minContentSize};\n }", "applyLayout(events) {\n super.applyLayout(events, (event, j, slot, slotSize) => {\n event.height = slotSize;\n event.top = slot.start + j * slotSize;\n });\n\n events.forEach((event) => {\n Object.assign(\n event,\n this.bandIndexToPxConvertFn.call(\n this.bandIndexToPxConvertThisObj || this,\n event.top,\n event.height,\n null,\n event.event\n )\n );\n });\n }", "function recMeasureArrangeFixedSizeAndPos(uid, R) {\n\t//console.log('measureAbs', uid);\n\tlet n = R.uiNodes[uid];\n\n\tlet [minx, maxx, miny, maxy] = [100000, 0, 100000, 0];\n\tif (isdef(n.children)) {\n\n\t\t//calculate maximal dimensions to fit all children's x,y,w,h\n\t\tfor (const ch of n.children) {\n\t\t\tlet [xmin, xmax, ymin, ymax] = recMeasureArrangeFixedSizeAndPos(ch, R);\n\t\t\tminx = Math.min(minx, xmin);\n\t\t\tmaxx = Math.max(maxx, xmax);\n\t\t\tminy = Math.min(miny, ymin);\n\t\t\tmaxy = Math.max(maxy, ymax);\n\t\t}\n\n\t\t//kann das ueberhaupt vorkommen???????\n\t\tif (nundef(n.params.pos)) {\n\t\t\t//console.log('parent has no position set!!!', uid)\n\t\t\treturn [minx, maxx, miny, maxy];\n\t\t}\n\n\t\t//console.log('__________ ', uid)\n\t\t//console.log('children need', 'x', minx, maxx, 'y', miny, maxy);\n\t\t//console.log('parent size', n.params.size, 'pos', n.params.pos)\n\t\tlet wParent = Math.max(n.params.size.w, maxx);\n\t\tlet hParent = Math.max(n.params.size.h, maxy);\n\t\tn.params.size.w = wParent + 4;\n\t\tn.params.size.h = hParent + 4;\n\t\tsetFixedSizeAndPos(n);\n\t\tn.ui.style.opacity = .5;\n\n\t\tminx = Math.min(minx, n.pos.x);\n\t\tmaxx = Math.max(maxx, n.pos.x + n.size.w);\n\t\tminy = Math.min(miny, n.pos.y);\n\t\tmaxy = Math.max(maxy, n.pos.y + n.size.h);\n\t\treturn [minx, maxx, miny, maxy];\n\n\t} else {\n\t\tsetFixedSizeAndPos(n);\n\t\tlet b = getBounds(n.ui);\n\t\treturn [n.pos.x, n.pos.x + b.width, n.pos.y, n.pos.y + b.height];\n\n\t}\n}", "_calcGeometry(data) {\n let largBarra, percMargin, percBar; // Percentage of the margin in relation to the width occupied by the sector\n this._barsArea.angleBar = this._widthToAngle(this._barsArea.widthBar + this._barsArea.marginBar, this._innerRadius);\n this._barsArea.maxBars = Math.floor(360 / this._barsArea.angleBar);\n this._barsArea.angleBar = 360.0 / this._barsArea.maxBars;\n this._barsArea.numBars = this.model.data.nodes.dataNodes.length;\n this._barsArea.startSector = Math.round((this._barsArea.maxBars - this._barsArea.numBars) / 2);\n if (this._barsArea.numBars > this._barsArea.maxBars) {\n percMargin = this._barsArea.pMarginBar / (this.model.pWidthBar + this._barsArea.pMarginBar);\n percBar = 1 - percMargin;\n this._barsArea.angleBar = 360.0 / this._barsArea.numBars;\n largBarra = this._angleToWidth(this._barsArea.angleBar, this._innerRadius);\n this._barsArea.widthBar = largBarra * percBar;\n this._barsArea.marginBar = largBarra * percMargin;\n this._barsArea.startSector = 0;\n }\n this._vAngle = [];\n data.nodes.dataNodes.forEach((d, i) => {\n this._vAngle[i] = ((i + this._barsArea.startSector) * this._barsArea.angleBar + 180) % 360;\n });\n }", "function layout(elements,yBase){\n\tconsole.log(\"in layout()...yBase=\"+yBase);\n\tvar _total =0;\n\tvar _number = 0;\n\n\t// TODO: get the y1 of according lanecontext and start from top\n\n\n\n\tvar _yList =new Array();\n\n\tfor (var i in elements){\n\t\tif (elements[i].node()) {\n\t\t\tconsole.log(\"...layout get metrics of: \"+elements[i]);\n\t\t\tvar _m =get_metrics(elements[i].node());\n\t\t\t_total+=_m.height\n\t\t\tconsole.log(\"height: \"+_m.height+\" total:\"+_total+\" m.y: \"+_m.y);\n\t\t\t_yList.push(_m.y);\n\t\t\t_number++;\n\t\t}\n\t}\n\n\t//var _ids = d3.select(\"#items\").selectAll(\"g\")[0];\n\tvar _min = d3.min(_yList);\n\tvar _height = _total/_number;\n\tconsole.log(\"top y: \"+_min);\n\tconsole.log(\"number elements: \"+_number);\n\tconsole.log(\"_total height: \"+_total);\n\n\tvar i=0;\n\tvar _space =1;\n\n\tfor (var e in elements){\n\t\tif (elements[e].node()) {\n\t\t\tvar _m =get_metrics(elements[e].node());\n\t\t\telements[e].attr(\"transform\",\"translate(0,\"+(yBase+i-_m.y)+\")\");\n\t\t\ti+=_m.height+_space;\n\t\t}\n\t}\n}", "geoLayout() {\n this.pieces.forEach((row, i) => row.forEach((piece, j) => {\n let x, y;\n if (i <= Math.floor(this.pieces.length / 2)) {\n x = i * -1 / 2 + j * 1;\n\n } else {\n x = -Math.floor(this.pieces.length / 2) / 2 + (i - Math.floor(this.pieces.length / 2)) / 2 + j * 1;\n\n }\n y = i * Math.sqrt(3) / 2;\n\n piece.geoPoint = new Point(x, y);\n }));\n }", "setFigures() { \n this.figuresStorage.forEach(figure => {\n figure.position.x.forEach(coordinateX => {\n this.table.querySelector(`td[data-x=\"${coordinateX}\"][data-y=\"${figure.position.y}\"]`)\n .innerHTML = figure.code;\n }) \n });\n }", "function areaUpdate(data){\n\n // group data\n const values = d3.group(data, d => d.startDate, d => d.areaName)\n\n\n /////////////////////////////////////\n ////////////// Scales ///////////////\n /////////////////////////////////////\n const yMax = d3.max(Array.from(values).map(d => d3.sum(Array.from(d[1]), j => j[1][0][selection])))\n\n const yScale = d3.scaleLinear().range([areaHeight, 0]).domain([0, yMax * 1.1])\n\n const colorScale = d3.scaleBand().domain(areas).range([0,1])\n\n const legendScale = d3.scaleBand().range([0,width/2]).domain(areas)\n \n /////////////////////////////////////\n //////// Add Background Rect ////////\n /////////////////////////////////////\n\n // background rect for use with click events (as reset)\n mouseEventGroup\n .selectAll(\"rect\")\n .append(\"rect\")\n .attr('x', 0)\n .attr(\"y\", 0)\n .attr(\"height\", areaHeight)\n .attr(\"width\", width)\n .attr(\"fill\", \"rgb(0,0,0,0)\")\n .on(\"click\", function(event, d){\n areaSelection = [...areas]\n\n areaUpdate(data)\n heatmapUpdate(data)\n })\n \n\n /////////////////////////////////////\n ///////// Add Stacked Area //////////\n /////////////////////////////////////\n\n // area generator\n const area = d3.area()\n .x(d => xScale(new Date(d.data[0])))\n .y0(d => yScale(d[0]))\n .y1(d => yScale(d[1]))\n .curve(d3.curveMonotoneX)\n \n // stack data\n const series = d3.stack()\n .keys(areas)\n .value((d,key) => areaSelection.includes(key) ? d[1].get(key)[0][selection] : 0)\n .order(d3.stackOrderNone)\n (values)\n \n // add areas\n ageAreaGroup\n .selectAll(\".areapath\")\n .data(series)\n .join(\"path\")\n .attr(\"fill\", ({key}) => d3.interpolateViridis(colorScale(key)))\n .attr(\"class\", \"areapath\")\n .attr(\"fill-opacity\", d => areaHover.includes(d.key) ? 1 : 0.8)\n .on(\"mouseover\", function(event, d){\n // update hover opacity\n areaHover = [d.key]\n heatmapUpdate(data)\n areaUpdate(data)\n\n // calculate hover date (not available in area data)\n let hoverDate = sumBy.round(xScale.invert(event.layerX - margin.left))\n\n // show and add information to tooltip\n tooltip.transition()\t\t\n .duration(200)\t\t\n .style(\"opacity\", .9);\t\t\n tooltip.html(\n 'Date: <strong>' + dateOutputFormat(hoverDate) + \n '</strong><br>Area: <strong>' + d.key + \n `</strong><br>${metrics[selection]} ${selection != 'newDeaths28DaysByPublishDate' && selection != 'cumDeaths28DaysByPublishDate' ? `(Per ${sumByKey})` : ``}: <strong>` + \n Object.fromEntries(values)[hoverDate].get(d.key)[0][selection].toLocaleString() + '</strong>'\n )\t\n .style(\"left\", (event.pageX) + \"px\")\t\t\n .style(\"top\", (event.pageY - 28) + \"px\");\n })\n .on(\"mouseout\", function(){\n // update hover opacity\n areaHover = [...areas] // create a copy so not to alter the original list by reference\n heatmapUpdate(data)\n areaUpdate(data)\n\n // hide tooltip\n tooltip.transition()\t\t\n .duration(500)\t\t\n .style(\"opacity\", 0);\n })\n .on (\"click\", function(event, d) {\n areaSelection = [d.key]\n areaUpdate(data)\n })\n .attr(\"d\", area)\n\n\n /////////////////////////////////////\n ///////// Peak Point Marker /////////\n /////////////////////////////////////\n\n const totals = Array.from(d3.rollup(data, v => d3.sum(v, j => areaSelection.includes(j.areaName) ? j[selection] : 0), d => d.startDate))\n const max = d3.maxIndex(totals, d => d[1])\n\n // append a horizonal line at the peak point\n highPointGroup.selectAll('.highline')\n .append('line')\n .attr('y1', yScale(totals[max][1]))\n .attr('y2', yScale(totals[max][1]))\n .attr('x1', xScale(totals[max][0]) - (width / 20))\n .attr('x2', xScale(totals[max][0]) - 10)\n .attr(\"stroke\", 'black')\n .attr(\"class\", \"highline\")\n\n // append text label for peak point\n highPointGroup.selectAll('text')\n .append('text')\n .text(`Peak: ${dateOutputFormat(totals[max][0])} - ` + totals[max][1].toLocaleString())\n .attr(\"font-family\", \"sans-serif\") \n .attr(\"font-size\", \"10px\")\n .attr('fill', 'black')\n .attr('x', xScale(totals[max][0]) - (width / 20) - 10)\n .attr('y', yScale(totals[max][1])+3)\n .style(\"text-anchor\", \"end\")\n\n\n /////////////////////////////////////\n ////////////// Legend ///////////////\n /////////////////////////////////////\n\n // append colour square for legend\n legendGroup\n .selectAll(\"rect\")\n .data(areas)\n .join(\"rect\")\n .attr(\"fill\", d => d3.interpolateViridis(colorScale(d)))\n .attr(\"fill-opacity\", d => areaSelection.includes(d) ? 1 : 0.5)\n .attr('x', d => legendScale(d)+20)\n .attr('y', 10)\n .attr(\"height\", 10)\n .attr(\"width\", 10)\n .on (\"click\", function(event, d) {\n\n if (areaSelection.indexOf(d) != -1){\n areaSelection.splice(areaSelection.indexOf(d), 1)\n } else {\n areaSelection.push(d)\n }\n\n areaUpdate(data)\n })\n\n // append text label for legend\n legendGroup\n .selectAll(\"text\")\n .data(areas)\n .join(\"text\")\n .attr(\"fill\", 'black')\n .attr('x', d => legendScale(d) + 35)\n .attr('y', 19)\n .attr('font-size', 10)\n .text(d => d)\n\n \n /////////////////////////////////////\n ////////////// Labels ///////////////\n /////////////////////////////////////\n labels(labelsGroup, xScale, 'grey', areaHeight)\n \n /////////////////////////////////////\n //////////////// Axis ///////////////\n ///////////////////////////////////// \n areaYAxisGroup.call(d3.axisLeft(yScale))\n areaXAxisGroup.call(d3.axisBottom(xScale).tickFormat(\"\").ticks(sumBy))\n\n}", "function normalizeAreaConfig(parent, area) {\n if (!area) {\n return;\n }\n if (area.type === 'tab-area') {\n area.widgets = area.widgets.filter(widget => !widget.isDisposed && widget.parent === parent);\n return;\n }\n area.children.forEach(child => {\n normalizeAreaConfig(parent, child);\n });\n }", "split() {\n\t\t\t\tvar nextLevel = this.level + 1,\n\t\t\t\t\tsubWidth = this.bounds.width / 2,\n\t\t\t\t\tsubHeight = this.bounds.height / 2,\n\t\t\t\t\tx = this.bounds.x,\n\t\t\t\t\ty = this.bounds.y;\n\n\t\t\t\t//top right node\n\t\t\t\tthis.nodes[0] = new Quadtree(\n\t\t\t\t\t{\n\t\t\t\t\t\tx: x + subWidth,\n\t\t\t\t\t\ty: y,\n\t\t\t\t\t\twidth: subWidth,\n\t\t\t\t\t\theight: subHeight\n\t\t\t\t\t},\n\t\t\t\t\tthis.max_objects,\n\t\t\t\t\tthis.max_levels,\n\t\t\t\t\tnextLevel\n\t\t\t\t);\n\n\t\t\t\t//top left node\n\t\t\t\tthis.nodes[1] = new Quadtree(\n\t\t\t\t\t{\n\t\t\t\t\t\tx: x,\n\t\t\t\t\t\ty: y,\n\t\t\t\t\t\twidth: subWidth,\n\t\t\t\t\t\theight: subHeight\n\t\t\t\t\t},\n\t\t\t\t\tthis.max_objects,\n\t\t\t\t\tthis.max_levels,\n\t\t\t\t\tnextLevel\n\t\t\t\t);\n\n\t\t\t\t//bottom left node\n\t\t\t\tthis.nodes[2] = new Quadtree(\n\t\t\t\t\t{\n\t\t\t\t\t\tx: x,\n\t\t\t\t\t\ty: y + subHeight,\n\t\t\t\t\t\twidth: subWidth,\n\t\t\t\t\t\theight: subHeight\n\t\t\t\t\t},\n\t\t\t\t\tthis.max_objects,\n\t\t\t\t\tthis.max_levels,\n\t\t\t\t\tnextLevel\n\t\t\t\t);\n\n\t\t\t\t//bottom right node\n\t\t\t\tthis.nodes[3] = new Quadtree(\n\t\t\t\t\t{\n\t\t\t\t\t\tx: x + subWidth,\n\t\t\t\t\t\ty: y + subHeight,\n\t\t\t\t\t\twidth: subWidth,\n\t\t\t\t\t\theight: subHeight\n\t\t\t\t\t},\n\t\t\t\t\tthis.max_objects,\n\t\t\t\t\tthis.max_levels,\n\t\t\t\t\tnextLevel\n\t\t\t\t);\n\t\t\t}", "function GroupingBar(parent){/* eslint-enable */this.parent=parent;this.parent.groupingBarModule=this;this.resColWidth=this.parent.isAdaptive?180:249;this.addEventListener();this.parent.axisFieldModule=new AxisFields(this.parent);this.touchObj=new sf.base.Touch(this.parent.element,{tapHold:this.tapHoldHandler.bind(this)});}", "function ddAcInit() {\n\n var offset = $attrs.ddAcOffset; // Allow user to specify an arbitrary amount to be added to\n // breakpointWidth\n\n breakpointWidth = 0; // reset the breakpoint width to zero\n\n\n // Loop through each element that should contribute to the\n // 'total children width' value, and add it to the sum total\n $element.find('[dd-ac-child]').each(function(i, e) {\n\n // convert the outer width from a string to an integer\n var widthInt = parseInt($(this).outerWidth(), 10);\n \n // Add current element's outer width to child widths total\n breakpointWidth += widthInt;\n });\n\n\n // Add arbitrary offset value (if specified) to child widths sum,\n if (typeof offset !== 'undefined') {\n breakpointWidth += parseInt(offset, 10);\n }\n\n console.log('Total width of children: ', breakpointWidth);\n }" ]
[ "0.6299004", "0.60675913", "0.6066776", "0.58993673", "0.57981884", "0.5790527", "0.57366335", "0.5722501", "0.5586438", "0.5541919", "0.5472329", "0.54684424", "0.54277647", "0.5420227", "0.5414548", "0.5382922", "0.5362616", "0.5332332", "0.5332332", "0.5332332", "0.5327955", "0.52988166", "0.52974033", "0.52652013", "0.52597827", "0.5248281", "0.5220368", "0.520524", "0.51919454", "0.5191253", "0.5187491", "0.5176435", "0.51689565", "0.5167954", "0.515651", "0.5152392", "0.5146477", "0.5144298", "0.51405257", "0.5132961", "0.51293206", "0.51263124", "0.51261234", "0.51221263", "0.5116649", "0.5092045", "0.50831926", "0.5069266", "0.5066161", "0.5060381", "0.5057318", "0.5049408", "0.5048555", "0.5041079", "0.5035575", "0.5034996", "0.50324017", "0.5023841", "0.50220555", "0.5020031", "0.5017807", "0.5009285", "0.5003353", "0.50010324", "0.4995532", "0.49879614", "0.49844554", "0.49844554", "0.49836025", "0.49778333", "0.4976352", "0.49602377", "0.49589774", "0.49542695", "0.49452132", "0.4944316", "0.49419388", "0.49363956", "0.4930021", "0.49273455", "0.49207002", "0.49182713", "0.4915337", "0.49140847", "0.49103227", "0.49056613", "0.49056494", "0.4905168", "0.49029765", "0.49015585", "0.49013522", "0.48939607", "0.48882738", "0.4884478", "0.48828623" ]
0.5103846
50
Consider 'visibleMin'. Modify viewChildren and get new sum.
function filterByThreshold(nodeModel, totalArea, sum, orderBy, orderedChildren) { // visibleMin is not supported yet when no option.sort. if (!orderBy) { return sum; } var visibleMin = nodeModel.get('visibleMin'); var len = orderedChildren.length; var deletePoint = len; // Always travel from little value to big value. for (var i = len - 1; i >= 0; i--) { var value = orderedChildren[orderBy === 'asc' ? len - i - 1 : i].getValue(); if (value / sum * totalArea < visibleMin) { deletePoint = i; sum -= value; } } orderBy === 'asc' ? orderedChildren.splice(0, len - deletePoint) : orderedChildren.splice(deletePoint, len - deletePoint); return sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function filterByThreshold(nodeModel,totalArea,sum,orderBy,orderedChildren){ // visibleMin is not supported yet when no option.sort.\n if(!orderBy){return sum;}var visibleMin=nodeModel.get('visibleMin');var len=orderedChildren.length;var deletePoint=len; // Always travel from little value to big value.\n for(var i=len - 1;i >= 0;i--) {var value=orderedChildren[orderBy === 'asc'?len - i - 1:i].getValue();if(value / sum * totalArea < visibleMin){deletePoint = i;sum -= value;}}orderBy === 'asc'?orderedChildren.splice(0,len - deletePoint):orderedChildren.splice(deletePoint,len - deletePoint);return sum;}", "function filterByThreshold(nodeModel, totalArea, sum, orderBy, orderedChildren) {\n\t // visibleMin is not supported yet when no option.sort.\n\t if (!orderBy) {\n\t return sum;\n\t }\n\t\n\t var visibleMin = nodeModel.get('visibleMin');\n\t var len = orderedChildren.length;\n\t var deletePoint = len; // Always travel from little value to big value.\n\t\n\t for (var i = len - 1; i >= 0; i--) {\n\t var value = orderedChildren[orderBy === 'asc' ? len - i - 1 : i].getValue();\n\t\n\t if (value / sum * totalArea < visibleMin) {\n\t deletePoint = i;\n\t sum -= value;\n\t }\n\t }\n\t\n\t orderBy === 'asc' ? orderedChildren.splice(0, len - deletePoint) : orderedChildren.splice(deletePoint, len - deletePoint);\n\t return sum;\n\t }", "function filterByThreshold(nodeModel, totalArea, sum, orderBy, orderedChildren) {\n\n\t // visibleMin is not supported yet when no option.sort.\n\t if (!orderBy) {\n\t return sum;\n\t }\n\n\t var visibleMin = nodeModel.get('visibleMin');\n\t var len = orderedChildren.length;\n\t var deletePoint = len;\n\n\t // Always travel from little value to big value.\n\t for (var i = len - 1; i >= 0; i--) {\n\t var value = orderedChildren[orderBy === 'asc' ? len - i - 1 : i].getValue();\n\n\t if (value / sum * totalArea < visibleMin) {\n\t deletePoint = i;\n\t sum -= value;\n\t }\n\t }\n\n\t orderBy === 'asc' ? orderedChildren.splice(0, len - deletePoint) : orderedChildren.splice(deletePoint, len - deletePoint);\n\n\t return sum;\n\t}", "min() {\r\n return this.minHelper(this.root);\r\n }", "function filterByThreshold(nodeModel, totalArea, sum, orderBy, orderedChildren) {\n\n // visibleMin is not supported yet when no option.sort.\n if (!orderBy) {\n return sum;\n }\n\n var visibleMin = nodeModel.get('visibleMin');\n var len = orderedChildren.length;\n var deletePoint = len;\n\n // Always travel from little value to big value.\n for (var i = len - 1; i >= 0; i--) {\n var value = orderedChildren[\n orderBy === 'asc' ? len - i - 1 : i\n ].getValue();\n\n if (value / sum * totalArea < visibleMin) {\n deletePoint = i;\n sum -= value;\n }\n }\n\n orderBy === 'asc'\n ? orderedChildren.splice(0, len - deletePoint)\n : orderedChildren.splice(deletePoint, len - deletePoint);\n\n return sum;\n }", "_calcVisibleLines() {\n this._lines.qtMaxVisible = Math.floor(this._matrixHeight / this._cell.heightMin);\n if (this._lines.qtMaxVisible > 3)\n this._lines.qtMinVisible = 3;\n else\n this._lines.qtMinVisible = 1;\n if (this._lines.qtMaxVisible > this._lines.qtTotal)\n this._lines.qtMaxVisible = this._lines.qtTotal;\n if (this._lines.qtMaxVisible < this._lines.qtVisible && this._lines.qtMaxVisible != 0)\n this._lines.qtVisible = this._lines.qtMaxVisible;\n }", "function ShowInsantaneousSum(parentGridID, colIndex)\n{\n var objGrid = document.getElementById(parentGridID);\n if(objGrid)\n {\n var colSum = 0;\n var cellIndex = parseInt(colIndex)+1;\n var decCellIndex = false;\n for (var rowCount = 1; rowCount < objGrid.rows.length ; rowCount++ )\n { \n //Check if previously this row was deleted.If deleted don't consider.\n if(objGrid.rows[rowCount].style.display == \"none\")\n {\n continue;\n }\n \n //Check if the last row is a row added as a result of inclusion of paging. If true,ignore it.\n if(rowCount==objGrid.rows.length-1) //Last Row check.\n { \n if( objGrid.rows[rowCount] && objGrid.rows[rowCount-1] )\n {\n if(objGrid.rows[rowCount].childNodes.length!=objGrid.rows[rowCount-1].childNodes.length)\n {\n continue;\n }\n }\n }\n \n var chkSelect=GetFirstChild(objGrid.rows[rowCount].cells[0]);\n if(chkSelect.id.indexOf('chkBxSelectRow')==-1)\n {\n //Implies the first selection checkbox column is missing so decrement the cellIndex variable.\n decCellIndex = true;\n }\n //Sum only checked rows\n if(g_AddSelected)\n {\n if(chkSelect.checked==false)\n {\n continue;\n }\n }\n var cellIndex2=cellIndex;\n if(decCellIndex)\n {\n cellIndex2=cellIndex2-1;\n }\n var currentRowTB = getChildElement(objGrid.rows[rowCount].cells[cellIndex2]);//+1 - override the checkbox\n if(currentRowTB.type != \"text\")\n {\n// alert(\"Erroorr-Testing Phase:ChildGridview.js-ShowInsantaneousSum()\");\n// var cellId=\"cell\"+rowCount+cellIndex;\n// objGrid.rows[rowCount].cells[cellIndex2].id=cellId;\n currentRowTB=jQuery(objGrid.rows[rowCount].cells[cellIndex2]).find('input:visible')[0];\n }\n var dataRowCount = rowCount-1;\n if(currentRowTB)\n {\n var strNumber = currentRowTB.value.replace(/,/g,\"\");\n var isNotaNumber = isNaN(strNumber);\n if(!isNotaNumber)\n {\n var parsedText = parseFloat(strNumber);\n if(isFinite(parsedText))\n {\n colSum+= parsedText;\n }\n }\n }\n }\n var tdLabel = document.getElementById('tdAmt'+colIndex);\n if(tdLabel) {\n tdLabel.innerHTML = formatCurrency(colSum);\n }\n }\n}", "set hasVisibleChildren(value) {}", "getValueFromView() {\n return (this.minValue + (this.valueWidth * this.getPercentage())).toFixed(0);\n }", "function TreeViewData_FindVisibleItems()\n{\n\t//reset max depth\n\tthis.MaxDepth = 0;\n\t//reset array of visible items\n\tthis.VisibleItems = [];\n\tthis.VisibleItemsException = {};\n\t//loop through items\n\tfor (var iItem = 0, cItem = this.Items.length; iItem < cItem; iItem++)\n\t{\n\t\t//visible?\n\t\tif (this.Items[iItem].IsVisible())\n\t\t{\n\t\t\t//store it\n\t\t\tthis.VisibleItemsException[this.Items[iItem].Exception] = this.VisibleItems.length;\n\t\t\tthis.VisibleItems.push(iItem);\n\t\t\t//memorise max depth\n\t\t\tthis.MaxDepth = Math.max(this.MaxDepth, this.Items[iItem].Depth);\n\t\t}\n\t}\n\t//update vSpacer\n\tthis.HTML.CONTENT.VSPACER.style.height = this.VisibleItems.length * this.TreeLineHeight + this.Header_Height + \"px\";\n\t//and loop through all vertical lines\n\tfor (var i = 0, c = this.VerticalGrid.length, newHeight = this.HTML.CONTENT.VSPACER.style.height; i < c; i++)\n\t{\n\t\t//and update their height\n\t\tthis.VerticalGrid[i].style.height = newHeight;\n\t}\n}", "get hasVisibleChildren() {}", "sumValues() {\n return (this.root ? this.root.sum() : 0);\n }", "function calculateOverview(value, overviewer, summatoryName) {\r\n if (value < overviewer.min)\r\n overviewer.min = value;\r\n if (value > overviewer.max)\r\n overviewer.max = value;\r\n summatory[`${summatoryName}`] += value;\r\n }", "computeVisibleNodes () {\n let visible_nodes = [];\n for (let i = 0, l = this.d_graph.d_nodes.length; i < l; ++i) {\n let n = this.d_graph.d_nodes[i];\n\n //skip rendering nodes in live mode\n if (this.d_live_mode && !n.onDrawBackground && !n.onDrawForeground)\n continue;\n\n if (!overlapBounding(this.d_visible_area, n.getBounding()))\n continue; //out of the visible area\n\n visible_nodes.push(n);\n }\n return visible_nodes;\n }", "flattenVisible() {\n EventBus.$emit(\"try-flatten-visible-layers\");\n }", "function updatePoints() {\n var prev = {y: 0, num: 0};\n obj.points = [];\n for (var j = 0, jj = obj.visibleNodes.length; j < jj; j++) {\n var offset = obj.visibleNodes[j].$li.offset(),\n y = Math.round(offset.top);\n obj.visibleNodes[j].top = y;\n obj.visibleNodes[j].left = Math.round(offset.left);\n if (prev.y) {\n var q = (y - prev.y) / 4;\n for (var i = prev.y; i < y; i++) {\n var where = (i - prev.y < q)?\"above\":(i - prev.y < q * 3)?\"append\":\"below\";\n obj.points[i] = {num: prev.num, where: where, top: prev.y};\n }\n }\n if (j == jj - 1) {\n var q = (obj.visibleNodes[j].height) / 4;\n for (var i = y; i < y + obj.visibleNodes[j].height; i++) {\n var where = (i - y < q)?\"above\":(i - y < q * 3)?\"append\":\"below\";\n obj.points[i] = {num: j, where: where, top: y};\n }\n }\n prev.y = y;\n prev.num = j;\n }\n }", "function visibleNodes(root) {\n return height(root);\n function height(node) {\n if (!node) {\n return 0;\n }\n\n return 1 + Math.max(height(node.left), height(node.right));\n }\n}", "updateNodesVisibility () {\n let skipped;\n\n for (let i = Object.keys(this.columnCache).length; i--;) {\n skipped = 0;\n // Update `y` according to the number of previously skipped nodes.\n for (let j = 0, len = this.columnNodeOrder[i].length; j < len; j++) {\n if (\n this.columnNodeOrder[i][j].hidden &&\n !this.columnNodeOrder[i][j].data.queryMode\n ) {\n skipped++;\n }\n this.columnNodeOrder[i][j].y = this.scale.y(j - skipped);\n }\n }\n\n return this;\n }", "updateTransform() {\n if (this.sortableChildren && this.sortDirty) {\n this.sortChildren();\n }\n this._boundsID++;\n this.transform.updateTransform(this.parent.transform);\n // TODO: check render flags, how to process stuff here\n this.worldAlpha = this.alpha * this.parent.worldAlpha;\n for (var i = 0, j = this.children.length; i < j; ++i) {\n var child = this.children[i];\n if (child.visible) {\n child.updateTransform();\n }\n }\n }", "resizeToChildren() {\n let totalBounds = this.recurseThroughChildren(this, []);\n let minX;\n let minY;\n let maxX;\n let maxY;\n for (let bound in totalBounds) {\n if (!minX) {\n minX = this.x;\n maxX = totalBounds[bound].x + totalBounds[bound].width;\n minY = this.y;\n maxY = totalBounds[bound].y + totalBounds[bound].height\n continue;\n }\n if (totalBounds[bound].x + totalBounds[bound].width > maxX) {\n maxX = totalBounds[bound].x + totalBounds[bound].width\n }\n if (totalBounds[bound].y + totalBounds[bound].height > maxY) {\n maxY = totalBounds[bound].y + totalBounds[bound].height\n }\n }\n this.x = minX;\n this.y = minY;\n this.width = maxX - minX;\n this.height = maxY - minY;\n this.sizeUpdated = true;\n }", "calcSum(treeNode)\n {\n this.sum = 0;\n this.count = 0;\n this.sumHelper(treeNode);\n return this.sum;\n }", "function expand_node_view(node) {\n if(node.children.length>0)\n {\n node.view_series = false;\n for(var i=0; i<node.children.length; i++)\n node.children[i].view_series = true;\n }\n}", "getViewFromValue() {\n const offset = this.value - this.minValue;\n const percentage = (offset / this.valueWidth).toFixed(4);\n return percentage * this.viewWidth;\n }", "function showMoreVisible() {\n var threshold, target = $(\"#\"+self.elementName );\n\n if (!target.length) return;\n\n threshold = $(window).scrollTop() + $(window).height() - target.height();\n //console.log(threshold);\n if (target.offset().top < threshold) {\n if (!target.data(\"visible\")) {\n // console.log(\"target became visible (inside viewable area)\");\n target.data(\"visible\", true);\n\n Session.set(\"itemsLimit\", Session.get(\"itemsLimit\") + self.ITEMS_INCREMENT);\n }\n } else {\n if (target.data(\"visible\")) {\n //console.log(\"target became invisible (below viewable arae)\");\n target.data(\"visible\", false);\n }\n }\n }", "function showLevelChildren() {\r\n if (activeGroup) {\r\n for (var i = 3; i < activeGroup.children.length; i++) {\r\n activeGroup.children[i].visible = true;\r\n }\r\n }\r\n}", "showMineCount() {\n // get/store number of surrounding mines\n this.surrMines = this.allNeighbours.reduce(\n (total, n) => (n.hasMine ? ++total : total),\n 0\n );\n // if greater than 0, show the number, otherwise leave blank\n if (this.surrMines > 0) {\n this.uiBox.textContent = this.surrMines;\n this.uiBox.classList.add(\"num\");\n this.uiBox.style.color = getComputedStyle(root).getPropertyValue(\n `--boxColor-${this.surrMines}`\n );\n }\n }", "get minRows() { return this._minRows; }", "recenterViewTree(nodes){\n const {\n viewer,\n scene,\n } = this;\n let tree = nodes || viewer.root,\n upLeftMost = tree.inbound&&tree.inbound.length>0?tree.inbound[0].x:false,\n upRightMost= tree.inbound&&tree.inbound.length>0?tree.inbound[tree.inbound.length-1].x:false,\n downLeftMost = tree.outbound&&tree.outbound.length>0?tree.outbound[0].x:false,\n downRightMost= tree.outbound&&tree.outbound.length>0?tree.outbound[tree.outbound.length-1].x:false,\n upCenterOffset = (upRightMost-upLeftMost)/2,\n downCenterOffset = (downRightMost-downLeftMost)/2,\n offsetChildren = function(root, moveBy, direction){\n if(Math.round(moveBy)==0) return;\n if(root[direction]&&root[direction].length>0) for(var i in root[direction]){\n root[direction][i].x+=moveBy;\n offsetChildren(root[direction][i], moveBy, direction);\n }\n };\n offsetChildren(tree, tree.x-(upLeftMost+upCenterOffset), 'inbound');\n offsetChildren(tree, tree.x-(downLeftMost+downCenterOffset), 'outbound');\n viewer.moveViewTo(tree.x-(viewer.width/2)+(tree.width/2), tree.y-(viewer.height/2)+(tree.height/2));\n }", "function ColumnSum(gvClientID,colIndex)\n{\n \n var ucId=gvClientID.replace('_grdVwBranch','');\n //Format of hdnAmounts: TotalAmt1-AmtColIndex1~TotalAmt2-AmtColIndex2~...........\n var hdnCurrAction=$get('ctl00_cphPageContents_BtnsUC_hdnCurrAction');\n var sumValue=0;\n var parsedText=0; \n if((IsPaging(ucId))&&(hdnCurrAction.value==\"Modify\"))\n {\n //Calculate sum Modify case pageing child grid view\n var arrColAmts=$get(ucId+'_hdnAmounts').value.split('~');\n for(var index=0;index<arrColAmts.length;index++)\n {\n if(arrColAmts[index]!=\"\")\n {\n var arrAmt=arrColAmts[0].split('|');\n var colamt=arrAmt[0];\n var colIndexs=arrAmt[1];\n colIndex=colIndex-1;\n if(colIndex == colIndexs)\n { \n var sumTrx=trim(colamt.replace(/,/g,\"\"))\n //Convert To float\n parsedText=parseFloat(eval(sumTrx));\n //Float value is valid or not\n if(isFinite(parsedText))\n {\n sumValue=f_floatAdd(sumValue,parsedText);\n }\n \n }\n }\n }\n sumValue=sumValue.toFixed(2);\n }\n else\n {\n //Calculate sum ADD case pageing child gridview and all other child gridviews\n var objGridView = document.getElementById(gvClientID);\n for( var i = 1; i < objGridView.rows.length; i++)\n {\n var columnTxtbx = getChildElement(objGridView.rows[i].cells[colIndex]);\n \n if(columnTxtbx && columnTxtbx.value.length > 0)\n {\n //none is verifying if the rows deleted\n if(objGridView.rows[i].style.display != \"none\")\n {\n var sumTrx=trim(columnTxtbx.value.replace(/,/g,\"\"))\n //console.log(columnTxtbx +\"\\n\"+ sumValue);\n //Convert To float\n parsedText=parseFloat(eval(sumTrx));\n //Float value is valid or not\n if(isFinite(parsedText))\n {\n sumValue=f_floatAdd(sumValue,parsedText);\n }\n \n \n }\n }\n }\n //negative values it show exponent value this fixing 2 digits only\n sumValue=sumValue.toFixed(2);\n } \n return sumValue;\n}", "calculateBounds() {\n this._bounds.clear();\n this._calculateBounds();\n for (var i = 0; i < this.children.length; i++) {\n var child = this.children[i];\n if (!child.visible || !child.renderable) {\n continue;\n }\n child.calculateBounds();\n // TODO: filter+mask, need to mask both somehow\n if (child._mask) {\n child._mask.calculateBounds();\n this._bounds.addBoundsMask(child._bounds, child._mask._bounds);\n }\n else if (child.filterArea) {\n this._bounds.addBoundsArea(child._bounds, child.filterArea);\n }\n else {\n this._bounds.addBounds(child._bounds);\n }\n }\n this._lastBoundsID = this._boundsID;\n }", "function findVisible(node, camera, viewArea, visible){\n var child = 0;\n member = 0,\n objectToAdd = null;\n\n if(math.objectInSquare(camera.boundingCircle, node))\n if(node.hasChildren){\n for(child = 0; child < node.children.length; child++){\n findVisible(node.children[child], camera, viewArea, visible);\n }\n } else{\n for (member = 0; member < node.members.length; member++){\n objectToAdd = node.members[member];\n\n if(testedSet[objectToAdd.id] === undefined){\n testedSet[objectToAdd.id] = true;\n tested += 1;\n if(objectToAdd.intersects(camera.boundingCircle)){\n if(math.objectInSquare(objectToAdd, viewArea)){\n visible.push(objectToAdd);\n }\n\n }\n }\n }\n }\n\n }", "_determineMinMax() {\n\n if (!this.tabListEl || !this.tabListScrollEl) {\n return;\n }\n\n this.maxX = 0;\n this.minX = this.tabListScrollEl.clientWidth - this.tabListEl.clientWidth - this.maxX;\n }", "get min() { return this._min; }", "get min() { return this._min; }", "get min() { return this._min; }", "get min() { return this._min; }", "get min() { return this._min; }", "get min() { return this._min; }", "min() {\n let currentNode = this.root;\n // continue traversing left until no more children\n while(currentNode.left) {\n currentNode = currentNode.left;\n }\n return currentNode.value;\n }", "function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {\n\t var viewChildren = node.children || [];\n\t var orderBy = options.sort;\n\t orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n\t var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth; // leafDepth has higher priority.\n\t\n\t if (hideChildren && !overLeafDepth) {\n\t return node.viewChildren = [];\n\t } // Sort children, order by desc.\n\t\n\t\n\t viewChildren = filter(viewChildren, function (child) {\n\t return !child.isRemoved();\n\t });\n\t sort$1(viewChildren, orderBy);\n\t var info = statistic(nodeModel, viewChildren, orderBy);\n\t\n\t if (info.sum === 0) {\n\t return node.viewChildren = [];\n\t }\n\t\n\t info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\t\n\t if (info.sum === 0) {\n\t return node.viewChildren = [];\n\t } // Set area to each child.\n\t\n\t\n\t for (var i = 0, len = viewChildren.length; i < len; i++) {\n\t var area = viewChildren[i].getValue() / info.sum * totalArea; // Do not use setLayout({...}, true), because it is needed to clear last layout.\n\t\n\t viewChildren[i].setLayout({\n\t area: area\n\t });\n\t }\n\t\n\t if (overLeafDepth) {\n\t viewChildren.length && node.setLayout({\n\t isLeafRoot: true\n\t }, true);\n\t viewChildren.length = 0;\n\t }\n\t\n\t node.viewChildren = viewChildren;\n\t node.setLayout({\n\t dataExtent: info.dataExtent\n\t }, true);\n\t return viewChildren;\n\t }", "deleteMin() {\r\n this.root = this.animateDeleteMinHelper(this.root);\r\n }", "render() {\n const { rootNode, sizeSet } = this;\n let visualIndex = this.visualIndex;\n\n if (this.isSharedViewSet() && sizeSet.isPlaceOn(WORKING_SPACE_BOTTOM)) {\n visualIndex += sizeSet.sharedSize.nextSize;\n }\n\n let node = rootNode.childNodes[visualIndex];\n\n if (node.tagName !== this.childNodeType) {\n const newNode = this.nodesPool();\n\n rootNode.replaceChild(newNode, node);\n node = newNode;\n }\n\n this.collectedNodes.push(node);\n this.visualIndex += 1;\n }", "function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {\n var viewChildren = node.children || [];\n var orderBy = options.sort;\n orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n\n var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth;\n\n // leafDepth has higher priority.\n if (hideChildren && !overLeafDepth) {\n return (node.viewChildren = []);\n }\n\n // Sort children, order by desc.\n viewChildren = zrUtil.filter(viewChildren, function (child) {\n return !child.isRemoved();\n });\n\n sort(viewChildren, orderBy);\n\n var info = statistic(nodeModel, viewChildren, orderBy);\n\n if (info.sum === 0) {\n return (node.viewChildren = []);\n }\n\n info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\n if (info.sum === 0) {\n return (node.viewChildren = []);\n }\n\n // Set area to each child.\n for (var i = 0, len = viewChildren.length; i < len; i++) {\n var area = viewChildren[i].getValue() / info.sum * totalArea;\n // Do not use setLayout({...}, true), because it is needed to clear last layout.\n viewChildren[i].setLayout({area: area});\n }\n\n if (overLeafDepth) {\n viewChildren.length && node.setLayout({isLeafRoot: true}, true);\n viewChildren.length = 0;\n }\n\n node.viewChildren = viewChildren;\n node.setLayout({dataExtent: info.dataExtent}, true);\n\n return viewChildren;\n }", "static updateMinimum(obj) {\n if (CSRankings.minToRank <= 500) {\n let t = obj.scrollTop;\n CSRankings.minToRank = 5000;\n CSRankings.getInstance().rank();\n return t;\n }\n else {\n return 0;\n }\n }", "function computeIsChildrenVisible(current) {\r\n while (current) {\r\n if (!current.isExpanded) {\r\n return false;\r\n }\r\n current = current.parent;\r\n }\r\n return true;\r\n}", "sumMetadata () {\n const traverse = node => node.sumMetadata() + node.children\n .map(traverse)\n .reduce(sum, 0)\n\n return traverse(this.root)\n }", "get minIndex() {\n return Number(this.getAttribute(\"min\"));\n }", "function accumulate(d) {\n return (d._children = d.children) ? d.value = d.children.reduce(function(p, v) {\n return p + accumulate(v);\n }, 0) : d.value = d.size;\n }", "sumValues() {\n let total = 0;\n if ([this.root][0] === null) return 0;\n const totalValues = [this.root];\n while (totalValues.length) {\n let current = totalValues.pop();\n total = total + current.val;\n if (current.children) {\n for (let child of current.children) {\n totalValues.push(child);\n }\n }\n } return total;\n }", "function absoluteValuesSumMinimization(a) {\n var totalAndIndexObj = [{}];\n var total;\n var x;\n var min = Infinity;\n var toReturn;\n for(var i = 0; i < a.length; i++){\n total = 0;\n for(var j = 0; j < a.length; j++){\n total += Math.abs(a[j] - a[i]);\n }\n x = a[i];\n totalAndIndexObj.push({\"total\": total, x: x});\n }\n for(i = 0; i < totalAndIndexObj.length; i++){\n if(totalAndIndexObj[i].total === min && totalAndIndexObj[i].x > toReturn){\n continue;\n }\n if(totalAndIndexObj[i].total <= min){\n min = totalAndIndexObj[i].total;\n toReturn = totalAndIndexObj[i].x;\n }\n }\n return toReturn;\n}", "checkVisible() {\r\n let squares = this.state.squares;\r\n let mapLevel = this.state.mapLevel;\r\n let p = this.state.playerIndex;\r\n let n = 20;\r\n let visible = [];\r\n const aura = [p, p-2, p-1, p+1, p+2, p+3, p-3,\r\n p-n, p-n-2, p-n-1, p-n+1, p-n+2,\r\n p+n, p+n-2, p+n-1, p+n+1, p+n+2,\r\n p-n*2, p-n*2-1, p-n*2+1,\r\n p+n*2, p+n*2-1, p+n*2+1,\r\n p-4, p+4];\r\n\r\n //only set visible what is on grid and eliminate overflow to other rows\r\n for (let i=0; i<aura.length; i++) {\r\n if (Math.abs(aura[i] % n - p % n) < 4 && aura[i] >= 0 && aura[i] < squares[mapLevel].length) {\r\n visible.push(aura[i]);\r\n }\r\n }\r\n let hidden = [];\r\n for (let i=0; i<squares[mapLevel].length; i++) {\r\n if (!visible.includes(i)) {\r\n hidden.push(i);\r\n }\r\n }\r\n this.setHidden(hidden);\r\n this.setVisible(visible);\r\n }", "min() {\n return this.minStack.getTop()\n }", "hideLower() {\n const filteredTiles = this._filterForLower();\n if (!filteredTiles || !filteredTiles.length) {\n this._error(`No islands found buying for below ${this.minimumBells}.`);\n return;\n }\n\n filteredTiles.forEach((tag) => {\n const parent = tag.parentElement.parentElement.parentElement;\n if (parent) parent.setAttribute('style', 'display: none;'); \n });\n this._info(`Hidden islands lower than ${this.minimumBells}.`);\n }", "function calculateNodePositions(nodesView, nodesData)\n {\n nodesView.children().each(function(index, child)\n {\n var cid = $(child).data('node-cid');\n var node = nodesData[cid];\n var body = nodesView.closest('body');\n\n // groups have nested nodes inside of them\n if (node.binding === 'group')\n {\n for (var i = 0; i < node.data.length; i++)\n {\n console.log('here');\n var current = node.data[i];\n current.position = getCoordinatesForNode(current, body);\n }\n }\n\n node.position = getCoordinatesForNode(node, body);\n node.position.side = getSideForNode(node.position);\n });\n }", "function minimize() {\n //Collapse/Expand All\n if(this.id == \"min\") {\n if(d3.select(this).attr(\"minimized\") == \"true\") { //MAXIMIZE\n d3.selectAll(\".assignmentContainer\")\n .classed(\"assignmentContainerMinimized\", false);\n d3.selectAll(\".svg\")\n .style(\"display\", \"block\");\n d3.selectAll(\".minimize\")\n .attr(\"minimized\", false)\n .text(\"-\");\n\n maximizedCount = visCount;\n minimizedCount = 0;\n\n } else { //MINIMIZE\n d3.selectAll(\".assignmentContainer\")\n .classed(\"assignmentContainerMinimized\", true);\n d3.selectAll(\".svg\")\n .style(\"display\", \"none\");\n d3.selectAll(\".minimize\")\n .attr(\"minimized\", true)\n .text(\"+\");\n\n maximizedCount = 0;\n minimizedCount = visCount;\n }\n\n return;\n }\n\n if(d3.select(this).attr(\"minimized\") == \"true\") { //MAXIMIZE\n d3.select(\"#vis\" + this.id.substr(3))\n .classed(\"assignmentContainerMinimized\", false);\n d3.select(\"#svg\" + this.id.substr(3))\n .style(\"display\", \"block\");\n d3.select(this).attr(\"minimized\", false);\n d3.select(this).text(\"-\");\n\n maximizedCount++;\n minimizedCount--;\n\n if(maximizedCount == visCount) {//ALL vis are minimized\n d3.select(\"#min\")\n .attr(\"minimized\", false)\n .text(\"-\");\n }\n\n } else { //MINIMIZE\n d3.select(\"#vis\" + this.id.substr(3))\n .classed(\"assignmentContainerMinimized\", true);\n d3.select(\"#svg\" + this.id.substr(3))\n .style(\"display\", \"none\");\n d3.select(this).attr(\"minimized\", true);\n d3.select(this).text(\"+\");\n\n minimizedCount++;\n maximizedCount--;\n\n if(minimizedCount == visCount) {//ALL vis are minimized\n d3.select(\"#min\")\n .attr(\"minimized\", true)\n .text(\"+\");\n }\n }\n}", "updateComboSizes(comboMap) {\n const self = this;\n const comboTrees = self.comboTrees;\n const nodeMap = self.nodeMap;\n const nodeSize = self.nodeSize;\n const comboSpacing = self.comboSpacing;\n const comboPadding = self.comboPadding;\n (comboTrees || []).forEach(ctree => {\n const treeChildren = [];\n traverseTreeUp(ctree, (treeNode) => {\n if (treeNode.itemType === \"node\")\n return true; // skip it\n const c = comboMap[treeNode.id];\n // means the combo is hidden, skip it\n if (!c)\n return false;\n const children = treeNode.children;\n if (children) {\n children.forEach((child) => {\n // means the combo is hidden.\n if (!comboMap[child.id] && !nodeMap[child.id])\n return;\n treeChildren.push(child);\n });\n }\n c.minX = Infinity;\n c.minY = Infinity;\n c.maxX = -Infinity;\n c.maxY = -Infinity;\n treeChildren.forEach((child) => {\n if (child.itemType !== \"node\")\n return true; // skip it\n const node = nodeMap[child.id];\n if (!node)\n return true; // means it is hidden\n const r = nodeSize(node);\n const nodeMinX = node.x - r;\n const nodeMinY = node.y - r;\n const nodeMaxX = node.x + r;\n const nodeMaxY = node.y + r;\n if (c.minX > nodeMinX)\n c.minX = nodeMinX;\n if (c.minY > nodeMinY)\n c.minY = nodeMinY;\n if (c.maxX < nodeMaxX)\n c.maxX = nodeMaxX;\n if (c.maxY < nodeMaxY)\n c.maxY = nodeMaxY;\n });\n let minSize = self.oriComboMap[treeNode.id].size || 10;\n if (isArray$2(minSize))\n minSize = minSize[0];\n const maxLength = Math.max(c.maxX - c.minX, c.maxY - c.minY, minSize);\n c.r = maxLength / 2 + comboSpacing(c) / 2 + comboPadding(c);\n return true;\n });\n });\n }", "sumValues(){\n if(!this.root) return 0;\n \n let total = this.root.val;\n\n function sumHelper(node){\n // want to go through each child of a node \n for(let child of node.children){\n // grab the value and add it to the total\n total += child.val;\n // check for any children\n if(child.children.length > 0){\n // then we reapply the sum helper using that child as a node \n sumHelper(child);\n }\n }\n }\n sumHelper(this.root);\n return total;\n }", "min() {\n return this.minStack.getTop\n }", "subtreeWeight () {\n const localWeight = this.template && this.template.weight;\n\n return this.components.reduce(\n (sum, component) => sum + component.subtreeWeight(),\n localWeight\n );\n }", "function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {\n var viewChildren = node.children || [];\n var orderBy = options.sort;\n orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth; // leafDepth has higher priority.\n\n if (hideChildren && !overLeafDepth) {\n return node.viewChildren = [];\n } // Sort children, order by desc.\n\n\n viewChildren = zrUtil.filter(viewChildren, function (child) {\n return !child.isRemoved();\n });\n sort(viewChildren, orderBy);\n var info = statistic(nodeModel, viewChildren, orderBy);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n }\n\n info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n } // Set area to each child.\n\n\n for (var i = 0, len = viewChildren.length; i < len; i++) {\n var area = viewChildren[i].getValue() / info.sum * totalArea; // Do not use setLayout({...}, true), because it is needed to clear last layout.\n\n viewChildren[i].setLayout({\n area: area\n });\n }\n\n if (overLeafDepth) {\n viewChildren.length && node.setLayout({\n isLeafRoot: true\n }, true);\n viewChildren.length = 0;\n }\n\n node.viewChildren = viewChildren;\n node.setLayout({\n dataExtent: info.dataExtent\n }, true);\n return viewChildren;\n}", "function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {\n var viewChildren = node.children || [];\n var orderBy = options.sort;\n orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth; // leafDepth has higher priority.\n\n if (hideChildren && !overLeafDepth) {\n return node.viewChildren = [];\n } // Sort children, order by desc.\n\n\n viewChildren = zrUtil.filter(viewChildren, function (child) {\n return !child.isRemoved();\n });\n sort(viewChildren, orderBy);\n var info = statistic(nodeModel, viewChildren, orderBy);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n }\n\n info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n } // Set area to each child.\n\n\n for (var i = 0, len = viewChildren.length; i < len; i++) {\n var area = viewChildren[i].getValue() / info.sum * totalArea; // Do not use setLayout({...}, true), because it is needed to clear last layout.\n\n viewChildren[i].setLayout({\n area: area\n });\n }\n\n if (overLeafDepth) {\n viewChildren.length && node.setLayout({\n isLeafRoot: true\n }, true);\n viewChildren.length = 0;\n }\n\n node.viewChildren = viewChildren;\n node.setLayout({\n dataExtent: info.dataExtent\n }, true);\n return viewChildren;\n}", "function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {\n var viewChildren = node.children || [];\n var orderBy = options.sort;\n orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth; // leafDepth has higher priority.\n\n if (hideChildren && !overLeafDepth) {\n return node.viewChildren = [];\n } // Sort children, order by desc.\n\n\n viewChildren = zrUtil.filter(viewChildren, function (child) {\n return !child.isRemoved();\n });\n sort(viewChildren, orderBy);\n var info = statistic(nodeModel, viewChildren, orderBy);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n }\n\n info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n } // Set area to each child.\n\n\n for (var i = 0, len = viewChildren.length; i < len; i++) {\n var area = viewChildren[i].getValue() / info.sum * totalArea; // Do not use setLayout({...}, true), because it is needed to clear last layout.\n\n viewChildren[i].setLayout({\n area: area\n });\n }\n\n if (overLeafDepth) {\n viewChildren.length && node.setLayout({\n isLeafRoot: true\n }, true);\n viewChildren.length = 0;\n }\n\n node.viewChildren = viewChildren;\n node.setLayout({\n dataExtent: info.dataExtent\n }, true);\n return viewChildren;\n}", "function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {\n var viewChildren = node.children || [];\n var orderBy = options.sort;\n orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth; // leafDepth has higher priority.\n\n if (hideChildren && !overLeafDepth) {\n return node.viewChildren = [];\n } // Sort children, order by desc.\n\n\n viewChildren = zrUtil.filter(viewChildren, function (child) {\n return !child.isRemoved();\n });\n sort(viewChildren, orderBy);\n var info = statistic(nodeModel, viewChildren, orderBy);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n }\n\n info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n } // Set area to each child.\n\n\n for (var i = 0, len = viewChildren.length; i < len; i++) {\n var area = viewChildren[i].getValue() / info.sum * totalArea; // Do not use setLayout({...}, true), because it is needed to clear last layout.\n\n viewChildren[i].setLayout({\n area: area\n });\n }\n\n if (overLeafDepth) {\n viewChildren.length && node.setLayout({\n isLeafRoot: true\n }, true);\n viewChildren.length = 0;\n }\n\n node.viewChildren = viewChildren;\n node.setLayout({\n dataExtent: info.dataExtent\n }, true);\n return viewChildren;\n}", "function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {\n var viewChildren = node.children || [];\n var orderBy = options.sort;\n orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth; // leafDepth has higher priority.\n\n if (hideChildren && !overLeafDepth) {\n return node.viewChildren = [];\n } // Sort children, order by desc.\n\n\n viewChildren = zrUtil.filter(viewChildren, function (child) {\n return !child.isRemoved();\n });\n sort(viewChildren, orderBy);\n var info = statistic(nodeModel, viewChildren, orderBy);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n }\n\n info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n } // Set area to each child.\n\n\n for (var i = 0, len = viewChildren.length; i < len; i++) {\n var area = viewChildren[i].getValue() / info.sum * totalArea; // Do not use setLayout({...}, true), because it is needed to clear last layout.\n\n viewChildren[i].setLayout({\n area: area\n });\n }\n\n if (overLeafDepth) {\n viewChildren.length && node.setLayout({\n isLeafRoot: true\n }, true);\n viewChildren.length = 0;\n }\n\n node.viewChildren = viewChildren;\n node.setLayout({\n dataExtent: info.dataExtent\n }, true);\n return viewChildren;\n}", "function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {\n var viewChildren = node.children || [];\n var orderBy = options.sort;\n orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth; // leafDepth has higher priority.\n\n if (hideChildren && !overLeafDepth) {\n return node.viewChildren = [];\n } // Sort children, order by desc.\n\n\n viewChildren = zrUtil.filter(viewChildren, function (child) {\n return !child.isRemoved();\n });\n sort(viewChildren, orderBy);\n var info = statistic(nodeModel, viewChildren, orderBy);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n }\n\n info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n } // Set area to each child.\n\n\n for (var i = 0, len = viewChildren.length; i < len; i++) {\n var area = viewChildren[i].getValue() / info.sum * totalArea; // Do not use setLayout({...}, true), because it is needed to clear last layout.\n\n viewChildren[i].setLayout({\n area: area\n });\n }\n\n if (overLeafDepth) {\n viewChildren.length && node.setLayout({\n isLeafRoot: true\n }, true);\n viewChildren.length = 0;\n }\n\n node.viewChildren = viewChildren;\n node.setLayout({\n dataExtent: info.dataExtent\n }, true);\n return viewChildren;\n}", "function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {\n\t var viewChildren = node.children || [];\n\t var orderBy = options.sort;\n\t orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n\n\t var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth;\n\n\t // leafDepth has higher priority.\n\t if (hideChildren && !overLeafDepth) {\n\t return node.viewChildren = [];\n\t }\n\n\t // Sort children, order by desc.\n\t viewChildren = zrUtil.filter(viewChildren, function (child) {\n\t return !child.isRemoved();\n\t });\n\n\t sort(viewChildren, orderBy);\n\n\t var info = statistic(nodeModel, viewChildren, orderBy);\n\n\t if (info.sum === 0) {\n\t return node.viewChildren = [];\n\t }\n\n\t info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\n\t if (info.sum === 0) {\n\t return node.viewChildren = [];\n\t }\n\n\t // Set area to each child.\n\t for (var i = 0, len = viewChildren.length; i < len; i++) {\n\t var area = viewChildren[i].getValue() / info.sum * totalArea;\n\t // Do not use setLayout({...}, true), because it is needed to clear last layout.\n\t viewChildren[i].setLayout({ area: area });\n\t }\n\n\t if (overLeafDepth) {\n\t viewChildren.length && node.setLayout({ isLeafRoot: true }, true);\n\t viewChildren.length = 0;\n\t }\n\n\t node.viewChildren = viewChildren;\n\t node.setLayout({ dataExtent: info.dataExtent }, true);\n\n\t return viewChildren;\n\t}", "#minchild(x) {\n\t\tthis.downsteps++;\n\t\tlet minc = this.left(x);\n\t\tif (minc > this.m) return 0;\n\t\tfor (let y = minc + 1; y <= this.right(x) && y <= this.m; y++) {\n\t\t\tthis.downsteps++;\n\t\t\tif (this.#key[this.#item[y]] < this.#key[this.#item[minc]])\n\t\t\t\tminc = y;\n\t\t}\n\t\treturn minc;\n\t}", "start() {\n this.collectedNodes.length = 0;\n this.visualIndex = 0;\n\n const { rootNode, sizeSet } = this;\n const isShared = this.isSharedViewSet();\n const { nextSize } = sizeSet.getViewSize();\n\n let childElementCount = this.getRenderedChildCount();\n\n while (childElementCount < nextSize) {\n const newNode = this.nodesPool();\n\n if (!isShared || (isShared && sizeSet.isPlaceOn(WORKING_SPACE_BOTTOM))) {\n rootNode.appendChild(newNode);\n } else {\n rootNode.insertBefore(newNode, rootNode.firstChild);\n }\n childElementCount += 1;\n }\n\n const isSharedPlacedOnTop = (isShared && sizeSet.isPlaceOn(WORKING_SPACE_TOP));\n\n while (childElementCount > nextSize) {\n rootNode.removeChild(isSharedPlacedOnTop ? rootNode.firstChild : rootNode.lastChild);\n childElementCount -= 1;\n }\n }", "calcPosition(value, min, totalPoints, handleEl) {\n let val = (value - min) / totalPoints * 100 + \"%\";\n return \"calc(\" + val + \" - \" + (handleEl.getBoundingClientRect().width / 2) + \"px)\";\n }", "insertUpdateLimits(){\n let node = this;\n let changed = true;\n while(node.parent && changed){\n changed = false;\n if(node.parent.minimumLow > this.minimumLow){\n node.parent.minimumLow = this.minimumLow;\n changed = true;\n }\n if(node.parent.maximumLow < this.maximumLow){\n node.parent.maximumLow = this.maximumLow;\n changed = true;\n }\n if(node.parent.minimumHigh > this.minimumHigh){\n node.parent.minimumHigh = this.minimumHigh;\n changed = true;\n }\n if(node.parent.maximumHigh < this.maximumHigh){\n node.parent.maximumHigh = this.maximumHigh;\n changed = true;\n }\n node = node.parent;\n }\n }", "function showMines() {\n if (currentMine >= minesTotal) return\n setTimeout(() => {\n showMine(mines[currentMine++])\n showMines()\n }, 50)\n }", "function visible(e){return a.a.expr.filters.visible(e)&&!a()(e).parents().addBack().filter(function(){return\"hidden\"===a.a.css(this,\"visibility\")}).length}", "updateChildren(view, pos) {\n let inline = this.node.inlineContent, off = pos;\n let composition = view.composing ? this.localCompositionInfo(view, pos) : null;\n let localComposition = composition && composition.pos > -1 ? composition : null;\n let compositionInChild = composition && composition.pos < 0;\n let updater = new ViewTreeUpdater(this, localComposition && localComposition.node, view);\n iterDeco(this.node, this.innerDeco, (widget, i, insideNode) => {\n if (widget.spec.marks)\n updater.syncToMarks(widget.spec.marks, inline, view);\n else if (widget.type.side >= 0 && !insideNode)\n updater.syncToMarks(i == this.node.childCount ? Mark$1.none : this.node.child(i).marks, inline, view);\n updater.placeWidget(widget, view, off);\n }, (child, outerDeco, innerDeco, i) => {\n updater.syncToMarks(child.marks, inline, view);\n let compIndex;\n if (updater.findNodeMatch(child, outerDeco, innerDeco, i))\n ;\n else if (compositionInChild && view.state.selection.from > off && view.state.selection.to < off + child.nodeSize && (compIndex = updater.findIndexWithChild(composition.node)) > -1 && updater.updateNodeAt(child, outerDeco, innerDeco, compIndex, view))\n ;\n else if (updater.updateNextNode(child, outerDeco, innerDeco, view, i))\n ;\n else {\n updater.addNode(child, outerDeco, innerDeco, view, off);\n }\n off += child.nodeSize;\n });\n updater.syncToMarks([], inline, view);\n if (this.node.isTextblock)\n updater.addTextblockHacks();\n updater.destroyRest();\n if (updater.changed || this.dirty == CONTENT_DIRTY) {\n if (localComposition)\n this.protectLocalComposition(view, localComposition);\n renderDescs(this.contentDOM, this.children, view);\n if (ios)\n iosHacks(this.dom);\n }\n }", "function shrinkInterestingChild(curNode) {\n var oldPreview = document.getElementById(\"WizClipperGroupOld\");\n var nodes = curNode.children;\n\n // for recursion.\n if (nodes.length == 0) return 0;\n\n for (var i = 0; i < nodes.length; i++) {\n if (looksInteresting(nodes[i], oldPreview)) {\n return nodes[i];\n }\n }\n\n for (var i = 0; i < nodes.length; i++) {\n return shrinkInterestingChild(nodes[i]);\n }\n }", "get min() {\r\n return this._min\r\n }", "immediateUpdateLimits(){\n // Since nodes are in ascending order of length left-to-right,\n // computing the extreme low interval bounds is straightforward.\n this.minimumLow = this.left ? this.left.minimumLow : this.low;\n this.maximumLow = this.right ? this.right.maximumLow : this.low;\n // Maximum interval bounds are effectively:\n // max|min(high bound for this, for left child, for right child)\n this.minimumHigh = this.intervals[this.intervals.length - 1].high;\n this.maximumHigh = this.high; // Should always equal intervals[0].high\n if(this.left){\n if(this.left.minimumHigh < this.minimumHigh){\n this.minimumHigh = this.left.minimumHigh;\n }\n if(this.left.maximumHigh > this.maximumHigh){\n this.maximumHigh = this.left.maximumHigh;\n }\n }\n if(this.right){\n if(this.right.minimumHigh < this.minimumHigh){\n this.minimumHigh = this.right.minimumHigh;\n }\n if(this.right.maximumHigh > this.maximumHigh){\n this.maximumHigh = this.right.maximumHigh;\n }\n }\n }", "numGreater(lowerBound) {\n let count = 0;\n if ([this.root][0] === null) return 0;\n const totalValues = [this.root];\n while (totalValues.length) {\n let current = totalValues.pop();\n if (current.val > lowerBound) {\n count = count + 1;\n }\n if (current.children) {\n for (let child of current.children) {\n totalValues.push(child);\n }\n }\n } return count;\n }", "set minIndex(_val) {\n (typeof _val === \"number\") && this.setAttribute(\"min\", _val);\n }", "function update() {\n\n // calculate the x,y coordinates of the currentRoot\n tree(currentRoot);\n\n // create KV for simple access\n var currentRootKV = currentRoot.descendants().reduce(function(kv, el) {kv[el.data.id] = el; return kv},{});\n\n // the currentRoot contains the correct XY positions for all the nodes\n // minus the ones that need to be hidden. We don't want to limit the\n // number of nodes for our data elements, since that causes text and lines to\n // `jump` around. So we need to make sure we have the same amount of elements\n // and hide rendering the hidden ones.\n var toRender = root.descendants().map(function(el) {\n if (currentRootKV[el.data.id]) {\n var newNode = currentRootKV[el.data.id];\n return newNode;\n } else {\n // if the child is not in the KV map, it is hidden. We\n // now need to set its position to the calculated position of\n // the first visible parent. In other words, the first one\n // which is in the currentRootKV map.\n var fromRoot = _.cloneDeep(el);\n var parent = fromRoot.parent;\n while (!currentRootKV[parent.data.id]) {\n parent = parent.parent;\n }\n var newParent = currentRootKV[parent.data.id];\n\n fromRoot.hidden = true;\n fromRoot.x = newParent.x;\n fromRoot.y = newParent.y;\n\n // we also set the parents x,y since the lines need to\n // be drawn from this position.\n fromRoot.parent.x = newParent.x;\n fromRoot.parent.y = newParent.y;\n\n return fromRoot;\n }\n });\n\n // now that we have to correct data, create the links\n var links = chart.selectAll(\".link\")\n .data(toRender.slice(1));\n\n var linksEnter = links.enter().append(\"path\")\n .attr(\"class\", \"link\")\n .attr(\"d\", diagonal({x:0, y:0, parent: {x:0, y:0}}))\n .style(\"stroke\", function(d) {return colorScale(d.data.group)});\n\n links.merge(linksEnter)\n .transition().duration(2000).attr(\"d\", diagonal);\n\n // create the groups that hold the circle and the text elements\n var nodes = chart.selectAll(\".node\").data(toRender);\n\n var nodesEnter = nodes.enter().append(\"g\")\n .attr(\"class\", \"node\")\n .on(\"click\", click)\n\n nodesEnter.append(\"circle\")\n .attr(\"r\", 2.5)\n .style(\"fill\", function(d) {return colorScale(d.data.group)});\n\n nodesEnter.append(\"text\")\n .attr(\"dy\", \".31em\")\n\n // combine the updated and new nodes\n var nodesUpdate = nodes.merge(nodesEnter);\n\n // transition the nodes (circles & text)\n nodesUpdate.transition().duration(2000)\n .attr(\"transform\", function(d) { return \"translate(\" + project(d.x, d.y) + \")\"; })\n .style(\"opacity\", function(d) { return !d.hidden ? 1 : 0} )\n .on(\"end\", function(d) {d.hidden ? d3.select(this).attr(\"display\", \"none\"): \"\"})\n .on(\"start\", function(d) {!d.hidden ? d3.select(this).attr(\"display\", \"\"): \"\"});\n\n nodesUpdate.select(\"text\")\n .attr(\"x\", function(d) { return d.x < 180 === !d.children ? 6 : -6; })\n .text(function(d) {return d.data.name; })\n // we could also tween the anchor see chapter 2\n .style(\"text-anchor\", function(d) {\n // for the right side\n if (d.x < 180 && d.children) return \"end\"\n else if (d.x < 180 && !d.children) return \"start\"\n // for the left side\n else if (d.x >= 180 && !d.children) return \"end\"\n else if (d.x >= 180 && d.children) return \"start\"\n })\n .transition().duration(2000)\n .attr(\"transform\", function(d) {\n // called once to determine the target value, and tween the values\n return \"rotate(\" + (d.x < 180 ? d.x - 90 : d.x + 90) + \")\";\n })\n }", "function getVisibleElements(scrollEl, views, sortByVisibility) {\n\t var top = scrollEl.scrollTop,\n\t bottom = top + scrollEl.clientHeight;\n\t var left = scrollEl.scrollLeft,\n\t right = left + scrollEl.clientWidth;\n\t\n\t function isElementBottomBelowViewTop(view) {\n\t var element = view.div;\n\t var elementBottom = element.offsetTop + element.clientTop + element.clientHeight;\n\t return elementBottom > top;\n\t }\n\t\n\t var visible = [],\n\t view,\n\t element;\n\t var currentHeight, viewHeight, hiddenHeight, percentHeight;\n\t var currentWidth, viewWidth;\n\t var firstVisibleElementInd = views.length === 0 ? 0 : binarySearchFirstItem(views, isElementBottomBelowViewTop);\n\t\n\t for (var i = firstVisibleElementInd, ii = views.length; i < ii; i++) {\n\t view = views[i];\n\t element = view.div;\n\t currentHeight = element.offsetTop + element.clientTop;\n\t viewHeight = element.clientHeight;\n\t\n\t if (currentHeight > bottom) {\n\t break;\n\t }\n\t\n\t currentWidth = element.offsetLeft + element.clientLeft;\n\t viewWidth = element.clientWidth;\n\t if (currentWidth + viewWidth < left || currentWidth > right) {\n\t continue;\n\t }\n\t hiddenHeight = Math.max(0, top - currentHeight) + Math.max(0, currentHeight + viewHeight - bottom);\n\t percentHeight = (viewHeight - hiddenHeight) * 100 / viewHeight | 0;\n\t\n\t visible.push({\n\t id: view.id,\n\t x: currentWidth,\n\t y: currentHeight,\n\t view: view,\n\t percent: percentHeight\n\t });\n\t }\n\t\n\t var first = visible[0];\n\t var last = visible[visible.length - 1];\n\t\n\t if (sortByVisibility) {\n\t visible.sort(function (a, b) {\n\t var pc = a.percent - b.percent;\n\t if (Math.abs(pc) > 0.001) {\n\t return -pc;\n\t }\n\t return a.id - b.id; // ensure stability\n\t });\n\t }\n\t return { first: first, last: last, views: visible };\n\t }", "function calculateIsVisible(node: TreeNode, isAncestorVisible: boolean): boolean {\n // When the user is viewing available/visible nodes, we can skip setting the visibility for the children of\n // unavailable/invisible nodes since they are not going to be rendered.\n if (providerAvailable && node.name !== \"root\") {\n const unavailable = hasFeatureColumn\n ? !node.availableByColumn[0] && !node.availableByColumn[1]\n : !node.availableByColumn[0];\n const invisibleInScene = hasFeatureColumn\n ? !getIsTreeNodeVisibleInScene(node, 0) && !getIsTreeNodeVisibleInScene(node, 1)\n : !getIsTreeNodeVisibleInScene(node, 0);\n\n if ((showAvailable && unavailable) || (showVisible && invisibleInScene)) {\n isVisibleByKey[node.key] = false;\n return false;\n }\n }\n // Whether the ancestor is visible, or the current node matches the search text.\n const isAncestorOrCurrentVisible = isAncestorVisible || getIfTextMatches(node);\n let isChildVisible = false;\n\n if (node.type === \"topic\") {\n // Topic node: check if any namespace matches.\n const namespaces =\n availableNamespacesByTopic[node.topicName] ||\n (hasFeatureColumn && availableNamespacesByTopic[`${SECOND_SOURCE_PREFIX}${node.topicName}`]) ||\n [];\n\n for (const namespace of namespaces) {\n const thisNamespacesMatches = namespace.toLowerCase().includes(searchText);\n isVisibleByKey[generateNodeKey({ topicName: node.topicName, namespace })] =\n isAncestorOrCurrentVisible || thisNamespacesMatches;\n isChildVisible = thisNamespacesMatches || isChildVisible;\n }\n } else {\n // Group node: recurse and check if any children are visible.\n for (const child of node.children) {\n isChildVisible = calculateIsVisible(child, isAncestorOrCurrentVisible) || isChildVisible;\n }\n }\n const isVisible = isAncestorOrCurrentVisible || isChildVisible;\n isVisibleByKey[node.key] = isVisible;\n return isVisible;\n }", "function updateTransplantedViewCount(lContainer, amount) {\n lContainer[TRANSPLANTED_VIEWS_TO_REFRESH] += amount;\n var viewOrContainer = lContainer;\n var parent = lContainer[PARENT];\n\n while (parent !== null && (amount === 1 && viewOrContainer[TRANSPLANTED_VIEWS_TO_REFRESH] === 1 || amount === -1 && viewOrContainer[TRANSPLANTED_VIEWS_TO_REFRESH] === 0)) {\n parent[TRANSPLANTED_VIEWS_TO_REFRESH] += amount;\n viewOrContainer = parent;\n parent = parent[PARENT];\n }\n }", "expand() {\n const that = this;\n\n if (that._ignorePropertyValue || that.collapsed) {\n const ownerElement = (that.getRootNode() ? that.getRootNode().host : null) || that.closest('jqx-splitter');\n\n if (!ownerElement) {\n that.collapsed = true;\n return;\n }\n\n if (!that._neighbourItem) {\n that.collapsed = true;\n return;\n }\n\n delete that._ignorePropertyValue;\n\n if (!that._neighbourItem._ignorePropertyValue && that._neighbourItem.collapsed) {\n let neighbourItemIndex = ownerElement._items.indexOf(that._neighbourItem);\n const direction = ownerElement._items.indexOf(that) > ownerElement._items.indexOf(that._neighbourItem) ? -1 : 1;\n\n that._neighbourItem = ownerElement._items[neighbourItemIndex];\n\n while (that._neighbourItem) {\n if (!that._neighbourItem.collapsed) {\n break;\n }\n\n neighbourItemIndex += direction;\n that._neighbourItem = ownerElement._items[neighbourItemIndex];\n }\n }\n\n if (!that._neighbourItem) {\n that.collapsed = true;\n return;\n }\n\n if (that.min) {\n that._setSize('min', that.min, true);\n }\n\n const totalSpace = that._neighbourItem._sizeBeforeCollapse,\n minSize = that._sizeLimits[ownerElement._measurements.minDimension],\n neighbourItemMin = that._neighbourItem._sizeLimits[ownerElement._measurements.minDimension],\n spaceAvailable = totalSpace - minSize;\n\n if (totalSpace && spaceAvailable < neighbourItemMin) {\n that.collapsed = true;\n return;\n }\n\n if (!that._neighbourItem._paddings) {\n const computedStyle = getComputedStyle(that._neighbourItem);\n\n that._neighbourItem._paddings = (parseFloat(computedStyle.getPropertyValue('padding-' + ownerElement._measurements.position)) || 0) +\n (parseFloat(computedStyle.getPropertyValue('padding-' + ownerElement._measurements.position2)) || 0);\n }\n\n if (!that._paddings) {\n const computedStyle = getComputedStyle(that);\n\n that._paddings = (parseFloat(computedStyle.getPropertyValue('padding-' + ownerElement._measurements.position)) || 0) +\n (parseFloat(computedStyle.getPropertyValue('padding-' + ownerElement._measurements.position2)) || 0);\n }\n\n if ((that.size + '').indexOf('%') > -1 && (!that._sizeBeforeCollapse || that._sizeBeforeCollapse === 0) && that._neighbourItem._sizeBeforeCollapse) {\n let totalItemSize = 0;\n\n ownerElement._items.map(item => totalItemSize += !item.collapsed ?\n (item.style[ownerElement._measurements.dimension] && item.style[ownerElement._measurements.dimension].indexOf('%') < -1 && item._sizeBeforeCollapse ?\n item._sizeBeforeCollapse : item.getBoundingClientRect()[ownerElement._measurements.dimension]) : 0);\n that._sizeBeforeCollapse = totalItemSize * parseFloat(that.size) / 100;\n }\n\n const previousSize = Math.min(Math.max(minSize, that._sizeBeforeCollapse), totalSpace - that._neighbourItem._paddings - that._paddings - neighbourItemMin);\n\n if (previousSize < 0) {\n that.collapsed = true;\n return;\n }\n\n //Add animation class\n if (that.hasAnimation && !ownerElement._isInitializing) {\n that.$.addClass('animate');\n that._neighbourItem.$.addClass('animate');\n\n that.addEventListener('transitionend', that._transitionEndHandler, { once: true });\n that.addEventListener('transitioncancel', that._transitionEndHandler, { once: true });\n that._neighbourItem.addEventListener('transitionend', that._transitionEndHandler, { once: true });\n that._neighbourItem.addEventListener('transitioncancel', that._transitionEndHandler, { once: true });\n }\n\n //Restore the size before collapsing\n that.style.padding = '';\n that.style[ownerElement._measurements.minDimension] = that.min ? that._sizeLimits[ownerElement._measurements.minDimension] + 'px' : '';\n that.style[ownerElement._measurements.dimension] = (that._sizeBeforeCollapse = previousSize) + 'px';\n\n that._neighbourItem.style[ownerElement._measurements.dimension] =\n (that._neighbourItem._sizeBeforeCollapse = Math.max(that._neighbourItem._sizeLimits[ownerElement._measurements.minDimension], totalSpace - previousSize)) + 'px';\n\n if (that._neighbourItem._sizeLimits[ownerElement._measurements.maxDimension]) {\n that._neighbourItem.style[ownerElement._measurements.maxDimension] = that._neighbourItem._sizeLimits[ownerElement._measurements.maxDimension] + 'px';\n }\n\n that.collapsed = false;\n ownerElement.$.fireEvent('expand', { itemIndex: ownerElement._items.indexOf(that) });\n\n if (ownerElement._items.indexOf(that) > ownerElement._items.indexOf(that._neighbourItem)) {\n that.previousElementSibling.itemCollapsed = false;\n that.previousElementSibling.showNearButton = that._neighbourItem.collapsible;\n }\n else {\n that.nextElementSibling.itemCollapsed = false;\n that.nextElementSibling.showFarButton = that._neighbourItem.collapsible;\n }\n\n const previousElement = ownerElement._items[ownerElement._items.indexOf(that) - 1],\n nextElement = ownerElement._items[ownerElement._items.indexOf(that) + 1];\n\n if (previousElement) {\n const previousSplitterBar = previousElement.nextElementSibling;\n\n if (previousSplitterBar && previousSplitterBar instanceof JQX.SplitterBar) {\n if (!previousElement.collapsed) {\n previousSplitterBar.itemCollapsed = false;\n previousSplitterBar.showNearButton = previousElement.collapsible;\n previousSplitterBar.showFarButton = that.collapsible;\n }\n else {\n previousSplitterBar.showNearButton = that.collapsible;\n }\n }\n }\n\n if (nextElement) {\n const nextSplitterBar = nextElement.previousElementSibling;\n\n if (nextSplitterBar && nextSplitterBar instanceof JQX.SplitterBar) {\n if (!nextElement.collapsed) {\n nextSplitterBar.itemCollapsed = false;\n nextSplitterBar.showNearButton = that.collapsible;\n nextSplitterBar.showFarButton = nextElement.collapsible;\n }\n else {\n nextSplitterBar.showFarButton = nextElement.collapsed;\n }\n }\n }\n\n delete that._neighbourItem;\n }\n }", "function TreeViewItem_IsVisible()\n{\n\t//we are only visible if our parent is opened and visible\n\treturn this.ROOT || this.Parent.Opened && this.Parent.IsVisible();\n}", "function minNodeEntries () {\n return M/2;\n }", "function visibleNodes() {\n var temp = [];\n for (var i = 0; i < root.length ; i++) {\n if(root[i]){\n temp.push(root[i]);\n }\n }\n return temp;\n}", "get minimumValue() {\r\n return this.i.minimumValue;\r\n }", "get visibleRanges() { return this.viewState.visibleRanges; }", "function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {\n var viewChildren = node.children || [];\n var orderBy = options.sort;\n orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);\n var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth; // leafDepth has higher priority.\n\n if (hideChildren && !overLeafDepth) {\n return node.viewChildren = [];\n } // Sort children, order by desc.\n\n\n viewChildren = util[\"n\" /* filter */](viewChildren, function (child) {\n return !child.isRemoved();\n });\n treemapLayout_sort(viewChildren, orderBy);\n var info = statistic(nodeModel, viewChildren, orderBy);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n }\n\n info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);\n\n if (info.sum === 0) {\n return node.viewChildren = [];\n } // Set area to each child.\n\n\n for (var i = 0, len = viewChildren.length; i < len; i++) {\n var area = viewChildren[i].getValue() / info.sum * totalArea; // Do not use setLayout({...}, true), because it is needed to clear last layout.\n\n viewChildren[i].setLayout({\n area: area\n });\n }\n\n if (overLeafDepth) {\n viewChildren.length && node.setLayout({\n isLeafRoot: true\n }, true);\n viewChildren.length = 0;\n }\n\n node.viewChildren = viewChildren;\n node.setLayout({\n dataExtent: info.dataExtent\n }, true);\n return viewChildren;\n}", "get min() {\n\t\treturn this.nativeElement ? this.nativeElement.min : undefined;\n\t}", "get min() {\n\t\treturn this.nativeElement ? this.nativeElement.min : undefined;\n\t}", "onChildrenPagesChanged() {\n if (this._childrenPagesChanged) {\n this._childrenPagesChanged.raise();\n }\n this.explorer.paginator.visible = this.explorer && this.childrenPages > 1;\n //log(\"Paginator visible: \" + (this.explorer && this.childrenPages > 1))\n }", "get _hiddenContentSize(){var size=this.grid?this._physicalRows*this._rowHeight:this._physicalSize;return size-this._viewportHeight}", "function extendDisplayedItems() {\n var list = currentList();\n if (maxItemsDisplayed === null) {\n initMaxItemsDisplayed();\n } else {\n maxItemsDisplayed = Math.min(maxItemsDisplayed + ITEMS_IN_NEXT_BATCHES, nbItems(list));\n }\n // if (console.log) console.log(\"maxItemsDisplayed: \" + maxItemsDisplayed + \" / \" + nbItems(list));\n updateDisplay(list);\n }" ]
[ "0.5722014", "0.56633747", "0.5654579", "0.56508374", "0.5588599", "0.5485403", "0.5445127", "0.54053354", "0.5262732", "0.5243111", "0.52223074", "0.5155601", "0.5082663", "0.5057831", "0.50453824", "0.49923185", "0.49842614", "0.49837878", "0.49813396", "0.4957671", "0.49554276", "0.49352464", "0.49299827", "0.48929322", "0.4891307", "0.48262987", "0.48243538", "0.48183742", "0.4814248", "0.48083994", "0.48041525", "0.47955212", "0.47944286", "0.47944286", "0.47944286", "0.47944286", "0.47944286", "0.47944286", "0.47917634", "0.4786515", "0.47821587", "0.47807807", "0.477364", "0.47713867", "0.47687596", "0.4753017", "0.4750322", "0.4747234", "0.47196484", "0.471448", "0.47136027", "0.47084135", "0.46979964", "0.46905297", "0.46898893", "0.46724385", "0.4650989", "0.46503216", "0.46478623", "0.46452838", "0.46452838", "0.46452838", "0.46452838", "0.46452838", "0.46452838", "0.46373868", "0.46373048", "0.46290964", "0.46275538", "0.46153232", "0.4606525", "0.46050125", "0.46049058", "0.46035147", "0.46029449", "0.45981687", "0.45970625", "0.45896986", "0.45831823", "0.45795274", "0.4579507", "0.45623848", "0.45596573", "0.45356673", "0.45332932", "0.4527286", "0.45250627", "0.45149922", "0.45119843", "0.44983745", "0.44983745", "0.44967794", "0.4494674", "0.44928464" ]
0.55855453
11
Computes the score for the specified row, as the worst aspect ratio.
function worst(row, rowFixedLength, ratio) { var areaMax = 0; var areaMin = Infinity; for (var i = 0, area, len = row.length; i < len; i++) { area = row[i].getLayout().area; if (area) { area < areaMin && (areaMin = area); area > areaMax && (areaMax = area); } } var squareArea = row.area * row.area; var f = rowFixedLength * rowFixedLength * ratio; return squareArea ? mathMax(f * areaMax / squareArea, squareArea / (f * areaMin)) : Infinity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function worst(row, u) {\n var s = row.area,\n r,\n rmax = 0,\n rmin = Infinity,\n i = -1,\n n = row.length;\n while (++i < n) {\n if (!(r = row[i].area)) continue;\n if (r < rmin) rmin = r;\n if (r > rmax) rmax = r;\n }\n s *= s;\n u *= u;\n return s\n ? Math.max((u * rmax * ratio) / s, s / (u * rmin * ratio))\n : Infinity;\n }", "function worst(row, u) {\n var s = row.area,\n r,\n rmax = 0,\n rmin = Infinity,\n i = -1,\n n = row.length;\n while (++i < n) {\n if (!(r = row[i].area)) continue;\n if (r < rmin) rmin = r;\n if (r > rmax) rmax = r;\n }\n s *= s;\n u *= u;\n return s\n ? Math.max((u * rmax * ratio) / s, s / (u * rmin * ratio))\n : Infinity;\n }", "function worst(row, u) {\n var s = row.area,\n r,\n rmax = 0,\n rmin = Infinity,\n i = -1,\n n = row.length;\n while (++i < n) {\n if (!(r = row[i].area)) continue;\n if (r < rmin) rmin = r;\n if (r > rmax) rmax = r;\n }\n s *= s;\n u *= u;\n return s\n ? Math.max((u * rmax * ratio) / s, s / (u * rmin * ratio))\n : Infinity;\n }", "function worst(row, rowFixedLength, ratio) {\n var areaMax = 0;\n var areaMin = Infinity;\n\n for (var i = 0, area, len = row.length; i < len; i++) {\n area = row[i].getLayout().area;\n if (area) {\n area < areaMin && (areaMin = area);\n area > areaMax && (areaMax = area);\n }\n }\n\n var squareArea = row.area * row.area;\n var f = rowFixedLength * rowFixedLength * ratio;\n\n return squareArea\n ? mathMax(\n (f * areaMax) / squareArea,\n squareArea / (f * areaMin)\n )\n : Infinity;\n }", "function worst(row, rowFixedLength, ratio) {\n\t var areaMax = 0;\n\t var areaMin = Infinity;\n\n\t for (var i = 0, area, len = row.length; i < len; i++) {\n\t area = row[i].getLayout().area;\n\t if (area) {\n\t area < areaMin && (areaMin = area);\n\t area > areaMax && (areaMax = area);\n\t }\n\t }\n\n\t var squareArea = row.area * row.area;\n\t var f = rowFixedLength * rowFixedLength * ratio;\n\n\t return squareArea ? mathMax(f * areaMax / squareArea, squareArea / (f * areaMin)) : Infinity;\n\t}", "function worst(row, rowFixedLength, ratio) {\n\t var areaMax = 0;\n\t var areaMin = Infinity;\n\t\n\t for (var i = 0, area = void 0, len = row.length; i < len; i++) {\n\t area = row[i].getLayout().area;\n\t\n\t if (area) {\n\t area < areaMin && (areaMin = area);\n\t area > areaMax && (areaMax = area);\n\t }\n\t }\n\t\n\t var squareArea = row.area * row.area;\n\t var f = rowFixedLength * rowFixedLength * ratio;\n\t return squareArea ? mathMax$7(f * areaMax / squareArea, squareArea / (f * areaMin)) : Infinity;\n\t }", "function worst(row,rowFixedLength,ratio){var areaMax=0;var areaMin=Infinity;for(var i=0,area,len=row.length;i < len;i++) {area = row[i].getLayout().area;if(area){area < areaMin && (areaMin = area);area > areaMax && (areaMax = area);}}var squareArea=row.area * row.area;var f=rowFixedLength * rowFixedLength * ratio;return squareArea?mathMax(f * areaMax / squareArea,squareArea / (f * areaMin)):Infinity;}", "function worst(row, rowFixedLength, ratio) {\n var areaMax = 0;\n var areaMin = Infinity;\n\n for (var i = 0, area = void 0, len = row.length; i < len; i++) {\n area = row[i].getLayout().area;\n\n if (area) {\n area < areaMin && (areaMin = area);\n area > areaMax && (areaMax = area);\n }\n }\n\n var squareArea = row.area * row.area;\n var f = rowFixedLength * rowFixedLength * ratio;\n return squareArea ? treemapLayout_mathMax(f * areaMax / squareArea, squareArea / (f * areaMin)) : Infinity;\n}", "function scoring() {\n\tif (inRow === 3) {\n\t\tscore += 30;\n\t} else if (inRow === 2) {\n\t\tscore += 20;\n\t} else if (inRow === 1) {\n\t\tscore += 10;\n\t}\n}", "function calculateRatio(row, length) {\n var min = Math.min.apply(Math, row);\n var max = Math.max.apply(Math, row);\n var sum = sumArray(row);\n return Math.max(Math.pow(length, 2) * max / Math.pow(sum, 2), Math.pow(sum, 2) / (Math.pow(length, 2) * min));\n } // isArray - checks if arr is an array", "function getScore() { // Calculating rounded scores based off of dimension\n if (size < 50) { // Checking less than 50\n var lessThan = Math.round(10 - 0.1 * size);\n score = score + lessThan; // Updating score\n } else { // Checking more than 50\n var moreThan = Math.round(10 - 0.09 * size);\n score = score + moreThan; // Updating score\n }\n }", "function checkPatternsInRows(simulatedBoard, score){\n \n boardByRows = returnBoardByRows(simulatedBoard);\n score = checkScore(boardByRows, score);\n // console.log(score);\n return score;\n}", "function calculate_score() {\n var answer = get_answer();\n var guess = get_guess();\n var diff = compare_arrays(answer, guess)\n return Math.floor(((((255 * 3) - diff) / (255 * 3)) * 100))\n}", "function scorePattern(point, ratios, matrix) {\n try {\n var horizontalRun = countBlackWhiteRun(point, { x: -1, y: point.y }, matrix, ratios.length);\n var verticalRun = countBlackWhiteRun(point, { x: point.x, y: -1 }, matrix, ratios.length);\n var topLeftPoint = {\n x: Math.max(0, point.x - point.y) - 1,\n y: Math.max(0, point.y - point.x) - 1,\n };\n var topLeftBottomRightRun = countBlackWhiteRun(point, topLeftPoint, matrix, ratios.length);\n var bottomLeftPoint = {\n x: Math.min(matrix.width, point.x + point.y) + 1,\n y: Math.min(matrix.height, point.y + point.x) + 1,\n };\n var bottomLeftTopRightRun = countBlackWhiteRun(point, bottomLeftPoint, matrix, ratios.length);\n var horzError = scoreBlackWhiteRun(horizontalRun, ratios);\n var vertError = scoreBlackWhiteRun(verticalRun, ratios);\n var diagDownError = scoreBlackWhiteRun(topLeftBottomRightRun, ratios);\n var diagUpError = scoreBlackWhiteRun(bottomLeftTopRightRun, ratios);\n var ratioError = Math.sqrt(horzError.error * horzError.error +\n vertError.error * vertError.error +\n diagDownError.error * diagDownError.error +\n diagUpError.error * diagUpError.error);\n var avgSize = (horzError.averageSize + vertError.averageSize + diagDownError.averageSize + diagUpError.averageSize) / 4;\n var sizeError = (Math.pow((horzError.averageSize - avgSize), 2) +\n Math.pow((vertError.averageSize - avgSize), 2) +\n Math.pow((diagDownError.averageSize - avgSize), 2) +\n Math.pow((diagUpError.averageSize - avgSize), 2)) / avgSize;\n return ratioError + sizeError;\n }\n catch (_a) {\n return Infinity;\n }\n}", "function row_25() {\n // We want the lowest of these three possible scores\n var score;\n if (rowFlaggedTrue(30)) {\n // Do they share only synopses of Clinical Study Reports?\n score = 50;\n } else if (rowFlaggedTrue(26)) {\n // Is this commitment on request only, after a long review process, similar to that for IPD?\n score = 200;\n } else if (rowFlaggedTrue(25)) {\n // Do they commit to share all Clinical Study Reports publicly?\n score = 250;\n } else {\n score = 0;\n }\n // Discounts\n discount = 0;\n if (!rowFlaggedTrue(28)) {\n // Include unlicensed treatments\n discount += 0.25 * score;\n }\n if (!rowFlaggedTrue(29)) {\n // Include off-label uses\n discount += 0.25 * score;\n }\n score -= discount;\n return score;\n}", "function row_36() {\n var score = 0;\n if (rowFlaggedTrue(31)) {\n // Do they commit to share all Clinical Study Reports publicly?\n if (rowFlaggedTrue(35)) {\n // Do they share only synopses of Clinical Study Reports?\n score = 50;\n } else if (rowFlaggedTrue(32)) {\n // Is this commitment on request only, after a long review process, similar to that for IPD?\n score = 200;\n } else {\n // Do they commit to share all Clinical Study Reports publicly?\n score = 250;\n }\n // Discounts\n discount = 0;\n if (!rowFlaggedTrue(33)) {\n // Include unlicensed treatments\n discount += 0.25 * score;\n }\n if (!rowFlaggedTrue(34)) {\n // Include off-label uses\n discount += 0.25 * score;\n }\n score -= discount;\n // Divide retrospective score by 25, then multiply for every year\n // to which the retrospective policy applies.\n score = score / 25 * rowYearsSince(36);\n }\n return score\n}", "function scoreCell(grid, r, c) {\n let maxRange;\n let cellScore;\n maxRange = Math.min(columns - c - 1, Math.min(c, Math.min(r, rows - r - 1)));\n for (let i = 1; i <= maxRange; i++) {\n if (grid[r - i][c] != 'G' ||\n grid[r + i][c] != 'G' ||\n grid[r][c - i] != 'G' ||\n grid[r][c + i] != 'G') {\n maxRange = i - 1;\n break;\n }\n }\n\n return maxRange;\n}", "function calculateScore(array_name, numRows) {\n var highScore = 0;\n var lowScore = 400;\n var averageScore = 0;\n var totalScores = 0;\n\n for (var j = 0; j < numRows; j++) \n {\n\n totalScores = totalScores + array_name[j];\n\n if (array_name[j] > highScore) \n {\n highScore = array_name[j];\n }\n\n if (array_name[j] < lowScore)\n {\n lowScore = array_name[j];\n }\n\n averageScore = totalScores / numRows;\n averageScore = Math.round(averageScore);\n }\n displayScore(averageScore, highScore, lowScore);\n}", "function calculeScores() {\n var width = canvas.width / ratio;\n var height = canvas.height / ratio;\n pigs.forEach((p) => {\n if ((birdX + birdWidth - tolerance > p.centerX - p.radius) && (birdX + tolerance < p.centerX + p.radius)) {\n if ((birdY + birdHeight - tolerance > p.centerY - p.radius) && (birdY + tolerance < p.centerY + p.radius)) {\n scoreSound.play();\n score += 2;\n p.centerX = canvas.width / ratio;\n p.centerY = Math.floor(Math.random() * (height - flowHeight - flowHeight + 1) + flowHeight);\n }\n }\n })\n}", "function row_7() {\n // Does your current policy cover previous trials (ie from start date of current policy,\n // or by specifying a date that it goes back to)? (score from 1a)\n if (rowFlaggedTrue(7)) {\n var score = row_6();\n score = score / 25 * rowYearsSince(8);\n return score\n } else {\n return 0;\n }\n}", "function checkScore(id){\n let result;\n //Checks for a winner in each row\n gameBoard.map((row)=>{\n result = row.reduce((prev, curr)=>{\n return prev + curr;\n })\n checkWinner(result);\n })\n //Checks for a winner in each column\n for( let i = 0; i < 3; i++){\n result = gameBoard.reduce((prev, curr)=>{\n return prev + curr[i];\n }, 0)\n checkWinner(result);\n }\n //Checks for a winner in diagonals\n if((gameBoard[0][0] === gameBoard[1][1] && gameBoard[1][1] === gameBoard[2][2]) && gameBoard[1][1] !== ''){\n result = (gameBoard[1][1]).repeat(3)\n checkWinner(result);\n }else if((gameBoard[0][2] === gameBoard[1][1] && gameBoard[1][1] === gameBoard[2][0]) && gameBoard[1][1] !== ''){\n result = (gameBoard[1][1]).repeat(3)\n checkWinner(result);\n }\n}", "function updateColorDensityScoreMatrix(){\n\tfor(var i = 0; i < dim_x; i++){\n for(var j = 0; j < dim_y; j++){\n\t\t\tvar score = 0;\n\t\t\tvar selfColor = colorMatrix[i][j];\n\t\t\tfor(var k = 1; k <= 2; ++k){\n\t\t\t\tif((i - k) >= 0){\n\t\t\t\t\tif(k == 1)\n\t\t\t\t\t\tscore += colorMatrix[i-k][j] == selfColor? 1 : 0;\n\t\t\t\t\telse if (k == 2)\n\t\t\t\t\t\tscore += colorMatrix[i-k][j] == selfColor? 0.3 : 0;\n\t\t\t\t}\n\t\t\t\tif((i + k) < dim_x){\n\t\t\t\t\tif(k == 1)\n\t\t\t\t\t\tscore += colorMatrix[i+k][j] == selfColor? 1 : 0;\n\t\t\t\t\telse if (k == 2)\n\t\t\t\t\t\tscore += colorMatrix[i+k][j] == selfColor? 0.3 : 0;\n\t\t\t\t}\n\t\t\t\tif((j - k) >= 0){\n\t\t\t\t\tif(k == 1)\n\t\t\t\t\t\tscore += colorMatrix[i][j - k] == selfColor? 1 : 0;\n\t\t\t\t\telse if (k == 2)\n\t\t\t\t\t\tscore += colorMatrix[i][j - k] == selfColor? 0.3 : 0;\n\t\t\t\t}\n\t\t\t\tif((j + k) < dim_y){\n\t\t\t\t\tif(k == 1)\n\t\t\t\t\t\tscore += colorMatrix[i][j + k] == selfColor? 1 : 0;\n\t\t\t\t\telse if (k == 2)\n\t\t\t\t\t\tscore += colorMatrix[i][j + k] == selfColor? 0.3 : 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// only check the direction like: southeast once \n\t\t\t\tif(k == 1){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\tif((i - k) >= 0){\n\t\t\t\t\t\tif((j - k) >= 0){\n\t\t\t\t\t\t\tscore += colorMatrix[i - k][j - k] == selfColor? 0.5 : 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif((j + k) < dim_y){\n\t\t\t\t\t\t\tscore += colorMatrix[i - k][j + k] == selfColor? 0.5 : 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif((i + k) < dim_x){\n\t\t\t\t\t\tif((j - k) >= 0){\n\t\t\t\t\t\t\tscore += colorMatrix[i + k][j - k] == selfColor? 0.5 : 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif((j + k) < dim_y){\n\t\t\t\t\t\t\tscore += colorMatrix[i + k][j + k] == selfColor? 0.5 : 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tcolorDensityScoreMatrix[i][j] = score;\n }\n }\n\tconsole.log(\"colorDensityScoreMatrix: \");\n\tconsole.log(colorDensityScoreMatrix);\n\tpickColorDensityScoreLargestTile();\n}", "function checkPatternsInColumns(simulatedBoard, score){\n \n score = checkScore(simulatedBoard, score);\n // console.log(score);\n return score;\n}", "function calcScore(vol){\n return Math.floor(vol * 2 + 1);\n}", "function fullRowCheck() {\n let isFullRow = false;\n fullRowIndices.length = 0;\n for (let i = boardMatrix.length - 1; i >= 0; i--) {\n let sumOfRow = boardMatrix[i].reduce((sum, item) => sum + item, 0);\n if (sumOfRow === 0) {\n if(isFullRow) {\n let combo = (fullRowIndices.length - 1) * 1000;\n score += fullRowIndices.length * 1000 + combo;\n lblScore.innerHTML = score.toString();\n }\n return;\n }\n else if (sumOfRow === 10) {\n for (let j = 0; j < boardMatrix[i].length; j++) {\n document.getElementById(`${i}${j}`).className = 'fullRow';\n }\n setTimeout(() => {\n for (let j = 0; j < boardMatrix[i].length; j++) {\n document.getElementById(`${i}${j}`).classList.remove('fullRow');\n }\n }, 500);\n fullRowIndices.push(i);\n isFullRow = true;\n }\n }\n}", "function scoreBlackWhiteRun(sequence, ratios) {\n var averageSize = sum(sequence) / sum(ratios);\n var error = 0;\n ratios.forEach(function (ratio, i) {\n error += Math.pow((sequence[i] - ratio * averageSize), 2);\n });\n return { averageSize: averageSize, error: error };\n}", "function winnerVertical(grid, row, lig) {\n if ((grid[row][lig] === grid[row][lig + 1]) && (grid[row][lig] === grid[row][lig + 2]) && (grid[row][lig] === grid[row][lig + 3])) {\n return grid[row][lig];\n } else {\n return NOBODY;\n }\n}", "function row_23() {\n var score = 0;\n if (rowFlaggedTrue(16)) {\n // Do they have a policy to share past results at all?\n score = 250;\n discount = 0;\n if (!rowFlaggedTrue(20)) {\n // Include unlicensed treatments?\n discount += 0.25 * score;\n }\n if (!rowFlaggedTrue(21)) {\n // Include off-label uses?\n discount += 0.25 * score;\n }\n if (!rowFlaggedTrue(22)) {\n // Include phase 4 trials?\n discount += 0.25 * score;\n }\n score -= discount;\n // Discount for number of years back\n score = score / 25 * rowYearsSince(23);\n }\n return score;\n}", "get canvasRow() { return Math.round(this.y / game.canvasRowHeight); }", "function hatchTest(team) {\n // data about the team's scores\n let team_scores = calculateScores(team);\n // median number of hatches per match\n let hatch_avg = roundto100th(jStat.median(team_scores[1]));\n return hatch_avg;\n}", "function calcscore() {\n var id;\n var scoreofWord = 0;\n var isDoublescoreofWord = false;\n\n $(\"#board div img\").each(function (index) {\n //loops through each tile on board\n id = this.id;\n\n if ($(this).parent().attr(\"id\") == \"spot2\") {\n //spot2 is a double word score\n scoreofWord += ScrabbleTiles[id].value;\n isDoublescoreofWord = true;\n } else if ($(this).parent().attr(\"id\") == \"spot6\") {\n //spot6 is a triple letter score\n scoreofWord += ScrabbleTiles[id].value * 3;\n } else {\n scoreofWord += ScrabbleTiles[id].value;\n }\n });\n //double word tile\n if (isDoublescoreofWord) {\n scoreofWord = scoreofWord * 2;\n }\n\n return scoreofWord;\n}", "function getSquareValue(board, squareNumberID, playerCharacter) {\n\t\t\n\t\t//alert(\"In getSquareValue\");\n\t\t\n\t\tvar score = 0;\n\t\t\n\t\tvar score = 0;\n\n\t\tscore = score + rowScore() + columnScore() + diagonalScore();\n\t\t\n\t\treturn score;\n\n\t\tfunction rowScore() {\n\t\t\n\t\t\t//alert(\"In rowScore\");\n\n\t\t\tvar row = 0;\n\t\n\t\t\tvar result = 0;\n\t\t\t\n\t\t\tvar dangerCounter = 0;\n\n\t\t\tswitch (squareNumberID) {\n\t\t\t\tcase 0:\n\t\t\t\tcase 1:\n\t\t\t\tcase 2:\n\t\t\t\t\trow = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\tcase 4:\n\t\t\t\tcase 5:\n\t\t\t\t\trow = 2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\tcase 7:\n\t\t\t\tcase 8:\n\t\t\t\t\trow = 3;\n\t\t\t}\n\t\t\t\n\t\t\tif (row == 1) {\n\n\t\t\t\tif ((board[0].isEmpty() || board[0].getInnerText() == playerCharacter) &&\n\t\t\t\t\t(board[1].isEmpty() || board[1].getInnerText() == playerCharacter) &&\n\t\t\t\t\t(board[2].isEmpty() || board[2].getInnerText() == playerCharacter)) {\n\t\t\t\n\t\t\t\t\tresult++;\n\t\t\t\t\t\n\t\t\t\t\tfor (var i = 0; i < 3; i++) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (board[i].getInnerText() == playerCharacter) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tresult++;\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\tfor (var i = 0; i < 3; i++) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (board[i].getInnerText() == getOppositePlayerCharacter(playerCharacter)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tdangerCounter++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (row == 2) {\n\t\n\t\t\t\tif ((board[3].isEmpty() || board[3].getInnerText() == playerCharacter) &&\n\t\t\t\t\t(board[4].isEmpty() || board[4].getInnerText() == playerCharacter) &&\n\t\t\t\t\t(board[5].isEmpty() || board[5].getInnerText() == playerCharacter)) {\n\t\t\t\n\t\t\t\t\tresult++;\n\t\t\t\t\t\n\t\t\t\t\tfor (var i = 3; i < 6; i++) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (board[i].getInnerText() == playerCharacter) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tresult++;\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\tfor (var i = 3; i < 6; i++) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (board[i].getInnerText() == getOppositePlayerCharacter(playerCharacter)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tdangerCounter++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse { // row == 3\n\t\n\t\t\t\tif ((board[6].isEmpty() || board[6].getInnerText() == playerCharacter) &&\n\t\t\t\t\t(board[7].isEmpty() || board[7].getInnerText() == playerCharacter) &&\n\t\t\t\t\t(board[8].isEmpty() || board[8].getInnerText() == playerCharacter)) {\n\t\t\t\n\t\t\t\t\tresult++;\n\t\t\t\t\t\n\t\t\t\t\tfor (var i = 6; i < 9; i++) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (board[i].getInnerText() == playerCharacter) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tresult++;\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\tfor (var i = 6; i < 9; i++) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (board[i].getInnerText() == getOppositePlayerCharacter(playerCharacter)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tdangerCounter++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (dangerCounter == 2) {\n\t\t\t\t\n\t\t\t\tresult = result + 4;\n\t\t\t\t\n\t\t\t\t//alert(\"Danger of Lose bonus added.\");\n\t\t\t}\n\t\t\t\n\t\t\t//alert(\"Row value equals \" + result);\n\t\n\t\t\treturn result;\n\t\t};\n\n\t\tfunction columnScore() {\n\t\t\n\t\t\t//alert(\"In columnScore\");\n\n\t\t\tvar column = 0;\n\t\n\t\t\tvar result = 0;\n\t\t\t\n\t\t\tvar dangerCounter = 0;\n\n\t\t\tswitch (squareNumberID) {\n\t\t\t\tcase 0:\n\t\t\t\tcase 3:\n\t\t\t\tcase 6:\n\t\t\t\t\tcolumn = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\tcase 4:\n\t\t\t\tcase 7:\n\t\t\t\t\tcolumn = 2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\tcase 5:\n\t\t\t\tcase 8:\n\t\t\t\t\tcolumn = 3;\n\t\t\t}\n\t\n\t\t\tif (column == 1) {\n\n\t\t\t\tif ((board[0].isEmpty() || board[0].getInnerText() == playerCharacter) &&\n\t\t\t\t\t(board[3].isEmpty() || board[3].getInnerText() == playerCharacter) &&\n\t\t\t\t\t(board[6].isEmpty() || board[6].getInnerText() == playerCharacter)) {\n\t\t\t\n\t\t\t\t\tresult++;\n\t\t\t\t\t\n\t\t\t\t\tfor (var i = 0; i < 7; i = i + 3) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (board[i].getInnerText() == playerCharacter) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tresult++;\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\tfor (var i = 0; i < 7; i = i + 3) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (board[i].getInnerText() == getOppositePlayerCharacter(playerCharacter)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tdangerCounter++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\telse if (column == 2) {\n\t\n\t\t\t\tif ((board[1].isEmpty() || board[1].getInnerText() == playerCharacter) &&\n\t\t\t\t\t(board[4].isEmpty() || board[4].getInnerText() == playerCharacter) &&\n\t\t\t\t\t(board[7].isEmpty() || board[7].getInnerText() == playerCharacter)) {\n\t\t\t\n\t\t\t\t\tresult++;\n\t\t\t\t\t\n\t\t\t\t\tfor (var i = 1; i < 8; i = i + 3) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (board[i].getInnerText() == playerCharacter) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tresult++;\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\tfor (var i = 1; i < 8; i = i + 3) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (board[i].getInnerText() == getOppositePlayerCharacter(playerCharacter)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tdangerCounter++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\telse { // column == 3\n\t\n\t\t\t\tif ((board[2].isEmpty() || board[2].getInnerText() == playerCharacter) &&\n\t\t\t\t\t(board[5].isEmpty() || board[5].getInnerText() == playerCharacter) &&\n\t\t\t\t\t(board[8].isEmpty() || board[8].getInnerText() == playerCharacter)) {\n\t\t\t\n\t\t\t\t\tresult++;\n\t\t\t\t\t\n\t\t\t\t\tfor (var i = 2; i < 9; i = i + 3) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (board[i].getInnerText() == playerCharacter) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tresult++;\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\tfor (var i = 2; i < 9; i = i + 3) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (board[i].getInnerText() == getOppositePlayerCharacter(playerCharacter)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tdangerCounter++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\t\n\t\t\tif (dangerCounter == 2) {\n\t\t\t\t\n\t\t\t\tresult = result + 4;\n\t\t\t\t\n\t\t\t\t//alert(\"Danger of Lose bonus added.\");\n\t\t\t}\n\t\t\t\n\t\t\t//alert(\"Column value equals \" + result);\n\t\n\t\t\treturn result;\t\t\n\t\t};\n\n\t\tfunction diagonalScore() {\n\t\t\t\n\t\t\t//alert(\"In diagonalScore\");\n\t\t\t\n\t\t\tvar result = 0;\n\t\t\t\n\t\t\tvar dangerCounter = 0;\n\t\n\t\t\tswitch(squareNumberID) {\n\t\t\t\tcase 0:\n\t\t\t\tcase 8:\n\t\t\t\t\tif ((board[0].isEmpty() || board[0].getInnerText() == playerCharacter) &&\n\t\t\t\t\t\t(board[4].isEmpty() || board[4].getInnerText() == playerCharacter) &&\n\t\t\t\t\t\t(board[8].isEmpty() || board[8].getInnerText() == playerCharacter)) {\n\t\t\t\n\t\t\t\t\t\tresult++;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (var i = 0; i < 8; i = i + 4) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (board[i].getInnerText() == playerCharacter) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tresult++;\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\t\tfor (var i = 0; i < 8; i = i + 4) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (board[i].getInnerText() == getOppositePlayerCharacter(playerCharacter)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdangerCounter++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\tcase 6:\n\t\t\t\t\tif ((board[2].isEmpty() || board[2].getInnerText() == playerCharacter) &&\n\t\t\t\t\t\t(board[4].isEmpty() || board[4].getInnerText() == playerCharacter) &&\n\t\t\t\t\t\t(board[6].isEmpty() || board[6].getInnerText() == playerCharacter)) {\n\t\t\t\n\t\t\t\t\t\tresult++;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (var i = 2; i < 7; i = i + 2) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (board[i].getInnerText() == playerCharacter) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tresult++;\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\t\tfor (var i = 2; i < 7; i = i + 2) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (board[i].getInnerText() == getOppositePlayerCharacter(playerCharacter)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdangerCounter++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tif ((board[0].isEmpty() || board[0].getInnerText() == playerCharacter) &&\n\t\t\t\t\t\t(board[4].isEmpty() || board[4].getInnerText() == playerCharacter) &&\n\t\t\t\t\t\t(board[8].isEmpty() || board[8].getInnerText() == playerCharacter)) {\n\t\t\t\n\t\t\t\t\t\tresult++;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (var i = 0; i < 8; i = i + 4) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (board[i].getInnerText() == playerCharacter) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tresult++;\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\t\tfor (var i = 0; i < 8; i = i + 4) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (board[i].getInnerText() == getOppositePlayerCharacter(playerCharacter)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdangerCounter++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif ((board[2].isEmpty() || board[2].getInnerText() == playerCharacter) &&\n\t\t\t\t\t\t(board[4].isEmpty() || board[4].getInnerText() == playerCharacter) &&\n\t\t\t\t\t\t(board[6].isEmpty() || board[6].getInnerText() == playerCharacter)) {\n\t\t\t\n\t\t\t\t\t\tresult++;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (var i = 2; i < 7; i = i + 2) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (board[i].getInnerText() == playerCharacter) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tresult++;\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\t\tfor (var i = 2; i < 7; i = i + 2) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (board[i].getInnerText() == getOppositePlayerCharacter(playerCharacter)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdangerCounter++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (dangerCounter == 2) {\n\t\t\t\t\n\t\t\t\tresult = result + 4;\n\t\t\t\t\n\t\t\t\t//alert(\"Danger of Lose bonus added.\");\n\t\t\t}\n\t\t\t\n\t\t\t//alert(\"Diagonal value equals \" + result);\n\t\n\t\t\treturn result;\n\t\t};\n\t\t\n\t}", "evaluateScore(currentStatus) {\n var sumScore = 0;\n var lineScore = 0;\n // declare all lines need to be calculated (row, column and diagonal)\n // add all lineScore from each line \n const evaluateLines = [\n [0,1,2],\n [3,4,5],\n [6,7,8],\n [0,3,6],\n [1,4,7],\n [2,5,8],\n [0,4,8],\n [2,4,6] \n ];\n for(var i = 0; i < evaluateLines.length; i++){\n if(currentStatus[evaluateLines[i][0]] === currentStatus[evaluateLines[i][1]] && currentStatus[evaluateLines[i][1]] === currentStatus[evaluateLines[i][2]] && currentStatus[evaluateLines[i][2]] === 'X'){\n // 3 'X' in a line\n lineScore = -100;\n sumScore = sumScore + lineScore;\n }else if((currentStatus[evaluateLines[i][0]] === 'X' && currentStatus[evaluateLines[i][1]] === 'X' && currentStatus[evaluateLines[i][2]] === null)||(currentStatus[evaluateLines[i][0]] === 'X' && currentStatus[evaluateLines[i][2]] === 'X' && currentStatus[evaluateLines[i][1]] === null)||(currentStatus[evaluateLines[i][2]] === 'X' && currentStatus[evaluateLines[i][1]] === 'X' && currentStatus[evaluateLines[i][0]] === null)){\n // 2 'X' in a line, others empty \n lineScore = -10;\n sumScore = sumScore + lineScore;\n }else if((currentStatus[evaluateLines[i][0]] === 'X' && currentStatus[evaluateLines[i][1]] === null && currentStatus[evaluateLines[i][2]] === null)||(currentStatus[evaluateLines[i][0]] === null && currentStatus[evaluateLines[i][1]] === 'X' && currentStatus[evaluateLines[i][2]] === null)||(currentStatus[evaluateLines[i][0]] === null && currentStatus[evaluateLines[i][1]] === null && currentStatus[evaluateLines[i][2]] === 'X')){\n // 1 'X' in a line, others empty \n lineScore = -1;\n sumScore = sumScore + lineScore;\n }else{\n lineScore = 0;\n sumScore = sumScore + lineScore; \n }\n }\n return sumScore;\n }", "function calculateColRowVals()\n {\n rows = Math.round (Math.sqrt (frames));\n columns = Math.ceil (frames / rows);\n }", "function calcScores() {\n\t// Use a negative value for first score for safety's sake\n\tvar lowscore = -1;\n\tvar lowid = '';\n\tvar scores, sumscore;\n\tfor (var i = 0; i < boardsize; ++i) {\n\t\t// Observe the cards in the rows\n\t\tscores = getScoringArray();\n\t\t$('li.square[id^=square_'+i+']').each(function(){\n\t\t\tif (this.innerHTML != '') {\n\t\t\t\tscores[parseInt(this.innerHTML)]++;\n\t\t\t}\n\t\t});\n\t\t// Calculate the score\n\t\tsumscore = calcScore(scores);\n\t\t$('li#score_row_'+i).text(sumscore);\n\t\t// Check it for lowest value\n\t\tif (sumscore < lowscore || lowscore < 0) {\n\t\t\t// Store the score\n\t\t\tlowscore = sumscore;\n\t\t\t// Remember where we are\n\t\t\tlowid = 'row_'+i;\n\t\t} // if (sumscore < lowscore || lowscore < 0)\n\n\t\t// Observe the cards in the columns\n\t\tscores = getScoringArray();\n\t\t$('li.square[id$=_'+i+']').each(function(){\n\t\t\tif (this.innerHTML != '') {\n\t\t\t\tscores[parseInt(this.innerHTML)]++;\n\t\t\t}\n\t\t});\n\t\t// Calculate the score\n\t\tsumscore = calcScore(scores);\n\t\t$('li#score_col_'+i).text(sumscore);\n\t\t// Check it for lowest value\n\t\tif (sumscore < lowscore || lowscore < 0) {\n\t\t\t// Store the score\n\t\t\tlowscore = sumscore;\n\t\t\t// Remember where we are\n\t\t\tlowid = 'col_'+i;\n\t\t} // if (sumscore < lowscore || lowscore < 0)\n\n\t\t// Set the score, identify the low notch\n\t\t$('li#score_current').text(lowscore);\n\t\t$('li.score').removeClass('lowest');\n\t\t$('li#score_'+lowid).addClass('lowest');\n\t} // for (var i = 0; i < boardsize; ++i)\n} // function calcScores()", "function stretchScore(score) {\n return (10/3)*(score-70);\n }", "function maximumScore(tileHand) {\n\treturn tileHand.reduce((p,c) => p + c.score, 0);\n}", "function addScore() {\n for (let i = 0; i < 199; i += width) {\n const row = Array.from(new Array(width), (a,b) => b + i)\n if (row.every(index => squares[index].classList.contains('taken'))) {\n score += 10\n lines_count += 1\n scoreDisplay.innerHTML = score\n linesDisplay.innerHTML = lines_count\n row.forEach(index => {\n squares[index].classList.remove('taken', 'tetromino')\n squares[index].style.backgroundColor = ''\n })\n const squaresRemoved = squares.splice(i, width)\n squares = squaresRemoved.concat(squares)\n squares.forEach(cell => grid.appendChild(cell))\n }\n }\n }", "selectImage(imageArray) {\n const idealSize = 300;\n let bestImage;\n let bestScore;\n imageArray.forEach((image) => {\n if (image.height < 200 || image.width < 200) return;\n const score = Math.abs(image.height - idealSize) + Math.abs(image.width - idealSize);\n if (score < bestScore || bestScore === undefined) {\n bestScore = score;\n bestImage = image;\n }\n });\n return bestImage;\n }", "getRoughness() {\n let roughness = 0;\n let peaks = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1];\n let peaksRemaining = 10;\n for (let i=0; i<this.rows; i++) {\n for (let j=0; j<this.cols; j++) {\n if (peaksRemaining === 0) {\n break;\n }\n if (this.grid[i][j] !== undefined && peaks[j] < 0) {\n peaks[j] = this.rows-i;\n peaksRemaining -= 1;\n }\n }\n }\n for (let p=0; p<peaks.length-1; p++) {\n let currPeak = peaks[p+1] < 0 ? 0 : peaks[p+1];\n roughness += Math.abs(peaks[p] - currPeak);\n }\n return roughness;\n }", "function calculateScoreTries(board) {\n\t\tif (board == \"boardEasy\" && openedPairs < 10) {\n\t\t\tscore += 20;\n\t\t} else if (board == \"boardEasy\" && openedPairs < 15) {\n\t\t\tscore += 10;\t\t\n\t\t} else if (board == \"boardNormal\" && openedPairs < 15) {\n\t\t\tscore += 40;\t\t\n\t\t} else if (board == \"boardNormal\" && openedPairs < 20) {\n\t\t\tscore += 20;\t\t\n\t\t} else if (board == \"boardAdvanced\" && openedPairs < 20) {\n\t\t\tscore += 50;\t\t\n\t\t} else if (board == \"boardAdvanced\" && openedPairs < 25) {\n\t\t\tscore += 30;\t\t\n\t\t} else if (board == \"boardDifficult\" && openedPairs < 30) {\n\t\t\tscore += 60;\t\t\n\t\t} else if (board == \"boardDifficult\" && openedPairs < 40) {\n\t\t\tscore += 40;\t\t\n\t\t}\n\t}", "function determineRungY (score) {\n let rungY = 300 - ((score - 1) * 30);\n return rungY;\n}", "function fullRow(){\r\n for (let i=0; i<rows.length; i++){\r\n let temp = rows[i].filter(cube => cube.endPoint === false)\r\n if (temp.length === 0){\r\n score++;\r\n if (score % 5 === 0){\r\n speed = speed*(9/10)\r\n }\r\n\r\n for (let k=i; k>0; k--){\r\n if (k ===0){\r\n for (let j=0; j<rows[k].length; j++)\r\n rows[k][j].color = '#bbbbbb'\r\n rows[k][j].endPoint = false\r\n } else { \r\n for (let j=0; j<rows[k].length; j++){\r\n //solve prob\r\n if (rows[k][j].endPoint === true){\r\n rows[k][j].color = rows[k-1][j].color;\r\n rows[k][j].endPoint = rows[k-1][j].endPoint;\r\n \r\n }\r\n if (rows[k-1][j].endPoint === true){\r\n rows[k][j].color = rows[k-1][j].color;\r\n rows[k][j].endPoint = rows[k-1][j].endPoint;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n}", "function calculateColRowVals() {\r\n rows = Math.round(Math.sqrt(frames));\r\n columns = Math.ceil(frames / rows);\r\n }", "checkFullRow () {\n for (let row = 0; row < this.landed[0].length; row++) {\n let result = true\n for (let col = 0; col < this.landed.length; col++) {\n if (this.landed[col][row] === 0) result = false\n }\n if (result) {\n this.moveLandedDown(row)\n this.score += 100\n this.view.score.innerHTML = 'Score: ' + this.score\n }\n }\n }", "function divPivoRow(matriz, columnsCount , pivoRow, pivoValue){\n\tfor (var i = 0; i < columnsCount; i++) {\n\t\tmatriz[pivoRow][i] = matriz[pivoRow][i] / pivoValue;\n\t}\n\n\treturn matriz;\n}", "function getScore(records) {\n const DEFAULT_SCORE = 0;\n const MAGIC_PARAMETER = 10;\n if (!records.length) {\n return DEFAULT_SCORE;\n }\n const x = sd(records);\n return (1 - (x / (x + MAGIC_PARAMETER))) * 100;\n}", "function sol22(\n matrix = [\n [1, 0, 0, 1, 1, 1],\n [1, 0, 1, 1, 0, 1],\n [0, 1, 1, 1, 1, 1],\n [0, 0, 1, 1, 1, 1],\n ]\n) {\n let maxRectangle = 0;\n const dp = matrix[0].slice();\n // find max histogram\n maxRectangle = Math.max(maxRectangle, maxHistogram(dp));\n for (let i = 1; i < matrix.length; i++) {\n for (let j = 0; j < matrix[i].length; j++) {\n if (matrix[i][j] === 1) {\n // add to the column\n dp[j] += matrix[i][j];\n } else {\n // reset the column\n dp[j] = 0;\n }\n }\n // find max histogram\n maxRectangle = Math.max(maxRectangle, maxHistogram(dp));\n }\n\n return maxRectangle;\n\n function maxHistogram(arr) {\n const stack = [];\n let maxArea = 0;\n let area = 0;\n let i = 0;\n for (; i < arr.length; ) {\n if (!stack.length || arr[stack[stack.length - 1]] <= arr[i]) {\n stack.push(i);\n i++;\n } else {\n const top = stack.pop();\n if (!stack.length) {\n area = arr[top] * i;\n } else {\n area = arr[top] * (i - stack[stack.length - 1] - 1);\n }\n maxArea = Math.max(area, maxArea);\n }\n }\n while (stack.length) {\n const top = stack.pop();\n if (!stack.length) {\n area = arr[top] * i;\n } else {\n area = arr[top] * (i - stack[stack.length - 1] - 1);\n }\n maxArea = Math.max(maxArea, area);\n }\n return maxArea;\n }\n}", "function estimateHorizontal (grid, player, row, lig) {\n var oppo = opponent(player);\n if( (grid[row][lig] !== oppo)\n && (grid[row+1][lig] !== oppo)\n && (grid[row+2][lig] !== oppo)\n && (grid[row+3][lig] !== oppo)\n ) {\n\n return Math.pow(2, (grid[row][lig] + grid[row+1][lig] + grid[row+2][lig] + grid[row+3][lig] / player));\n\n } else {\n return 0;\n }\n}", "function findAvg(mat) {\n var sumMat = 0;\n for (var i = 0; i < mat.length; i++) {\n // var sumRow = 0;\n var row = mat[i];\n for (var j = 0; j < row.length; j++) {\n sumMat += row[j] \n }\n // sumMat += sumRow\n }\n var n = (mat.length)*(mat.length) ;\n console.log(sumMat/n)\n}", "function calcAvgMovieScore(userArr, i) {\r\n let movieScore = 0;\r\n for (let j = 0; j < userArr.length; j++) {\r\n movieScore += userArr[j].movieScore[i];\r\n }\r\n return movieScore / userArr.length;\r\n}", "function winnerHorizontal(grid, row, lig) {\n if ((grid[row][lig] === grid[row + 1][lig]) && (grid[row][lig] === grid[row + 2][lig]) && (grid[row][lig] === grid[row + 3][lig])) {\n return grid[row][lig];\n } else {\n return NOBODY;\n }\n}", "function getDominantLife(row, col)\n{\n var dominant = \"bad\";\n var goodCount = 0;\n var badCount = 0;\n\n // DEPENDING ON THE TYPE OF CELL IT IS WE'LL CHECK\n // DIFFERENT ADJACENT CELLS\n var cellType = determineCellTypeDev(row, col);\n var cellsToCheck = cellLookupDev[cellType];\n for (var counter = 0; counter < (cellsToCheck.numNeighbors * 2); counter+=2)\n {\n var neighborCol = col + cellsToCheck.cellValues[counter];\n var neighborRow = row + cellsToCheck.cellValues[counter+1];\n var index = (neighborRow * gridWidthDev) + neighborCol;\n var neighborValue = updateLifeGridDev[index];\n if (neighborValue === BAD_CELL_DEV) { // cell has a bad neighbor\n badCount += 1;\n }\n else if (neighborValue === GOOD_CELL_DEV) { // cell has a good neighbor\n goodCount += 1;\n }\n\n if(goodCount > badCount){\n dominant = \"good\";\n }\n }\n return dominant;\n}", "function scoresAverage(array) {\n if (array.length == 0) {\n return 0\n }\n \n let scoreSum = array.reduce( (sum, elem) => {\n\n if (elem.score) {\n return sum + Number(elem.score)\n }\n\n if (array.score == 0) {\n return average\n }\n }, 0)\n\n let average = Number ( (scoreSum/array.length).toFixed(2) )\n return average\n}", "function scoreSquare(s) {\n if (!s) {\n return 0;\n }\n // console.log(\"Square detected at \" + s.x + \", \" + s.y + \" with side \" + s.side);\n var score = 0,\n fillBox;\n for (let i = s.x; i <= s.x + s.side; i++) {\n for (let j = s.y; j <= s.y + s.side; j++) {\n fillBox = board.box(i, j);\n if (!squareCorner(s, fillBox)) {\n score = score + scoreBox(fillBox.color, s.color);\n // console.log(\"fill box at \" + i + \", \" + j + \" with color \" + fillBox.color + \" gets a score of \" + scoreBox(fillBox.color, s.color) + \". Score is now \" + score);\n }\n }\n }\n return score;\n}", "function getCurrentBoardRowScores() {\n var winningCombination = getCurrentBoardValues();\n return winningCombination.map(combination => combination.reduce(add, 0));\n}", "function combine(row) {\n\t\tfor (let i = 3; i >= 1; i--) {\n let a = row[i];\n let b = row[i - 1];\n if (a == b) {\n row[i] = a + b;\n score += row[i];\n row[i - 1] = 0;\n \n }\n }\n return row;\n}", "function findWinnerOfBoard(board) {\n var score = 0;\n for (var i = 0; i < 3; i++) {\n score = board[0][i];\n score += board[1][i];\n score += board[2][i];\n\n if (score == -3) {\n return -1;\n\n }\n if (score == 3) {\n return 1;\n\n }\n }\n\n score = 0;\n for (var i = 0; i < 3; i++) {\n score = board[i][0];\n score += board[i][1];\n score += board[i][2];\n\n if (score == -3) {\n return -1;\n }\n if (score == 3) {\n return 1;\n }\n }\n\n score = board[0][0] + board[1][1] + board[2][2];\n if (score == -3) {\n return -1;\n }\n if (score == 3) {\n return 1;\n }\n\n score = board[0][2] + board[1][1] + board[2][0];\n if (score == -3) {\n return -1;\n }\n if (score == 3) {\n return 1;\n }\n\n\n return 0;\n}", "function calculateScore() {\n\tscore = winCount * 100 + loseCount * -50 + (coveredTileCount * 2) + (100 - time) + (50 - moves) * 2 + (bonus * 15);\n}", "function scoreBoard(board) {\r\n // if maximizing player wins, return 1\r\n if (checkWin(board, 1)) {\r\n return 1;\r\n } else {\r\n // if minimizing player wins, return -1\r\n if (checkWin(board, -1)) {\r\n return -1;\r\n };\r\n };\r\n // no one has won the current board, so return 0\r\n return 0;\r\n}", "function scoresAverage(arr) {\n let total = arr.reduce ((sum, movie) => { \n return sum + movie.score\n },0)\n return Number((total/arr.length).toFixed(2));\n }", "function scoreSolution(solution) {\n\n}", "function calcRatio() {\n let wins = scores.player.wins;\n let losses = scores.player.losses;\n return losses === 0\n ? Number(wins).toFixed(3)\n : Number(wins / losses).toFixed(3);\n }", "function roundScoreValue(score) {\n var roundedScore = (Math.round(score * 2) / 2).toFixed(1);\n return roundedScore;\n}", "function hourglassSum(arr) {\n//starting from the top left corner\n //iterate over the matrix looking for hourglasses\n //hourglass will be:\n //starting point + 3 column-wise in first row\n //move down one row, and forward one column\n //move down two rows, count point + 2\n //sum all of those together, you ge an hourglass sum\n //store in an array\n//loop through storage array and return the largest value\n //set highest = 0\n //if storage[i] > highest\n //highest = storage[i]\n\n \n let sums = [];\n\n for (let row = 0; row < arr.length - 2; row++) {\n for (let col = 0; col < arr[0].length - 2; col++) {\n let top = arr[row][col] + arr[row][col + 1] + arr[row][col + 2];\n let bottom = arr[row + 2][col] + arr[row + 2][col + 1] + arr[row + 2][col + 2];\n let sum = top + bottom + arr[row + 1][col + 1];\n sums.push(sum);\n }\n }\n\n let highest = sums[0];\n for (let i = 0; i < sums.length; i++) {\n if (sums[i] >= highest) {\n highest = sums[i];\n }\n }\n return highest;\n\n}", "function winnerSlash(grid, row, lig) {\n if ((grid[row][lig] === grid[row + 1][lig + 1]) && (grid[row][lig] === grid[row + 2][lig + 2]) && (grid[row][lig] === grid[row + 3][lig + 3])) {\n return grid[row][lig];\n } else {\n return NOBODY;\n }\n}", "function scoresAverage(arr) {\n if(arr.length == 0){\n return 0\n }\n else{\n let total = arr.reduce((sum, elem, index)=>{\n if(!elem.score){\n return sum\n }\n else{\n return sum + elem.score\n }\n },0)\n return +((total / arr.length).toFixed(2))\n }\n}", "function averageScore(scores){\n var sum = scores.reduce(function(accum,current){\n return accum + current;\n },0);\n return Math.floor(sum/scores.length);\n}", "function dramaMoviesScore(someArray) {\n\n \n let dramaMovies = someArray.filter(eachMovie => {\n return eachMovie.genre.includes('Drama');\n });\n\n let sumDramaScores = dramaMovies.reduce((acc, eachScore) => {\n return acc + eachScore.score;\n },0) ;\n\n let avgDramaScore = sumDramaScores / dramaMovies.length;\n\n let roundedDramaScore = Math.round((avgDramaScore + Number.EPSILON) * 100) / 100;\n\n return roundedDramaScore;\n\n}", "function calculateScore(groupedHeroes, comics) {\n const correctOrder = HEROES.filter((hero) => hero.comics === comics).sort(\n (a, b) =>\n a.rank < b.rank ? -1 : 1\n\n )\n\n\n return groupedHeroes ? groupedHeroes.reduce((score, { name, rank }, index) => {\n const maxPoint = getMaxPoints()\n const heroIndex = correctOrder.findIndex((hero) => hero.rank === rank && hero.name === name)\n const penalty = heroIndex >= 0 ? Math.abs(index - heroIndex) : maxPoint\n return score + (maxPoint - penalty)\n }, 0) : null\n}", "function addScore(){\r\n for(let i=0;i<199;i+=width){\r\n const row = [i,i+1,i+2,i+3,i+4,i+5,i+6,i+7,i+8,i+9];\r\n if(row.every(index => squares[index].classList.contains('taken'))){\r\n score += 10;\r\n scoreDisplay.innerHTML = score;\r\n row.forEach(index => {\r\n squares[index].classList.remove('taken');\r\n squares[index].classList.remove('tetrimino');\r\n squares[index].style.backgroundColor = '';\r\n });\r\n const squaresRemoved = squares.splice(i,width);\r\n // console.log(squaresRemoved);\r\n squares = squaresRemoved.concat(squares);\r\n squares.forEach(cell => grid.appendChild(cell));\r\n }\r\n }\r\n }", "function createWeightedScore(array) {\n\n for (name in array) {\n var tempSheet = ss.getSheetByName(array[name]);\n var lastRow = tempSheet.getLastRow();\n var lastColumn = tempSheet.getLastColumn();\n var rankingScore = 0;\n var numberOfVotes = 0;\n var scaledRankingScore;\n\n for (var i = lastRow; i > 2; i -= 2) {\n var sumRange = tempSheet.getRange(i, 1, 1, lastColumn).getValues();\n\n for (var t = 0; t < sumRange[0].length; t++) {\n if (sumRange[0][t] == \"\") {\n continue;\n }\n else if (sumRange[0][t] == \"#ERROR!\") {\n continue;\n }\n else if (sumRange[0][t] == \"#N/A\") {\n continue;\n }\n else {\n var vote = tempSheet.getRange(i - 1 , t + 1).getValue(); //to get the vote we need the row above and then the account for the difference in counting\n numberOfVotes += 1;\n\n if (vote == \"1\" && sumRange[0][t] > 0) {\n rankingScore += parseFloat(sumRange[0][t]);\n //'positive vote, positive movement\n continue;\n }\n else if (vote == '1' && sumRange[0][t] < 0) {\n rankingScore += parseFloat(sumRange[0][t]);\n //positive vote, negative movement\n continue;\n }\n else if (vote == \"-1\" && sumRange[0][t] > 0) {\n rankingScore += (parseFloat(sumRange[0][t]) * -1);\n continue;\n //negative vote, positive movement\n }\n else if (vote == '-1' && sumRange[0][t] < 0) {\n rankingScore += (parseFloat(sumRange[0][t]) * -1);\n continue;\n //negative vote, negative movenment\n }\n else {\n continue;\n }\n }\n }\n }\n scaledRankingScore = powerFunction(numberOfVotes) * rankingScore; //scales the rank depenent on the number of votes\n tempSheet.getRange(1,1).setValue(scaledRankingScore);\n }\n}", "function estuSupePuntosHse(generacion){\n var sumaScore=0;\n for(var i=0;i<generacion.students.length;i++){\n var sumaHse=0;\n \n \n for(var j=0;j<generacion.students[i]['sprints'].length;j++){\n \n var hse=generacion.students[i]['sprints'][j]['score']['hse'];\n\n sumaHse+=hse;\n }\n\n if((sumaHse/j)>840){\n sumaScore++;\n }\n \n \n }\n return (sumaScore);\n}", "function calculateBonus() {\r\n\tvar bonus = Math.round(((NUM_ROWS * NUM_COLS) / numFired) * 100);\r\n\tscore += bonus;\r\n\treturn bonus;\r\n}", "function hourglassSum(arr) {\n let max = -100;\n for(let row=0;row<4;row++){\n for(let col=0;col<4;col++){\n let sum = arr[row][col]+arr[row][col+1]+arr[row][col+2]+arr[row+1][col+1]+arr[row+2][col]+arr[row+2][col+1]+arr[row+2][col+2];\n if(sum>max){\n max = sum;\n }\n }\n }\n return max;\n}", "function getRatio(imageHeight, verticalBlockResolution) {\r\n\r\n return Math.floor(imageHeight / verticalBlockResolution);\r\n\r\n}", "function detectVerticalSquash(img, iw, ih) {\n var canvas = document.createElement('canvas');\n canvas.width = 1;\n canvas.height = ih;\n var ctx = canvas.getContext('2d');\n ctx.drawImage(img, 0, 0);\n var data = ctx.getImageData(0, 0, 1, ih).data;\n // search image edge pixel position in case it is squashed vertically.\n var sy = 0;\n var ey = ih;\n var py = ih;\n while (py > sy) {\n var alpha = data[(py - 1) * 4 + 3];\n if (alpha === 0) {\n ey = py;\n } else {\n sy = py;\n }\n py = (ey + sy) >> 1;\n }\n var ratio = (py / ih);\n return (ratio === 0) ? 1 : ratio;\n }", "function dramaMoviesScore(arr) {\n const dramaMovies = arr.filter((movie) => {\n return movie.genre.includes('Drama');\n });\n if (!dramaMovies.length) {\n return 0;\n }\n const averageDramaScore = dramaMovies.reduce((acc, movie) => {\n return acc + movie.score;\n }, 0);\n return Number.parseFloat((averageDramaScore / dramaMovies.length).toFixed(2));\n}", "function improvesRatio(currentrow, nextnode, length) {\n var newrow;\n\n if (currentrow.length === 0) {\n return true;\n }\n\n newrow = currentrow.slice();\n newrow.push(nextnode);\n var currentratio = calculateRatio(currentrow, length);\n var newratio = calculateRatio(newrow, length); // the pseudocode in the Bruls paper has the direction of the comparison\n // wrong, this is the correct one.\n\n return currentratio >= newratio;\n } // calculateRatio - calculates the maximum width to height ratio of the", "function evalWinner(array){\n if( checkRow1(array)){return array[0]}\n else if(checkRow2(array)){return array[3]}\n else if(checkRow3(array)){return array[6]}\n else if(checkCol1(array)){return array[0]}\n else if(checkCol2(array)){return array[1]}\n else if(checkCol3(array)){return array[2]}\n else if(checkLeftBotRightTop(array)){return array[4]}\n else if(checkLefttTopRightBot(array)){return array[4]}\n}", "function estimateGrid (grid) {\n var computerScore = 0,\n playerScore = 0;\n\n for(var row = 0; row < NB_ROW; row++){\n for(var lig = 0; lig < NB_LIG; lig++){\n\n if(row < (NB_ROW-3)) {\n computerScore += estimateHorizontal(grid, COMPUTER, row,lig);\n playerScore += estimateHorizontal(grid, PLAYER, row, lig);\n }\n\n if(lig < (NB_LIG-3)) {\n computerScore += estimateVertical(grid, COMPUTER, row,lig);\n playerScore += estimateVertical(grid, PLAYER, row, lig);\n }\n\n if((row < (NB_ROW-3)) && (lig < (NB_LIG-3))) {\n computerScore += estimateSlash(grid, COMPUTER, row,lig);\n playerScore += estimateSlash(grid, PLAYER, row, lig);\n }\n\n if((row < (NB_ROW-3)) && (lig > 2)) {\n computerScore += estimateBackslash(grid, COMPUTER, row,lig);\n playerScore += estimateBackslash(grid, PLAYER, row, lig);\n }\n\n }\n }\n return (computerScore - playerScore)\n}", "function getHighestRecoScore(result) {\n\n var bestMatchScore = 0;\n var bestRecoItemNumber = -1;\n\n for (var i = 0; i < result.voiceClip.recos.length; i++) {\n var score = result.voiceClip.recos[i].matchScore\n if (score > bestMatchScore) {\n bestRecoItemNumber = i;\n bestMatchScore = score;\n }\n }\n\n return bestMatchScore;\n}", "evaluate() {\n let highest = 0.0;\n let index = 0;\n for (let i = 0; i < this.population.length; i++) {\n if (this.population[i].fitness > highest) {\n index = i;\n highest = this.population[i].fitness;\n }\n }\n\n this.best = this.population[index].getPhrase();\n if (highest === this.perfectScore) {\n this.finished = true;\n }\n }", "findAverage(mat){\n\n var size = [mat.length,mat[0].length];\n var sum = Array.apply(null, Array(size[1])).map(Number.prototype.valueOf,0);\n\n for(var i=0;i<size[0];i++) {\n for(var j=0;j<size[1];j++) {\n sum[j] += parseFloat(mat[i][j]);\n }\n }\n\n sum = sum.map(currentValue => currentValue/size[0]);\n sum = sum.map(currentValue => Math.round(currentValue*100)/100);\n return sum;\n }", "function hourGlassSum(arr) {\n let hourglasses = []\n\n for (let row = 0; row <= 3; row++) {\n for (let col = 0; col <= 3; col++) {\n let sum = 0;\n sum += arr[row][col];\n sum += arr[row][col + 1];\n sum += arr[row][col + 2];\n sum += arr[row + 1][col + 1];\n sum += arr[row + 2][col];\n sum += arr[row + 2][col + 1];\n sum += arr[row + 2][col + 2];\n hourglasses.push(sum)\n }\n }\n\n return Math.max(...hourglasses)\n}", "function detectVerticalSquash(img, iw, ih) {\n var canvas = document.createElement('canvas');\n canvas.width = 1;\n canvas.height = ih;\n var ctx = canvas.getContext('2d');\n ctx.drawImage(img, 0, 0);\n var data = ctx.getImageData(0, 0, 1, ih).data; // search image edge pixel position in case it is squashed vertically.\n\n var sy = 0;\n var ey = ih;\n var py = ih;\n\n while (py > sy) {\n var alpha = data[(py - 1) * 4 + 3];\n\n if (alpha === 0) {\n ey = py;\n } else {\n sy = py;\n }\n\n py = ey + sy >> 1;\n }\n\n var ratio = py / ih;\n return ratio === 0 ? 1 : ratio;\n }", "function row_6() {\n // Discounts (apply to overall score above)\n // Include phase 4 trials?\n var scores = [];\n if (rowFlaggedTrue(2)) {\n // Do you have a policy to register all new trials? (200 points)\n scores.push(200);\n }\n if (rowFlaggedTrue(3)) {\n // Do you audit compliance? Yes (20 points)? (1a)\n scores.push(20);\n }\n if (rowFlaggedTrue(4)) {\n // Do you share summary results (20 points)? (1b)\n scores.push(20);\n }\n if (rowFlaggedTrue(5)) {\n // Do you share line-by-line results (10 points)? (1c)\n scores.push(10);\n }\n if (scores.length > 0) {\n var total = scores.reduce(function (a, b) {\n return a + b;\n }, 0);\n if (!rowFlaggedTrue(6)) {\n total = total - 0.25 * total;\n }\n } else {\n total = 0;\n }\n return total\n}", "function EvaluateBoardScore()\n\t{\n\t\tTotalScore = 0;\n\t\tvar insufficientMaterial : boolean = true;\n\t\tvar remainingPieces : int = 0;\n\t\t\n\t\tblackPawnCount = new short[8];\n\t\twhitePawnCount = new short[8];\n\n\t\t// stop calculating in stale mode\t\t\t\t\n\t\tif (StaleMate)\n\t\t return;\n\t\tif (FiftyMoveCount >= 50)\n\t\t return;\n\t\tif (RepeatedMoveCount >= 3)\n\t\t return;\n\t\t \n\t\tif (BlackMate)\n\t\t{\n\t\t\t TotalScore = 32767;\n\t\t\t return;\n\t\t}\n\t\tif (WhiteMate)\n\t\t{\n\t\t\t TotalScore = -32767;\n\t\t\t return;\n\t\t}\n\t\tif (BlackCheck)\n\t\t{\n\t\t\t TotalScore += 75;\n\t\t\t if (EndGamePhase)\n\t\t\t \tTotalScore += 10;\n\t\t}\n\t\telse if (WhiteCheck)\n\t\t{\n\t\t\t TotalScore -= 75;\n\t\t\t if (EndGamePhase)\n\t\t\t \tTotalScore -= 10;\n\t\t}\n\n\t\t//Add a small bonus for tempo (turn)\n\t\tif (!BlackMove)\n\t\t{\n\t\t \tTotalScore += 10;\n\t\t}\n\t\telse\n\t\t{\n\t\t \tTotalScore -= 10;\n\t\t}\n\t\t\n\t\tvar blackBishopCount : int = 0;\n\t\tvar whiteBishopCount : int = 0;\n\t\tvar knightCount : int = 0;\n\t\tvar RemainingPieces : int = 0;\n\t\t\n\t\tvar x : int;\n\t\tfor (x = 0; x < 64; x++)\n\t\t{\n\t\t\t var p : PieceEV = pieces[x];\n\t\t\t if (p == null)\n\t\t\t \tcontinue;\n\n\t\t\t //Calculate Remaining Material for end game determination\n\t\t\t remainingPieces++;\n\n\t\t\t if (!p.Black)\n\t\t\t {\n\t\t\t \tTotalScore += EvaluatePieceScore(p, x);\n\t\t\t }\n\t\t\t else if (p.Black)\n\t\t\t {\n\t\t\t \tTotalScore -= EvaluatePieceScore(p, x);\n\t\t\t }\n\n\t\t\t // calculate the insufficient material\n\t\t\t if (p.type == PieceEV.PIECE_ELEPHANT)\n\t\t\t {\n\t\t\t \tif (p.Black)\n\t\t\t \t\tblackBishopCount++;\n\t\t\t \telse\n\t\t\t \t\twhiteBishopCount++;\n\t\t\t }\n\t\t\t if (p.type == PieceEV.PIECE_HORSE)\n\t\t\t {\n\t\t\t\tknightCount++;\n\n\t\t\t\tif (knightCount > 1)\n\t\t\t\t\tinsufficientMaterial = false;\n\t\t\t }\n\n\t\t\t if ((blackBishopCount + whiteBishopCount) > 1)\n\t\t\t {\n\t\t\t\tinsufficientMaterial = false;\n\t\t\t }\n\t\t}\n\t\t\n\t\tif (insufficientMaterial)\n\t\t{\n\t\t\tTotalScore = 0;\n\t\t\tStaleMate = true;\n\t\t\tInsufficientMaterial = true;\n\t\t\treturn;\n\t\t}\n\t\tif (remainingPieces < 10)\n\t\t{\n\t\t\tEndGamePhase = true;\n\n\t\t\tif (BlackCheck)\n\t\t\t\tTotalScore += 10;\n\t\t\telse if (WhiteCheck)\n\t\t\t\tTotalScore -= 10;\n\t\t}\n\t\t\n\t\t//Black Isolated Pawns\n\t\tif (blackPawnCount[0] >= 1 && blackPawnCount[1] == 0)\n\t\t{\n\t\t\tTotalScore += 12;\n\t\t}\n\t\tif (blackPawnCount[1] >= 1 && blackPawnCount[0] == 0 &&\n\t\t blackPawnCount[2] == 0)\n\t\t{\n\t\t\tTotalScore += 14;\n\t\t}\n\t\tif (blackPawnCount[2] >= 1 && blackPawnCount[1] == 0 &&\n\t\t blackPawnCount[3] == 0)\n\t\t{\n\t\t\tTotalScore += 16;\n\t\t}\n\t\tif (blackPawnCount[3] >= 1 && blackPawnCount[2] == 0 &&\n\t\t blackPawnCount[4] == 0)\n\t\t{\n\t\t\tTotalScore += 20;\n\t\t}\n\t\tif (blackPawnCount[4] >= 1 && blackPawnCount[3] == 0 &&\n\t\t blackPawnCount[5] == 0)\n\t\t{\n\t\t\tTotalScore += 20;\n\t\t}\n\t\tif (blackPawnCount[5] >= 1 && blackPawnCount[4] == 0 &&\n\t\t blackPawnCount[6] == 0)\n\t\t{\n\t\t\tTotalScore += 16;\n\t\t}\n\t\tif (blackPawnCount[6] >= 1 && blackPawnCount[5] == 0 &&\n\t\t blackPawnCount[7] == 0)\n\t\t{\n\t\t\tTotalScore += 14;\n\t\t}\n\t\tif (blackPawnCount[7] >= 1 && blackPawnCount[6] == 0)\n\t\t{\n\t\t\tTotalScore += 12;\n\t\t}\n\t\t//White Isolated Pawns\n\t\tif (whitePawnCount[0] >= 1 && whitePawnCount[1] == 0)\n\t\t{\n\t\t\tTotalScore -= 12;\n\t\t}\n\t\tif (whitePawnCount[1] >= 1 && whitePawnCount[0] == 0 &&\n\t\t whitePawnCount[2] == 0)\n\t\t{\n\t\t\tTotalScore -= 14;\n\t\t}\n\t\tif (whitePawnCount[2] >= 1 && whitePawnCount[1] == 0 &&\n\t\t whitePawnCount[3] == 0)\n\t\t{\n\t\t\tTotalScore -= 16;\n\t\t}\n\t\tif (whitePawnCount[3] >= 1 && whitePawnCount[2] == 0 &&\n\t\t whitePawnCount[4] == 0)\n\t\t{\n\t\t\tTotalScore -= 20;\n\t\t}\n\t\tif (whitePawnCount[4] >= 1 && whitePawnCount[3] == 0 &&\n\t\t whitePawnCount[5] == 0)\n\t\t{\n\t\t\tTotalScore -= 20;\n\t\t}\n\t\tif (whitePawnCount[5] >= 1 && whitePawnCount[4] == 0 &&\n\t\t whitePawnCount[6] == 0)\n\t\t{\n\t\t\tTotalScore -= 16;\n\t\t}\n\t\tif (whitePawnCount[6] >= 1 && whitePawnCount[5] == 0 &&\n\t\t whitePawnCount[7] == 0)\n\t\t{\n\t\t\tTotalScore -= 14;\n\t\t}\n\t\tif (whitePawnCount[7] >= 1 && whitePawnCount[6] == 0)\n\t\t{\n\t\t\tTotalScore -= 12;\n\t\t}\n\t\t\n\t\t//Black Passed Pawns\n\t\tif (blackPawnCount[0] >= 1 && whitePawnCount[0] == 0)\n\t\t{\n\t\t\tTotalScore -= blackPawnCount[0];\n\t\t}\n\t\tif (blackPawnCount[1] >= 1 && whitePawnCount[1] == 0)\n\t\t{\n\t\t\tTotalScore -= blackPawnCount[1];\n\t\t}\n\t\tif (blackPawnCount[2] >= 1 && whitePawnCount[2] == 0)\n\t\t{\n\t\t\tTotalScore -= blackPawnCount[2];\n\t\t}\n\t\tif (blackPawnCount[3] >= 1 && whitePawnCount[3] == 0)\n\t\t{\n\t\t\tTotalScore -= blackPawnCount[3];\n\t\t}\n\t\tif (blackPawnCount[4] >= 1 && whitePawnCount[4] == 0)\n\t\t{\n\t\t\tTotalScore -= blackPawnCount[4];\n\t\t}\n\t\tif (blackPawnCount[5] >= 1 && whitePawnCount[5] == 0)\n\t\t{\n\t\t\tTotalScore -= blackPawnCount[5];\n\t\t}\n\t\tif (blackPawnCount[6] >= 1 && whitePawnCount[6] == 0)\n\t\t{\n\t\t\tTotalScore -= blackPawnCount[6];\n\t\t}\n\t\tif (blackPawnCount[7] >= 1 && whitePawnCount[7] == 0)\n\t\t{\n\t\t\tTotalScore -= blackPawnCount[7];\n\t\t}\n\t\t\n\t\t//White Passed Pawns\n\t\tif (whitePawnCount[0] >= 1 && blackPawnCount[1] == 0)\n\t\t{\n\t\t\tTotalScore += whitePawnCount[0];\n\t\t}\n\t\tif (whitePawnCount[1] >= 1 && blackPawnCount[1] == 0)\n\t\t{\n\t\t\tTotalScore += whitePawnCount[1];\n\t\t}\n\t\tif (whitePawnCount[2] >= 1 && blackPawnCount[2] == 0)\n\t\t{\n\t\t\tTotalScore += whitePawnCount[2];\n\t\t}\n\t\tif (whitePawnCount[3] >= 1 && blackPawnCount[3] == 0)\n\t\t{\n\t\t\tTotalScore += whitePawnCount[3];\n\t\t}\n\t\tif (whitePawnCount[4] >= 1 && blackPawnCount[4] == 0)\n\t\t{\n\t\t\tTotalScore += whitePawnCount[4];\n\t\t}\n\t\tif (whitePawnCount[5] >= 1 && blackPawnCount[5] == 0)\n\t\t{\n\t\t\tTotalScore += whitePawnCount[5];\n\t\t}\n\t\tif (whitePawnCount[6] >= 1 && blackPawnCount[6] == 0)\n\t\t{\n\t\t\tTotalScore += whitePawnCount[6];\n\t\t}\n\t\tif (whitePawnCount[7] >= 1 && blackPawnCount[7] == 0)\n\t\t{\n\t\t\tTotalScore += whitePawnCount[7];\n\t\t}\n\t}", "function detectVerticalSquash(img, iw, ih) {\n var canvas = document.createElement('canvas');\n canvas.width = 1;\n canvas.height = ih;\n var ctx = canvas.getContext('2d');\n ctx.drawImage(img, 0, 0);\n var data = ctx.getImageData(0, 0, 1, ih).data;\n // search image edge pixel position in case it is squashed vertically.\n var sy = 0;\n var ey = ih;\n var py = ih;\n while (py > sy) {\n var alpha = data[(py - 1) * 4 + 3];\n if (alpha === 0) {\n ey = py;\n } else {\n sy = py;\n }\n py = (ey + sy) >> 1;\n }\n var ratio = (py / ih);\n return (ratio===0)?1:ratio;\n }", "function detectVerticalSquash (img, iw, ih) {\n const canvas = document.createElement('canvas')\n\n canvas.width = 1\n canvas.height = ih\n\n const ctx = canvas.getContext('2d')\n\n ctx.drawImage(img, 0, 0)\n\n const data = ctx.getImageData(0, 0, 1, ih).data\n // search image edge pixel position in case it is squashed vertically.\n let sy = 0\n let ey = ih\n let py = ih\n\n while (py > sy) {\n const alpha = data[(py - 1) * 4 + 3]\n if (alpha === 0) {\n ey = py\n } else {\n sy = py\n }\n py = (ey + sy) >> 1\n }\n\n const ratio = (py / ih)\n\n return (ratio === 0) ? 1 : ratio\n}", "function score(data) {\r\n return data[0]*0.1 + data[2]*0.01 + data[3]*0.11 + data[1]*0.1 + data[4]*0.2 + data[5]*0.1 + data[6]*0.2 + data[7]*0.01 + data[8]*0.01;\r\n}", "function scoresAverage(someArray) {\n \n if (someArray.length === 0) {\n return 0;\n } \n \n const sumScores = someArray.reduce((acc, eachScore) => {\n if (!eachScore.score) {\n return acc\n }\n return acc + eachScore.score;\n },0)\n \n let avgScore = sumScores / someArray.length;\n \n let roundedScore = Math.round((avgScore + Number.EPSILON) * 100) / 100;\n\n\n //console.log(roundedScore);\n return roundedScore;\n\n}", "function getHumanReadableScore(score) {\r\n if (score > 0) { \r\n return Math.round(score/antiscale);\r\n }\r\n return 10000;\r\n}", "getWidth() {\n return this._rows\n .map((row) => row.getWidth())\n .reduce((x, y) => Math.max(x, y), 0);\n }", "function calcScore(correct, length) {\n return correct / length * 100; \n}" ]
[ "0.7066478", "0.7066478", "0.7066478", "0.7058576", "0.7046692", "0.7003589", "0.6942306", "0.6861829", "0.60861534", "0.60804725", "0.58110905", "0.5502837", "0.5441484", "0.5435079", "0.53749436", "0.53722227", "0.53577477", "0.5345831", "0.5305904", "0.5279443", "0.52718234", "0.52419597", "0.52196425", "0.51938164", "0.51907605", "0.5169269", "0.5161623", "0.5142998", "0.51303416", "0.5083405", "0.5071385", "0.5055142", "0.504287", "0.50421166", "0.5035743", "0.50341034", "0.5030924", "0.5019393", "0.5000574", "0.49884868", "0.498322", "0.49530026", "0.49514595", "0.49478462", "0.4944324", "0.49364603", "0.49289477", "0.49046382", "0.4898453", "0.48971552", "0.4893052", "0.48893476", "0.48869738", "0.4883995", "0.48831153", "0.487798", "0.48740727", "0.48738307", "0.486693", "0.4859273", "0.48487633", "0.48299715", "0.48075125", "0.48047984", "0.47895563", "0.4787901", "0.4781938", "0.4778817", "0.477661", "0.47711858", "0.47680232", "0.47643888", "0.4750907", "0.47455102", "0.4740442", "0.47380987", "0.47326326", "0.47323996", "0.47312438", "0.47275665", "0.47180727", "0.47112176", "0.4708987", "0.46998098", "0.46989956", "0.46959066", "0.46953404", "0.4694379", "0.46917647", "0.46892768", "0.46826974", "0.4680583", "0.46805248", "0.46797615", "0.4678834" ]
0.69869965
11
Positions the specified row of nodes. Modifies `rect`.
function position(row, rowFixedLength, rect, halfGapWidth, flush) { // When rowFixedLength === rect.width, // it is horizontal subdivision, // rowFixedLength is the width of the subdivision, // rowOtherLength is the height of the subdivision, // and nodes will be positioned from left to right. // wh[idx0WhenH] means: when horizontal, // wh[idx0WhenH] => wh[0] => 'width'. // xy[idx1WhenH] => xy[1] => 'y'. var idx0WhenH = rowFixedLength === rect.width ? 0 : 1; var idx1WhenH = 1 - idx0WhenH; var xy = ['x', 'y']; var wh = ['width', 'height']; var last = rect[xy[idx0WhenH]]; var rowOtherLength = rowFixedLength ? row.area / rowFixedLength : 0; if (flush || rowOtherLength > rect[wh[idx1WhenH]]) { rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow } for (var i = 0, rowLen = row.length; i < rowLen; i++) { var node = row[i]; var nodeLayout = {}; var step = rowOtherLength ? node.getLayout().area / rowOtherLength : 0; var wh1 = nodeLayout[wh[idx1WhenH]] = mathMax(rowOtherLength - 2 * halfGapWidth, 0); // We use Math.max/min to avoid negative width/height when considering gap width. var remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last; var modWH = i === rowLen - 1 || remain < step ? remain : step; var wh0 = nodeLayout[wh[idx0WhenH]] = mathMax(modWH - 2 * halfGapWidth, 0); nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin(halfGapWidth, wh1 / 2); nodeLayout[xy[idx0WhenH]] = last + mathMin(halfGapWidth, wh0 / 2); last += modWH; node.setLayout(nodeLayout, true); } rect[xy[idx1WhenH]] += rowOtherLength; rect[wh[idx1WhenH]] -= rowOtherLength; } // Return [containerWidth, containerHeight] as default.
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function position(row,rowFixedLength,rect,halfGapWidth,flush){ // When rowFixedLength === rect.width,\n // it is horizontal subdivision,\n // rowFixedLength is the width of the subdivision,\n // rowOtherLength is the height of the subdivision,\n // and nodes will be positioned from left to right.\n // wh[idx0WhenH] means: when horizontal,\n // wh[idx0WhenH] => wh[0] => 'width'.\n // xy[idx1WhenH] => xy[1] => 'y'.\n var idx0WhenH=rowFixedLength === rect.width?0:1;var idx1WhenH=1 - idx0WhenH;var xy=['x','y'];var wh=['width','height'];var last=rect[xy[idx0WhenH]];var rowOtherLength=rowFixedLength?row.area / rowFixedLength:0;if(flush || rowOtherLength > rect[wh[idx1WhenH]]){rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow\n }for(var i=0,rowLen=row.length;i < rowLen;i++) {var node=row[i];var nodeLayout={};var step=rowOtherLength?node.getLayout().area / rowOtherLength:0;var wh1=nodeLayout[wh[idx1WhenH]] = mathMax(rowOtherLength - 2 * halfGapWidth,0); // We use Math.max/min to avoid negative width/height when considering gap width.\n var remain=rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last;var modWH=i === rowLen - 1 || remain < step?remain:step;var wh0=nodeLayout[wh[idx0WhenH]] = mathMax(modWH - 2 * halfGapWidth,0);nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin(halfGapWidth,wh1 / 2);nodeLayout[xy[idx0WhenH]] = last + mathMin(halfGapWidth,wh0 / 2);last += modWH;node.setLayout(nodeLayout,true);}rect[xy[idx1WhenH]] += rowOtherLength;rect[wh[idx1WhenH]] -= rowOtherLength;} // Return [containerWidth, containerHeight] as defualt.", "function position(row, rowFixedLength, rect, halfGapWidth, flush) {\n\t // When rowFixedLength === rect.width,\n\t // it is horizontal subdivision,\n\t // rowFixedLength is the width of the subdivision,\n\t // rowOtherLength is the height of the subdivision,\n\t // and nodes will be positioned from left to right.\n\t // wh[idx0WhenH] means: when horizontal,\n\t // wh[idx0WhenH] => wh[0] => 'width'.\n\t // xy[idx1WhenH] => xy[1] => 'y'.\n\t var idx0WhenH = rowFixedLength === rect.width ? 0 : 1;\n\t var idx1WhenH = 1 - idx0WhenH;\n\t var xy = ['x', 'y'];\n\t var wh = ['width', 'height'];\n\t var last = rect[xy[idx0WhenH]];\n\t var rowOtherLength = rowFixedLength ? row.area / rowFixedLength : 0;\n\t\n\t if (flush || rowOtherLength > rect[wh[idx1WhenH]]) {\n\t rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow\n\t }\n\t\n\t for (var i = 0, rowLen = row.length; i < rowLen; i++) {\n\t var node = row[i];\n\t var nodeLayout = {};\n\t var step = rowOtherLength ? node.getLayout().area / rowOtherLength : 0;\n\t var wh1 = nodeLayout[wh[idx1WhenH]] = mathMax$7(rowOtherLength - 2 * halfGapWidth, 0); // We use Math.max/min to avoid negative width/height when considering gap width.\n\t\n\t var remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last;\n\t var modWH = i === rowLen - 1 || remain < step ? remain : step;\n\t var wh0 = nodeLayout[wh[idx0WhenH]] = mathMax$7(modWH - 2 * halfGapWidth, 0);\n\t nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin$7(halfGapWidth, wh1 / 2);\n\t nodeLayout[xy[idx0WhenH]] = last + mathMin$7(halfGapWidth, wh0 / 2);\n\t last += modWH;\n\t node.setLayout(nodeLayout, true);\n\t }\n\t\n\t rect[xy[idx1WhenH]] += rowOtherLength;\n\t rect[wh[idx1WhenH]] -= rowOtherLength;\n\t } // Return [containerWidth, containerHeight] as default.", "function position(row, rowFixedLength, rect, halfGapWidth, flush) {\n // When rowFixedLength === rect.width,\n // it is horizontal subdivision,\n // rowFixedLength is the width of the subdivision,\n // rowOtherLength is the height of the subdivision,\n // and nodes will be positioned from left to right.\n // wh[idx0WhenH] means: when horizontal,\n // wh[idx0WhenH] => wh[0] => 'width'.\n // xy[idx1WhenH] => xy[1] => 'y'.\n var idx0WhenH = rowFixedLength === rect.width ? 0 : 1;\n var idx1WhenH = 1 - idx0WhenH;\n var xy = ['x', 'y'];\n var wh = ['width', 'height'];\n var last = rect[xy[idx0WhenH]];\n var rowOtherLength = rowFixedLength ? row.area / rowFixedLength : 0;\n\n if (flush || rowOtherLength > rect[wh[idx1WhenH]]) {\n rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow\n }\n\n for (var i = 0, rowLen = row.length; i < rowLen; i++) {\n var node = row[i];\n var nodeLayout = {};\n var step = rowOtherLength ? node.getLayout().area / rowOtherLength : 0;\n var wh1 = nodeLayout[wh[idx1WhenH]] = mathMax(rowOtherLength - 2 * halfGapWidth, 0); // We use Math.max/min to avoid negative width/height when considering gap width.\n\n var remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last;\n var modWH = i === rowLen - 1 || remain < step ? remain : step;\n var wh0 = nodeLayout[wh[idx0WhenH]] = mathMax(modWH - 2 * halfGapWidth, 0);\n nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin(halfGapWidth, wh1 / 2);\n nodeLayout[xy[idx0WhenH]] = last + mathMin(halfGapWidth, wh0 / 2);\n last += modWH;\n node.setLayout(nodeLayout, true);\n }\n\n rect[xy[idx1WhenH]] += rowOtherLength;\n rect[wh[idx1WhenH]] -= rowOtherLength;\n} // Return [containerWidth, containerHeight] as defualt.", "function position(row, rowFixedLength, rect, halfGapWidth, flush) {\n // When rowFixedLength === rect.width,\n // it is horizontal subdivision,\n // rowFixedLength is the width of the subdivision,\n // rowOtherLength is the height of the subdivision,\n // and nodes will be positioned from left to right.\n // wh[idx0WhenH] means: when horizontal,\n // wh[idx0WhenH] => wh[0] => 'width'.\n // xy[idx1WhenH] => xy[1] => 'y'.\n var idx0WhenH = rowFixedLength === rect.width ? 0 : 1;\n var idx1WhenH = 1 - idx0WhenH;\n var xy = ['x', 'y'];\n var wh = ['width', 'height'];\n var last = rect[xy[idx0WhenH]];\n var rowOtherLength = rowFixedLength ? row.area / rowFixedLength : 0;\n\n if (flush || rowOtherLength > rect[wh[idx1WhenH]]) {\n rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow\n }\n\n for (var i = 0, rowLen = row.length; i < rowLen; i++) {\n var node = row[i];\n var nodeLayout = {};\n var step = rowOtherLength ? node.getLayout().area / rowOtherLength : 0;\n var wh1 = nodeLayout[wh[idx1WhenH]] = mathMax(rowOtherLength - 2 * halfGapWidth, 0); // We use Math.max/min to avoid negative width/height when considering gap width.\n\n var remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last;\n var modWH = i === rowLen - 1 || remain < step ? remain : step;\n var wh0 = nodeLayout[wh[idx0WhenH]] = mathMax(modWH - 2 * halfGapWidth, 0);\n nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin(halfGapWidth, wh1 / 2);\n nodeLayout[xy[idx0WhenH]] = last + mathMin(halfGapWidth, wh0 / 2);\n last += modWH;\n node.setLayout(nodeLayout, true);\n }\n\n rect[xy[idx1WhenH]] += rowOtherLength;\n rect[wh[idx1WhenH]] -= rowOtherLength;\n} // Return [containerWidth, containerHeight] as defualt.", "function position(row, rowFixedLength, rect, halfGapWidth, flush) {\n // When rowFixedLength === rect.width,\n // it is horizontal subdivision,\n // rowFixedLength is the width of the subdivision,\n // rowOtherLength is the height of the subdivision,\n // and nodes will be positioned from left to right.\n // wh[idx0WhenH] means: when horizontal,\n // wh[idx0WhenH] => wh[0] => 'width'.\n // xy[idx1WhenH] => xy[1] => 'y'.\n var idx0WhenH = rowFixedLength === rect.width ? 0 : 1;\n var idx1WhenH = 1 - idx0WhenH;\n var xy = ['x', 'y'];\n var wh = ['width', 'height'];\n var last = rect[xy[idx0WhenH]];\n var rowOtherLength = rowFixedLength ? row.area / rowFixedLength : 0;\n\n if (flush || rowOtherLength > rect[wh[idx1WhenH]]) {\n rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow\n }\n\n for (var i = 0, rowLen = row.length; i < rowLen; i++) {\n var node = row[i];\n var nodeLayout = {};\n var step = rowOtherLength ? node.getLayout().area / rowOtherLength : 0;\n var wh1 = nodeLayout[wh[idx1WhenH]] = mathMax(rowOtherLength - 2 * halfGapWidth, 0); // We use Math.max/min to avoid negative width/height when considering gap width.\n\n var remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last;\n var modWH = i === rowLen - 1 || remain < step ? remain : step;\n var wh0 = nodeLayout[wh[idx0WhenH]] = mathMax(modWH - 2 * halfGapWidth, 0);\n nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin(halfGapWidth, wh1 / 2);\n nodeLayout[xy[idx0WhenH]] = last + mathMin(halfGapWidth, wh0 / 2);\n last += modWH;\n node.setLayout(nodeLayout, true);\n }\n\n rect[xy[idx1WhenH]] += rowOtherLength;\n rect[wh[idx1WhenH]] -= rowOtherLength;\n} // Return [containerWidth, containerHeight] as defualt.", "function position(row, rowFixedLength, rect, halfGapWidth, flush) {\n // When rowFixedLength === rect.width,\n // it is horizontal subdivision,\n // rowFixedLength is the width of the subdivision,\n // rowOtherLength is the height of the subdivision,\n // and nodes will be positioned from left to right.\n // wh[idx0WhenH] means: when horizontal,\n // wh[idx0WhenH] => wh[0] => 'width'.\n // xy[idx1WhenH] => xy[1] => 'y'.\n var idx0WhenH = rowFixedLength === rect.width ? 0 : 1;\n var idx1WhenH = 1 - idx0WhenH;\n var xy = ['x', 'y'];\n var wh = ['width', 'height'];\n var last = rect[xy[idx0WhenH]];\n var rowOtherLength = rowFixedLength ? row.area / rowFixedLength : 0;\n\n if (flush || rowOtherLength > rect[wh[idx1WhenH]]) {\n rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow\n }\n\n for (var i = 0, rowLen = row.length; i < rowLen; i++) {\n var node = row[i];\n var nodeLayout = {};\n var step = rowOtherLength ? node.getLayout().area / rowOtherLength : 0;\n var wh1 = nodeLayout[wh[idx1WhenH]] = mathMax(rowOtherLength - 2 * halfGapWidth, 0); // We use Math.max/min to avoid negative width/height when considering gap width.\n\n var remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last;\n var modWH = i === rowLen - 1 || remain < step ? remain : step;\n var wh0 = nodeLayout[wh[idx0WhenH]] = mathMax(modWH - 2 * halfGapWidth, 0);\n nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin(halfGapWidth, wh1 / 2);\n nodeLayout[xy[idx0WhenH]] = last + mathMin(halfGapWidth, wh0 / 2);\n last += modWH;\n node.setLayout(nodeLayout, true);\n }\n\n rect[xy[idx1WhenH]] += rowOtherLength;\n rect[wh[idx1WhenH]] -= rowOtherLength;\n} // Return [containerWidth, containerHeight] as defualt.", "function position(row, rowFixedLength, rect, halfGapWidth, flush) {\n // When rowFixedLength === rect.width,\n // it is horizontal subdivision,\n // rowFixedLength is the width of the subdivision,\n // rowOtherLength is the height of the subdivision,\n // and nodes will be positioned from left to right.\n // wh[idx0WhenH] means: when horizontal,\n // wh[idx0WhenH] => wh[0] => 'width'.\n // xy[idx1WhenH] => xy[1] => 'y'.\n var idx0WhenH = rowFixedLength === rect.width ? 0 : 1;\n var idx1WhenH = 1 - idx0WhenH;\n var xy = ['x', 'y'];\n var wh = ['width', 'height'];\n var last = rect[xy[idx0WhenH]];\n var rowOtherLength = rowFixedLength ? row.area / rowFixedLength : 0;\n\n if (flush || rowOtherLength > rect[wh[idx1WhenH]]) {\n rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow\n }\n\n for (var i = 0, rowLen = row.length; i < rowLen; i++) {\n var node = row[i];\n var nodeLayout = {};\n var step = rowOtherLength ? node.getLayout().area / rowOtherLength : 0;\n var wh1 = nodeLayout[wh[idx1WhenH]] = mathMax(rowOtherLength - 2 * halfGapWidth, 0); // We use Math.max/min to avoid negative width/height when considering gap width.\n\n var remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last;\n var modWH = i === rowLen - 1 || remain < step ? remain : step;\n var wh0 = nodeLayout[wh[idx0WhenH]] = mathMax(modWH - 2 * halfGapWidth, 0);\n nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin(halfGapWidth, wh1 / 2);\n nodeLayout[xy[idx0WhenH]] = last + mathMin(halfGapWidth, wh0 / 2);\n last += modWH;\n node.setLayout(nodeLayout, true);\n }\n\n rect[xy[idx1WhenH]] += rowOtherLength;\n rect[wh[idx1WhenH]] -= rowOtherLength;\n} // Return [containerWidth, containerHeight] as defualt.", "function position(row, rowFixedLength, rect, halfGapWidth, flush) {\n // When rowFixedLength === rect.width,\n // it is horizontal subdivision,\n // rowFixedLength is the width of the subdivision,\n // rowOtherLength is the height of the subdivision,\n // and nodes will be positioned from left to right.\n\n // wh[idx0WhenH] means: when horizontal,\n // wh[idx0WhenH] => wh[0] => 'width'.\n // xy[idx1WhenH] => xy[1] => 'y'.\n var idx0WhenH = rowFixedLength === rect.width ? 0 : 1;\n var idx1WhenH = 1 - idx0WhenH;\n var xy = ['x', 'y'];\n var wh = ['width', 'height'];\n\n var last = rect[xy[idx0WhenH]];\n var rowOtherLength = rowFixedLength\n ? row.area / rowFixedLength : 0;\n\n if (flush || rowOtherLength > rect[wh[idx1WhenH]]) {\n rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow\n }\n for (var i = 0, rowLen = row.length; i < rowLen; i++) {\n var node = row[i];\n var nodeLayout = {};\n var step = rowOtherLength\n ? node.getLayout().area / rowOtherLength : 0;\n\n var wh1 = nodeLayout[wh[idx1WhenH]] = mathMax(rowOtherLength - 2 * halfGapWidth, 0);\n\n // We use Math.max/min to avoid negative width/height when considering gap width.\n var remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last;\n var modWH = (i === rowLen - 1 || remain < step) ? remain : step;\n var wh0 = nodeLayout[wh[idx0WhenH]] = mathMax(modWH - 2 * halfGapWidth, 0);\n\n nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin(halfGapWidth, wh1 / 2);\n nodeLayout[xy[idx0WhenH]] = last + mathMin(halfGapWidth, wh0 / 2);\n\n last += modWH;\n node.setLayout(nodeLayout, true);\n }\n\n rect[xy[idx1WhenH]] += rowOtherLength;\n rect[wh[idx1WhenH]] -= rowOtherLength;\n }", "function layoutRow(rect, nodes, dir) {\n var cost = sumCosts(nodes);\n var x = rect.x;\n var y = rect.y;\n for (var i = 0; i < nodes.length; i++) {\n if (dir === TreeMap.HORI) {\n var w = rect.w;\n var h = rect.h * nodes[i].getCost() / cost;\n _this.rects[nodes[i].id] = _this.mkRect(x, y, w, h);\n y += h;\n } else {\n var w = rect.w * nodes[i].getCost() / cost;\n var h = rect.h;\n _this.rects[nodes[i].id] = _this.mkRect(x, y, w, h);\n x += w;\n }\n }\n }", "function position(row, rowFixedLength, rect, halfGapWidth, flush) {\n\t // When rowFixedLength === rect.width,\n\t // it is horizontal subdivision,\n\t // rowFixedLength is the width of the subdivision,\n\t // rowOtherLength is the height of the subdivision,\n\t // and nodes will be positioned from left to right.\n\n\t // wh[idx0WhenH] means: when horizontal,\n\t // wh[idx0WhenH] => wh[0] => 'width'.\n\t // xy[idx1WhenH] => xy[1] => 'y'.\n\t var idx0WhenH = rowFixedLength === rect.width ? 0 : 1;\n\t var idx1WhenH = 1 - idx0WhenH;\n\t var xy = ['x', 'y'];\n\t var wh = ['width', 'height'];\n\n\t var last = rect[xy[idx0WhenH]];\n\t var rowOtherLength = rowFixedLength ? row.area / rowFixedLength : 0;\n\n\t if (flush || rowOtherLength > rect[wh[idx1WhenH]]) {\n\t rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow\n\t }\n\t for (var i = 0, rowLen = row.length; i < rowLen; i++) {\n\t var node = row[i];\n\t var nodeLayout = {};\n\t var step = rowOtherLength ? node.getLayout().area / rowOtherLength : 0;\n\n\t var wh1 = nodeLayout[wh[idx1WhenH]] = mathMax(rowOtherLength - 2 * halfGapWidth, 0);\n\n\t // We use Math.max/min to avoid negative width/height when considering gap width.\n\t var remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last;\n\t var modWH = i === rowLen - 1 || remain < step ? remain : step;\n\t var wh0 = nodeLayout[wh[idx0WhenH]] = mathMax(modWH - 2 * halfGapWidth, 0);\n\n\t nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin(halfGapWidth, wh1 / 2);\n\t nodeLayout[xy[idx0WhenH]] = last + mathMin(halfGapWidth, wh0 / 2);\n\n\t last += modWH;\n\t node.setLayout(nodeLayout, true);\n\t }\n\n\t rect[xy[idx1WhenH]] += rowOtherLength;\n\t rect[wh[idx1WhenH]] -= rowOtherLength;\n\t}", "function position(row, u, rect, flush) {\n var i = -1,\n n = row.length,\n x = rect.x,\n y = rect.y,\n v = u ? round(row.area / u) : 0,\n o;\n if (u == rect.dx) { // horizontal subdivision\n if (flush || v > rect.dy) v = rect.dy; // over+underflow\n while (++i < n) {\n o = row[i];\n o.x = x;\n o.y = y;\n o.dy = v;\n x += o.dx = Math.min(rect.x + rect.dx - x, v ? round(o.area / v) : 0);\n }\n o.z = true;\n o.dx += rect.x + rect.dx - x; // rounding error\n rect.y += v;\n rect.dy -= v;\n } else { // vertical subdivision\n if (flush || v > rect.dx) v = rect.dx; // over+underflow\n while (++i < n) {\n o = row[i];\n o.x = x;\n o.y = y;\n o.dx = v;\n y += o.dy = Math.min(rect.y + rect.dy - y, v ? round(o.area / v) : 0);\n }\n o.z = false;\n o.dy += rect.y + rect.dy - y; // rounding error\n rect.x += v;\n rect.dx -= v;\n }\n }", "function position(row, u, rect, flush) {\n var i = -1,\n n = row.length,\n x = rect.x,\n y = rect.y,\n v = u ? round(row.area / u) : 0,\n o;\n if (u == rect.dx) { // horizontal subdivision\n if (flush || v > rect.dy) v = rect.dy; // over+underflow\n while (++i < n) {\n o = row[i];\n o.x = x;\n o.y = y;\n o.dy = v;\n x += o.dx = Math.min(rect.x + rect.dx - x, v ? round(o.area / v) : 0);\n }\n o.z = true;\n o.dx += rect.x + rect.dx - x; // rounding error\n rect.y += v;\n rect.dy -= v;\n } else { // vertical subdivision\n if (flush || v > rect.dx) v = rect.dx; // over+underflow\n while (++i < n) {\n o = row[i];\n o.x = x;\n o.y = y;\n o.dx = v;\n y += o.dy = Math.min(rect.y + rect.dy - y, v ? round(o.area / v) : 0);\n }\n o.z = false;\n o.dy += rect.y + rect.dy - y; // rounding error\n rect.x += v;\n rect.dx -= v;\n }\n }", "function position(row, u, rect, flush) {\n var i = -1,\n n = row.length,\n x = rect.x,\n y = rect.y,\n v = u ? round(row.area / u) : 0,\n o;\n if (u == rect.dx) { // horizontal subdivision\n if (flush || v > rect.dy) v = rect.dy; // over+underflow\n while (++i < n) {\n o = row[i];\n o.x = x;\n o.y = y;\n o.dy = v;\n x += o.dx = Math.min(rect.x + rect.dx - x, v ? round(o.area / v) : 0);\n }\n o.z = true;\n o.dx += rect.x + rect.dx - x; // rounding error\n rect.y += v;\n rect.dy -= v;\n } else { // vertical subdivision\n if (flush || v > rect.dx) v = rect.dx; // over+underflow\n while (++i < n) {\n o = row[i];\n o.x = x;\n o.y = y;\n o.dx = v;\n y += o.dy = Math.min(rect.y + rect.dy - y, v ? round(o.area / v) : 0);\n }\n o.z = false;\n o.dy += rect.y + rect.dy - y; // rounding error\n rect.x += v;\n rect.dx -= v;\n }\n }", "function treemapLayout_position(row, rowFixedLength, rect, halfGapWidth, flush) {\n // When rowFixedLength === rect.width,\n // it is horizontal subdivision,\n // rowFixedLength is the width of the subdivision,\n // rowOtherLength is the height of the subdivision,\n // and nodes will be positioned from left to right.\n // wh[idx0WhenH] means: when horizontal,\n // wh[idx0WhenH] => wh[0] => 'width'.\n // xy[idx1WhenH] => xy[1] => 'y'.\n var idx0WhenH = rowFixedLength === rect.width ? 0 : 1;\n var idx1WhenH = 1 - idx0WhenH;\n var xy = ['x', 'y'];\n var wh = ['width', 'height'];\n var last = rect[xy[idx0WhenH]];\n var rowOtherLength = rowFixedLength ? row.area / rowFixedLength : 0;\n\n if (flush || rowOtherLength > rect[wh[idx1WhenH]]) {\n rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow\n }\n\n for (var i = 0, rowLen = row.length; i < rowLen; i++) {\n var node = row[i];\n var nodeLayout = {};\n var step = rowOtherLength ? node.getLayout().area / rowOtherLength : 0;\n var wh1 = nodeLayout[wh[idx1WhenH]] = treemapLayout_mathMax(rowOtherLength - 2 * halfGapWidth, 0); // We use Math.max/min to avoid negative width/height when considering gap width.\n\n var remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last;\n var modWH = i === rowLen - 1 || remain < step ? remain : step;\n var wh0 = nodeLayout[wh[idx0WhenH]] = treemapLayout_mathMax(modWH - 2 * halfGapWidth, 0);\n nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + treemapLayout_mathMin(halfGapWidth, wh1 / 2);\n nodeLayout[xy[idx0WhenH]] = last + treemapLayout_mathMin(halfGapWidth, wh0 / 2);\n last += modWH;\n node.setLayout(nodeLayout, true);\n }\n\n rect[xy[idx1WhenH]] += rowOtherLength;\n rect[wh[idx1WhenH]] -= rowOtherLength;\n} // Return [containerWidth, containerHeight] as default.", "function positionNode(node,col,row) {\n // Could cache this info - all nodes are the same size (I assert...)\n var bbox = node.getBBox();\n // Sizes used here relate to node sizes in render-service and the default grid size (40)\n var offsetx = 40;//bbox.width/2;\n var offsety = 40;//bbox.height/2;\n var hspace = 120+80;//bbox.width*1.5; \n var vspace = 40*2;//bbox.height*2; \n node.translate((offsetx+col*hspace)-bbox.x,(offsety+row*vspace)-bbox.y);\n var outgoingLinks = getOutgoingLinks(node,OUTPUT_PORT);\n var target, targetId;\n if (outgoingLinks.length !== 0) {\n targetId = outgoingLinks[0].get('target').id;\n target = graph.getCell(targetId);\n row = positionNode(target,col+1,row);\n }\n // As we 'unwind' visit tap streams\n var outgoingTapLinks = getOutgoingLinks(node,TAP_PORT);\n for (var i=0;i<outgoingTapLinks.length;i++) {\n row++;\n var link = outgoingTapLinks[i];\n targetId = link.get('target').id;\n target = graph.getCell(targetId);\n row = positionNode(target,col+1,row);\n }\n return row;\n }", "constructor(x, y, parentRow) {\n this.x = x || 0;\n this.y = y || 0;\n this.parentRow = parentRow;\n }", "updateChildLocationForRow(top, rowWidget) {\n let spacing = 0;\n if (rowWidget.ownerTable.tableFormat.cellSpacing > 0) {\n spacing = HelperMethods.convertPointToPixel(rowWidget.ownerTable.tableFormat.cellSpacing);\n }\n for (let i = 0; i < rowWidget.childWidgets.length; i++) {\n let cellWidget = rowWidget.childWidgets[i];\n cellWidget.x = cellWidget.x;\n cellWidget.y = top + cellWidget.margin.top + spacing;\n this.updateChildLocationForCell(cellWidget.y, cellWidget);\n }\n }", "function row(row) {\n d3.select(this).selectAll(\".cell\")\n .data(row.filter(d => d.z))\n .enter().append(\"rect\")\n .attr(\"class\", \"cell\")\n .attr(\"x\", d => x(d.x))\n .attr(\"width\", x.bandwidth()-1)\n .attr(\"height\", x.bandwidth()-1)\n .style(\"fill-opacity\", d => z(d.z))\n .style(\"fill\", \"orange\")\n .on(\"click\", click);\n }", "setStartingPosition() {\n this.x = CELL_WIDTH * 2;\n this.y = CELL_HEIGHT * COLS;\n }", "function setAndPlotRectangle(column, row, newState) {\n grid[column][row] = newState;\n plotRectangle(column, row);\n }", "function setPosition(arr, level, leftOffset) {\r\n console.log(\"In setPosition with level \" + level + \" and leftOffset \" + leftOffset + \". Also, leftEdge is \" + leftEdge);\r\n var blockWidth = 46;\r\n var rowHeight = 80;\r\n var left = leftEdge + leftOffset * blockWidth;\r\n var top = rowHeight * (level - 1);\r\n console.log(\"Position for array: \" + left + \", \" + top);\r\n // Set the top and left values so that all arrays are spaced properly\r\n arr.element.css({\"left\": left, \"top\": top});\r\n }", "function updateNodePositions() {\n // set node positions\n rect.attr('transform', function (d) {\n return 'translate(' + d.x + ',' + d.y + ')';\n });\n}", "function subdivide(rect, nodes, row, side, dir) {\n var n = nodes[0];\n\n if (row.length <= 0 ||\n worst(row, side) >= worst(row.concat([n]), side)) {\n var remaining = nodes.slice(1);\n if (remaining.length <= 0) {\n layoutRow(rect, row.concat([n]), dir);\n } else {\n subdivide(rect, remaining, row.concat([n]), side, dir);\n }\n } else {\n var fillCost = sumCosts(row);\n var nextCost = sumCosts(nodes);\n var cost = fillCost + nextCost;\n var fillRect = undefined;\n var nextRect = undefined;\n if (dir === TreeMap.HORI) {\n var w = rect.w * fillCost / cost;\n fillRect = _this.mkRect(rect.x, rect.y, w, rect.h);\n nextRect = _this.mkRect(\n rect.x + w, rect.y, rect.w - w, rect.h);\n } else {\n var h = rect.h * fillCost / cost;\n fillRect = _this.mkRect(rect.x, rect.y, rect.w, h);\n nextRect = _this.mkRect(\n rect.x, rect.y + h, rect.w, rect.h - h);\n }\n\n layoutRow(fillRect, row, dir);\n squarify(nextRect, nodes);\n }\n }", "function move2(rect){\n\t\tvar temp = rect.id;\n\t\tvar temp2 = temp.split(\"-\");\n\t\tvar row = parseInt(temp2[0]);\n\t\tvar col = parseInt(temp2[1]);\n\t\tvar dx = parseInt(emptyrow - row);\n\t\tvar dy = parseInt(emptycol - col);\n\t\tif(dx == 0){\n\t\t\tvar oldY = parseInt(window.getComputedStyle(rect).top);\n\t\t\trect.style.top = oldY + 100 * dy + \"px\";\n\t\t\temptycol = emptycol - dy;\n\t\t}else{\n\t\t\tvar oldX = parseInt(window.getComputedStyle(rect).left);\n\t\t\trect.style.left = oldX + 100 * dx + \"px\";\n\t\t\temptyrow = emptyrow - dx;\n\t\t}\n\t\tvar newrow = row + dx;\n\t\tvar newcol = col + dy;\n\t\trect.id = newrow + \"-\" + newcol;\n\t}", "function row(row) {\n var cell = d3.select(this).selectAll(\".cell\")\n .data(row.filter(function(d) { return d.z; }))\n .enter().append(\"rect\")\n .attr(\"class\", \"cell\")\n .attr(\"x\", function(d) { return x(d.x); })\n .attr(\"width\", x.rangeBand())\n .attr(\"height\", x.rangeBand())\n\n .style(\"fill-opacity\", function(d) { return z(d.z); })\n .style(\"fill\", function(d) { return graph.nodes[d.x].group == graph.nodes[d.y].group ? c(graph.nodes[d.x].group) : null; })\n .on(\"mouseover\", mouseover)\n .on(\"mouseout\", mouseout);\n\n cell.append(\"title\").text(function(d) { return \"\" + z_format(d.z); });\n }", "function changePosition(from, to, rowToUpdate) {\n\n var $tiles = $(\".tile\");\n var insert = from > to ? \"insertBefore\" : \"insertAfter\";\n\n // Change DOM positions\n $tiles.eq(from)[insert]($tiles.eq(to));\n\n layoutInvalidated(rowToUpdate);\n}", "function moveRow (rows, moves){\n row = $.grep(squares, function(e){ return e.x == rows; });\n $(row).each(function(i, square_container){ \n sq = this\n sq.moveUpDown(moves)\n });\n }", "function setCellPositon() {\n puzzleData.forEach((item, index) => {\n if (item.value) _move(item.el, index);\n })\n }", "scrollToRow(row) {\n this.renderer.scrollToRow(row);\n }", "function position(group, type, rect) {\n console.log('%c\\n'+' parent ' + type + ' rect is: ', 'background: #222; color: #EFEFEF; font-family: helvetica neue; font-size:20px; padding: 0 7px 3px 0;');\n console.log(rect);\n var i = -1,\n n = group.length,\n x = rect.x,\n y = rect.y,\n o;\n if (type === \"column\") { // vertical subdivision (children are rows)\n console.log('\\n'+'calculating child rows');\n while (++i < n) {\n o = group[n-(i+1)];\n o.x = x;\n o.y = y + (rect.dy/n) * i; \n o.dx = rect.dx;\n o.dy = rect.dy/n;\n console.log({x:o.x, y: o.y, width:o.dx, height: o.dy});\n }\n } else { // horizontal subdivision (children are columns)\n console.log('\\n'+'calculating child columns');\n while (++i < n) {\n o = group[n-(i+1)];\n o.x = x + (rect.dx/n) * i; \n o.y = y;\n o.dx = rect.dx/n;\n o.dy = rect.dy;\n console.log({x:o.x, y: o.y, width:o.dx, height: o.dy});\n }\n }\n }", "layoutRow(tableWidget, row) {\n let viewer = this.viewer;\n let rowWidgets = [row];\n let widget = this.addTableRowWidget(viewer.clientActiveArea, rowWidgets);\n viewer.updateClientAreaForRow(row, true);\n let topMargin = this.getMaxTopCellMargin(row);\n let bottomMargin = this.getMaxBottomCellMargin(row);\n for (let i = 0; i < row.childWidgets.length; i++) {\n let cell = row.childWidgets[i];\n // tslint:disable-next-line:max-line-length\n this.layoutCell(cell, topMargin + row.topBorderWidth, bottomMargin + row.bottomBorderWidth, widget);\n }\n viewer.updateClientAreaForRow(row, false);\n let rows = [row];\n this.updateWidgetsToTable(tableWidget, rows, row);\n return rows[rows.length - 1];\n }", "function WSetRow(num)\n{\n if (num < 0) \n this.currow = 0;\n else if (num >= this.rows)\n this.currow = this.rows - 1;\n else\n this.currow = num;\n}", "function drawRow(row, rowNum) {\n //The second call to map in drawRow builds up this output line by line by mapping over the lines in the \n \t//leftmost block and, for each of those, collecting a line that spans the full width of the table.\n \t\t//maps through row with each cell and colum number \n \t\tvar blocks = row.map(function(cell, colNum) {\n \t\t//draw(width, height) returns an array of length height, which contains a series of strings that are each width characters wide. This represents the content of the cell.\n \t\t\treturn cell.draw(widths[colNum], heights[rowNum]);\n \t\t});\n \t//blocks is an array. map over each block array element \n \treturn blocks[0].map(function(_, lineNo) {\n \treturn drawLine(blocks, lineNo);\n \t}).join(\"\\n\");\n }", "function placeNodes(newState, itemheight, width, x, y) {\n newState.css({\n 'height': itemheight,\n 'width' : width,\n 'left': x,\n 'top' : y\n });\n}", "horizontal_wall(start_col, end_col, top_row, bot_row, val) {\n this.set_horizontal_wall(start_col, end_col, top_row, bot_row, val);\n this.draw_horizontal_wall(start_col, end_col, top_row, bot_row, val);\n }", "function setRect(node, // @param Node:\r\n rect) { // @param Hash: { x, y, w, h }\r\n // Number: x, y, w, h\r\n var s = node.style;\r\n\r\n if (_ua.ie || _ua.opera) {\r\n if (\"x\" in rect) { s.pixelLeft = rect.x; }\r\n if (\"y\" in rect) { s.pixelTop = rect.y; }\r\n if (\"w\" in rect) { s.pixelWidth = rect.w > 0 ? rect.w : 0; }\r\n if (\"h\" in rect) { s.pixelHeight = rect.h > 0 ? rect.h : 0; }\r\n } else {\r\n if (\"x\" in rect) { s.left = rect.x + \"px\"; }\r\n if (\"y\" in rect) { s.top = rect.y + \"px\"; }\r\n if (\"w\" in rect) { s.width = (rect.w > 0 ? rect.w : 0) + \"px\"; }\r\n if (\"h\" in rect) { s.height = (rect.h > 0 ? rect.h : 0) + \"px\"; }\r\n }\r\n}", "function addRect(x, y, w, h, fill,sector,place, line,cell,pricenum) {\n var rect = new Box;\n rect.x = x;\n rect.y = y;\n rect.w = w\n rect.h = h;\n rect.fill = fill;\n rect.sector = sector;\n rect.pricenum = pricenum;\n rect.state = '1';\n rect.line= line;\n rect.cell= cell;\n rect.place=place;\n\n primer[line][cell]=rect; \n invalidate();\n}", "function place(row, col) {\n cols.add(col);\n diag1.add(row - col);\n diag2.add(row + col);\n placements.add(row * n + col);\n }", "insertRowSpannedWidget(rowWidget, viewer, left, index) {\n let cellSpacing = 0;\n if (rowWidget.ownerTable.tableFormat.cellSpacing > 0) {\n cellSpacing = HelperMethods.convertPointToPixel(rowWidget.ownerTable.tableFormat.cellSpacing);\n }\n for (let i = 0; i < viewer.splittedCellWidgets.length; i++) {\n let splittedCell = viewer.splittedCellWidgets[i];\n if (Math.round(left) === Math.round(splittedCell.x - splittedCell.margin.left)) {\n rowWidget.childWidgets.splice(index, 0, splittedCell);\n splittedCell.containerWidget = rowWidget;\n //If the splitted cell location differs from expected location update the location of row child widgets.\n if (splittedCell.y !== rowWidget.y + splittedCell.margin.top + cellSpacing) {\n this.updateChildLocationForRow(rowWidget.y, rowWidget);\n }\n viewer.splittedCellWidgets = [];\n return true;\n }\n }\n return false;\n }", "setNodePosition(Pos, node) {\n let currrentNode = this.nodes.find(n => n === node);\n currrentNode.x = Pos.x;\n currrentNode.y = Pos.y;\n }", "shiftChildLocationForTableRowWidget(rowWidget, shiftTop) {\n rowWidget.y = rowWidget.y + shiftTop;\n for (let i = 0; i < rowWidget.childWidgets.length; i++) {\n this.shiftChildLocationForTableCellWidget(rowWidget.childWidgets[i], shiftTop);\n }\n }", "function getRow(position) {\n return Math.floor((position - 1) / 3);\n}", "_positionCell() {\n if (this.props.inline) {\n return;\n }\n\n let position;\n if (!this.state.absolute) {\n position = this._getDialogPosition(this._dialog, this._table);\n }\n\n this.setState({ absolute: true, ...position });\n }", "insertCell(x, y) {\n this.root.insert(x, y);\n }", "setLocation(row, column){\n this.row = row;\n this.column = column;\n }", "cellCenterY(row) {\n return this.cellHeight * 1/2 + this.cellHeight * row\n }", "moveTo(row, col, piece) {\r\n this.fillAt(piece.row, piece.col, null);\r\n this.fillAt(row, col, piece);\r\n }", "function insertCells(state, dispatch, tableStart, rect, cells) {\n var table = tableStart ? state.doc.nodeAt(tableStart - 1) : state.doc, map = TableMap.get(table);\n var top = rect.top;\n var left = rect.left;\n var right = left + cells.width, bottom = top + cells.height;\n var tr = state.tr, mapFrom = 0;\n function recomp() {\n table = tableStart ? tr.doc.nodeAt(tableStart - 1) : tr.doc;\n map = TableMap.get(table);\n mapFrom = tr.mapping.maps.length;\n }\n // Prepare the table to be large enough and not have any cells\n // crossing the boundaries of the rectangle that we want to\n // insert into. If anything about it changes, recompute the table\n // map so that subsequent operations can see the current shape.\n if (growTable(tr, map, table, tableStart, right, bottom, mapFrom)) { recomp(); }\n if (isolateHorizontal(tr, map, table, tableStart, left, right, top, mapFrom)) { recomp(); }\n if (isolateHorizontal(tr, map, table, tableStart, left, right, bottom, mapFrom)) { recomp(); }\n if (isolateVertical(tr, map, table, tableStart, top, bottom, left, mapFrom)) { recomp(); }\n if (isolateVertical(tr, map, table, tableStart, top, bottom, right, mapFrom)) { recomp(); }\n\n for (var row = top; row < bottom; row++) {\n var from = map.positionAt(row, left, table), to = map.positionAt(row, right, table);\n tr.replace(tr.mapping.slice(mapFrom).map(from + tableStart), tr.mapping.slice(mapFrom).map(to + tableStart),\n new prosemirrorModel.Slice(cells.rows[row - top], 0, 0));\n }\n recomp();\n tr.setSelection(new CellSelection(tr.doc.resolve(tableStart + map.positionAt(top, left, table)),\n tr.doc.resolve(tableStart + map.positionAt(bottom - 1, right - 1, table))));\n dispatch(tr);\n}", "function move_tile(tile)\n{\n var x = tile.ix * tile_width+2.5;\n var y = tile.iy * tile_height+2.5;\n tile.elem.css(\"left\",x);\n tile.elem.css(\"top\",y);\n}", "function printRow(wt, con, rowItem, level, insertAtTop, topLevelTreeRow, selectedId)\n {\n var node = document.createElement('div');\n node.classList.add(\"nodestyle\");\n node.setAttribute(\"rowid\", wt.rowCount + wt.idPrefix);\n node.id = wt.rowCount++ + wt.idPrefix;\n \n node.onclick = onSelect;\n \n if (wt.dragDest) {\n \taddEvent(node, 'dragover', wt.overFunc);\n\t\t\t \taddEvent(node, 'dragenter', wt.enterFunc); // to get IE to work\n\t\t\t \taddEvent(node, 'dragleave', wt.leaveFunc);\n\t\t\t \taddEvent(node, 'drop', wt.dropFunc);\n }\n \n //for each column\n var rowLen = rowItem.r.length;\n for (var c = 0; c < rowLen; c++)\n {\n var d2 = document.createElement(\"div\");\n d2.classList.add(\"nodestylecol\");\n\n if (c != 0 && wt.columnOffsets[c] == 0)\n d2.style.display = \"none\";\n else\n d2.style.left = wt.columnOffsets[c] + \"px\";\n \n if (level == 0)\n d2.style.paddingLeft = 1 + (!rowItem.h && topLevelTreeRow ? 15 : 3) + \"px\";\n else \n d2.style.paddingLeft = (level * wt.indentWidth) + (rowItem.h ? 3 : 15) + \"px\";\n \n if (c == 0 && rowItem.h) //only for column 1\n {\n var img = document.createElement('img');\n if (!rowItem.o)\n \timg.src = wt.closedNodeImg;\n else\n \timg.src = wt.openNodeImg;\n img.style.display = \"inline\";\n img.style.paddingRight = \"4px\";\n img.style.cursor = \"pointer\";\n img.id = node.id + \"Img\";\n img.onclick = openCloseCon;\n d2.appendChild(img);\n }\n\n var text = document.createTextNode(rowItem.r[c]);\n d2.appendChild(text);\n node.appendChild(d2);\n } \n \n if (rowItem.i == selectedId)\n {\n \twt.selectedRowId = node.id;\n }\n \n var before = con.firstChild;\n if (insertAtTop && before)\n con.insertBefore(node, before);\n else\n con.appendChild(node); \n }", "remove(row) {\n\n this.blocks = this.blocks.filter(function (el) {\n return el.y !== row;\n });\n for (let i = 0; i < this.blocks.length; i++){\n if (this.blocks[i].y < row){\n this.blocks[i].y++;\n }\n }\n\n }", "position(obj, coord) {\n let x = coord[0];\n let y = coord[1];\n this.grid[x][y] = obj;\n }", "function placeInTable(row, col) {\n // HTML update\n let piece = document.createElement(\"div\");\n piece.classList.add(\"piece\");\n \n piece.classList.add( currPlayer === 1 ? \"player1\" : \"player2\");\n\n let cell = document.getElementById(`${row}-${col}`);\n cell.append(piece); \n\n //logic update\n [recentMove[0], recentMove[1]] = [row, col];\n}", "function setPositions(nodes) {\n // determine positions\n for (i in nodes) {\n if (nodes[i].category === \"Math\") {\n nodes[i].x = mathX\n nodes[i].y = firstY + i * smallVerticalGap\n } else if (nodes[i].category === \"Lower\") {\n nodes[i].x = mathX*2\n nodes[i].y = firstY + (i-numMath) * bigVerticalGap\n } else if (nodes[i].category === \"100\") {\n nodes[i].x = mathX*3\n nodes[i].y = firstY + (i-(numMath+numLower)) * 70\n } else if (nodes[i].category === \"101\") {\n nodes[i].x = mathX*4\n nodes[i].y = firstY + (i-(numMath+numLower+num100)) * bigVerticalGap\n } else if (nodes[i].category === \"102\") {\n nodes[i].x = mathX*5\n nodes[i].y = firstY + (i-(numMath+numLower+num100+num101)) * bigVerticalGap\n } else if (nodes[i].category === \"Elective\") {\n nodes[i].x = horizontalX + (i-(numMath+numRequired)) * horizontalGap\n nodes[i].y = horizontalY\n } else if (nodes[i].category === \"Consulting\") {\n nodes[i].x = horizontalX + (i-(numMath+numRequired+numElective)) * horizontalGap\n nodes[i].y = horizontalY + 100\n }\n }\n }", "setBoardPosition() {\n\n this.forEach((arr, rowIndex) => {\n arr.forEach((block, colIndex) => {\n\n if (block === 0) return;\n\n let absPos = this._getAbsolutePosition(rowIndex, colIndex);\n\n this.board[absPos.row][absPos.col] = this.pieceType;\n });\n });\n }", "function moveRow3R(grid) {\n for (let i = 14; i < 21; i++) {\n if ((grid[i].position) > 13) {\n grid[i].position += 1;\n } if (grid[i].position > 20) {\n grid[i].position = 14;\n }\n }\n console.log('at end 1R', grid);\n grid.sort(function (a, b) {\n return a.position - b.position;\n });\n setGrid([...grid]);\n }", "function positionRectangle(rect, x, y) {\n if (x >= 0 && x + rect.width <= canvas.width) {\n rect.left = x;\n rect.right = rect.left + rect.width;\n } else if (x < 0) {\n rect.left = 0;\n rect.right= rect.width;\n } else if (x + rect.width > canvas.width) {\n rect.left = canvas.width - rect.width;\n rect.right = canvas.width;\n }\n if (y >= 0 && y + rect.height <= canvas.height) {\n rect.top = y;\n rect.bottom = rect.top + rect.height;\n } else if (y < 0) {\n rect.top = 0;\n rect.bottom = rect.height;\n } else if (y + rect.height > canvas.height) {\n rect.top = canvas.height - rect.height;\n rect.bottom = canvas.height; \n }\n}", "update(dt) {\n this.x += 100 * this.multiplier * dt;\n if (this.x > CELL_WIDTH * (COLS)) {\n this.x = -CELL_WIDTH;\n this.y = this.randomizePositionY();\n }\n }", "onTranslateRow({\n row\n }) {\n // a changetotalheight event is fired after translations, if a rowHeight change is detected here it will redraw\n // all dependencies\n if (row.lastTop >= 0 && row.top !== row.lastTop) {\n this.scheduleDraw(true);\n }\n }", "function repositionBlocks() {\r\n\tvar sourceRow, destRow, sourceColl, destColl;\r\n\tfor(var i = maxRow - 2; i >= 1; i--) {\r\n\t\tsourceRow = document.getElementsByClassName('rows')[i];\r\n\t\tdestRow = document.getElementsByClassName('rows')[i + 1];\r\n\t\tfor(var j = minColl - 1; j < maxColl; j++) {\r\n\t\t\tsourceColl = sourceRow.children[j];\r\n\t\t\tif(sourceColl.children.length > 0) {\r\n\t\t\t\t// modify the matrix\r\n\t\t\t\tmatrix[i + 2][j + 1] = 1;\r\n\t\t\t\t// append the block from the upper element to the one positioned lower\r\n\t\t\t\tdestColl = destRow.children[j];\r\n\t\t\t\tdestColl.appendChild(sourceColl.children[0]);\r\n\t\t\t\t// modify the matrix\r\n\t\t\t\tmatrix[i + 1][j + 1] = 0;\r\n\t\t\t} else {\r\n\t\t\t\t// modify the matrix\r\n\t\t\t\tmatrix[i + 2][j + 1] = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}", "function moveRow() {\n movingRow.css('z-index', 1);\n lift();\n}", "render() {\n fill(100);\n noStroke();\n push();\n translate(this.x, this.y); // translate the coordinates to the grid cell\n this.drawlines();\n pop();\n }", "function Cell(x, y, x2, y2) {\n this.cur = [x, y];\n this.pre = [x2, y2];\n}", "function styleRows(selection, self) {\n selection\n .classed(style.row, true)\n .style('height', `${self.rowHeight}px`)\n .style(\n transformCSSProp,\n (d, i) => `translate3d(0,${d.key * self.rowHeight}px,0)`\n );\n }", "function node(x, y, parent_index, g, h, f)\n{\n\tthis.x = x;\n\tthis.y = y;\n\tthis.parent_index = parent_index;\n\tthis.g = g;\n\tthis.h = h;\n\tthis.f = f;\n\t\n\tthis.getCol = function() {\n\t\treturn this.x;\n\t}\n\tthis.getRow = function() {\n\t\treturn this.y;\n\t}\n}", "function draw_simple_rows(inp_row_data) {\n // remove zero values to make visualization faster\n let row_data = filter(inp_row_data, function(num) {\n return num.value !== 0;\n });\n\n // generate tiles in the current row\n let tile = d3\n .select(this)\n .selectAll('rect')\n .data(row_data)\n .enter()\n .append('rect')\n .attr('class', 'tile row_tile')\n\n .attr('width', params.matrix.x_scale.bandwidth())\n .attr('height', params.matrix.y_scale.bandwidth())\n // switch the color based on up/dn value\n .style('fill', function(d) {\n return d.value > 0\n ? params.matrix.tile_colors[0]\n : params.matrix.tile_colors[1];\n })\n .on('mouseover', function(p) {\n // highlight row - set text to active if\n d3.selectAll('.row_label_text text').classed('active', function(d, i) {\n return i === p.pos_y;\n });\n\n d3.selectAll('.col_label_text text').classed('active', function(d, i) {\n return i === p.pos_x;\n });\n })\n .on('mouseout', function mouseout() {\n d3.selectAll('text').classed('active', false);\n })\n .attr('title', function(d) {\n return d.value;\n });\n\n tile.style('fill-opacity', function(d) {\n // calculate output opacity using the opacity scale\n let output_opacity = params.matrix.opacity_scale(Math.abs(d.value));\n return output_opacity;\n });\n\n tile.attr('transform', function(d) {\n return 'translate(' + params.matrix.x_scale(d.pos_x) + ',0)';\n });\n\n // append title to group\n if (params.matrix.tile_title) {\n tile.append('title').text(function(d) {\n let inst_string = 'value: ' + d.value;\n return inst_string;\n });\n }\n }", "function rectangleToCoordinate(column, row) {\n\n /*\n * Since the canvas element begins its coordinates in the top left corner and we count\n * rectangles starting from the bottom right, we need to some conversion.\n * We need 0 to be the max y coord, and the max y coord to be 0.\n *\n * In order to convert, we figure out the maximum possible value for the\n * y coordinate and subtract our y-coordinate value from that.\n *\n * We also have to take into account the top and left grid line which takes\n * up half the space of the normal grid lines.\n */\n\n // The max amount of vertical space rectangles and grid lines could take up\n // -1 because the coordinate of the rectangles begin at their top left\n const maxRectSpace = (numRectanglesHigh - 1) * rectangleHeight;\n const maxGridSpace = numRectanglesHigh * gridThickness;\n const maxy = maxRectSpace + maxGridSpace;\n\n // The actual amount of space, up to the column specified\n const rectSpaceHorizontal = column * rectangleWidth;\n const gridSpaceHorizontal = column * gridThickness + gridThickness / 2;\n\n // The actual amount of space, up to the row specified\n const rectSpaceVertical = row * rectangleHeight;\n const gridSpaceVertical = row * gridThickness + gridThickness / 2;\n\n const x = rectSpaceHorizontal + gridSpaceHorizontal;\n const y = maxy - (rectSpaceVertical + gridSpaceVertical);\n\n return { x, y };\n }", "function Row(options) {\n options = options || {};\n\n // Define the direction of obstacles moving on this row, defaults to moving left\n this.direction = options.direction || Frogger.direction.LEFT;\n\n // Define the set of obstacles to place on this row and move\n this.obstacles = options.obstacles || [];\n\n // Define the top position, in pixels, of where this row sits on the game board\n this.top = options.top || 0;\n\n // Define the speed with which obstacles on this row move in the given direction\n // as a factor of the render rate set in game loop\n this.speed = options.speed || 1;\n }", "function moveRow6R(grid) {\n for (let i = 35; i < 42; i++) {\n if ((grid[i].position) > 34) {\n grid[i].position += 1;\n } if (grid[i].position > 41) {\n grid[i].position = 35;\n }\n }\n console.log('at end 1R', grid);\n grid.sort(function (a, b) {\n return a.position - b.position;\n });\n setGrid([...grid]);\n }", "function placeCell(cell, x, y) {\n\tcell.x = x;\n\tcell.y = y;\n\tplaceDiv(cell.div, x, y);\n}", "function cell(row, coll , value=null) // sets new cell where value is either a number OR null if empty;\n{\n this.value = value;\n this.x = coll * width + 5 * (coll + 1);\n this.y = row * width + 5 * (row + 1);\n}", "function getTilePosition(row, col) {\n\n var posX = gameOptions.tileSpacing * (col + 1) + gameOptions.tileSize * (col + 0.5);\n var posY = gameOptions.tileSpacing * (row + 1) + gameOptions.tileSize * (row + 0.5);\n var boardHeight = gameOptions.boardSize.rows * gameOptions.tileSize;\n boardHeight += (gameOptions.boardSize.rows + 1) * gameOptions.tileSpacing;\n //var offsetY = (game.config.height - boardHeight) / 2;\n //posY += offsetY;\n\n return new Phaser.Geom.Point(posX, posY);\n}", "function positionElementOnGrid(el, gridX, gridY) {\n el.style.left = px(gridX);\n el.style.top = px(gridY);\n }", "function positionNode(d) {\n // keep the node within the boundaries of the svg\n if (d.x < 0) {\n d.x = 0\n };\n if (d.y < 0) {\n d.y = 0\n };\n if (d.x > width) {\n d.x = width\n };\n if (d.y > height) {\n d.y = height\n };\n return \"translate(\" + d.x + \",\" + d.y + \")\";\n }", "function draw_rectanguletter() {\n var num_rows = 5;\n var num_columns = 4;\n\n var rows = new Array(num_rows);\n for (var row = 0; row < num_rows; row++) {\n rows[row] = new Array(num_columns);\n for (var column = 0; column < num_columns; column++) {\n rows[row][column] = random_letter();\n }\n }\n\n var target_row = Math.floor(Math.random() * num_columns);\n var target_column = Math.floor(Math.random() * num_rows);\n}", "onTranslateRow({ row }) {\n // a changetotalheight event is fired after translations, if a rowHeight change is detected here it will redraw\n // all dependencies\n if (row.lastTop >= 0 && row.top !== row.lastTop) {\n this.scheduleDraw(true);\n }\n }", "updatePosition(){\n\t\tlet activeRowCount = 0;\n\t\tlet tableHeight = 0;\n\t\tfor(let i = 0; i < this.table.length; i++){\n\t\t\tif(this.table.children[i].visible){\n\t\t\t\tactiveRowCount += 1;\n\t\t\t\tthis.table.children[i].y = (this.config.rowHeight * activeRowCount) - this.config.rowHeight;\n\t\t\t}\n\t\t}\n\n\t\tthis.height = (activeRowCount * this.config.rowHeight) - this.config.rowHeight;\n\t}", "_set(row,col,val){\n\t\tif( 0<=row && row <=9 && 0<=col && col<=9 ) {\n\t\t\tthis._grid[row][col] = val;\n\t\t} else {\n\t\t\tthrow new Error(`Invalid grid location (${row},${col})`);\n\t\t}\t\t\n\t}", "update_col_row_size(...positions) {\n // If no sizes change, we do not have to redraw the grid and cells. Otherwise, we must\n // redraw everything, as a resized column or row essentially reflows the entire graph.\n let rerender = false;\n // We keep the view centred as best we can, so we have to adjust the view if anything is\n // resized.\n let view_offset = Offset.zero();\n\n for (const position of positions) {\n // Compute how much each column or row size has changed and update the size in\n // `cell_width_constraints` or `cell_height_constraints`.\n const delta = (constraints, sizes, offset, margin) => {\n // The size of a column or row is determined by the largest cell.\n const max_size\n = Math.max(0, ...Array.from(constraints.get(offset)).map(([_, size]) => size));\n const new_size = Math.max(this.default_cell_size, max_size + margin);\n const delta = new_size - this.cell_size(sizes, offset);\n\n if (delta !== 0) {\n sizes.set(offset, new_size);\n }\n\n return delta;\n }\n\n // We keep a margin around the content of each cell. This gives space for dragging them\n // with the mouse.\n const MARGIN_X = this.default_cell_size * 0.5;\n const MARGIN_Y = this.default_cell_size * 0.5;\n\n const delta_x = delta(\n this.cell_width_constraints,\n this.cell_width,\n position.x,\n MARGIN_X,\n );\n const delta_y = delta(\n this.cell_height_constraints,\n this.cell_height,\n position.y,\n MARGIN_Y,\n );\n\n if (delta_x !== 0 || delta_y !== 0) {\n // Compute how much to adjust the view in order to keep it centred appropriately.\n const offset = new Offset(\n delta_x / 2 * (position.x >= 0 ? -1 : 1),\n delta_y / 2 * (position.y >= 0 ? -1 : 1),\n );\n view_offset = view_offset.sub(offset);\n rerender = true;\n }\n }\n\n if (rerender) {\n // If any of the column or row sizes changed, we need to rerender everything.\n // First, we reposition the grid and redraw it.\n this.pan_view(view_offset);\n // Then, we rerender all of the cells, which will have changed position.\n this.quiver.rerender(this);\n }\n\n return rerender;\n }", "getCellPosition(column, row) {\n return {x: column * CELL.WIDTH, y: row * CELL.HEIGHT};\n }", "moveTo(x, y) {\n\n this.tr.x = x;\n this.tr.y = y;\n }", "function moveRow1R(grid) {\n for (let i = 0; i < 7; i++) {\n if ((grid[i].position) < 7) {\n grid[i].position += 1;\n } if (grid[i].position > 6) {\n grid[i].position = 0;\n }\n }\n console.log('at end 1R', grid);\n grid.sort(function (a, b) {\n return a.position - b.position;\n });\n setGrid([...grid]);\n }", "Draw() {\r\n for (let row = 0; row < this.rowCount; ++row) {\r\n for (let column = 0; column < this.columnCount; ++column) {\r\n let cell = this.simulationGrid[row][column];\r\n\r\n if (cell === this.cellState.alive) {\r\n let coordinate = new Vector2D();\r\n coordinate.x = column * this.cellSize.x;\r\n coordinate.y = row * this.cellSize.y;\r\n\r\n DrawRectangle(coordinate, this.cellSize, \"#ffffff\", this.context);\r\n }\r\n }\r\n }\r\n }", "function drawHorLine(grid, row, col) {\r\n for (var j = col; j <= col + 2; j += 1) {\r\n drawPoint(grid, row, j);\r\n }\r\n }", "function Cell(x, y) {\n\tthis.div = $(\"<div></div>\");\n\tthis.div.css({\n\t\theight: units(CELL),\n\t\twidth: units(CELL),\n\t\t\"background-color\": TEXT_COLOUR,\n\t\tposition: \"absolute\",\n\t});\n\tthis.x = x;\n\tthis.y = y;\n\tplaceDiv(this.div, x, y);\n\t$snake.append(this.div);\n}", "function SnakeNode(row, col, tail, isHead) {\n\t\"use strict\";\n\t// Set object properties.\n\tthis.row = row;\n\tthis.col = col;\n\tthis.tail = tail;\n\tthis.isHead = isHead;\n\t// Set DOM properties.\n\toccupyCell(this.row, this.col, true);\n\tcolorCell(this.row, this.col);\n}", "handleMouseDown(row, col) {\n if (this.state.isStartNode === true) {\n this.clear();\n // eslint-disable-next-line\n this.state.start_node_row = row;\n // eslint-disable-next-line\n this.state.start_node_col = col;\n // eslint-disable-next-line\n this.state.isStartNode = false;\n } else {\n // eslint-disable-next-line\n this.state.finish_node_row = row;\n // eslint-disable-next-line\n this.state.finish_node_col = col;\n // eslint-disable-next-line\n this.state.isStartNode = true;\n }\n this.refresh();\n }", "function RowLayoutResult(){this.layoutedBounds=new RectangleF(0,0,0,0);}", "function setCell(arr, row, col){\n\tif(row <= 0 || row <= 0){\n\t\treturn;\n\t}\n\tif(arr[row][col] == 1) {\n\t\tvar cell = document.getElementById(row + \"_\" + col).setAttribute(\"class\", \"dead\");\n\t\tarr[row][col] = 0;\n\t} else if (arr[row][col] == 0) {\n\t\tvar cell = document.getElementById(row + \"_\" + col).setAttribute(\"class\", \"live\");\n\t\tarr[row][col] = 1;\n\t}\n}", "updateChildLocationForTable(top, tableWidget) {\n for (let i = 0; i < tableWidget.childWidgets.length; i++) {\n let rowWidget = tableWidget.childWidgets[i];\n rowWidget.x = rowWidget.x;\n rowWidget.y = top;\n this.updateChildLocationForRow(top, rowWidget);\n top += rowWidget.height;\n }\n }", "function positionFixup(){\n\t\tfor (var i = tiles.length - 1; i >= 0; i--) {\n\t\t\tvar layout = returnBalanced(maxCols, maxHeight);\n\t\t\tvar t = $('#'+tiles[i]);\n\t\t\tt.attr({\n\t\t\t\t'row': layout[tiles.length-1][i].row(maxHeight),\n\t\t\t\t'col': layout[tiles.length-1][i].col(maxCols),\n\t\t\t\t'sizex': layout[tiles.length-1][i].sizex(maxCols),\n\t\t\t\t'sizey': layout[tiles.length-1][i].sizey(maxHeight)\n\t\t\t});\n\t\t\tvar tile_offset = offset_from_location(parseInt(t.attr('row')), parseInt(t.attr('col')));\n\t\t\tt.css({\n\t\t\t\t\"top\": tile_offset.top,\n\t\t\t\t\"left\":tile_offset.left,\n\t\t\t\t\"width\":t.attr('sizex')*tileWidth,\n\t\t\t\t\"height\":t.attr('sizey')*tileHeight});\n\t\t\tupdate_board(tiles[i]);\n\t\t};\n\t}", "function moveTileLeft(row, column) {\n\n //This happens as soon as the player makes a move\n if (checkRemove(row, column - 1)) {\n doubleColor = tileArray[row][column].style.backgroundColor;\n removals++;\n if (removals == 1) {\n // This will cause the creation of a new center tile, once all movements have been processed\n createNewCenterTile = true;\n }\n }\n\n // This is the animation\n $(tileArray[row][column]).animate({ \"left\": \"-=\" + shiftValue }, 80, \"linear\", function () {\n\n // This happens at the end of each tile's movement\n if (checkRemove(row, column - 1)) {\n $(tileArray[row][column - 1]).remove();\n tileArray[row][column - 1] = null;\n } else {\n tileArray[row][column - 1].setAttribute(\"id\", \"tile-\" + (parseInt(tileArray[row][column - 1].id.slice(5)) - 1));\n } \n });\n tileArray[row][column - 1] = tileArray[row][column];\n tileArray[row][column] = null;\n }", "function fixLocation (y, x, row, col) {\n if (y >= row) {\n return [0, x];\n }\n if (y < 0) {\n return [row - 1, x];\n }\n if (x >= col) {\n return [y, 0];\n }\n if (x < 0) {\n return [y, col - 1];\n }\n return [y, x];\n}", "function Cell(top, bottom, left, right, index, id, posn, state) {\n\tthis.top = top;\n\tthis.bottom = bottom;\n\tthis.left =left;\n\tthis.right = right;\n\tthis.index=index;\n\tthis.id = id;\n\tthis.posn = posn;\n\tthis.state = state;\n}", "function Pos(row, col){\n this.row = row;\n this.col = col;\n this.toString = function(){\n return row + '/' + col;\n }\n}", "_alignCell(cell, dimensions, number, offset = 0, lineWeight = 1) {\n\t\t\td3.select(cell)\n\t\t\t\t// + number: Space 1 px between cells\n\t\t\t\t.attr('transform', `translate(${ offset + number * dimensions + number * lineWeight },0)`);\n\t\t}", "function create_grid_of_popping_rects(parent_gr, screen_height, screen_width){\n var line_number = 50;\n\n //draw_grid(parent_gr, line_number, screen_height, screen_width);\n draw_random_squares(parent_gr, line_number, screen_height, screen_width)\n}", "topLeftCell() {\n return \n }", "function placeCell() {\n this\n .attr(\"fill\", function(d) { return cellColor(d.data.name); })\n .attr(\"x\", function(d) { return d.x + \"px\"; })\n .attr(\"y\", function(d) { return d.y + \"px\"; })\n .attr(\"width\", function(d) { return Math.max(0, d.dx - 1) + \"px\"; })\n .attr(\"height\", function(d) { return Math.max(0, d.dy - 1) + \"px\"; })\n }", "function moveRow3L(grid) {\n for (let i = 14; i < 21; i++) {\n if ((grid[i].position) > 13) {\n grid[i].position -= 1;\n } if (grid[i].position < 14) {\n grid[i].position = 20;\n }\n }\n console.log('at end 1R', grid);\n grid.sort(function (a, b) {\n return a.position - b.position;\n });\n setGrid([...grid]);\n }" ]
[ "0.71293", "0.68804145", "0.68788224", "0.68788224", "0.68788224", "0.68788224", "0.68788224", "0.67839974", "0.67658097", "0.6720569", "0.63873994", "0.63873994", "0.63873994", "0.62019384", "0.6145864", "0.58184195", "0.5812495", "0.5742029", "0.57289517", "0.56630695", "0.56626904", "0.56594104", "0.5589046", "0.5557939", "0.55086946", "0.5505557", "0.54667604", "0.5381135", "0.53065574", "0.52654", "0.52607137", "0.52291775", "0.52077067", "0.5147648", "0.51460195", "0.51436365", "0.5137416", "0.5121374", "0.5097022", "0.5083649", "0.50749767", "0.5072373", "0.5068019", "0.5066715", "0.5042198", "0.50375295", "0.50320685", "0.5025031", "0.50147283", "0.5007248", "0.49976766", "0.4987623", "0.49871635", "0.49836093", "0.49649355", "0.4964525", "0.4952897", "0.49446866", "0.4943776", "0.49388847", "0.4937459", "0.49302405", "0.49236095", "0.49056134", "0.48976737", "0.4892904", "0.48852712", "0.48835045", "0.48832884", "0.4881968", "0.4881486", "0.487948", "0.4876841", "0.48673394", "0.4858929", "0.48548448", "0.4853989", "0.4852485", "0.4850295", "0.48477072", "0.48471296", "0.48086303", "0.48060036", "0.480594", "0.4804753", "0.48032942", "0.48003402", "0.47999546", "0.47994578", "0.47972262", "0.4784804", "0.47838378", "0.477096", "0.47628435", "0.47533932", "0.4748805", "0.47460252", "0.47438446", "0.47425973", "0.47402388" ]
0.68788224
7
Prunning depends on layout and root position, so we have to do it after layout.
function prunning(node, clipRect, viewAbovePath, viewRoot, depth) { var nodeLayout = node.getLayout(); var nodeInViewAbovePath = viewAbovePath[depth]; var isAboveViewRoot = nodeInViewAbovePath && nodeInViewAbovePath === node; if (nodeInViewAbovePath && !isAboveViewRoot || depth === viewAbovePath.length && node !== viewRoot) { return; } node.setLayout({ // isInView means: viewRoot sub tree + viewAbovePath isInView: true, // invisible only means: outside view clip so that the node can not // see but still layout for animation preparation but not render. invisible: !isAboveViewRoot && !clipRect.intersect(nodeLayout), isAboveViewRoot: isAboveViewRoot }, true); // Transform to child coordinate. var childClipRect = new BoundingRect(clipRect.x - nodeLayout.x, clipRect.y - nodeLayout.y, clipRect.width, clipRect.height); each(node.viewChildren || [], function (child) { prunning(child, childClipRect, viewAbovePath, viewRoot, depth + 1); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "start () {\n // Draw the starting point for the view with no elements\n }", "start () {\n // Draw the starting point for the view with no elements\n }", "layout() {\n var d = document.documentElement;\n var oldHeight = d.scrollHeight;\n this.reset()\n this.setOrders()\n this.populateHeights()\n this.setLayout()\n if (autoPosition === true) {\n adjustWindowHeight (oldHeight, d.scrollHeight)\n }\n this.pad()\n }", "function positionRoot(wt) {\n wt.prelim = ( wt.children[0].prelim + \n wt.children[0].mod -\n wt.children[0].x_size/2 +\n wt.children[wt.num_children - 1].mod + \n wt.children[wt.num_children - 1].prelim +\n wt.children[wt.num_children - 1].x_size/2) / 2;\n }", "function k(){setTimeout(function(){// IE7 needs this so dimensions are calculated correctly\n!la.start&&p()&&// !currentView.start makes sure this never happens more than once\ns()},0)}", "presentLayout() {\n super.presentLayout();\n }", "function setInitialLayout() {\n if (browserVersion > 0 && !STARTALLOPEN)\n clickOnNodeObj(foldersTree);\n \n if (!STARTALLOPEN && (browserVersion > 0) && PRESERVESTATE)\n\t\tPersistentFolderOpening();\n}", "layoutBubble_() {\n // Get the metrics in workspace units.\n const viewMetrics =\n this.workspace_.getMetricsManager().getViewMetrics(true);\n\n const optimalLeft = this.getOptimalRelativeLeft_(viewMetrics);\n const optimalTop = this.getOptimalRelativeTop_(viewMetrics);\n const bbox = this.shape_.getBBox();\n\n const topPosition = {\n x: optimalLeft,\n y: -this.height_ -\n this.workspace_.getRenderer().getConstants().MIN_BLOCK_HEIGHT,\n };\n const startPosition = {x: -this.width_ - 30, y: optimalTop};\n const endPosition = {x: bbox.width, y: optimalTop};\n const bottomPosition = {x: optimalLeft, y: bbox.height};\n\n const closerPosition =\n bbox.width < bbox.height ? endPosition : bottomPosition;\n const fartherPosition =\n bbox.width < bbox.height ? bottomPosition : endPosition;\n\n const topPositionOverlap = this.getOverlap_(topPosition, viewMetrics);\n const startPositionOverlap = this.getOverlap_(startPosition, viewMetrics);\n const closerPositionOverlap = this.getOverlap_(closerPosition, viewMetrics);\n const fartherPositionOverlap =\n this.getOverlap_(fartherPosition, viewMetrics);\n\n // Set the position to whichever position shows the most of the bubble,\n // with tiebreaks going in the order: top > start > close > far.\n const mostOverlap = Math.max(\n topPositionOverlap, startPositionOverlap, closerPositionOverlap,\n fartherPositionOverlap);\n if (topPositionOverlap === mostOverlap) {\n this.relativeLeft_ = topPosition.x;\n this.relativeTop_ = topPosition.y;\n return;\n }\n if (startPositionOverlap === mostOverlap) {\n this.relativeLeft_ = startPosition.x;\n this.relativeTop_ = startPosition.y;\n return;\n }\n if (closerPositionOverlap === mostOverlap) {\n this.relativeLeft_ = closerPosition.x;\n this.relativeTop_ = closerPosition.y;\n return;\n }\n // TODO: I believe relativeLeft_ should actually be called relativeStart_\n // and then the math should be fixed to reflect this. (hopefully it'll\n // make it look simpler)\n this.relativeLeft_ = fartherPosition.x;\n this.relativeTop_ = fartherPosition.y;\n }", "function setInitialLayout() {\n if (browserVersion > 0 && !STARTALLOPEN)\n clickOnNodeObj(foldersTree);\n \n if (!STARTALLOPEN && (browserVersion > 0) && PERSERVESTATE)\n\t\tPersistentFolderOpening();\n}", "layout() {\n if (this.outline_) {\n this.foundation_.updateOutline();\n }\n if (this.ripple) {\n this.ripple.layout();\n }\n }", "function doPosition() {\n\t\tif (!(elemParams.scrollContent < 0)){\n\t\t\tresizeMainFrame();\n\t\t}\n\n\t\tif (locParams.gloPre) return;\n\n\t\tvar elem = document.body;\n\t\tvar x = Math.floor((elem.offsetWidth - elemParams.totalWidth)/2);\n\t\tif (elem.offsetWidth < elemParams.totalWidth)\n\t\t\tx = 0;\n\t\tfor (var i = 0; i < elemParams.divList.length; i++) {\n\t\t\tvar divElem = elemParams.divList[i];\n\t\t\tdivElem.style.left = divElem.initialLeft + x;\n\t\t}\n\t}", "_afterRender () {\n this.adjust();\n }", "_updatePosition() {\n var width = this.$element.outerWidth();\n var outerWidth = $(window).width();\n var height = this.$element.outerHeight();\n var outerHeight = $(window).height();\n var left, top;\n if (this.options.hOffset === 'auto') {\n left = parseInt((outerWidth - width) / 2, 10);\n } else {\n left = parseInt(this.options.hOffset, 10);\n }\n if (this.options.vOffset === 'auto') {\n if (height > outerHeight) {\n top = parseInt(Math.min(100, outerHeight / 10), 10);\n } else {\n top = parseInt((outerHeight - height) / 4, 10);\n }\n } else {\n top = parseInt(this.options.vOffset, 10);\n }\n this.$element.css({top: top + 'px'});\n // only worry about left if we don't have an overlay or we havea horizontal offset,\n // otherwise we're perfectly in the middle\n if(!this.$overlay || (this.options.hOffset !== 'auto')) {\n this.$element.css({left: left + 'px'});\n this.$element.css({margin: '0px'});\n }\n\n }", "function centeringLayout() {\n\t\t\tvar wH = $(\"html\").outerHeight(),\n\t\t\t\tcontH = $masonryGrid.outerHeight();\n\n\t\t\t$masonryGrid.css(\"margin-top\", Math.abs(wH/2 - contH/2));\n\t\t}", "moveToNextParagraphStartInternal() {\n let paragraph = this.currentWidget.paragraph;\n if (!isNullOrUndefined(this.selection.getNextParagraphBlock(paragraph))) {\n // tslint:disable-next-line:max-line-length\n this.currentWidget = this.selection.getNextParagraphBlock(paragraph).firstChild;\n this.offset = this.selection.getStartOffset(paragraph);\n this.updatePhysicalPosition(true);\n }\n }", "positionBubble_() {\n let left = this.anchorXY_.x;\n if (this.workspace_.RTL) {\n left -= this.relativeLeft_ + this.width_;\n } else {\n left += this.relativeLeft_;\n }\n const top = this.relativeTop_ + this.anchorXY_.y;\n this.moveTo(left, top);\n }", "function hierarchyLayout() {\n var layouter = new yfiles.hierarchic.IncrementalHierarchicLayouter();\n layouter.prependStage(new yfiles.layout.PortCalculator());\n layouter.nodePlacer.baryCenterMode = true;\n layouter.orthogonalRouting = false;\n layouter.updateContentRect = true;\n app.graphControl.graph.applyLayout(layouter);\n app.graphControl.updateContentRectWithMargins(new yfiles.geometry.InsetsD.FromLeftTopRightAndBottom(10, 10, 10, 10));\n app.graphControl.fitGraphBounds();\n }", "applyLayout(){\n let cy = new Cytoscape({\n headless: true,\n elements: makeCyEles( this.elements() ),\n layout: { name: 'grid' },\n styleEnabled: true\n });\n\n let runLayout = () => {\n let layout = cy.layout( _.assign( {}, getCyLayoutOpts(), {\n animate: false,\n randomize: true\n } ) );\n\n let layoutDone = layout.promiseOn('layoutstop');\n\n layout.run();\n\n return layoutDone;\n };\n\n let savePositions = () => Promise.all( this.elements().map( docEl => {\n let el = cy.getElementById( docEl.id() );\n\n return docEl.reposition( _.clone( el.position() ) );\n } ) );\n\n return tryPromise( runLayout ).then( savePositions );\n }", "function init() { \r\n\t\t \tvertical = conf.vertical || dim(root, \"height\") > dim(root, \"width\");\r\n\t\t \r\n\t\t\tif (vertical) {\r\n\t\t\t\tlen = dim(root, \"height\") - dim(handle, \"height\");\r\n\t\t\t\torigo = root.offset().top + len; \r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tlen = dim(root, \"width\") - dim(handle, \"width\");\r\n\t\t\t\torigo = root.offset().left;\t \r\n\t\t\t} \t \r\n\t\t}", "scheduleLayoutUpdate() {\n qx.ui.core.queue.Layout.add(this);\n }", "function recalculate() {\n windowW = $(window).width();\n windowH = $(window).height();\n if($(\"svg\")) {\n $(\"path\").not(\".connector\").remove();\n }\n if($(\".end-left\")) {\n $(\".end-left\").remove();\n }\n paper = new Raphael(\"svg-container\", windowW, windowH);\n containerDimensions();\n createCenter();\n //once click animations are executed, this should no longer execute.\n var allEndPoints = combineEndPointsArrays().all;\n $(nodes).each(function(i, node) {\n var nodeId = $(node).attr(\"id\");\n $(node).css({left:allEndPoints[nodeId].x, top:allEndPoints[nodeId].y, transform:\"none\"});\n });\n}", "relayout() {\n dispatchSimpleEvent(this, 'relayout', true);\n }", "function requestLayout() {\n clearContainer();\n items.forEach((item) => layout(item));\n }", "render() {\n const { rootNode, sizeSet } = this;\n let visualIndex = this.visualIndex;\n\n if (this.isSharedViewSet() && sizeSet.isPlaceOn(WORKING_SPACE_BOTTOM)) {\n visualIndex += sizeSet.sharedSize.nextSize;\n }\n\n let node = rootNode.childNodes[visualIndex];\n\n if (node.tagName !== this.childNodeType) {\n const newNode = this.nodesPool();\n\n rootNode.replaceChild(newNode, node);\n node = newNode;\n }\n\n this.collectedNodes.push(node);\n this.visualIndex += 1;\n }", "setNeedsLayout() {\n\t\tif(this._layoutTimerId == null) {\n\t\t \tthis._layoutTimerId = setTimeout( () => {\n\t\t \t\tthis.layout();\t\t\t\n\t\t \t\tthis._layoutTimerId = null;\n\t\t \t}, 0);\n\t\t}\n\t}", "function RowLayoutResult(){this.layoutedBounds=new RectangleF(0,0,0,0);}", "function run () {\n\t// Create View\n initializeView();\n // Update View after change in dimensions - width\n $(window).resize(function() {updateView()});\n}", "_updateSize() {\n if (qx.ui.mobile.core.Blocker.ROOT == this.getLayoutParent()) {\n this.getContainerElement().style.top =\n qx.bom.Viewport.getScrollTop() + \"px\";\n this.getContainerElement().style.left =\n qx.bom.Viewport.getScrollLeft() + \"px\";\n this.getContainerElement().style.width =\n qx.bom.Viewport.getWidth() + \"px\";\n this.getContainerElement().style.height =\n qx.bom.Viewport.getHeight() + \"px\";\n } else if (this.getLayoutParent() != null) {\n var dimension = qx.bom.element.Dimension.getSize(\n this.getLayoutParent().getContainerElement()\n );\n\n this.getContainerElement().style.width = dimension.width + \"px\";\n this.getContainerElement().style.height = dimension.height + \"px\";\n }\n }", "function actualRun(){\n\t\t\n\t\t//first set the height, maybe scrollbars will appear\n\t\tvar galleryHeight = getEstimatedHeight();\n\t\tg_objWrapper.height(galleryHeight);\n\t\t\n\t\tvar galleryWidth = getGalleryWidth();\n\n\t\tinitEvents();\n\t\t\n\t\tg_carousel.setMaxWidth(galleryWidth);\n\t\tg_carousel.run();\n\t\t\n\t\tg_lightbox.run();\n\t\t\t\n\t\tpositionElements();\n\t\t\n\t}", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function _redraw() {\n _self.container.style.left = _pixel.x - (_self.container.clientWidth / 2) + 'px';\n _self.container.style.top = _pixel.y - (_self.container.clientHeight) + 'px';\n }", "invalidateCSSPositioning() {\n if ( !this.positionDirty ) {\n this.positionDirty = true;\n\n // mark all ancestors of this peer so that we can quickly find this dirty peer when we traverse\n // the PDOMInstance tree\n let parent = this.pdomInstance.parent;\n while ( parent ) {\n parent.peer.childPositionDirty = true;\n parent = parent.parent;\n }\n }\n }", "makeLayout() {\n\n if (this.state.projectData === undefined) {\n return;\n }\n\n // Clear stack\n this.resetLayout();\n\n // Recursively build the layout\n this.getBlock(this.state.htmlBlockId, true, [0]);\n }", "center() {\n this.panTo(this.graphDims.width / 2, this.graphDims.height / 2);\n }", "start() {\n this.collectedNodes.length = 0;\n this.visualIndex = 0;\n\n const { rootNode, sizeSet } = this;\n const isShared = this.isSharedViewSet();\n const { nextSize } = sizeSet.getViewSize();\n\n let childElementCount = this.getRenderedChildCount();\n\n while (childElementCount < nextSize) {\n const newNode = this.nodesPool();\n\n if (!isShared || (isShared && sizeSet.isPlaceOn(WORKING_SPACE_BOTTOM))) {\n rootNode.appendChild(newNode);\n } else {\n rootNode.insertBefore(newNode, rootNode.firstChild);\n }\n childElementCount += 1;\n }\n\n const isSharedPlacedOnTop = (isShared && sizeSet.isPlaceOn(WORKING_SPACE_TOP));\n\n while (childElementCount > nextSize) {\n rootNode.removeChild(isSharedPlacedOnTop ? rootNode.firstChild : rootNode.lastChild);\n childElementCount -= 1;\n }\n }", "function init() {\nvertical = conf.vertical || dim(root, \"height\") > dim(root, \"width\");\n\nif (vertical) {\nlen = dim(root, \"height\") - dim(handle, \"height\");\norigo = root.offset().top + len;\n\n} else {\nlen = dim(root, \"width\") - dim(handle, \"width\");\norigo = root.offset().left;\t\n}\n}", "function reloadLayout() {\n\tmyDiagram.startTransaction(\"change Layout\");\n\tvar lay = myDiagram.layout;\n\n\tlay.treeStyle = go.TreeLayout.StyleLayered;\n\tlay.layerStyle = go.TreeLayout.LayerIndividual;\n\tlay.angle = graphConfig.angle; // 0, 90, 180, 270\n\tlay.alignment = go.TreeLayout.AlignmentCenterChildren;\n\tlay.nodeSpacing = 20;\n\tlay.layerSpacing = 50;\n\n\tmyDiagram.commitTransaction(\"change Layout\");\n}", "preparePan(){\n const itemWidth = this.getItems().eq(0).outerWidth(true)\n const target = 0 - (itemWidth * ITEM_ART_COUNT)\n this.pan(target)\n }", "reapplyLastPosition() {\n if (!this._isDisposed && (!this._platform || this._platform.isBrowser)) {\n this._originRect = this._getOriginRect();\n this._overlayRect = this._pane.getBoundingClientRect();\n this._viewportRect = this._getNarrowedViewportRect();\n const lastPosition = this._lastPosition || this._preferredPositions[0];\n const originPoint = this._getOriginPoint(this._originRect, lastPosition);\n this._applyPosition(lastPosition, originPoint);\n }\n }", "preorder() {\n this.preorder(this._root);\n }", "updatePosition()\n {\n if (this.lifeCycleStatus !== \"initialized\")\n {\n return;\n }\n\n const priv = d.get(this);\n\n this.updateSizeAccumulated();\n\n if (! priv.visibility)\n {\n // done here\n return;\n }\n\n const position = priv.position;\n const origin = priv.origin;\n const fillWidth = priv.fillWidth;\n const fillHeight = priv.fillHeight;\n const x = priv.x;\n const y = priv.y;\n const aspectRatio = priv.aspectRatio;\n let width = priv.width;\n let height = priv.height;\n const minWidth = priv.minWidth;\n const minHeight = priv.minHeight;\n const maxWidth = priv.maxWidth;\n const maxHeight = priv.maxHeight;\n const marginTop = priv.marginTop;\n const marginBottom = priv.marginBottom;\n const marginLeft = priv.marginLeft;\n const marginRight = priv.marginRight;\n\n if (aspectRatio > 0 && width > 0 && height > 0)\n {\n const aspectWidth = aspectRatio;\n const aspectHeight = 1;\n const aspectScale = Math.min(width / aspectWidth,\n height / aspectHeight);\n width = aspectWidth * aspectScale;\n height = aspectHeight * aspectScale;\n }\n\n if (position === \"free\")\n {\n this.css(\"position\", \"absolute\");\n }\n else if (position === \"global\")\n {\n this.css(\"position\", \"fixed\");\n }\n else\n {\n this.css(\"position\", \"relative\");\n }\n\n this.css(\"min-width\", minWidth >= 0 ? minWidth + \"px\" : \"none\");\n this.css(\"min-height\", minHeight >= 0 ? minHeight + \"px\" : \"none\");\n this.css(\"max-width\", maxWidth >= 0 ? maxWidth + \"px\" : \"none\");\n this.css(\"max-height\", maxHeight >= 0 ? maxHeight + \"px\" : \"none\");\n \n\n if (position === \"free\" || position === \"global\")\n {\n this.css(\"margin-top\", \"0\");\n this.css(\"margin-left\", \"0\");\n this.css(\"margin-right\", \"0\");\n this.css(\"margin-bottom\", \"0\");\n\n if (fillWidth)\n {\n this.css(\"width\", \"calc(100% - \" + marginLeft + \"px - \" + marginRight + \"px)\");\n this.css(\"left\", marginLeft + \"px\");\n this.css(\"right\", \"\");\n }\n else\n {\n this.css(\"width\", width === -1 ? \"auto\" : width + \"px\");\n //this.css(\"min-width\", minWidth >= 0 ? Math.max(width, minWidth) + \"px\" : \"none\");\n //this.css(\"max-width\", maxWidth >= 0 ? Math.min(width, maxWidth) + \"px\" : \"none\");\n switch (origin)\n {\n case \"top-left\":\n case \"bottom-left\":\n this.css(\"left\", x + marginLeft + \"px\");\n this.css(\"right\", \"\");\n break;\n case \"top-right\":\n case \"bottom-right\":\n this.css(\"left\", \"\");\n this.css(\"right\", x + marginRight + \"px\");\n break;\n }\n }\n\n if (fillHeight)\n {\n this.css(\"height\", \"calc(100% - \" + marginTop + \"px - \" + marginBottom + \"px)\");\n this.css(\"top\", marginTop + \"px\");\n this.css(\"bottom\", \"\");\n }\n else\n {\n this.css(\"height\", height === -1 ? \"auto\" : height + \"px\");\n //this.css(\"min-height\", minHeight >= 0 ? Math.max(height, minHeight) + \"px\" : \"none\");\n //this.css(\"max-height\", maxHeight >= 0 ? Math.min(height, maxHeight) + \"px\" : \"none\");\n switch (origin)\n {\n case \"top-left\":\n case \"top-right\":\n this.css(\"top\", y + marginTop + \"px\");\n this.css(\"bottom\", \"\");\n break;\n case \"bottom-left\":\n case \"bottom-right\":\n this.css(\"top\", \"\");\n this.css(\"bottom\", y + marginBottom + \"px\");\n break;\n }\n }\n }\n else\n {\n this.css(\"flex-grow\", \"0\");\n this.css(\"flex-shrink\", \"0\");\n this.css(\"flex-basis\", \"auto\");\n\n if (fillWidth)\n {\n this.css(\"width\", \"calc(100% - \" + marginLeft + \"px - \" + marginRight + \"px)\");\n this.css(\"margin-left\", marginLeft + \"px\");\n this.css(\"margin-right\", marginRight + \"px\");\n if (this.parent && (this.parent.layout === \"row\" || this.parent.layout === \"center-row\"))\n {\n this.css(\"flex-shrink\", \"1\");\n }\n }\n else\n {\n this.css(\"width\", width === -1 ? \"auto\" : width + \"px\");\n //this.css(\"min-width\", minWidth >= 0 ? Math.max(width, minWidth) + \"px\" : \"none\");\n //this.css(\"max-width\", maxWidth >= 0 ? Math.min(width, maxWidth) + \"px\" : \"none\");\n this.css(\"margin-left\", marginLeft + \"px\");\n this.css(\"margin-right\", marginRight + \"px\");\n }\n\n if (fillHeight)\n {\n this.css(\"height\", \"calc(100% - \" + marginTop + \"px - \" + marginBottom + \"px)\");\n this.css(\"margin-top\", marginTop + \"px\");\n this.css(\"margin-bottom\", marginBottom + \"px\");\n \n if (this.parent && (this.parent.layout === \"column\" || this.parent.layout === \"center-column\" || this.parent.layout === \"center\"))\n {\n this.css(\"flex-shrink\", \"1\");\n }\n }\n else\n {\n this.css(\"height\", height === -1 ? \"auto\" : height + \"px\");\n //this.css(\"min-height\", minHeight >= 0 ? Math.max(height, minHeight) + \"px\" : \"none\");\n //this.css(\"max-height\", maxHeight >= 0 ? Math.min(height, maxHeight) + \"px\" : \"none\");\n this.css(\"margin-top\", marginTop + \"px\");\n this.css(\"margin-bottom\", marginBottom + \"px\");\n }\n\n this.css(\"top\", \"\");\n this.css(\"bottom\", \"\");\n this.css(\"left\", \"\");\n this.css(\"right\", \"\");\n }\n }", "didSwitchLayout(clear) {\n this.render(clear);\n }", "function layout_tick() {\n\n // update rect position on drag\n if (mousedown && svg.classed('ctrl')) {\n updateNodePositions();\n drawPaths();\n updateDistances();\n }\n}", "stepExactCenter_() {\n this.mutateElement(() => {\n this.updatePositions_(0.5);\n });\n }", "function refreshLayout() {\n\tconsole.log(\"Refreshing layout...\");\n\t$thumbsPackery.packery();\n\t$unusedPackery.packery();\n}", "function Layout()\n{\n \n}", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "function recalculatePosition() {\n scope.position = appendToBody ? $position.offset(element) : $position.position(element);\n scope.position.top += element.prop('offsetHeight');\n }", "unlayout() {\n if (\n this.state_ == ResourceState_Enum.NOT_BUILT ||\n this.state_ == ResourceState_Enum.NOT_LAID_OUT ||\n this.state_ == ResourceState_Enum.READY_FOR_LAYOUT\n ) {\n return;\n }\n if (this.abortController_) {\n this.abortController_.abort();\n this.abortController_ = null;\n }\n this.setInViewport(false);\n if (this.element.unlayoutCallback()) {\n this.element.togglePlaceholder(true);\n this.state_ = ResourceState_Enum.NOT_LAID_OUT;\n this.layoutCount_ = 0;\n this.layoutPromise_ = null;\n }\n }", "updatePosContainerPositions() {\n const chart = this.chart;\n // If exporting, don't add these containers to the DOM.\n if (chart.renderer.forExport) {\n return;\n }\n const rendererSVGEl = chart.renderer.box;\n chart.container.insertBefore(this.afterChartProxyPosContainer, rendererSVGEl.nextSibling);\n chart.container.insertBefore(this.beforeChartProxyPosContainer, rendererSVGEl);\n unhideChartElementFromAT(this.chart, this.afterChartProxyPosContainer);\n unhideChartElementFromAT(this.chart, this.beforeChartProxyPosContainer);\n }", "function prunning(node,clipRect,viewAbovePath,viewRoot,depth){var nodeLayout=node.getLayout();var nodeInViewAbovePath=viewAbovePath[depth];var isAboveViewRoot=nodeInViewAbovePath && nodeInViewAbovePath === node;if(nodeInViewAbovePath && !isAboveViewRoot || depth === viewAbovePath.length && node !== viewRoot){return;}node.setLayout({ // isInView means: viewRoot sub tree + viewAbovePath\n isInView:true, // invisible only means: outside view clip so that the node can not\n // see but still layout for animation preparation but not render.\n invisible:!isAboveViewRoot && !clipRect.intersect(nodeLayout),isAboveViewRoot:isAboveViewRoot},true); // Transform to child coordinate.\n var childClipRect=new BoundingRect(clipRect.x - nodeLayout.x,clipRect.y - nodeLayout.y,clipRect.width,clipRect.height);each(node.viewChildren || [],function(child){prunning(child,childClipRect,viewAbovePath,viewRoot,depth + 1);});}", "function prepareSmoothLayoutAnimation() {\n const graph = graphComponent.graph\n\n // mark the new nodes and place them between their neighbors\n const layout = new PlaceNodesAtBarycenterStage()\n layout.removeBends = true\n\n const layoutData = new PlaceNodesAtBarycenterStageData({\n affectedNodes: node => incrementalNodes.includes(node) && filteredGraph.contains(node)\n })\n\n graph.applyLayout(layout, layoutData)\n}", "getLayout(viewId, elementId, elementType, widgetTime, stateTime, mode, attributes) {\n\n if ((viewId == \"Tutorial1\") || (viewId == \"Tutorial2\") || (viewId == \"Tutorial3\") ||\n (viewId == \"TutorialMove1\") || (viewId == \"TutorialMove2\") || (viewId==\"TutorialMove3\")) {\n\n if (elementId == \"background\") return { x: 0, y: 0, width: this.width, height: this.height };\n else if (elementType == \"video\") return { x: this.circleX - this.circleRadius, y: this.circleY - this.circleRadius, width: this.circleRadius * 2, height: this.circleRadius * 2 };\n else if (elementId == \"tip\") return { x: 0, y: this.height * 0.75, width: this.width, height: this.height * 0.10 };\n else if (elementId == \"tip_detail\") return { x: 0, y: this.height * 0.82, width: this.width, height: this.height * 0.10 };\n else if (elementId == \"button_skip\") return { x: 0, y: this.height - this.buttonHeight, width: this.width / 2, height: this.buttonHeight };\n else if (elementId == \"button_back\") return { x: 0, y: this.height - this.buttonHeight, width: this.width / 2, height: this.buttonHeight };\n else if (elementId == \"button_next\") return { x: this.width / 2, y: this.height - this.buttonHeight, width: this.width / 2, height: this.buttonHeight };\n else if (elementId == \"button_done\") return { x: this.width / 2, y: this.height - this.buttonHeight, width: this.width / 2, height: this.buttonHeight };\n else if (elementId == \"button_exit\") {\n var content = this.rm.getSetupResourceId(viewId, elementId, this.landscape, \"value\");\n var img = this.rm.getImage(content);\n var imgScaleFactor = (this.canvasSizeFactor) * this.rm.getImageScale();\n var imgWidth = img.width * imgScaleFactor;\n var imgHeight = img.height * imgScaleFactor;\n return { x: this.width - imgWidth - 30, y: 0, width: imgWidth + 30, height: imgHeight + 30 };\n }\n else if (elementId==\"liveness_move\") {\n return { x: this.circleX - this.circleRadius, y: this.circleY - this.circleRadius, width: this.circleRadius * 2, height: this.circleRadius * 2 };\n }\n\n } else {\n if (elementId == \"background\") return { x: 0, y: 0, width: this.width, height: this.height };\n else if (elementId == \"tip_video\") return { x: this.circleX - this.circleRadius, y: this.circleY - this.circleRadius, width: this.circleRadius * 2, height: this.circleRadius * 2 };\n else if (elementId == \"imageError\") return { x: this.circleX - this.circleRadius, y: this.circleY - this.circleRadius, width: this.circleRadius * 2, height: this.circleRadius * 2 };\n else if (elementId == \"video_success\") return { x: this.circleX - this.circleRadius, y: this.circleY - this.circleRadius, width: this.circleRadius * 2, height: this.circleRadius * 2 };\n else if (elementId == \"extraction_video\") return { x: this.width / 2 - this.width * 0.1, y: this.height * 0.73, width: this.width * 0.2, height: this.width * 0.2 };\n else if (elementId == \"tip\") return { x: 0, y: this.height * 0.75, width: this.width, height: this.height * 0.10 };\n else if (elementId == \"text_error\") return { x: 0, y: this.height * 0.75, width: this.width, height: this.height * 0.10 };\n else if (elementId == \"text\") {\n return { x: 0, y: this.circleY+this.circleRadius, width: this.width, height: (this.height-this.buttonHeight-10) - (this.circleY+this.circleRadius)};\n //return { x: 0, y: this.height * 0.80, width: this.width, height: this.height * 0.10 };\n }\n else if (elementId == \"tip_detail\") return { x: 0, y: this.height * 0.82, width: this.width, height: this.height * 0.10 };\n else if (elementId == \"button_skip\") return { x: 0, y: this.height - this.buttonHeight, width: this.width / 2, height: this.buttonHeight };\n else if (elementId == \"button_next\") return { x: this.width / 2, y: this.height - this.buttonHeight, width: this.width / 2, height: this.buttonHeight };\n else if (elementId == \"button_done\") return { x: this.width / 2, y: this.height - this.buttonHeight, width: this.width / 2, height: this.buttonHeight };\n else if (elementId == \"button_start\") {\n let w = 209.0*this.canvasSizeFactor;\n return { x: this.width/2 - w/2.0, y: this.height - this.buttonHeight+10, width: w, height: this.buttonHeight-10 };\n }\n else if (elementId == \"button_error\") return { x: this.width / 4, y: this.height - this.buttonHeight+10, width: this.width / 2, height: this.buttonHeight-10 };\n else if (elementId == \"button_back\") return { x: 0, y: this.height - this.buttonHeight, width: this.width / 2, height: this.buttonHeight };\n else if (elementId == \"button_repeat\") return { x: this.width * 0.05, y: this.height - this.buttonHeight, width: this.width * 0.4, height: this.buttonHeight };\n else if (elementId == \"button_finish\") return { x: this.width * 0.55, y: this.height - this.buttonHeight, width: this.width * 0.4, height: this.buttonHeight };\n else if (elementId == \"button_exit\") {\n\n var content = this.rm.getSetupResourceId(viewId, elementId, this.landscape, \"value\");\n var img = this.rm.getImage(content);\n var imgScaleFactor = (this.canvasSizeFactor) * this.rm.getImageScale();\n var imgWidth = img.width * imgScaleFactor;\n var imgHeight = img.height * imgScaleFactor;\n return { x: this.width - imgWidth - 30, y: 0, width: imgWidth + 30, height: imgHeight + 30 };\n }\n else if (elementId == \"button_info\") {\n\n if ((this.extractionMode == FPhi.Selphi.Mode.Register) ||\n (this.livenessMode != FPhi.Selphi.LivenessMode.None)) {\n var content = this.rm.getSetupResourceId(viewId, elementId, this.landscape, \"value\");\n var img = this.rm.getImage(content);\n var imgScaleFactor = (this.canvasSizeFactor) * this.rm.getImageScale();\n var imgWidth = img.width * imgScaleFactor;\n var imgHeight = img.height * imgScaleFactor;\n return { x: 0, y: 0, width: imgWidth + 30, height: imgHeight + 30 };\n }\n }\n else if (elementId == \"warning\") return { x: 0, y: this.height * 0.89, width: this.width, height: this.height * 0.10 };\n else if (elementId == \"warningTooFar\") return { x: 0, y: this.height * 0.89, width: this.width, height: this.height * 0.10 };\n else if (elementType == \"camera\") return { x: this.circleX - this.circleRadius, y: this.circleY - this.circleRadius, width: this.circleRadius * 2, height: this.circleRadius * 2 };\n else if (elementType == \"results\") return { x: this.circleX - this.circleRadius, y: this.circleY - this.circleRadius, width: this.circleRadius * 2, height: this.circleRadius * 2 };\n else if (elementId == \"liveness_move_text\") {\n //if ((attributes.state == \"UCLivenessMoveStabilizing\") || (attributes.state == \"UCLivenessMoveStabilized\") || (attributes.state == \"UCLivenessMoveDetecting\"))\n if (attributes.state==\"UCLivenessMoveProcessing\" && (stateTime<0.5)) return null;\n return { x: 0, y: this.height * 0.89, width: this.width, height: this.height * 0.10 };\n //else\n // return null;\n }\n else if (elementId == \"liveness_move_tip_text\") {\n return { x: this.circleX - this.circleRadius, y: this.circleY - this.circleRadius*0.39, width: this.circleRadius * 2, height: this.circleRadius * 2 };\n }\n else if (elementId == \"livenessInfo_text\") {\n return { x: 0, y: this.height * 0.89, width: this.width, height: this.height * 0.10 };\n }\n else if (elementId == \"liveness_move\") {\n if ((attributes.state == \"UCLivenessMoveDetecting\") && (stateTime >= 0.25) && (stateTime < 1.75)) {\n var fullscreen = false;\n if (this.rm.isAttributeAvailable(viewId,elementId,this.landscape,\"fullscreen\")) {\n if (this.rm.getSetupResourceId(viewId,elementId,this.landscape,\"fullscreen\") == \"true\")\n fullscreen=true;\n }\n if (fullscreen)\n return { x: 0, y: 0, width: this.width, height:this.height };\n else\n return { x: this.circleX - this.circleRadius, y: this.circleY - this.circleRadius, width: this.circleRadius * 2, height: this.circleRadius * 2 };\n }\n //console.log(viewId);\n return null;\n }\n else if ((elementId == \"liveness_move_left\") || (elementId==\"liveness_move_right\") ||\n (elementId == \"liveness_move_top\") || (elementId==\"liveness_move_bottom\")) {\n \n if ((attributes.state == \"UCLivenessMoveDetecting\") && (stateTime >= 0.25) && (stateTime < 1.75)) {\n if ((attributes.livenessMoveDirection==0) && (elementId!=\"liveness_move_top\"))\n return null;\n if ((attributes.livenessMoveDirection==2) && (elementId!=\"liveness_move_bottom\"))\n return null;\n if ((attributes.livenessMoveDirection==1) && (elementId!=\"liveness_move_right\"))\n return null;\n if ((attributes.livenessMoveDirection==3) && (elementId!=\"liveness_move_left\"))\n return null;\n\n var fullscreen = false;\n if (this.rm.isAttributeAvailable(viewId,elementId,this.landscape,\"fullscreen\")) {\n if (this.rm.getSetupResourceId(viewId,elementId,this.landscape,\"fullscreen\") == \"true\")\n fullscreen=true;\n }\n if (fullscreen)\n return { x: 0, y: 0, width: this.width, height:this.height };\n else\n return { x: this.circleX - this.circleRadius, y: this.circleY - this.circleRadius, width: this.circleRadius * 2, height: this.circleRadius * 2 };\n }\n else\n return null;\n }\n else if (elementId == \"face_searcher\") {\n return { x: 0, y: 0, width: this.width, height:this.height };\n }\n else if (elementId == \"livenessMoveGlasses\") {\n if (attributes.livenessMoveFailReason==0)\n return { x: this.circleX - this.circleRadius, y: this.circleY - this.circleRadius, width: this.circleRadius * 2, height: this.circleRadius * 2 };\n }\n else if (elementId == \"livenessMoveInfo\") {\n if (attributes.livenessMoveFailReason==1)\n return { x: this.circleX - this.circleRadius, y: this.circleY - this.circleRadius, width: this.circleRadius * 2, height: this.circleRadius * 2 };\n }\n else if (elementId==\"progress\") {\n if (attributes.state==\"UCLivenessMoveProcessing\" && (stateTime>this.processingMoveProgressStartTime))\n return {x:this.circleX-this.circleRadius,y:this.height * 0.80,width:this.circleRadius*2.0,height:19};\n }\n }\n //console.log(\"viewId: \"+viewId+\" elementId: \"+elementId);\n return null;\n }", "refresh() {\n this.bodyComponent.recalcLayout();\n }", "preOrder(){\n this.preOrderHelper(this.root)\n }", "function centerBoard() {\r\n\tpaper.project.activeLayer.position = paper.view.center;\r\n}", "function lateRender() {\n\t\tsetTimeout(function() { // IE7 needs this so dimensions are calculated correctly\n\t\t\tif (!currentView.start && bodyVisible()) { // !currentView.start makes sure this never happens more than once\n\t\t\t\trenderView();\n\t\t\t}\n\t\t},0);\n\t}", "function lateRender() {\n\t\tsetTimeout(function() { // IE7 needs this so dimensions are calculated correctly\n\t\t\tif (!currentView.start && bodyVisible()) { // !currentView.start makes sure this never happens more than once\n\t\t\t\trenderView();\n\t\t\t}\n\t\t},0);\n\t}", "function lateRender() {\n\t\tsetTimeout(function() { // IE7 needs this so dimensions are calculated correctly\n\t\t\tif (!currentView.start && bodyVisible()) { // !currentView.start makes sure this never happens more than once\n\t\t\t\trenderView();\n\t\t\t}\n\t\t},0);\n\t}", "function lateRender() {\n\t\tsetTimeout(function() { // IE7 needs this so dimensions are calculated correctly\n\t\t\tif (!currentView.start && bodyVisible()) { // !currentView.start makes sure this never happens more than once\n\t\t\t\trenderView();\n\t\t\t}\n\t\t},0);\n\t}", "function lateRender() {\n\t\tsetTimeout(function() { // IE7 needs this so dimensions are calculated correctly\n\t\t\tif (!currentView.start && bodyVisible()) { // !currentView.start makes sure this never happens more than once\n\t\t\t\trenderView();\n\t\t\t}\n\t\t},0);\n\t}", "componentDidUpdate() {\n LayoutAnimation.configureNext(CustomLayoutSpring());\n }", "updateLayoutAutomatically() {\n if ( this._enabled ) {\n this.updateLayout();\n }\n }", "function resetLayout(cy, pos){\nvar animateLayout = true;\n var selectedLayout = document.getElementById('selectlayout' + pos).value;\n if(selectedLayout == \"klay\"){\n var options = {\n animate: animateLayout, // Whether to transition the node positions\n klay: {\n aspectRatio: 1.49, // The aimed aspect ratio of the drawing, that is the quotient of width by height\n compactComponents: true, // Tries to further compact components (disconnected sub-graphs).\n nodeLayering:'LONGEST_PATH', // Strategy for node layering.\n /* NETWORK_SIMPLEX This algorithm tries to minimize the length of edges. This is the most computationally intensive algorithm. \n The number of iterations after which it aborts if it hasn't found a result yet can be set with the Maximal Iterations option.\n LONGEST_PATH A very simple algorithm that distributes nodes along their longest path to a sink node.\n INTERACTIVE Distributes the nodes into layers by comparing their positions before the layout algorithm was started. The idea is that the relative horizontal order of nodes as it was before layout was applied is not changed. This of course requires valid positions for all nodes to have been set on the input graph before calling the layout algorithm. The interactive node layering algorithm uses the Interactive Reference Point option to determine which reference point of nodes are used to compare positions. */\n thoroughness: 10 // How much effort should be spent to produce a nice layout..\n },\n };\n cy.layout({\n name:'klay',\n options\n }).run();\n }\n else if(selectedLayout == \"breadthfirst\"){\n cy.layout({\n name: \"breadthfirst\",\n spacingFactor: 0.5,\n animate: animateLayout\n }).run();\n }\n else if(selectedLayout == \"dagre\"){\n cy.layout({\n name: \"dagre\",\n animate: animateLayout\n }).run();\n }\n else if(selectedLayout == \"cose-bilkent (default)\"){\n cy.layout({\n name: \"cose-bilkent\",\n // Gravity range (constant)\n gravityRange: 1.3,\n animate: true\n }).run();\n }\n else if(selectedLayout == \"grid\"){\n cy.layout({\n name: \"grid\",\n animate: animateLayout,\n avoidOverlapPadding: 5\n }).run();\n }\n else{\n cy.layout({\n name: \"cose-bilkent\",\n // Gravity range (constant)\n gravityRange: 1.3,\n animate: true\n }).run();\n document.getElementById('selectlayout'+pos).value = \"cose-bilkent (default)\";\n }\n if(highlightedNode){\n cy.$('node[symbol=\"'+highlightedNode+'\"]').addClass(\"highlighted\");\n }\n}", "updateLayout() {\n if ( !this.isLocked ) {\n this.lock();\n\n this.layout();\n\n this.unlock();\n }\n }", "function reposition() {\n var amountOfIframeScroll = initialScroll - $editorDoc.scrollTop();\n var heightAboveToolbar = $toolbar.offset().top - $contentWrap.offset().top; // e.g. merge conflict resolution\n var heightOfPrecursor = $editorPrecursor.outerHeight();\n var heightOfToolbar = $toolbar.outerHeight();\n\n $editorPrecursor.css('top', (heightAboveToolbar + heightOfToolbar + amountOfIframeScroll + precursorTopPadding) + 'px');\n $editorBody.css('padding-top', (heightOfPrecursor + bodyTopPadding) + 'px');\n }", "function actualRun() {\n\n\t\t//set preloader mode\n\t\tif (g_objPreloader) {\n\t\t\tg_objPreloader.fadeTo(0, 1);\n\t\t\tg_objWrapper.height(g_options.theme_preloading_height);\n\t\t\tg_functions.placeElement(g_objPreloader, \"center\", g_options.theme_preloader_vertpos);\n\t\t}\n\n\t\tinitEvents();\n\n\t\tg_tiles.run();\n\t\tg_lightbox.run();\n\t}", "function prunning(node, clipRect, viewAbovePath, viewRoot, depth) {\n\t var nodeLayout = node.getLayout();\n\t var nodeInViewAbovePath = viewAbovePath[depth];\n\t var isAboveViewRoot = nodeInViewAbovePath && nodeInViewAbovePath === node;\n\t\n\t if (nodeInViewAbovePath && !isAboveViewRoot || depth === viewAbovePath.length && node !== viewRoot) {\n\t return;\n\t }\n\t\n\t node.setLayout({\n\t // isInView means: viewRoot sub tree + viewAbovePath\n\t isInView: true,\n\t // invisible only means: outside view clip so that the node can not\n\t // see but still layout for animation preparation but not render.\n\t invisible: !isAboveViewRoot && !clipRect.intersect(nodeLayout),\n\t isAboveViewRoot: isAboveViewRoot\n\t }, true); // Transform to child coordinate.\n\t\n\t var childClipRect = new BoundingRect(clipRect.x - nodeLayout.x, clipRect.y - nodeLayout.y, clipRect.width, clipRect.height);\n\t each$5(node.viewChildren || [], function (child) {\n\t prunning(child, childClipRect, viewAbovePath, viewRoot, depth + 1);\n\t });\n\t }", "function lateRender() {\n\t\tsetTimeout( function() { // IE7 needs this so dimensions are calculated correctly\n\t\t\t\t\tif (!currentView.start && bodyVisible()) { // !currentView.start makes sure this never happens more than once\n\t\t\t\t\t\trenderView();\n\t\t\t\t\t}\n\t\t\t\t}, 0);\n\t}", "resetPosition() {\n // 505 is width, 101 is one block, so 202 will be center\n this.x = 202;\n // 606 is height, 171 is one block, so 435 will be center, but we need to be be off a bit,\n // so it will be 435 - 45px\n this.y = 390;\n }", "_layout() {\n const that = this,\n measurements = that._measurements,\n containerStyle = that.$.container.style,\n thumbPadding = measurements.halfThumbSize,\n labelsSize = that._tickIntervalHandler.labelsSize;\n let minLabelPadding, maxLabelPadding, paddingStart, paddingEnd;\n\n if (that.scalePosition !== 'none') {\n minLabelPadding = labelsSize.minLabelSize / 2;\n maxLabelPadding = labelsSize.maxLabelSize / 2;\n }\n else {\n minLabelPadding = 0;\n maxLabelPadding = 0;\n }\n\n if (!that.showButtons) {\n paddingStart = Math.max(thumbPadding, minLabelPadding) + 'px';\n paddingEnd = Math.max(thumbPadding, maxLabelPadding) + 'px';\n }\n else {\n const spinButtonSize = that.$.leftButton[that._settings.size],\n buttonSize = spinButtonSize + thumbPadding;\n paddingStart = Math.max(minLabelPadding - buttonSize, 0) + 'px';\n paddingEnd = Math.max(maxLabelPadding - buttonSize, 0) + 'px';\n }\n\n if (that.orientation === 'horizontal') {\n if (!that.inverted) {\n containerStyle.paddingLeft = paddingStart;\n containerStyle.paddingRight = paddingEnd;\n }\n else {\n containerStyle.paddingLeft = paddingEnd;\n containerStyle.paddingRight = paddingStart;\n }\n\n measurements.trackLength = that.$.track.clientWidth;\n\n that.$leftArrow.addClass('jqx-arrow-left');\n that.$rightArrow.addClass('jqx-arrow-right');\n }\n else {\n if (!that.inverted) {\n containerStyle.paddingBottom = paddingStart;\n containerStyle.paddingTop = paddingEnd;\n }\n else {\n containerStyle.paddingBottom = paddingEnd;\n containerStyle.paddingTop = paddingStart;\n }\n\n measurements.trackLength = that.$.track.clientHeight;\n\n that.$leftArrow.addClass('jqx-arrow-up');\n that.$rightArrow.addClass('jqx-arrow-down');\n }\n }", "function centralize () {\n $(\"#main\").position({\n of: \"body\"\n });\n }", "function position() {\n var pos = window.pageYOffset - app.height/1.5 - containerStart;\n var sectionIndex = d3.bisect(sectionPositions, pos);\n sectionIndex = Math.min(sections.size() - 1, sectionIndex);\n\n if (currentIndex !== sectionIndex) {\n // @v4 you now `.call` the dispatch callback\n dispatch.call('active', this, sectionIndex);\n currentIndex = sectionIndex;\n }\n\n var prevIndex = Math.max(sectionIndex - 1, 0);\n var prevTop = sectionPositions[prevIndex];\n var progress = (pos - prevTop) / (sectionPositions[sectionIndex] - prevTop);\n // @v4 you now `.call` the dispatch callback\n dispatch.call('progress', this, currentIndex, progress);\n }", "function position() {\n // let containerStart = document.getElementById('sections').offset().top\n // console.log(document.getElementById('empty-top-section').height)\n let pos = window.pageYOffset - containerStart + 150;\n let sectionIndex = d3.bisect(sectionPositions, pos);\n sectionIndex = Math.min(sections.size()-1, sectionIndex);\n // console.log(window.pageYOffset, pos, window.innerHeight, containerStart)\n if (currentIndex !== sectionIndex){\n dispatch.call('active', this, sectionIndex);\n currentIndex = sectionIndex;\n }\n let prevIndex = Math.max(sectionIndex - 1, 0);\n let prevTop = sectionPositions[prevIndex]\n let progress = (pos - prevTop) / (sectionPositions[sectionIndex] - prevTop);\n dispatch.call('progress', this, currentIndex, progress)\n }", "function setPosition() {\n\n var bottom = window.innerHeight-startBottom-y;\n bottom = (bottom>0)? bottom : 0;\n bottom = ((bottom+elem[0].getBoundingClientRect().height)<window.innerHeight)?bottom:(window.innerHeight-elem[0].getBoundingClientRect().height-40);\n\n var right = window.innerWidth-startRight-x;\n right = (right>0)? right : 0;\n right = ((right+elem[0].getBoundingClientRect().width)<window.innerWidth)?right:(window.innerWidth-elem[0].getBoundingClientRect().width);\n\n elem.css({\n bottom: bottom + 'px',\n right: right + 'px'\n });\n }", "_prepareForOrbit() {\n var _this = this;\n this._setWrapperHeight();\n }", "positionElements( positionInPDOM ) {\n assert && assert( this._primarySibling, 'a primary sibling required to receive CSS positioning' );\n assert && assert( this.positionDirty, 'elements should only be repositioned if dirty' );\n\n // CSS transformation only needs to be applied if the node is focusable - otherwise the element will be found\n // by gesture navigation with the virtual cursor. Bounds for non-focusable elements in the ViewPort don't\n // need to be accurate because the AT doesn't need to send events to them.\n if ( positionInPDOM ) {\n const transformSourceNode = this.node.pdomTransformSourceNode || this.node;\n\n scratchGlobalBounds.set( transformSourceNode.localBounds );\n if ( scratchGlobalBounds.isFinite() ) {\n scratchGlobalBounds.transform( this.pdomInstance.transformTracker.getMatrix() );\n\n // no need to position if the node is fully outside of the Display bounds (out of view)\n const displayBounds = this.display.bounds;\n if ( displayBounds.intersectsBounds( scratchGlobalBounds ) ) {\n\n // Constrain the global bounds to Display bounds so that center of the sibling element\n // is always in the Display. We may miss input if the center of the Node is outside\n // the Display, where VoiceOver would otherwise send pointer events.\n scratchGlobalBounds.constrainBounds( displayBounds );\n\n let clientDimensions = getClientDimensions( this._primarySibling );\n let clientWidth = clientDimensions.width;\n let clientHeight = clientDimensions.height;\n\n if ( clientWidth > 0 && clientHeight > 0 ) {\n scratchSiblingBounds.setMinMax( 0, 0, clientWidth, clientHeight );\n scratchSiblingBounds.transform( getCSSMatrix( clientWidth, clientHeight, scratchGlobalBounds ) );\n setClientBounds( this._primarySibling, scratchSiblingBounds );\n }\n\n if ( this.labelSibling ) {\n clientDimensions = getClientDimensions( this._labelSibling );\n clientWidth = clientDimensions.width;\n clientHeight = clientDimensions.height;\n\n if ( clientHeight > 0 && clientWidth > 0 ) {\n scratchSiblingBounds.setMinMax( 0, 0, clientWidth, clientHeight );\n scratchSiblingBounds.transform( getCSSMatrix( clientWidth, clientHeight, scratchGlobalBounds ) );\n setClientBounds( this._labelSibling, scratchSiblingBounds );\n }\n }\n }\n }\n }\n else {\n\n // not positioning, just move off screen\n scratchSiblingBounds.set( PDOMPeer.OFFSCREEN_SIBLING_BOUNDS );\n setClientBounds( this._primarySibling, scratchSiblingBounds );\n if ( this._labelSibling ) {\n setClientBounds( this._labelSibling, scratchSiblingBounds );\n }\n }\n\n this.positionDirty = false;\n }", "function panelLayout(n, R) {\n\tlet params = n.params;\n\tlet num = n.children.length;\n\n\t//console.log('ich bin in panelLayout_!!!!!!!!!!!!',n.params)\n\n\tlet or = params.orientation ? params.orientation : DEF_ORIENTATION;\n\tmFlex(n.ui, or);\n\n\t//console.log(params, num, or);\n\n\t//setting split\n\tlet split = params.split ? params.split : DEF_SPLIT;\n\tif (split == 'min') {\n\t\tlet b = getBounds(n.ui, true); //n.sizeMeasured = { w: b.width, h: b.height };\n\t\treturn { w: b.width, h: b.height }; //n.sizeMeasured;\n\t}\n\n\tlet reverseSplit = false;\n\n\tif (split == 'equal') split = (1 / num);\n\telse if (isNumber(split)) reverseSplit = true;\n\n\tfor (let i = 0; i < num; i++) {\n\t\tlet d = R.uiNodes[n.children[i]].ui;\n\t\tmFlexChildSplit(d, split);\n\n\t\tif (reverseSplit) { split = 1 - split; }\n\t}\n\t// let b = getBounds(n.ui, true); n.sizeMeasured = { w: b.width, h: b.height };return n.sizeMeasured;\n\tlet b = getBounds(n.ui, true); //n.sizeMeasured = { w: b.width, h: b.height };\n\t//console.log('height',b.height);\n\t//n.ui.style.height=b.height+'px';\n\treturn { w: b.width, h: b.height }; //n.sizeMeasured;\n\n}", "firstLayoutCompleted() {\n if (!this.hideBlurryPlaceholder_()) {\n this.togglePlaceholder(false);\n }\n }", "fixLayout() {\n let maxY = 20;\n for (let i = 0; i < this.Input.length; i++) { maxY = Math.max(this.Input[i].layoutProperties.y, maxY); }\n for (let i = 0; i < this.Output.length; i++) { maxY = Math.max(this.Output[i].layoutProperties.y, maxY); }\n if (maxY !== this.layout.height) { this.layout.height = maxY + 10; }\n }", "static position(cfg, data) {\n\n if (cfg.type == 'elk'){\n let layout = H.Graphs.Elk.positions(data);\n layout.then(function(result) {\n return result;\n })\n return layout\n }\n\n if (cfg.type == 'ccnetvis'){\n return H.Graphs.Ccnet.positions(data);\n }\n\n if (cfg.type == 'graphvis'){\n let layout = H.Graphs.GraphViz.positions(data.n, data.e, data.c)\n layout.then(function(result) {\n return result;\n });\n return layout;\n }\n }", "function calElementPos(){\n\t\tcalSize();\n\t\tcalPie();\n\t\tcalGraph();\n\t}", "function applyLayout() {\n $('#pins-container').imagesLoaded(function() {\n // Clear our previous layout handler.\n if(handler) handler.wookmarkClear();\n \n // Create a new layout handler.\n handler = $('#pins-container .pin');\n handler.wookmark({\n autoResize: true,\n offset: 4,\n itemWidth: 242\n });\n\t //show hidden static pins in tempate\n\t $('.load.hide').show();\n });\n}", "function setupRepositioning()\r\n\t {\r\n\t \t$(window).unbind(\"resize.\" + $.akita.NAMESPACE)\r\n\t \t\t.bind(\"resize.\" + $.akita.NAMESPACE, function(){\r\n\t\t\t\t\t$.akita.repositionAll();\r\n\t\t\t\t}).unbind(\"scroll.\" + $.akita.NAMESPACE)\r\n\t\t\t\t.bind(\"scroll.\" + $.akita.NAMESPACE, function(){\r\n\t\t\t\t\t$.akita.repositionAll();\r\n\t\t\t\t});\r\n\t }" ]
[ "0.5961233", "0.5961233", "0.5859002", "0.5846671", "0.5813428", "0.58122605", "0.57694703", "0.57338387", "0.5728721", "0.5710151", "0.5685172", "0.56799024", "0.56204766", "0.56043565", "0.5600555", "0.559614", "0.5595732", "0.558868", "0.55854076", "0.55634403", "0.553763", "0.55292803", "0.5522732", "0.55088484", "0.55043507", "0.55018336", "0.5501334", "0.55004555", "0.5471171", "0.5469645", "0.5469645", "0.5469645", "0.5468746", "0.54533035", "0.5449868", "0.54490155", "0.54441607", "0.5443299", "0.5439855", "0.54283494", "0.5427342", "0.54259145", "0.5421582", "0.54013187", "0.53996474", "0.5396222", "0.53905666", "0.53737175", "0.53658193", "0.53658193", "0.53658193", "0.53658193", "0.53658193", "0.53658193", "0.53658193", "0.53658193", "0.53658193", "0.53658193", "0.53658193", "0.53658193", "0.53658193", "0.53658193", "0.53658193", "0.53658193", "0.53658193", "0.5357398", "0.5354118", "0.534957", "0.5339674", "0.5326494", "0.53254205", "0.53221995", "0.5320272", "0.53187764", "0.53187764", "0.53187764", "0.53187764", "0.53187764", "0.53087765", "0.5304292", "0.5298917", "0.52986276", "0.5283163", "0.5280851", "0.5280826", "0.5277768", "0.527763", "0.5277018", "0.5265494", "0.52652866", "0.5260582", "0.52509314", "0.52461416", "0.52376574", "0.5235838", "0.5230194", "0.52215433", "0.52155304", "0.5213571", "0.5212582", "0.5204635" ]
0.0
-1
set default to level configuration
function setDefault(levels, ecModel) { var globalColorList = ecModel.get('color'); if (!globalColorList) { return; } levels = levels || []; var hasColorDefine; zrUtil.each(levels, function (levelDefine) { var model = new Model(levelDefine); var modelColor = model.get('color'); if (model.get('itemStyle.color') || modelColor && modelColor !== 'none') { hasColorDefine = true; } }); if (!hasColorDefine) { var level0 = levels[0] || (levels[0] = {}); level0.color = globalColorList.slice(); } return levels; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setLevel() {\n level = 1;\n}", "function setLevel(l) {\n storage.level = l;\n console.log(\"SETTING LEVEL\"+l);\n }", "setInitialLevel(level) {\n\t\tthis.initialLevel = level;\n\t\tthis.level = level;\n\t\tthis._updateLevelLinesBox();\n\t}", "set level(level) {\n this._level = level;\n this._settings.level = level;\n }", "function setLevelTo(level) {\r\n\t\tif($['mapsettings'].level==$['mapsettings'].levels) return false;\r\n\t\t$('#levels li.selected').removeClass('selected');\r\n\t\t$['mapsettings'].level = level;\r\n\t\t$($('#changeLevel' + $['mapsettings'].level).parents().get(0)).addClass('selected');\r\n\t\t$['mapsettings'].loaded = new Array(); // Reset loaded array so that images aren't cached.\r\n\t\tloadImages();\r\n\t\t$['mapsettings'].annotations.draw();\r\n\t}", "function setDefault(levels,ecModel){var globalColorList=ecModel.get('color');if(!globalColorList){return;}levels = levels || [];var hasColorDefine;zrUtil.each(levels,function(levelDefine){var model=new Model(levelDefine);var modelColor=model.get('color');if(model.get('itemStyle.normal.color') || modelColor && modelColor !== 'none'){hasColorDefine = true;}});if(!hasColorDefine){var level0=levels[0] || (levels[0] = {});level0.color = globalColorList.slice();}return levels;}", "setLevel(level) {\n this.level = level;\n }", "function apply_level_setup(){\n switch (current_level){\n case 0:\n level_0()\n break;\n case 1:\n level_1()\n break;\n case 2:\n level_2()\n break;\n case 3:\n level_3()\n break;\n case 4:\n level_4()\n break;\n case 5:\n level_5()\n break;\n default:\n console.log(\"Something is wrong. You are probably not in a level \\n Level URL format: [URL]?level=[number]\")\n }\n}", "function setLevel(level) {\n if (level === 1) {\n gUserLevelInput = 4;\n gSetMineNumber = 2;\n } else if (level === 2) {\n gUserLevelInput = 8;\n gSetMineNumber = 10;\n } else if (level === 3) {\n gUserLevelInput = 16;\n gSetMineNumber = 50;\n }\n init()\n}", "function setDefault(levels, ecModel) {\n\t var globalColorList = normalizeToArray(ecModel.get('color'));\n\t var globalDecalList = normalizeToArray(ecModel.get(['aria', 'decal', 'decals']));\n\t\n\t if (!globalColorList) {\n\t return;\n\t }\n\t\n\t levels = levels || [];\n\t var hasColorDefine;\n\t var hasDecalDefine;\n\t each(levels, function (levelDefine) {\n\t var model = new Model(levelDefine);\n\t var modelColor = model.get('color');\n\t var modelDecal = model.get('decal');\n\t\n\t if (model.get(['itemStyle', 'color']) || modelColor && modelColor !== 'none') {\n\t hasColorDefine = true;\n\t }\n\t\n\t if (model.get(['itemStyle', 'decal']) || modelDecal && modelDecal !== 'none') {\n\t hasDecalDefine = true;\n\t }\n\t });\n\t var level0 = levels[0] || (levels[0] = {});\n\t\n\t if (!hasColorDefine) {\n\t level0.color = globalColorList.slice();\n\t }\n\t\n\t if (!hasDecalDefine && globalDecalList) {\n\t level0.decal = globalDecalList.slice();\n\t }\n\t\n\t return levels;\n\t }", "function setUpLevels() {\n if (level === 1) {\n console.log(`level: ${level}`)\n setTime(40)\n } else if (level === 2) {\n console.log(`level: ${level}`)\n setTime(20)\n } else if (level === 3) {\n console.log(`level: ${level}`)\n setTime(10)\n }\n}", "function setLevel(key) {\n\tlevel = key;\n}", "setDefault(newDefault) {\n this.defaultExt = newDefault\n }", "function setDefault(levels, ecModel) {\n var globalColorList = Object(util_model[\"r\" /* normalizeToArray */])(ecModel.get('color'));\n var globalDecalList = Object(util_model[\"r\" /* normalizeToArray */])(ecModel.get(['aria', 'decal', 'decals']));\n\n if (!globalColorList) {\n return;\n }\n\n levels = levels || [];\n var hasColorDefine;\n var hasDecalDefine;\n util[\"k\" /* each */](levels, function (levelDefine) {\n var model = new Model[\"a\" /* default */](levelDefine);\n var modelColor = model.get('color');\n var modelDecal = model.get('decal');\n\n if (model.get(['itemStyle', 'color']) || modelColor && modelColor !== 'none') {\n hasColorDefine = true;\n }\n\n if (model.get(['itemStyle', 'decal']) || modelDecal && modelDecal !== 'none') {\n hasDecalDefine = true;\n }\n });\n var level0 = levels[0] || (levels[0] = {});\n\n if (!hasColorDefine) {\n level0.color = globalColorList.slice();\n }\n\n if (!hasDecalDefine && globalDecalList) {\n level0.decal = globalDecalList.slice();\n }\n\n return levels;\n}", "setLevel(level) {\n if (this.currentLevel != null) {\n this.currentLevel.teardown(this);\n }\n\n this.currentLevel = level;\n\n if (this.currentLevel != null) {\n this.currentLevel.setup(this);\n }\n }", "function setDefault(levels, ecModel) {\n\t var globalColorList = ecModel.get('color');\n\n\t if (!globalColorList) {\n\t return;\n\t }\n\n\t levels = levels || [];\n\t var hasColorDefine;\n\t zrUtil.each(levels, function (levelDefine) {\n\t var model = new Model(levelDefine);\n\t var modelColor = model.get('color');\n\n\t if (model.get('itemStyle.normal.color') || modelColor && modelColor !== 'none') {\n\t hasColorDefine = true;\n\t }\n\t });\n\n\t if (!hasColorDefine) {\n\t var level0 = levels[0] || (levels[0] = {});\n\t level0.color = globalColorList.slice();\n\t }\n\n\t return levels;\n\t}", "setLevel(level) {\n this.consoleTransport.level = level || defaultLevel;\n }", "function setDefault(levels, ecModel) {\n var globalColorList = ecModel.get('color');\n\n if (!globalColorList) {\n return;\n }\n\n levels = levels || [];\n var hasColorDefine;\n zrUtil.each(levels, function (levelDefine) {\n var model = new Model(levelDefine);\n var modelColor = model.get('color');\n\n if (model.get('itemStyle.normal.color') || modelColor && modelColor !== 'none') {\n hasColorDefine = true;\n }\n });\n\n if (!hasColorDefine) {\n var level0 = levels[0] || (levels[0] = {});\n level0.color = globalColorList.slice();\n }\n\n return levels;\n}", "function setDefault(levels, ecModel) {\n var globalColorList = ecModel.get('color');\n\n if (!globalColorList) {\n return;\n }\n\n levels = levels || [];\n var hasColorDefine;\n zrUtil.each(levels, function (levelDefine) {\n var model = new Model(levelDefine);\n var modelColor = model.get('color');\n\n if (model.get('itemStyle.normal.color') || modelColor && modelColor !== 'none') {\n hasColorDefine = true;\n }\n });\n\n if (!hasColorDefine) {\n var level0 = levels[0] || (levels[0] = {});\n level0.color = globalColorList.slice();\n }\n\n return levels;\n}", "function setDefault(levels, ecModel) {\n var globalColorList = ecModel.get('color');\n\n if (!globalColorList) {\n return;\n }\n\n levels = levels || [];\n var hasColorDefine;\n zrUtil.each(levels, function (levelDefine) {\n var model = new Model(levelDefine);\n var modelColor = model.get('color');\n\n if (model.get('itemStyle.normal.color') || modelColor && modelColor !== 'none') {\n hasColorDefine = true;\n }\n });\n\n if (!hasColorDefine) {\n var level0 = levels[0] || (levels[0] = {});\n level0.color = globalColorList.slice();\n }\n\n return levels;\n}", "function levelChangeListener(projectId){\n\t\t$(\"#\"+projectId).val($(\"#\"+projectId).prop(\"defaultSelected\"));\n\t}", "setLevel(value) { this.level = ~~value; }", "set logLevel(level) {\n winston.level = level\n winston.debug('Requested log level to to: ' + level)\n winston.debug('Log level is now: ' + winston.level)\n }", "function setDefault(levels, ecModel) {\n var globalColorList = ecModel.get('color');\n\n if (!globalColorList) {\n return;\n }\n\n levels = levels || [];\n var hasColorDefine;\n zrUtil.each(levels, function (levelDefine) {\n var model = new Model(levelDefine);\n var modelColor = model.get('color');\n\n if (model.get('itemStyle.normal.color')\n || (modelColor && modelColor !== 'none')\n ) {\n hasColorDefine = true;\n }\n });\n\n if (!hasColorDefine) {\n var level0 = levels[0] || (levels[0] = {});\n level0.color = globalColorList.slice();\n }\n\n return levels;\n }", "function setDefaults() {\n dimension.value = 20;\n sim.value = 0.35;\n vacant.value = 0.1;\n split.value = 0.6;\n aColor.value = \"#006EFF\";\n bColor.value = \"#FF7B00\";\n}", "static makeDefault() {\n return new Config(ModelType.MODEL3, BasicLevel.LEVEL2, CGChip.LOWER_CASE, RamSize.RAM_48_KB, Phosphor.WHITE, Background.AUTHENTIC, ScanLines.OFF);\n }", "function updateLevel(lvl) {\n level = lvl;\n }", "function getDefaultZoomLevel() {\n return _config ? _config.defaultZoomLevel : undefined;\n }", "constructor(level = \"info\") {\n this.level = level;\n }", "setLevelInput(value) {\n // Set to null as the fallback value so that _setPadding can fall back to the node level if the\n // consumer set the directive as `mcTreeNodePadding=\"\"`. We still want to take this value if\n // they set 0 explicitly.\n this._level = coerceNumberProperty(value, null);\n this.setPadding();\n }", "levelOpdracht(){\n if(this.level === 1){\n this.setLevel(this.dataOpdrachten[0]);\n }\n if(this.level === 2){\n this.setLevel(this.dataOpdrachten[1]);\n }\n if(this.level === 3){\n this.setLevel(this.dataOpdrachten[2]);\n }\n }", "function setViewLevelProperty(name, default_value, property, value){\n\tvar view = tabsFrame.newView;\n\tvar properties = view[name];\n\tif ((default_value == value) && (properties.hasOwnProperty(property) )){\n\t\tdelete properties[property];\n\t} else {\n\t\tproperties[property] = value;\t\n\t}\n\n\tview[name] = properties;\n tabsFrame.newView = view; \n}", "function initLevel() {\n if (changeRows) {\n newGridRows();\n changeRows = false;\n }\n generateLevel(level);\n initCollectibles();\n\n initEntities();\n }", "setLevel (severity) {\n this.levelSeverity = severity;\n let levels = Object.keys(this.levels);\n for (let level of levels) {\n let lvl = this.levels[level];\n let lvlVal = lvl.value\n if (lvlVal <= this.levelValue) {\n this.levels[level].enable();\n } else {\n this.levels[level].disable();\n }\n }\n }", "set_level(mod, level) {\n const parts = mod.split(\".\");\n let tmp_mod = this._modules;\n //find the desired node to set level for\n for (let ind = 0; ind < parts.length; ++ind) {\n if (!tmp_mod[parts[ind]]) {\n if (console_wrapper) {\n console_wrapper.original_console();\n }\n console.log(\"No such module \" + mod + \" registered\");\n if (console_wrapper) {\n console_wrapper.wrapper_console();\n }\n return;\n }\n tmp_mod = tmp_mod[parts[ind]];\n }\n tmp_mod.__level = level;\n //If subtree exists, set __level for all nodes in it\n this.populate_subtree(tmp_mod, level);\n }", "setDefault() { }", "function levelOne() {\n canDraw.level = 1;\n gridColor(\"black\");\n}", "function turnOnColorDefault(){\n if(currentColorSetting != \"Default\")\n {\n removeCurrentColorSetting();\n currentColorSetting = \"Default\";\n toggleAriaButtonPress('#color-scheme-default');\n }\n}", "function setCustomerDefaults(rec){\n\t\t\t var category = rec.getValue({\n\t\t\t\tfieldId: 'category'\n\t\t\t });\n\t\t\t var pricelevel = rec.getValue({\n\t\t\t\t fieldId:'pricelevel'\n\t\t\t });\n\n\t\t\t if(!category){\n\t\t\t\t rec.setValue('category',2);\n\t\t\t }\n\t\t\t if(!pricelevel){\n\t\t\t\trec.setValue('pricelevel',5);\n\t\t\t }\n\n\t\t\t log.debug ({\n\t\t\t\ttitle: 'Customer cat/price',\n\t\t\t\tdetails: category + '|' + pricelevel\n\t\t\t});\n\n\t\t}", "constructor() {\n super();\n this.setDefaults();\n }", "function default_settings() {\n // logd('default_settings');\n // $('select[name=\"time\"]').val(10);\n // $('select[name=\"caps\"]').val(0);\n // logd('week: '+week);\n set_map();\n tagpro.group.socket.emit(\"setting\", {\"name\": \"time\", \"value\": 10});\n tagpro.group.socket.emit(\"setting\", {\"name\": \"caps\", \"value\": 0});\n // tagpro.group.socket.emit(\"setting\", {\"name\": \"buffDelay\", \"value\": true});\n}", "setLevel(level) {\n this.data = {\n level: level,\n text: this.data.text\n };\n\n /**\n * Highlight button by selected level\n */\n this.settingsButtons.forEach(button => {\n if (button.dataset.level) button.classList.toggle(this._CSS.settingsButtonActive, parseInt(button.dataset.level) === level);\n });\n }", "defaults(state) {\n\t\t// bail if new state is not an object\n\t\tif (!isPlainObject(state)) {\n\t\t\t// nothing to do\n\t\t\treturn ;\n\t\t}\n\n\t\tconst impls = this.childMapping();\n\t\tconst keys = Object.keys(impls);\n\t\tconst stateKeys = Object.keys(state);\n\t\tvar key, stateValue, child;\n\n\t\tfor (let i=0, len=stateKeys.length; i<len; i++) {\n\t\t\tkey = stateKeys[i];\n\t\t\tstateValue = state[key];\n\t\t\tchild = impls[key];\n\n\t\t\tif (child) {\n\t\t\t\tchild.defaults(stateValue);\n\t\t\t} else {\n\t\t\t\tthis.set(key, stateValue);\n\t\t\t}\n\t\t}\n\t}", "assignLevel(node, level) {\n // update the level of the node\n node.level = level;\n\n // the base case\n if (node.children.length === 0)\n {\n return node;\n }\n // the recursive case\n else\n {\n for (var h = 0; h < node.children.length; h++)\n {\n this.assignLevel(node.children[h], level + 1);\n }\n }\n }", "async setDefaults() {\n const defaultLang = 'en';\n const defaultLocale = 'en-US';\n await this.setLanguage(defaultLang);\n await this.setLocale('en-US');\n this.state.defaultLocale.messages = this.language.messages;\n this.state.defaultLocale.language = defaultLang;\n this.state.defaultLocale.localeName = defaultLocale;\n this.state.defaultLocale.localeOptions = this.loadedLocales.get(defaultLocale);\n }", "_setLevel() {\r\n // If the current level is invalid, don't try to set the level\r\n if (this.levelNum < 0 || this.levelNum > MAX_LEVEL) {\r\n return;\r\n }\r\n\r\n // (Re)set the level data and canvas\r\n this.level = JSON.parse(JSON.stringify(this.levelData[this.levelNum]));\r\n this._renderLevel();\r\n\r\n // (Re)set the player position and movement data\r\n this.player.x = this.level.spawn.x * 20;\r\n this.player.y = this.level.spawn.y * 20;\r\n this.player.xVel = 0;\r\n this.player.yVel = 0;\r\n this.player.dir = 'none';\r\n\r\n // Update the level displays\r\n this.levelNumberDisplay.textContent = `Level: ${this.levelNum + 1}`;\r\n this.levelTitleDisplay.textContent = this.level.title;\r\n }", "function setDifficulty(level) {\n switch(level) {\n case 1:\n info.time = 2000;\n info.numberOfWeeds = 9;\n break;\n case 2:\n info.time = 1700;\n info.numberOfWeeds = 7;\n break;\n case 3:\n info.time = 1400;\n info.numberOfWeeds = 5;\n break;\n case 4:\n info.time = 1100;\n info.numberOfWeeds = 3;\n break;\n default:\n console.log(\"default\");\n info.time = 700;\n info.numberOfWeeds = 1;\n }\n}", "colorTreeDefault() {\n let i, color = this.getDefaultColor();\n for(i in this.metadata) {\n this.metadata[i]['branch_color'] = color;\n }\n }", "setDefault() {\n\n if ( this.options.default ) {\n\n this.$field.val(this.options.default).change();\n }\n }", "function set_light_level(module_number, level) {\n\tif (module_number<module_eui_list.length) {\n\t\tsending_path = network_prefix + module_eui_list[module_number] + \"/mosi/pwm\";\n\t\tsend_message(sending_path, \"set freq 800 dev 01 on ch 01 duty \" + level);\n\t}\t\n}", "function setLevelNumber(levelNumber){\n if(levelNumber < 10){\n level_number.html(\"0\" + levelNumber);\n }\n}", "setLevel(value) {\n this.level = value;\n document.querySelector('.display-level h1').innerHTML = this.level; \n }", "mergeDefaultConfigs() {\n\t\tthis.controlOptions = deepmerge( config.defaults, this.controlOptions, {\n\t\t\tarrayMerge: ( destination, source ) => source\n\t\t} );\n\n\t\tthis.baseConfig = $.extend( true, {}, this.controlOptions );\n\n\t\tthis.options.target = null;\n\t\tthis.controlOptions = deepmerge( this.controlOptions, this.options, {\n\t\t\tarrayMerge: ( destination, source ) => source\n\t\t} );\n\t}", "function setDefaults(d) {\n\tmergeOptions(defaults, d);\n}", "function setDefaults(d) {\n\tmergeOptions(defaults, d);\n}", "function setDefaults(d) {\n\tmergeOptions(defaults, d);\n}", "function setDefaults() {\n\tconfig.all = {\n\t\ttitleStyle: {\n\t\t\t'font-src': 'http://fonts.googleapis.com/css?family=Chango',\n\t\t\t'font-family': 'Chango, cursive',\n\t\t\t'color': '#000000',\n\t\t\t'font-size': '48px'\n\t\t},\n\t\ttimerStyle: {\n\t\t\t'background-color': '#32cd32',\n\t\t\t'font-src': 'http://fonts.googleapis.com/css?family=Chango',\n\t\t\t'font-family': 'Chango, cursive',\n\t\t\t'color': '#000000',\n\t\t\t'font-size': '48px'\n\t\t},\n\t\ttimers: [],\n\t\twindowSettings: {\n\t\t\twidth: 650,\n\t\t\theight: 350\n\t\t},\n\t\tusername: '',\n\t\tpassword: '',\n\t\tchannel: '',\n\t\tidInc: 0,\n\t\tactiveID: null\n\t}\n}", "function setToDefault() {\n\t\tkeys = {\n\t\t\tupgradeKey: KeyEvent.DOM_VK_U,\n\t\t\tsellKey: KeyEvent.DOM_VK_S,\n\t\t\tstartWaveKey: KeyEvent.DOM_VK_G,\n\t\t\tquitKey: KeyEvent.DOM_VK_ESCAPE\n\t\t}\n\n\t\t// save these defaults\n\t\tlocalStorage['VWL&AdityaTowerDefense.keysettings'] = JSON.stringify(keys);\n\n\t\tfor(var property in keys) {\n\t\t\tif(keys.hasOwnProperty(property)) {\n\t\t\t\tconsole.log(property);\n\t\t\t\tvar output = document.getElementById(property + '-out');\n\t\t\t\toutput.innerHTML = getKeyWindowOutput(keys[property]) + ' ';\n\t\t\t}\n\t\t}\n\n\t\tif(rebinding) { //if still rebinding when setToDefalut is pressed remove key listener\n\t\t\twindow.removeEventListener('keydown', finishRebind);\n\t\t}\n\n\t\trebinding = false;\n\t\tlastKey = undefined;\n\t}", "function setLogLevel(level) {\r\n instances.forEach(function (inst) {\r\n inst.logLevel = level;\r\n });\r\n}", "set setDefaultColor (color) {\n this.defaultColor = color;\n }", "defaults () {\n }", "reset(level) {\n let settings = new Settings(level);\n this.saveHighScore(settings, level);\n this.updateStoredSettings(settings, level);\n }", "setToNextLevel() {\n let nextLevel = this.levels.find(level => level.getLevelIndexOrder() > this.currentLevel.getLevelIndexOrder());\n this._setCurrentLevel(nextLevel);\n }", "function startLevel (level) {\n var activeLevel = level || 0;\n launch(activeLevel);\n }", "function setItemLevel(menuItem, level){\n\t // For root node\n\t // Careful level is 0 from the begining because it is the index from the map function\n\t if(!level){\n\t menuItem.level = 1;\n\t } else {\n\t menuItem.level = ++level;\n\t }\n\n\t if(menuItem.items && menuItem.items.length) {\n\t menuItem.items.map(function(node) {\n\t return setItemLevel(node, menuItem.level);\n\t });\n\t }\n\n\t return menuItem;\n\t \t}", "assignLevel(node, level) {\n\t\tnode.level = level;\n\t\tfor(var i in node.children){\n\t\t\tthis.assignLevel(node.children[i], level+1);\n\t\t}\n\t}", "function insertDefaultConfigValues() {\n insertConfigParamValue('city', 'Villaviciosa');\n insertConfigParamValue('temperatureUnit', 'Celsius');\n}", "function setlevel(){\n if(valeurMic<20){\n return '0';\n }\n if(valeurMic<40){\n return '1';\n }\n if(valeurMic<60){\n return '2';\n }\n if(valeurMic<80){\n return '3';\n }\n if(valeurMic<90){\n return '4';\n }\n if(valeurMic<100){\n return '5';\n }\n if(valeurMic>=100){\n return '6';\n }\n}", "function setLevel() {\n\n //titulo fase\n var title = makeText(levels[currentLevel].name, 100, 42, 8, '#ffffff');\n\n var instructions;\n\n //instruções\n if (currentLevel < 4) {\n instructions = makeText('Click on the glowing block.', 160, 12, 0, '#cccccc');\n } else {\n instructions = makeText('Choose the modifiers and click on the glowing block.', 160, 12, 0, '#cccccc');\n }\n\n var author = makeText('Author: Alessandro Siqueira - alessandro.state@gmail.com', app.view.height - 20, 11, 0, '#aaaaaa');\n\n //bloco inicial\n playerBlock = new defBlock(\n levels[currentLevel].initial.size,\n levels[currentLevel].initial.color,\n 1,\n 1\n );\n\n //bloco final\n finalBlock = new defBlock(\n levels[currentLevel].final.size,\n levels[currentLevel].final.color,\n .3,\n -1,\n levels[currentLevel].final.rotation\n );\n finalBlock.loopBol = false;\n\n //bloco transformado em azul\n playerBlockMod = new defBlock(1, '#0000ff', 1, 0);\n playerBlockMod.loopBol = false;\n playerBlockMod.x = -100;\n\n scnCurrent.addChild(makePath());\n scnCurrent.addChild(title);\n scnCurrent.addChild(instructions);\n scnCurrent.addChild(author);\n\n //modificadores\n for (var n = 0; n < levels[currentLevel].modifiers.length; n++) {\n activeModifiers.push(setModifier(levels[currentLevel].modifiers.length, n));\n scnCurrent.addChild(activeModifiers[n]);\n }\n\n scnCurrent.addChild(finalBlock);\n scnCurrent.addChild(playerBlockMod);\n scnCurrent.addChild(playerBlock);\n\n app.stage.addChild(scnCurrent);\n\n app.renderer.render(stage);\n}", "setLevel(level) {\n if (level instanceof LogLevel) {\n this.level = level;\n }\n\n this.emit('setLevel', this.level);\n\n return this.level;\n }", "function setFilterToDefault() {\r\n\r\n\tassistsFilter = ['both','both','both','both','both','both','both','both','both'];\r\n\tgameSettingsFilter = [true,true,true,true,true,true,true];\r\n\t\r\n\tloadSavedSettings();\r\n\tbackupFilterSettings();\r\n\tsetRadiosToDefault();\r\n\t\r\n\tsetupDefault.checked = gameSettingsFilter[0];\r\n\tsetupCustom.checked = gameSettingsFilter[1];\r\n\tcontrolWheel.checked = gameSettingsFilter[2];\r\n\tcontrolPad.checked = gameSettingsFilter[3];\r\n\tcontrolKeyboard.checked = gameSettingsFilter[4];\r\n\tcameraIn.checked = gameSettingsFilter[5];\r\n\tcameraOut.checked = gameSettingsFilter[6];\r\n\t\r\n\tsetSetupLabel();\r\n\tsetControllerLabel();\r\n\tsetCameraLabel();\r\n}", "function defaultValues(){\n\tbluValue=0;\n\thueRValue=0;\n\tinvtValue=0;\n\tbrightnValue=1;\n\tsepiValue=0;\n\tgraysaValue=0;\n\topaciValue=1;\n\tsatuvalue=1;\n\tcontrstValue=1;\n}", "set(level: number) {\n if (level === -1) {\n this.state.on = false;\n return;\n }\n level = Math.round(level);\n // Restrict to end of array\n if (level >= this.config.tones.length) {\n level = this.config.tones.length - 1;\n }\n // Set state, not tone directly, to avoid abrubtly changing tone\n this.state.freq = this.config.tones[level];\n this.state.dur = this.config.durations[level];\n this.state.dutyCycle = this.config.dutyCycles[level];\n\n // Switch on if off\n if (this.state.on === false) {\n this.state.on = true;\n this._updateTone();\n }\n }", "function currentLevel(currentLevel: int) {\n level = currentLevel;\n}", "function levelTwo() {\n canDraw.level = 2;\n gridColor(\"black\");\n\n}", "function setGrowlDefaults(options) {\n var context = getContext();\n context.jGrowl.defaults = context.extend(context.jGrowl.defaults, options);\n}", "function setLogLevel(level) {\n instances.forEach(function (inst) {\n inst.logLevel = level;\n });\n}", "function setLogLevel(level) {\n instances.forEach(function (inst) {\n inst.logLevel = level;\n });\n}", "function setLogLevel(level) {\n instances.forEach(function (inst) {\n inst.logLevel = level;\n });\n}", "function addDefault (build_statement) {\n ninja_config.default_build_statements.push({\n build_statement: build_statement\n });\n}", "function changeLevel(levelIndex) {\n // If level number is higher than level list, restart count\n if(levelIndex > levels.length-1) {\n levelNum = 0;\n levelIndex = levelNum;\n }\n parseLevel('level-data/' + levels[levelIndex] + '.json');\n }", "function changeDefault(id) {\n var caller = document.getElementById(id.toString());\n window.battle.lock_action(caller, 1, 'magic', id);\n window.battle.set_hostile_subattack(id);\n }", "setLogLevel(logLevel) {\n if (this.availableLogLevels.indexOf(logLevel) > -1) {\n this.logLevel = logLevel;\n }\n }", "function changeLevel () {\n this.scene.start('Transi', {choix: this.choix, or: this.or, argent: this.argent, bronze: this.bronze, niveau: this.niveau, vie: this.vie, score: this.score});\n }", "set default(defaultValue) {\n\t\tthis._hasDefault = true;\n\t\tthis._defaultValue = defaultValue;\n\t}", "async function setSwitchLevel(context) {\n // Get weather with user's zip code\n const currentWeather = await weather.getCurrentWeather(context.configStringValue('zipCode'));\n const userMaximumBrightness = context.configStringValue('maximumBrightnessLevel');\n const brightness = weather.getBrightnessLevel(currentWeather, userMaximumBrightness);\n // Get the user selected color temperature\n const colorTemperature = context.configStringValue('colorTemperature');\n const lightColor = colorTemperatures[colorTemperature];\n await context.api.devices.sendCommands(context.config.colorLight, [\n {\n capability: 'switch',\n command: 'on'\n },\n {\n capability: 'switchLevel',\n command: 'setLevel',\n arguments: [brightness] // TODO: can we use the rate to fade between changes?\n },\n {\n capability: 'colorControl',\n command: 'setColor',\n arguments: [lightColor]\n }\n ]);\n}", "updateConfigs(){\n this.level = this.scene.level;\n this.mode = parseFloat(this.scene.mode);\n }", "function defineRootDropmenusPosition(self, powerElement) {\n\tif (powerElement.defaultPosition) {\n\t\treturn;\n\t} else if (self.defaultPosition) {\n\t\tpowerElement.defaultPosition = self.defaultPosition;\n\t} else {\n\t\tif (self.element.classList.contains('pw-bottom')) {\n\t\t\tpowerElement.defaultPosition = 'top-right';\n\t\t} else if (self.element.classList.contains('pw-right')) {\n\t\t\tpowerElement.defaultPosition = 'left-bottom';\n\t\t} else if (self.element.classList.contains('pw-left')) {\n\t\t\tpowerElement.defaultPosition = 'right-bottom';\n\t\t} else {\n\t\t\tpowerElement.defaultPosition = 'bottom-right';\n\t\t}\n\t}\n}", "constructor(levels){\n super(levels);\n }", "function populateDefaultOptions(currentOptions) {\n _.defaults(currentOptions, DEFAULT_OPTIONS);\n\n populateDefaultBaseLayerOptions(currentOptions);\n\n console.log(\"[ALA-Map] Default options have been set.\");\n }", "function loginit(loglevel) {\n if ( /normal|verbose|veryverbose/.test(loglevel) ) { llog.on(); }\n //if (loglevel ==='verbose' ) { ... } // enable log on child module\n //if (loglevel ==='veryverbose' ) { ... } // enable verbose log on child module\n}", "_loadFileConfig() {\n try {\n let lines = fs.readFileSync(this._LOGLOVE_CONFIG).toString().split('\\n');\n for (let line of lines) {\n let levelPattern = line.split('=');\n this._setLevelAndPatterns(levelPattern[0], levelPattern[1]);\n }\n } catch (err) {\n // console.log('_loadFileConfig', err);\n }\n }", "_saveConfigurationInitial() {\n\t\tsuper._saveConfigurationInitial();\n\n\t\tthis.currentValues = this.getInitialValues();\n\t\tthis.shadowType = this.currentValues.inset ? 'inset' : '';\n\t\tthis.shadowColor = this.getShadowColor();\n\t}", "function setDefaults(){\n\n $(\"#311MessageDBsummary\\\\.fmw span.db_connection.fmes-form-component select\").prop(\"disabled\", true);\n\n $(\"#UpdateDepartmentDB\\\\.fmw span.db_connection.fmes-form-component select\").change(function() {\n var val = $(this).val();\n $('#311MessageDBsummary\\\\.fmw span.db_connection.fmes-form-component select option').each(function(){\n var val2 = $(this).html();\n if (val2 == val) {\n $(this).prop('selected', true);\n } else {\n $(this).prop('selected', false);\n }\n });\n });\n $(\"#311MessageDBsummary\\\\.fmw span.RequestType.fmes-form-component select\").prop(\"value\", \"ALL\");\n $(\"#311MessageDBsummary\\\\.fmw span.Status.fmes-form-component select\").prop(\"value\", \"ALL\");\n $(\"#311PublicMessageLoader\\\\.fmw span.RequestType.fmes-form-component select\").prop(\"value\", \"Safety\");\n}", "setLoggingLevel(logLevel) {\n this.logLevel = logLevel;\n }", "setLightLevel(message) {\n const level = message\n this.debug(`Received set brightness level to ${level}`)\n if (isNaN(level)) {\n this.debug('Brightness command received but not a number')\n } else if (!(level >= 0 && level <= 100)) {\n this.debug('Brightness command received but out of range (0-100)')\n } else {\n this.device.setInfo({ device: { v1: { level: level / 100 } } })\n }\n }", "function defaultsClick() {\n Common.defaultSettings();\n setControlValues();\n Common.setTheme(document.getElementById('theme').value);\n}", "function setCurrentLevel(level) {\n currentLevel = level;\n seconds.innerHTML = currentLevel;\n}" ]
[ "0.6801757", "0.6353623", "0.63523316", "0.6323303", "0.6295211", "0.6184253", "0.6089131", "0.6020891", "0.5996376", "0.5939502", "0.59392095", "0.5921456", "0.5896845", "0.5895545", "0.58174103", "0.5783133", "0.5781619", "0.5726141", "0.5726141", "0.5726141", "0.57230496", "0.56969273", "0.5691536", "0.5681961", "0.5668271", "0.56612694", "0.56540257", "0.5604724", "0.5598175", "0.55958784", "0.55708885", "0.5550774", "0.55408895", "0.5533107", "0.548157", "0.54795396", "0.5472522", "0.54392564", "0.54377604", "0.5430355", "0.54300076", "0.54298025", "0.53880763", "0.53728753", "0.5368976", "0.53681475", "0.53569734", "0.535438", "0.5354208", "0.5321221", "0.5312793", "0.53076774", "0.52981615", "0.5290842", "0.5290842", "0.5290842", "0.5280308", "0.5263951", "0.5260139", "0.5254295", "0.5253941", "0.5251382", "0.52432853", "0.5240655", "0.5238661", "0.5223526", "0.5203684", "0.51862997", "0.5183398", "0.5181414", "0.5174395", "0.51480407", "0.5147633", "0.5141877", "0.5135013", "0.5134011", "0.51263005", "0.51263005", "0.51263005", "0.512485", "0.51246166", "0.51234525", "0.50992465", "0.5094789", "0.50830066", "0.5077512", "0.5076416", "0.507498", "0.5073034", "0.5066502", "0.50660527", "0.50659436", "0.5059828", "0.505034", "0.50473464", "0.50425655", "0.5036486", "0.50190204" ]
0.5674742
26
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. / Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function normalize(a) { if (!(a instanceof Array)) { a = [a, a]; } return a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onChildAppStart () {\n\n }", "get Android() {}", "onMessageStart() { }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "createStream () {\n\n }", "onComponentMount() {\n\n }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "didMount() {\n }", "requestContainerInfo() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "function bridgeAndroidAndIOS() {\r\n\r\n //ios\r\n function setupWebViewJavascriptBridge(callback) {\r\n if (window.WebViewJavascriptBridge) {\r\n return callback(WebViewJavascriptBridge);\r\n }\r\n if (window.WVJBCallbacks) {\r\n return window.WVJBCallbacks.push(callback);\r\n }\r\n window.WVJBCallbacks = [callback];\r\n var WVJBIframe = document.createElement('iframe');\r\n WVJBIframe.style.display = 'none';\r\n WVJBIframe.src = 'https://__bridge_loaded__';\r\n document.documentElement.appendChild(WVJBIframe);\r\n setTimeout(function() {\r\n document.documentElement.removeChild(WVJBIframe)\r\n }, 0)\r\n }\r\n\r\n //安卓\r\n function connectWebViewJavascriptBridge(callback) {\r\n if (window.WebViewJavascriptBridge) {\r\n callback(WebViewJavascriptBridge)\r\n } else {\r\n document.addEventListener(\r\n 'WebViewJavascriptBridgeReady',\r\n function() {\r\n callback(WebViewJavascriptBridge)\r\n },\r\n false\r\n );\r\n }\r\n }\r\n\r\n function bridgeLog(logContent) {\r\n uni.showModal({\r\n title: \"原始数据\",\r\n content: logContent,\r\n })\r\n }\r\n\r\n switch (uni.getSystemInfoSync().platform) {\r\n case 'android':\r\n connectWebViewJavascriptBridge(function(bridge) {\r\n bridge.init();\r\n bridge.registerHandler(\"GetUser\", function(data, responseCallback) {\r\n if(JSON.parse(data).guid != \"null\"){\r\n uni.setStorageSync('userInfo', {\r\n guid: JSON.parse(data).guid,\r\n token: JSON.parse(data).token\r\n })\r\n }\r\n uni.setStorageSync('parameter', {\r\n activityID: JSON.parse(data).activityID,\r\n AppCode: JSON.parse(data).AppCode\r\n })\r\n // 初始传入token和guid\r\n Vue.config.configDic = {\r\n Authorization: JSON.parse(data).Authorization,\r\n statusBarHeight: Number.parseInt(JSON.parse(data).statusBarHeight),\r\n };\r\n });\r\n\r\n })\r\n break;\r\n case 'ios':\r\n setupWebViewJavascriptBridge(function(bridge) {\r\n bridge.registerHandler('GetUser', function(data, responseCallback) {\r\n if(data.guid != \"null\"){\r\n uni.setStorageSync('userInfo', {\r\n guid: data.guid,\r\n token: data.token\r\n })\r\n }\r\n uni.setStorageSync('parameter', {\r\n activityID: data.activityID,\r\n AppCode: data.AppCode\r\n })\r\n // 初始传入token和guid\r\n Vue.config.configDic = {\r\n Authorization: data.Authorization,\r\n productID: data.productID,\r\n statusBarHeight: data.statusBarHeight,\r\n };\r\n })\r\n })\r\n break;\r\n default:\r\n console.log('运行在开发者工具上')\r\n break;\r\n }\r\n\r\n}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "constructor(speechCallback, clientId, streamId) {\n console.log(\"in gcloud\");\n const useOpus = false;\n this.clientId = clientId;\n this.streamId = streamId;\n this.isOpen = true;\n\n // Note: \n // 1) The client side detects silence and does a startStream, and endStream\n // The streamId is incremented everytime this happens, \n // so a combination of clientId + streamId can uniquely identify a stream.\n // The server will be transcribing each client's stream in parallel.\n //\n // 2) The streaming API has a limit of 5 minutes. So just before 5 minutes are up\n // there will timer that will close and reopen the stream. Any non final results will\n // we sent again to be re-transcribed,\n // The restartCounter will be incremented every time the stream is restarted. However\n // the streamId will remain the same.\n //\n // 3) Every stream will have set of results. Some results will be final and some won't be\n // After a result is final, that portion of the audio will not be transcribed again by the API\n // each final result will have resultEndTime, - this is time in seconds (and nanoseconds) \n // from the time the stream was started/restarted.\n // Results don'd have a startTime, it is implicit that the startTime is resultEndTime\n // of the last final stream, or 0 if there was no final stream before this\n // We augment the result to add this startTime\n //\n // We also keep a cumulative restartTime, which is the difference betwen the beginning of \n // stream start and begining of the most recent stream restart. And add this to \n // the startTime and endTime. This way the client is completely unaware of the internal restarts\n // \n \n // Have we started/restarted a new stream ?\n this.newStream = true;\n\n // number of times the stream has been restarted\n this.restartCounter = 0;\n\n // audio Input is any array of chunks (buffer)\n this.audioInput = [];\n this.audioInputSize = 0; // total size of all the buffers\n\n // the end time (in seconds) of the last result. \n // the End time is calculated from the beginning of start/restart stream\n this.resultEndTime = 0;\n\n // the end time of the last final result.\n this.finalEndTime = 0;\n\n // the start time (in seconds) of the current result. \n // It is calculated fom beginning of start/restart stream\n this.startTime = 0;\n \n // the time between the of beginning of start stream and the beginning of the most current restart stream.\n this.restartTime = 0;\n\n\n this.lastTranscriptWasFinal = false;\n\n this.restartTimer = null;\n\n this.config = {\n encoding: useOpus ? 'OGG_OPUS' : 'LINEAR16',\n sampleRateHertz: useOpus ? 48000 : 16000,\n languageCode: 'en_us',\n enableAutomaticPunctuation: true,\n speechContexts: [{ phrases: phrases}],\n };\n\n this.request = {\n config : this.config,\n interimResults: true,\n };\n\n this.startStreamInternal();\n }", "constructor() {\n }", "constructor(info) {\n super();\n\n _defineProperty(this, \"_peerConnectionId\", void 0);\n\n _defineProperty(this, \"_reactTag\", void 0);\n\n _defineProperty(this, \"_id\", void 0);\n\n _defineProperty(this, \"_label\", void 0);\n\n _defineProperty(this, \"_maxPacketLifeTime\", void 0);\n\n _defineProperty(this, \"_maxRetransmits\", void 0);\n\n _defineProperty(this, \"_negotiated\", void 0);\n\n _defineProperty(this, \"_ordered\", void 0);\n\n _defineProperty(this, \"_protocol\", void 0);\n\n _defineProperty(this, \"_readyState\", void 0);\n\n _defineProperty(this, \"_subscriptions\", []);\n\n _defineProperty(this, \"binaryType\", 'arraybuffer');\n\n _defineProperty(this, \"bufferedAmount\", 0);\n\n _defineProperty(this, \"bufferedAmountLowThreshold\", 0);\n\n this._peerConnectionId = info.peerConnectionId;\n this._reactTag = info.reactTag;\n this._label = info.label;\n this._id = info.id === -1 ? null : info.id; // null until negotiated.\n\n this._ordered = Boolean(info.ordered);\n this._maxPacketLifeTime = info.maxPacketLifeTime;\n this._maxRetransmits = info.maxRetransmits;\n this._protocol = info.protocol || '';\n this._negotiated = Boolean(info.negotiated);\n this._readyState = info.readyState;\n\n this._registerEvents();\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onChildAppSourceChangeRestart () {\n\n }", "constructor() {\n\n\t}", "async componentDidUpdate() {\n console.log(this.props.directory);\n //this needs to be replaced with environment variable\n const beginingUrl = \"http://10.34.1.30:8080/songs/\";\n const songLoc = this.props.directory + \"/outputlist.m3u8\";\n var hlsUrl = beginingUrl + songLoc;\n var audio = this.player;\n\n //Should this logic be loacated here??This looks hacky,\n const token = await getToken();\n let bearerTokenString = \"Bearer \" + token;\n\n if (Hls.isSupported()) {\n var hls = new Hls({\n // This configuration is required to insure that only the\n // viewer can access the content by sending a session cookie\n // to api.video service\n xhrSetup: function (xhr, url) {\n xhr.setRequestHeader(\"Authorization\", bearerTokenString);\n },\n });\n hls.loadSource(hlsUrl);\n hls.attachMedia(audio);\n hls.on(Hls.Events.MANIFEST_PARSED, function () {\n audio.play();\n });\n } else if (audio.canPlayType(\"application/vnd.apple.mpegurl\")) {\n console.log(\"Nigga we here!!\");\n audio.src = hlsUrl;\n audio.addEventListener(\"loadedmetadata\", function () {\n audio.play();\n });\n }\n }", "onMessageReceive() {}", "constructor() {\n\t}", "constructor() {\n\t}", "componentWillMount() {\n //CodePush.disallowRestart();\n //Alert.alert(\"mounted cool vite OK OK MAINTENANT CA MARCHE !!!!!\");\n/*CodePush.sync(\n{\ndeploymentKey: 'giMb817KrtTFkIuOg4i5ohnEUDyoBJvD1i-VN',\nupdateDialog: true,\ninstallMode: CodePush.InstallMode.IMMEDIATE,\n},\nthis.CodePushStatusDidChange.bind(this),\nthis.CodePushDownloadDidProgress.bind(this)\n);*/\n /* Animated.loop(\n Animated.sequence([\n Animated.timing(this.animatedValue, { toValue: 1, duration: 3000, easing: Easing.ease, useNativeDriver: true }),\n Animated.timing(this.animatedValue, { toValue: 0, duration: 3000, easing: Easing.ease, useNativeDriver: true }),\n ])).start();*/\n //this.toggleLike(); \n //CodePush.notifyApplicationReady();\n this._onLoadStart();\n }", "get supportStreaming() { return exists && has(WA.instantiateStreaming); }", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "_init(config) {\n this.name = config.name;\n this.appId = config.appid || config.appId;\n this.serverUrl = config.server_url + '/sync_xcx';\n this.autoTrackProperties = {};\n // cache commands.\n this._queue = [];\n\n if (config.isChildInstance) {\n this._state = {};\n } else {\n logger.enabled = config.enableLog;\n this.instances = []; // 子实例名称\n this._state = {\n getSystemInfo: false,\n initComplete: false,\n };\n systemInfo.getSystemInfo(() => {\n this._updateState({\n getSystemInfo: true,\n });\n });\n\n if (config.autoTrack) {\n this.autoTrack = PlatformAPI.initAutoTrackInstance(this, config);\n } else {\n var launchOptions = PlatformAPI.getAppOptions((options) => {\n if (options && options.scene) {\n this._setAutoTrackProperties({\n '#scene': options.scene,\n });\n }\n\n });\n if (launchOptions.scene) {\n this._setAutoTrackProperties({\n '#scene': launchOptions.scene,\n });\n }\n }\n }\n\n this.store = new ThinkingDataPersistence(config, () => {\n if (this.config.asyncPersistence && _.isFunction(this.config.persistenceComplete)) {\n this.config.persistenceComplete(this);\n }\n this._updateState();\n });\n }", "onChildAppRestart (/* reason */) {\n\n }", "_addHMRClientCode(data) {\n// If we have it, grab supporting code...\n let prependage = fs.readFileSync('./lib/hmr/clientSocket.js'),\n appendage = fs.readFileSync('./lib/hmr/hmr.js')\n\n// Prepend clientSocket.js to bundle.... Append hmr runtime to bundle\n return `${prependage}${data}${appendage}`\n }", "componentDidMount() {\n this.setState({\n configuration: {\n flow: {\n name: \"sample1\",\n id: \"01\",\n components: [\n {\n type: \"http-listener\",\n id: \"http-list-01\",\n properties: {\n method: \"get\",\n port: 8000,\n path: \"http://localhost\"\n }\n },\n {\n type: \"logger\",\n id: \"logger-01\",\n properties: {\n level: \"info\"\n }\n },\n {\n type: \"file-writer\",\n id: \"file-write-01\",\n properties: {\n location: \"xx\",\n username: \"sachith\",\n password: \"\",\n filename: \"hello.txt\"\n }\n }\n ]\n }\n }\n\n });\n }", "componentWillUnmount(){\n Streaming.disconnect();\n }", "pushStart() {\n Cordova.exec(\n () => {},\n () => {},\n 'SparkProxy',\n 'pushStart',\n []);\n }", "async onReady() {\n // Initialize your adapter here\n // Subsribe to all state changes\n this.subscribeStates('*');\n this.axiosInstance = axios_1.default.create({\n baseURL: `http://${this.config.host}/api/v1/`,\n timeout: 1000\n });\n // try to ping volumio\n const connectionSuccess = await this.pingVolumio();\n if (this.config.checkConnection) {\n let interval = this.config.checkConnectionInterval;\n if (!interval || !isNumber(interval)) {\n this.log.error(`Invalid connection check interval setting. Will be set to 30s`);\n interval = 30;\n }\n this.checkConnectionInterval = setInterval(this.checkConnection, interval * 1000, this);\n }\n // get system infos\n if (connectionSuccess) {\n this.apiGet('getSystemInfo').then(sysInfo => {\n this.setStateAsync('info.id', sysInfo.id, true);\n this.setStateAsync('info.host', sysInfo.host, true);\n this.setStateAsync('info.name', sysInfo.name, true);\n this.setStateAsync('info.type', sysInfo.type, true);\n this.setStateAsync('info.serviceName', sysInfo.serviceName, true);\n this.setStateAsync('info.systemversion', sysInfo.systemversion, true);\n this.setStateAsync('info.builddate', sysInfo.builddate, true);\n this.setStateAsync('info.variant', sysInfo.variant, true);\n this.setStateAsync('info.hardware', sysInfo.hardware, true);\n });\n // get inital player state\n this.updatePlayerState();\n }\n if (this.config.subscribeToStateChanges && this.config.subscriptionPort && connectionSuccess) {\n this.log.debug('Subscription mode is activated');\n try {\n this.httpServerInstance = this.httpServer.listen(this.config.subscriptionPort);\n this.log.debug(`Server is listening on ${ip_1.default.address()}:${this.config.subscriptionPort}`);\n this.subscribeToVolumioNotifications();\n }\n catch (error) {\n this.log.error(`Starting server on ${this.config.subscriptionPort} for subscription mode failed: ${error.message}`);\n }\n }\n else if (this.config.subscribeToStateChanges && !this.config.subscriptionPort) {\n this.log.error('Subscription mode is activated, but port is not configured.');\n }\n else if (!this.config.subscribeToStateChanges && connectionSuccess) {\n this.unsubscribeFromVolumioNotifications();\n }\n this.httpServer.post('/volumiostatus', (req, res) => {\n this.onVolumioStateChange(req.body);\n res.sendStatus(200);\n });\n }", "function IbtRealTimeSJ(){/***********************************************************\n\t * @attributes\n\t ***********************************************************/var appKey;// application key\n\tvar authToken;// authentication token\n\tvar clusterUrl;// cluster URL to connect\n\tvar waitingClusterResponse;// indicates whether is waiting for a cluster response\n\tvar connectionTimeout;// connection timeout in milliseconds\n\tvar messageMaxSize;// message maximum size in bytes\n\tvar channelMaxSize;// channel maximum size in bytes\n\tvar channelsMaxSize;// maximum of channels for batchSend\n\tvar messagesBuffer;// buffer to hold the message parts\n\tvar id;// object identifier\n\tvar isConnected;// indicates whether the client object is connected\n\tvar isConnecting;// indicates whether the client object is connecting\n\tvar alreadyConnectedFirstTime;// indicates whether the client already connected for the first time\n\tvar stopReconnecting;// indicates whether the user disconnected (stop the reconnecting proccess)\n\tvar ortc;// represents the object itself\n\tvar sockjs;// socket connected to\n\tvar url;// URL to connect\n\tvar userPerms;// user permissions\n\tvar connectionMetadata;// connection metadata used to identify the client\n\tvar announcementSubChannel;// announcement subchannel\n\tvar subscribedChannels;// subscribed/subscribing channels\n\tvar lastKeepAlive;// holds the time of the last keep alive received\n\tvar invalidConnection;// indicates whether the connection is valid\n\tvar reconnectIntervalId;// id used for the reconnect interval\n\tvar reconnectStartedAt;// the time which the reconnect started\n\tvar validatedTimeoutId;// id used for the validated timeout\n\tvar validatedArrived;// indicates whether the validated message arrived\n\tvar retryingWithSsl;// indicates whether the connection is being retried with SSL\n\tvar protocol;// protocol to use\n\tvar sslSessionCookieName;// the SSL session cookie name\n\tvar sessionCookieName;// the session cookie name\n\tvar sessionId;// the session ID\n\tvar registrationId;// browser device token for push notifications\n\tvar pushPlatform;// push notifications platform\n\t/***********************************************************\n\t * @attributes initialization\n\t ***********************************************************/sslSessionCookieName=\"ortcssl\";sessionCookieName=\"ortcsession-\";connectionTimeout=5000;messageMaxSize=800;channelMaxSize=100;connectionMetadataMaxSize=256;channelsMaxSize=50;// Time in seconds\n\tvar heartbeatDefaultTime=15;// Heartbeat default interval time\n\tvar heartbeatDefaultFails=3;// Heartbeat default max fails\n\tvar heartbeatMaxTime=60;var heartbeatMinTime=10;var heartbeatMaxFails=6;var heartbeatMinFails=1;var heartbeatTime=heartbeatDefaultTime;// Heartbeat interval time\n\tvar heartbeatFails=heartbeatDefaultFails;// Heartbeat max fails\n\tvar heartbeatInterval=null;// Heartbeat interval\n\tvar heartbeatActive=false;messagesBuffer={};subscribedChannels={};isConnected=false;isConnecting=false;alreadyConnectedFirstTime=false;invalidConnection=false;waitingClusterResponse=false;validatedArrived=false;retryingWithSsl=false;ortc=this;lastKeepAlive=null;userPerms=null;reconnectStartedAt=null;protocol=undefined;pushPlatform=\"GCM\";var delegateExceptionCallback=function(ortcArg,event){if(ortcArg!==null&&ortcArg.onException!==null){ortcArg.onException(ortcArg,event);}};/***********************************************************\n\t * @properties\n\t ***********************************************************/this.getId=function(){return id;};this.setId=function(newId){id=newId;};this.getUrl=function(){return url;};this.setUrl=function(newUrl){url=newUrl;clusterUrl=null;};this.getClusterUrl=function(){return clusterUrl;};this.setClusterUrl=function(newUrl){clusterUrl=newUrl;url=null;};this.getConnectionTimeout=function(){return connectionTimeout;};this.setConnectionTimeout=function(newTimeout){connectionTimeout=newTimeout;};this.getIsConnected=function(){return isConnected&&ortc.sockjs!==null;};this.getConnectionMetadata=function(){return connectionMetadata;};this.setConnectionMetadata=function(newConnectionMetadata){connectionMetadata=newConnectionMetadata;};this.getAnnouncementSubChannel=function(){return announcementSubChannel;};this.setAnnouncementSubChannel=function(newAnnouncementSubChannel){announcementSubChannel=newAnnouncementSubChannel;};this.getProtocol=function(){return protocol;};this.setProtocol=function(newProtocol){protocol=newProtocol;};this.getSessionId=function(){return sessionId;};/*\n\t * Get heartbeat interval.\n\t */this.getHeartbeatTime=function(){return heartbeatTime;};/*\n\t * Set heartbeat interval.\n\t */this.setHeartbeatTime=function(newHeartbeatTime){if(newHeartbeatTime&&!isNaN(newHeartbeatTime)){if(newHeartbeatTime>heartbeatMaxTime||newHeartbeatTime<heartbeatMinTime){delegateExceptionCallback(ortc,`Heartbeat time is out of limits - Min: ${heartbeatMinTime} | Max: ${heartbeatMaxTime}`);}else{heartbeatTime=newHeartbeatTime;}}else{delegateExceptionCallback(ortc,`Invalid heartbeat time ${newHeartbeatTime}`);}};/*\n\t * Get how many times can the client fail the heartbeat.\n\t */this.getHeartbeatFails=function(){return heartbeatFails;};/*\n\t * Set heartbeat fails. Defines how many times can the client fail the heartbeat.\n\t */this.setHeartbeatFails=function(newHeartbeatFails){if(newHeartbeatFails&&!isNaN(newHeartbeatFails)){if(newHeartbeatFails>heartbeatMaxFails||newHeartbeatFails<heartbeatMinFails){delegateExceptionCallback(ortc,`Heartbeat fails is out of limits - Min: ${heartbeatMinFails} | Max: ${heartbeatMaxFails}`);}else{heartbeatFails=newHeartbeatFails;}}else{delegateExceptionCallback(ortc,`Invalid heartbeat fails ${newHeartbeatFails}`);}};/*\n\t * Get heart beat active.\n\t */this.getHeartbeatActive=function(){return heartbeatActive;};/*\n\t * Set heart beat active. Heart beat provides better accuracy for presence data.\n\t */this.setHeartbeatActive=function(active){heartbeatActive=active;};/***********************************************************\n\t * @events\n\t ***********************************************************/this.onConnected=null;this.onDisconnected=null;this.onSubscribed=null;this.onUnsubscribed=null;this.onException=null;this.onReconnecting=null;this.onReconnected=null;/***********************************************************\n\t * @public methods\n\t ***********************************************************//*\n\t * Connects to the gateway with the application key and authentication token.\n\t */this.connect=function(appKey,authToken){/*\n\t Sanity Checks\n\t */if(isConnected){delegateExceptionCallback(ortc,\"Already connected\");}else if(!url&&!clusterUrl){delegateExceptionCallback(ortc,\"URL and Cluster URL are null or empty\");}else if(!appKey){delegateExceptionCallback(ortc,\"Application Key is null or empty\");}else if(!authToken){delegateExceptionCallback(ortc,\"Authentication Token is null or empty\");}else if(url&&!ortcIsValidUrl(url)){delegateExceptionCallback(ortc,\"Invalid URL\");}else if(clusterUrl&&!ortcIsValidUrl(clusterUrl)){delegateExceptionCallback(ortc,\"Invalid Cluster URL\");}else if(!ortcIsValidInput(appKey)){delegateExceptionCallback(ortc,\"Application Key has invalid characters\");}else if(!ortcIsValidInput(authToken)){delegateExceptionCallback(ortc,\"Authentication Token has invalid characters\");}else if(!ortcIsValidInput(announcementSubChannel)){delegateExceptionCallback(ortc,\"Announcement Subchannel has invalid characters\");}else if(connectionMetadata&&connectionMetadata.length>connectionMetadataMaxSize){delegateExceptionCallback(ortc,\"Connection metadata size exceeds the limit of \"+connectionMetadataMaxSize+\" characters\");}else{ortc.appKey=appKey;ortc.authToken=authToken;isConnecting=true;stopReconnecting=false;validatedArrived=false;clearValidatedTimeout(self);// Read SSL session cookie\n\t//var sslConn = readCookie(sslSessionCookieName);\n\tvar sslConn=false;if(sslConn){changeUrlSsl();}if(clusterUrl&&clusterUrl!=null){clusterUrl=clusterUrl.ortcTreatUrl();clusterConnection();}else{url=url.ortcTreatUrl();ortc.sockjs=createSocketConnection(url);}//If ssl connection increase connection timeout\n\tif(clusterUrl&&clusterUrl!=null&&clusterUrl.indexOf(\"/ssl\")>=0||url&&url.indexOf(\"https\")>=0){if(!retryingWithSsl){ortc.setConnectionTimeout(30*1000);}else{if(ortc.getConnectionTimeout()<300*1000){if(ortc.getConnectionTimeout()<30*1000){ortc.setConnectionTimeout(30*1000);}else{ortc.setConnectionTimeout((ortc.getConnectionTimeout()+10)*1000);}}else{stopReconnecting=true;clearReconnectInterval();}}}if(!ortc.reconnectIntervalId&&!stopReconnecting){// Interval to reconnect\n\tortc.reconnectIntervalId=setInterval(function(){if(stopReconnecting){clearReconnectInterval();}else{var currentDateTime=new Date();if(ortc.sockjs==null&&!waitingClusterResponse){reconnectSocket();}// 35 seconds\n\tif(lastKeepAlive!=null&&lastKeepAlive+35000<new Date().getTime()){lastKeepAlive=null;// Server went down\n\tif(isConnected){disconnectSocket();}}}},ortc.getConnectionTimeout());}}};this.setNotificationConfig=function(config){config.cmd=\"config\";this.sendMessageToServiceWorker(config);};this.showNotification=function(notification){notification.cmd=\"notification\";this.sendMessageToServiceWorker(notification);};this.sendMessageToServiceWorker=function(message){return new Promise(function(resolve,reject){var messageChannel=new MessageChannel();messageChannel.port1.onmessage=function(event){if(event.data.error){reject(event.data.error);}else{resolve(event.data);}};navigator.serviceWorker.controller.postMessage(message,[messageChannel.port2]);});};/*\n\t * Subscribes to the channel so the client object can receive all messages sent to it by other clients with Notifications.\n\t */this.subscribeWithNotifications=function(channel,subscribeOnReconnected,regId,onMessageCallback){ortc.registrationId=regId;this._subscribe(channel,subscribeOnReconnected,regId,null,onMessageCallback);};/*\n\t * Subscribes to the channel so the client object can receive all messages sent that are valid according to the given filter\n\t */this.subscribeWithFilter=function(channel,subscribeOnReconnected,filter,onMessageCallback){this._subscribe(channel,subscribeOnReconnected,null,filter,onMessageCallback);};/*\n\t * Subscribes to the channel so the client object can receive all messages sent to it by other clients.\n\t */this.subscribe=function(channel,subscribeOnReconnected,onMessageCallback){this._subscribe(channel,subscribeOnReconnected,null,null,onMessageCallback);};this._subscribe=function(channel,subscribeOnReconnected,regId,filter,onMessageCallback){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribing){delegateExceptionCallback(ortc,\"Already subscribing to the channel \\\"\"+channel+\"\\\"\");}else if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed){delegateExceptionCallback(ortc,\"Already subscribed to the channel \\\"\"+channel+\"\\\"\");}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else if(!ortcIsValidBoolean(subscribeOnReconnected)){delegateExceptionCallback(ortc,\"The argument \\\"subscribeOnReconnected\\\" must be a boolean\");}else if(!ortcIsFunction(onMessageCallback)){delegateExceptionCallback(ortc,\"The argument \\\"onMessageCallback\\\" must be a function\");}else{if(ortc.sockjs!=null){var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){delegateExceptionCallback(ortc,\"No permission found to subscribe to the channel \\\"\"+channel+\"\\\"\");}else{if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=true;subscribedChannels[channel].isSubscribed=false;subscribedChannels[channel].subscribeOnReconnected=subscribeOnReconnected;subscribedChannels[channel].onMessageCallback=onMessageCallback;subscribedChannels[channel].filter=filter;}else{subscribedChannels[channel]={\"isSubscribing\":true,\"isSubscribed\":false,\"subscribeOnReconnected\":subscribeOnReconnected,\"onMessageCallback\":onMessageCallback,\"filter\":filter};}if(regId){subscribedChannels[channel].withNotifications=true;ortc.sockjs.send(\"subscribe;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+regId+\";\"+pushPlatform);}else{subscribedChannels[channel].withNotifications=false;if(filter){ortc.sockjs.send(\"subscribefilter;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+filter);}else{ortc.sockjs.send(\"subscribe;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm);}}}}}};/*\n\t * Unsubscribes from the channel so the client object stops receiving messages sent to it.\n\t */this.unsubscribe=function(channel){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(!subscribedChannels[channel]||subscribedChannels[channel]&&!subscribedChannels[channel].isSubscribed){delegateExceptionCallback(ortc,\"Not subscribed to the channel \"+channel);}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else{if(ortc.sockjs!=null){if(subscribedChannels[channel].withNotifications==true){ortc.sockjs.send(\"unsubscribe;\"+ortc.appKey+\";\"+channel+\";\"+ortc.registrationId+\";\"+pushPlatform);}else{ortc.sockjs.send(\"unsubscribe;\"+ortc.appKey+\";\"+channel);}}}};/*\n\t * Sends the message to the channel.\n\t */this.send=function(channel,message){/*\n\t Sanity Checks\n\t */if(!isConnected||ortc.sockjs==null){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(!message){delegateExceptionCallback(ortc,\"Message is null or empty\");}else if(!ortcIsString(message)){delegateExceptionCallback(ortc,\"Message must be a string\");}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else{var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){delegateExceptionCallback(ortc,\"No permission found to send to the channel \\\"\"+channel+\"\\\"\");}else{// Multi part\n\tvar messageParts=[];var messageId=generateId(8);var i;var allowedMaxSize=messageMaxSize-channel.length;for(i=0;i<message.length;i=i+allowedMaxSize){// Just one part\n\tif(message.length<=allowedMaxSize){messageParts.push(message);break;}if(message.substring(i,i+allowedMaxSize)){messageParts.push(message.substring(i,i+allowedMaxSize));}}for(var j=1;j<=messageParts.length;j++){ortc.sockjs.send(\"send;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+messageId+\"_\"+j+\"-\"+messageParts.length+\"_\"+messageParts[j-1]);}}}};/*\n\t * Sends the message to multiple channels.\n\t */this.batchSend=function(channels,message){/*\n\t Sanity Checks\n\t */channels=ortcStrToArray(channels);if(!isConnected||ortc.sockjs==null){delegateExceptionCallback(ortc,\"Not connected\");}else if(!ortcIsArray(channels)){delegateExceptionCallback(ortc,\"Channels must be a array\");}else if(!message){delegateExceptionCallback(ortc,\"Message is null or empty\");}else if(!ortcIsString(message)){delegateExceptionCallback(ortc,\"Message must be a string\");}else if(channels.length<=0){delegateExceptionCallback(ortc,\"Channels must be an array at least with one channel\");}else if(channels.length>channelsMaxSize){channels=[];delegateExceptionCallback(ortc,\"The channel maximum was reached (>\"+channelsMaxSize+\")\");}for(i=0;i<channels.length;i++){var channel=channels[i];if(channel.length>channelMaxSize){channels.splice(i,1);delegateExceptionCallback(ortc,\"Channel \"+channel+\" size exceeds the limit of \"+channelMaxSize+\" characters\");}}if(channels.length>0){var arrayHashPerm=[];for(i=0;i<channels.length;i++){var channel=channels[i];var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){channels.splice(i,1);delegateExceptionCallback(ortc,\"No permission found to send to the channel \\\"\"+channel+\"\\\"\");}else{arrayHashPerm.push(hashPerm);}}if(channels.length>0){var messageParts=[];var messageId=generateId(8);var allowedMaxSize=messageMaxSize-channels.toString().length;for(i=0;i<message.length;i=i+allowedMaxSize){// Just one part\n\tif(message.length<=allowedMaxSize){messageParts.push(message);break;}if(message.substring(i,i+allowedMaxSize)){messageParts.push(message.substring(i,i+allowedMaxSize));}}for(j=1;j<=messageParts.length;j++){ortc.sockjs.send(\"batchSend;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+JSON.stringify(channels)+\";\"+JSON.stringify(arrayHashPerm)+\";\"+messageId+\"_\"+j+\"-\"+messageParts.length+\"_\"+messageParts[j-1]);}}}};/*\n\t * Disconnects from the gateway.\n\t */this.disconnect=function(){clearReconnectInterval();stopReconnectProcess();// Clear subscribed channels\n\tsubscribedChannels={};/*\n\t Sanity Checks\n\t */if(!isConnected&&!invalidConnection){delegateExceptionCallback(ortc,\"Not connected\");}else{disconnectSocket();}};/*\n\t * Gets a value indicating whether this client object is subscribed to the channel.\n\t */this.isSubscribed=function(channel){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else{if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed){return subscribedChannels[channel].isSubscribed;}else{return false;}}};/*\n\t * Gets a json indicating the subscriptions in a channel.\n\t */this.presence=function(parameters,callback){try{var requestUrl=null,isCluster=false,appKey=ortc.appKey,authToken=ortc.authToken;if(parameters.url){requestUrl=parameters.url.ortcTreatUrl();isCluster=parameters.isCluster;appKey=parameters.applicationKey;authToken=parameters.authenticationToken;}else{if(clusterUrl&&clusterUrl!=null){requestUrl=clusterUrl;isCluster=true;}else{requestUrl=url.ortcTreatUrl();;}}getServerUrl({requestUrl:requestUrl,isCluster:isCluster,appKey:appKey},function(error,serverUrl){if(error){callback(error,null);}else{jsonp(serverUrl+\"/presence/\"+appKey+\"/\"+authToken+\"/\"+parameters.channel,callback);}});}catch(e){callback(\"Unable to get presence data\",null);}};var getServerUrl=function(parameters,callback){if(parameters.requestUrl&&parameters.isCluster){var guid=generateGuid();var queryString=\"guid=\"+generateGuid();queryString=parameters.appKey?queryString+\"&appkey=\"+parameters.appKey:queryString;loadClusterServerScript(parameters.requestUrl+\"/?\"+queryString,guid,function(clusterServerResolved,scriptGuid){if(clusterServerResolved){var resultUrl=SOCKET_SERVER;callback(null,resultUrl);}else{callback(null,\"Unable to get server from cluster\");}try{clearScripts(scriptGuid);}catch(loadError){}});}else{var resultUrl=parameters.requestUrl.ortcTreatUrl();callback(null,resultUrl);}};/*\n\t * Adds the Webspectator bootstrap script for the outmost frame on the same domain.\n\t */this.setMonetizerId=function(publicId){var tempWin;var win=tempWin=window;while(tempWin!=window.top){try{if(tempWin.frameElement){win=tempWin.parent;}}catch(e){}tempWin=tempWin.parent;}if(!win._WS_BOOT){var s=document.createElement(\"SCRIPT\");s.src=\"//wfpscripts.webspectator.com/bootstrap/ws-\"+publicId+\".js\";document.getElementsByTagName(\"head\")[0].appendChild(s);}};/***********************************************************\n\t * @private methods\n\t ***********************************************************//*\n\t * Change the current URL to use SSL\n\t */var changeUrlSsl=function(){if(!(\"ActiveXObject\"in window)){if(clusterUrl&&clusterUrl!=null){//clusterUrl = clusterUrl.replace(\"http://\", \"https://\");\n\tif(clusterUrl.indexOf(\"ssl/\")<0){var slashAtTheEnd=clusterUrl.search(/\\/([\\d.]*)\\/$/);if(slashAtTheEnd>-1){clusterUrl=clusterUrl.substring(0,slashAtTheEnd+1)+\"ssl/\"+clusterUrl.substring(slashAtTheEnd+1,clusterUrl.length);}else{clusterUrl=clusterUrl.substring(0,clusterUrl.lastIndexOf(\"/\")+1)+\"ssl/\"+clusterUrl.substring(clusterUrl.lastIndexOf(\"/\")+1);}}}else{url=url.replace(\"http://\",\"https://\");}}// Create session cookie\n\t//createSessionCookie(sslSessionCookieName, 1);\n\t};/*\n\t * Clear the reconnecting interval\n\t */var clearReconnectInterval=function(){if(ortc.reconnectIntervalId){clearInterval(ortc.reconnectIntervalId);ortc.reconnectIntervalId=null;}};/*\n\t * Clear the validated timeout\n\t */var clearValidatedTimeout=function(self){if(self.validatedTimeoutId){clearTimeout(self.validatedTimeoutId);self.validatedTimeoutId=null;}};/*\n\t * Stop the reconnecting process\n\t */var stopReconnectProcess=function(){stopReconnecting=true;alreadyConnectedFirstTime=false;};var startHeartBeatInterval=function(self){if(!self.heartbeatInterval&&heartbeatActive){self.sockjs.send(\"b\");self.heartbeatInterval=setInterval(function(){if(!heartbeatActive){stopHeartBeatInterval(self);}else{self.sockjs.send(\"b\");}},heartbeatTime*1000);}};var stopHeartBeatInterval=function(self){if(self.heartbeatInterval){clearInterval(self.heartbeatInterval);self.heartbeatInterval=null;}};/*\n\t * Creates a cookie with expiration time.\n\t */var createExpireCookie=function(name,value,minutes){var expires=\"\";if(minutes){var date=new Date();date.setTime(date.getTime()+minutes*60*1000);expires=\"; expires=\"+date.toGMTString();}document.cookie=name+\"=\"+value+expires+\"; path=/\";};/*\n\t * Creates a session cookie.\n\t */var createSessionCookie=function(name,value){document.cookie=name+\"=\"+value+\"; path=/\";};/*\n\t * Reads a cookie.\n\t */var readCookie=function(name){var nameEQ=name+\"=\";var ca=document.cookie.split(\";\");var result=null;for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==\" \"){c=c.substring(1,c.length);}if(c.indexOf(nameEQ)==0){result=c.substring(nameEQ.length,c.length);break;}}return result;};/*\n\t * Generates an ID.\n\t */var generateId=function(size){var result=\"\";var S4=function(){return((1+Math.random())*0x10000|0).toString(16).substring(1);};for(var i=0;i<size/4;i++){result+=S4();}return result;};/*\n\t * Disconnects the socket.\n\t */var disconnectSocket=function(){stopHeartBeatInterval(ortc);reconnectStartedAt=null;isConnected=false;isConnecting=false;validatedArrived=false;retryingWithSsl=false;clearValidatedTimeout(self);if(ortc.sockjs!=null){ortc.sockjs.close();ortc.sockjs=null;}};/*\n\t * Reconnects the socket.\n\t */var reconnectSocket=function(){stopHeartBeatInterval(ortc);if(isConnecting){delegateExceptionCallback(ortc,\"Unable to connect\");}isConnecting=true;delegateReconnectingCallback(ortc);reconnectStartedAt=new Date().getTime();if(clusterUrl&&clusterUrl!=null){clusterConnection();}else{ortc.sockjs=createSocketConnection(url);}};/*\n\t * Tries a connection through the cluster gateway with the application key and authentication token.\n\t */var clusterConnection=function(){var guid=generateGuid();var queryString=\"guid=\"+generateGuid();queryString=ortc.appKey?queryString+\"&appkey=\"+ortc.appKey:queryString;loadClusterServerScript(clusterUrl+\"/?\"+queryString,guid,function(clusterServerResolved,scriptGuid){if(clusterServerResolved){url=SOCKET_SERVER;sockjs=createSocketConnection(ortc.getUrl());}try{clearScripts(scriptGuid);}catch(loadError){}});};/*\n\t * Clears the javascript scripts previously loaded into the page.\n\t */var clearScripts=function(guid){var headChildren=document.getElementsByTagName(\"head\")[0].children;var childrenToRemove=[];for(var i=0;i<headChildren.length;i++){if(headChildren[i].attributes!=null&&headChildren[i].attributes[\"ortcScriptId\"]&&headChildren[i].attributes[\"ortcScriptId\"].value==guid){childrenToRemove.push(i);}}for(var child in childrenToRemove){document.getElementsByTagName(\"head\")[0].removeChild(headChildren[childrenToRemove[child]]);}};/*\n\t * Loads the cluster server javascript script into the page.\n\t */var loadClusterServerScript=function(scriptUrl,guid,callback){var script=document.createElement(\"script\");script.type=\"text/javascript\";script.setAttribute(\"ortcScriptId\",guid);waitingClusterResponse=true;if(script.readyState){// IE\n\tscript.onreadystatechange=function(){if(script.readyState==\"loaded\"||script.readyState==\"complete\"){waitingClusterResponse=false;script.onreadystatechange=null;if(typeof SOCKET_SERVER!=\"undefined\"&&SOCKET_SERVER.indexOf(\"undefined\")<0&&SOCKET_SERVER.indexOf(\"unknown_server\")<0){callback(true,guid);}else{callback(false,guid);}}};}else{// Others\n\tscript.onload=function(){waitingClusterResponse=false;if(typeof SOCKET_SERVER!=\"undefined\"&&SOCKET_SERVER.indexOf(\"undefined\")<0&&SOCKET_SERVER.indexOf(\"unknown_server\")<0){callback(true,guid);}else{callback(false,guid);}};}script.onerror=function(){waitingClusterResponse=false;};script.src=scriptUrl;document.getElementsByTagName(\"head\")[0].appendChild(script);};/*\n\t * Generates a GUID.\n\t */var generateGuid=function(){var S4=function(){return((1+Math.random())*0x10000|0).toString(16).substring(1);};return S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4();};/*\n\t * Count the dictionary keys.\n\t */var countKeys=function(dic){var count=0;for(var i in dic){count++;}return count;};/*\n\t * Creates a socket connection.\n\t */var createSocketConnection=function(connectionUrl){var self=ortc;if(self.sockjs==null){if(navigator&&navigator.userAgent&&navigator.userAgent.indexOf(\"PlayStation Vita\")>=0){protocol=\"jsonp-polling\";}self.sockjs=new SockJS(connectionUrl+\"/broadcast\",protocol);// Timeout to receive the validated message\n\tif(!self.sslFallback){var validateTimeoutTime=5000;self.validatedTimeoutId=setTimeout(function(){self.sslFallback=true;stopReconnectProcess();disconnectSocket();invalidConnection=true;retryingWithSsl=true;if(connectionUrl.indexOf(\"https://\")>=0){// We are already using SSL, try streaming\n\tprotocol=\"xhr-streaming\";}else{protocol=undefined;}changeUrlSsl();},validateTimeoutTime);}else if(!self.xhrStreamingFallback){// The SSL fallback failed. Try xhr-streaming\n\tvar validateSslTimeoutTime=5000;self.validatedTimeoutId=setTimeout(function(){self.xhrStreamingFallback=true;stopReconnectProcess();disconnectSocket();invalidConnection=true;retryingWithSsl=true;protocol=\"xhr-streaming\";},validateSslTimeoutTime);}// Connect handler\n\tself.sockjs.onopen=function(){protocol=self.sockjs.protocol;// Update last keep alive time\n\tlastKeepAlive=new Date().getTime();// If is a reconnect do not count session\n\tif(alreadyConnectedFirstTime){sessionId=\"\";}else{// Read session cookie\n\tsessionId=readCookie(sessionCookieName+self.appKey+\"-s\");if(!sessionId){// Read expiration cookie\n\tsessionId=readCookie(sessionCookieName+self.appKey);if(!sessionId){sessionId=generateId(16);}// Create session cookie\n\tcreateSessionCookie(sessionCookieName+self.appKey+\"-s\",sessionId);// Check if session cookie was created\n\tif(!readCookie(sessionCookieName+self.appKey+\"-s\")){sessionId=\"\";}}}var heartbeatDetails=heartbeatActive?\";\"+self.getHeartbeatTime()+\";\"+self.getHeartbeatFails()+\";\":\"\";self.sockjs.send(\"validate;\"+self.appKey+\";\"+self.authToken+\";\"+(announcementSubChannel?announcementSubChannel:\"\")+\";\"+sessionId+\";\"+connectionMetadata+heartbeatDetails);};// Disconnect handler\n\tself.sockjs.onclose=function(e){// e.code=1000 - e.reason=Normal closure\n\t// e.code=1006 - e.reason=WebSocket connection broken\n\t// e.code=2000 - e.reason=All transports failed\n\tstopHeartBeatInterval(ortc);if(ortc.sockjs!=null){ortc.sockjs.close();ortc.sockjs=null;}// Clear user permissions\n\tuserPerms=null;if(e.code!=1000){if(isConnected){isConnected=false;isConnecting=false;protocol=undefined;delegateDisconnectedCallback(self);}if(!stopReconnecting){if(!reconnectStartedAt||reconnectStartedAt+connectionTimeout<new Date().getTime()){reconnectSocket();}}}else{if(!invalidConnection){isConnected=false;isConnecting=false;protocol=undefined;delegateDisconnectedCallback(self);}}if(retryingWithSsl){self.connect(self.appKey,self.authToken);retryingWithSsl=false;}invalidConnection=false;};// Receive handler\n\tself.sockjs.onmessage=function(e){// Update last keep alive time\n\tlastKeepAlive=new Date().getTime();var data=e.data;var channel=data.ch;var message=data.m;var filtered=data.f;// Multi part\n\tvar regexPattern=/^(\\w[^_]*)_{1}(\\d*)-{1}(\\d*)_{1}([\\s\\S.]*)$/;var match=regexPattern.exec(message);var messageId=null;var messageCurrentPart=1;var messageTotalPart=1;var lastPart=false;if(match&&match.length>0){if(match[1]){messageId=match[1];}if(match[2]){messageCurrentPart=match[2];}if(match[3]){messageTotalPart=match[3];}if(match[4]){message=match[4];}}if(messageId){if(!messagesBuffer[messageId]){messagesBuffer[messageId]={};}messagesBuffer[messageId][messageCurrentPart]=message;if(countKeys(messagesBuffer[messageId])==messageTotalPart){lastPart=true;}}else{lastPart=true;}if(lastPart){if(messageId){message=\"\";for(var i=1;i<=messageTotalPart;i++){message+=messagesBuffer[messageId][i];delete messagesBuffer[messageId][i];}delete messagesBuffer[messageId];}delegateMessagesCallback(self,channel,filtered,message);}};self.sockjs.onortcsubscribed=function(e){lastKeepAlive=new Date().getTime();var channel=e.data;if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;subscribedChannels[channel].isSubscribed=true;}delegateSubscribedCallback(self,channel);};self.sockjs.onortcunsubscribed=function(e){lastKeepAlive=new Date().getTime();var channel=e.data;if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribed=false;}delegateUnsubscribedCallback(self,channel);};self.sockjs.onheartbeat=function(){lastKeepAlive=new Date().getTime();};self.sockjs.onortcvalidated=function(e){var sessionExpirationTime=30;if(e.data){userPerms=e.data;}if(e.set){sessionExpirationTime=e.set;}clearValidatedTimeout(self);validatedArrived=true;retryingWithSsl=false;isConnecting=false;isConnected=true;reconnectStartedAt=null;if(sessionId){if(!readCookie(sessionCookieName+self.appKey+\"-s\")){createSessionCookie(sessionCookieName+self.appKey+\"-s\",sessionId);}if(!readCookie(sessionCookieName+self.appKey)){createExpireCookie(sessionCookieName+self.appKey,sessionId,sessionExpirationTime);}}if(alreadyConnectedFirstTime){var channelsToRemove={};// Subscribe to the previously subscribed channels\n\tfor(var key in subscribedChannels){// Subscribe again\n\tif(subscribedChannels[key].subscribeOnReconnected==true&&(subscribedChannels[key].isSubscribing||subscribedChannels[key].isSubscribed)){subscribedChannels[key].isSubscribing=true;subscribedChannels[key].isSubscribed=false;var domainChannelCharacterIndex=key.indexOf(\":\");var channelToValidate=key;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=key.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[key];}if(subscribedChannels[key].filter){self.sockjs.send(\"subscribefilter;\"+self.appKey+\";\"+self.authToken+\";\"+key+\";\"+hashPerm+\";\"+subscribedChannels[key].filter);}else{self.sockjs.send(\"subscribe;\"+self.appKey+\";\"+self.authToken+\";\"+key+\";\"+hashPerm);}}else{channelsToRemove[key]=key;}}for(var keyToRemove in channelsToRemove){delete subscribedChannels[keyToRemove];}messagesBuffer={};delegateReconnectedCallback(self);}else{alreadyConnectedFirstTime=true;delegateConnectedCallback(self);}};self.sockjs.onortcerror=function(e){lastKeepAlive=new Date().getTime();var data=e.data;var operation=data.op;var channel=data.ch;var error=data.ex?data.ex:data;delegateExceptionCallback(self,error);switch(operation){case\"validate\":if(error.indexOf(\"busy\")<0){invalidConnection=true;clearValidatedTimeout(self);retryingWithSsl=false;stopReconnectProcess();}else{clearValidatedTimeout(self);retryingWithSsl=false;}break;case\"subscribe\":if(channel&&subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;}break;case\"subscribe_maxsize\":case\"unsubscribe_maxsize\":case\"shutdown\":clearValidatedTimeout(self);retryingWithSsl=false;break;case\"send_maxsize\":if(channel&&subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;}stopReconnectProcess();break;default:break;}};}return self.sockjs;};var jsonp=function(url,callback){var head=document.head?document.head:document.getElementsByTagName(\"head\")[0];var script=document.createElement(\"script\");var guid=\"ortcJsonp\"+ +new Date();var jsonpCallTimeout=setTimeout(function(){try{callback(\"Unable to get data\",null);window[guid]=undefined;delete window[guid];head.removeChild(script);}catch(e){}},15*1000);window[guid]=function(data){clearTimeout(jsonpCallTimeout);if(data.error){callback(data.error,null);}else{callback(null,data.content);}try{window[guid]=undefined;delete window[guid];head.removeChild(script);}catch(e){}};script.setAttribute(\"src\",url+\"?callback=\"+guid);head.appendChild(script);};var delegateConnectedCallback=function(ortc){if(ortc!=null&&ortc.onConnected!=null){startHeartBeatInterval(ortc);ortc.onConnected(ortc);}};var delegateDisconnectedCallback=function(ortc){if(ortc!=null&&ortc.onDisconnected!=null){ortc.onDisconnected(ortc);}};var delegateSubscribedCallback=function(ortc,channel){if(ortc!=null&&ortc.onSubscribed!=null&&channel!=null){ortc.onSubscribed(ortc,channel);}};var delegateUnsubscribedCallback=function(ortc,channel){if(ortc!=null&&ortc.onUnsubscribed!=null&&channel!=null){ortc.onUnsubscribed(ortc,channel);}};var delegateMessagesCallback=function(ortc,channel,filtered,message){if(ortc!=null&&subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed&&subscribedChannels[channel].onMessageCallback!=null){if(filtered==null){// regular subscription\n\tsubscribedChannels[channel].onMessageCallback(ortc,channel,message);}else{// filtered subscription\n\tsubscribedChannels[channel].onMessageCallback(ortc,channel,filtered,message);}}};var delegateExceptionCallback=function(ortc,event){if(ortc!=null&&ortc.onException!=null){ortc.onException(ortc,event);}};var delegateReconnectingCallback=function(ortc){if(ortc!=null&&ortc.onReconnecting!=null){ortc.onReconnecting(ortc);}};var delegateReconnectedCallback=function(ortc){if(ortc!=null&&ortc.onReconnected!=null){startHeartBeatInterval(ortc);ortc.onReconnected(ortc);}};}", "componentDidMount() {\n //setLocalNotification();\n }", "constructor(httpClient) {\n this.httpClient = httpClient;\n //public url_base = \"http://localhost:8080\";\n this.url_base = \"https://yaoyuan333.wm.r.appspot.com\";\n }", "function AppMeasurement_Module_Media(s){var m=this;m.s=s;s=window;if(!s.s_c_in)s.s_c_il=[],s.s_c_in=0;m._il=s.s_c_il;m._in=s.s_c_in;m._il[m._in]=m;s.s_c_in++;m._c=\"s_m\";m.list=[];m.open=function(w,b,c,h){var d={},a=new Date,g=\"\",e;b||(b=-1);if(w&&c){if(!m.list)m.list={};m.list[w]&&m.close(w);if(h&&h.id)g=h.id;if(g)for(e in m.list)!Object.prototype[e]&&m.list[e]&&m.list[e].S==g&&m.close(m.list[e].name);d.name=w;d.length=b;d.u=0;d.c=0;d.playerName=m.playerName?m.playerName:c;d.S=g;d.L=0;d.f=0;d.timestamp=\r\n\t\tMath.floor(a.getTime()/1E3);d.j=0;d.r=d.timestamp;d.a=-1;d.B=\"\";d.k=-1;d.C=0;d.H={};d.F=0;d.m=0;d.e=\"\";d.A=0;d.K=0;d.z=0;d.D=0;d.l=!1;d.v=\"\";d.I=\"\";d.J=0;d.q=!1;d.G=\"\";d.complete=0;d.Q=0;d.o=0;d.p=0;m.list[w]=d}};m.openAd=function(w,b,c,h,d,a,g,e){var f={};m.open(w,b,c,e);if(f=m.list[w])f.l=!0,f.v=h,f.I=d,f.J=a,f.G=g};m.M=function(w){var b=m.list[w];m.list[w]=0;b&&b.monitor&&clearTimeout(b.monitor.R)};m.close=function(w){m.g(w,0,-1)};m.play=function(w,b,c,h){var d=m.g(w,1,b,c,h);if(d&&!d.monitor)d.monitor=\r\n\t\t{},d.monitor.update=function(){d.j==1&&m.g(d.name,3,-1);d.monitor.R=setTimeout(d.monitor.update,1E3)},d.monitor.update()};m.click=function(w,b){m.g(w,7,b)};m.complete=function(w,b){m.g(w,5,b)};m.stop=function(w,b){m.g(w,2,b)};m.track=function(w){m.g(w,4,-1)};m.P=function(w,b){var c=\"a.media.\",h=w.linkTrackVars,d=w.linkTrackEvents,a=\"m_i\",g,e=w.contextData,f;if(b.l){c+=\"ad.\";if(b.v)e[\"a.media.name\"]=b.v,e[c+\"pod\"]=b.I,e[c+\"podPosition\"]=b.J;if(!b.F)e[c+\"CPM\"]=b.G}if(b.q)e[c+\"clicked\"]=!0,b.q=!1;e[\"a.contentType\"]=\r\n\t\t\"video\"+(b.l?\"Ad\":\"\");e[\"a.media.channel\"]=m.channel;e[c+\"name\"]=b.name;e[c+\"playerName\"]=b.playerName;if(b.length>0)e[c+\"length\"]=b.length;e[c+\"timePlayed\"]=Math.floor(b.f);Math.floor(b.f)>0&&(e[c+\"timePlayed\"]=Math.floor(b.f));if(!b.F)e[c+\"view\"]=!0,a=\"m_s\",b.F=1;if(b.e){e[c+\"segmentNum\"]=b.m;e[c+\"segment\"]=b.e;if(b.A>0)e[c+\"segmentLength\"]=b.A;b.z&&b.f>0&&(e[c+\"segmentView\"]=!0)}if(!b.Q&&b.complete)e[c+\"complete\"]=!0,b.T=1;if(b.o>0)e[c+\"milestone\"]=b.o;if(b.p>0)e[c+\"offsetMilestone\"]=b.p;if(h)for(f in e)Object.prototype[f]||\r\n\t\t(h+=\",contextData.\"+f);g=e[\"a.contentType\"];w.pe=a;w.pev3=g;var s,n;if(m.contextDataMapping){if(!w.events2)w.events2=\"\";h&&(h+=\",events\");for(f in m.contextDataMapping)if(!Object.prototype[f]){a=f.length>c.length&&f.substring(0,c.length)==c?f.substring(c.length):\"\";g=m.contextDataMapping[f];if(typeof g==\"string\"){s=g.split(\",\");for(n=0;n<s.length;n++)g=s[n],f==\"a.contentType\"?(h&&(h+=\",\"+g),w[g]=e[f]):a==\"view\"||a==\"segmentView\"||a==\"clicked\"||a==\"complete\"||a==\"timePlayed\"||a==\"CPM\"?(d&&(d+=\",\"+\r\n\t\tg),a==\"timePlayed\"||a==\"CPM\"?e[f]&&(w.events2+=(w.events2?\",\":\"\")+g+\"=\"+e[f]):e[f]&&(w.events2+=(w.events2?\",\":\"\")+g)):a==\"segment\"&&e[f+\"Num\"]?(h&&(h+=\",\"+g),w[g]=e[f+\"Num\"]+\":\"+e[f]):(h&&(h+=\",\"+g),w[g]=e[f])}else if(a==\"milestones\"||a==\"offsetMilestones\")f=f.substring(0,f.length-1),e[f]&&m.contextDataMapping[f+\"s\"][e[f]]&&(d&&(d+=\",\"+m.contextDataMapping[f+\"s\"][e[f]]),w.events2+=(w.events2?\",\":\"\")+m.contextDataMapping[f+\"s\"][e[f]]);e[f]&&(e[f]=0);a==\"segment\"&&e[f+\"Num\"]&&(e[f+\"Num\"]=0)}}w.linkTrackVars=\r\n\t\th;w.linkTrackEvents=d};m.g=function(w,b,c,h,d){var a={},g=(new Date).getTime()/1E3,e,f,s=m.trackVars,n=m.trackEvents,o=m.trackSeconds,p=m.trackMilestones,q=m.trackOffsetMilestones,r=m.segmentByMilestones,t=m.segmentByOffsetMilestones,k,j,l=1,i={},u;if(!m.channel)m.channel=m.s.w.location.hostname;if(a=w&&m.list&&m.list[w]?m.list[w]:0){if(a.l)o=m.adTrackSeconds,p=m.adTrackMilestones,q=m.adTrackOffsetMilestones,r=m.adSegmentByMilestones,t=m.adSegmentByOffsetMilestones;c<0&&(c=a.j==1&&a.r>0?g-a.r+a.a:\r\n\t\ta.a);a.length>0&&(c=c<a.length?c:a.length);c<0&&(c=0);a.u=c;if(a.length>0)a.c=a.u/a.length*100,a.c=a.c>100?100:a.c;if(a.a<0)a.a=c;u=a.C;i.name=w;i.ad=a.l;i.length=a.length;i.openTime=new Date;i.openTime.setTime(a.timestamp*1E3);i.offset=a.u;i.percent=a.c;i.playerName=a.playerName;i.mediaEvent=a.k<0?\"OPEN\":b==1?\"PLAY\":b==2?\"STOP\":b==3?\"MONITOR\":b==4?\"TRACK\":b==5?\"COMPLETE\":b==7?\"CLICK\":\"CLOSE\";if(b>2||b!=a.j&&(b!=2||a.j==1)){if(!d)h=a.m,d=a.e;if(b){if(b==1)a.a=c;if((b<=3||b>=5)&&a.k>=0)if(l=!1,s=n=\r\n\t\t\"None\",a.k!=c){f=a.k;if(f>c)f=a.a,f>c&&(f=c);k=p?p.split(\",\"):0;if(a.length>0&&k&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f/a.length*100<e&&a.c>=e)l=!0,j=k.length,i.mediaEvent=\"MILESTONE\",a.o=i.milestone=e;if((k=q?q.split(\",\"):0)&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f<e&&c>=e)l=!0,j=k.length,i.mediaEvent=\"OFFSET_MILESTONE\",a.p=i.offsetMilestone=e}if(a.K||!d){if(r&&p&&a.length>0){if(k=p.split(\",\")){k.push(\"100\");for(j=f=0;j<k.length;j++)if(e=k[j]?parseFloat(\"\"+\r\n\t\tk[j]):0){if(a.c<e)h=j+1,d=\"M:\"+f+\"-\"+e,j=k.length;f=e}}}else if(t&&q&&(k=q.split(\",\"))){k.push(\"\"+(a.length>0?a.length:\"E\"));for(j=f=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)||k[j]==\"E\"){if(c<e||k[j]==\"E\")h=j+1,d=\"O:\"+f+\"-\"+e,j=k.length;f=e}}if(d)a.K=!0}if((d||a.e)&&d!=a.e){a.D=!0;if(!a.e)a.m=h,a.e=d;a.k>=0&&(l=!0)}if((b>=2||a.c>=100)&&a.a<c)a.L+=c-a.a,a.f+=c-a.a;if(b<=2||b==3&&!a.j)a.B+=(b==1||b==3?\"S\":\"E\")+Math.floor(c),a.j=b==3?1:b;if(!l&&a.k>=0&&b<=3&&(o=o?o:0)&&a.f>=o)l=!0,i.mediaEvent=\r\n\t\t\"SECONDS\";a.r=g;a.a=c}if(!b||b<=3&&a.c>=100)a.j!=2&&(a.B+=\"E\"+Math.floor(c)),b=0,s=n=\"None\",i.mediaEvent=\"CLOSE\";if(b==7)l=i.clicked=a.q=!0;if(b==5||m.completeByCloseOffset&&(!b||a.c>=100)&&a.length>0&&c>=a.length-m.completeCloseOffsetThreshold)l=i.complete=a.complete=!0;g=i.mediaEvent;g==\"MILESTONE\"?g+=\"_\"+i.milestone:g==\"OFFSET_MILESTONE\"&&(g+=\"_\"+i.offsetMilestone);a.H[g]?i.eventFirstTime=!1:(i.eventFirstTime=!0,a.H[g]=1);i.event=i.mediaEvent;i.timePlayed=a.L;i.segmentNum=a.m;i.segment=a.e;i.segmentLength=\r\n\t\ta.A;m.monitor&&b!=4&&m.monitor(m.s,i);b==0&&m.M(w);if(l&&a.C==u){w={};w.contextData={};w.linkTrackVars=s;w.linkTrackEvents=n;if(!w.linkTrackVars)w.linkTrackVars=\"\";if(!w.linkTrackEvents)w.linkTrackEvents=\"\";m.P(w,a);w.linkTrackVars||(w[\"!linkTrackVars\"]=1);w.linkTrackEvents||(w[\"!linkTrackEvents\"]=1);m.s.track(w);if(a.D)a.m=h,a.e=d,a.z=!0,a.D=!1;else if(a.f>0)a.z=!1;a.B=\"\";a.o=a.p=0;a.f-=Math.floor(a.f);a.k=c;a.C++}}}return a};m.O=function(w,b,c,h,d){var a=0;if(w&&(!m.autoTrackMediaLengthRequired||\r\n\t\tb&&b>0)){if(!m.list||!m.list[w]){if(c==1||c==3)m.open(w,b,\"HTML5 Video\",d),a=1}else a=1;a&&m.g(w,c,h,-1,0)}};m.attach=function(w){var b,c,h;if(w&&w.tagName&&w.tagName.toUpperCase()==\"VIDEO\"){if(!m.n)m.n=function(b,a,w){var c,f;if(m.autoTrack){c=b.currentSrc;(f=b.duration)||(f=-1);if(w<0)w=b.currentTime;m.O(c,f,a,w,b)}};b=function(){m.n(w,1,-1)};c=function(){m.n(w,1,-1)};m.i(w,\"play\",b);m.i(w,\"pause\",c);m.i(w,\"seeking\",c);m.i(w,\"seeked\",b);m.i(w,\"ended\",function(){m.n(w,0,-1)});m.i(w,\"timeupdate\",\r\n\t\tb);h=function(){!w.paused&&!w.ended&&!w.seeking&&m.n(w,3,-1);setTimeout(h,1E3)};h()}};m.i=function(m,b,c){m.attachEvent?m.attachEvent(\"on\"+b,c):m.addEventListener&&m.addEventListener(b,c,!1)};if(m.completeByCloseOffset==void 0)m.completeByCloseOffset=1;if(m.completeCloseOffsetThreshold==void 0)m.completeCloseOffsetThreshold=1;m.N=function(){var w,b;if(m.autoTrack&&(w=m.s.d.getElementsByTagName(\"VIDEO\")))for(b=0;b<w.length;b++)m.attach(w[b])};m.i(s,\"load\",m.N)}", "create () {\r\n // Send a create-job message to the native-app.\r\n openPort();\r\n return browser.storage.local.get({ props: {} }).then(result => {\r\n // Get a cookie jar for the job.\r\n return getCookieJarForVideo(this.props.videoUrl).then(cookieJar => {\r\n state.port.postMessage({\r\n topic: 'create-job',\r\n data: {\r\n jobId: this.id,\r\n // Merge the default props and the job props.\r\n props: Object.assign({ cookieJar }, result.props, this.props)\r\n }\r\n });\r\n \r\n // Flag this job as active.\r\n this.state = 'active';\r\n \r\n // Make the icon blue because a job is running.\r\n browser.browserAction.setIcon({\r\n path: 'icons/film-blue.svg'\r\n });\r\n });\r\n });\r\n }", "function AppMeasurement_Module_Media(s){var m=this;m.s=s;s=window;if(!s.s_c_in)s.s_c_il=[],s.s_c_in=0;m._il=s.s_c_il;m._in=s.s_c_in;m._il[m._in]=m;s.s_c_in++;m._c=\"s_m\";m.list=[];m.open=function(w,b,c,h){var d={},a=new Date,g=\"\",e;b||(b=-1);if(w&&c){if(!m.list)m.list={};m.list[w]&&m.close(w);if(h&&h.id)g=h.id;if(g)for(e in m.list)!Object.prototype[e]&&m.list[e]&&m.list[e].S==g&&m.close(m.list[e].name);d.name=w;d.length=b;d.u=0;d.c=0;d.playerName=m.playerName?m.playerName:c;d.S=g;d.L=0;d.f=0;d.timestamp=\r\nMath.floor(a.getTime()/1E3);d.j=0;d.r=d.timestamp;d.a=-1;d.B=\"\";d.k=-1;d.C=0;d.H={};d.F=0;d.m=0;d.e=\"\";d.A=0;d.K=0;d.z=0;d.D=0;d.l=!1;d.v=\"\";d.I=\"\";d.J=0;d.q=!1;d.G=\"\";d.complete=0;d.Q=0;d.o=0;d.p=0;m.list[w]=d}};m.openAd=function(w,b,c,h,d,a,g,e){var f={};m.open(w,b,c,e);if(f=m.list[w])f.l=!0,f.v=h,f.I=d,f.J=a,f.G=g};m.M=function(w){var b=m.list[w];m.list[w]=0;b&&b.monitor&&clearTimeout(b.monitor.R)};m.close=function(w){m.g(w,0,-1)};m.play=function(w,b,c,h){var d=m.g(w,1,b,c,h);if(d&&!d.monitor)d.monitor=\r\n{},d.monitor.update=function(){d.j==1&&m.g(d.name,3,-1);d.monitor.R=setTimeout(d.monitor.update,1E3)},d.monitor.update()};m.click=function(w,b){m.g(w,7,b)};m.complete=function(w,b){m.g(w,5,b)};m.stop=function(w,b){m.g(w,2,b)};m.track=function(w){m.g(w,4,-1)};m.P=function(w,b){var c=\"a.media.\",h=w.linkTrackVars,d=w.linkTrackEvents,a=\"m_i\",g,e=w.contextData,f;if(b.l){c+=\"ad.\";if(b.v)e[\"a.media.name\"]=b.v,e[c+\"pod\"]=b.I,e[c+\"podPosition\"]=b.J;if(!b.F)e[c+\"CPM\"]=b.G}if(b.q)e[c+\"clicked\"]=!0,b.q=!1;e[\"a.contentType\"]=\r\n\"video\"+(b.l?\"Ad\":\"\");e[\"a.media.channel\"]=m.channel;e[c+\"name\"]=b.name;e[c+\"playerName\"]=b.playerName;if(b.length>0)e[c+\"length\"]=b.length;e[c+\"timePlayed\"]=Math.floor(b.f);Math.floor(b.f)>0&&(e[c+\"timePlayed\"]=Math.floor(b.f));if(!b.F)e[c+\"view\"]=!0,a=\"m_s\",b.F=1;if(b.e){e[c+\"segmentNum\"]=b.m;e[c+\"segment\"]=b.e;if(b.A>0)e[c+\"segmentLength\"]=b.A;b.z&&b.f>0&&(e[c+\"segmentView\"]=!0)}if(!b.Q&&b.complete)e[c+\"complete\"]=!0,b.T=1;if(b.o>0)e[c+\"milestone\"]=b.o;if(b.p>0)e[c+\"offsetMilestone\"]=b.p;if(h)for(f in e)Object.prototype[f]||\r\n(h+=\",contextData.\"+f);g=e[\"a.contentType\"];w.pe=a;w.pev3=g;var s,n;if(m.contextDataMapping){if(!w.events2)w.events2=\"\";h&&(h+=\",events\");for(f in m.contextDataMapping)if(!Object.prototype[f]){a=f.length>c.length&&f.substring(0,c.length)==c?f.substring(c.length):\"\";g=m.contextDataMapping[f];if(typeof g==\"string\"){s=g.split(\",\");for(n=0;n<s.length;n++)g=s[n],f==\"a.contentType\"?(h&&(h+=\",\"+g),w[g]=e[f]):a==\"view\"||a==\"segmentView\"||a==\"clicked\"||a==\"complete\"||a==\"timePlayed\"||a==\"CPM\"?(d&&(d+=\",\"+\r\ng),a==\"timePlayed\"||a==\"CPM\"?e[f]&&(w.events2+=(w.events2?\",\":\"\")+g+\"=\"+e[f]):e[f]&&(w.events2+=(w.events2?\",\":\"\")+g)):a==\"segment\"&&e[f+\"Num\"]?(h&&(h+=\",\"+g),w[g]=e[f+\"Num\"]+\":\"+e[f]):(h&&(h+=\",\"+g),w[g]=e[f])}else if(a==\"milestones\"||a==\"offsetMilestones\")f=f.substring(0,f.length-1),e[f]&&m.contextDataMapping[f+\"s\"][e[f]]&&(d&&(d+=\",\"+m.contextDataMapping[f+\"s\"][e[f]]),w.events2+=(w.events2?\",\":\"\")+m.contextDataMapping[f+\"s\"][e[f]]);e[f]&&(e[f]=0);a==\"segment\"&&e[f+\"Num\"]&&(e[f+\"Num\"]=0)}}w.linkTrackVars=\r\nh;w.linkTrackEvents=d};m.g=function(w,b,c,h,d){var a={},g=(new Date).getTime()/1E3,e,f,s=m.trackVars,n=m.trackEvents,o=m.trackSeconds,p=m.trackMilestones,q=m.trackOffsetMilestones,r=m.segmentByMilestones,t=m.segmentByOffsetMilestones,k,j,l=1,i={},u;if(!m.channel)m.channel=m.s.w.location.hostname;if(a=w&&m.list&&m.list[w]?m.list[w]:0){if(a.l)o=m.adTrackSeconds,p=m.adTrackMilestones,q=m.adTrackOffsetMilestones,r=m.adSegmentByMilestones,t=m.adSegmentByOffsetMilestones;c<0&&(c=a.j==1&&a.r>0?g-a.r+a.a:\r\na.a);a.length>0&&(c=c<a.length?c:a.length);c<0&&(c=0);a.u=c;if(a.length>0)a.c=a.u/a.length*100,a.c=a.c>100?100:a.c;if(a.a<0)a.a=c;u=a.C;i.name=w;i.ad=a.l;i.length=a.length;i.openTime=new Date;i.openTime.setTime(a.timestamp*1E3);i.offset=a.u;i.percent=a.c;i.playerName=a.playerName;i.mediaEvent=a.k<0?\"OPEN\":b==1?\"PLAY\":b==2?\"STOP\":b==3?\"MONITOR\":b==4?\"TRACK\":b==5?\"COMPLETE\":b==7?\"CLICK\":\"CLOSE\";if(b>2||b!=a.j&&(b!=2||a.j==1)){if(!d)h=a.m,d=a.e;if(b){if(b==1)a.a=c;if((b<=3||b>=5)&&a.k>=0)if(l=!1,s=n=\r\n\"None\",a.k!=c){f=a.k;if(f>c)f=a.a,f>c&&(f=c);k=p?p.split(\",\"):0;if(a.length>0&&k&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f/a.length*100<e&&a.c>=e)l=!0,j=k.length,i.mediaEvent=\"MILESTONE\",a.o=i.milestone=e;if((k=q?q.split(\",\"):0)&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f<e&&c>=e)l=!0,j=k.length,i.mediaEvent=\"OFFSET_MILESTONE\",a.p=i.offsetMilestone=e}if(a.K||!d){if(r&&p&&a.length>0){if(k=p.split(\",\")){k.push(\"100\");for(j=f=0;j<k.length;j++)if(e=k[j]?parseFloat(\"\"+\r\nk[j]):0){if(a.c<e)h=j+1,d=\"M:\"+f+\"-\"+e,j=k.length;f=e}}}else if(t&&q&&(k=q.split(\",\"))){k.push(\"\"+(a.length>0?a.length:\"E\"));for(j=f=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)||k[j]==\"E\"){if(c<e||k[j]==\"E\")h=j+1,d=\"O:\"+f+\"-\"+e,j=k.length;f=e}}if(d)a.K=!0}if((d||a.e)&&d!=a.e){a.D=!0;if(!a.e)a.m=h,a.e=d;a.k>=0&&(l=!0)}if((b>=2||a.c>=100)&&a.a<c)a.L+=c-a.a,a.f+=c-a.a;if(b<=2||b==3&&!a.j)a.B+=(b==1||b==3?\"S\":\"E\")+Math.floor(c),a.j=b==3?1:b;if(!l&&a.k>=0&&b<=3&&(o=o?o:0)&&a.f>=o)l=!0,i.mediaEvent=\r\n\"SECONDS\";a.r=g;a.a=c}if(!b||b<=3&&a.c>=100)a.j!=2&&(a.B+=\"E\"+Math.floor(c)),b=0,s=n=\"None\",i.mediaEvent=\"CLOSE\";if(b==7)l=i.clicked=a.q=!0;if(b==5||m.completeByCloseOffset&&(!b||a.c>=100)&&a.length>0&&c>=a.length-m.completeCloseOffsetThreshold)l=i.complete=a.complete=!0;g=i.mediaEvent;g==\"MILESTONE\"?g+=\"_\"+i.milestone:g==\"OFFSET_MILESTONE\"&&(g+=\"_\"+i.offsetMilestone);a.H[g]?i.eventFirstTime=!1:(i.eventFirstTime=!0,a.H[g]=1);i.event=i.mediaEvent;i.timePlayed=a.L;i.segmentNum=a.m;i.segment=a.e;i.segmentLength=\r\na.A;m.monitor&&b!=4&&m.monitor(m.s,i);b==0&&m.M(w);if(l&&a.C==u){w={};w.contextData={};w.linkTrackVars=s;w.linkTrackEvents=n;if(!w.linkTrackVars)w.linkTrackVars=\"\";if(!w.linkTrackEvents)w.linkTrackEvents=\"\";m.P(w,a);w.linkTrackVars||(w[\"!linkTrackVars\"]=1);w.linkTrackEvents||(w[\"!linkTrackEvents\"]=1);m.s.track(w);if(a.D)a.m=h,a.e=d,a.z=!0,a.D=!1;else if(a.f>0)a.z=!1;a.B=\"\";a.o=a.p=0;a.f-=Math.floor(a.f);a.k=c;a.C++}}}return a};m.O=function(w,b,c,h,d){var a=0;if(w&&(!m.autoTrackMediaLengthRequired||\r\nb&&b>0)){if(!m.list||!m.list[w]){if(c==1||c==3)m.open(w,b,\"HTML5 Video\",d),a=1}else a=1;a&&m.g(w,c,h,-1,0)}};m.attach=function(w){var b,c,h;if(w&&w.tagName&&w.tagName.toUpperCase()==\"VIDEO\"){if(!m.n)m.n=function(b,a,w){var c,f;if(m.autoTrack){c=b.currentSrc;(f=b.duration)||(f=-1);if(w<0)w=b.currentTime;m.O(c,f,a,w,b)}};b=function(){m.n(w,1,-1)};c=function(){m.n(w,1,-1)};m.i(w,\"play\",b);m.i(w,\"pause\",c);m.i(w,\"seeking\",c);m.i(w,\"seeked\",b);m.i(w,\"ended\",function(){m.n(w,0,-1)});m.i(w,\"timeupdate\",\r\nb);h=function(){!w.paused&&!w.ended&&!w.seeking&&m.n(w,3,-1);setTimeout(h,1E3)};h()}};m.i=function(m,b,c){m.attachEvent?m.attachEvent(\"on\"+b,c):m.addEventListener&&m.addEventListener(b,c,!1)};if(m.completeByCloseOffset==void 0)m.completeByCloseOffset=1;if(m.completeCloseOffsetThreshold==void 0)m.completeCloseOffsetThreshold=1;m.N=function(){var w,b;if(m.autoTrack&&(w=m.s.d.getElementsByTagName(\"VIDEO\")))for(b=0;b<w.length;b++)m.attach(w[b])};m.i(s,\"load\",m.N)}", "supportsPlatform() {\n return true;\n }", "function FileSystemService($http, $q, $log) {\n var _directory = LocalFileSystem.PERSISTENT;\n var _fs = null;\n var _that = this;\n\n this.isInitalized = false;\n\n function errorHandler(e) {\n var msg = '';\n\n switch (e.code) {\n case FileError.QUOTA_EXCEEDED_ERR:\n msg = 'QUOTA_EXCEEDED_ERR';\n break;\n case FileError.NOT_FOUND_ERR:\n msg = 'NOT_FOUND_ERR';\n break;\n case FileError.SECURITY_ERR:\n msg = 'SECURITY_ERR';\n break;\n case FileError.INVALID_MODIFICATION_ERR:\n msg = 'INVALID_MODIFICATION_ERR';\n break;\n case FileError.INVALID_STATE_ERR:\n msg = 'INVALID_STATE_ERR';\n break;\n default:\n msg = 'Unknown Error';\n break;\n };\n\n $log.error('FileSystemService: ' + msg);\n }\n\n // startup\n window.requestFileSystem(_directory, 0, function(fs){\n _fs = fs;\n _that.isInitalized = true;\n }, errorHandler);\n\n\n /**\n * Checks if file is in persistent storage\n */\n this.fileExists = function(filename) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n //var uri = _directory + \"/\" + filename;\n //return $http.get(uri);\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {}, function(fileEntry) {\n // Get a File object representing the file,\n // then use FileReader to read its contents.\n fileEntry.file(function(file) {\n var reader = new FileReader();\n\n reader.onloadend = function(e) {\n deferred.resolve(e.target.result);\n };\n\n reader.readAsDataURL(file);\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n\n /**\n * Get File from perstistent storage\n */\n this.getFile = function(filename) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n //var uri = _directory + \"/\" + filename;\n //return $http.get(uri);\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {}, function(fileEntry) {\n // Get a File object representing the file,\n // then use FileReader to read its contents.\n fileEntry.file(function(file) {\n var reader = new FileReader();\n\n reader.onloadend = function(e) {\n deferred.resolve(e.target.result);\n };\n\n reader.readAsDataURL(file);\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n\n /**\n * Save data into file (and create that if necessary).\n */\n this.saveFile = function(filename, data) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {create: true}, function(fileEntry) {\n // Create a FileWriter object for our FileEntry (log.txt).\n fileEntry.createWriter(function(fileWriter) {\n\n fileWriter.onwriteend = function(e) {\n $log.log('Write completed.');\n deferred.resolve();\n };\n\n fileWriter.onerror = function(e) {\n deferred.reject(e);\n $log.error('FileSystemService: write failed, ' + e.toString());\n };\n\n // Create a new Blob and write it to log.txt.\n var blob = new Blob([data], {type: 'text/plain'});\n\n fileWriter.write(blob);\n\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n}", "static initialize(app, changeLogService, deviceService, deviceFileService, deviceFileUploadService, file, httpService, localDBManagementService, localDbService, networkService, securityService) {\n if (this.initialized) {\n return;\n }\n deviceService.addStartUpService({\n serviceName: 'OfflineStartupService',\n start: () => {\n if (window['SQLitePlugin']) {\n localDBManagementService.setLogSQl((sessionStorage.getItem('wm.logSql') === 'true') || (sessionStorage.getItem('debugMode') === 'true'));\n window.logSql = (flag = true) => {\n localDBManagementService.setLogSQl(flag);\n sessionStorage.setItem('wm.logSql', flag ? 'true' : 'false');\n };\n window.executeLocalSql = (dbName, query, params) => {\n localDBManagementService.executeSQLQuery(dbName, query, params, true);\n };\n return localDBManagementService.loadDatabases().then(() => {\n changeLogService.addWorker(new IdResolver(localDBManagementService));\n changeLogService.addWorker(new ErrorBlocker(localDBManagementService));\n changeLogService.addWorker(new FileHandler());\n changeLogService.addWorker(new MultiPartParamTransformer(deviceFileService, localDBManagementService));\n new LiveVariableOfflineBehaviour(changeLogService, httpService, localDBManagementService, networkService, localDbService).add();\n new FileUploadOfflineBehaviour(changeLogService, deviceFileService, deviceFileUploadService, file, networkService, deviceFileService.getUploadDirectory()).add();\n new NamedQueryExecutionOfflineBehaviour(changeLogService, httpService, localDBManagementService, networkService).add();\n localDBManagementService.registerCallback(new UploadedFilesImportAndExportService(changeLogService, deviceFileService, localDBManagementService, file));\n changeLogService.addWorker({\n onAddCall: () => {\n if (!networkService.isConnected()) {\n networkService.disableAutoConnect();\n }\n },\n postFlush: stats => {\n if (stats.totalTaskCount > 0) {\n localDBManagementService.close()\n .catch(noop)\n .then(() => {\n location.assign(window.location.origin + window.location.pathname);\n });\n }\n }\n });\n });\n }\n return Promise.resolve();\n }\n });\n new SecurityOfflineBehaviour(app, file, deviceService, networkService, securityService).add();\n }", "constructor(){\n\t\t//console.log('API START');\n\t}", "get deviceServiceUUID() { return this._deviceServiceUUID ? this._deviceServiceUUID : 'FFE0'; }", "_sdkCompatibility() {\n // WebSocket\n // http://caniuse.com/#feat=websockets\n var canCreateWebSocket = 'WebSocket' in window;\n console.log('Native WebSocket capability: ' +\n canCreateWebSocket);\n\n if (!canCreateWebSocket) {\n throw new Error('No WebSocket capabilities');\n }\n }", "constructor () {\r\n\t\t\r\n\t}", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x330b4067;\n this.SUBCLASS_OF_ID = 0xd3262a4a;\n\n this.phonecallsEnabled = args.phonecallsEnabled || null;\n this.defaultP2pContacts = args.defaultP2pContacts || null;\n this.preloadFeaturedStickers = args.preloadFeaturedStickers || null;\n this.ignorePhoneEntities = args.ignorePhoneEntities || null;\n this.revokePmInbox = args.revokePmInbox || null;\n this.blockedMode = args.blockedMode || null;\n this.pfsEnabled = args.pfsEnabled || null;\n this.date = args.date;\n this.expires = args.expires;\n this.testMode = args.testMode;\n this.thisDc = args.thisDc;\n this.dcOptions = args.dcOptions;\n this.dcTxtDomainName = args.dcTxtDomainName;\n this.chatSizeMax = args.chatSizeMax;\n this.megagroupSizeMax = args.megagroupSizeMax;\n this.forwardedCountMax = args.forwardedCountMax;\n this.onlineUpdatePeriodMs = args.onlineUpdatePeriodMs;\n this.offlineBlurTimeoutMs = args.offlineBlurTimeoutMs;\n this.offlineIdleTimeoutMs = args.offlineIdleTimeoutMs;\n this.onlineCloudTimeoutMs = args.onlineCloudTimeoutMs;\n this.notifyCloudDelayMs = args.notifyCloudDelayMs;\n this.notifyDefaultDelayMs = args.notifyDefaultDelayMs;\n this.pushChatPeriodMs = args.pushChatPeriodMs;\n this.pushChatLimit = args.pushChatLimit;\n this.savedGifsLimit = args.savedGifsLimit;\n this.editTimeLimit = args.editTimeLimit;\n this.revokeTimeLimit = args.revokeTimeLimit;\n this.revokePmTimeLimit = args.revokePmTimeLimit;\n this.ratingEDecay = args.ratingEDecay;\n this.stickersRecentLimit = args.stickersRecentLimit;\n this.stickersFavedLimit = args.stickersFavedLimit;\n this.channelsReadMediaPeriod = args.channelsReadMediaPeriod;\n this.tmpSessions = args.tmpSessions || null;\n this.pinnedDialogsCountMax = args.pinnedDialogsCountMax;\n this.pinnedInfolderCountMax = args.pinnedInfolderCountMax;\n this.callReceiveTimeoutMs = args.callReceiveTimeoutMs;\n this.callRingTimeoutMs = args.callRingTimeoutMs;\n this.callConnectTimeoutMs = args.callConnectTimeoutMs;\n this.callPacketTimeoutMs = args.callPacketTimeoutMs;\n this.meUrlPrefix = args.meUrlPrefix;\n this.autoupdateUrlPrefix = args.autoupdateUrlPrefix || null;\n this.gifSearchUsername = args.gifSearchUsername || null;\n this.venueSearchUsername = args.venueSearchUsername || null;\n this.imgSearchUsername = args.imgSearchUsername || null;\n this.staticMapsProvider = args.staticMapsProvider || null;\n this.captionLengthMax = args.captionLengthMax;\n this.messageLengthMax = args.messageLengthMax;\n this.webfileDcId = args.webfileDcId;\n this.suggestedLangCode = args.suggestedLangCode || null;\n this.langPackVersion = args.langPackVersion || null;\n this.baseLangPackVersion = args.baseLangPackVersion || null;\n }", "static _getName() {\n return 'ContentPlayback';\n }", "start(callback){\n \n }", "onStartHeaders() {}", "async componentWillMount() {\n var _this = this\n _this.setUpUserDataFromFB()\n\n //ASK FOR CAMERA ONLT IF IS PREVIEW TRUE AND SHOWBARCODE TRUE\n if (Config.isPreview && Config.showBCScanner) {\n const { status } = await Permissions.askAsync(Permissions.CAMERA);\n this.setState({ hasCameraPermission: status === 'granted' });\n }\n\n\n\n AppEventEmitter.addListener('user.state.changes', this.alterUserState);\n if (Config.isTesterApp) {\n this.listenForUserAuth();\n } else if (Config.isPreview && !Config.isTesterApp) {\n //Load list of apps\n _this.retreiveAppDemos(\"apps\");\n }\n\n if (!Config.isPreview && !Config.isTesterApp) {\n\n //Load the data automatically, this is normal app and refister for Push notification\n this.registerForPushNotificationsAsync();\n Notifications.addListener(this._handleNotification);\n this.retreiveMeta();\n }\n\n\n await Font.loadAsync({\n //\"Material Icons\": require(\"@expo/vector-icons/fonts/MaterialIcons.ttf\"),\n //\"Ionicons\": require(\"@expo/vector-icons/fonts/Ionicons.ttf\"),\n // \"Feather\": require(\"@expo/vector-icons/fonts/Feather.ttf\"),\n 'open-sans': require('./assets/fonts/OpenSans-Regular.ttf'),\n 'lato-light': require('./assets/fonts/Lato-Light.ttf'),\n 'lato-regular': require('./assets/fonts/Lato-Regular.ttf'),\n 'lato-bold': require('./assets/fonts/Lato-Bold.ttf'),\n 'lato-black': require('./assets/fonts/Lato-Black.ttf'),\n 'roboto-medium': require('./assets/fonts/Roboto-Medium.ttf'),\n 'roboto-bold': require('./assets/fonts/Roboto-Bold.ttf'),\n 'roboto-light': require('./assets/fonts/Roboto-Light.ttf'),\n 'roboto-thin': require('./assets/fonts/Roboto-Thin.ttf'),\n\n });\n\n this.setState({ isReady: true, fontLoaded: true });\n }", "function writeHeader() {\n seekHead = createSeekHead();\n \n let\n ebmlHeader = {\n \"id\": 0x1a45dfa3, // EBML\n \"data\": [\n {\n \"id\": 0x4286, // EBMLVersion\n \"data\": 1\n },\n {\n \"id\": 0x42f7, // EBMLReadVersion\n \"data\": 1\n },\n {\n \"id\": 0x42f2, // EBMLMaxIDLength\n \"data\": 4\n },\n {\n \"id\": 0x42f3, // EBMLMaxSizeLength\n \"data\": 8\n },\n {\n \"id\": 0x4282, // DocType\n \"data\": \"webm\"\n },\n {\n \"id\": 0x4287, // DocTypeVersion\n \"data\": 2\n },\n {\n \"id\": 0x4285, // DocTypeReadVersion\n \"data\": 2\n }\n ]\n },\n \n segmentInfo = {\n \"id\": 0x1549a966, // Info\n \"data\": [\n {\n \"id\": 0x2ad7b1, // TimecodeScale\n \"data\": 1e6 // Times will be in miliseconds (1e6 nanoseconds per step = 1ms)\n },\n {\n \"id\": 0x4d80, // MuxingApp\n \"data\": \"webm-writer-js\",\n },\n {\n \"id\": 0x5741, // WritingApp\n \"data\": \"webm-writer-js\"\n },\n segmentDuration // To be filled in later\n ]\n },\n \n videoProperties = [\n {\n \"id\": 0xb0, // PixelWidth\n \"data\": videoWidth\n },\n {\n \"id\": 0xba, // PixelHeight\n \"data\": videoHeight\n }\n ];\n \n if (options.transparent) {\n videoProperties.push(\n {\n \"id\": 0x53C0, // AlphaMode\n \"data\": 1\n }\n );\n }\n \n let\n tracks = {\n \"id\": 0x1654ae6b, // Tracks\n \"data\": [\n {\n \"id\": 0xae, // TrackEntry\n \"data\": [\n {\n \"id\": 0xd7, // TrackNumber\n \"data\": DEFAULT_TRACK_NUMBER\n },\n {\n \"id\": 0x73c5, // TrackUID\n \"data\": DEFAULT_TRACK_NUMBER\n },\n {\n \"id\": 0x9c, // FlagLacing\n \"data\": 0\n },\n {\n \"id\": 0x22b59c, // Language\n \"data\": \"und\"\n },\n {\n \"id\": 0x86, // CodecID\n \"data\": \"V_VP8\"\n },\n {\n \"id\": 0x258688, // CodecName\n \"data\": \"VP8\"\n },\n {\n \"id\": 0x83, // TrackType\n \"data\": 1\n },\n {\n \"id\": 0xe0, // Video\n \"data\": videoProperties\n }\n ]\n }\n ]\n };\n \n ebmlSegment = {\n \"id\": 0x18538067, // Segment\n \"size\": -1, // Unbounded size\n \"data\": [\n seekHead,\n segmentInfo,\n tracks,\n ]\n };\n \n let\n bufferStream = new ArrayBufferDataStream(256);\n \n writeEBML(bufferStream, blobBuffer.pos, [ebmlHeader, ebmlSegment]);\n blobBuffer.write(bufferStream.getAsDataArray());\n \n // Now we know where these top-level elements lie in the file:\n seekPoints.SegmentInfo.positionEBML.data = fileOffsetToSegmentRelative(segmentInfo.offset);\n seekPoints.Tracks.positionEBML.data = fileOffsetToSegmentRelative(tracks.offset);\n \n\t writtenHeader = true;\n }", "function AppMeasurement(){var s=this;s.version=\"1.0.3\";var w=window;if(!w.s_c_in)w.s_c_il=[],w.s_c_in=0;s._il=w.s_c_il;s._in=w.s_c_in;s._il[s._in]=s;w.s_c_in++;s._c=\"s_c\";var n=w,g,k;try{g=n.parent;for(k=n.location;g&&g.location&&k&&\"\"+g.location!=\"\"+k&&n.location&&\"\"+g.location!=\"\"+n.location&&g.location.host==k.host;)n=g,g=n.parent}catch(o){}s.za=function(s){try{console.log(s)}catch(a){}};s.ba=function(s){return\"\"+parseInt(s)==\"\"+s};s.replace=function(s,a,c){if(!s||s.indexOf(a)<0)return s;return s.split(a).join(c)};\r\ns.escape=function(b){var a,c;if(!b)return b;b=encodeURIComponent(b);for(a=0;a<7;a++)c=\"+~!*()'\".substring(a,a+1),b.indexOf(c)>=0&&(b=s.replace(b,c,\"%\"+c.charCodeAt(0).toString(16).toUpperCase()));return b};s.unescape=function(b){if(!b)return b;b=b.indexOf(\"+\")>=0?s.replace(b,\"+\",\" \"):b;try{return decodeURIComponent(b)}catch(a){}return unescape(b)};s.pa=function(){var b=w.location.hostname,a=s.fpCookieDomainPeriods,c;if(!a)a=s.cookieDomainPeriods;if(b&&!s.U&&!/^[0-9.]+$/.test(b)&&(a=a?parseInt(a):\r\n2,a=a>2?a:2,c=b.lastIndexOf(\".\"),c>=0)){for(;c>=0&&a>1;)c=b.lastIndexOf(\".\",c-1),a--;s.U=c>0?b.substring(c):b}return s.U};s.c_r=s.cookieRead=function(b){b=s.escape(b);var a=\" \"+s.d.cookie,c=a.indexOf(\" \"+b+\"=\"),e=c<0?c:a.indexOf(\";\",c);b=c<0?\"\":s.unescape(a.substring(c+2+b.length,e<0?a.length:e));return b!=\"[[B]]\"?b:\"\"};s.c_w=s.cookieWrite=function(b,a,c){var e=s.pa(),d=s.cookieLifetime,f;a=\"\"+a;d=d?(\"\"+d).toUpperCase():\"\";c&&d!=\"SESSION\"&&d!=\"NONE\"&&((f=a!=\"\"?parseInt(d?d:0):-60)?(c=new Date,c.setTime(c.getTime()+\r\nf*1E3)):c==1&&(c=new Date,f=c.getYear(),c.setYear(f+5+(f<1900?1900:0))));if(b&&d!=\"NONE\")return s.d.cookie=b+\"=\"+s.escape(a!=\"\"?a:\"[[B]]\")+\"; path=/;\"+(c&&d!=\"SESSION\"?\" expires=\"+c.toGMTString()+\";\":\"\")+(e?\" domain=\"+e+\";\":\"\"),s.cookieRead(b)==a;return 0};s.v=[];s.V=function(b,a){if(s.W)return 0;if(!s.maxDelay)s.maxDelay=250;var c=0,e=(new Date).getTime()+s.maxDelay,d=s.d.Ma,f=[\"webkitvisibilitychange\",\"visibilitychange\"];if(!d)d=s.d.Na;if(d&&d==\"prerender\"){if(!s.G){s.G=1;for(c=0;c<f.length;c++)s.d.addEventListener(f[c],\r\nfunction(){var b=s.d.Ma;if(!b)b=s.d.Na;if(b==\"visible\")s.G=0,s.delayReady()})}c=1;e=0}else s.u(\"_d\")&&(c=1);c&&(s.v.push({m:b,a:a,t:e}),s.G||setTimeout(s.delayReady,s.maxDelay));return c};s.delayReady=function(){var b=(new Date).getTime(),a=0,c;for(s.u(\"_d\")&&(a=1);s.v.length>0;){c=s.v.shift();if(a&&!c.t&&c.t>b){s.v.unshift(c);setTimeout(s.delayReady,parseInt(s.maxDelay/2));break}s.W=1;s[c.m].apply(s,c.a);s.W=0}};s.setAccount=s.sa=function(b){var a,c;if(!s.V(\"setAccount\",arguments))if(s.account=b,\r\ns.allAccounts){a=s.allAccounts.concat(b.split(\",\"));s.allAccounts=[];a.sort();for(c=0;c<a.length;c++)(c==0||a[c-1]!=a[c])&&s.allAccounts.push(a[c])}else s.allAccounts=b.split(\",\")};s.P=function(b,a,c,e,d){var f=\"\",i,j,w,q,g=0;b==\"contextData\"&&(b=\"c\");if(a){for(i in a)if(!Object.prototype[i]&&(!d||i.substring(0,d.length)==d)&&a[i]&&(!c||c.indexOf(\",\"+(e?e+\".\":\"\")+i+\",\")>=0)){w=!1;if(g)for(j=0;j<g.length;j++)i.substring(0,g[j].length)==g[j]&&(w=!0);if(!w&&(f==\"\"&&(f+=\"&\"+b+\".\"),j=a[i],d&&(i=i.substring(d.length)),\r\ni.length>0))if(w=i.indexOf(\".\"),w>0)j=i.substring(0,w),w=(d?d:\"\")+j+\".\",g||(g=[]),g.push(w),f+=s.P(j,a,c,e,w);else if(typeof j==\"boolean\"&&(j=j?\"true\":\"false\"),j){if(e==\"retrieveLightData\"&&d.indexOf(\".contextData.\")<0)switch(w=i.substring(0,4),q=i.substring(4),i){case \"transactionID\":i=\"xact\";break;case \"channel\":i=\"ch\";break;case \"campaign\":i=\"v0\";break;default:s.ba(q)&&(w==\"prop\"?i=\"c\"+q:w==\"eVar\"?i=\"v\"+q:w==\"list\"?i=\"l\"+q:w==\"hier\"&&(i=\"h\"+q,j=j.substring(0,255)))}f+=\"&\"+s.escape(i)+\"=\"+s.escape(j)}}f!=\r\n\"\"&&(f+=\"&.\"+b)}return f};s.ra=function(){var b=\"\",a,c,e,d,f,i,j,w,g=\"\",n=\"\",k=c=\"\";if(s.lightProfileID)a=s.J,(g=s.lightTrackVars)&&(g=\",\"+g+\",\"+s.ea.join(\",\")+\",\");else{a=s.e;if(s.pe||s.linkType)if(g=s.linkTrackVars,n=s.linkTrackEvents,s.pe&&(c=s.pe.substring(0,1).toUpperCase()+s.pe.substring(1),s[c]))g=s[c].Va,n=s[c].Ua;g&&(g=\",\"+g+\",\"+s.C.join(\",\")+\",\");n&&(n=\",\"+n+\",\",g&&(g+=\",events,\"));s.events2&&(k+=(k!=\"\"?\",\":\"\")+s.events2)}for(c=0;c<a.length;c++){d=a[c];f=s[d];e=d.substring(0,4);i=d.substring(4);\r\n!f&&d==\"events\"&&k&&(f=k,k=\"\");if(f&&(!g||g.indexOf(\",\"+d+\",\")>=0)){switch(d){case \"timestamp\":d=\"ts\";break;case \"dynamicVariablePrefix\":d=\"D\";break;case \"visitorID\":d=\"vid\";break;case \"pageURL\":d=\"g\";if(f.length>255)s.pageURLRest=f.substring(255),f=f.substring(0,255);break;case \"pageURLRest\":d=\"-g\";break;case \"referrer\":d=\"r\";break;case \"vmk\":case \"visitorMigrationKey\":d=\"vmt\";break;case \"visitorMigrationServer\":d=\"vmf\";s.ssl&&s.visitorMigrationServerSecure&&(f=\"\");break;case \"visitorMigrationServerSecure\":d=\r\n\"vmf\";!s.ssl&&s.visitorMigrationServer&&(f=\"\");break;case \"charSet\":d=\"ce\";break;case \"visitorNamespace\":d=\"ns\";break;case \"cookieDomainPeriods\":d=\"cdp\";break;case \"cookieLifetime\":d=\"cl\";break;case \"variableProvider\":d=\"vvp\";break;case \"currencyCode\":d=\"cc\";break;case \"channel\":d=\"ch\";break;case \"transactionID\":d=\"xact\";break;case \"campaign\":d=\"v0\";break;case \"resolution\":d=\"s\";break;case \"colorDepth\":d=\"c\";break;case \"javascriptVersion\":d=\"j\";break;case \"javaEnabled\":d=\"v\";break;case \"cookiesEnabled\":d=\r\n\"k\";break;case \"browserWidth\":d=\"bw\";break;case \"browserHeight\":d=\"bh\";break;case \"connectionType\":d=\"ct\";break;case \"homepage\":d=\"hp\";break;case \"plugins\":d=\"p\";break;case \"events\":k&&(f+=(f!=\"\"?\",\":\"\")+k);if(n){i=f.split(\",\");f=\"\";for(e=0;e<i.length;e++)j=i[e],w=j.indexOf(\"=\"),w>=0&&(j=j.substring(0,w)),w=j.indexOf(\":\"),w>=0&&(j=j.substring(0,w)),n.indexOf(\",\"+j+\",\")>=0&&(f+=(f?\",\":\"\")+i[e])}break;case \"events2\":f=\"\";break;case \"contextData\":b+=s.P(\"c\",s[d],g,d);f=\"\";break;case \"lightProfileID\":d=\r\n\"mtp\";break;case \"lightStoreForSeconds\":d=\"mtss\";s.lightProfileID||(f=\"\");break;case \"lightIncrementBy\":d=\"mti\";s.lightProfileID||(f=\"\");break;case \"retrieveLightProfiles\":d=\"mtsr\";break;case \"deleteLightProfiles\":d=\"mtsd\";break;case \"retrieveLightData\":s.retrieveLightProfiles&&(b+=s.P(\"mts\",s[d],g,d));f=\"\";break;default:s.ba(i)&&(e==\"prop\"?d=\"c\"+i:e==\"eVar\"?d=\"v\"+i:e==\"list\"?d=\"l\"+i:e==\"hier\"&&(d=\"h\"+i,f=f.substring(0,255)))}f&&(b+=\"&\"+d+\"=\"+(d.substring(0,3)!=\"pev\"?s.escape(f):f))}d==\"pev3\"&&s.g&&\r\n(b+=s.g)}return b};s.p=function(s){var a=s.tagName;if(\"\"+s.Ta!=\"undefined\"||\"\"+s.Ea!=\"undefined\"&&(\"\"+s.Ea).toUpperCase()!=\"HTML\")return\"\";a=a&&a.toUpperCase?a.toUpperCase():\"\";a==\"SHAPE\"&&(a=\"\");a&&((a==\"INPUT\"||a==\"BUTTON\")&&s.type&&s.type.toUpperCase?a=s.type.toUpperCase():!a&&s.href&&(a=\"A\"));return a};s.Y=function(s){var a=s.href?s.href:\"\",c,e,d;c=a.indexOf(\":\");e=a.indexOf(\"?\");d=a.indexOf(\"/\");if(a&&(c<0||e>=0&&c>e||d>=0&&c>d))e=s.protocol&&s.protocol.length>1?s.protocol:l.protocol?l.protocol:\r\n\"\",c=l.pathname.lastIndexOf(\"/\"),a=(e?e+\"//\":\"\")+(s.host?s.host:l.host?l.host:\"\")+(h.substring(0,1)!=\"/\"?l.pathname.substring(0,c<0?0:c)+\"/\":\"\")+a;return a};s.z=function(b){var a=s.p(b),c,e,d=\"\",f=0;if(a){c=b.protocol;e=b.onclick;if(b.href&&(a==\"A\"||a==\"AREA\")&&(!e||!c||c.toLowerCase().indexOf(\"javascript\")<0))d=s.Y(b);else if(e)d=s.replace(s.replace(s.replace(s.replace(\"\"+e,\"\\r\",\"\"),\"\\n\",\"\"),\"\\t\",\"\"),\" \",\"\"),f=2;else if(a==\"INPUT\"||a==\"SUBMIT\"){if(b.value)d=b.value;else if(b.innerText)d=b.innerText;\r\nelse if(b.textContent)d=b.textContent;f=3}else if(b.src&&a==\"IMAGE\")d=b.src;if(d)return{id:d.substring(0,100),type:f}}return 0};s.Qa=function(b){for(var a=s.p(b),c=s.z(b);b&&!c&&a!=\"BODY\";)if(b=b.parentElement?b.parentElement:b.parentNode)a=s.p(b),c=s.z(b);if(!c||a==\"BODY\")b=0;if(b&&(a=b.onclick?\"\"+b.onclick:\"\",a.indexOf(\".tl(\")>=0||a.indexOf(\".trackLink(\")>=0))b=0;return b};s.Ca=function(){var b,a,c=s.linkObject,e=s.linkType,d=s.linkURL,f,i;s.K=1;if(!c)s.K=0,c=s.j;if(c){b=s.p(c);for(a=s.z(c);c&&\r\n!a&&b!=\"BODY\";)if(c=c.parentElement?c.parentElement:c.parentNode)b=s.p(c),a=s.z(c);if(!a||b==\"BODY\")c=0;if(c){var j=c.onclick?\"\"+c.onclick:\"\";if(j.indexOf(\".tl(\")>=0||j.indexOf(\".trackLink(\")>=0)c=0}}else s.K=1;!d&&c&&(d=s.Y(c));d&&!s.linkLeaveQueryString&&(f=d.indexOf(\"?\"),f>=0&&(d=d.substring(0,f)));if(!e&&d){var g=0,n=0,k;if(s.trackDownloadLinks&&s.linkDownloadFileTypes){j=d.toLowerCase();f=j.indexOf(\"?\");i=j.indexOf(\"#\");f>=0?i>=0&&i<f&&(f=i):f=i;f>=0&&(j=j.substring(0,f));f=s.linkDownloadFileTypes.toLowerCase().split(\",\");\r\nfor(i=0;i<f.length;i++)(k=f[i])&&j.substring(j.length-(k.length+1))==\".\"+k&&(e=\"d\")}if(s.trackExternalLinks&&!e&&(j=d.toLowerCase(),s.aa(j))){if(!s.linkInternalFilters)s.linkInternalFilters=w.location.hostname;f=0;s.linkExternalFilters?(f=s.linkExternalFilters.toLowerCase().split(\",\"),g=1):s.linkInternalFilters&&(f=s.linkInternalFilters.toLowerCase().split(\",\"));if(f){for(i=0;i<f.length;i++)k=f[i],j.indexOf(k)>=0&&(n=1);n?g&&(e=\"e\"):g||(e=\"e\")}}}s.linkObject=c;s.linkURL=d;s.linkType=e;if(s.trackClickMap||\r\ns.trackInlineStats)if(s.g=\"\",c){e=s.pageName;d=1;c=c.sourceIndex;if(!e)e=s.pageURL,d=0;if(w.s_objectID)a.id=w.s_objectID,c=a.type=1;if(e&&a&&a.id&&b)s.g=\"&pid=\"+s.escape(e.substring(0,255))+(d?\"&pidt=\"+d:\"\")+\"&oid=\"+s.escape(a.id.substring(0,100))+(a.type?\"&oidt=\"+a.type:\"\")+\"&ot=\"+b+(c?\"&oi=\"+c:\"\")}};s.ta=function(){var b=s.K,a=s.linkType,c=s.linkURL,e=s.linkName;if(a&&(c||e))a=a.toLowerCase(),a!=\"d\"&&a!=\"e\"&&(a=\"o\"),s.pe=\"lnk_\"+a,s.pev1=c?s.escape(c):\"\",s.pev2=e?s.escape(e):\"\",b=1;s.abort&&(b=0);\r\nif(s.trackClickMap||s.trackInlineStats){a={};c=0;var d=s.cookieRead(\"s_sq\"),f=d?d.split(\"&\"):0,i,j,w;d=0;if(f)for(i=0;i<f.length;i++)j=f[i].split(\"=\"),e=s.unescape(j[0]).split(\",\"),j=s.unescape(j[1]),a[j]=e;e=s.account.split(\",\");if(b||s.g){b&&!s.g&&(d=1);for(j in a)if(!Object.prototype[j])for(i=0;i<e.length;i++){d&&(w=a[j].join(\",\"),w==s.account&&(s.g+=(j.charAt(0)!=\"&\"?\"&\":\"\")+j,a[j]=[],c=1));for(f=0;f<a[j].length;f++)w=a[j][f],w==e[i]&&(d&&(s.g+=\"&u=\"+s.escape(w)+(j.charAt(0)!=\"&\"?\"&\":\"\")+j+\"&u=0\"),\r\na[j].splice(f,1),c=1)}b||(c=1);if(c){d=\"\";i=2;!b&&s.g&&(d=s.escape(e.join(\",\"))+\"=\"+s.escape(s.g),i=1);for(j in a)!Object.prototype[j]&&i>0&&a[j].length>0&&(d+=(d?\"&\":\"\")+s.escape(a[j].join(\",\"))+\"=\"+s.escape(j),i--);s.cookieWrite(\"s_sq\",d)}}}return b};s.ua=function(){if(!s.Ka){var b=new Date,a=n.location,c,e,d,f=d=e=c=\"\",i=\"\",w=\"\",g=\"1.2\",k=s.cookieWrite(\"s_cc\",\"true\",0)?\"Y\":\"N\",o=\"\",p=\"\",r=0;if(b.setUTCDate&&(g=\"1.3\",r.toPrecision&&(g=\"1.5\",c=[],c.forEach))){g=\"1.6\";d=0;e={};try{d=new Iterator(e),\r\nd.next&&(g=\"1.7\",c.reduce&&(g=\"1.8\",g.trim&&(g=\"1.8.1\",Date.parse&&(g=\"1.8.2\",Object.create&&(g=\"1.8.5\")))))}catch(t){}}c=screen.width+\"x\"+screen.height;d=navigator.javaEnabled()?\"Y\":\"N\";e=screen.pixelDepth?screen.pixelDepth:screen.colorDepth;i=s.w.innerWidth?s.w.innerWidth:s.d.documentElement.offsetWidth;w=s.w.innerHeight?s.w.innerHeight:s.d.documentElement.offsetHeight;b=navigator.plugins;try{s.b.addBehavior(\"#default#homePage\"),o=s.b.Ra(a)?\"Y\":\"N\"}catch(u){}try{s.b.addBehavior(\"#default#clientCaps\"),\r\np=s.b.connectionType}catch(x){}if(b)for(;r<b.length&&r<30;){if(a=b[r].name)a=a.substring(0,100)+\";\",f.indexOf(a)<0&&(f+=a);r++}s.resolution=c;s.colorDepth=e;s.javascriptVersion=g;s.javaEnabled=d;s.cookiesEnabled=k;s.browserWidth=i;s.browserHeight=w;s.connectionType=p;s.homepage=o;s.plugins=f;s.Ka=1}};s.B={};s.loadModule=function(b,a){s.B[b]||(s[b]=w[\"AppMeasurement_Module_\"+b]?new w[\"AppMeasurement_Module_\"+b](s):{},s.B[b]=s[b]);a&&(s[b+\"_onLoad\"]=a,delayCall(b+\"_onLoad\",[s,m],1)||a(s,m))};s.u=function(b){var a,\r\nc;for(a in s.B)if(!Object.prototype[a]&&(c=s.B[a])&&c[b]&&c[b]())return 1;return 0};s.xa=function(){var b=Math.floor(Math.random()*1E13),a=s.visitorSampling,c=s.visitorSamplingGroup;c=\"s_vsn_\"+(s.visitorNamespace?s.visitorNamespace:s.account)+(c?\"_\"+c:\"\");var e=s.cookieRead(c);if(a){e&&(e=parseInt(e));if(!e){if(!s.cookieWrite(c,b))return 0;e=b}if(e%1E4>v)return 0}return 1};s.Q=function(b,a){var c,e,d,f,i,w;for(c=0;c<2;c++){e=c>0?s.R:s.e;for(d=0;d<e.length;d++)if(f=e[d],(i=b[f])||b[\"!\"+f]){if(!a&&\r\n(f==\"contextData\"||f==\"retrieveLightData\")&&s[f])for(w in s[f])i[w]||(i[w]=s[f][w]);s[f]=i}}};s.La=function(b){var a,c,e,d;for(a=0;a<2;a++){c=a>0?s.R:s.e;for(e=0;e<c.length;e++)d=c[e],b[d]=s[d],b[d]||(b[\"!\"+d]=1)}};s.oa=function(s){var a,c,e,d,f,w=0,g,n=\"\",k=\"\";if(s&&s.length>255&&(a=\"\"+s,c=a.indexOf(\"?\"),c>0&&(g=a.substring(c+1),a=a.substring(0,c),d=a.toLowerCase(),e=0,d.substring(0,7)==\"http://\"?e+=7:d.substring(0,8)==\"https://\"&&(e+=8),c=d.indexOf(\"/\",e),c>0&&(d=d.substring(e,c),f=a.substring(c),\r\na=a.substring(0,c),d.indexOf(\"google\")>=0?w=\",q,ie,start,search_key,word,kw,cd,\":d.indexOf(\"yahoo.co\")>=0&&(w=\",p,ei,\"),w&&g)))){if((s=g.split(\"&\"))&&s.length>1){for(e=0;e<s.length;e++)d=s[e],c=d.indexOf(\"=\"),c>0&&w.indexOf(\",\"+d.substring(0,c)+\",\")>=0?n+=(n?\"&\":\"\")+d:k+=(k?\"&\":\"\")+d;n&&k?g=n+\"&\"+k:k=\"\"}c=253-(g.length-k.length)-a.length;s=a+(c>0?f.substring(0,c):\"\")+\"?\"+g}return s};s.qa=function(){var b=s.cookieRead(\"s_fid\"),a=\"\",c=\"\",e;e=8;var d=4;if(!b||b.indexOf(\"-\")<0){for(b=0;b<16;b++)e=Math.floor(Math.random()*\r\ne),a+=\"0123456789ABCDEF\".substring(e,e+1),e=Math.floor(Math.random()*d),c+=\"0123456789ABCDEF\".substring(e,e+1),e=d=16;b=a+\"-\"+c}s.cookieWrite(\"s_fid\",b,1)||(b=0);return b};s.t=s.track=function(b){var a,c=new Date,e=\"s\"+Math.floor(c.getTime()/108E5)%10+Math.floor(Math.random()*1E13),d=c.getYear();d=\"t=\"+s.escape(c.getDate()+\"/\"+c.getMonth()+\"/\"+(d<1900?d+1900:d)+\" \"+c.getHours()+\":\"+c.getMinutes()+\":\"+c.getSeconds()+\" \"+c.getDay()+\" \"+c.getTimezoneOffset());if(!s.V(\"track\",arguments)){b&&(a={},s.La(a),\r\ns.Q(b));if(s.xa()&&(s.fid=s.qa(),s.Ca(),s.usePlugins&&s.doPlugins&&s.doPlugins(s),s.account)){if(!s.abort){if(s.trackOffline&&!s.timestamp)s.timestamp=Math.floor(c.getTime()/1E3);c=w.location;if(!s.pageURL)s.pageURL=c.href?c.href:c;if(!s.referrer&&!s.ia)s.referrer=n.document.referrer,s.ia=1;s.referrer=s.oa(s.referrer);s.u(\"_g\")}s.ta()&&!s.abort&&(s.ua(),d+=s.ra(),s.Ba(e,d));s.abort||s.u(\"_t\")}b&&s.Q(a,1);s.timestamp=s.linkObject=s.j=s.linkURL=s.linkName=s.linkType=w.Sa=s.pe=s.pev1=s.pev2=s.pev3=s.g=\r\n0}};s.tl=s.trackLink=function(b,a,c,e,d){s.linkObject=b;s.linkType=a;s.linkName=c;if(d)s.i=b,s.l=d;return s.track(e)};s.trackLight=function(b,a,c,e){s.lightProfileID=b;s.lightStoreForSeconds=a;s.lightIncrementBy=c;return s.track(e)};s.clearVars=function(){var b,a;for(b=0;b<s.e.length;b++)if(a=s.e[b],a.substring(0,4)==\"prop\"||a.substring(0,4)==\"eVar\"||a.substring(0,4)==\"hier\"||a.substring(0,4)==\"list\"||a==\"channel\"||a==\"events\"||a==\"eventList\"||a==\"products\"||a==\"productList\"||a==\"purchaseID\"||a==\r\n\"transactionID\"||a==\"state\"||a==\"zip\"||a==\"campaign\")s[a]=void 0};s.Ba=function(b,a){var c,e=s.trackingServer;c=\"\";var d=s.dc,f=\"sc.\",w=s.visitorNamespace;if(e){if(s.trackingServerSecure&&s.ssl)e=s.trackingServerSecure}else{if(!w)w=s.account,e=w.indexOf(\",\"),e>=0&&(w=w.Oa(0,e)),w=w.replace(/[^A-Za-z0-9]/g,\"\");c||(c=\"2o7.net\");d=d?(\"\"+d).toLowerCase():\"d1\";c==\"2o7.net\"&&(d==\"d1\"?d=\"112\":d==\"d2\"&&(d=\"122\"),f=\"\");e=w+\".\"+d+\".\"+f+c}c=s.ssl?\"https://\":\"http://\";c+=e+\"/b/ss/\"+s.account+\"/\"+(s.mobile?\"5.\":\r\n\"\")+\"1/JS-\"+s.version+(s.Ja?\"T\":\"\")+\"/\"+b+\"?AQB=1&ndh=1&\"+a+\"&AQE=1\";s.wa&&(c=c.substring(0,2047));s.ma(c);s.H()};s.ma=function(b){s.c||s.va();s.c.push(b);s.I=s.o();s.ha()};s.va=function(){s.c=s.ya();if(!s.c)s.c=[]};s.ya=function(){var b,a;if(s.M()){try{(a=w.localStorage.getItem(s.L()))&&(b=w.JSON.parse(a))}catch(c){}return b}};s.M=function(){var b=!0;if(!s.trackOffline||!s.offlineFilename||!w.localStorage||!w.JSON)b=!1;return b};s.Z=function(){var b=0;if(s.c)b=s.c.length;s.q&&b++;return b};s.H=function(){if(!s.q)if(s.$=\r\nnull,s.fa)s.I>s.A&&s.ga(s.c),s.O(500);else{var b=s.ja();if(b>0)s.O(b);else if(b=s.X())s.q=1,s.Aa(b),s.Fa(b)}};s.O=function(b){if(!s.$)b||(b=0),s.$=setTimeout(s.H,b)};s.ja=function(){var b;if(!s.trackOffline||s.offlineThrottleDelay<=0)return 0;b=s.o()-s.da;if(s.offlineThrottleDelay<b)return 0;return s.offlineThrottleDelay-b};s.X=function(){if(s.c.length>0)return s.c.shift()};s.Aa=function(b){if(s.debugTracking){var a=\"AppMeasurement Debug: \"+b;b=b.split(\"&\");var c;for(c=0;c<b.length;c++)a+=\"\\n\\t\"+\r\ns.unescape(b[c]);s.za(a)}};s.Fa=function(b){var a;a||(a=new Image);a.T=function(){try{if(s.N)clearTimeout(s.N),s.N=0;if(a.timeout)clearTimeout(a.timeout),a.timeout=0}catch(b){}};a.onload=a.Ia=function(){a.T();s.la();s.D();s.q=0;s.H()};a.onabort=a.onerror=a.na=function(){a.T();s.q&&s.c.unshift(s.ka);s.q=0;s.I>s.A&&s.ga(s.c);s.D();s.O(500)};a.onreadystatechange=function(){a.readyState==4&&(a.status==200?a.Ia():a.na())};s.da=s.o();a.src=b;if(a.abort)s.N=setTimeout(a.abort,5E3);s.ka=b;s.Pa=w[\"s_i_\"+s.replace(s.account,\r\n\",\",\"_\")]=a;if(s.useForcedLinkTracking&&s.r||s.l){if(!s.forcedLinkTrackingTimeout)s.forcedLinkTrackingTimeout=250;s.F=setTimeout(s.D,s.forcedLinkTrackingTimeout)}};s.la=function(){if(s.M()&&!(s.ca>s.A))try{w.localStorage.removeItem(s.L()),s.ca=s.o()}catch(b){}};s.ga=function(b){if(s.M()){s.ha();try{w.localStorage.setItem(s.L(),w.JSON.stringify(b)),s.A=s.o()}catch(a){}}};s.ha=function(){if(s.trackOffline){if(!s.offlineLimit||s.offlineLimit<=0)s.offlineLimit=10;for(;s.c.length>s.offlineLimit;)s.X()}};\r\ns.forceOffline=function(){s.fa=!0};s.forceOnline=function(){s.fa=!1};s.L=function(){return s.offlineFilename+\"-\"+s.visitorNamespace+s.account};s.o=function(){return(new Date).getTime()};s.aa=function(s){s=s.toLowerCase();if(s.indexOf(\"#\")!=0&&s.indexOf(\"about:\")!=0&&s.indexOf(\"javascript:\")!=0)return!0;return!1};s.setTagContainer=function(b){var a,c,e;s.Ja=b;for(a=0;a<s._il.length;a++)if((c=s._il[a])&&c._c==\"s_l\"&&c.tagContainerName==b){s.Q(c);if(c.lmq)for(a=0;a<c.lmq.length;a++)e=c.lmq[a],s.loadModule(e.n);\r\nif(c.ml)for(e in c.ml)if(s[e])for(a in b=s[e],e=c.ml[e],e)if(!Object.prototype[a]&&(typeof e[a]!=\"function\"||(\"\"+e[a]).indexOf(\"s_c_il\")<0))b[a]=e[a];if(c.mmq)for(a=0;a<c.mmq.length;a++)e=c.mmq[a],s[e.m]&&(b=s[e.m],b[e.f]&&typeof b[e.f]==\"function\"&&(e.a?b[e.f].apply(b,e.a):b[e.f].apply(b)));if(c.tq)for(a=0;a<c.tq.length;a++)s.track(c.tq[a]);c.s=s;break}};s.Util={urlEncode:s.escape,urlDecode:s.unescape,cookieRead:s.cookieRead,cookieWrite:s.cookieWrite,getQueryParam:function(b,a,c){var e;a||(a=s.pageURL?\r\ns.pageURL:w.location);c||(c=\"&\");if(b&&a&&(a=\"\"+a,e=a.indexOf(\"?\"),e>=0&&(a=c+a.substring(e+1)+c,e=a.indexOf(c+b+\"=\"),e>=0&&(a=a.substring(e+c.length+b.length+1),e=a.indexOf(c),e>=0&&(a=a.substring(0,e)),a.length>0))))return s.unescape(a);return\"\"}};s.C=[\"timestamp\",\"dynamicVariablePrefix\",\"visitorID\",\"anonymousVisitorID\",\"globalVisitorID\",\"globalLocationHint\",\"fid\",\"vmk\",\"visitorMigrationKey\",\"visitorMigrationServer\",\"visitorMigrationServerSecure\",\"charSet\",\"visitorNamespace\",\"cookieDomainPeriods\",\r\n\"fpCookieDomainPeriods\",\"cookieLifetime\",\"pageName\",\"pageURL\",\"referrer\",\"contextData\",\"currencyCode\",\"lightProfileID\",\"lightStoreForSeconds\",\"lightIncrementBy\",\"retrieveLightProfiles\",\"deleteLightProfiles\",\"retrieveLightData\",\"pe\",\"pev1\",\"pev2\",\"pev3\",\"pageURLRest\"];s.e=s.C.concat([\"purchaseID\",\"variableProvider\",\"channel\",\"server\",\"pageType\",\"transactionID\",\"campaign\",\"state\",\"zip\",\"events\",\"events2\",\"products\",\"tnt\"]);s.ea=[\"timestamp\",\"charSet\",\"visitorNamespace\",\"cookieDomainPeriods\",\"cookieLifetime\",\r\n\"contextData\",\"lightProfileID\",\"lightStoreForSeconds\",\"lightIncrementBy\"];s.J=s.ea.slice(0);s.R=[\"account\",\"allAccounts\",\"debugTracking\",\"visitor\",\"trackOffline\",\"offlineLimit\",\"offlineThrottleDelay\",\"offlineFilename\",\"usePlugins\",\"doPlugins\",\"configURL\",\"visitorSampling\",\"s.visitorSamplingGroup\",\"linkObject\",\"linkURL\",\"linkName\",\"linkType\",\"trackDownloadLinks\",\"trackExternalLinks\",\"trackClickMap\",\"trackInlineStats\",\"linkLeaveQueryString\",\"linkTrackVars\",\"linkTrackEvents\",\"linkDownloadFileTypes\",\r\n\"linkExternalFilters\",\"linkInternalFilters\",\"useForcedLinkTracking\",\"forcedLinkTrackingTimeout\",\"trackingServer\",\"trackingServerSecure\",\"ssl\",\"abort\",\"mobile\",\"dc\",\"lightTrackVars\",\"maxDelay\"];for(g=0;g<=75;g++)s.e.push(\"prop\"+g),s.J.push(\"prop\"+g),s.e.push(\"eVar\"+g),s.J.push(\"eVar\"+g),g<6&&s.e.push(\"hier\"+g),g<4&&s.e.push(\"list\"+g);g=[\"resolution\",\"colorDepth\",\"javascriptVersion\",\"javaEnabled\",\"cookiesEnabled\",\"browserWidth\",\"browserHeight\",\"connectionType\",\"homepage\",\"plugins\"];s.e=s.e.concat(g);\r\ns.C=s.C.concat(g);s.ssl=w.location.protocol.toLowerCase().indexOf(\"https\")>=0;s.charSet=\"UTF-8\";s.contextData={};s.offlineThrottleDelay=0;s.offlineFilename=\"AppMeasurement.offline\";s.da=0;s.I=0;s.A=0;s.ca=0;s.linkDownloadFileTypes=\"exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx\";s.w=w;s.d=w.document;try{s.wa=navigator.appName==\"Microsoft Internet Explorer\"}catch(p){}s.D=function(){if(s.F)w.clearTimeout(s.F),s.F=null;s.i&&s.r&&s.i.dispatchEvent(s.r);if(s.l)if(typeof s.l==\"function\")s.l();\r\nelse if(s.i&&s.i.href)s.d.location=s.i.href;s.i=s.r=s.l=0};s.Ga=function(){s.b=s.d.body;if(s.b)if(s.k=function(b){var a,c,e,d,f;if(!(s.d&&s.d.getElementById(\"cppXYctnr\")||b&&b.Da)){if(s.S)if(s.useForcedLinkTracking)s.b.removeEventListener(\"click\",s.k,!1);else{s.b.removeEventListener(\"click\",s.k,!0);s.S=s.useForcedLinkTracking=0;return}else s.useForcedLinkTracking=0;s.j=b.srcElement?b.srcElement:b.target;try{if(s.j&&(s.j.tagName||s.j.parentElement||s.j.parentNode))if(e=s.Z(),s.track(),e<s.Z()&&s.useForcedLinkTracking&&\r\nb.target){for(d=b.target;d&&d!=s.b&&d.tagName.toUpperCase()!=\"A\"&&d.tagName.toUpperCase()!=\"AREA\";)d=d.parentNode;if(d&&(f=d.href,s.aa(f)||(f=0),c=d.target,b.target.dispatchEvent&&f&&(!c||c==\"_self\"||c==\"_top\"||c==\"_parent\"||w.name&&c==w.name))){try{a=s.d.createEvent(\"MouseEvents\")}catch(g){a=new w.MouseEvent}if(a){try{a.initMouseEvent(\"click\",b.bubbles,b.cancelable,b.view,b.detail,b.screenX,b.screenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget)}catch(j){a=\r\n0}if(a)a.Da=1,b.stopPropagation(),b.Ha&&b.Ha(),b.preventDefault(),s.i=b.target,s.r=a}}}}catch(k){}s.j=0}},s.b&&s.b.attachEvent)s.b.attachEvent(\"onclick\",s.k);else{if(s.b&&s.b.addEventListener){if(navigator&&(navigator.userAgent.indexOf(\"WebKit\")>=0&&s.d.createEvent||navigator.userAgent.indexOf(\"Firefox/2\")>=0&&w.MouseEvent))s.S=1,s.useForcedLinkTracking=1,s.b.addEventListener(\"click\",s.k,!0);s.b.addEventListener(\"click\",s.k,!1)}}else setTimeout(setupBody,30)};s.Ga()}", "function getVersion(){return _VERSION}", "InitVsaEngine() {\n\n }", "constructor() {\n this.systemLog = false\n this.appName = '@codedungeon/messenger'\n this.logToFile = false\n this.methods = [\n 'write',\n 'critical',\n 'lblCritical',\n 'danger',\n 'lblDanger',\n 'debug',\n 'error',\n 'lblError',\n 'important',\n 'lblImportant',\n 'info',\n 'lblInfo',\n 'log',\n 'note',\n 'notice',\n 'lblNotice',\n 'status',\n 'success',\n 'lblSuccess',\n 'warn',\n 'lblWarn',\n 'warning',\n 'lblWarning'\n ]\n }", "function WebSocketRpcConnection()\n{\nvar self = this;\n\nvar isNodeJs = (typeof window === \"undefined\" ? true : false);\n\nvar lib = null;\nvar SpaceifyError = null;\nvar SpaceifyUtility = null;\nvar RpcCommunicator = null;\n//var SpaceifyLogger = null;\nvar WebSocketConnection = null;\n\nif (isNodeJs)\n\t{\n\tlib = \"/var/lib/spaceify/code/\";\n\n\tSpaceifyError = require(lib + \"spaceifyerror\");\n\t//SpaceifyLogger = require(lib + \"spaceifylogger\");\n\tSpaceifyUtility = require(lib + \"spaceifyutility\");\n\tRpcCommunicator = require(lib + \"rpccommunicator\");\n\tWebSocketConnection = require(lib + \"websocketconnection\");\n\t}\nelse\n\t{\n\tlib = (window.WEBPACK_MAIN_LIBRARY ? window.WEBPACK_MAIN_LIBRARY : window);\n\n\t//SpaceifyLogger = lib.SpaceifyLogger;\n\tSpaceifyError = lib.SpaceifyError;\n\tSpaceifyUtility = lib.SpaceifyUtility;\n\tRpcCommunicator = lib.RpcCommunicator;\n\tWebSocketConnection = lib.WebSocketConnection;\n\t}\n\nvar errorc = new SpaceifyError();\nvar utility = new SpaceifyUtility();\nvar communicator = new RpcCommunicator();\nvar connection = new WebSocketConnection();\n//var logger = new SpaceifyLogger(\"WebSocketRpcConnection\");\n\nself.connect = function(options, callback)\n\t{\n\tconnection.connect(options, function(err, data)\n\t\t{\n\t\tif(!err)\n\t\t\t{\n\t\t\tcommunicator.addConnection(connection);\n\n\t\t\tif(callback)\n\t\t\t\tcallback(null, true);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tif(callback)\n\t\t\t\tcallback(errorc.makeErrorObject(\"wsrpcc\", \"Failed to open WebsocketRpcConnection.\", \"WebSocketRpcConnection::connect\"), null);\n\t\t\t}\n\t\t});\n\t};\n\nself.close = function()\n\t{\n\t};\n\nself.getCommunicator = function()\n\t{\n\treturn communicator;\n\t};\n\nself.getConnection = function()\n\t{\n\treturn connection;\n\t};\n\n// Inherited methods\nself.getIsOpen = function()\n\t{\n\treturn connection.getIsOpen();\n\t}\n\nself.getIsSecure = function()\n\t{\n\treturn connection.getIsSecure();\n\t}\n\nself.getPort = function()\n\t{\n\treturn connection.getPort();\n\t}\n\nself.getId = function()\n\t{\n\treturn connection.getId();\n\t}\n\nself.connectionExists = function(connectionId)\n\t{\n\treturn communicator.connectionExists(connectionId);\n\t}\n\nself.exposeRpcMethod = function(name, object, method)\n\t{\n\tcommunicator.exposeRpcMethod(name, object, method);\n\t}\n\nself.exposeRpcMethodSync = function(name, object, method)\n\t{\n\tcommunicator.exposeRpcMethodSync(name, object, method);\n\t}\n\nself.callRpc = function(method, params, object, listener)\n\t{\n\treturn communicator.callRpc(method, params, object, listener, connection.getId());\n\t}\n\n// External event listeners\nself.setConnectionListener = function(listener)\n\t{\n\tcommunicator.setConnectionListener(listener);\n\t};\n\nself.setDisconnectionListener = function(listener)\n\t{\n\tcommunicator.setDisconnectionListener(listener);\n\t};\n\n}", "private internal function m248() {}", "heartbeat () {\n }", "function getString(key, params) {\n var result = WEB_PLATFORM.getString(\"org_opensds_storage_devices\", key, params);\n if(result == null){\n return key;\n }else{\n return result;\n }\n }", "function _____SHARED_functions_____(){}", "onShareAppMessage() {\n\n }", "componentDidMount(){\n console.info(this.constructor.name+ 'Component mount process finished');\n }", "requestThumbnails() {\n let position = this.state.position;\n let ed = this.state.ed;\n let ts = position == 'start' ? ed.start : ed.end;\n\n this.props.socket.emit('frameSelect',{ ts: ts } );\n }", "onMessage() {}", "onMessage() {}", "static get tag(){return\"hal-9000\"}", "get EXTERNAL_API() {\n return ['setUsageMode',\n 'setBackupMode',\n 'setLocationMode',\n 'setUsageOptinHidden',\n ];\n }", "constructor(t){const e={...t};this.connectionState=new h,this.server=\"https://hub-server-2.heatgenius.co.uk\",this.username=\"\",this.signature=\"\",this.auth={header:{}},this.lastQueryTime=null,this._axios=i.a.create({}),this.logger=e.logger?e.logger:console,this.debug=!!e.debug&&e.debug}", "started() {\r\n\r\n\t}", "getVideoDataBuffer() {\n return this.videoDataBuffer;\n }", "addTPKLayer(){\n //<editor-fold desc=\"old code to eliminate\">\n /* if (typeof local == 'undefined') {\n\n //todo: maybe based on this url we could decide if taking the tpk from File API or form URL\n var xhrRequest = new XMLHttpRequest();\n var _this = this;\n xhrRequest.open(\"GET\", url, true);\n xhrRequest.responseType = \"blob\";\n xhrRequest.onprogress = function(evt){\n var percent = 0;\n if(/!*evt.hasOwnProperty(\"total\")*!/typeof evt[\"total\"] !== 'undefined'){\n percent = (parseFloat(evt.loaded / evt.total) * 100).toFixed(0);\n }\n else{\n percent = (parseFloat(evt.loaded / evt.totalSize) * 100).toFixed(0);\n }\n\n console.log(\"Get file via url \" + percent + \"%\");\n console.log(\"Begin downloading remote tpk file...\");\n };\n\n xhrRequest.error = function(err){\n console.log(\"ERROR retrieving TPK file: \" + err.toString());\n alert(\"There was a problem retrieve the file.\");\n };\n var __this = _this;\n xhrRequest.onload = function(oEvent) {\n if(this.status === 200) {\n console.log(\"Remote tpk download finished.\" + oEvent);\n __this.zipParser(this.response);\n }\n else{\n alert(\"There was a problem loading the file. \" + this.status + \": \" + this.statusText );\n }\n };\n xhrRequest.send();\n }\n*/\n //</editor-fold>\n if (this.get('ermesCordova').isNative()){\n\n var basemapName = this.get('parcels').get('basemapName');\n var store = cordova.file.dataDirectory;\n var fileName = basemapName;\n this.set(\"loading\", true);\n this.getBaseMapZip (store, fileName).then((binary)=>{\n if (binary!== null) {\n this.zipParser(binary);\n }\n else {\n Ember.debug(\"getBaseMapZip: error loading the zip file\");\n }\n });\n }\n\n }", "private public function m246() {}", "async onReady() {\n try {\n // Initialize your adapter here\n //Logging of adapter start\n this.log.info('start fb-checkpresence: ip-address: \"' + this.config.ipaddress + '\" - interval devices: ' + this.config.interval + ' Min.' + ' - interval members: ' + this.config.intervalFamily + ' s');\n this.log.debug('configuration user: <' + this.config.username + '>');\n this.log.debug('configuration history: <' + this.config.history + '>');\n this.log.debug('configuration dateformat: <' + this.config.dateformat + '>');\n this.log.debug('configuration familymembers: ' + JSON.stringify(this.config.familymembers));\n this.log.debug('configuration fb-devices ' + this.config.fbdevices);\n this.log.debug('configuratuion mesh info: ' + this.config.meshinfo); \n\n //decrypt fritzbox password\n const sysObj = await this.getForeignObjectAsync('system.config');\n if (sysObj && sysObj.native && sysObj.native.secret) {\n this.config.password = this.decrypt(sysObj.native.secret, this.config.password);\n } else {\n this.config.password = this.decrypt('SdoeQ85NTrg1B0FtEyzf', this.config.password);\n }\n\n //Configuration changes if needed\n let adapterObj = (await this.getForeignObjectAsync(`system.adapter.${this.namespace}`));\n let adapterObjChanged = false; //for changes\n \n //if interval <= 0 than set to 1\n if (this.config.interval <= 0) {\n adapterObj.native.interval = 1;\n adapterObjChanged = true;\n this.config.interval = 1;\n this.log.warn('interval is less than 1. Set to 1 Min.');\n }\n\n //if interval <= 0 than set to 1\n if (this.config.intervalFamily <= 9) {\n adapterObj.native.intervalFamily = 10;\n adapterObjChanged = true;\n this.config.intervalFamily = 10;\n this.log.warn('interval is less than 10. Set to 10s.');\n }\n\n //create new configuration items -> workaround for older versions\n for(let i=0;i<this.config.familymembers.length;i++){\n if (this.config.familymembers[i].useip == undefined) {\n adapterObj.native.familymembers[i].useip = false;\n adapterObj.native.familymembers[i].ipaddress = '';\n adapterObjChanged = true;\n }\n }\n\n if (adapterObjChanged === true){ //Save changes\n await this.setForeignObjectAsync(`system.adapter.${this.namespace}`, adapterObj);\n }\n\n const cfg = {\n ip: this.config.ipaddress,\n port: '49000',\n iv: this.config.interval,\n history: this.config.history,\n dateFormat: this.config.dateformat,\n uid: this.config.username,\n pwd: this.config.password,\n members: this.config.familymembers,\n wl: this.config.whitelist\n };\n \n const cron = cfg.iv * 60;\n const cronFamily = this.config.intervalFamily;\n \n const devInfo = {\n host: this.config.ipaddress,\n port: '49000',\n sslPort: null,\n uid: this.config.username,\n pwd: this.config.password\n };\n\n this.Fb = await fb.Fb.init(devInfo, this);\n if(this.Fb.services === null) {\n this.log.error('Can not get services! Adapter stops');\n this.stopAdapter();\n }\n\n //Check if services/actions are supported\n this.GETPATH = await this.Fb.chkService('X_AVM-DE_GetHostListPath', 'Hosts1', 'X_AVM-DE_GetHostListPath');\n this.GETMESHPATH = await this.Fb.chkService('X_AVM-DE_GetMeshListPath', 'Hosts1', 'X_AVM-DE_GetMeshListPath');\n this.GETBYMAC = await this.Fb.chkService('GetSpecificHostEntry', 'Hosts1', 'GetSpecificHostEntry');\n this.GETBYIP = await this.Fb.chkService('X_AVM-DE_GetSpecificHostEntryByIP', 'Hosts1', 'X_AVM-DE_GetSpecificHostEntryByIP');\n this.GETPORT = await this.Fb.chkService('GetSecurityPort', 'DeviceInfo1', 'GetSecurityPort');\n this.GETEXTIP = await this.Fb.chkService('GetInfo', 'WANPPPConnection1', 'GetInfo');\n if ( this.GETEXTIP == false) this.GETEXTIP = await this.Fb.chkService('GetInfo', 'WANIPConnection1', 'GetInfo');\n this.SETENABLE = await this.Fb.chkService('SetEnable', 'WLANConfiguration3', 'SetEnable');\n this.WLAN3INFO = await this.Fb.chkService('GetInfo', 'WLANConfiguration3', 'WLANConfiguration3-GetInfo');\n this.DEVINFO = await this.Fb.chkService('GetInfo', 'DeviceInfo1', 'DeviceInfo1-GetInfo');\n this.DISALLOWWANACCESSBYIP = await this.Fb.chkService('DisallowWANAccessByIP', 'X_AVM-DE_HostFilter', 'DisallowWANAccessByIP');\n this.GETWANACCESSBYIP = await this.Fb.chkService('GetWANAccessByIP', 'X_AVM-DE_HostFilter', 'GetWANAccessByIP');\n this.REBOOT = await this.Fb.chkService('Reboot', 'DeviceConfig1', 'Reboot');\n \n //const test = await Fb.soapAction(Fb, '/upnp/control/deviceconfig', 'urn:dslforum-org:service:DeviceConfig:1', 'X_AVM-DE_CreateUrlSID', null);\n\n //Create global objects\n await obj.createGlobalObjects(this, this.HTML+this.HTML_END, this.HTML_GUEST+this.HTML_END, this.enabled);\n await obj.createMemberObjects(this, cfg, this.HTML_HISTORY + this.HTML_END, this.enabled);\n\n //create Fb devices\n if (this.GETPATH != null && this.GETPATH == true && this.config.fbdevices == true){\n const items = await this.Fb.getDeviceList(this, cfg, this.Fb);\n if (items != null){\n let res = await obj.createFbDeviceObjects(this, items, this.enabled);\n if (res === true) this.log.info('createFbDeviceObjects finished successfully');\n res = await obj.createMeshObjects(this, items, 0, this.enabled); //create channel 0 as default interface\n if (res === true) this.log.info('createMeshObjects finished successfully');\n }else{\n this.log.error('createFbDeviceObjects -> ' + \"can't read devices from fritzbox! Adapter stops\");\n adapterObj = await this.getForeignObjectAsync(`system.adapter.${this.namespace}`);\n adapterObj.common.enabled = false; // Adapter ausschalten\n await this.setForeignObjectAsync(`system.adapter.${this.namespace}`, adapterObj);\n }\n await this.resyncFbObjects(items);\n }\n\n // states changes inside the adapters namespace are subscribed\n if (this.SETENABLE === true && this.WLAN3INFO === true) this.subscribeStates(`${this.namespace}` + '.guest.wlan');\n if (this.DISALLOWWANACCESSBYIP === true && this.GETWANACCESSBYIP === true) this.subscribeStates(`${this.namespace}` + '.fb-devices.*.disabled'); \n if (this.REBOOT === true) this.subscribeStates(`${this.namespace}` + '.reboot'); \n\n //get uuid for transaction\n //const sSid = await Fb.soapAction(Fb, '/upnp/control/deviceconfig', urn + 'DeviceConfig:1', 'X_GenerateUUID', null);\n //const uuid = sSid['NewUUID'].replace('uuid:', '');\n this.loop(10, 55, cronFamily, cron, cfg);\n } catch (error) {\n this.showError('onReady: ' + error);\n }\n }", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "async onReady() {\n // Initialize your adapter here\n\n this.setState(\"info.connection\", false, true);\n // Reset the connection indicator during startup\n this.type = \"VW\";\n this.country = \"DE\";\n this.clientId = \"9496332b-ea03-4091-a224-8c746b885068%40apps_vw-dilab_com\";\n this.xclientId = \"38761134-34d0-41f3-9a73-c4be88d7d337\";\n this.scope = \"openid%20profile%20mbb%20email%20cars%20birthdate%20badge%20address%20vin\";\n this.redirect = \"carnet%3A%2F%2Fidentity-kit%2Flogin\";\n this.xrequest = \"de.volkswagen.carnet.eu.eremote\";\n this.responseType = \"id_token%20token%20code\";\n this.xappversion = \"5.1.2\";\n this.xappname = \"eRemote\";\n if (this.config.type === \"id\") {\n this.type = \"Id\";\n this.country = \"DE\";\n this.clientId = \"a24fba63-34b3-4d43-b181-942111e6bda8@apps_vw-dilab_com\";\n this.xclientId = \"\";\n this.scope = \"openid profile badge cars dealers birthdate vin\";\n this.redirect = \"weconnect://authenticated\";\n this.xrequest = \"com.volkswagen.weconnect\";\n this.responseType = \"code id_token token\";\n this.xappversion = \"\";\n this.xappname = \"\";\n }\n if (this.config.type === \"skoda\") {\n this.type = \"Skoda\";\n this.country = \"CZ\";\n this.clientId = \"7f045eee-7003-4379-9968-9355ed2adb06%40apps_vw-dilab_com\";\n this.xclientId = \"28cd30c6-dee7-4529-a0e6-b1e07ff90b79\";\n this.scope = \"openid%20profile%20phone%20address%20cars%20email%20birthdate%20badge%20dealers%20driversLicense%20mbb\";\n this.redirect = \"skodaconnect%3A%2F%2Foidc.login%2F\";\n this.xrequest = \"cz.skodaauto.connect\";\n this.responseType = \"code%20id_token\";\n this.xappversion = \"3.2.6\";\n this.xappname = \"cz.skodaauto.connect\";\n }\n if (this.config.type === \"seat\") {\n this.type = \"Seat\";\n this.country = \"ES\";\n this.clientId = \"50f215ac-4444-4230-9fb1-fe15cd1a9bcc@apps_vw-dilab_com\";\n this.xclientId = \"9dcc70f0-8e79-423a-a3fa-4065d99088b4\";\n this.scope = \"openid profile mbb cars birthdate nickname address phone\";\n this.redirect = \"seatconnect://identity-kit/login\";\n this.xrequest = \"cz.skodaauto.connect\";\n this.responseType = \"code%20id_token\";\n this.xappversion = \"1.1.29\";\n this.xappname = \"SEATConnect\";\n }\n if (this.config.type === \"audi\") {\n this.type = \"Audi\";\n this.country = \"DE\";\n this.clientId = \"09b6cbec-cd19-4589-82fd-363dfa8c24da@apps_vw-dilab_com\";\n this.xclientId = \"77869e21-e30a-4a92-b016-48ab7d3db1d8\";\n this.scope = \"address profile badge birthdate birthplace nationalIdentifier nationality profession email vin phone nickname name picture mbb gallery openid\";\n this.redirect = \"myaudi:///\";\n this.xrequest = \"de.myaudi.mobile.assistant\";\n this.responseType = \"token%20id_token\";\n // this.responseType = \"code\";\n this.xappversion = \"3.22.0\";\n this.xappname = \"myAudi\";\n }\n if (this.config.type === \"go\") {\n this.type = \"\";\n this.country = \"\";\n this.clientId = \"ac42b0fa-3b11-48a0-a941-43a399e7ef84@apps_vw-dilab_com\";\n this.xclientId = \"\";\n this.scope = \"openid%20profile%20address%20email%20phone\";\n this.redirect = \"vwconnect%3A%2F%2Fde.volkswagen.vwconnect%2Foauth2redirect%2Fidentitykit\";\n this.xrequest = \"\";\n this.responseType = \"code\";\n this.xappversion = \"\";\n this.xappname = \"\";\n }\n if (this.config.interval === 0) {\n this.log.info(\"Interval of 0 is not allowed reset to 1\");\n this.config.interval = 1;\n }\n this.login()\n .then(() => {\n this.log.debug(\"Login successful\");\n this.setState(\"info.connection\", true, true);\n this.getPersonalData()\n .then(() => {\n this.getVehicles()\n .then(() => {\n if (this.config.type !== \"go\") {\n this.vinArray.forEach((vin) => {\n if (this.config.type === \"id\") {\n this.getIdStatus(vin).catch(() => {\n this.log.error(\"get id status Failed\");\n });\n } else {\n this.getHomeRegion(vin)\n .catch(() => {\n this.log.debug(\"get home region Failed\");\n })\n .finally(() => {\n this.getVehicleData(vin).catch(() => {\n this.log.error(\"get vehicle data Failed\");\n });\n this.getVehicleRights(vin).catch(() => {\n this.log.error(\"get vehicle rights Failed\");\n });\n this.requestStatusUpdate(vin)\n .finally(() => {\n this.statesArray.forEach((state) => {\n this.getVehicleStatus(vin, state.url, state.path, state.element, state.element2, state.element3, state.element4).catch(() => {\n this.log.debug(\"error while getting \" + state.url);\n });\n });\n })\n .catch(() => {\n this.log.error(\"status update Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"Error getting home region\");\n });\n }\n });\n }\n\n this.updateInterval = setInterval(() => {\n if (this.config.type === \"go\") {\n this.getVehicles();\n return;\n } else if (this.config.type === \"id\") {\n this.vinArray.forEach((vin) => {\n this.getIdStatus(vin).catch(() => {\n this.log.error(\"get id status Failed\");\n this.refreshIDToken().catch(() => {});\n });\n this.getWcData();\n });\n return;\n } else {\n this.vinArray.forEach((vin) => {\n this.statesArray.forEach((state) => {\n this.getVehicleStatus(vin, state.url, state.path, state.element, state.element2).catch(() => {\n this.log.debug(\"error while getting \" + state.url);\n });\n });\n });\n }\n }, this.config.interval * 60 * 1000);\n\n if (this.config.forceinterval > 0) {\n this.fupdateInterval = setInterval(() => {\n if (this.config.type === \"go\") {\n this.getVehicles();\n return;\n }\n this.vinArray.forEach((vin) => {\n this.requestStatusUpdate(vin).catch(() => {\n this.log.error(\"force status update Failed\");\n });\n });\n }, this.config.forceinterval * 60 * 1000);\n }\n })\n .catch(() => {\n this.log.error(\"Get Vehicles Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"get personal data Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"Login Failed\");\n });\n this.subscribeStates(\"*\");\n }", "started () {}", "loadComponent(nodeURI, baseURI, callback_async /* nodeDescriptor */, errback_async /* errorMessage */) { // TODO: turn this into a generic xhr loader exposed as a kernel function?\n\n let self = this;\n\n if (nodeURI == self.kutility.protoNodeURI) {\n\n callback_async(self.kutility.protoNodeDescriptor);\n\n } else if (nodeURI.match(RegExp(\"^data:application/json;base64,\"))) {\n\n // Primarly for testing, parse one specific form of data URIs. We need to parse\n // these ourselves since Chrome can't load data URIs due to cross origin\n // restrictions.\n\n callback_async(JSON.parse(atob(nodeURI.substring(29)))); // TODO: support all data URIs\n\n } else {\n\n self.virtualTime.suspend(\"while loading \" + nodeURI); // suspend the queue\n\n let fetchUrl = self.remappedURI(nodeURI, baseURI);\n let dbName = fetchUrl.split(\".\").join(\"_\");\n\n const parseComp = function (f) {\n\n let result = JSON.parse(f);\n\n let nativeObject = result;\n // console.log(nativeObject);\n\n if (nativeObject) {\n callback_async(nativeObject);\n self.virtualTime.resume(\"after loading \" + nodeURI); // resume the queue; may invoke dispatch(), so call last before returning to the host\n\n } else {\n\n self.logger.warnx(\"loadComponent\", \"error loading\", nodeURI + \":\", error);\n errback_async(error);\n self.virtualTime.resume(\"after loading \" + nodeURI); // resume the queue; may invoke dispatch(), so call last before returning to the host\n }\n\n }\n\n\n //var fileName = \"\";\n // let userDB = _LCSDB.user(_LCS_WORLD_USER.pub); \n if (dbName.includes(\"proxy\")) {\n //userDB = await window._LCS_SYS_USER.get('proxy').then();\n let proxyDB = self.proxy ? _LCSDB.user(self.proxy) : _LCSDB.user(_LCS_WORLD_USER.pub);\n let fileName = dbName + '_json';\n let dbNode = proxyDB.get('proxy').get(fileName);\n let nodeProm = new Promise(res => dbNode.once(res));\n\n nodeProm.then(comp => {\n parseComp(comp);\n })\n\n // (function(r){\n // //console.log(r);\n // parseComp(r);\n\n // });\n\n } else {\n var worldName = dbName.split('/')[1];\n var fileName = dbName.split('/')[2];\n //+ '_json';\n\n if (!fileName) {\n worldName = self.helpers.appPath\n fileName = dbName + '_json';\n } else {\n fileName = fileName + '_json';\n }\n\n let dbNode = _LCSDB.user(_LCS_WORLD_USER.pub).get('worlds').path(worldName).get(fileName);\n\n let nodeProm = new Promise(res => dbNode.once(res))\n nodeProm.then(comp => {\n parseComp(comp);\n })\n\n // (function(r){\n // //console.log(r);\n // parseComp(r);\n\n // });\n }\n\n //console.log(source);\n\n //userDB.get(fileName).once(async function(res) {\n\n\n\n\n // }, {wait: 1000})\n }\n\n }", "_specializedInitialisation()\r\n\t{\r\n\t\tLogger.log(\"Specialisation for service AVTransport\", LogType.Info);\r\n\t\tvar relativeTime = this.getVariableByName(\"RelativeTimePosition\");\r\n\t\t//Implémentation pour OpenHome\r\n\t\tif (!relativeTime)\r\n\t\t\trelativeTime = this.getVariableByName(\"A_ARG_TYPE_GetPositionInfo_RelTime\");\r\n\t\tvar transportState = this.getVariableByName(\"TransportState\");\r\n\t\t//Implémentation pour OpenHome\r\n\t\tif (!transportState)\r\n\t\t\ttransportState = this.getVariableByName(\"A_ARG_TYPE_GetTransportInfo_CurrentTransportState\");\r\n\r\n\t\tif (transportState)\r\n\t\t{\r\n\t\t\ttransportState.on('updated', (variable, newVal) =>\r\n\t\t\t{\r\n\t\t\t\tLogger.log(\"On transportStateUpdate : \" + newVal, LogType.DEBUG);\r\n\t\t\t\tvar actPosInfo = this.getActionByName(\"GetPositionInfo\");\r\n\t\t\t\tvar actMediaInfo = this.getActionByName(\"GetMediaInfo\");\r\n\t\t\t\t/*\r\n\t\t\t\t“STOPPED” R\r\n\t\t\t\t“PLAYING” R\r\n\t\t\t\t“TRANSITIONING” O\r\n\t\t\t\t”PAUSED_PLAYBACK” O\r\n\t\t\t\t“PAUSED_RECORDING” O\r\n\t\t\t\t“RECORDING” O\r\n\t\t\t\t“NO_MEDIA_PRESENT”\r\n\t\t\t\t */\r\n\t\t\t\tif (relativeTime && !relativeTime.SendEvent && actPosInfo)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (this._intervalUpdateRelativeTime)\r\n\t\t\t\t\t\tclearInterval(this._intervalUpdateRelativeTime);\r\n\t\t\t\t\tif (newVal == \"PLAYING\" || newVal == \"RECORDING\")\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t} );\r\n\t\t\t\t\t\t//Déclenche la maj toutes les 4 secondes\r\n\t\t\t\t\t\tthis._intervalUpdateRelativeTime = setInterval(() =>{\r\n\t\t\t\t\t\t\t\t//Logger.log(\"On autoUpdate\", LogType.DEBUG);\r\n\t\t\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t}\t);\r\n\t\t\t\t\t\t\t}, 4000);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//else if (newVal == \"STOPPED\" || newVal == \"PAUSED_PLAYBACK\" || newVal == \"PAUSED_RECORDING\" || newVal == \"NO_MEDIA_PRESENT\")\r\n\t\t\t\t//{\r\n\t\t\t\t//\r\n\t\t\t\t//}\r\n\t\t\t\t//On met a jour les media info et position info pour etre sur de mettre a jour les Metadata(par defaut la freebox ne le fait pas ou plutot le fait mal)\r\n\t\t\t\tif (newVal == \"TRANSITIONING\")\r\n\t\t\t\t{\r\n\t\t\t\t\tif (actPosInfo)\r\n\t\t\t\t\t\tactPosInfo.execute(\t{InstanceID: 0}\t);\r\n\t\t\t\t\tif (actMediaInfo)\r\n\t\t\t\t\t\tactMediaInfo.execute(\t{InstanceID: 0} );\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (newVal == \"STOPPED\")\r\n\t\t\t\t{\r\n\t\t\t\t\tif (actPosInfo)\r\n\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t});\r\n\t\t\t\t\tif (actMediaInfo)\r\n\t\t\t\t\t\tactMediaInfo.execute(\t{\tInstanceID: 0 });\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}", "async onReady() {\n // Initialize your adapter here\n await this.setObjectNotExistsAsync('speed', {\n type: 'channel',\n common: {\n name: 'speed'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.download', {\n type: 'state',\n common: {\n name: 'download',\n role: 'info.status',\n type: 'number',\n desc: 'Download speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.upload', {\n type: 'state',\n common: {\n name: 'upload',\n role: 'info.status',\n type: 'number',\n desc: 'Upload speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.ping', {\n type: 'state',\n common: {\n name: 'ping',\n role: 'info.status',\n type: 'number',\n desc: 'Ping Latency',\n def: 0,\n read: true,\n write: false,\n unit: 'ms',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.progress', {\n type: 'state',\n common: {\n name: 'progress',\n role: 'info.status',\n type: 'number',\n desc: 'Progress',\n def: 0,\n read: true,\n write: false,\n unit: '%',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.speedcheck', {\n type: 'state',\n common: {\n name: 'Run speed test',\n type: 'boolean',\n read: true,\n role: 'button',\n write: true,\n def: false\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress', {\n type: 'channel',\n common: {\n name: 'speed'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.download', {\n type: 'state',\n common: {\n name: 'download',\n role: 'info.status',\n type: 'number',\n desc: 'Download speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.upload', {\n type: 'state',\n common: {\n name: 'upload',\n role: 'info.status',\n type: 'number',\n desc: 'Upload speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.ping', {\n type: 'state',\n common: {\n name: 'ping',\n role: 'info.status',\n type: 'number',\n desc: 'Ping Latency',\n def: 0,\n read: true,\n write: false,\n unit: 'ms',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.progress', {\n type: 'state',\n common: {\n name: 'progress',\n role: 'info.status',\n type: 'number',\n desc: 'Progress',\n def: 0,\n read: true,\n write: false,\n unit: '%',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.speedcheck', {\n type: 'state',\n common: {\n name: 'Run speed test',\n type: 'boolean',\n read: true,\n role: 'button',\n write: true,\n def: false\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info', {\n type: 'channel',\n common: {\n name: 'Information'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info.externalip', {\n type: 'state',\n common: {\n name: 'External IP',\n role: 'info.status',\n type: 'string',\n desc: 'External IP',\n read: true,\n write: false,\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info.internalip', {\n type: 'state',\n common: {\n name: 'Internal IP',\n role: 'info.status',\n type: 'string',\n desc: 'Internal IP',\n read: true,\n write: false,\n },\n native: {},\n });\n this.subscribeStates('*');\n await this.setStateAsync('info.connection', { val: true, ack: true });\n // let result = await this.checkPasswordAsync('admin', 'iobroker');\n // this.log.info('check user admin pw iobroker: ' + result);\n // result = await this.checkGroupAsync('admin', 'admin');\n // this.log.info('check group user admin group admin: ' + result);\n if (this.config.polltime > 1) {\n this.log.info('Checking internet speed every ' + this.config.polltime + ' minutes');\n } else {\n this.log.info('Checking internet speed every ' + this.config.polltime + ' minute');\n }\n await this.start(this.config.polltime);\n }", "enqueue() {\n\n }", "started() { }", "onBrowserStart(browser) {\n\n }", "getPort2() {\n return 0;\n }", "requestReceived(request,response){\n if(this.config.log){\n const logData={\n method : request.method,\n url : request.url,\n headers : request.headers\n };\n\n this.config.logFunction(\n logData\n );\n }\n\n let uri = url.parse(request.url);\n uri.protocol='http';\n uri.host=uri.hostname=request.headers.host;\n uri.port=80;\n uri.query=querystring.parse(uri.query);\n\n if(request.connection.encrypted){\n uri.protocol='https';\n uri.port=443;\n }\n\n (\n function(){\n if(!uri.host){\n return;\n }\n const host=uri.host.split(':');\n\n if(!host[1]){\n return;\n }\n uri.host=uri.hostname=host[0];\n uri.port=host[1];\n }\n )();\n\n for(let key in uri){\n if(uri[key]!==null){\n continue;\n }\n uri[key]='';\n }\n\n request.uri=uri;\n\n if(\n this.onRawRequest(\n request,\n response,\n completeServing.bind(this)\n )\n ){\n return;\n };\n\n uri=uri.pathname;\n\n if (uri=='/'){\n uri=`/${this.config.server.index}`;\n }\n\n let hostname= [];\n\n if (request.headers.host !== undefined){\n hostname = request.headers.host.split(':');\n }\n\n let root = this.config.root;\n\n if(this.config.verbose){\n console.log(`${this.config.logID} REQUEST ###\\n\\n`,\n request.headers,'\\n',\n uri,'\\n\\n',\n hostname,'\\n\\n'\n );\n }\n\n if(this.config.domain!='0.0.0.0' && hostname.length > 0 && hostname[0]!=this.config.domain){\n if(!this.config.domains[hostname[0]]){\n if(this.config.verbose){\n console.log(`${this.config.logID} INVALID HOST ###\\n\\n`);\n }\n this.serveFile(hostname[0],false,response);\n return;\n }\n root=this.config.domains[hostname[0]];\n }\n\n\n if(this.config.verbose){\n console.log(`${this.config.logID} USING ROOT : ${root}###\\n\\n`);\n }\n\n if(uri.slice(-1)=='/'){\n uri+=this.config.server.index;\n }\n\n request.url=uri;\n request.serverRoot=root;\n\n request.body='';\n\n request.on(\n 'data',\n function(chunk){\n request.body+=chunk;\n }.bind(this)\n ).on(\n 'end',\n function(){\n if(this.config.verbose){\n console.log(`###REQUEST BODY :\n ${request.body}\n ###\n `);\n }\n\n requestBodyComplete.bind(this,request,response)();\n }.bind(this)\n );\n }", "function OnChannelOpen()\n{\n}", "constructor() {\n throw new Error('Not implemented');\n }", "connect() {\n throw new Error(\n 'The Message Bus is not currently supported in browser environments'\n );\n }", "constructor() {\n this._connectionResolver = new pip_services3_components_node_1.ConnectionResolver();\n this._maxKeySize = 250;\n this._maxExpiration = 2592000;\n this._maxValue = 1048576;\n this._poolSize = 5;\n this._reconnect = 10000;\n this._timeout = 5000;\n this._retries = 5;\n this._failures = 5;\n this._retry = 30000;\n this._remove = false;\n this._idle = 5000;\n this._client = null;\n }", "componentDidMount()\n {\n\n }", "function OfflineStreamProcessor(config) {\n config = config || {};\n var context = this.context;\n var eventBus = config.eventBus;\n var events = config.events;\n var errors = config.errors;\n var debug = config.debug;\n var constants = config.constants;\n var settings = config.settings;\n var dashConstants = config.dashConstants;\n var manifestId = config.id;\n var type = config.type;\n var streamInfo = config.streamInfo;\n var errHandler = config.errHandler;\n var mediaPlayerModel = config.mediaPlayerModel;\n var abrController = config.abrController;\n var playbackController = config.playbackController;\n var adapter = config.adapter;\n var dashMetrics = config.dashMetrics;\n var baseURLController = config.baseURLController;\n var timelineConverter = config.timelineConverter;\n var bitrate = config.bitrate;\n var offlineStoreController = config.offlineStoreController;\n var completedCb = config.callbacks && config.callbacks.completed;\n var progressCb = config.callbacks && config.callbacks.progression;\n var instance, logger, mediaInfo, indexHandler, representationController, fragmentModel, updating, downloadedSegments, isInitialized, segmentsController, isStopped;\n\n function setup() {\n resetInitialSettings();\n logger = debug.getLogger(instance);\n segmentsController = Object(_dash_controllers_SegmentsController__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(context).create({\n events: events,\n eventBus: eventBus,\n streamInfo: streamInfo,\n timelineConverter: timelineConverter,\n dashConstants: dashConstants,\n segmentBaseController: config.segmentBaseController,\n type: type\n });\n indexHandler = Object(_dash_DashHandler__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(context).create({\n streamInfo: streamInfo,\n type: type,\n timelineConverter: timelineConverter,\n dashMetrics: dashMetrics,\n mediaPlayerModel: mediaPlayerModel,\n baseURLController: baseURLController,\n errHandler: errHandler,\n settings: settings,\n // boxParser: boxParser,\n eventBus: eventBus,\n events: events,\n debug: debug,\n requestModifier: Object(_streaming_utils_RequestModifier__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(context).getInstance(),\n dashConstants: dashConstants,\n constants: constants,\n segmentsController: segmentsController,\n urlUtils: Object(_streaming_utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(context).getInstance()\n });\n representationController = Object(_dash_controllers_RepresentationController__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(context).create({\n streamInfo: streamInfo,\n type: type,\n abrController: abrController,\n dashMetrics: dashMetrics,\n playbackController: playbackController,\n timelineConverter: timelineConverter,\n dashConstants: dashConstants,\n events: events,\n eventBus: eventBus,\n errors: errors,\n segmentsController: segmentsController\n });\n fragmentModel = Object(_streaming_models_FragmentModel__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(context).create({\n streamInfo: streamInfo,\n dashMetrics: dashMetrics,\n fragmentLoader: Object(_streaming_FragmentLoader__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(context).create({\n dashMetrics: dashMetrics,\n mediaPlayerModel: mediaPlayerModel,\n errHandler: errHandler,\n requestModifier: Object(_streaming_utils_RequestModifier__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(context).getInstance(),\n settings: settings,\n eventBus: eventBus,\n events: events,\n errors: errors,\n constants: constants,\n dashConstants: dashConstants,\n urlUtils: Object(_streaming_utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(context).getInstance()\n }),\n debug: debug,\n eventBus: eventBus,\n events: events\n });\n eventBus.on(events.STREAM_REQUESTING_COMPLETED, onStreamRequestingCompleted, instance);\n eventBus.on(events.FRAGMENT_LOADING_COMPLETED, onFragmentLoadingCompleted, instance);\n }\n\n function initialize(_mediaInfo) {\n mediaInfo = _mediaInfo;\n indexHandler.initialize(false);\n updateRepresentation(mediaInfo);\n }\n\n function isInitRequest(request) {\n return request.type === 'InitializationSegment';\n }\n\n function onFragmentLoadingCompleted(e) {\n if (e.sender !== fragmentModel) {\n return;\n }\n\n if (e.request !== null) {\n var isInit = isInitRequest(e.request);\n var suffix = isInit ? 'init' : e.request.index;\n var fragmentName = e.request.representationId + '_' + suffix;\n offlineStoreController.storeFragment(manifestId, fragmentName, e.response).then(function () {\n if (!isInit) {\n // store current index and downloadedSegments number\n offlineStoreController.setRepresentationCurrentState(manifestId, e.request.representationId, {\n index: e.request.index,\n downloaded: downloadedSegments\n });\n }\n });\n }\n\n if (e.error && e.request.serviceLocation && !isStopped) {\n fragmentModel.executeRequest(e.request);\n } else {\n downloadedSegments++;\n download();\n }\n }\n\n function onStreamRequestingCompleted(e) {\n if (e.fragmentModel !== fragmentModel) {\n return;\n }\n\n logger.info(\"[\".concat(manifestId, \"] Stream is complete\"));\n stop();\n completedCb();\n }\n\n function getRepresentationController() {\n return representationController;\n }\n\n function getRepresentationId() {\n return representationController.getCurrentRepresentation().id;\n }\n /**\n * Stops download of fragments\n * @memberof OfflineStreamProcessor#\n */\n\n\n function stop() {\n if (isStopped) {\n return;\n }\n\n isStopped = true;\n }\n\n function removeExecutedRequestsBeforeTime(time) {\n if (fragmentModel) {\n fragmentModel.removeExecutedRequestsBeforeTime(time);\n }\n }\n /**\n * Execute init request for the represenation\n * @memberof OfflineStreamProcessor#\n */\n\n\n function getInitRequest() {\n if (!representationController.getCurrentRepresentation()) {\n return null;\n }\n\n return indexHandler.getInitRequest(getMediaInfo(), representationController.getCurrentRepresentation());\n }\n /**\n * Get next request\n * @memberof OfflineStreamProcessor#\n */\n\n\n function getNextRequest() {\n return indexHandler.getNextSegmentRequest(getMediaInfo(), representationController.getCurrentRepresentation());\n }\n /**\n * Start download\n * @memberof OfflineStreamProcessor#\n */\n\n\n function start() {\n if (representationController) {\n if (!representationController.getCurrentRepresentation()) {\n throw new Error('Start denied to OfflineStreamProcessor');\n }\n\n isStopped = false;\n offlineStoreController.getRepresentationCurrentState(manifestId, representationController.getCurrentRepresentation().id).then(function (state) {\n if (state) {\n indexHandler.setCurrentIndex(state.index);\n downloadedSegments = state.downloaded;\n }\n\n download();\n })[\"catch\"](function () {\n // start from beginining\n download();\n });\n }\n }\n /**\n * Performs download of fragment according to type\n * @memberof OfflineStreamProcessor#\n */\n\n\n function download() {\n if (isStopped) {\n return;\n }\n\n if (isNaN(representationController.getCurrentRepresentation())) {\n var request = null;\n\n if (!isInitialized) {\n request = getInitRequest();\n isInitialized = true;\n } else {\n request = getNextRequest(); // update progression : done here because availableSegmentsNumber is done in getNextRequest from dash handler\n\n updateProgression();\n }\n\n if (request) {\n logger.info(\"[\".concat(manifestId, \"] download request : \").concat(request.url));\n fragmentModel.executeRequest(request);\n } else {\n logger.info(\"[\".concat(manifestId, \"] no request to be downloaded\"));\n }\n }\n }\n /**\n * Update representation\n * @param {Object} mediaInfo - mediaInfo\n * @memberof OfflineStreamProcessor#\n */\n\n\n function updateRepresentation(mediaInfo) {\n updating = true;\n var voRepresentations = adapter.getVoRepresentations(mediaInfo); // get representation VO according to id.\n\n var quality = voRepresentations.findIndex(function (representation) {\n return representation.id === bitrate.id;\n });\n\n if (type !== constants.VIDEO && type !== constants.AUDIO && type !== constants.TEXT) {\n updating = false;\n return;\n }\n\n representationController.updateData(null, voRepresentations, type, mediaInfo.isFragmented, quality);\n }\n\n function isUpdating() {\n return updating;\n }\n\n function getType() {\n return type;\n }\n\n function getMediaInfo() {\n return mediaInfo;\n }\n\n function getAvailableSegmentsNumber() {\n return representationController.getCurrentRepresentation().availableSegmentsNumber + 1; // do not forget init segment\n }\n\n function updateProgression() {\n if (progressCb) {\n progressCb(instance, downloadedSegments, getAvailableSegmentsNumber());\n }\n }\n\n function resetInitialSettings() {\n isInitialized = false;\n downloadedSegments = 0;\n updating = false;\n }\n /**\n * Reset\n * @memberof OfflineStreamProcessor#\n */\n\n\n function reset() {\n resetInitialSettings();\n indexHandler.reset();\n eventBus.off(events.STREAM_REQUESTING_COMPLETED, onStreamRequestingCompleted, instance);\n eventBus.off(events.FRAGMENT_LOADING_COMPLETED, onFragmentLoadingCompleted, instance);\n }\n\n instance = {\n initialize: initialize,\n getMediaInfo: getMediaInfo,\n getRepresentationController: getRepresentationController,\n removeExecutedRequestsBeforeTime: removeExecutedRequestsBeforeTime,\n getType: getType,\n getRepresentationId: getRepresentationId,\n isUpdating: isUpdating,\n start: start,\n stop: stop,\n getAvailableSegmentsNumber: getAvailableSegmentsNumber,\n reset: reset\n };\n setup();\n return instance;\n}", "constructor() {\r\n }", "constructor() {\n\t\t// ...\n\t}", "onReady() {\n return __awaiter(this, void 0, void 0, function* () {\n this.logger = new log_1.ioBrokerLogger(this.log);\n yield this.setObjectNotExistsAsync(\"verify_code\", {\n type: \"state\",\n common: {\n name: \"2FA verification code\",\n type: \"number\",\n role: \"state\",\n read: true,\n write: true,\n },\n native: {},\n });\n yield this.setObjectNotExistsAsync(\"info\", {\n type: \"channel\",\n common: {\n name: \"info\"\n },\n native: {},\n });\n yield this.setObjectNotExistsAsync(\"info.connection\", {\n type: \"state\",\n common: {\n name: \"Global connection\",\n type: \"boolean\",\n role: \"indicator.connection\",\n read: true,\n write: false,\n },\n native: {},\n });\n yield this.setStateAsync(\"info.connection\", { val: false, ack: true });\n yield this.setObjectNotExistsAsync(\"info.push_connection\", {\n type: \"state\",\n common: {\n name: \"Push notification connection\",\n type: \"boolean\",\n role: \"indicator.connection\",\n read: true,\n write: false,\n },\n native: {},\n });\n // Remove old states of previous adapter versions\n try {\n const schedule_modes = yield this.getStatesAsync(\"*.schedule_mode\");\n Object.keys(schedule_modes).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const push_notifications = yield this.getStatesAsync(\"push_notification.*\");\n Object.keys(push_notifications).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n yield this.delObjectAsync(\"push_notification\");\n }\n catch (error) {\n }\n try {\n const last_camera_url = yield this.getStatesAsync(\"*.last_camera_url\");\n Object.keys(last_camera_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const captured_pic_url = yield this.getStatesAsync(\"*.captured_pic_url\");\n Object.keys(captured_pic_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const person_identified = yield this.getStatesAsync(\"*.person_identified\");\n Object.keys(person_identified).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const last_captured_pic_url = yield this.getStatesAsync(\"*.last_captured_pic_url\");\n Object.keys(last_captured_pic_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const last_captured_pic_html = yield this.getStatesAsync(\"*.last_captured_pic_html\");\n Object.keys(last_captured_pic_html).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n // End\n // Reset event states if necessary (for example because of an unclean exit)\n yield this.initializeEvents(types_1.CameraStateID.PERSON_DETECTED);\n yield this.initializeEvents(types_1.CameraStateID.MOTION_DETECTED);\n yield this.initializeEvents(types_1.DoorbellStateID.RINGING);\n yield this.initializeEvents(types_1.IndoorCameraStateID.CRYING_DETECTED);\n yield this.initializeEvents(types_1.IndoorCameraStateID.SOUND_DETECTED);\n yield this.initializeEvents(types_1.IndoorCameraStateID.PET_DETECTED);\n try {\n if (fs.statSync(this.persistentFile).isFile()) {\n const fileContent = fs.readFileSync(this.persistentFile, \"utf8\");\n this.persistentData = JSON.parse(fileContent);\n }\n }\n catch (err) {\n this.logger.debug(\"No stored data from last exit found.\");\n }\n //TODO: Temporary Test to be removed!\n /*await this.setObjectNotExistsAsync(\"test_button\", {\n type: \"state\",\n common: {\n name: \"Test button\",\n type: \"boolean\",\n role: \"button\",\n read: false,\n write: true,\n },\n native: {},\n });\n this.subscribeStates(\"test_button\");\n await this.setObjectNotExistsAsync(\"test_button2\", {\n type: \"state\",\n common: {\n name: \"Test button2\",\n type: \"boolean\",\n role: \"button\",\n read: false,\n write: true,\n },\n native: {},\n });\n this.subscribeStates(\"test_button2\");*/\n // END\n this.subscribeStates(\"verify_code\");\n const systemConfig = yield this.getForeignObjectAsync(\"system.config\");\n let countryCode = undefined;\n let languageCode = undefined;\n if (systemConfig) {\n countryCode = i18n_iso_countries_1.getAlpha2Code(systemConfig.common.country, \"en\");\n if (i18n_iso_languages_1.isValid(systemConfig.common.language))\n languageCode = systemConfig.common.language;\n }\n try {\n const adapter_info = yield this.getForeignObjectAsync(`system.adapter.${this.namespace}`);\n if (adapter_info && adapter_info.common && adapter_info.common.version) {\n if (this.persistentData.version !== adapter_info.common.version) {\n const currentVersion = Number.parseFloat(utils_1.removeLastChar(adapter_info.common.version, \".\"));\n const previousVersion = this.persistentData.version !== \"\" && this.persistentData.version !== undefined ? Number.parseFloat(utils_1.removeLastChar(this.persistentData.version, \".\")) : 0;\n this.logger.debug(`Handling of adapter update - currentVersion: ${currentVersion} previousVersion: ${previousVersion}`);\n if (previousVersion < currentVersion) {\n yield utils_1.handleUpdate(this, this.logger, previousVersion);\n this.persistentData.version = adapter_info.common.version;\n this.writePersistentData();\n }\n }\n }\n }\n catch (error) {\n this.logger.error(`Handling of adapter update - Error:`, error);\n }\n this.eufy = new EufySecurityAPI.EufySecurity(this, this.logger, countryCode, languageCode);\n this.eufy.on(\"stations\", (stations) => this.handleStations(stations));\n this.eufy.on(\"devices\", (devices) => this.handleDevices(devices));\n this.eufy.on(\"push message\", (messages) => this.handlePushNotification(messages));\n this.eufy.on(\"connect\", () => this.onConnect());\n this.eufy.on(\"close\", () => this.onClose());\n this.eufy.on(\"livestream start\", (station, device, url) => this.onStartLivestream(station, device, url));\n this.eufy.on(\"livestream stop\", (station, device) => this.onStopLivestream(station, device));\n this.eufy.on(\"push connect\", () => this.onPushConnect());\n this.eufy.on(\"push close\", () => this.onPushClose());\n const api = this.eufy.getApi();\n if (this.persistentData.api_base && this.persistentData.api_base != \"\") {\n this.logger.debug(`Load previous api_base: ${this.persistentData.api_base}`);\n api.setAPIBase(this.persistentData.api_base);\n }\n if (this.persistentData.login_hash && this.persistentData.login_hash != \"\") {\n this.logger.debug(`Load previous login_hash: ${this.persistentData.login_hash}`);\n if (utils_1.md5(`${this.config.username}:${this.config.password}`) != this.persistentData.login_hash) {\n this.logger.info(`Authentication properties changed, invalidate saved cloud token.`);\n this.persistentData.cloud_token = \"\";\n this.persistentData.cloud_token_expiration = 0;\n this.persistentData.api_base = \"\";\n }\n }\n else {\n this.persistentData.cloud_token = \"\";\n this.persistentData.cloud_token_expiration = 0;\n }\n if (this.persistentData.cloud_token && this.persistentData.cloud_token != \"\") {\n this.logger.debug(`Load previous token: ${this.persistentData.cloud_token} token_expiration: ${this.persistentData.cloud_token_expiration}`);\n api.setToken(this.persistentData.cloud_token);\n api.setTokenExpiration(new Date(this.persistentData.cloud_token_expiration));\n }\n if (!this.persistentData.openudid || this.persistentData.openudid == \"\") {\n this.persistentData.openudid = utils_1.generateUDID();\n this.logger.debug(`Generated new openudid: ${this.persistentData.openudid}`);\n }\n api.setOpenUDID(this.persistentData.openudid);\n if (!this.persistentData.serial_number || this.persistentData.serial_number == \"\") {\n this.persistentData.serial_number = utils_1.generateSerialnumber(12);\n this.logger.debug(`Generated new serial_number: ${this.persistentData.serial_number}`);\n }\n api.setSerialNumber(this.persistentData.serial_number);\n yield this.eufy.logon();\n });\n }", "static get STATUS() {\n return 0;\n }", "_recordingCompatibility() {\n // Detect audio recording capabilities.\n // http://caniuse.com/#feat=stream\n // https://developer.mozilla.org/en-US/docs/Web/API/Navigator.getUserMedia\n navigator.getUserMedia = (navigator.getUserMedia ||\n navigator.webkitGetUserMedia ||\n navigator.mozGetUserMedia ||\n navigator.msGetUserMedia);\n this.canGetUserMedia = Boolean(navigator.getUserMedia);\n console.log('Native deprecated navigator.getUserMedia API capability: ' +\n this.canGetUserMedia);\n\n // https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/mediaDevices.getUserMedia\n this.canMediaDevicesGetUserMedia = false;\n if (navigator.mediaDevices) {\n navigator.mediaDevices.getUserMedia = navigator.mediaDevices.getUserMedia || navigator.mediaDevices.webkitGetUserMedia || navigator.mediaDevices.mozGetUserMedia;\n this.canMediaDevicesGetUserMedia = Boolean(navigator.mediaDevices.getUserMedia);\n }\n console.log('Native navigator.mediaDevices.getUserMedia API capability:',\n this.canMediaDevicesGetUserMedia);\n\n // Detect MediaStream Recording\n // It allows recording audio using the MediaStream from the above\n // getUserMedia directly with a native codec better than Wave.\n // http://www.w3.org/TR/mediastream-recording/\n this.canUseMediaRecorder = Boolean(window.MediaRecorder);\n console.log('Native MediaRecorder recording capability: ' +\n this.canUseMediaRecorder);\n\n // Web Audio API\n // High-level JavaScript API for processing and synthesizing audio\n // http://caniuse.com/#feat=audio-api\n window.AudioContext = window.AudioContext ||\n window.webkitAudioContext || window.mozAudioContext;\n var canCreateAudioContext = Boolean(window.AudioContext);\n console.log('Native Web Audio API (AudioContext) processing capability: ' +\n canCreateAudioContext);\n\n // Detect Cordova Media Recording\n // It allows recording audio using the native bridge inside WebView Apps.\n // Note that it may also require native playback when codecs were used for\n // recording that are not yet supported in the WebView.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media recording capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canGetUserMedia || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio recording capability is required');\n }\n\n window.URL = (window.URL || window.webkitURL);\n var hasWindowURL = Boolean(window.URL);\n console.log('Native window.URL capability: ' +\n hasWindowURL);\n if (!hasWindowURL) {\n throw new Error(\n 'No window.URL blob conversion capabilities');\n }\n }" ]
[ "0.47163445", "0.46584114", "0.45273763", "0.45036152", "0.448429", "0.44346538", "0.43841133", "0.4362977", "0.4333602", "0.43013042", "0.42535996", "0.42417178", "0.42218232", "0.42189214", "0.41818306", "0.41804415", "0.4179575", "0.41772082", "0.41758674", "0.41746357", "0.41729844", "0.41645744", "0.41409218", "0.41409218", "0.41248086", "0.4119414", "0.4119171", "0.41116208", "0.41086638", "0.4108044", "0.41061", "0.41053793", "0.4102025", "0.41017646", "0.41016397", "0.40947947", "0.40918016", "0.40808365", "0.40797257", "0.40781054", "0.4077613", "0.40756986", "0.40750656", "0.40738243", "0.40694946", "0.40600455", "0.40542144", "0.4053162", "0.40487152", "0.40486646", "0.40476045", "0.40436408", "0.40428442", "0.40415418", "0.40402153", "0.40385923", "0.40334603", "0.40256238", "0.4020882", "0.4018672", "0.40179121", "0.40143794", "0.4013364", "0.4012688", "0.40110162", "0.4010018", "0.40062585", "0.40060434", "0.40060434", "0.40040717", "0.3991394", "0.39912733", "0.3990626", "0.39878824", "0.39843145", "0.39805657", "0.39803058", "0.39801094", "0.39801094", "0.39801094", "0.39764443", "0.3976021", "0.3975312", "0.39746568", "0.39738244", "0.3973245", "0.39689064", "0.39649746", "0.3960977", "0.39609686", "0.39590856", "0.3957125", "0.39569685", "0.39549816", "0.39504528", "0.3946225", "0.39447936", "0.39438543", "0.39406016", "0.39402705", "0.3938285" ]
0.0
-1
Consider case: `chart.setOption(opt1);` Then user do some interaction like dataZoom, dataView changing. `chart.setOption(opt2);` Then user press 'reset button' in toolbox. After doing that all of the interaction effects should be reset, the chart should be the same as the result of invoke `chart.setOption(opt1); chart.setOption(opt2);`. Although it is not able ensure that `chart.setOption(opt1); chart.setOption(opt2);` is equivalents to `chart.setOption(merge(opt1, opt2));` exactly, this might be the only simple way to implement that feature. MEMO: We've considered some other approaches: 1. Each model handle its self restoration but not uniform treatment. (Too complex in logic and errorprone) 2. Use a shadow ecModel. (Performace expensive)
function mergeOption(oldOption, newOption) { newOption = newOption || {}; each(newOption, function (newCptOpt, mainType) { if (newCptOpt == null) { return; } var oldCptOpt = oldOption[mainType]; if (!ComponentModel.hasClass(mainType)) { oldOption[mainType] = merge(oldCptOpt, newCptOpt, true); } else { newCptOpt = modelUtil.normalizeToArray(newCptOpt); oldCptOpt = modelUtil.normalizeToArray(oldCptOpt); var mapResult = modelUtil.mappingToExists(oldCptOpt, newCptOpt); oldOption[mainType] = map(mapResult, function (item) { return item.option && item.exist ? merge(item.exist, item.option, true) : item.exist || item.option; }); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "mergeOptions (options, notMerge, lazyUpdate) {\n this.delegateMethod('setOption', options, notMerge, lazyUpdate)\n }", "function disableTransformOptionMerge(datasetModel) {\n\t var transformOption = datasetModel.option.transform;\n\t transformOption && setAsPrimitive(datasetModel.option.transform);\n\t }", "set(options) {\n\n if (\"point1\" in options) {\n var copyPoint = options[\"point1\"];\n this.point1.set({x: copyPoint.getX(), y: copyPoint.getY()});\n }\n if (\"point2\" in options) {\n var copyPoint = options[\"point2\"];\n this.point2.set({x: copyPoint.getX(), y: copyPoint.getY()});\n }\n if (\"line\" in options) {\n var copyLine = options[\"line\"];\n this.point1.set({x: copyLine.getPoint1().getX(), y: copyLine.getPoint1().getY()});\n this.point1.set({x: copyLine.getPoint2().getX(), y: copyLine.getPoint2().getY()});\n }\n }", "function resetToOptions(){\n\tconsole.log(\"Resetting to initial\", viewerParams.parts.options_initial);\n\tviewerParams.parts.options = JSON.parse(JSON.stringify(viewerParams.parts.options_initial));\n\tresetViewer();\n}", "_resetOptions() {\n const changedOrDestroyed = Object(rxjs__WEBPACK_IMPORTED_MODULE_12__[\"merge\"])(this.options.changes, this._destroy);\n this.optionSelectionChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__[\"takeUntil\"])(changedOrDestroyed)).subscribe(event => {\n this._onSelect(event.source, event.isUserInput);\n if (event.isUserInput && !this.multiple && this._panelOpen) {\n this.close();\n this.focus();\n }\n });\n // Listen to changes in the internal state of the options and react accordingly.\n // Handles cases like the labels of the selected options changing.\n Object(rxjs__WEBPACK_IMPORTED_MODULE_12__[\"merge\"])(...this.options.map(option => option._stateChanges))\n .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__[\"takeUntil\"])(changedOrDestroyed))\n .subscribe(() => {\n this._changeDetectorRef.markForCheck();\n this.stateChanges.next();\n });\n }", "function disableTransformOptionMerge(datasetModel) {\n var transformOption = datasetModel.option.transform;\n transformOption && Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_0__[/* setAsPrimitive */ \"R\"])(datasetModel.option.transform);\n}", "reset() {\n this.options.input = this.defaults.input;\n this.options.output = this.defaults.output;\n this.options.getter = this.defaults.getter;\n this.options.setter = this.defaults.setter;\n }", "setOption(options) {\n const {\n map = this.options.map,\n blendMode = this.options.blendMode,\n layer = this.options.layer,\n data = this.options.layer,\n radius = this.options.radius,\n useKd = this.options.useKd,\n opacity = this.options.opacity,\n onClick = this.options.onClick,\n onHover = this.options.onHover,\n isFixedRadius = this.options.isFixedRadius,\n fillColor = this.options.fillColor,\n zIndex = this.options.zIndex,\n } = options;\n\n /* Save differential options only. */\n const canvasNewOptions = {};\n\n /* If it is true, render function will be called to perform a re-render. */\n let shouldReRender = false;\n\n /**\n * Combine changed option props that will cause reRender together.\n * */\n const optionShouldRender = (key, newProp) => {\n const lastProp = this.options[key];\n if (lastProp !== newProp) {\n canvasNewOptions[key] = newProp;\n shouldReRender = true;\n }\n };\n\n optionShouldRender('layer', layer);\n optionShouldRender('blendMode', blendMode);\n optionShouldRender('data', data);\n optionShouldRender('radius', radius);\n optionShouldRender('useKd', useKd);\n optionShouldRender('isFixedRadius', isFixedRadius);\n optionShouldRender('fillColor', fillColor);\n\n if (isFixedRadius !== this.options.isFixedRadius) {\n shouldReRender = true;\n }\n\n if (opacity !== this.options.opacity) {\n this.customLayer.setOpacity(opacity);\n shouldReRender = true;\n }\n\n if (zIndex !== this.options.zIndex) {\n this.customLayer.setzIndex(zIndex);\n shouldReRender = true;\n }\n\n /**\n * Radius and isFixed are relative;\n * */\n if (radius !== this.options.radius || isFixedRadius !== this.options.isFixedRadius) {\n if (radius !== undefined) {\n let pointRadius = radius;\n if (typeof radius === 'function') {\n pointRadius = radius(this.map);\n } else if (!isFixedRadius) {\n pointRadius = radius / this.map.getResolution();\n }\n pointRadius = Math.ceil(pointRadius);\n canvasNewOptions.radius = pointRadius;\n } else {\n canvasNewOptions.radius = undefined;\n }\n shouldReRender = true;\n }\n\n if (map !== this.options.map) {\n this.customLayer.setMap(map);\n /**\n * It might be not neccessary to call re-render function\n * because setMap will perform re-render automatically\n */\n shouldReRender = false;\n }\n\n /* Update canvas options if options is not empty. */\n if (Object.keys(canvasNewOptions).length !== 0) {\n /** Raw radius should be kept in this.options,\n * and the processed radius delivered to pointRender */\n this.pointRender.setOptions(canvasNewOptions);\n }\n\n this.options = {\n map,\n layer,\n data,\n radius,\n useKd,\n onClick,\n onHover,\n isFixedRadius,\n fillColor,\n zIndex,\n blendMode,\n };\n\n /* Perform re-render. */\n if (shouldReRender) {\n this.render();\n }\n }", "function option1Changed(option1) {\n selection_one = option1;\n createBarChart(option1,selection_two);\n createETForMFinfo(option1,selection_two);\n createApexChart(option1,selection_two); \n}", "_setChartOptions() {\n /**\n * the animated loader\n */\n const _loader = this.loader\n /**\n * chart default options\n */\n let _options = {\n hoverOffset: 8,\n layout: {},\n chartArea: {\n backgroundColor: \"transparent\"\n },\n elements: {},\n spanGaps: true,\n plugins: {\n title: {},\n tooltip: {},\n legend: {\n display: CT_SHOWLEGEND.includes(this.chart_type) || false\n }\n },\n animation: {\n onComplete: function () {\n if (_loader) _loader.style.display = \"none\"\n }\n }\n }\n /**\n * check enable gradient colors for state charts or\n */\n if (this.graphData.config.gradient === true && this.graphData.config.mode === \"simple\") {\n _options.gradientcolor = {\n color: true,\n type: this.chart_type\n }\n }\n /**\n * check enable gradient colors for data series chart\n */\n if (plugin_gradient && this.graphData.config.gradient) {\n _options.plugins = {\n plugin_gradient\n }\n }\n /**\n * check secondary axis\n * this.graphData.config holds the configruation data\n * this.graphData.data.datasets data per series\n */\n if (this.graphData.config.secondaryAxis && this.graphData && this.graphData.data && this.graphData.data.datasets) {\n let _scaleOptions = {}\n this.graphData.data.datasets.forEach((dataset) => {\n if (dataset.yAxisID) {\n _scaleOptions[dataset.yAxisID] = {}\n _scaleOptions[dataset.yAxisID].id = dataset.yAxisID\n _scaleOptions[dataset.yAxisID].type = \"linear\"\n _scaleOptions[dataset.yAxisID].position = dataset.yAxisID\n _scaleOptions[dataset.yAxisID].display = true\n if (dataset.yAxisID.toLowerCase() == \"right\") {\n _scaleOptions[dataset.yAxisID].grid = {\n drawOnChartArea: false\n }\n }\n }\n if (dataset.xAxisID) {\n _scaleOptions[dataset.xAxisID] = {}\n _scaleOptions[dataset.xAxisID].id = dataset.xAxisID\n _scaleOptions[dataset.xAxisID].type = \"linear\"\n _scaleOptions[dataset.xAxisID].position = dataset.xAxisID\n _scaleOptions[dataset.xAxisID].display = true\n if (dataset.xAxisID.toLowerCase() == \"top\") {\n _scaleOptions[dataset.xAxisID].grid = {\n drawOnChartArea: false\n }\n }\n }\n })\n if (_scaleOptions) {\n _options.scales = _scaleOptions\n }\n }\n /**\n * bubble axis label based on the data settings\n *\n */\n if (this.chart_type.isChartType(\"bubble\")) {\n const _itemlist = this.entity_items.getEntitieslist()\n let labelX = _itemlist[0].name\n labelX += _itemlist[0].unit ? \" (\" + _itemlist[0].unit + \")\" : \"\"\n let labelY = _itemlist[1].name\n labelY += _itemlist[1].unit ? \" (\" + _itemlist[1].unit + \")\" : \"\"\n _options.scales = {\n x: {\n id: \"x\",\n title: {\n display: true,\n text: labelX\n }\n },\n y: {\n id: \"y\",\n title: {\n display: true,\n text: labelY\n }\n }\n }\n /**\n * scale bubble (optional)\n */\n if (this.graphData.config.bubbleScale) {\n _options.elements = {\n point: {\n radius: (context) => {\n const value = context.dataset.data[context.dataIndex]\n return value._r * this.graphData.config.bubbleScale\n }\n }\n }\n }\n }\n /**\n * special case for timescales to translate the date format\n */\n if (this.graphData.config.timescale && this.graphData.config.datascales) {\n _options.scales = _options.scales || {}\n _options.scales.x = _options.scales.x || {}\n _options.scales.x.maxRotation = 0\n _options.scales.x.autoSkip = true\n _options.scales.x.major = true\n _options.scales.x.type = \"time\"\n _options.scales.x.time = {\n unit: this.graphData.config.datascales.unit,\n format: this.graphData.config.datascales.format,\n isoWeekday: this.graphData.config.datascales.isoWeekday\n }\n _options.scales.x.ticks = {\n callback: xAxisFormat\n }\n }\n /**\n * case barchart segment\n * TODO: better use a plugin for this feature.\n * set bar as stacked, hide the legend for the segmentbar,\n * hide the tooltip item for the segmentbar.\n */\n if (this.graphData.config.segmentbar === true) {\n _options.scales = {\n x: {\n id: \"x\",\n stacked: true\n },\n y: {\n id: \"y\",\n stacked: true\n }\n }\n _options.plugins.legend = {\n labels: {\n filter: (legendItem, data) => {\n return data.datasets[legendItem.datasetIndex].tooltip !== false\n }\n },\n display: false\n }\n _options.plugins.tooltip.callbacks = {\n label: (chart) => {\n if (chart.dataset.tooltip === false || !chart.dataset.label) {\n return null\n }\n return `${chart.formattedValue} ${chart.dataset.unit || \"\"}`\n }\n }\n _options.interaction = {\n intersect: false,\n mode: \"index\"\n }\n } else {\n /**\n * callbacks for tooltip\n */\n _options.plugins.tooltip = {\n callbacks: {\n label: formatToolTipLabel,\n title: formatToolTipTitle\n }\n }\n _options.interaction = {\n intersect: true,\n mode: \"point\"\n }\n }\n /**\n * disable bubble legend\n */\n if (this.chart_type.isChartType(\"bubble\")) {\n _options.plugins.legend = {\n display: false\n }\n }\n /**\n * multiseries for pie and doughnut charts\n */\n if (this.graphData.config.multiseries === true) {\n _options.plugins.legend = {\n labels: {\n generateLabels: function (chart) {\n const original = Chart.overrides.pie.plugins.legend.labels.generateLabels,\n labelsOriginal = original.call(this, chart)\n let datasetColors = chart.data.datasets.map(function (e) {\n return e.backgroundColor\n })\n datasetColors = datasetColors.flat()\n labelsOriginal.forEach((label) => {\n label.datasetIndex = label.index\n label.hidden = !chart.isDatasetVisible(label.datasetIndex)\n label.fillStyle = datasetColors[label.index]\n })\n return labelsOriginal\n }\n },\n onClick: function (mouseEvent, legendItem, legend) {\n legend.chart.getDatasetMeta(legendItem.datasetIndex).hidden = legend.chart.isDatasetVisible(\n legendItem.datasetIndex\n )\n legend.chart.update()\n }\n }\n _options.plugins.tooltip = {\n callbacks: {\n label: function (context) {\n const labelIndex = context.datasetIndex\n return `${context.chart.data.labels[labelIndex]}: ${context.formattedValue} ${context.dataset.unit || \"\"}`\n }\n }\n }\n }\n /**\n * preset cart current config\n */\n let chartCurrentConfig = {\n type: this.chart_type,\n data: {\n datasets: []\n },\n options: _options\n }\n /**\n * merge default with chart config options\n * this.chartconfig.options see yaml config\n * - chart\n * - options:\n */\n if (this.chartconfig.options) {\n chartCurrentConfig.options = deepMerge(_options, this.chartconfig.options)\n } else {\n chartCurrentConfig.options = _options\n }\n return chartCurrentConfig\n }", "_revert() {\n this.get('_chart').revert();\n }", "function preInit(target, data, options) {\n options = options || {};\n options.axesDefaults = options.axesDefaults || {};\n options.legend = options.legend || {};\n options.seriesDefaults = options.seriesDefaults || {};\n var setopts = false;\n if (options.seriesDefaults.renderer == $.jqplot.MekkoRenderer) {\n setopts = true;\n }\n else if (options.series) {\n for (var i=0; i < options.series.length; i++) {\n if (options.series[i].renderer == $.jqplot.MekkoRenderer) {\n setopts = true;\n }\n }\n }\n \n if (setopts) {\n options.axesDefaults.renderer = $.jqplot.MekkoAxisRenderer;\n options.legend.renderer = $.jqplot.MekkoLegendRenderer;\n options.legend.preDraw = true;\n }\n }", "combineOptions(options) {\n let defaults = {\n fitPosition: 'center center',\n addContainer: true\n };\n\n this.options = {\n ...defaults,\n ...options\n };\n }", "function optionChanged(newSelection) {\n buildChart(newSelection);\n}", "function resetOptions(){\n\t \t \n\t\t g_options = jQuery.extend({}, g_temp.originalOptions);\n\t\t \n\t\t g_selectedItemIndex = -1;\n\t\t g_selectedItem = null;\n\t\t g_objSlider = undefined;\n\t\t g_objThumbs = undefined;\n\t\t g_objSlider = undefined; \n\t}", "sync_options_and_states(update_states) {\n var that = this;\n var current = that.current;\n var options = that.options;\n \n if (update_states) {\n current.pos = options.pos || current.pos;\n current.data_set = options.data_set || current.data_set;\n current.selection.low_pass_threshold = +options.low_pass || current.selection.low_pass_threshold;\n current.selection.threshold = +options.threshold || current.selection.threshold;\n current.source = options.source || current.source;\n\n var brush_string = options.brush;\n if (brush_string && brush_string.length > 0) {\n current.brush_extent = brush_string.split(',').map(d => +d);\n }\n\n var zero_padding = options.padding;\n if (zero_padding && zero_padding.length > 0) {\n var tmp = zero_padding.split(',').map(d => +d);\n current.zero_left = tmp[0];\n current.zero_right = tmp[1];\n }\n\n\n var cell_string = options.cells;\n if (cell_string && cell_string.length > 0) {\n current.selection.cells = cell_string.split(',').map(d => +d);\n\n }\n\n var ex_cell_string = options.ex_cell;\n if (ex_cell_string && ex_cell_string.length > 0) {\n that.current.selection.excluded_cells = ex_cell_string.split(',').map(d => +d)\n }\n\n\n } else {\n // TODO: maybe\n }\n\n }", "function mergeOption(oldOption,newOption){newOption = newOption || {};each(newOption,function(newCptOpt,mainType){if(newCptOpt == null){return;}var oldCptOpt=oldOption[mainType];if(!ComponentModel.hasClass(mainType)){oldOption[mainType] = merge(oldCptOpt,newCptOpt,true);}else {newCptOpt = modelUtil.normalizeToArray(newCptOpt);oldCptOpt = modelUtil.normalizeToArray(oldCptOpt);var mapResult=modelUtil.mappingToExists(oldCptOpt,newCptOpt);oldOption[mainType] = map(mapResult,function(item){return item.option && item.exist?merge(item.exist,item.option,true):item.exist || item.option;});}});}", "applyOptions(options) {\n Object.assign(this[$options], options);\n // Re-evaluates clamping based on potentially new values for min/max\n // polar, azimuth and radius:\n this.setOrbit();\n // Prevent interpolation in the case that any target spherical values\n // changed (preserving OrbitalControls behavior):\n this[$spherical].copy(this[$targetSpherical]);\n }", "function seriesOnAfterSetOptions(e) {\n this.resetA11yMarkerOptions = merge(e.options.marker || {}, this.userOptions.marker || {});\n }", "setSelected(options, isToggle) {\n const internals = {\n svg: this.svg,\n chartData: this.settings.dataset,\n isStacked: this.settingsisStacked,\n isGrouped: this.settings.isGrouped,\n isSingle: this.settings.isSingle\n };\n charts.setSelected(options, isToggle, internals);\n }", "function resetChartOptions(){\n // Explicitly reset selectbox fields\n var selectBoxFields = document.getElementsByTagName('select');\n for (var i = 0; i < selectBoxFields.length; i++) {\n selectBoxFields[i].selectedIndex = 0;\n }\n\t\t\n\t$('width').value = 100;\n $('height').value = 100;\n $('backgroundColor').value = '0xFFFFFF';\n $('backgroundColor').style.backgroundColor = '#FFFFFF';\n $('fillColor').value = '';\n $('fillColor').style.backgroundColor = '#FFFFFF';\n $('percentGradientChange').value = 1.0;\n $('percentTransparency').value = 1.0;\n $('labelRotation').value = 0;\n $('tickSizeInterval').value = 1000;\n\t$('tickSizeInterval').style.display = 'none';\n\tsetChartProperty(1000, 'tickSizeInterval', 1000);\n $('drilldown').checked = false;\n}", "function optionChanged(dataset) {\n console.log(dataset);\n charts(dataset);\n}", "reset() {\n this.options = Object.create(null);\n }", "resetChart() {\n this.chart.data.datasets = this.helper.datasetLineLayers().datasets;\n this.chart.config.options.scales.yAxes[0].ticks.stepSize = 1;\n this.chart.update();\n }", "function restore_options() {\n if (typeof save === \"undefined\") {\n save = true;\n }\n\n if (typeof warn === \"undefined\") {\n warn = true;\n }\n\n if (typeof modify === \"undefined\") {\n modify = true;\n }\n\n if (typeof keyCommand === \"undefined\") {\n keyCommand = 69;\n }\n\n keyString.value = stringFromCharCode(keyCommand);\n keyValue.value = keyCommand;\n\n if (warn === \"true\") {\n warnYes.checked = true;\n } else {\n warnNo.checked = true;\n }\n\n if (save === \"true\") {\n saveYes.checked = true;\n } else {\n saveNo.checked = true;\n }\n\n if (modify === \"true\") {\n modifyYes.checked = true;\n } else {\n modifyNo.checked = true;\n }\n}", "function restore_options(){\n\trestore_sync_options();\n\trestore_local_options();\n}", "function unforceSeriesMarkerOptions(series) {\n const resetMarkerOptions = series.resetA11yMarkerOptions;\n if (resetMarkerOptions) {\n const originalOpactiy = resetMarkerOptions.states &&\n resetMarkerOptions.states.normal &&\n resetMarkerOptions.states.normal.opacity;\n series.update({\n marker: {\n enabled: resetMarkerOptions.enabled,\n states: {\n normal: { opacity: originalOpactiy }\n }\n }\n });\n }\n }", "applyOtherOptions(options) {\n let ic = this.icn3d,\n me = ic.icn3dui\n if (options === undefined) options = ic.opts\n\n // if(ic.lines !== undefined) {\n // contact lines\n ic.hBondCls.setHbondsContacts(options, 'contact')\n\n // halogen lines\n ic.hBondCls.setHbondsContacts(options, 'halogen')\n // pi-cation lines\n ic.hBondCls.setHbondsContacts(options, 'pi-cation')\n // pi-stacking lines\n ic.hBondCls.setHbondsContacts(options, 'pi-stacking')\n\n // hbond lines\n ic.hBondCls.setHbondsContacts(options, 'hbond')\n // salt bridge lines\n ic.hBondCls.setHbondsContacts(options, 'saltbridge')\n if (ic.pairArray !== undefined && ic.pairArray.length > 0) {\n this.updateStabilizer() // to update ic.stabilizerpnts\n\n let color = '#FFFFFF'\n let pnts = ic.stabilizerpnts\n ic.lines['stabilizer'] = [] // reset\n for (let i = 0, lim = Math.floor(pnts.length / 2); i < lim; i++) {\n let line = {}\n line.position1 = pnts[2 * i]\n line.position2 = pnts[2 * i + 1]\n line.color = color\n line.dashed = false // if true, there will be too many cylinders in the dashed lines\n\n ic.lines['stabilizer'].push(line)\n }\n }\n\n ic.lineCls.createLines(ic.lines)\n // }\n\n // distance sets\n if (ic.distPnts && ic.distPnts.length > 0) {\n for (let i = 0, il = ic.distPnts.length; i < il; ++i) {\n ic.boxCls.createBox_base(ic.distPnts[i], ic.originSize, ic.hColor, false)\n }\n }\n\n // maps\n if (ic.prevMaps !== undefined) {\n for (let i = 0, il = ic.prevMaps.length; i < il; ++i) {\n ic.mdl.add(ic.prevMaps[i])\n }\n }\n\n // EM map\n if (ic.prevEmmaps !== undefined) {\n for (let i = 0, il = ic.prevEmmaps.length; i < il; ++i) {\n ic.mdl.add(ic.prevEmmaps[i])\n }\n }\n\n if (ic.prevPhimaps !== undefined) {\n for (let i = 0, il = ic.prevPhimaps.length; i < il; ++i) {\n ic.mdl.add(ic.prevPhimaps[i])\n }\n }\n\n // surfaces\n if (ic.prevSurfaces !== undefined) {\n for (let i = 0, il = ic.prevSurfaces.length; i < il; ++i) {\n ic.mdl.add(ic.prevSurfaces[i])\n }\n }\n\n // symmetry axes and polygon\n if (ic.symmetryHash !== undefined && ic.symmetrytitle !== undefined) {\n ic.applySymdCls.applySymmetry(ic.symmetrytitle)\n }\n\n if (ic.symdArray !== undefined && ic.symdArray.length > 0) {\n //var bSymd = true;\n //ic.applySymmetry(ic.symdtitle, bSymd);\n ic.applySymdCls.applySymd()\n }\n\n // other meshes\n if (ic.prevOtherMesh !== undefined) {\n for (let i = 0, il = ic.prevOtherMesh.length; i < il; ++i) {\n ic.mdl.add(ic.prevOtherMesh[i])\n }\n }\n\n if (me.htmlCls.setHtmlCls.getCookie('glycan') != '') {\n let bGlycansCartoon = parseInt(me.htmlCls.setHtmlCls.getCookie('glycan'))\n\n if (ic.bGlycansCartoon != bGlycansCartoon) {\n me.htmlCls.clickMenuCls.setLogCmd('set glycan ' + bGlycansCartoon, true)\n }\n\n ic.bGlycansCartoon = bGlycansCartoon\n }\n\n // add cartoon for glycans\n if (ic.bGlycansCartoon && !ic.bAlternate) {\n ic.glycanCls.showGlycans()\n }\n\n ic.applyCenterCls.applyCenterOptions(options)\n\n ic.axesCls.buildAllAxes(undefined, true)\n\n switch (options.axis.toLowerCase()) {\n case 'yes':\n ic.axis = true\n ic.axesCls.buildAxes(ic.maxD / 2)\n\n break\n case 'no':\n ic.axis = false\n break\n }\n switch (options.pk.toLowerCase()) {\n case 'atom':\n ic.pk = 1\n break\n case 'no':\n ic.pk = 0\n break\n case 'residue':\n ic.pk = 2\n break\n case 'strand':\n ic.pk = 3\n break\n }\n }", "function onSeriesClear() {\n var $thisSeries = this;\n var $thisChart = $thisSeries.ChartProvider;\n var $thisSpecter = $thisChart.Parent;\n\n if (isDefined($thisSeries.onClear)) {\n $thisSeries.onClear();\n }\n\n $thisChart = $thisSpecter.getChart($thisChart.Name);\n delete $thisChart.Selected;\n $thisChart.InDrillMode = false;\n\n\n if (isDefined($thisSeries.DrillItem)) {\n //clear the drillitems Selected values \n\n var drillChart = $thisSpecter.getChart($thisSeries.DrillItem.Name);\n drillChart.CanRender = false;\n if (isDefined(drillChart.Selected)) {\n var currSeries;\n $.each(drillChart.Selected, function (i, sItem) {\n if (currSeries != sItem.$series) {\n currSeries = sItem.$series;\n currSeries.Clear();\n }\n });\n }\n\n $thisSpecter.RemoveFilter($thisSeries.DrillItem.Name);\n }\n\n $thisChart.Render();\n $thisSpecter.RemoveFilter($thisChart.Name);\n\n $.each($thisSeries.LinkedItems, function (index, item) {\n switch (item.Type) {\n case \"Chart\":\n var chart = $thisSpecter.getChart(item.Name);\n if (item.Action == \"SLICE\") {\n if (isDefined(item.Parameters)) {\n $.each(item.Parameters, function (i, parameter) {\n var targetchartprm = findAndGetObj(chart.Parameters, \"Name\", parameter.Name)\n delete targetchartprm.Value;\n });\n }\n if (isUndefined(chart.CanRender) || chart.CanRender == true) {\n chart.Render();\n }\n }\n else if (item.Action == \"SELECT\") {\n\n }\n else if (item.Action == \"RENDER\") {\n if (isUndefined(chart.CanRender) || chart.CanRender == true) {\n chart.Render();\n }\n }\n\n break;\n case \"Slicer\":\n var slicer = $thisSpecter.getSlicer(item.Name);\n if (isUndefined(slicer.CanRender) || slicer.CanRender == true) {\n if (item.Action == \"SLICE\") {\n $.each(item.Parameters, function (i, parameter) {\n var targetchartprm = findAndGetObj(slicer.Parameters, \"Name\", parameter.Name)\n if (isDefined(targetchartprm))\n delete targetchartprm.Value;\n });\n slicer.Render();\n }\n else if (item.Action == \"SELECT\") {\n //since it is triggered by chart event will be undefined\n slicer.Clear();\n }\n }\n break;\n case \"RangePicker\":\n var range = $thisSpecter.getRangePicker(item.Name);\n if (isUndefined(range.CanRender) || range.CanRender == true) {\n if (item.Action == \"SLICE\") {\n $.each(item.Parameters, function (i, parameter) {\n var targetchartprm = findAndGetObj(range.Parameters, \"Name\", parameter.Name)\n if (isDefined(targetchartprm))\n delete targetchartprm.Value;\n });\n range.Render();\n }\n else if (item.Action == \"SELECT\") {\n //since it is triggered by chart event will be undefined\n range.Clear();\n }\n }\n break;\n }\n\n });\n}", "function optionChanged (newSelection) {\n buildCharts(newSelection);\n buildMetadata(newSelection);\n}", "function setOption(chartDisplayType, option, yySetting, data, skinConfig, panelType) {\n // let dimensionCodeFileld = yySetting.dataField.dimensionX[0].codeField;///store_code\n // let dimensionNameFileld = yySetting.dataField.dimensionX[0].nameField;//store_name\n\n var dimensionCodeFileld = eChartCommon.eChartLabel.unionedXCode; ///store_code\n var dimensionNameFileld = eChartCommon.eChartLabel.unionedXName; //store_name\n\n\n var legendData = [];\n var series = [];\n var xAxisData = [];\n var dimensionX = _lodash2.default.get(yySetting, 'dataField.dimensionX');\n var dimensionSub = _lodash2.default.get(yySetting, 'dataField.dimensionSub');\n var measure = _lodash2.default.get(yySetting, 'dataField.measure');\n var barWidth = _lodash2.default.get(yySetting, 'series.barWidth') ? _lodash2.default.get(yySetting, 'series.barWidth') : 10;\n var barMaxWidth = _lodash2.default.get(yySetting, 'series.barMaxWidth') ? _lodash2.default.get(yySetting, 'series.barMaxWidth') : 10;\n var barGap = _lodash2.default.get(yySetting, 'series.barGap') ? _lodash2.default.get(yySetting, 'series.barGap') : '100%';\n var barCategoryGap = _lodash2.default.get(yySetting, 'series.barCategoryGap') ? _lodash2.default.get(yySetting, 'series.barCategoryGap') : '20%';\n var eChartSubType = yySetting.subType;\n\n var maxNameLength = 0;\n // barWidth = 10;\n // let allLength = 1050;//像素\n // let barAll = data.length * measureLength;\n // if (dimensionSubLength > 0) {\n // barAll = data.length * dimensionSubLength;\n // }\n\n // let barAllLength = barAll * barWidth * 2;//默认barWidth=10 ,barGap=100%,barCategoryGap=默认barGap\n\n // let zoomRate = 100 * allLength / (barAllLength == 0 ? 1 : barAllLength);\n\n // if (zoomRate < 100) {\n // option.dataZoom = [{ type: 'slider', end: zoomRate }];\n // }\n // barWidth: 10;\n // barGap: '100%';\n // barCategoryGap: '20%';//类目间柱形距离,默认为类目间距的20%,可设固定值\n var colorList = eChartCommon.getChartColorArr(100);\n if (dimensionSub.length > 0) {\n //如果存在次维度\n // let dimensionSubCodeFileld = yySetting.dataField.dimensionSub[0].codeField;///store_code\n // let dimensionSubNameFileld = yySetting.dataField.dimensionSub[0].nameField;//store_name\n var dimensionSubCodeFileld = eChartCommon.eChartLabel.unionedSubCode;\n var dimensionSubNameFileld = eChartCommon.eChartLabel.unionedSubName;\n // let dimensionSubStack = yySetting.dataField.dimensionSub[0].hasOwnProperty(\"stack\") ? yySetting.dataField.dimensionSub[0].stack : yySetting.stack;\n var dimensionSubStack = yySetting.stack;\n var measureValueField = measure[0].valueField;\n var xAxisItems = [];\n var seriesItems = [];\n data.forEach(function (itemData) {\n if (xAxisItems.indexOf(itemData[dimensionNameFileld]) < 0) {\n xAxisItems.push(itemData[dimensionNameFileld]);\n if (maxNameLength < itemData[dimensionNameFileld].length) maxNameLength = itemData[dimensionNameFileld].length;\n }\n itemData[dimensionSubNameFileld] = eChartCommon.trimCaptionForLegend(itemData[dimensionSubNameFileld], \"barChart\");\n if (seriesItems.indexOf(itemData[dimensionSubNameFileld]) < 0) {\n seriesItems.push(itemData[dimensionSubNameFileld]);\n }\n });\n\n seriesItems.forEach(function (eleS) {\n legendData.push({ name: eleS, textStyle: { width: '10px', height: '10px' } });\n var seriesData = [];\n xAxisItems.forEach(function (eleX) {\n if (xAxisData.indexOf(eleX) < 0) xAxisData.push(eleX);\n var itemDataValue = \"0\";\n data.forEach(function (itemData) {\n if (itemData[dimensionNameFileld] == eleX && itemData[dimensionSubNameFileld] == eleS) itemDataValue = itemData[measureValueField];\n });\n seriesData.push(itemDataValue);\n });\n series.push({\n name: eleS,\n type: 'bar',\n stack: dimensionSubStack,\n silent: true, //图形是否不响应和触发鼠标事件,默认为 false,即响应和触发鼠标事件\n barMaxWidth: barMaxWidth,\n // barWidth: barWidth,\n // barGap: barGap,// 百分比或者数字,表示bar宽度的百分之多少或者几倍\n // barCategoryGap: barCategoryGap,\n data: seriesData,\n itemStyle: {\n normal: {\n color: function color(params) {\n return colorList[params.seriesIndex];\n },\n barBorderRadius: yySetting.bVertical == true ? [5, 5, 0, 0] : [0, 5, 5, 0], //圆角半径,单位px,支持传入数组分别指定 4 个圆角半径\n opacity: 1 //图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。\n }\n }\n });\n });\n } else {\n if (measure.length == 1 && eChartSubType == \"3\") {\n var orderInfo = yySetting.orderInfo;\n var orderField = orderInfo.orderField;\n if (orderInfo.orderBy == \"asc\") {\n data.sort(function (a, b) {\n return b[orderField] - a[orderField];\n });\n } else if (orderInfo.orderBy == \"desc\") {\n data.sort(function (a, b) {\n return a[orderField] - b[orderField];\n });\n }\n }\n measure.forEach(function (itemMeasure) {\n legendData.push({ name: itemMeasure.caption, textStyle: { width: '10px', height: '10px' } });\n var seriesData = [];\n data.forEach(function (itemData) {\n if (!!itemData[dimensionNameFileld] == true) {\n // seriesData.push(itemData[itemMeasure.valueField]);\n seriesData.push(_lodash2.default.get(itemData, itemMeasure.valueField, 0));\n if (xAxisData.indexOf(itemData[dimensionNameFileld]) < 0) {\n if (maxNameLength < itemData[dimensionNameFileld].length) maxNameLength = itemData[dimensionNameFileld].length;\n xAxisData.push(itemData[dimensionNameFileld]);\n }\n }\n });\n series.push({\n name: itemMeasure.caption,\n type: 'bar',\n // stack: itemMeasure.hasOwnProperty(\"stack\") ? itemMeasure.stack : yySetting.stack,\n stack: yySetting.stack,\n silent: true, //图形是否不响应和触发鼠标事件,默认为 false,即响应和触发鼠标事件\n barMaxWidth: barMaxWidth,\n // barWidth: barWidth,\n // barGap: barGap,// 百分比或者数字,表示bar宽度的百分之多少或者几倍\n // barCategoryGap: barCategoryGap,\n data: seriesData,\n itemStyle: {\n normal: {\n color: function color(params) {\n return colorList[params.seriesIndex];\n },\n barBorderRadius: yySetting.bVertical == true ? [5, 5, 0, 0] : [0, 5, 5, 0], //圆角半径,单位px,支持传入数组分别指定 4 个圆角半径\n opacity: 1 //图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。\n }\n }\n // lineStyle: {\n // normal: {\n // color: function (params) { return colorList[params.seriesIndex] }\n // }\n // },\n });\n });\n }\n option.legend.data = legendData;\n option.series = series;\n var needWrap = _lodash2.default.get(yySetting, 'xAxis.axisLabel.needWrap');\n var wrapRowLen = _lodash2.default.get(yySetting, 'xAxis.axisLabel.wrapRowLen');\n if (needWrap && wrapRowLen) {\n option.xAxis.axisLabel.formatter = function (value) {\n return eChartCommon.wrapString(value, wrapRowLen);\n };\n }\n option.xAxis.data = xAxisData;\n if (yySetting.bVertical == false) {\n option.xAxis.axisLabel.formatter = null;\n var tmp = option.xAxis;\n option.xAxis = option.yAxis;\n option.yAxis = tmp;\n }\n\n option.tooltip.formatter = function (params) {\n var result = '';\n params.forEach(function (item) {\n if (result == '') result = item.name;\n result = result + \"</br>\" + '<span style=\"display:inline-block;margin-right:5px;border-radius:9px;width:8px;height:8px;background-color:' + item.color + '\"></span>' + \" \" + item.seriesName + \" : \" + item.value;\n });\n return result;\n };\n\n if (dimensionX.length == 1) {\n if (yySetting.bVertical) option.xAxis.name = option.xAxis.name || dimensionX[0].caption;else option.yAxis.name = option.yAxis.name || dimensionX[0].caption;\n }\n if (measure.length == 1) {\n if (yySetting.bVertical) option.yAxis.name = option.yAxis.name || measure[0].caption;else option.xAxis.name = option.xAxis.name || measure[0].caption;\n }\n // option.legend.itemWidth = 10;\n // option.legend.itemWidth = 10;\n // option.grid.top = option.legend.top + option.legend.height + 30;\n // option.tooltip.padding = [5, 15, 5, 15,];// 上右 下左\n // option.tooltip.textStyle = { fontSize: 12 };\n // option.grid = {\n // top: 0,\n // left: 0,// grid 组件离容器左侧的距离。\n // right: 0,// default: '10%' grid 组件离容器右侧的距离\n // bottom: 30,//grid 组件离容器下侧的距离\n // containLabel: true\n // }\n // option.xAxis.axisLabel.inside = false;\n //\n // option.toolbox.feature.saveAsImage.icon = 'path://M432.45,595.444c0,2.177-4.661,6.82-11.305,6.82c-6.475,0-11.306-4.567-11.306-6.82s4.852-6.812,11.306-6.812C427.841,588.632,432.452,593.191,432.45,595.444L432.45,595.444z M421.155,589.876c-3.009,0-5.448,2.495-5.448,5.572s2.439,5.572,5.448,5.572c3.01,0,5.449-2.495,5.449-5.572C426.604,592.371,424.165,589.876,421.155,589.876L421.155,589.876z M421.146,591.891c-1.916,0-3.47,1.589-3.47,3.549c0,1.959,1.554,3.548,3.47,3.548s3.469-1.589,3.469-3.548C424.614,593.479,423.062,591.891,421.146,591.891L421.146,591.891zM421.146,591.891';\n // option.toolbox.feature.saveAsImage.icon = <SvgIcon type={\"baocunweitupian\"} />;\n // symbol: 'image://./echarts/themes/default/images/icon-shop.png',\n // option.toolbox.feature.saveAsImage.icon = 'image://http://echarts.baidu.com/images/favicon.png';\n // option.toolbox.feature.saveAsImage.iconStyle = { textPosition: 'top', textAlign: 'left' };\n // option.toolbox.orient = \"vertical\";\n // option.toolbox.height = 14;\n // option.toolbox.width = 81;\n // option.legend.padding = [55, 10, 5, 10]\n // option.toolbox.iconStyle = {\n // normal: {\n // color: 'red',//设置颜色\n // }\n // }\n // option.toolbox.emphasis.iconStyle.borderColor = \"red\";\n // option.toolbox.emphasis = { iconStyle: { color: \"red\" } };\n // option.dataZoom = [{ type: 'inside' }];\n // option.grid.height = 500;\n\n if (legendData.length * xAxisData.length > 100) {\n //超过100可缩放\n option.dataZoom = [{ type: 'inside', zoomOnMouseWheel: 'shift' }];\n }\n\n if (chartDisplayType == \"panel\") //如果在大屏展现,则需要特殊调整参数\n {\n option.grid.left = '5%';\n option.grid.right = '5%';\n option.grid.bottom = '5%';\n option.grid.containLabel = true;\n option.xAxis.nameLocation = \"start\";\n option.yAxis.nameLocation = \"start\";\n if (panelType == 3) {\n option.title.left = 10;\n option.legend.left = 10;\n } else if (panelType == 2) {\n option.tooltip.position = function (point, params, dom, rect, size) {\n //其中point为当前鼠标的位置,size中有两个属性:viewSize和contentSize,分别为外层div和tooltip提示框的大小\n var x = point[0]; //\n var y = point[1];\n var viewWidth = size.viewSize[0];\n var viewHeight = size.viewSize[1];\n var boxWidth = size.contentSize[0];\n var boxHeight = size.contentSize[1];\n var posX = 0; //x坐标位置\n var posY = 0; //y坐标位置\n if (x < boxWidth) {\n //左边放不开\n posX = 5;\n } else {\n //左边放的下\n posX = x - boxWidth;\n }\n if (y < boxHeight) {\n //上边放不开\n posY = 5;\n } else {\n //上边放得下\n posY = y - boxHeight;\n }\n return [posX, posY];\n };\n }\n } else if (chartDisplayType == \"mobile\") //如果在移动端展现,则需要特殊调整参数\n {\n option.grid.left = '2%';\n option.grid.right = '2%';\n option.grid.bottom = '5%';\n option.grid.containLabel = true;\n\n option.xAxis.nameLocation = \"start\";\n option.yAxis.nameLocation = \"start\";\n\n option.legend.top = 35;\n\n option.tooltip.position = function (point, params, dom, rect, size) {\n //其中point为当前鼠标的位置,size中有两个属性:viewSize和contentSize,分别为外层div和tooltip提示框的大小\n var x = point[0]; //\n var y = point[1];\n var viewWidth = size.viewSize[0];\n var viewHeight = size.viewSize[1];\n var boxWidth = size.contentSize[0];\n var boxHeight = size.contentSize[1];\n var posX = 0; //x坐标位置\n var posY = 0; //y坐标位置\n if (x < boxWidth) {\n //左边放不开\n posX = 5;\n } else {\n //左边放的下\n posX = x - boxWidth;\n }\n if (y < boxHeight) {\n //上边放不开\n posY = 5;\n } else {\n //上边放得下\n posY = y - boxHeight;\n }\n return [posX, posY];\n };\n } else if (chartDisplayType == \"rpt\") {\n option.grid.containLabel = true;\n option.grid.left = '2%';\n option.grid.right = '2%';\n }\n if (!!skinConfig && skinConfig.displaySkin) {\n _lodash2.default.set(option, \"title.textStyle.color\", skinConfig.displaySkin.textColor);\n _lodash2.default.set(option, \"legend.textStyle.color\", skinConfig.displaySkin.textColor);\n\n _lodash2.default.set(option, \"xAxis.nameTextStyle.color\", skinConfig.displaySkin.textColor);\n _lodash2.default.set(option, \"yAxis.nameTextStyle.color\", skinConfig.displaySkin.textColor);\n\n _lodash2.default.set(option, \"xAxis.axisLine.lineStyle.color\", skinConfig.displaySkin.axisLineColor);\n _lodash2.default.set(option, \"yAxis.axisLine.lineStyle.color\", skinConfig.displaySkin.axisLineColor);\n\n _lodash2.default.set(option, \"xAxis.splitLine.lineStyle.color\", skinConfig.displaySkin.splitLineColor);\n _lodash2.default.set(option, \"yAxis.splitLine.lineStyle.color\", skinConfig.displaySkin.splitLineColor);\n\n _lodash2.default.set(option, \"xAxis.axisLabel.textStyle.color\", skinConfig.displaySkin.textColor);\n _lodash2.default.set(option, \"yAxis.axisLabel.textStyle.color\", skinConfig.displaySkin.textColor);\n\n // let xAxisData2 = [];\n // _.forEach(option.xAxis.data, (ele, key) => {\n // let newData = {\n // value: ele,\n // textStyle: { color: skinConfig.displaySkin.textColor }\n // };\n // xAxisData2.push(newData);\n // });\n // option.xAxis.data = xAxisData2;\n }\n\n option.legend.pageIconColor = \"#949CA6\";\n option.legend.pageIconInactiveColor = \"#C9CDD3\";\n option.legend.pageIconSize = 10;\n\n setAddLengthInfoByRotate(option, yySetting, chartDisplayType, panelType, maxNameLength, _lodash2.default.get(option, 'xAxis.axisLabel.rotate'));\n\n // option.title.left = \"0\";\n // option.legend.left = \"0\";\n // option.grid.left = '0';\n return option;\n}", "function optionChanged(changed){\n charts(changed);\n metadata(changed);\n}", "function updateSelectedCharts(result){\t\r\n\r\n\t\t// store old values\t\r\n\t\toldRes.sel_traffic = chart2.series[0].data[0].y;\r\n\t\t\r\n\t\t//energy\t\t\t\t\t\t\t\t\t\t\r\n\t\tchart2.series[0].setData(result);\r\n\t\r\n}", "function mergeAxisOptionFromParallel(option){var axes=modelUtil.normalizeToArray(option.parallelAxis);zrUtil.each(axes,function(axisOption){if(!zrUtil.isObject(axisOption)){return;}var parallelIndex=axisOption.parallelIndex || 0;var parallelOption=modelUtil.normalizeToArray(option.parallel)[parallelIndex];if(parallelOption && parallelOption.parallelAxisDefault){zrUtil.merge(axisOption,parallelOption.parallelAxisDefault,false);}});}", "function processOptions(plot, options) {\r\n\t\t\t\tif (options.series.curvedLines.active) {\r\n\t\t\t\t\tplot.hooks.processDatapoints.unshift(processDatapoints);\r\n\t\t\t\t}\r\n\t\t\t}", "function processOptions(plot, options) {\n\t\t\t\tif (options.series.curvedLines.active) {\n\t\t\t\t\tplot.hooks.processDatapoints.unshift(processDatapoints);\n\t\t\t\t}\n\t\t\t}", "function processOptions(plot, options) {\n\t\t\t\tif (options.series.curvedLines.active) {\n\t\t\t\t\tplot.hooks.processDatapoints.unshift(processDatapoints);\n\t\t\t\t}\n\t\t\t}", "function optionChanged(newState){\n buildMetadata(newState);\n buildCharts(newState);\n}", "function setGraphModelNew(model, resultData) {\n if (model === 'bar') {\n\n if (resultData.col === 1) {\n\n } else if (resultData.col === 2) {\n ecGraph.barOption.legend.data = resultData.legendData;\n ecGraph.barOption.xAxis[0].data = resultData.xAxis;\n ecGraph.barOption.series[0].name = resultData.legendData[0];\n ecGraph.barOption.series[0].data = resultData.series1;\n ecGraph.barOption.series[1].name = resultData.legendData[1];\n ecGraph.barOption.series[1].data = resultData.series2;\n\n ecGraph.mainViewer.setOption(ecGraph.barOption, {notMerger: true});\n $('#logic-text').html('');\n }\n }\n }", "function restoreOptions() {\n // retrieves data saved, if not found then set these to default parameters\n chrome.storage.sync.get({\n color: \"FFEB3B\",\n opac: .5,\n rad: 50,\n trigger: \"F2\",\n\t\ttoggle: true,\n activePage: false\n }, function(items) {\n \t// sets value of the sliders and settings to saved settings\n document.getElementById('trigger').value = items.trigger;\n\n // draws the circle and text preview to loaded preferences\n\t\topacity = items.opac;\n\t\tradius = items.rad;\n\t\thighlight = items.color;\n\t\tcheck = items.toggle;\n\t\t$('#toggle').prop('checked', check);\n\t\tdrawCircle(opacity, radius, highlight);\n });\n}", "function optionChanged (sample) {\ndemographic_panel(sample);\ncreate_charts(sample);\n}", "function processOptions(plot, options) {\n\t\t\tif (options.series.curvedLines.active) {\n\t\t\t\tplot.hooks.processDatapoints.unshift(processDatapoints);\n\t\t\t}\n\t\t}", "function processOptions(plot, options) {\n\t\t\tif (options.series.curvedLines.active) {\n\t\t\t\tplot.hooks.processDatapoints.unshift(processDatapoints);\n\t\t\t}\n\t\t}", "function processOptions(plot, options) {\n\t\t\tif (options.series.curvedLines.active) {\n\t\t\t\tplot.hooks.processDatapoints.unshift(processDatapoints);\n\t\t\t}\n\t\t}", "function processOptions(plot, options) {\n\t\t\tif (options.series.curvedLines.active) {\n\t\t\t\tplot.hooks.processDatapoints.unshift(processDatapoints);\n\t\t\t}\n\t\t}", "function optionChanged(id) {\n charting(id);\n meta(id);\n}// change(id)", "function optionChanged(sample) {\n createChart(sample);\n createMetaData(sample);\n // createGauge(sample)\n}", "function setOptions(o){\n\t\t\t\n\t\t\toptions = merge(o, {\n\t\t\t\tcolors: ['#00A8F0', '#C0D800', '#cb4b4b', '#4da74d', '#9440ed'], //=> The default colorscheme. When there are > 5 series, additional colors are generated.\n\t\t\t\tlegend: {\n\t\t\t\t\tshow: true,\t\t\t\t// => setting to true will show the legend, hide otherwise\n\t\t\t\t\tnoColumns: 1,\t\t\t// => number of colums in legend table\n\t\t\t\t\tlabelFormatter: null,\t// => fn: string -> string\n\t\t\t\t\tlabelBoxBorderColor: '#ccc', // => border color for the little label boxes\n\t\t\t\t\tcontainer: null,\t\t\t// => container (as jQuery object) to put legend in, null means default on top of graph\n\t\t\t\t\tposition: 'ne',\t\t\t// => position of default legend container within plot\n\t\t\t\t\tmargin: 5,\t\t\t\t// => distance from grid edge to default legend container within plot\n\t\t\t\t\tbackgroundColor: null,\t// => null means auto-detect\n\t\t\t\t\tbackgroundOpacity: 0.85\t// => set to 0 to avoid background, set to 1 for a solid background\n\t\t\t\t},\n\t\t\t\txaxis: {\n\t\t\t\t\tticks: null,\t\t\t// => format: either [1, 3] or [[1, 'a'], 3]\n\t\t\t\t\tnoTicks: 5,\t\t\t\t// => number of ticks for automagically generated ticks\n\t\t\t\t\ttickFormatter: defaultTickFormatter, // => fn: number -> string\n\t\t\t\t\ttickDecimals: null,\t\t// => no. of decimals, null means auto\n\t\t\t\t\tmin: null,\t\t\t\t// => min. value to show, null means set automatically\n\t\t\t\t\tmax: null,\t\t\t\t// => max. value to show, null means set automatically\n\t\t\t\t\tautoscaleMargin: 0\t\t// => margin in % to add if auto-setting min/max\n\t\t\t\t},\n\t\t\t\tyaxis: {\n\t\t\t\t\tticks: null,\t\t\t// => format: either [1, 3] or [[1, 'a'], 3]\n\t\t\t\t\tnoTicks: 5,\t\t\t\t// => number of ticks for automagically generated ticks\n\t\t\t\t\ttickFormatter: defaultTickFormatter, // => fn: number -> string\n\t\t\t\t\ttickDecimals: null,\t\t// => no. of decimals, null means auto\n\t\t\t\t\tmin: null,\t\t\t\t// => min. value to show, null means set automatically\n\t\t\t\t\tmax: null,\t\t\t\t// => max. value to show, null means set automatically\n\t\t\t\t\tautoscaleMargin: 0\t\t// => margin in % to add if auto-setting min/max\n\t\t\t\t},\n\t\t\t\tpoints: {\n\t\t\t\t\tshow: false,\t\t\t// => setting to true will show points, false will hide\n\t\t\t\t\tradius: 3,\t\t\t\t// => point radius (pixels)\n\t\t\t\t\tlineWidth: 2,\t\t\t// => line width in pixels\n\t\t\t\t\tfill: true,\t\t\t\t// => true to fill the points with a color, false for (transparent) no fill\n\t\t\t\t\tfillColor: '#ffffff'\t// => fill color\n\t\t\t\t},\n\t\t\t\tlines: {\n\t\t\t\t\tshow: false,\t\t\t// => setting to true will show lines, false will hide\n\t\t\t\t\tlineWidth: 2, \t\t\t// => line width in pixels\n\t\t\t\t\tfill: false,\t\t\t// => true to fill the area from the line to the x axis, false for (transparent) no fill\n\t\t\t\t\tfillColor: null\t\t\t// => fill color\n\t\t\t\t},\n\t\t\t\tbars: {\n\t\t\t\t\tshow: false,\t\t\t// => setting to true will show bars, false will hide\n\t\t\t\t\tlineWidth: 2,\t\t\t// => in pixels\n\t\t\t\t\tbarWidth: 1,\t\t\t// => in units of the x axis\n\t\t\t\t\tfill: true,\t\t\t\t// => true to fill the area from the line to the x axis, false for (transparent) no fill\n\t\t\t\t\tfillColor: null\t\t\t// => fill color\n\t\t\t\t},\n\t\t\t\tgrid: {\n\t\t\t\t\tcolor: '#545454',\t\t// => primary color used for outline and labels\n\t\t\t\t\tbackgroundColor: null,\t// => null for transparent, else color\n\t\t\t\t\ttickColor: '#dddddd',\t// => color used for the ticks\n\t\t\t\t\tlabelMargin: 3\t\t\t// => margin in pixels\n\t\t\t\t},\n\t\t\t\tselection: {\n\t\t\t\t\tmode: null,\t\t\t\t// => one of null, 'x', 'y' or 'xy'\n\t\t\t\t\tcolor: '#B6D9FF',\t\t// => selection box color\n\t\t\t\t\tfps: 10\t\t\t\t\t// => frames-per-second\n\t\t\t\t},\n\t\t\t\tmouse: {\n\t\t\t\t\ttrack: null,\t\t\t// => true to track the mouse, no tracking otherwise\n\t\t\t\t\tposition: 'se',\t\t\t// => position of the value box (default south-east)\n\t\t\t\t\ttrackFormatter: defaultTrackFormatter, // => formats the values in the value box\n\t\t\t\t\tmargin: 3,\t\t\t\t// => margin in pixels of the valuebox\n\t\t\t\t\tcolor: '#ff3f19',\t\t// => line color of points that are drawn when mouse comes near a value of a series\n\t\t\t\t\ttrackDecimals: 1,\t\t// => decimals for the track values\n\t\t\t\t\tsensibility: 2,\t\t\t// => the lower this number, the more precise you have to aim to show a value\n\t\t\t\t\tradius: 3\t\t\t\t// => radius of the tracck point\n\t\t\t\t},\n\t\t\t\tshadowSize: 4\t\t\t\t// => size of the 'fake' shadow\n\t\t\t});\n\t\t\t\n\t\t\t/**\n\t\t\t * Collect colors assigned by the user to a serie.\n\t\t\t */\n\t\t\tvar neededColors = series.length;\n\t\t\tvar usedColors = [];\n\t\t\tvar assignedColors = [];\n\t\t\tfor(var i = 0; i < series.length; ++i){\n\t\t\t\tvar sc = series[i].color;\n\t\t\t\tif(sc != null){\n\t\t\t\t\t--neededColors;\n\t\t\t\t\tif(Object.isNumber(sc)) assignedColors.push(sc);\n\t\t\t\t\telse usedColors.push(parseColor(series[i].color));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Calculate the number of colors that need to be generated.\n\t\t\t */\n\t\t\tfor(var j = 0; j < assignedColors.length; ++j){\n\t\t\t\tneededColors = Math.max(neededColors, assignedColors[j] + 1);\n\t\t\t}\n\t\n\t\t\t/**\n\t\t\t * Generate colors.\n\t\t\t */\n\t\t\tvar colors = [];\n\t\t\tvar variation = 0;\n\t\t\tvar k = 0;\n\t\t\twhile(colors.length < neededColors){\n\t\t\t\tvar c = (options.colors.length == k) ? new Color(100, 100, 100) : parseColor(options.colors[k]);\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Make sure each serie gets a different color.\n\t\t\t\t */\n\t\t\t\tvar sign = variation % 2 == 1 ? -1 : 1;\n\t\t\t\tvar factor = 1 + sign * Math.ceil(variation / 2) * 0.2;\n\t\t\t\tc.scale(factor, factor, factor);\n\t\n\t\t\t\t/**\n\t\t\t\t * @todo if we're getting to close to something else, we should probably skip this one\n\t\t\t\t */\n\t\t\t\tcolors.push(c);\n\t\t\t\t\n\t\t\t\tif(++k >= options.colors.length){\n\t\t\t\t\tk = 0;\n\t\t\t\t\t++variation;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t/**\n\t\t\t * Fill the options with the generated colors.\n\t\t\t */\n\t\t\tvar colori = 0;\n\t\t\tfor(var m = 0, s; m < series.length; ++m){\n\t\t\t\ts = series[m];\n\t\n\t\t\t\t/**\n\t\t\t\t * Assign the color.\n\t\t\t\t */\n\t\t\t\tif(s.color == null){\n\t\t\t\t\ts.color = colors[colori].toString();\n\t\t\t\t\t++colori;\n\t\t\t\t}else if(Object.isNumber(s.color)){\n\t\t\t\t\ts.color = colors[s.color].toString();\n\t\t\t\t}\n\t\n\t\t\t\ts.lines = Object.extend(Object.clone(options.lines), s.lines);\n\t\t\t\ts.points = Object.extend(Object.clone(options.points), s.points);\n\t\t\t\ts.bars = Object.extend(Object.clone(options.bars), s.bars);\n\t\t\t\ts.mouse = Object.extend(Object.clone(options.mouse), s.mouse);\n\t\t\t\t\n\t\t\t\tif(s.shadowSize == null) s.shadowSize = options.shadowSize;\n\t\t\t}\n\t\t}", "function propagateOptions() {\n sendRequestToAllTabs({\n name: 'setOptions',\n options: elements.options\n }, function(){});\n}", "function updateOptions ( optionsToUpdate, fireSetEvent ) {\n\n\t\t// Spectrum is created using the range, snap, direction and step options.\n\t\t// 'snap' and 'step' can be updated.\n\t\t// If 'snap' and 'step' are not passed, they should remain unchanged.\n\t\tvar v = valueGet();\n\n\t\tvar updateAble = ['margin', 'limit', 'padding', 'range', 'animate', 'snap', 'step', 'format'];\n\n\t\t// Only change options that we're actually passed to update.\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toriginalOptions[name] = optionsToUpdate[name];\n\t\t\t}\n\t\t});\n\n\t\tvar newOptions = testOptions(originalOptions);\n\n\t\t// Load new options into the slider state\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toptions[name] = newOptions[name];\n\t\t\t}\n\t\t});\n\n\t\tscope_Spectrum = newOptions.spectrum;\n\n\t\t// Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\n\t\toptions.margin = newOptions.margin;\n\t\toptions.limit = newOptions.limit;\n\t\toptions.padding = newOptions.padding;\n\n\t\t// Update pips, removes existing.\n\t\tif ( options.pips ) {\n\t\t\tpips(options.pips);\n\t\t}\n\n\t\t// Invalidate the current positioning so valueSet forces an update.\n\t\tscope_Locations = [];\n\t\tvalueSet(optionsToUpdate.start || v, fireSetEvent);\n\t}", "function updateOptions ( optionsToUpdate, fireSetEvent ) {\n\n\t\t// Spectrum is created using the range, snap, direction and step options.\n\t\t// 'snap' and 'step' can be updated.\n\t\t// If 'snap' and 'step' are not passed, they should remain unchanged.\n\t\tvar v = valueGet();\n\n\t\tvar updateAble = ['margin', 'limit', 'padding', 'range', 'animate', 'snap', 'step', 'format'];\n\n\t\t// Only change options that we're actually passed to update.\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toriginalOptions[name] = optionsToUpdate[name];\n\t\t\t}\n\t\t});\n\n\t\tvar newOptions = testOptions(originalOptions);\n\n\t\t// Load new options into the slider state\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toptions[name] = newOptions[name];\n\t\t\t}\n\t\t});\n\n\t\tscope_Spectrum = newOptions.spectrum;\n\n\t\t// Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\n\t\toptions.margin = newOptions.margin;\n\t\toptions.limit = newOptions.limit;\n\t\toptions.padding = newOptions.padding;\n\n\t\t// Update pips, removes existing.\n\t\tif ( options.pips ) {\n\t\t\tpips(options.pips);\n\t\t}\n\n\t\t// Invalidate the current positioning so valueSet forces an update.\n\t\tscope_Locations = [];\n\t\tvalueSet(optionsToUpdate.start || v, fireSetEvent);\n\t}", "function updateOptions ( optionsToUpdate, fireSetEvent ) {\n\n\t\t// Spectrum is created using the range, snap, direction and step options.\n\t\t// 'snap' and 'step' can be updated.\n\t\t// If 'snap' and 'step' are not passed, they should remain unchanged.\n\t\tvar v = valueGet();\n\n\t\tvar updateAble = ['margin', 'limit', 'padding', 'range', 'animate', 'snap', 'step', 'format'];\n\n\t\t// Only change options that we're actually passed to update.\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toriginalOptions[name] = optionsToUpdate[name];\n\t\t\t}\n\t\t});\n\n\t\tvar newOptions = testOptions(originalOptions);\n\n\t\t// Load new options into the slider state\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toptions[name] = newOptions[name];\n\t\t\t}\n\t\t});\n\n\t\tscope_Spectrum = newOptions.spectrum;\n\n\t\t// Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\n\t\toptions.margin = newOptions.margin;\n\t\toptions.limit = newOptions.limit;\n\t\toptions.padding = newOptions.padding;\n\n\t\t// Update pips, removes existing.\n\t\tif ( options.pips ) {\n\t\t\tpips(options.pips);\n\t\t}\n\n\t\t// Invalidate the current positioning so valueSet forces an update.\n\t\tscope_Locations = [];\n\t\tvalueSet(optionsToUpdate.start || v, fireSetEvent);\n\t}", "function updateOptions ( optionsToUpdate, fireSetEvent ) {\n\n\t\t// Spectrum is created using the range, snap, direction and step options.\n\t\t// 'snap' and 'step' can be updated.\n\t\t// If 'snap' and 'step' are not passed, they should remain unchanged.\n\t\tvar v = valueGet();\n\n\t\tvar updateAble = ['margin', 'limit', 'padding', 'range', 'animate', 'snap', 'step', 'format'];\n\n\t\t// Only change options that we're actually passed to update.\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toriginalOptions[name] = optionsToUpdate[name];\n\t\t\t}\n\t\t});\n\n\t\tvar newOptions = testOptions(originalOptions);\n\n\t\t// Load new options into the slider state\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toptions[name] = newOptions[name];\n\t\t\t}\n\t\t});\n\n\t\tscope_Spectrum = newOptions.spectrum;\n\n\t\t// Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\n\t\toptions.margin = newOptions.margin;\n\t\toptions.limit = newOptions.limit;\n\t\toptions.padding = newOptions.padding;\n\n\t\t// Update pips, removes existing.\n\t\tif ( options.pips ) {\n\t\t\tpips(options.pips);\n\t\t}\n\n\t\t// Invalidate the current positioning so valueSet forces an update.\n\t\tscope_Locations = [];\n\t\tvalueSet(optionsToUpdate.start || v, fireSetEvent);\n\t}", "function updateOptions ( optionsToUpdate, fireSetEvent ) {\n\n\t\t// Spectrum is created using the range, snap, direction and step options.\n\t\t// 'snap' and 'step' can be updated.\n\t\t// If 'snap' and 'step' are not passed, they should remain unchanged.\n\t\tvar v = valueGet();\n\n\t\tvar updateAble = ['margin', 'limit', 'padding', 'range', 'animate', 'snap', 'step', 'format'];\n\n\t\t// Only change options that we're actually passed to update.\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toriginalOptions[name] = optionsToUpdate[name];\n\t\t\t}\n\t\t});\n\n\t\tvar newOptions = testOptions(originalOptions);\n\n\t\t// Load new options into the slider state\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toptions[name] = newOptions[name];\n\t\t\t}\n\t\t});\n\n\t\tscope_Spectrum = newOptions.spectrum;\n\n\t\t// Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\n\t\toptions.margin = newOptions.margin;\n\t\toptions.limit = newOptions.limit;\n\t\toptions.padding = newOptions.padding;\n\n\t\t// Update pips, removes existing.\n\t\tif ( options.pips ) {\n\t\t\tpips(options.pips);\n\t\t}\n\n\t\t// Invalidate the current positioning so valueSet forces an update.\n\t\tscope_Locations = [];\n\t\tvalueSet(optionsToUpdate.start || v, fireSetEvent);\n\t}", "function updateOptions ( optionsToUpdate, fireSetEvent ) {\n\n\t\t// Spectrum is created using the range, snap, direction and step options.\n\t\t// 'snap' and 'step' can be updated.\n\t\t// If 'snap' and 'step' are not passed, they should remain unchanged.\n\t\tvar v = valueGet();\n\n\t\tvar updateAble = ['margin', 'limit', 'padding', 'range', 'animate', 'snap', 'step', 'format'];\n\n\t\t// Only change options that we're actually passed to update.\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toriginalOptions[name] = optionsToUpdate[name];\n\t\t\t}\n\t\t});\n\n\t\tvar newOptions = testOptions(originalOptions);\n\n\t\t// Load new options into the slider state\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toptions[name] = newOptions[name];\n\t\t\t}\n\t\t});\n\n\t\tscope_Spectrum = newOptions.spectrum;\n\n\t\t// Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\n\t\toptions.margin = newOptions.margin;\n\t\toptions.limit = newOptions.limit;\n\t\toptions.padding = newOptions.padding;\n\n\t\t// Update pips, removes existing.\n\t\tif ( options.pips ) {\n\t\t\tpips(options.pips);\n\t\t}\n\n\t\t// Invalidate the current positioning so valueSet forces an update.\n\t\tscope_Locations = [];\n\t\tvalueSet(optionsToUpdate.start || v, fireSetEvent);\n\t}", "function updateOptions ( optionsToUpdate, fireSetEvent ) {\n\n\t\t// Spectrum is created using the range, snap, direction and step options.\n\t\t// 'snap' and 'step' can be updated.\n\t\t// If 'snap' and 'step' are not passed, they should remain unchanged.\n\t\tvar v = valueGet();\n\n\t\tvar updateAble = ['margin', 'limit', 'padding', 'range', 'animate', 'snap', 'step', 'format'];\n\n\t\t// Only change options that we're actually passed to update.\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toriginalOptions[name] = optionsToUpdate[name];\n\t\t\t}\n\t\t});\n\n\t\tvar newOptions = testOptions(originalOptions);\n\n\t\t// Load new options into the slider state\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toptions[name] = newOptions[name];\n\t\t\t}\n\t\t});\n\n\t\tscope_Spectrum = newOptions.spectrum;\n\n\t\t// Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\n\t\toptions.margin = newOptions.margin;\n\t\toptions.limit = newOptions.limit;\n\t\toptions.padding = newOptions.padding;\n\n\t\t// Update pips, removes existing.\n\t\tif ( options.pips ) {\n\t\t\tpips(options.pips);\n\t\t}\n\n\t\t// Invalidate the current positioning so valueSet forces an update.\n\t\tscope_Locations = [];\n\t\tvalueSet(optionsToUpdate.start || v, fireSetEvent);\n\t}", "function updateOptions(optionsToUpdate, fireSetEvent) {\n // Spectrum is created using the range, snap, direction and step options.\n // 'snap' and 'step' can be updated.\n // If 'snap' and 'step' are not passed, they should remain unchanged.\n var v = valueGet();\n var updateAble = [\n \"margin\",\n \"limit\",\n \"padding\",\n \"range\",\n \"animate\",\n \"snap\",\n \"step\",\n \"format\",\n \"pips\",\n \"tooltips\",\n ];\n // Only change options that we're actually passed to update.\n updateAble.forEach(function (name) {\n // Check for undefined. null removes the value.\n if (optionsToUpdate[name] !== undefined) {\n originalOptions[name] = optionsToUpdate[name];\n }\n });\n var newOptions = testOptions(originalOptions);\n // Load new options into the slider state\n updateAble.forEach(function (name) {\n if (optionsToUpdate[name] !== undefined) {\n options[name] = newOptions[name];\n }\n });\n scope_Spectrum = newOptions.spectrum;\n // Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\n options.margin = newOptions.margin;\n options.limit = newOptions.limit;\n options.padding = newOptions.padding;\n // Update pips, removes existing.\n if (options.pips) {\n pips(options.pips);\n }\n else {\n removePips();\n }\n // Update tooltips, removes existing.\n if (options.tooltips) {\n tooltips();\n }\n else {\n removeTooltips();\n }\n // Invalidate the current positioning so valueSet forces an update.\n scope_Locations = [];\n valueSet(isSet(optionsToUpdate.start) ? optionsToUpdate.start : v, fireSetEvent);\n }", "function _default(seriesType) {\n return {\n getTargetSeries: function (ecModel) {\n // Pie and funnel may use diferrent scope\n var paletteScope = {};\n var seiresModelMap = createHashMap();\n ecModel.eachSeriesByType(seriesType, function (seriesModel) {\n seriesModel.__paletteScope = paletteScope;\n seiresModelMap.set(seriesModel.uid, seriesModel);\n });\n return seiresModelMap;\n },\n reset: function (seriesModel, ecModel) {\n var dataAll = seriesModel.getRawData();\n var idxMap = {};\n var data = seriesModel.getData();\n data.each(function (idx) {\n var rawIdx = data.getRawIndex(idx);\n idxMap[rawIdx] = idx;\n });\n dataAll.each(function (rawIdx) {\n var filteredIdx = idxMap[rawIdx]; // If series.itemStyle.normal.color is a function. itemVisual may be encoded\n\n var singleDataColor = filteredIdx != null && data.getItemVisual(filteredIdx, 'color', true);\n var singleDataBorderColor = filteredIdx != null && data.getItemVisual(filteredIdx, 'borderColor', true);\n var itemModel;\n\n if (!singleDataColor || !singleDataBorderColor) {\n // FIXME Performance\n itemModel = dataAll.getItemModel(rawIdx);\n }\n\n if (!singleDataColor) {\n var color = itemModel.get('itemStyle.color') || seriesModel.getColorFromPalette(dataAll.getName(rawIdx) || rawIdx + '', seriesModel.__paletteScope, dataAll.count()); // Legend may use the visual info in data before processed\n\n dataAll.setItemVisual(rawIdx, 'color', color); // Data is not filtered\n\n if (filteredIdx != null) {\n data.setItemVisual(filteredIdx, 'color', color);\n }\n } else {\n // Set data all color for legend\n dataAll.setItemVisual(rawIdx, 'color', singleDataColor);\n }\n\n if (!singleDataBorderColor) {\n var borderColor = itemModel.get('itemStyle.borderColor'); // Legend may use the visual info in data before processed\n\n dataAll.setItemVisual(rawIdx, 'borderColor', borderColor); // Data is not filtered\n\n if (filteredIdx != null) {\n data.setItemVisual(filteredIdx, 'borderColor', borderColor);\n }\n } else {\n // Set data all borderColor for legend\n dataAll.setItemVisual(rawIdx, 'borderColor', singleDataBorderColor);\n }\n });\n }\n };\n}", "function updateOptions ( optionsToUpdate, fireSetEvent ) {\n\n\t\t// Spectrum is created using the range, snap, direction and step options.\n\t\t// 'snap' and 'step' can be updated, 'direction' cannot, due to event binding.\n\t\t// If 'snap' and 'step' are not passed, they should remain unchanged.\n\t\tvar v = valueGet();\n\n\t\tvar updateAble = ['margin', 'limit', 'range', 'animate', 'snap', 'step', 'format'];\n\n\t\t// Only change options that we're actually passed to update.\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toriginalOptions[name] = optionsToUpdate[name];\n\t\t\t}\n\t\t});\n\n\t\tvar newOptions = testOptions(originalOptions);\n\n\t\t// Load new options into the slider state\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toptions[name] = newOptions[name];\n\t\t\t}\n\t\t});\n\n\t\t// Save current spectrum direction as testOptions in testRange call\n\t\t// doesn't rely on current direction\n\t\tnewOptions.spectrum.direction = scope_Spectrum.direction;\n\t\tscope_Spectrum = newOptions.spectrum;\n\n\t\t// Limit and margin depend on the spectrum but are stored outside of it. (#677)\n\t\toptions.margin = newOptions.margin;\n\t\toptions.limit = newOptions.limit;\n\n\t\t// Invalidate the current positioning so valueSet forces an update.\n\t\tscope_Locations = [];\n\t\tvalueSet(optionsToUpdate.start || v, fireSetEvent);\n\t}", "function line_options(element,data,canvas_id,chart_id,chart_datas){\n y_subset_max = 0\n y_overall_max = 0\n data.datas.forEach(function(item,i){\n if(i==0){\n y_subset_max = Math.max(...item.data) \n }else{\n y_overall_max = Math.max(...item.data) \n }\n })\n y_max = 0\n if(Math.abs(y_overall_max-y_subset_max)>10000000){\n y_max = y_subset_max\n\n }else{\n y_max = (y_overall_max>y_subset_max)?y_overall_max:y_subset_max\n }\n \n var options = { \n // Container for pan options\n plugins: {\n zoom: {\n pan: {\n enabled: true,\n mode: 'x',\n rangeMin: {\n y: 0\n },\n },\n zoom: {\n enabled: true,\n sensitivity: 0.001,\n speed: 10,\n mode: 'x',\n rangeMin: {\n y: 0\n },\n rangeMax: {\n y: 500\n },\n \n }\n }\n },\n legend:{\n display:false\n },\n elements: {\n line: {\n tension: 0\n }\n },\n tooltips:{\n displayColors: false,\n callbacks:{\n title:function(tooltipItem){\n let title = data.labels[tooltipItem[0].index]\n if(title.length>20){\n start = 0\n valid = true\n result = []\n while(valid){\n if((start + 20)<title.length){\n result.push(title.substring(start,start+20))\n start +=20 \n }else{\n valid = false\n }\n }\n return result\n }else{\n return title\n } \n },\n label:function(tooltipItem,data){\n var chart_id ='a_chart_'+element.getAttribute('id').substring(10)\n chart_data = chart_datas[curr_dataset][chart_id]\n \n if (chart_data){\n var modify_labels = Object.keys(chart_data.otherInfo).map(function(item){\n item = item.toString()\n if(item.length>10){\n return item.substring(0,10) + '...'\n }else{\n return item\n } \n })\n \n if(modify_labels.includes(tooltipItem.xLabel)){\n var multistringText = [tooltipItem.yLabel] \n //產生tooltip\n var label_index = modify_labels.indexOf(tooltipItem.xLabel)\n var one2oneList = Object.values(chart_data.otherInfo)[label_index]\n Object.keys(one2oneList).forEach(function(key){\n let text = key + '=' + one2oneList[key]\n text = (text.length>20)? text.substring(0,20):text\n multistringText.push(text)\n })\n \n return multistringText\n \n }else{\n if (tooltipItem.yLabel == \"\"){\n value = data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index]\n return Math.floor(value*100) + \"%\"\n }\n return tooltipItem.yLabel\n } \n }else{\n if (tooltipItem.yLabel == \"\"){\n value = data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index]\n return Math.floor(value*100) + \"%\"\n }\n return tooltipItem.yLabel\n }\n \n }\n }\n },\n responsive: true,\n maintainAspectRatio: false,\n scales: {\n xAxes: [{\n scaleLabel: {\n display: true,\n labelString: data.x,\n fontStyle: \"bold\",\n },\n ticks: {\n autoSkip: true,\n maxTicksLimit: 15\n },\n afterTickToLabelConversion : function(q){\n for(var tick in q.ticks){\n if(q.ticks[tick].length>10){\n q.ticks[tick] = q.ticks[tick].substring(0,10) + '...'\n }\n }\n }\n }],\n yAxes: [{\n scaleLabel: {\n display: true,\n labelString: data.y,\n fontStyle: \"bold\"\n },\n position:\"left\",\n ticks: {\n min: 0\n },\n afterTickToLabelConversion : function (q){\n for(var tick in q.ticks){\n if(data.y_glo_aggre == \"per\"){\n var value = parseFloat(q.ticks[tick])\n q.ticks[tick] = Math.round((value*100)).toString() + \"%\" ;\n }else{\n var value = parseInt(q.ticks[tick]) \n if(value>=1000 && value<1000000){\n q.ticks[tick] = parseInt(value / 1000).toString() + \"K\" ;\n }else if(value>=1000000){\n q.ticks[tick] = parseInt(value / 1000000).toString() + \"M\" ;\n }\n }\n \n }\n }\n },{\n id: 'overall',\n position:\"right\",\n display: false,\n ticks: {\n min: 0\n },\n afterTickToLabelConversion : function (q){\n for(var tick in q.ticks){\n if(data.y_glo_aggre == \"per\"){\n var value = parseFloat(q.ticks[tick])\n q.ticks[tick] = Math.round((value*100)).toString() + \"%\" ;\n }else{\n var value = parseInt(q.ticks[tick]) \n if(value>=1000 && value<1000000){\n q.ticks[tick] = parseInt(value / 1000).toString() + \"K\" ;\n }else if(value>=1000000){\n q.ticks[tick] = parseInt(value / 1000000).toString() + \"M\" ;\n }\n }\n \n }\n }\n }\n ],\n }\n }\n\n \n //show second y-axes if there are two dataset\n if(data.datas.length>1){\n options.scales.yAxes[1].display = true\n }\n \n return options\n}", "function updateOptions(optionsToUpdate, fireSetEvent) {\n // Spectrum is created using the range, snap, direction and step options.\n // 'snap' and 'step' can be updated.\n // If 'snap' and 'step' are not passed, they should remain unchanged.\n var v = valueGet();\n\n var updateAble = [\n \"margin\",\n \"limit\",\n \"padding\",\n \"range\",\n \"animate\",\n \"snap\",\n \"step\",\n \"format\",\n \"pips\",\n \"tooltips\"\n ];\n\n // Only change options that we're actually passed to update.\n updateAble.forEach(function(name) {\n // Check for undefined. null removes the value.\n if (optionsToUpdate[name] !== undefined) {\n originalOptions[name] = optionsToUpdate[name];\n }\n });\n\n var newOptions = testOptions(originalOptions);\n\n // Load new options into the slider state\n updateAble.forEach(function(name) {\n if (optionsToUpdate[name] !== undefined) {\n options[name] = newOptions[name];\n }\n });\n\n scope_Spectrum = newOptions.spectrum;\n\n // Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\n options.margin = newOptions.margin;\n options.limit = newOptions.limit;\n options.padding = newOptions.padding;\n\n // Update pips, removes existing.\n if (options.pips) {\n pips(options.pips);\n } else {\n removePips();\n }\n\n // Update tooltips, removes existing.\n if (options.tooltips) {\n tooltips();\n } else {\n removeTooltips();\n }\n\n // Invalidate the current positioning so valueSet forces an update.\n scope_Locations = [];\n valueSet(optionsToUpdate.start || v, fireSetEvent);\n }", "function updateOptions(optionsToUpdate, fireSetEvent) {\n // Spectrum is created using the range, snap, direction and step options.\n // 'snap' and 'step' can be updated.\n // If 'snap' and 'step' are not passed, they should remain unchanged.\n var v = valueGet();\n\n var updateAble = [\n \"margin\",\n \"limit\",\n \"padding\",\n \"range\",\n \"animate\",\n \"snap\",\n \"step\",\n \"format\",\n \"pips\",\n \"tooltips\"\n ];\n\n // Only change options that we're actually passed to update.\n updateAble.forEach(function(name) {\n // Check for undefined. null removes the value.\n if (optionsToUpdate[name] !== undefined) {\n originalOptions[name] = optionsToUpdate[name];\n }\n });\n\n var newOptions = testOptions(originalOptions);\n\n // Load new options into the slider state\n updateAble.forEach(function(name) {\n if (optionsToUpdate[name] !== undefined) {\n options[name] = newOptions[name];\n }\n });\n\n scope_Spectrum = newOptions.spectrum;\n\n // Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\n options.margin = newOptions.margin;\n options.limit = newOptions.limit;\n options.padding = newOptions.padding;\n\n // Update pips, removes existing.\n if (options.pips) {\n pips(options.pips);\n } else {\n removePips();\n }\n\n // Update tooltips, removes existing.\n if (options.tooltips) {\n tooltips();\n } else {\n removeTooltips();\n }\n\n // Invalidate the current positioning so valueSet forces an update.\n scope_Locations = [];\n valueSet(optionsToUpdate.start || v, fireSetEvent);\n }", "function updateOptions(optionsToUpdate, fireSetEvent) {\n // Spectrum is created using the range, snap, direction and step options.\n // 'snap' and 'step' can be updated.\n // If 'snap' and 'step' are not passed, they should remain unchanged.\n var v = valueGet();\n\n var updateAble = [\n \"margin\",\n \"limit\",\n \"padding\",\n \"range\",\n \"animate\",\n \"snap\",\n \"step\",\n \"format\",\n \"pips\",\n \"tooltips\"\n ];\n\n // Only change options that we're actually passed to update.\n updateAble.forEach(function(name) {\n // Check for undefined. null removes the value.\n if (optionsToUpdate[name] !== undefined) {\n originalOptions[name] = optionsToUpdate[name];\n }\n });\n\n var newOptions = testOptions(originalOptions);\n\n // Load new options into the slider state\n updateAble.forEach(function(name) {\n if (optionsToUpdate[name] !== undefined) {\n options[name] = newOptions[name];\n }\n });\n\n scope_Spectrum = newOptions.spectrum;\n\n // Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\n options.margin = newOptions.margin;\n options.limit = newOptions.limit;\n options.padding = newOptions.padding;\n\n // Update pips, removes existing.\n if (options.pips) {\n pips(options.pips);\n } else {\n removePips();\n }\n\n // Update tooltips, removes existing.\n if (options.tooltips) {\n tooltips();\n } else {\n removeTooltips();\n }\n\n // Invalidate the current positioning so valueSet forces an update.\n scope_Locations = [];\n valueSet(optionsToUpdate.start || v, fireSetEvent);\n }", "function updateOptions(optionsToUpdate, fireSetEvent) {\n // Spectrum is created using the range, snap, direction and step options.\n // 'snap' and 'step' can be updated.\n // If 'snap' and 'step' are not passed, they should remain unchanged.\n var v = valueGet();\n\n var updateAble = [\n \"margin\",\n \"limit\",\n \"padding\",\n \"range\",\n \"animate\",\n \"snap\",\n \"step\",\n \"format\",\n \"pips\",\n \"tooltips\"\n ];\n\n // Only change options that we're actually passed to update.\n updateAble.forEach(function(name) {\n // Check for undefined. null removes the value.\n if (optionsToUpdate[name] !== undefined) {\n originalOptions[name] = optionsToUpdate[name];\n }\n });\n\n var newOptions = testOptions(originalOptions);\n\n // Load new options into the slider state\n updateAble.forEach(function(name) {\n if (optionsToUpdate[name] !== undefined) {\n options[name] = newOptions[name];\n }\n });\n\n scope_Spectrum = newOptions.spectrum;\n\n // Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\n options.margin = newOptions.margin;\n options.limit = newOptions.limit;\n options.padding = newOptions.padding;\n\n // Update pips, removes existing.\n if (options.pips) {\n pips(options.pips);\n } else {\n removePips();\n }\n\n // Update tooltips, removes existing.\n if (options.tooltips) {\n tooltips();\n } else {\n removeTooltips();\n }\n\n // Invalidate the current positioning so valueSet forces an update.\n scope_Locations = [];\n valueSet(optionsToUpdate.start || v, fireSetEvent);\n }", "function loadComputedCurvesForSolution(solution, override) {\n if (!override) //load experiment data to highcharts only once in the beginning\n chartOptions.series.push({ data: computationData.experimentData, color: '#434343', type: 'scatter' });\n\n var curve;\n for (var i = 1; i <= Object.keys(computationData.weights['solution' + solution]).length; i++) { //iterate through all models of displayed solution\n curve = [];\n $.each(computationData.computedCurves['solution' + solution][i], function (i, v) { //iterate through all points in that model\n curve.push([v.q_value, Math.log(v.intensity)]);\n });\n if (!override)\n chartOptions.series.push({ data: curve });\n else {\n var chartEl = $('#chart');\n chartEl.highcharts().series[i].setData(curve, false);\n chartEl.highcharts().series[i].setVisible(true, false);\n }\n }\n\n if (override){\n $('#chart').highcharts().redraw();\n $('#controls-panel-overlay').toggle();\n $('#best-results-table-overlay').toggle();\n }\n}", "function clearOptions(){\n view = tabsFrame.newView;\n var index = view.tableGroups.length - tabsFrame.selectedTableGroup - 1;\n var emptyArray = new Array();\n var curTgrp = view.tableGroups[index];\n \n resetChartOptions();\n if(curTgrp.hasOwnProperty('numberOfColumns')){\n \tdelete curTgrp.numberOfColumns;\n }\n\t \n curTgrp.title = getMessage('panelTitle');\n view.chartProperties = emptyArray;\n view.paginatedProperties = emptyArray;\n curTgrp.paginatedPanelProperties = new Object();\n view.tableGroups[index].measures = emptyArray;\n \n \n curTgrp = resetColumnReportOptions(curTgrp);\n createColumnReportSummaryTable(view, index);\n \n // clear action properties\n view.actionProperties[index] = new Object();\n \t\n\t$('logoImageFile').value = 'archibus-logo.gif';\n\ttabsFrame.newView = view;\n myTabsFrame.selectTab('page4f');\n}", "updateOptions(options) {\n for (const property of Object.keys(options)) {\n if (options.hasOwnProperty(property)) {\n this._odataOptions[property] = options[property]; // replace of the property\n }\n // we need to keep the defaultSortBy for references whenever the user removes his Sorting\n // then we would revert to the defaultSortBy and the only way is to keep a hard copy here\n if (property === 'orderBy' || property === 'sortBy') {\n let sortBy = options[property];\n // make sure first char of each orderBy field is capitalize\n if (this._odataOptions.caseType === CaseType.pascalCase) {\n if (Array.isArray(sortBy)) {\n sortBy.forEach((field, index, inputArray) => {\n inputArray[index] = titleCase(field);\n });\n }\n else {\n sortBy = titleCase(options[property]);\n }\n }\n this._odataOptions.orderBy = sortBy;\n this._defaultSortBy = sortBy;\n }\n }\n }", "setChart(chart) {\n // Prevent setting chart more than once.\n if (this.chart && this.chart !== chart) {\n throw new MonteError('An extension should only have the chart set once.');\n }\n\n this.chart = chart;\n\n const layerName = this.tryInvoke(this.opts.layer);\n if (layerName) { this.layer = this.chart[layerName]; }\n\n // Get and store extension ID from MonteGlobal\n this.__extId = global.getNextExtensionId();\n\n return this;\n }", "function updateOptions ( optionsToUpdate, fireSetEvent ) {\n\n\t\t// Spectrum is created using the range, snap, direction and step options.\n\t\t// 'snap' and 'step' can be updated, 'direction' cannot, due to event binding.\n\t\t// If 'snap' and 'step' are not passed, they should remain unchanged.\n\t\tvar v = valueGet();\n\n\t\tvar updateAble = ['margin', 'limit', 'padding', 'range', 'animate', 'snap', 'step', 'format'];\n\n\t\t// Only change options that we're actually passed to update.\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toriginalOptions[name] = optionsToUpdate[name];\n\t\t\t}\n\t\t});\n\n\t\tvar newOptions = testOptions(originalOptions);\n\n\t\t// Load new options into the slider state\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toptions[name] = newOptions[name];\n\t\t\t}\n\t\t});\n\n\t\t// Save current spectrum direction as testOptions in testRange call\n\t\t// doesn't rely on current direction\n\t\tnewOptions.spectrum.direction = scope_Spectrum.direction;\n\t\tscope_Spectrum = newOptions.spectrum;\n\n\t\t// Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\n\t\toptions.margin = newOptions.margin;\n\t\toptions.limit = newOptions.limit;\n\t\toptions.padding = newOptions.padding;\n\n\t\t// Invalidate the current positioning so valueSet forces an update.\n\t\tscope_Locations = [];\n\t\tvalueSet(optionsToUpdate.start || v, fireSetEvent);\n\t}", "function updateOptions ( optionsToUpdate, fireSetEvent ) {\n\n\t\t// Spectrum is created using the range, snap, direction and step options.\n\t\t// 'snap' and 'step' can be updated, 'direction' cannot, due to event binding.\n\t\t// If 'snap' and 'step' are not passed, they should remain unchanged.\n\t\tvar v = valueGet();\n\n\t\tvar updateAble = ['margin', 'limit', 'padding', 'range', 'animate', 'snap', 'step', 'format'];\n\n\t\t// Only change options that we're actually passed to update.\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toriginalOptions[name] = optionsToUpdate[name];\n\t\t\t}\n\t\t});\n\n\t\tvar newOptions = testOptions(originalOptions);\n\n\t\t// Load new options into the slider state\n\t\tupdateAble.forEach(function(name){\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toptions[name] = newOptions[name];\n\t\t\t}\n\t\t});\n\n\t\t// Save current spectrum direction as testOptions in testRange call\n\t\t// doesn't rely on current direction\n\t\tnewOptions.spectrum.direction = scope_Spectrum.direction;\n\t\tscope_Spectrum = newOptions.spectrum;\n\n\t\t// Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\n\t\toptions.margin = newOptions.margin;\n\t\toptions.limit = newOptions.limit;\n\t\toptions.padding = newOptions.padding;\n\n\t\t// Invalidate the current positioning so valueSet forces an update.\n\t\tscope_Locations = [];\n\t\tvalueSet(optionsToUpdate.start || v, fireSetEvent);\n\t}", "function updateOptions ( optionsToUpdate, fireSetEvent ) {\r\n\r\n\t\t\t// Spectrum is created using the range, snap, direction and step options.\r\n\t\t\t// 'snap' and 'step' can be updated, 'direction' cannot, due to event binding.\r\n\t\t\t// If 'snap' and 'step' are not passed, they should remain unchanged.\r\n\t\t\tvar v = valueGet(), newOptions = testOptions({\r\n\t\t\t\tstart: [0, 0],\r\n\t\t\t\tmargin: optionsToUpdate.margin,\r\n\t\t\t\tlimit: optionsToUpdate.limit,\r\n\t\t\t\tstep: optionsToUpdate.step === undefined ? options.singleStep : optionsToUpdate.step,\r\n\t\t\t\trange: optionsToUpdate.range,\r\n\t\t\t\tanimate: optionsToUpdate.animate,\r\n\t\t\t\tsnap: optionsToUpdate.snap === undefined ? options.snap : optionsToUpdate.snap\r\n\t\t\t});\r\n\r\n\t\t\t['margin', 'limit', 'range', 'animate'].forEach(function(name){\r\n\r\n\t\t\t\t// Only change options that we're actually passed to update.\r\n\t\t\t\tif ( optionsToUpdate[name] !== undefined ) {\r\n\t\t\t\t\toptions[name] = optionsToUpdate[name];\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t// Save current spectrum direction as testOptions in testRange call\r\n\t\t\t// doesn't rely on current direction\r\n\t\t\tnewOptions.spectrum.direction = scope_Spectrum.direction;\r\n\t\t\tscope_Spectrum = newOptions.spectrum;\r\n\r\n\t\t\t// Invalidate the current positioning so valueSet forces an update.\r\n\t\t\tscope_Locations = [-1, -1];\r\n\t\t\tvalueSet(optionsToUpdate.start || v, fireSetEvent);\r\n\t\t}", "onControlEvent (eventContext) {\n switch (eventContext.eventName) {\n case 'plotContextMenu':\n try {\n this.inInitialize = true;\n this.currentPlot = eventContext.event.plot;\n this.__setDisplayEffects(this.currentPlot.selectionConfigs);\n this.plotContextMenu.show();\n $$('plotProperties').setValues({\n dynamicSelectionLabel: eventContext.event.plot.dynamicSelectionId,\n staticSelectionLabel: eventContext.event.plot.selectionOutId,\n canvasSelectorLabel: eventContext.event.plot.elementId,\n plotId: eventContext.event.plot.id,\n activeSelection: eventContext.event.plot.selectOver,\n mouseInteractionNoSeed: eventContext.event.plot.mouseOverExcludeSeed,\n numNeighbours: eventContext.event.plot.numNeighbours,\n maxNeighbours: Math.ceil(Math.sqrt(eventContext.event.plot.plotPoints.length)),\n kdekernelSigma: eventContext.event.kde.sigma,\n kdekernelContours: eventContext.event.kde.contours,\n kdePlotColor: eventContext.event.kde.color\n }, true);\n $$('plotProperties').callEvent('onValues', []); //shouldn't be necessary\n // for some reason this checkbox fails using set\n $$('kdePlotActivateId').setValue(eventContext.event.kde.activate);\n let props = ReScatter.dataModel.getSelectionPropKeys(eventContext.event.plot.selectionOutId);\n let propOptions = [];\n props.forEach(function (val/*, index, array*/) {\n propOptions.push({id: val, value: val});\n });\n let wasVisible = $$('seedPropId').isVisible();\n // In order to set properties the control must be visible\n $$('seedPropId').show();\n $$('seedPropId').define('options', props.sort());\n $$('seedPropId').setValue(ReScatter.dataModel.getSelectionPrimaryProp(eventContext.event.plot.selectionOutId));\n $$('seedPropId').refresh();\n if (!wasVisible) {\n $$('seedPropId').hide();\n }\n wasVisible = $$('lutColorId').isVisible();\n $$('lutColorId').show();\n $$('lutColorId').define('options', this.lutNames);\n $$('lutColorId').refresh();\n $$('lutColorId').setValue(eventContext.event.kde.color);\n $$('lutColorId').enable();\n if (!wasVisible) {\n $$('lutColorId').hide();\n }\n this.__setDisplayEffectVisibility(this.currentPlot.selectionConfigs);\n this.plotContextMenu.setPosition(eventContext.event.coords.x,\n eventContext.event.coords.y);\n }\n catch (e) {\n console.log('Error displaying plot context menu: ' + e);\n }\n finally {\n this.inInitialize = false;\n }\n break;\n case 'numNeighbours':\n if ($$('plotProperties').getValues().dynamicSelectionLabel === eventContext.event.selector) {\n $$('plotProperties').setValues({\n numNeighbours: eventContext.event.number\n }, true);\n }\n break;\n case 'hidePlotContextMenu':\n this.hideMe();\n break;\n default:\n return;\n }\n }", "clickResetZoom(){\n this.__anomalyGraph.resetZoom();\n }", "function resetSourceDefaulter(ecModel) {\n // `datasetMap` is used to make default encode.\n innerGlobalModel(ecModel).datasetMap = Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_1__[/* createHashMap */ \"g\"])();\n}", "function optionChanged(state) {\n // console.log(state);\n buildPlot(state);\n insChart(state);\n}", "function optionChanged(newData){\n sample_metadata(newData);\n plotData(newData);\n}", "function optionChanged (newsample){\n createchart(newsample) \n metadata(newsample)\n}", "function updateOptions ( optionsToUpdate, fireSetEvent ) {\n\n\t\t// Spectrum is created using the range, snap, direction and step options.\n\t\t// 'snap' and 'step' can be updated, 'direction' cannot, due to event binding.\n\t\t// If 'snap' and 'step' are not passed, they should remain unchanged.\n\t\tvar v = valueGet(), newOptions = testOptions({\n\t\t\tstart: [0, 0],\n\t\t\tmargin: optionsToUpdate.margin,\n\t\t\tlimit: optionsToUpdate.limit,\n\t\t\tstep: optionsToUpdate.step === undefined ? options.singleStep : optionsToUpdate.step,\n\t\t\trange: optionsToUpdate.range,\n\t\t\tanimate: optionsToUpdate.animate,\n\t\t\tsnap: optionsToUpdate.snap === undefined ? options.snap : optionsToUpdate.snap\n\t\t});\n\n\t\t['margin', 'limit', 'range', 'animate'].forEach(function(name){\n\n\t\t\t// Only change options that we're actually passed to update.\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toptions[name] = optionsToUpdate[name];\n\t\t\t}\n\t\t});\n\n\t\t// Save current spectrum direction as testOptions in testRange call\n\t\t// doesn't rely on current direction\n\t\tnewOptions.spectrum.direction = scope_Spectrum.direction;\n\t\tscope_Spectrum = newOptions.spectrum;\n\n\t\t// Invalidate the current positioning so valueSet forces an update.\n\t\tscope_Locations = [-1, -1];\n\t\tvalueSet(optionsToUpdate.start || v, fireSetEvent);\n\t}", "function updateOptions ( optionsToUpdate, fireSetEvent ) {\n\n\t\t// Spectrum is created using the range, snap, direction and step options.\n\t\t// 'snap' and 'step' can be updated, 'direction' cannot, due to event binding.\n\t\t// If 'snap' and 'step' are not passed, they should remain unchanged.\n\t\tvar v = valueGet(), newOptions = testOptions({\n\t\t\tstart: [0, 0],\n\t\t\tmargin: optionsToUpdate.margin,\n\t\t\tlimit: optionsToUpdate.limit,\n\t\t\tstep: optionsToUpdate.step === undefined ? options.singleStep : optionsToUpdate.step,\n\t\t\trange: optionsToUpdate.range,\n\t\t\tanimate: optionsToUpdate.animate,\n\t\t\tsnap: optionsToUpdate.snap === undefined ? options.snap : optionsToUpdate.snap\n\t\t});\n\n\t\t['margin', 'limit', 'range', 'animate'].forEach(function(name){\n\n\t\t\t// Only change options that we're actually passed to update.\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\n\t\t\t\toptions[name] = optionsToUpdate[name];\n\t\t\t}\n\t\t});\n\n\t\t// Save current spectrum direction as testOptions in testRange call\n\t\t// doesn't rely on current direction\n\t\tnewOptions.spectrum.direction = scope_Spectrum.direction;\n\t\tscope_Spectrum = newOptions.spectrum;\n\n\t\t// Invalidate the current positioning so valueSet forces an update.\n\t\tscope_Locations = [-1, -1];\n\t\tvalueSet(optionsToUpdate.start || v, fireSetEvent);\n\t}", "function updateOption(data, type) {\n\n // set base color \n let primaryColor = this.__setColor(data.data.length);\n let symbol = ['circle', 'rect', 'triangle', 'diamond', 'pin', 'arrow', 'roundRect'];\n\n let seriesData = [];\n if (type === 'Normal') {\n data.data.forEach(function (val, index) {\n seriesData.push({\n name: data.index[index],\n type: \"line\",\n data: val,\n itemStyle: {\n color: primaryColor[index]\n },\n symbol: symbol[index],\n })\n })\n } else {\n let accumulatedData = [];\n\n data.data.forEach(function (val, index) {\n let normal_array = val;\n let accumulated_array = [];\n normal_array.reduce(function (a, b, i) {\n return accumulated_array[i] = a + b;\n }, 0);\n accumulatedData.push(accumulated_array);\n })\n\n data.data.forEach(function (val, index) {\n seriesData.push({\n name: data.index[index],\n type: \"line\",\n data: accumulatedData[index],\n itemStyle: {\n color: primaryColor[index]\n },\n symbol: symbol[index],\n })\n })\n }\n\n let xAxis = {\n type: 'category',\n boundaryGap: false,\n data: data.columns\n }\n\n let legend = {\n bottom: '0%',\n data: data.index\n }\n\n return {\n xAxis: xAxis,\n legend: legend,\n series: seriesData\n }\n}", "function optionChanged(passdata)\n{\n table(passdata);\n charts(passdata);\n}", "function setOptions() {\n vm.optionParams = angular.fromJson(vm.options);\n vm.optionKeys = Object.keys(vm.optionParams);\n\n if(-1 >= optionsInterprete('initIndex', vm.optionKeys) || !isNumberic(vm.optionParams.initIndex)) {\n vm.selectedIndex = 0;\n } else {\n vm.selectedIndex = vm.optionParams.initIndex;\n }\n\n if(-1 >= optionsInterprete('omitLen', vm.optionKeys) || !isNumberic(vm.optionParams.omitLen)) {\n vm.omitLen = 0;\n } else {\n vm.omitLen = vm.optionParams.omitLen;\n }\n\n if(-1 >= optionsInterprete('filter', vm.optionKeys)) {\n vm.filterName = null;\n } else {\n vm.filterName = vm.optionParams.filter;\n }\n\n if (0 >= vm.optionKeys.length || 1 > vm.optionKeys.length) {\n // console.log('dropdown optionParams format not correct.');\n return;\n } else {\n vm.duplexOptionsArray = vm.optionParams['' + vm.optionKeys[0] + ''];\n }\n\n if (!angular.isArray(vm.duplexOptionsArray) || 0 >= vm.duplexOptionsArray.length) {\n vm.duplexOptionsArray.length = 0;\n vm.duplexOptionsArray.push('--');\n }\n\n // selectedIndex check\n if (vm.duplexOptionsArray.length <= vm.selectedIndex) {\n // console.log('duplexSelectPanel initIndex oversize.');\n vm.selectedIndex = 0;\n }\n updateSeletecItem();\n }", "function redraw(options) {\n var additional_sets,\n ranges;\n\n if (options){\n additional_sets = options.additional_sets;\n ranges = options.ranges;\n }\n \n var data = nodes.slice(); // copy array\n if (additional_sets) {\n data.unshift(additional_sets);\n }\n\n if (ranges) {\n $.extend(plot_options,\n {\n xaxis: {min: ranges.xaxis.from, max: ranges.xaxis.to}\n , yaxis: {min: ranges.yaxis.from, max: ranges.yaxis.to}\n }\n );\n $(\"#zoom_out\").prop(\"disabled\", false);\n }\n\n $.plot($(\"#graph\"), data, plot_options);\n }", "changePreset() {\n this.model.presetInProcess = true;\n this.model.reloadPreset();\n this.reset();\n this.timeline.changePreset();\n this.model.presetInProcess = false;\n }", "function 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}", "function 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();\r\n\r\n\t\tvar updateAble = ['margin', 'limit', 'padding', 'range', 'animate', 'snap', 'step', 'format'];\r\n\r\n\t\t// Only change options that we're actually passed to update.\r\n\t\tupdateAble.forEach(function(name){\r\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\r\n\t\t\t\toriginalOptions[name] = optionsToUpdate[name];\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tvar newOptions = testOptions(originalOptions);\r\n\r\n\t\t// Load new options into the slider state\r\n\t\tupdateAble.forEach(function(name){\r\n\t\t\tif ( optionsToUpdate[name] !== undefined ) {\r\n\t\t\t\toptions[name] = newOptions[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// Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\r\n\t\toptions.margin = newOptions.margin;\r\n\t\toptions.limit = newOptions.limit;\r\n\t\toptions.padding = newOptions.padding;\r\n\r\n\t\t// Invalidate the current positioning so valueSet forces an update.\r\n\t\tscope_Locations = [];\r\n\t\tvalueSet(optionsToUpdate.start || v, fireSetEvent);\r\n\t}", "function updateOptions(optionsToUpdate, fireSetEvent) {\n\n // Spectrum is created using the range, snap, direction and step options.\n // 'snap' and 'step' can be updated.\n // If 'snap' and 'step' are not passed, they should remain unchanged.\n var v = valueGet();\n\n var updateAble = ['margin', 'limit', 'padding', 'range', 'animate', 'snap', 'step', 'format'];\n\n // Only change options that we're actually passed to update.\n updateAble.forEach(function (name) {\n if (optionsToUpdate[name] !== undefined) {\n originalOptions[name] = optionsToUpdate[name];\n }\n });\n\n var newOptions = testOptions(originalOptions);\n\n // Load new options into the slider state\n updateAble.forEach(function (name) {\n if (optionsToUpdate[name] !== undefined) {\n options[name] = newOptions[name];\n }\n });\n\n scope_Spectrum = newOptions.spectrum;\n\n // Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\n options.margin = newOptions.margin;\n options.limit = newOptions.limit;\n options.padding = newOptions.padding;\n\n // Update pips, removes existing.\n if (options.pips) {\n pips(options.pips);\n }\n\n // Invalidate the current positioning so valueSet forces an update.\n scope_Locations = [];\n valueSet(optionsToUpdate.start || v, fireSetEvent);\n }", "_resetOptions() {\n\t\tfor ( let slider of this.controlOptions.control.sliders ) {\n\t\t\tlet options = this.getSliderConfig( slider );\n\t\t\tthis.sliders[slider.name].$slider.slider( 'option', options );\n\t\t}\n\t}", "function optionChanged(a) {\n CreateBarChart(a);\n CreateBubbleChart(a);\n DisplaySampleMetaData(a);\n CreateGaugeChart(a);\n}", "reset() {\n var _this$_plugin$restore;\n\n this.removeAttribute(\"row-pivots\");\n this.removeAttribute(\"column-pivots\");\n this.removeAttribute(\"filters\");\n this.removeAttribute(\"sort\");\n this.removeAttribute(\"expressions\");\n\n if (this._initial_col_order) {\n this.setAttribute(\"columns\", JSON.stringify(this._initial_col_order));\n } else {\n this.removeAttribute(\"columns\");\n }\n\n this.setAttribute(\"plugin\", Object.keys(renderers.getInstance())[0]);\n (_this$_plugin$restore = this._plugin.restore) === null || _this$_plugin$restore === void 0 ? void 0 : _this$_plugin$restore.call(this, {});\n this.dispatchEvent(new Event(\"perspective-config-update\"));\n }", "function optionChanged(name){\r\n // Testing option change\r\n // console.log(name)\r\n buildCharts(name) \r\n demographicData(name)\r\n}", "options () {\n return Object.assign({}, defaultConfig, this.chartOptions)\n }", "reset () {\n // Clear all layers\n for (const [key, value] of this.layers) {\n this.clear_chart(key);\n }\n\n this.context = new Map();\n this.context.set(\n CONST.CHART_CONTEXT_DEFAULT, \n {\n x_low: null,\n x_high: null,\n y_low: null,\n y_high: null\n }\n );\n\n this.curves = new Map();\n\n this.layers = new Map();\n this.add_layer(CONST.CHART_LAYER_AXES);\n this.add_layer(CONST.CHART_LAYER_DEFAULT);\n }", "_updateOverviewSelection() {\n if (this.overview) {\n var ovChart = this.overview.getBackgroundChart();\n ovChart.getOptions()['selection'] = DvtChartDataUtils.getCurrentSelection(this);\n ovChart.render(); // rerender because unselected markers were not rendered\n }\n }", "function resetOthers() {\n targets = $(anchors[data.index].els);\n others = data.slides.not(targets);\n if (animation !== 'slide') resetConfig.visibility = 'hidden';\n tram(others).set(resetConfig);\n }", "function resetOthers() {\r\n\t targets = $(anchors[data.index].els);\r\n\t others = data.slides.not(targets);\r\n\t if (animation !== 'slide') resetConfig.visibility = 'hidden';\r\n\t tram(others).set(resetConfig);\r\n\t }", "function restore_options(obj) {\n document.getElementById(\"filter\").checked = obj[\"filter_enabled\"] == undefined ? true : obj[\"filter_enabled\"];\n document.getElementById(\"stats\").checked = obj[\"stats_enabled\"] == undefined ? true : obj[\"stats_enabled\"];\n}", "function mergeAxisOptionFromParallel(option) {\n\t var axes = normalizeToArray(option.parallelAxis);\n\t each(axes, function (axisOption) {\n\t if (!isObject(axisOption)) {\n\t return;\n\t }\n\t\n\t var parallelIndex = axisOption.parallelIndex || 0;\n\t var parallelOption = normalizeToArray(option.parallel)[parallelIndex];\n\t\n\t if (parallelOption && parallelOption.parallelAxisDefault) {\n\t merge(axisOption, parallelOption.parallelAxisDefault, false);\n\t }\n\t });\n\t }", "function optionChanged(changedSample){\n demographicInfo(changedSample);\n barChart(changedSample);\n bubbleChart(changedSample);\n}", "resetSettings() {\n document.getElementById('marot-scoring-unit').value = 'segments';\n this.mqmWeights = JSON.parse(JSON.stringify(mqmDefaultWeights));\n this.mqmSlices = JSON.parse(JSON.stringify(mqmDefaultSlices));\n this.setUpScoreSettings();\n this.updateSettings();\n }", "setOptions(options) {\n this.options = deepExtend({}, this.defaultOptions, options);\n }" ]
[ "0.63035333", "0.5849141", "0.57570434", "0.571645", "0.56947654", "0.56782305", "0.5657643", "0.56274074", "0.5625435", "0.55258864", "0.5482081", "0.5455701", "0.54461205", "0.54172605", "0.54077274", "0.5353575", "0.5346342", "0.53099597", "0.52984023", "0.52929634", "0.5272854", "0.52608484", "0.5258154", "0.5256789", "0.5239678", "0.52367806", "0.52345926", "0.52044356", "0.5199846", "0.51828384", "0.51564056", "0.51512724", "0.5148573", "0.5147048", "0.51282287", "0.5127576", "0.5127576", "0.51211834", "0.51211774", "0.51128197", "0.5110624", "0.51042116", "0.51042116", "0.51042116", "0.51042116", "0.51021487", "0.50958353", "0.5083843", "0.50777286", "0.50745165", "0.50745165", "0.50745165", "0.50745165", "0.50745165", "0.50745165", "0.50745165", "0.5065039", "0.50636536", "0.50473076", "0.50383735", "0.5030655", "0.5030655", "0.5030655", "0.5030655", "0.5027356", "0.5024673", "0.50178605", "0.50133747", "0.5012991", "0.5012991", "0.50123996", "0.5006028", "0.50054806", "0.4999791", "0.49986908", "0.49944043", "0.49925116", "0.49822465", "0.49822465", "0.49804536", "0.49779266", "0.49778593", "0.49768373", "0.4974495", "0.49722555", "0.49704573", "0.49646968", "0.4962274", "0.4955694", "0.49556845", "0.49501595", "0.49427533", "0.49387676", "0.4936471", "0.4906985", "0.4906605", "0.49001554", "0.48940066", "0.48939738", "0.48931795", "0.4878007" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function _default(dom, ecModel) { var ariaModel = ecModel.getModel('aria'); if (!ariaModel.get('show')) { return; } else if (ariaModel.get('description')) { dom.setAttribute('aria-label', ariaModel.get('description')); return; } var seriesCnt = 0; ecModel.eachSeries(function (seriesModel, idx) { ++seriesCnt; }, this); var maxDataCnt = ariaModel.get('data.maxCount') || 10; var maxSeriesCnt = ariaModel.get('series.maxCount') || 10; var displaySeriesCnt = Math.min(seriesCnt, maxSeriesCnt); var ariaLabel; if (seriesCnt < 1) { // No series, no aria label return; } else { var title = getTitle(); if (title) { ariaLabel = replace(getConfig('general.withTitle'), { title: title }); } else { ariaLabel = getConfig('general.withoutTitle'); } var seriesLabels = []; var prefix = seriesCnt > 1 ? 'series.multiple.prefix' : 'series.single.prefix'; ariaLabel += replace(getConfig(prefix), { seriesCount: seriesCnt }); ecModel.eachSeries(function (seriesModel, idx) { if (idx < displaySeriesCnt) { var seriesLabel; var seriesName = seriesModel.get('name'); var seriesTpl = 'series.' + (seriesCnt > 1 ? 'multiple' : 'single') + '.'; seriesLabel = getConfig(seriesName ? seriesTpl + 'withName' : seriesTpl + 'withoutName'); seriesLabel = replace(seriesLabel, { seriesId: seriesModel.seriesIndex, seriesName: seriesModel.get('name'), seriesType: getSeriesTypeName(seriesModel.subType) }); var data = seriesModel.getData(); window.data = data; if (data.count() > maxDataCnt) { // Show part of data seriesLabel += replace(getConfig('data.partialData'), { displayCnt: maxDataCnt }); } else { seriesLabel += getConfig('data.allData'); } var dataLabels = []; for (var i = 0; i < data.count(); i++) { if (i < maxDataCnt) { var name = data.getName(i); var value = retrieveRawValue(data, i); dataLabels.push(replace(name ? getConfig('data.withName') : getConfig('data.withoutName'), { name: name, value: value })); } } seriesLabel += dataLabels.join(getConfig('data.separator.middle')) + getConfig('data.separator.end'); seriesLabels.push(seriesLabel); } }); ariaLabel += seriesLabels.join(getConfig('series.multiple.separator.middle')) + getConfig('series.multiple.separator.end'); dom.setAttribute('aria-label', ariaLabel); } function replace(str, keyValues) { if (typeof str !== 'string') { return str; } var result = str; zrUtil.each(keyValues, function (value, key) { result = result.replace(new RegExp('\\{\\s*' + key + '\\s*\\}', 'g'), value); }); return result; } function getConfig(path) { var userConfig = ariaModel.get(path); if (userConfig == null) { var pathArr = path.split('.'); var result = lang.aria; for (var i = 0; i < pathArr.length; ++i) { result = result[pathArr[i]]; } return result; } else { return userConfig; } } function getTitle() { var title = ecModel.getModel('title').option; if (title && title.length) { title = title[0]; } return title && title.text; } function getSeriesTypeName(type) { return lang.series.typeNames[type] || '自定义图'; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "started () {}", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "started() {\r\n\r\n\t}", "function SigV4Utils() { }", "static get NOT_READY () {return 0}", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "initialize() {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "function getImplementation( cb ){\n\n }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "heartbeat () {\n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "static final private internal function m106() {}", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }", "get WSAPlayerX64() {}" ]
[ "0.5349978", "0.48933455", "0.48501366", "0.48083982", "0.4772584", "0.474481", "0.47349635", "0.47027457", "0.46929818", "0.46929818", "0.4673667", "0.4644517", "0.46389893", "0.46253318", "0.4618249", "0.4582536", "0.45813942", "0.45742747", "0.45687214", "0.45623618", "0.45563498", "0.45493752", "0.45489514", "0.45457798", "0.4538844", "0.45218396", "0.45187637", "0.4498104", "0.44946006", "0.44832855", "0.44729492", "0.44691566", "0.44642788", "0.44588575", "0.44554883", "0.4453296", "0.44531393", "0.4443642", "0.44374335", "0.44267404", "0.44238108", "0.44228086", "0.4407407", "0.44043022", "0.44043022", "0.44043022", "0.44035548", "0.4393825", "0.43761918", "0.43697277", "0.4364149", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43517888", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43502304", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43440503", "0.43416435", "0.43375877", "0.43357816", "0.43357816", "0.43336093", "0.43330038" ]
0.0
-1
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (render) { options.render = render options.staticRenderFns = staticRenderFns options._compiled = true } // functional template if (functionalTemplate) { options.functional = true } // scopedId if (scopeId) { options._scopeId = 'data-v-' + scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = shadowMode ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } : injectStyles } if (hook) { if (options.functional) { // for template-only hot-reload because in that case the render fn doesn't // go through the normalizer options._injectStyles = hook // register for functioal component in vue file var originalRender = options.render options.render = function renderWithStyleInjection (h, context) { hook.call(context) return originalRender(h, context) } } else { // inject component registration as beforeCreate hook var existing = options.beforeCreate options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } } return { exports: scriptExports, options: options } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (ctx.isDev && ctx.isClient) {\n config.devtool = \"source-map\";\n // if (isDev && process.isClient) {\n config.plugins.push(\n new StylelintPlugin({\n files: [\"**/*.vue\", \"**/*.scss\"],\n })\n ),\n config.module.rules.push({\n enforce: \"pre\",\n test: /\\.(js|vue)$/,\n loader: \"eslint-loader\",\n exclude: /(node_modules)/,\n options: {\n formatter: require(\"eslint-friendly-formatter\"),\n },\n });\n if (ctx.isDev) {\n config.mode = \"development\";\n }\n }\n for (const rule of config.module.rules) {\n if (rule.use) {\n for (const use of rule.use) {\n if (use.loader === \"sass-loader\") {\n use.options = use.options || {};\n use.options.includePaths = [\n \"node_modules/foundation-sites/scss\",\n \"node_modules/motion-ui/src\",\n ];\n }\n }\n }\n }\n // vue-svg-inline-loader\n const vueRule = config.module.rules.find((rule) =>\n rule.test.test(\".vue\")\n );\n vueRule.use = [\n {\n loader: vueRule.loader,\n options: vueRule.options,\n },\n {\n loader: \"vue-svg-inline-loader\",\n },\n ];\n delete vueRule.loader;\n delete vueRule.options;\n }", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}" ]
[ "0.5848589", "0.5729015", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493", "0.5725493" ]
0.0
-1
Set an object as primitive to be ignored traversing children in clone or merge
function setAsPrimitive(obj) { obj[primitiveKey] = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setAsPrimitive(obj) {\n obj[primitiveKey] = true;\n }", "function setAsPrimitive(obj) {\n\t obj[primitiveKey] = true;\n\t}", "function setAsPrimitive(obj) {\n obj[primitiveKey] = true;\n }", "function setAsPrimitive(obj) {\n obj[primitiveKey] = true;\n }", "function setAsPrimitive(obj) {\n obj[primitiveKey] = true;\n}", "_insertReal( obj ) {\n if( this.#nodes.length ) {\n let indices = this._indices(obj.rect);\n indices.forEach(idx => this.#nodes[idx]._insertReal(obj));\n } else {\n this.#objects.push(obj);\n obj.inNodes.push(this);\n if(this.#objects.length > this.#config.maxObjects && this.#depth < this.#config.maxDepth){\n this._rebalance();\n }\n }\n }", "function isPrimitive(o) {\r\n return o !== Object(o);\r\n }", "function manipulationBareObj( value ) {\n\treturn value;\n}", "makeOrphan(){\n if(!this.parent) return;\n if(this === this.parent.left) this.parent.left = null;\n else this.parent.right = null;\n }", "function isPrimitive(obj)\r\n{\r\n\treturn (obj !== Object(obj));\r\n}", "function clonePlainObject(obj) {\n return $.extend(true, {}, obj);\n }", "function coercePrimitiveToObject(obj) {\n if(isPrimitiveType(obj)) {\n obj = object(obj);\n }\n if(noKeysInStringObjects && isString(obj)) {\n forceStringCoercion(obj);\n }\n return obj;\n }", "clone() {\n // this class should not be cloned since it wraps\n // around a given object. The calling function should check\n // whether the wrapped object is null and supply a new object\n // (from the clone).\n return this.nodes = null;\n }", "function toObject(primitive) {\n if(typeof primitive == \"object\" && null != primitive) {\n return primitive;\n }\n else {\n /* if input isn't null, undefined, boolean, or infinity */\n if(typeof primitive != \"undefined\" &&\n typeof primitive != \"boolean\" &&\n primitive != Infinity &&\n null != primitive) {\n /* return an object */\n return new String(primitive);\n }\n else {\n /* otherwise, return an empty object */\n return [];\n }\n }\n }", "function set_unselectable(obj)\n{\n\tif (!is_ie4 && typeof obj.tagName != 'undefined')\n\t{\n\t\tif (obj.hasChildNodes())\n\t\t{\n\t\t\tfor (var i = 0; i < obj.childNodes.length; i++)\n\t\t\t{\n\t\t\t\tset_unselectable(obj.childNodes[i]);\n\t\t\t}\n\t\t}\n\t\tobj.unselectable = 'on';\n\t}\n}", "applyToObjects ( to_obj ) {\n\t\tthis.applyIn( this.root, to_obj )\n\t}", "function markRaw(obj) {\r\n if (!(isPlainObject(obj) || isArray(obj)) || !Object.isExtensible(obj)) {\r\n return obj;\r\n }\r\n // set the vue observable flag at obj\r\n var ob = createObserver();\r\n ob.__raw__ = true;\r\n def(obj, '__ob__', ob);\r\n // mark as Raw\r\n rawSet.set(obj, true);\r\n return obj;\r\n}", "function markRaw(obj) {\r\n if (!(isPlainObject(obj) || isArray(obj)) || !Object.isExtensible(obj)) {\r\n return obj;\r\n }\r\n // set the vue observable flag at obj\r\n var ob = createObserver();\r\n ob.__raw__ = true;\r\n def(obj, '__ob__', ob);\r\n // mark as Raw\r\n rawSet.set(obj, true);\r\n return obj;\r\n}", "function OBJECT_FOR_TREE(id) {\n this.id = id || 0;\n this.cell = this.obj = this.pre = this.next = null;\n }", "set child(value) {\n this._child = isUndefined(value) ?\n null : value;\n\n return value;\n }", "function setIn(obj,path,value){var res=clone(obj);// this keeps inheritance when obj is a class\nvar resVal=res;var i=0;var pathArray=toPath(path);for(;i<pathArray.length-1;i++){var currentPath=pathArray[i];var currentObj=getIn(obj,pathArray.slice(0,i+1));if(currentObj&&(isObject$2(currentObj)||Array.isArray(currentObj))){resVal=resVal[currentPath]=clone(currentObj);}else {var nextPath=pathArray[i+1];resVal=resVal[currentPath]=isInteger(nextPath)&&Number(nextPath)>=0?[]:{};}}// Return original object if new value is the same as current\nif((i===0?obj:resVal)[pathArray[i]]===value){return obj;}if(value===undefined){delete resVal[pathArray[i]];}else {resVal[pathArray[i]]=value;}// If the path array has a single element, the loop did not run.\n// Deleting on `resVal` had no effect in this scenario, so we delete on the result instead.\nif(i===0&&value===undefined){delete res[pathArray[i]];}return res;}", "makeNormal() {\n this.type = Node.NORMAL;\n this.state = Node.UNVISITED;\n }", "function toggle(obj) {\n if (obj !== bunny) {\n obj.factor = 1.0 - obj.factor;\n obj.tint = obj.factor ? 0xff0033 : 0x00ff00;\n }\n }", "filter( o){\n\t\tvar has= this.has( o)\n\t\t// bail false if we already know it\n\t\tif( !has){\n\t\t\treturn\n\t\t}\n\t\t// add the newcomer\n\t\tif( this._wasPrimitive){\n\t\t\tthis._primitives.push( o)\n\t\t}else{\n\t\t\tthis._objects.add( o)\n\t\t}\n\t\t// return it\n\t\treturn o\n\t}", "#isPrimitive(value) {\n return value !== Object(value); \n }", "function normalizeToObject(doc, ret) {\n delete ret.__v;\n}", "function preventChanges(obj) {\n Object.freeze(obj);\n obj.noChanges = false;\n obj.signature = \"whatever\";\n return obj;\n }", "function isPrimative(val) { return (typeof val !== 'object') }", "static cleanObject(obj) {\n const validObj = (o) =>\n (Object.keys(o).length || (Array.isArray(o) && o.length)) && o;\n const itemToBool = (item) => {\n return typeof item !== 'object' || item === null\n ? item\n : // eslint-disable-next-line no-use-before-define\n validObj(clean(item));\n };\n\n const clean = (o) =>\n validObj(\n Array.isArray(o)\n ? o.map(itemToBool).filter(Boolean)\n : Object.entries(o).reduce((a, [key, val]) => {\n const newVal = itemToBool(val);\n if (\n // Here is the magic check null, undefined and type change (=> undefined recursively)\n newVal !== undefined &&\n newVal !== null &&\n typeof val === typeof newVal\n )\n a[key] = newVal;\n return a;\n }, {})\n );\n\n return clean(obj);\n }", "function test() {\n 'use strict';\n\n let obj1 = { a: 0 , b: { c: 0}};\n let obj2 = Object.assign({}, obj1);\n console.log(JSON.stringify(obj2)); // { a: 0, b: { c: 0}}\n\n obj1.a = 1;\n console.log(JSON.stringify(obj1)); // { a: 1, b: { c: 0}}\n console.log(JSON.stringify(obj2)); // { a: 0, b: { c: 0}}\n\n obj2.a = 2;\n console.log(JSON.stringify(obj1)); // { a: 1, b: { c: 0}}\n console.log(JSON.stringify(obj2)); // { a: 2, b: { c: 0}}\n\n obj2.b.c = 3;\n console.log(JSON.stringify(obj1)); // { a: 1, b: { c: 3}}\n console.log(JSON.stringify(obj2)); // { a: 2, b: { c: 3}}\n\n // Deep Clone\n obj1 = { a: 0 , b: { c: 0}};\n let obj3 = JSON.parse(JSON.stringify(obj1));\n obj1.a = 4;\n obj1.b.c = 4;\n console.log(JSON.stringify(obj3)); // { a: 0, b: { c: 0}}\n}", "function safeDeepClone(circularValue, refs, obj) {\n var copy;\n\n // object is a false or empty value, or otherwise not an object\n if (!obj || 'object' !== typeof obj || obj instanceof Error || obj instanceof ArrayBuffer || obj instanceof Blob || obj instanceof File) return obj;\n\n // Handle Date\n if (obj instanceof Date) {\n copy = new Date();\n copy.setTime(obj.getTime());\n return copy;\n }\n\n // Handle Array - or array-like items\n if (obj instanceof Array || obj.length) {\n \n refs.push(obj);\n copy = [];\n for (var i = 0, len = obj.length; i < len; i++) {\n if (refs.indexOf(obj[i]) >= 0) {\n copy[i] = circularValue;\n } else {\n copy[i] = safeDeepClone(circularValue, refs, obj[i]);\n }\n }\n refs.pop();\n return copy;\n }\n\n // Handle Object\n refs.push(obj);\n\n // Bring a long prototype\n if (obj.constructor && obj.constructor !== Object) {\n copy = Object.create(obj.constructor.prototype);\n } else {\n copy = {};\n }\n\n for (var attr in obj) {\n if (obj.hasOwnProperty(attr) && attr !== '$$hashKey') {\n if (refs.indexOf(obj[attr]) >= 0) {\n copy[attr] = circularValue;\n } else {\n copy[attr] = safeDeepClone(circularValue, refs, obj[attr]);\n }\n }\n }\n refs.pop();\n return copy;\n}", "function operateOnObject(o) {\n return;\n}", "function preProcessServerUpdateObject(obj) {\n\tdebugObject(\"preProcessServerUpdateObject() obj=\", obj);\n\tif (obj.objType == QUESTIONNAIRE_OBJECT) {\n\t\t// Don't lose the factHandle.\n\t\tobj.factHandle = persistentState.questionnaire.factHandle;\n\t\tpersistentState.questionnaire = obj;\n\t\ttemporaryState.questionnaireChanged = true;\n\t\tbuildHierarchy(obj);\n\t}\n\telse if (obj.objType == GROUP_OBJECT) {\n\t\tbuildHierarchy(obj);\n\t}\n}", "function normalize(obj) {\n if(!obj) return;\n\n if(obj._id) {\n obj.id = obj._id.toString();\n delete obj._id;\n }\n\n return obj;\n}", "static _coalesceConvert_doRecurse (obj, fn) {\n\t\tif (typeof obj !== \"object\") throw new TypeError(`Non-object ${obj} passed to object handler!`);\n\n\t\tif (obj instanceof Array) {\n\t\t\tfn(obj);\n\n\t\t\tobj.forEach(it => {\n\t\t\t\tif (typeof it !== \"object\") return;\n\t\t\t\tthis._coalesceConvert_doRecurse(it, fn)\n\t\t\t});\n\t\t} else {\n\t\t\tif (obj.type) {\n\t\t\t\tconst childMeta = Renderer.ENTRIES_WITH_CHILDREN.find(it => it.type === obj.type && obj[it.key]);\n\t\t\t\tif (childMeta) {\n\t\t\t\t\tthis._coalesceConvert_doRecurse(obj[childMeta.key], fn);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function isPrimitive(v) {\n if (v === undefined) return false;\n if (v === null) return true;\n if (v.constructor == String) return true;\n if (v.constructor == Number) return true;\n if (v.constructor == Boolean) return true;\n if (v.constructor.name == 'ObjectID') return true;\n return false;\n }", "function Object(primitives) {\r\n this.primitives = primitives;\r\n}", "function canSetProperty(object, property, primitives){\n if (property === '__proto__' || primitives.isPrimitive(object)){\n return false\n } else if (object != null){\n\n if (hasOwnProperty(object, property)){\n if (propertyIsEnumerable(object, property)){\n return true\n } else {\n return false\n }\n } else {\n return canSetProperty(primitives.getPrototypeOf(object), property, primitives)\n }\n\n } else {\n return true\n }\n}", "function canSetProperty(object, property, primitives){\n if (property === '__proto__' || primitives.isPrimitive(object)){\n return false\n } else if (object != null){\n\n if (hasOwnProperty(object, property)){\n if (propertyIsEnumerable(object, property)){\n return true\n } else {\n return false\n }\n } else {\n return canSetProperty(primitives.getPrototypeOf(object), property, primitives)\n }\n\n } else {\n return true\n }\n}", "function cloneIfNode(obj, deep, withoutLoc) {\n if (obj && typeof obj.type === \"string\") {\n return cloneNode(obj, deep, withoutLoc);\n }\n\n return obj;\n}", "function clone(obj) {\n var i, p, ps;\n\n function OmegaNum(input, input2) {\n var x = this;\n if (!(x instanceof OmegaNum)) return new OmegaNum(input, input2);\n x.constructor = OmegaNum;\n var parsedObject = null;\n if (typeof input == \"string\" && (input[0] == \"[\" || input[0] == \"{\")) {\n try {\n parsedObject = JSON.parse(input);\n } catch (e) {\n //lol just keep going\n }\n }\n var temp, temp2;\n if (typeof input == \"number\" && !(input2 instanceof Array)) {\n temp = OmegaNum.fromNumber(input);\n } else if (parsedObject) {\n temp = OmegaNum.fromObject(parsedObject);\n } else if (typeof input == \"string\" && input[0] == \"E\") {\n temp = OmegaNum.fromHyperE(input);\n } else if (typeof input == \"string\") {\n temp = OmegaNum.fromString(input);\n } else if (input instanceof Array || input2 instanceof Array) {\n temp = OmegaNum.fromArray(input, input2);\n } else if (input instanceof OmegaNum) {\n temp = input.array.slice(0);\n temp2 = input.sign;\n } else if (typeof input == \"object\") {\n temp = OmegaNum.fromObject(input);\n } else {\n temp = [NaN];\n temp2 = 1;\n }\n if (typeof temp2 == \"undefined\") {\n x.array = temp.array;\n x.sign = temp.sign;\n } else {\n x.array = temp;\n x.sign = temp2;\n }\n return x;\n }\n OmegaNum.prototype = P;\n\n OmegaNum.JSON = 0;\n OmegaNum.STRING = 1;\n\n OmegaNum.NONE = 0;\n OmegaNum.NORMAL = 1;\n OmegaNum.ALL = 2;\n\n OmegaNum.clone = clone;\n OmegaNum.config = OmegaNum.set = config;\n\n //OmegaNum=Object.assign(OmegaNum,Q);\n for (var prop in Q) {\n if (Q.hasOwnProperty(prop)) {\n OmegaNum[prop] = Q[prop];\n }\n }\n\n if (obj === void 0) obj = {};\n if (obj) {\n ps = ['maxArrow', 'serializeMode', 'debug'];\n for (i = 0; i < ps.length;)\n if (!obj.hasOwnProperty(p = ps[i++])) obj[p] = this[p];\n }\n\n OmegaNum.config(obj);\n\n return OmegaNum;\n }", "function example6() {\n var o = { a: 1 };\n o.a = 2; //allowed: change ref object\n o.b = 1; //allowed: change ref object\n\n // o = {a: 1} //not allowed: change referece itself\n}", "set objectReferenceValue(value) {}", "function deepClone(obj) {\n switch (typeof obj) {\n case 'object':\n return JSON.parse(JSON.stringify(obj)); //Faster than ES5 clone - http://jsperf.com/deep-cloning-of-objects/5\n case 'undefined':\n return null; //this is how JSON.stringify behaves for array items\n default:\n return obj; //no need to clone primitives\n }\n }", "function set(obj) {\n registerSetChange.call(this, obj);\n if (obj) {\n if (util.isArray(obj)) {\n this._id = _.pluck(obj, '_id');\n this.related = obj;\n }\n else {\n this._id = obj._id;\n this.related = obj;\n }\n }\n else {\n this._id = null;\n this.related = null;\n }\n}", "function clean( node ){\n\tvar l = node.c.length;\n\twhile( l-- ){\n\t\tif( typeof node.c[l] == 'object' )\n\t\t\tclean( node.c[l] );\n\t}\n\tnode.n = node.a = node.c = null;\n}", "static fork(obj) {\n var ret, key, value;\n\n if (obj && obj.constructor === Object) {\n ret = Object.setPrototypeOf({}, obj);\n\n for (key in obj) {\n value = obj[key];\n\n if (value) {\n if (value.constructor === Object) {\n ret[key] = this.fork(value);\n } else if (value instanceof Array) {\n ret[key] = value.slice();\n }\n }\n }\n } else {\n ret = obj;\n }\n\n return ret;\n }", "static fork(obj) {\n var ret, key, value;\n\n if (obj && obj.constructor === Object) {\n ret = Object.setPrototypeOf({}, obj);\n\n for (key in obj) {\n value = obj[key];\n\n if (value) {\n if (value.constructor === Object) {\n ret[key] = OH.fork(value);\n } else if (value instanceof Array) {\n ret[key] = value.slice();\n }\n }\n }\n } else {\n ret = obj;\n }\n\n return ret;\n }", "function deepFreezeAndThrowOnMutation(object) {\n // Some objects in IE11 don't have a hasOwnProperty method so don't even bother trying to freeze them\n if (typeof object !== 'object' || object === null || Object.isFrozen(object) || Object.isSealed(object)) {\n return object;\n }\n for (var key in object) {\n if (object.hasOwnProperty(key)) {\n object.__defineGetter__(key, identity.bind(null, object[key])); // eslint-disable-line no-underscore-dangle\n object.__defineSetter__(key, throwOnImmutableMutation.bind(null, key)); // eslint-disable-line no-underscore-dangle\n }\n }\n Object.freeze(object);\n Object.seal(object);\n for (var key in object) {\n if (object.hasOwnProperty(key)) {\n deepFreezeAndThrowOnMutation(object[key]);\n }\n }\n return object;\n}", "function PrimitiveType(noFreeze) {\n Type.call(this);\n this._branchConstructor = this._createBranchConstructor();\n if (!noFreeze) {\n // Abstract long types can't be frozen at this stage.\n Object.freeze(this);\n }\n}", "function TestObjectReset(obj, index) {\n obj.x = undefined;\n obj.y = undefined;\n\n // We store object index in pool on the object itself,\n // so we can use this index to free object from the pool.\n // However, doing this adds an extra reference on the object\n // which you might want to eliminate when dealing with very large pools of small objects\n obj.poolIndex = index;\n }", "function doop(o, seen) {\n let clone;\n let descriptor;\n let props;\n let i;\n let l;\n\n if (!seen) {\n seen = setDefined ? new Set() : [];\n }\n\n if (o instanceof Object && o.constructor !== Function) {\n if ( hasItem(seen, o) ) {\n clone = '<CircularRef>';\n }\n else {\n addItem(seen, o);\n\n if ( Array.isArray(o) ) {\n clone = [];\n for (i = 0, l = o.length; i < l; i++) {\n clone[i] = (o[i] instanceof Object) ? doop(o[i], seen) : o[i];\n }\n }\n else {\n clone = Object.create( Object.getPrototypeOf(o) );\n props = Object.keys(o);\n for (i = 0, l = props.length; i < l; i++) {\n descriptor = Object.getOwnPropertyDescriptor(o, props[i]);\n if (descriptor.value) {\n descriptor.value = doop(descriptor.value, seen);\n }\n\n Object.defineProperty(clone, props[i], descriptor);\n }\n }\n }\n\n return clone;\n }\n\n return o;\n}", "function clone(object) { return JSON.parse(JSON.stringify(object))}", "function local_change_type(input_object, new_type)\n {\n if(input_object instanceof new_type)\n return input_object;\n\n var new_object = new new_type();\n new_object.id_block = input_object.id_block;\n new_object.len_block = input_object.len_block;\n new_object.warnings = input_object.warnings;\n new_object.value_before_decode = util_copybuf(input_object.value_before_decode);\n\n return new_object;\n }", "set normal(value) {}", "set normal(value) {}", "function _setCoerce(obj) {\n return _array.call(this, Array.from(obj));\n}", "function deepObjectAssign() {\n var merged = deepObjectAssignNonentry.apply(void 0, arguments);\n stripDelete(merged);\n return merged;\n}", "function prepare$primitive (primitive, where) {\n try {\n return { ptv: primitive }\n } catch (e) {\n let e2 = new (e.constructor)(e.message + ' for ' + where)\n throw e2\n }\n}", "function deepClone(obj) {\n switch (typeof obj) {\n case 'object':\n return JSON.parse(JSON.stringify(obj)); //Faster than ES5 clone - http://jsperf.com/deep-cloning-of-objects/5\n case 'undefined':\n return null; //this is how JSON.stringify behaves for array items\n default:\n return obj; //no need to clone primitives\n }\n }", "function initialize(object) {\n this._object = Object.isHash(object) ? object.toObject() : Object.clone(object);\n }", "function initialize(object) {\n this._object = Object.isHash(object) ? object.toObject() : Object.clone(object);\n }", "function _cloneObject(object) {\n\t if (object == null || typeof (object) != 'object' || typeof (object.nodeType) != 'undefined') {\n\t return object;\n\t }\n\t var temp = {};\n\t for (var key in object) {\n\t temp[key] = _cloneObject(object[key]);\n\t }\n\t return temp;\n\t }", "function checkObject(obj){\n obj.checked = true;\n}", "function cloneObj(objectToBeCloned, visited = new Set()) {\n if (!(objectToBeCloned instanceof Object)) {\n return objectToBeCloned;\n }\n\n let objectClone;\n\n try {\n if (objectToBeCloned && objectToBeCloned[ITERABLE_KEY]) {\n objectToBeCloned = objectToBeCloned.toJS();\n }\n\n const Constructor = objectToBeCloned.constructor;\n\n switch (Constructor) {\n case RegExp:\n objectClone = new Constructor(objectToBeCloned);\n break;\n case Date:\n objectClone = new Constructor(objectToBeCloned.getTime());\n break;\n case Function:\n objectClone = {\n __metal_devtools_read_only: true\n };\n\n if (objectToBeCloned.name) {\n objectClone.value = `${objectToBeCloned.name}()`;\n } else if (objectToBeCloned.__jsxDOMWrapper) {\n objectClone.value = '<JSXElement />';\n } else {\n objectClone.value = 'function()';\n }\n break;\n default:\n try {\n objectClone = new Constructor();\n } catch (err) {\n objectClone = Constructor.name;\n }\n }\n } catch (err) {\n console.log(\n '%c metal-devtools extension: (`clone`)\\n',\n 'background: rgb(136, 18, 128); color: #DDD',\n err\n );\n console.log(\n '%c Args:',\n 'background: rgb(136, 18, 128); color: #DDD',\n objectToBeCloned\n );\n }\n\n if (objectClone instanceof Object) {\n visited.add(objectToBeCloned);\n\n for (const key in objectToBeCloned) {\n if (Object.prototype.hasOwnProperty.call(objectToBeCloned, key)) {\n const prop = objectToBeCloned[key];\n\n if (typeof prop !== undefined) {\n objectClone[key] = visited.has(prop)\n ? '[Circular]'\n : cloneObj(prop, visited);\n }\n }\n }\n\n visited.delete(objectToBeCloned);\n }\n\n return objectClone;\n}", "_leave_kids_to_gramps(me, child) {\n if (child == null) {\n me = null;\n } else {\n child.parent = me.parent;\n Object.assign(me, child);\n }\n }", "reset(level = 1) {\n if ( level === 1 ) {\n trace(INFO_STORE, \"resetting\", this.name, \"with\", this._clones.length, \"clones\")\n }\n\n // info(INFO_STORE, \"RESET \", level, \":\", this.name, \" -> Found\", this._clones.length, \"clones\")\n this.definedProps = {}\n if ( level > 3 ) {\n warn(WARNING_RESET_MAX_DEPTH, \"RESET - Stop at recursion level 3\", this._clones)\n return\n }\n this._clones.forEach(clone => {\n clone.reset( level + 1 );\n })\n }", "crack(v) {\n\t\t\n\t\tif (v.type != 1) return false\n\t\t\n\t\tthis.retype(v, 0)\n\t\t\n\t\tfor( var i = 0; i < 8; i++ ) {\n\t\t\tv.childs[i] = this.create( this.childPos(i, v), 1, v.lvl-1, v )\n\t\t}\n\t}", "function isPrimitiveLike (o) {\n if (o === null || (typeof o === 'object' && typeof o.toJSON !== 'undefined') ||\n typeof o === 'string' || typeof o === 'boolean' || typeof o === 'number') {\n return true\n }\n\n if (!Array.isArray(o)) {\n return false\n } else {\n let keys = Object.keys(o)\n if (keys.length !== o.length) { \n return false /* sparse array or named props */\n }\n }\n\n for (let i = 0; i < o.length; i++) {\n if (!isPrimitiveLike(o[i])) {\n return false\n }\n }\n\n return true\n}", "flatClone(noodle, flatList = noodle.object.flatList(obj), newList = new Array(flatList.length)) { //Kinda stupid to check lists for each recursion?\n for (var i in flatList) {\n var obj = flatList[i];\n if (typeof obj == 'object') {\n //Go through obj to find its properties in flatList and clone them to newList\n for (var j in obj) {\n var ind = flatList.indexOf(obj[i]);//Find obj[i] in flatList\n if (ind != -1) {\n if (newList[i] == undefined) {//If this object hasn't been found before\n newList[i] = shallowClone(); //TODO\n }\n }\n }\n }\n return $.extend(null, obj);\n }\n }", "static initialize(obj) { \n obj['left'] = left;\n obj['right'] = right;\n obj['operator'] = operator;\n }", "set referenceObject(obj) {\n this._referenceObject = obj;\n }", "function convertCircRefsRecursively(oldObj, currObj, newObj, replacement = 'Circular Ref') {\n each(currObj, (val, prop) => {\n \n if (isObject(val) || isArray(val)) {\n\n // detect a circular reference\n if (val === oldObj) {\n newObj[prop] = replacement;\n } \n // otherwise initialize the current object\n else {\n if(isArray(val)) {\n newObj[prop] = [];\n } else {\n newObj[prop] = {};\n }\n convertCircRefsRecursively(oldObj, val, newObj[prop], replacement);\n }\n } else {\n newObj[prop] = val;\n }\n });\n}", "function _iSClone(input, mMap, options) {\n\n if (input === null) {\n return null;\n }\n\n if (Object(input) === input) {\n return _handleObjectClone(input, mMap, options);\n }\n\n // If the value is a primitive, simply return it.\n return input;\n }", "function fixedProp(obj, name, value) {\n\t Object.defineProperty(obj, name, {\n\t configurable: true,\n\t enumerable: false,\n\t value: value,\n\t writable: false\n\t });\n\t}", "objd(obj) {\n\n return toObject(obj);\n }", "function redacted (object, publishable) {\n const clone = JSON.parse(JSON.stringify(object))\n Object.keys(clone).forEach(key => {\n if (!publishable.includes(key)) delete clone[key]\n })\n return clone\n}", "function remove(obj, path) {\n if (obj.toJSON) {\n // We need to get the JSON form of the object before recursing.\n // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON()_behavior\n obj = obj.toJSON();\n }\n if (Array.isArray(obj)) {\n var is_cloned = false;\n for (var i = 0; i < obj.length; i++) {\n var value = obj[i];\n if (value) {\n if (value instanceof ArrayBuffer || ArrayBuffer.isView(value)) {\n if (!is_cloned) {\n obj = obj.slice();\n is_cloned = true;\n }\n buffers.push(ArrayBuffer.isView(value) ? value.buffer : value);\n buffer_paths.push(path.concat([i]));\n // easier to just keep the array, but clear the entry, otherwise we have to think\n // about array length, much easier this way\n obj[i] = null;\n }\n else {\n var new_value = remove(value, path.concat([i]));\n // only assigned when the value changes, we may serialize objects that don't support assignment\n if (new_value !== value) {\n if (!is_cloned) {\n obj = obj.slice();\n is_cloned = true;\n }\n obj[i] = new_value;\n }\n }\n }\n }\n }\n else if (isPlainObject(obj)) {\n for (var key in obj) {\n var is_cloned = false;\n if (obj.hasOwnProperty(key)) {\n var value = obj[key];\n if (value) {\n if (value instanceof ArrayBuffer || ArrayBuffer.isView(value)) {\n if (!is_cloned) {\n obj = __assign({}, obj);\n is_cloned = true;\n }\n buffers.push(ArrayBuffer.isView(value) ? value.buffer : value);\n buffer_paths.push(path.concat([key]));\n delete obj[key]; // for objects/dicts we just delete them\n }\n else {\n var new_value = remove(value, path.concat([key]));\n // only assigned when the value changes, we may serialize objects that don't support assignment\n if (new_value !== value) {\n if (!is_cloned) {\n obj = __assign({}, obj);\n is_cloned = true;\n }\n obj[key] = new_value;\n }\n }\n }\n }\n }\n }\n return obj;\n }", "_unwrap(value, asClone = true) {\n if (!this.options.useClones) {\n asClone = false;\n }\n if (value.v != null) {\n if (asClone) {\n return clone(value.v);\n } else {\n return value.v;\n }\n }\n return null;\n }", "function fastpathSet(obj, name) {\n if (name === 'toString') { fail(\"internal: Can't fastpath .toString\"); }\n if (isFrozen(obj)) {\n fail(\"Can't set .\", name, ' on frozen (', debugReference(obj), ')');\n }\n if (typeOf(obj) === 'function') {\n fail(\"Can't make .\", name, \n ' writable on a function (', debugReference(obj), ')');\n }\n fastpathEnum(obj, name);\n fastpathRead(obj, name);\n if (obj[name + '_canCall___']) {\n obj[name + '_canCall___'] = false;\n }\n if (obj[name + '_grantCall___']) {\n obj[name + '_grantCall___'] = false;\n }\n obj.SLOWFREEZE___ = obj;\n obj[name + '_canSet___'] = obj;\n }", "function _updateSelectedObject() {\n var data = $('.listTree').data('listTree');\n\n // Filter the context to the selected parents.\n var selected = _.filter($.extend(true, {}, data.context), function(parent) {\n return $('.listTree > ul > li > span > input[value=\"' + parent.key + '\"]').prop('checked')\n });\n \n // For each parent in the working context...\n _.each(selected, function(parent) {\n\n // Filter the children to the selected children.\n parent.values = _.filter(parent.values, function(child) {\n return $('.listTree > ul > li > ul > li > span > input[value=\"' + child.key + '\"]').prop('checked');\n });\n });\n\n // Update the plugin's selected object.\n $('.listTree').data('listTree', {\n \"target\": data.target,\n \"context\": data.context,\n \"options\": data.options,\n \"selected\": selected\n });\n }", "function PrimitiveType(noFreeze) {\n Type$2.call(this);\n this._branchConstructor = this._createBranchConstructor();\n if (!noFreeze) {\n // Abstract long types can't be frozen at this stage.\n Object.freeze(this);\n }\n}", "function primitiveEqualsInteger(obj, integer) {\n return obj.primitive && obj.primitive.numerator === integer && obj.primitive.denominator === 1\n}", "set serializedObject(value) {}", "function wrap (obj, onMutate, path = []) {\n function recordMutation (op, childPath, value) {\n let fullPath = path.concat(childPath)\n let oldValue\n let existed = false\n try {\n [ oldValue, existed ] = access(obj, childPath)\n } catch (err) {}\n let mutation = {\n op,\n path: fullPath,\n oldValue: baseObject(oldValue),\n newValue: value,\n existed\n }\n onMutate(mutation)\n // TODO: replace mutations for overriden paths\n }\n\n // TODO: wrap array methods to record array-specific mutations,\n // otherwise ops like splices and shifts will create N mutations\n\n function put (obj, key, value, path = []) {\n if (!isObject(value)) {\n // if we are overriding an existing object,\n // record deletion\n if (isObject(obj[key])) {\n // recursively delete object props\n del(obj, key)\n }\n\n // record parent object update\n let parent = baseObject(obj)\n parent[key] = baseObject(value)\n recordMutation('put', path, parent)\n return\n }\n\n // if we are overriding an existing non-object,\n // record update of parent base object\n if (key in obj && !isObject(obj[key])) {\n let base = baseObject(obj)\n delete base[key]\n recordMutation('put', path, base)\n }\n\n // if parent is array, ensure length gets updated\n if (Array.isArray(obj)) {\n let parent = baseObject(obj)\n recordMutation('put', path, parent)\n }\n\n let base = baseObject(value)\n recordMutation('put', path.concat(key), base)\n\n for (let childKey in value) {\n let child = value[childKey]\n\n // if any of our non-object children override an\n // existing object, then record deletion\n if (!isObject(child)) {\n if (!isObject(obj[key])) continue\n if (!isObject(obj[key][childKey])) continue\n del(obj[key], childKey, path.concat(key))\n continue\n }\n\n // recursively record puts for objects\n put(value, childKey, child, path.concat(key))\n }\n }\n\n function del (obj, key, path = []) {\n let value = obj[key]\n\n if (!isObject(obj[key])) {\n // record parent object update\n let parent = baseObject(obj)\n delete parent[key]\n recordMutation('put', path, parent)\n return\n }\n\n // recursively record deletions for objects\n for (let childKey in value) {\n let child = value[childKey]\n if (!isObject(child)) continue\n del(value, childKey, path.concat(key))\n }\n\n recordMutation('del', path.concat(key))\n }\n\n let wrapped = new Proxy(obj, {\n // recursively wrap child objects when accessed\n get (obj, key) {\n let value = obj[key]\n\n // functions should be bound to parent\n if (typeof value === 'function') {\n return value.bind(wrapped)\n }\n\n // don't recurse if not object\n if (!isObject(value)) {\n return value\n }\n\n // convert array bases to actual array\n if ('__MERK_ARRAY__' in value) {\n let base = value\n value = new Array(value.length)\n Object.assign(value, base)\n delete value.__MERK_ARRAY__\n }\n\n // if value is object, recursively wrap\n let childPath = path.concat(key)\n return wrap(value, onMutate, childPath)\n },\n\n // record mutations\n set (obj, key, value) {\n put(obj, key, value)\n obj[key] = value\n return true\n },\n\n // record deletions as mutations too\n deleteProperty (obj, key) {\n if (!(key in obj)) return true\n del(obj, key)\n delete obj[key]\n return true\n },\n\n // ovverride ownKeys to exclude symbol properties\n ownKeys () {\n return Object.getOwnPropertyNames(obj)\n }\n })\n return wrapped\n}", "function coercePrimitiveToObject(obj) {\n if (isPrimitive(obj)) {\n obj = Object(obj);\n }\n // istanbul ignore next\n if (NO_KEYS_IN_STRING_OBJECTS && isString(obj)) {\n forceStringCoercion(obj);\n }\n return obj;\n }", "function wrongDeepCopy(obj) {\n return obj\n}", "static cloneDeep(obj) {\r\n // list of fields we will skip during cloneDeep (nested objects, other internal)\r\n const skipFields = ['_isNested', 'el', 'grid', 'subGrid', 'engine'];\r\n // return JSON.parse(JSON.stringify(obj)); // doesn't work with date format ?\r\n const ret = Utils.clone(obj);\r\n for (const key in ret) {\r\n // NOTE: we don't support function/circular dependencies so skip those properties for now...\r\n if (ret.hasOwnProperty(key) && typeof (ret[key]) === 'object' && key.substring(0, 2) !== '__' && !skipFields.find(k => k === key)) {\r\n ret[key] = Utils.cloneDeep(obj[key]);\r\n }\r\n }\r\n return ret;\r\n }", "get Primitives() {\n return Primitives;\n }", "function primitiveEqualsInteger(obj, integer) {\n return obj.meta.primitive && obj.meta.primitive.numerator === integer && obj.meta.primitive.denominator === 1\n}", "AddObject(object)\n {\n if(this.root == undefined)\n {\n this.root = new Node(object);\n }\n else\n {\n this.p = root;\n while(this.p != undefined)\n {\n if(this.p.object.drawOrder <= object.drawOrder)\n {\n this.p = this.p.rigth;\n }\n else\n {\n this.p = this.p.left;\n }\n }\n this.p = new Node(object);\n }\n }" ]
[ "0.6688739", "0.6624384", "0.6611472", "0.6611472", "0.6336426", "0.5629428", "0.54229057", "0.5412837", "0.53969187", "0.5369282", "0.53480685", "0.52820265", "0.5181333", "0.5173371", "0.5149473", "0.51368874", "0.51223475", "0.51223475", "0.51169837", "0.51053363", "0.5083646", "0.508054", "0.50317687", "0.50230426", "0.5013144", "0.5009191", "0.49900103", "0.49869516", "0.49517712", "0.4938341", "0.49312976", "0.4929145", "0.4915802", "0.49003392", "0.48999527", "0.4893319", "0.4893019", "0.48889667", "0.48889667", "0.48879647", "0.48832974", "0.48777625", "0.4875806", "0.48749164", "0.4868303", "0.48658234", "0.48574504", "0.4846903", "0.48460072", "0.48422584", "0.48418665", "0.48328128", "0.4829745", "0.4829523", "0.4814704", "0.4814704", "0.4807689", "0.47845075", "0.4782279", "0.47788206", "0.47748432", "0.47748432", "0.47712246", "0.47710246", "0.476968", "0.47683322", "0.47670585", "0.47660142", "0.4763289", "0.47631192", "0.47616035", "0.47558066", "0.4747943", "0.47468653", "0.47406042", "0.47374028", "0.4737072", "0.47331697", "0.47197774", "0.47193563", "0.47172773", "0.47151023", "0.4713778", "0.47132492", "0.47129667", "0.47124717", "0.47123125", "0.47080386", "0.47053018", "0.47008634", "0.46996847" ]
0.6362994
12
Set or calculate default value about symbol, and calculate layout info.
function getSymbolMeta(data, dataIndex, itemModel, opt) { var layout = data.getItemLayout(dataIndex); var symbolRepeat = itemModel.get('symbolRepeat'); var symbolClip = itemModel.get('symbolClip'); var symbolPosition = itemModel.get('symbolPosition') || 'start'; var symbolRotate = itemModel.get('symbolRotate'); var rotation = (symbolRotate || 0) * Math.PI / 180 || 0; var symbolPatternSize = itemModel.get('symbolPatternSize') || 2; var isAnimationEnabled = itemModel.isAnimationEnabled(); var symbolMeta = { dataIndex: dataIndex, layout: layout, itemModel: itemModel, symbolType: data.getItemVisual(dataIndex, 'symbol') || 'circle', color: data.getItemVisual(dataIndex, 'color'), symbolClip: symbolClip, symbolRepeat: symbolRepeat, symbolRepeatDirection: itemModel.get('symbolRepeatDirection'), symbolPatternSize: symbolPatternSize, rotation: rotation, animationModel: isAnimationEnabled ? itemModel : null, hoverAnimation: isAnimationEnabled && itemModel.get('hoverAnimation'), z2: itemModel.getShallow('z', true) || 0 }; prepareBarLength(itemModel, symbolRepeat, layout, opt, symbolMeta); prepareSymbolSize(data, dataIndex, layout, symbolRepeat, symbolClip, symbolMeta.boundingLength, symbolMeta.pxSign, symbolPatternSize, opt, symbolMeta); prepareLineWidth(itemModel, symbolMeta.symbolScale, rotation, opt, symbolMeta); var symbolSize = symbolMeta.symbolSize; var symbolOffset = itemModel.get('symbolOffset'); if (zrUtil.isArray(symbolOffset)) { symbolOffset = [parsePercent(symbolOffset[0], symbolSize[0]), parsePercent(symbolOffset[1], symbolSize[1])]; } prepareLayoutInfo(itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset, symbolPosition, symbolMeta.valueLineWidth, symbolMeta.boundingLength, symbolMeta.repeatCutLength, opt, symbolMeta); return symbolMeta; } // bar length can be negative.
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSymbolMeta(data, dataIndex, itemModel, opt) {\n var layout = data.getItemLayout(dataIndex);\n var symbolRepeat = itemModel.get('symbolRepeat');\n var symbolClip = itemModel.get('symbolClip');\n var symbolPosition = itemModel.get('symbolPosition') || 'start';\n var symbolRotate = itemModel.get('symbolRotate');\n var rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n var symbolPatternSize = itemModel.get('symbolPatternSize') || 2;\n var isAnimationEnabled = itemModel.isAnimationEnabled();\n var symbolMeta = {\n dataIndex: dataIndex,\n layout: layout,\n itemModel: itemModel,\n symbolType: data.getItemVisual(dataIndex, 'symbol') || 'circle',\n style: data.getItemVisual(dataIndex, 'style'),\n symbolClip: symbolClip,\n symbolRepeat: symbolRepeat,\n symbolRepeatDirection: itemModel.get('symbolRepeatDirection'),\n symbolPatternSize: symbolPatternSize,\n rotation: rotation,\n animationModel: isAnimationEnabled ? itemModel : null,\n hoverScale: isAnimationEnabled && itemModel.get(['emphasis', 'scale']),\n z2: itemModel.getShallow('z', true) || 0\n };\n prepareBarLength(itemModel, symbolRepeat, layout, opt, symbolMeta);\n prepareSymbolSize(data, dataIndex, layout, symbolRepeat, symbolClip, symbolMeta.boundingLength, symbolMeta.pxSign, symbolPatternSize, opt, symbolMeta);\n prepareLineWidth(itemModel, symbolMeta.symbolScale, rotation, opt, symbolMeta);\n var symbolSize = symbolMeta.symbolSize;\n var symbolOffset = itemModel.get('symbolOffset');\n\n if (util[\"t\" /* isArray */](symbolOffset)) {\n symbolOffset = [Object(number[\"o\" /* parsePercent */])(symbolOffset[0], symbolSize[0]), Object(number[\"o\" /* parsePercent */])(symbolOffset[1], symbolSize[1])];\n }\n\n prepareLayoutInfo(itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset, symbolPosition, symbolMeta.valueLineWidth, symbolMeta.boundingLength, symbolMeta.repeatCutLength, opt, symbolMeta);\n return symbolMeta;\n} // bar length can be negative.", "function getSymbolMeta(data, dataIndex, itemModel, opt) {\n var layout = data.getItemLayout(dataIndex);\n var symbolRepeat = itemModel.get('symbolRepeat');\n var symbolClip = itemModel.get('symbolClip');\n var symbolPosition = itemModel.get('symbolPosition') || 'start';\n var symbolRotate = itemModel.get('symbolRotate');\n var rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n var symbolPatternSize = itemModel.get('symbolPatternSize') || 2;\n var isAnimationEnabled = itemModel.isAnimationEnabled();\n\n var symbolMeta = {\n dataIndex: dataIndex,\n layout: layout,\n itemModel: itemModel,\n symbolType: data.getItemVisual(dataIndex, 'symbol') || 'circle',\n color: data.getItemVisual(dataIndex, 'color'),\n symbolClip: symbolClip,\n symbolRepeat: symbolRepeat,\n symbolRepeatDirection: itemModel.get('symbolRepeatDirection'),\n symbolPatternSize: symbolPatternSize,\n rotation: rotation,\n animationModel: isAnimationEnabled ? itemModel : null,\n hoverAnimation: isAnimationEnabled && itemModel.get('hoverAnimation'),\n z2: itemModel.getShallow('z', true) || 0\n };\n\n prepareBarLength(itemModel, symbolRepeat, layout, opt, symbolMeta);\n\n prepareSymbolSize(\n data, dataIndex, layout, symbolRepeat, symbolClip, symbolMeta.boundingLength,\n symbolMeta.pxSign, symbolPatternSize, opt, symbolMeta\n );\n\n prepareLineWidth(itemModel, symbolMeta.symbolScale, rotation, opt, symbolMeta);\n\n var symbolSize = symbolMeta.symbolSize;\n var symbolOffset = itemModel.get('symbolOffset');\n if (zrUtil.isArray(symbolOffset)) {\n symbolOffset = [\n parsePercent(symbolOffset[0], symbolSize[0]),\n parsePercent(symbolOffset[1], symbolSize[1])\n ];\n }\n\n prepareLayoutInfo(\n itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset,\n symbolPosition, symbolMeta.valueLineWidth, symbolMeta.boundingLength, symbolMeta.repeatCutLength,\n opt, symbolMeta\n );\n\n return symbolMeta;\n }", "function getSymbolMeta(data, dataIndex, itemModel, opt) {\n\t var layout = data.getItemLayout(dataIndex);\n\t var symbolRepeat = itemModel.get('symbolRepeat');\n\t var symbolClip = itemModel.get('symbolClip');\n\t var symbolPosition = itemModel.get('symbolPosition') || 'start';\n\t var symbolRotate = itemModel.get('symbolRotate');\n\t var rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n\t var symbolPatternSize = itemModel.get('symbolPatternSize') || 2;\n\t var isAnimationEnabled = itemModel.isAnimationEnabled();\n\t var symbolMeta = {\n\t dataIndex: dataIndex,\n\t layout: layout,\n\t itemModel: itemModel,\n\t symbolType: data.getItemVisual(dataIndex, 'symbol') || 'circle',\n\t style: data.getItemVisual(dataIndex, 'style'),\n\t symbolClip: symbolClip,\n\t symbolRepeat: symbolRepeat,\n\t symbolRepeatDirection: itemModel.get('symbolRepeatDirection'),\n\t symbolPatternSize: symbolPatternSize,\n\t rotation: rotation,\n\t animationModel: isAnimationEnabled ? itemModel : null,\n\t hoverScale: isAnimationEnabled && itemModel.get(['emphasis', 'scale']),\n\t z2: itemModel.getShallow('z', true) || 0\n\t };\n\t prepareBarLength(itemModel, symbolRepeat, layout, opt, symbolMeta);\n\t prepareSymbolSize(data, dataIndex, layout, symbolRepeat, symbolClip, symbolMeta.boundingLength, symbolMeta.pxSign, symbolPatternSize, opt, symbolMeta);\n\t prepareLineWidth(itemModel, symbolMeta.symbolScale, rotation, opt, symbolMeta);\n\t var symbolSize = symbolMeta.symbolSize;\n\t var symbolOffset = itemModel.get('symbolOffset');\n\t\n\t if (isArray(symbolOffset)) {\n\t symbolOffset = [parsePercent$1(symbolOffset[0], symbolSize[0]), parsePercent$1(symbolOffset[1], symbolSize[1])];\n\t }\n\t\n\t prepareLayoutInfo(itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset, symbolPosition, symbolMeta.valueLineWidth, symbolMeta.boundingLength, symbolMeta.repeatCutLength, opt, symbolMeta);\n\t return symbolMeta;\n\t } // bar length can be negative.", "function getSymbolMeta(data, dataIndex, itemModel, opt) {\n\t var layout = data.getItemLayout(dataIndex);\n\t var symbolRepeat = itemModel.get('symbolRepeat');\n\t var symbolClip = itemModel.get('symbolClip');\n\t var symbolPosition = itemModel.get('symbolPosition') || 'start';\n\t var symbolRotate = itemModel.get('symbolRotate');\n\t var rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n\t var symbolPatternSize = itemModel.get('symbolPatternSize') || 2;\n\t var isAnimationEnabled = itemModel.isAnimationEnabled();\n\n\t var symbolMeta = {\n\t dataIndex: dataIndex,\n\t layout: layout,\n\t itemModel: itemModel,\n\t symbolType: data.getItemVisual(dataIndex, 'symbol') || 'circle',\n\t color: data.getItemVisual(dataIndex, 'color'),\n\t symbolClip: symbolClip,\n\t symbolRepeat: symbolRepeat,\n\t symbolRepeatDirection: itemModel.get('symbolRepeatDirection'),\n\t symbolPatternSize: symbolPatternSize,\n\t rotation: rotation,\n\t animationModel: isAnimationEnabled ? itemModel : null,\n\t hoverAnimation: isAnimationEnabled && itemModel.get('hoverAnimation'),\n\t z2: itemModel.getShallow('z', true) || 0\n\t };\n\n\t prepareBarLength(itemModel, symbolRepeat, layout, opt, symbolMeta);\n\n\t prepareSymbolSize(data, dataIndex, layout, symbolRepeat, symbolClip, symbolMeta.boundingLength, symbolMeta.pxSign, symbolPatternSize, opt, symbolMeta);\n\n\t prepareLineWidth(itemModel, symbolMeta.symbolScale, rotation, opt, symbolMeta);\n\n\t var symbolSize = symbolMeta.symbolSize;\n\t var symbolOffset = itemModel.get('symbolOffset');\n\t if (zrUtil.isArray(symbolOffset)) {\n\t symbolOffset = [parsePercent(symbolOffset[0], symbolSize[0]), parsePercent(symbolOffset[1], symbolSize[1])];\n\t }\n\n\t prepareLayoutInfo(itemModel, symbolSize, layout, symbolRepeat, symbolClip, symbolOffset, symbolPosition, symbolMeta.valueLineWidth, symbolMeta.boundingLength, symbolMeta.repeatCutLength, opt, symbolMeta);\n\n\t return symbolMeta;\n\t}", "function setSymbol( symbol ) {symbolField().value = symbol}", "function _default(seriesType, defaultSymbolType, legendSymbol) {\n // Encoding visual for all series include which is filtered for legend drawing\n return {\n seriesType: seriesType,\n // For legend.\n performRawSeries: true,\n reset: function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var symbolType = seriesModel.get('symbol') || defaultSymbolType;\n var symbolSize = seriesModel.get('symbolSize');\n var keepAspect = seriesModel.get('symbolKeepAspect');\n data.setVisual({\n legendSymbol: legendSymbol || symbolType,\n symbol: symbolType,\n symbolSize: symbolSize,\n symbolKeepAspect: keepAspect\n }); // Only visible series has each data be visual encoded\n\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n var hasCallback = typeof symbolSize === 'function';\n\n function dataEach(data, idx) {\n if (typeof symbolSize === 'function') {\n var rawValue = seriesModel.getRawValue(idx); // FIXME\n\n var params = seriesModel.getDataParams(idx);\n data.setItemVisual(idx, 'symbolSize', symbolSize(rawValue, params));\n }\n\n if (data.hasItemOption) {\n var itemModel = data.getItemModel(idx);\n var itemSymbolType = itemModel.getShallow('symbol', true);\n var itemSymbolSize = itemModel.getShallow('symbolSize', true);\n var itemSymbolKeepAspect = itemModel.getShallow('symbolKeepAspect', true); // If has item symbol\n\n if (itemSymbolType != null) {\n data.setItemVisual(idx, 'symbol', itemSymbolType);\n }\n\n if (itemSymbolSize != null) {\n // PENDING Transform symbolSize ?\n data.setItemVisual(idx, 'symbolSize', itemSymbolSize);\n }\n\n if (itemSymbolKeepAspect != null) {\n data.setItemVisual(idx, 'symbolKeepAspect', itemSymbolKeepAspect);\n }\n }\n }\n\n return {\n dataEach: data.hasItemOption || hasCallback ? dataEach : null\n };\n }\n };\n}", "function _default(seriesType, defaultSymbolType, legendSymbol) {\n // Encoding visual for all series include which is filtered for legend drawing\n return {\n seriesType: seriesType,\n // For legend.\n performRawSeries: true,\n reset: function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var symbolType = seriesModel.get('symbol') || defaultSymbolType;\n var symbolSize = seriesModel.get('symbolSize');\n var keepAspect = seriesModel.get('symbolKeepAspect');\n data.setVisual({\n legendSymbol: legendSymbol || symbolType,\n symbol: symbolType,\n symbolSize: symbolSize,\n symbolKeepAspect: keepAspect\n }); // Only visible series has each data be visual encoded\n\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n var hasCallback = typeof symbolSize === 'function';\n\n function dataEach(data, idx) {\n if (typeof symbolSize === 'function') {\n var rawValue = seriesModel.getRawValue(idx); // FIXME\n\n var params = seriesModel.getDataParams(idx);\n data.setItemVisual(idx, 'symbolSize', symbolSize(rawValue, params));\n }\n\n if (data.hasItemOption) {\n var itemModel = data.getItemModel(idx);\n var itemSymbolType = itemModel.getShallow('symbol', true);\n var itemSymbolSize = itemModel.getShallow('symbolSize', true);\n var itemSymbolKeepAspect = itemModel.getShallow('symbolKeepAspect', true); // If has item symbol\n\n if (itemSymbolType != null) {\n data.setItemVisual(idx, 'symbol', itemSymbolType);\n }\n\n if (itemSymbolSize != null) {\n // PENDING Transform symbolSize ?\n data.setItemVisual(idx, 'symbolSize', itemSymbolSize);\n }\n\n if (itemSymbolKeepAspect != null) {\n data.setItemVisual(idx, 'symbolKeepAspect', itemSymbolKeepAspect);\n }\n }\n }\n\n return {\n dataEach: data.hasItemOption || hasCallback ? dataEach : null\n };\n }\n };\n}", "function _default(seriesType, defaultSymbolType, legendSymbol) {\n // Encoding visual for all series include which is filtered for legend drawing\n return {\n seriesType: seriesType,\n // For legend.\n performRawSeries: true,\n reset: function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var symbolType = seriesModel.get('symbol') || defaultSymbolType;\n var symbolSize = seriesModel.get('symbolSize');\n var keepAspect = seriesModel.get('symbolKeepAspect');\n data.setVisual({\n legendSymbol: legendSymbol || symbolType,\n symbol: symbolType,\n symbolSize: symbolSize,\n symbolKeepAspect: keepAspect\n }); // Only visible series has each data be visual encoded\n\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n var hasCallback = typeof symbolSize === 'function';\n\n function dataEach(data, idx) {\n if (typeof symbolSize === 'function') {\n var rawValue = seriesModel.getRawValue(idx); // FIXME\n\n var params = seriesModel.getDataParams(idx);\n data.setItemVisual(idx, 'symbolSize', symbolSize(rawValue, params));\n }\n\n if (data.hasItemOption) {\n var itemModel = data.getItemModel(idx);\n var itemSymbolType = itemModel.getShallow('symbol', true);\n var itemSymbolSize = itemModel.getShallow('symbolSize', true);\n var itemSymbolKeepAspect = itemModel.getShallow('symbolKeepAspect', true); // If has item symbol\n\n if (itemSymbolType != null) {\n data.setItemVisual(idx, 'symbol', itemSymbolType);\n }\n\n if (itemSymbolSize != null) {\n // PENDING Transform symbolSize ?\n data.setItemVisual(idx, 'symbolSize', itemSymbolSize);\n }\n\n if (itemSymbolKeepAspect != null) {\n data.setItemVisual(idx, 'symbolKeepAspect', itemSymbolKeepAspect);\n }\n }\n }\n\n return {\n dataEach: data.hasItemOption || hasCallback ? dataEach : null\n };\n }\n };\n}", "function _default(seriesType, defaultSymbolType, legendSymbol) {\n // Encoding visual for all series include which is filtered for legend drawing\n return {\n seriesType: seriesType,\n // For legend.\n performRawSeries: true,\n reset: function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var symbolType = seriesModel.get('symbol') || defaultSymbolType;\n var symbolSize = seriesModel.get('symbolSize');\n var keepAspect = seriesModel.get('symbolKeepAspect');\n data.setVisual({\n legendSymbol: legendSymbol || symbolType,\n symbol: symbolType,\n symbolSize: symbolSize,\n symbolKeepAspect: keepAspect\n }); // Only visible series has each data be visual encoded\n\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n var hasCallback = typeof symbolSize === 'function';\n\n function dataEach(data, idx) {\n if (typeof symbolSize === 'function') {\n var rawValue = seriesModel.getRawValue(idx); // FIXME\n\n var params = seriesModel.getDataParams(idx);\n data.setItemVisual(idx, 'symbolSize', symbolSize(rawValue, params));\n }\n\n if (data.hasItemOption) {\n var itemModel = data.getItemModel(idx);\n var itemSymbolType = itemModel.getShallow('symbol', true);\n var itemSymbolSize = itemModel.getShallow('symbolSize', true);\n var itemSymbolKeepAspect = itemModel.getShallow('symbolKeepAspect', true); // If has item symbol\n\n if (itemSymbolType != null) {\n data.setItemVisual(idx, 'symbol', itemSymbolType);\n }\n\n if (itemSymbolSize != null) {\n // PENDING Transform symbolSize ?\n data.setItemVisual(idx, 'symbolSize', itemSymbolSize);\n }\n\n if (itemSymbolKeepAspect != null) {\n data.setItemVisual(idx, 'symbolKeepAspect', itemSymbolKeepAspect);\n }\n }\n }\n\n return {\n dataEach: data.hasItemOption || hasCallback ? dataEach : null\n };\n }\n };\n}", "function _default(seriesType, defaultSymbolType, legendSymbol) {\n // Encoding visual for all series include which is filtered for legend drawing\n return {\n seriesType: seriesType,\n // For legend.\n performRawSeries: true,\n reset: function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var symbolType = seriesModel.get('symbol') || defaultSymbolType;\n var symbolSize = seriesModel.get('symbolSize');\n var keepAspect = seriesModel.get('symbolKeepAspect');\n data.setVisual({\n legendSymbol: legendSymbol || symbolType,\n symbol: symbolType,\n symbolSize: symbolSize,\n symbolKeepAspect: keepAspect\n }); // Only visible series has each data be visual encoded\n\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n var hasCallback = typeof symbolSize === 'function';\n\n function dataEach(data, idx) {\n if (typeof symbolSize === 'function') {\n var rawValue = seriesModel.getRawValue(idx); // FIXME\n\n var params = seriesModel.getDataParams(idx);\n data.setItemVisual(idx, 'symbolSize', symbolSize(rawValue, params));\n }\n\n if (data.hasItemOption) {\n var itemModel = data.getItemModel(idx);\n var itemSymbolType = itemModel.getShallow('symbol', true);\n var itemSymbolSize = itemModel.getShallow('symbolSize', true);\n var itemSymbolKeepAspect = itemModel.getShallow('symbolKeepAspect', true); // If has item symbol\n\n if (itemSymbolType != null) {\n data.setItemVisual(idx, 'symbol', itemSymbolType);\n }\n\n if (itemSymbolSize != null) {\n // PENDING Transform symbolSize ?\n data.setItemVisual(idx, 'symbolSize', itemSymbolSize);\n }\n\n if (itemSymbolKeepAspect != null) {\n data.setItemVisual(idx, 'symbolKeepAspect', itemSymbolKeepAspect);\n }\n }\n }\n\n return {\n dataEach: data.hasItemOption || hasCallback ? dataEach : null\n };\n }\n };\n}", "function setPaletteNodeDefaults(symbol) {\n if (symbol.id === 'JoinNode') {\n symbol.width = 20; symbol.height = 50;\n } else if (symbol.id === 'ForkNode') {\n symbol.width = 50; symbol.height = 20;\n } else if (symbol.id === 'Decision' || symbol.id === 'MergeNode') {\n symbol.width = 50; symbol.height = 40;\n } else {\n symbol.width = 50; symbol.height = 50;\n }\n if (symbol.id === 'InitialNode' || symbol.id === 'FinalNode' || symbol.id === 'JoinNode' || symbol.id === 'ForkNode') {\n symbol.style.fill = '#444';\n }\n symbol.style.strokeColor = '#444';\n}", "changeCalc(symbol){\n\t\tthis.state.display.length < 9 || this.state.answer || !this.state.number?\n\t\tthis.setState((state) => ({\n\t\t\tdisplay: state.display == \"0\" || !state.number || state.answer ? symbol : state.display + symbol,\n\t\t\tmath: state.answer && state.number || state.display == \"0\" ? symbol : state.math + symbol,\n\t\t\tnumber: true,\n\t\t\tanswer: false\n\t\t})): null\n\t}", "function mapSymbolLayout(ecModel) {\n var processedMapType = {};\n ecModel.eachSeriesByType('map', function (mapSeries) {\n var mapType = mapSeries.getMapType();\n\n if (mapSeries.getHostGeoModel() || processedMapType[mapType]) {\n return;\n }\n\n var mapSymbolOffsets = {};\n util[\"k\" /* each */](mapSeries.seriesGroup, function (subMapSeries) {\n var geo = subMapSeries.coordinateSystem;\n var data = subMapSeries.originalData;\n\n if (subMapSeries.get('showLegendSymbol') && ecModel.getComponent('legend')) {\n data.each(data.mapDimension('value'), function (value, idx) {\n var name = data.getName(idx);\n var region = geo.getRegion(name); // If input series.data is [11, 22, '-'/null/undefined, 44],\n // it will be filled with NaN: [11, 22, NaN, 44] and NaN will\n // not be drawn. So here must validate if value is NaN.\n\n if (!region || isNaN(value)) {\n return;\n }\n\n var offset = mapSymbolOffsets[name] || 0;\n var point = geo.dataToPoint(region.getCenter());\n mapSymbolOffsets[name] = offset + 1;\n data.setItemLayout(idx, {\n point: point,\n offset: offset\n });\n });\n }\n }); // Show label of those region not has legendSymbol(which is offset 0)\n\n var data = mapSeries.getData();\n data.each(function (idx) {\n var name = data.getName(idx);\n var layout = data.getItemLayout(idx) || {};\n layout.showLabel = !mapSymbolOffsets[name];\n data.setItemLayout(idx, layout);\n });\n processedMapType[mapType] = true;\n });\n}", "function handleSymbol(symbol) {\n const operatorId = symbol.id;\n\n switch (operatorId) {\n case 'opClear':\n calcDisplay = '0';\n runningTotal = 0;\n break;\n case 'opEquals':\n handleEquals();\n break;\n case 'opPlus':\n case 'opMinus':\n case 'opDivide':\n case 'opMultiply':\n handleMath(operatorId);\n break;\n case 'opBack':\n handleBackBtn();\n break;\n default:\n }\n}", "function _default(seriesType, defaultSymbolType, legendSymbol) {\n // Encoding visual for all series include which is filtered for legend drawing\n return {\n seriesType: seriesType,\n // For legend.\n performRawSeries: true,\n reset: function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var symbolType = seriesModel.get('symbol');\n var symbolSize = seriesModel.get('symbolSize');\n var keepAspect = seriesModel.get('symbolKeepAspect');\n var symbolRotate = seriesModel.get('symbolRotate');\n var hasSymbolTypeCallback = isFunction(symbolType);\n var hasSymbolSizeCallback = isFunction(symbolSize);\n var hasSymbolRotateCallback = isFunction(symbolRotate);\n var hasCallback = hasSymbolTypeCallback || hasSymbolSizeCallback || hasSymbolRotateCallback;\n var seriesSymbol = !hasSymbolTypeCallback && symbolType ? symbolType : defaultSymbolType;\n var seriesSymbolSize = !hasSymbolSizeCallback ? symbolSize : null;\n var seriesSymbolRotate = !hasSymbolRotateCallback ? seriesSymbolRotate : null;\n data.setVisual({\n legendSymbol: legendSymbol || seriesSymbol,\n // If seting callback functions on `symbol` or `symbolSize`, for simplicity and avoiding\n // to bring trouble, we do not pick a reuslt from one of its calling on data item here,\n // but just use the default value. Callback on `symbol` or `symbolSize` is convenient in\n // some cases but generally it is not recommanded.\n symbol: seriesSymbol,\n symbolSize: seriesSymbolSize,\n symbolKeepAspect: keepAspect,\n symbolRotate: symbolRotate\n }); // Only visible series has each data be visual encoded\n\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n function dataEach(data, idx) {\n if (hasCallback) {\n var rawValue = seriesModel.getRawValue(idx);\n var params = seriesModel.getDataParams(idx);\n hasSymbolTypeCallback && data.setItemVisual(idx, 'symbol', symbolType(rawValue, params));\n hasSymbolSizeCallback && data.setItemVisual(idx, 'symbolSize', symbolSize(rawValue, params));\n hasSymbolRotateCallback && data.setItemVisual(idx, 'symbolRotate', symbolRotate(rawValue, params));\n }\n\n if (data.hasItemOption) {\n var itemModel = data.getItemModel(idx);\n var itemSymbolType = itemModel.getShallow('symbol', true);\n var itemSymbolSize = itemModel.getShallow('symbolSize', true);\n var itemSymbolRotate = itemModel.getShallow('symbolRotate', true);\n var itemSymbolKeepAspect = itemModel.getShallow('symbolKeepAspect', true); // If has item symbol\n\n if (itemSymbolType != null) {\n data.setItemVisual(idx, 'symbol', itemSymbolType);\n }\n\n if (itemSymbolSize != null) {\n // PENDING Transform symbolSize ?\n data.setItemVisual(idx, 'symbolSize', itemSymbolSize);\n }\n\n if (itemSymbolRotate != null) {\n data.setItemVisual(idx, 'symbolRotate', itemSymbolRotate);\n }\n\n if (itemSymbolKeepAspect != null) {\n data.setItemVisual(idx, 'symbolKeepAspect', itemSymbolKeepAspect);\n }\n }\n }\n\n return {\n dataEach: data.hasItemOption || hasCallback ? dataEach : null\n };\n }\n };\n}", "function _default(seriesType, defaultSymbolType, legendSymbol) {\n // Encoding visual for all series include which is filtered for legend drawing\n return {\n seriesType: seriesType,\n // For legend.\n performRawSeries: true,\n reset: function (seriesModel, ecModel, api) {\n var data = seriesModel.getData();\n var symbolType = seriesModel.get('symbol');\n var symbolSize = seriesModel.get('symbolSize');\n var keepAspect = seriesModel.get('symbolKeepAspect');\n var symbolRotate = seriesModel.get('symbolRotate');\n var hasSymbolTypeCallback = isFunction(symbolType);\n var hasSymbolSizeCallback = isFunction(symbolSize);\n var hasSymbolRotateCallback = isFunction(symbolRotate);\n var hasCallback = hasSymbolTypeCallback || hasSymbolSizeCallback || hasSymbolRotateCallback;\n var seriesSymbol = !hasSymbolTypeCallback && symbolType ? symbolType : defaultSymbolType;\n var seriesSymbolSize = !hasSymbolSizeCallback ? symbolSize : null;\n var seriesSymbolRotate = !hasSymbolRotateCallback ? seriesSymbolRotate : null;\n data.setVisual({\n legendSymbol: legendSymbol || seriesSymbol,\n // If seting callback functions on `symbol` or `symbolSize`, for simplicity and avoiding\n // to bring trouble, we do not pick a reuslt from one of its calling on data item here,\n // but just use the default value. Callback on `symbol` or `symbolSize` is convenient in\n // some cases but generally it is not recommanded.\n symbol: seriesSymbol,\n symbolSize: seriesSymbolSize,\n symbolKeepAspect: keepAspect,\n symbolRotate: symbolRotate\n }); // Only visible series has each data be visual encoded\n\n if (ecModel.isSeriesFiltered(seriesModel)) {\n return;\n }\n\n function dataEach(data, idx) {\n if (hasCallback) {\n var rawValue = seriesModel.getRawValue(idx);\n var params = seriesModel.getDataParams(idx);\n hasSymbolTypeCallback && data.setItemVisual(idx, 'symbol', symbolType(rawValue, params));\n hasSymbolSizeCallback && data.setItemVisual(idx, 'symbolSize', symbolSize(rawValue, params));\n hasSymbolRotateCallback && data.setItemVisual(idx, 'symbolRotate', symbolRotate(rawValue, params));\n }\n\n if (data.hasItemOption) {\n var itemModel = data.getItemModel(idx);\n var itemSymbolType = itemModel.getShallow('symbol', true);\n var itemSymbolSize = itemModel.getShallow('symbolSize', true);\n var itemSymbolRotate = itemModel.getShallow('symbolRotate', true);\n var itemSymbolKeepAspect = itemModel.getShallow('symbolKeepAspect', true); // If has item symbol\n\n if (itemSymbolType != null) {\n data.setItemVisual(idx, 'symbol', itemSymbolType);\n }\n\n if (itemSymbolSize != null) {\n // PENDING Transform symbolSize ?\n data.setItemVisual(idx, 'symbolSize', itemSymbolSize);\n }\n\n if (itemSymbolRotate != null) {\n data.setItemVisual(idx, 'symbolRotate', itemSymbolRotate);\n }\n\n if (itemSymbolKeepAspect != null) {\n data.setItemVisual(idx, 'symbolKeepAspect', itemSymbolKeepAspect);\n }\n }\n }\n\n return {\n dataEach: data.hasItemOption || hasCallback ? dataEach : null\n };\n }\n };\n}", "function giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) {\n var color = itemStyleModel.get('color');\n\n if (!symbol) {\n var symbolType = hostModel.get('symbol');\n symbol = createSymbol(symbolType, -1, -1, 2, 2, color);\n symbol.setStyle('strokeNoScale', true);\n group.add(symbol);\n callback && callback.onCreate(symbol);\n } else {\n symbol.setColor(color);\n group.add(symbol); // Group may be new, also need to add.\n\n callback && callback.onUpdate(symbol);\n } // Style\n\n\n var itemStyle = itemStyleModel.getItemStyle(['color', 'symbol', 'symbolSize']);\n symbol.setStyle(itemStyle); // Transform and events.\n\n opt = zrUtil.merge({\n rectHover: true,\n z2: 100\n }, opt, true);\n var symbolSize = hostModel.get('symbolSize');\n symbolSize = symbolSize instanceof Array ? symbolSize.slice() : [+symbolSize, +symbolSize];\n symbolSize[0] /= 2;\n symbolSize[1] /= 2;\n opt.scale = symbolSize;\n var symbolOffset = hostModel.get('symbolOffset');\n\n if (symbolOffset) {\n var pos = opt.position = opt.position || [0, 0];\n pos[0] += numberUtil.parsePercent(symbolOffset[0], symbolSize[0]);\n pos[1] += numberUtil.parsePercent(symbolOffset[1], symbolSize[1]);\n }\n\n var symbolRotate = hostModel.get('symbolRotate');\n opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n symbol.attr(opt); // FIXME\n // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed,\n // getBoundingRect will return wrong result.\n // (This is supposed to be resolved in zrender, but it is a little difficult to\n // leverage performance and auto updateTransform)\n // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol.\n\n symbol.updateTransform();\n return symbol;\n}", "function giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) {\n var color = itemStyleModel.get('color');\n\n if (!symbol) {\n var symbolType = hostModel.get('symbol');\n symbol = createSymbol(symbolType, -1, -1, 2, 2, color);\n symbol.setStyle('strokeNoScale', true);\n group.add(symbol);\n callback && callback.onCreate(symbol);\n } else {\n symbol.setColor(color);\n group.add(symbol); // Group may be new, also need to add.\n\n callback && callback.onUpdate(symbol);\n } // Style\n\n\n var itemStyle = itemStyleModel.getItemStyle(['color', 'symbol', 'symbolSize']);\n symbol.setStyle(itemStyle); // Transform and events.\n\n opt = zrUtil.merge({\n rectHover: true,\n z2: 100\n }, opt, true);\n var symbolSize = hostModel.get('symbolSize');\n symbolSize = symbolSize instanceof Array ? symbolSize.slice() : [+symbolSize, +symbolSize];\n symbolSize[0] /= 2;\n symbolSize[1] /= 2;\n opt.scale = symbolSize;\n var symbolOffset = hostModel.get('symbolOffset');\n\n if (symbolOffset) {\n var pos = opt.position = opt.position || [0, 0];\n pos[0] += numberUtil.parsePercent(symbolOffset[0], symbolSize[0]);\n pos[1] += numberUtil.parsePercent(symbolOffset[1], symbolSize[1]);\n }\n\n var symbolRotate = hostModel.get('symbolRotate');\n opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n symbol.attr(opt); // FIXME\n // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed,\n // getBoundingRect will return wrong result.\n // (This is supposed to be resolved in zrender, but it is a little difficult to\n // leverage performance and auto updateTransform)\n // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol.\n\n symbol.updateTransform();\n return symbol;\n}", "function giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) {\n var color = itemStyleModel.get('color');\n\n if (!symbol) {\n var symbolType = hostModel.get('symbol');\n symbol = createSymbol(symbolType, -1, -1, 2, 2, color);\n symbol.setStyle('strokeNoScale', true);\n group.add(symbol);\n callback && callback.onCreate(symbol);\n } else {\n symbol.setColor(color);\n group.add(symbol); // Group may be new, also need to add.\n\n callback && callback.onUpdate(symbol);\n } // Style\n\n\n var itemStyle = itemStyleModel.getItemStyle(['color', 'symbol', 'symbolSize']);\n symbol.setStyle(itemStyle); // Transform and events.\n\n opt = zrUtil.merge({\n rectHover: true,\n z2: 100\n }, opt, true);\n var symbolSize = hostModel.get('symbolSize');\n symbolSize = symbolSize instanceof Array ? symbolSize.slice() : [+symbolSize, +symbolSize];\n symbolSize[0] /= 2;\n symbolSize[1] /= 2;\n opt.scale = symbolSize;\n var symbolOffset = hostModel.get('symbolOffset');\n\n if (symbolOffset) {\n var pos = opt.position = opt.position || [0, 0];\n pos[0] += numberUtil.parsePercent(symbolOffset[0], symbolSize[0]);\n pos[1] += numberUtil.parsePercent(symbolOffset[1], symbolSize[1]);\n }\n\n var symbolRotate = hostModel.get('symbolRotate');\n opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n symbol.attr(opt); // FIXME\n // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed,\n // getBoundingRect will return wrong result.\n // (This is supposed to be resolved in zrender, but it is a little difficult to\n // leverage performance and auto updateTransform)\n // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol.\n\n symbol.updateTransform();\n return symbol;\n}", "function giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) {\n var color = itemStyleModel.get('color');\n\n if (!symbol) {\n var symbolType = hostModel.get('symbol');\n symbol = createSymbol(symbolType, -1, -1, 2, 2, color);\n symbol.setStyle('strokeNoScale', true);\n group.add(symbol);\n callback && callback.onCreate(symbol);\n } else {\n symbol.setColor(color);\n group.add(symbol); // Group may be new, also need to add.\n\n callback && callback.onUpdate(symbol);\n } // Style\n\n\n var itemStyle = itemStyleModel.getItemStyle(['color', 'symbol', 'symbolSize']);\n symbol.setStyle(itemStyle); // Transform and events.\n\n opt = zrUtil.merge({\n rectHover: true,\n z2: 100\n }, opt, true);\n var symbolSize = hostModel.get('symbolSize');\n symbolSize = symbolSize instanceof Array ? symbolSize.slice() : [+symbolSize, +symbolSize];\n symbolSize[0] /= 2;\n symbolSize[1] /= 2;\n opt.scale = symbolSize;\n var symbolOffset = hostModel.get('symbolOffset');\n\n if (symbolOffset) {\n var pos = opt.position = opt.position || [0, 0];\n pos[0] += numberUtil.parsePercent(symbolOffset[0], symbolSize[0]);\n pos[1] += numberUtil.parsePercent(symbolOffset[1], symbolSize[1]);\n }\n\n var symbolRotate = hostModel.get('symbolRotate');\n opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n symbol.attr(opt); // FIXME\n // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed,\n // getBoundingRect will return wrong result.\n // (This is supposed to be resolved in zrender, but it is a little difficult to\n // leverage performance and auto updateTransform)\n // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol.\n\n symbol.updateTransform();\n return symbol;\n}", "function giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) {\n var color = itemStyleModel.get('color');\n\n if (!symbol) {\n var symbolType = hostModel.get('symbol');\n symbol = createSymbol(symbolType, -1, -1, 2, 2, color);\n symbol.setStyle('strokeNoScale', true);\n group.add(symbol);\n callback && callback.onCreate(symbol);\n } else {\n symbol.setColor(color);\n group.add(symbol); // Group may be new, also need to add.\n\n callback && callback.onUpdate(symbol);\n } // Style\n\n\n var itemStyle = itemStyleModel.getItemStyle(['color', 'symbol', 'symbolSize']);\n symbol.setStyle(itemStyle); // Transform and events.\n\n opt = zrUtil.merge({\n rectHover: true,\n z2: 100\n }, opt, true);\n var symbolSize = hostModel.get('symbolSize');\n symbolSize = symbolSize instanceof Array ? symbolSize.slice() : [+symbolSize, +symbolSize];\n symbolSize[0] /= 2;\n symbolSize[1] /= 2;\n opt.scale = symbolSize;\n var symbolOffset = hostModel.get('symbolOffset');\n\n if (symbolOffset) {\n var pos = opt.position = opt.position || [0, 0];\n pos[0] += numberUtil.parsePercent(symbolOffset[0], symbolSize[0]);\n pos[1] += numberUtil.parsePercent(symbolOffset[1], symbolSize[1]);\n }\n\n var symbolRotate = hostModel.get('symbolRotate');\n opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n symbol.attr(opt); // FIXME\n // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed,\n // getBoundingRect will return wrong result.\n // (This is supposed to be resolved in zrender, but it is a little difficult to\n // leverage performance and auto updateTransform)\n // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol.\n\n symbol.updateTransform();\n return symbol;\n}", "function giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) {\n var color = itemStyleModel.get('color');\n\n if (!symbol) {\n var symbolType = hostModel.get('symbol');\n symbol = createSymbol(symbolType, -1, -1, 2, 2, color);\n symbol.setStyle('strokeNoScale', true);\n group.add(symbol);\n callback && callback.onCreate(symbol);\n } else {\n symbol.setColor(color);\n group.add(symbol); // Group may be new, also need to add.\n\n callback && callback.onUpdate(symbol);\n } // Style\n\n\n var itemStyle = itemStyleModel.getItemStyle(['color', 'symbol', 'symbolSize']);\n symbol.setStyle(itemStyle); // Transform and events.\n\n opt = zrUtil.merge({\n rectHover: true,\n z2: 100\n }, opt, true);\n var symbolSize = hostModel.get('symbolSize');\n symbolSize = symbolSize instanceof Array ? symbolSize.slice() : [+symbolSize, +symbolSize];\n symbolSize[0] /= 2;\n symbolSize[1] /= 2;\n opt.scale = symbolSize;\n var symbolOffset = hostModel.get('symbolOffset');\n\n if (symbolOffset) {\n var pos = opt.position = opt.position || [0, 0];\n pos[0] += numberUtil.parsePercent(symbolOffset[0], symbolSize[0]);\n pos[1] += numberUtil.parsePercent(symbolOffset[1], symbolSize[1]);\n }\n\n var symbolRotate = hostModel.get('symbolRotate');\n opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n symbol.attr(opt); // FIXME\n // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed,\n // getBoundingRect will return wrong result.\n // (This is supposed to be resolved in zrender, but it is a little difficult to\n // leverage performance and auto updateTransform)\n // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol.\n\n symbol.updateTransform();\n return symbol;\n}", "function scaleSymbol() {\n selectedSymbol.setScale = Number(document.getElementById(\"scale-symbol\").value);\n }", "function setInitialValues(w, t, f, a) {\n\n //Set the labels from the info bar\n $('#arrow').text('Arrow: ' + Boolean(a));\n $('#wumpus').text('Wumpus: ' + w);\n $('#traps').text('Traps: ' + t);\n $('#size').text('Size: ' + f);\n\n fieldSize = f;\n traps = t;\n wumpus = w;\n\n}", "function handleSymbol(symbol) {\n switch (symbol) {\n case \"C\": {\n clearScreen();\n break;\n }\n case \"←\": {\n if (buffer.length === 1) {\n buffer = \"0\";\n } else {\n buffer = buffer.slice(0, -1);\n }\n break;\n }\n case \"=\": {\n doOperation(); // Render the thing\n break;\n }\n default: {\n operator = symbol;\n total = parseInt(buffer);\n buffer = \"0\";\n }\n }\n reRender();\n}", "function _default(ecModel) {\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n if (seriesModel.get('layout') === 'circular') {\n circularLayout(seriesModel, 'symbolSize');\n }\n });\n}", "function _default(ecModel) {\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n if (seriesModel.get('layout') === 'circular') {\n circularLayout(seriesModel, 'symbolSize');\n }\n });\n}", "function giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) {\n\t var color = itemStyleModel.get('color');\n\n\t if (!symbol) {\n\t var symbolType = hostModel.get('symbol');\n\t symbol = symbolUtil.createSymbol(symbolType, -1, -1, 2, 2, color);\n\t symbol.setStyle('strokeNoScale', true);\n\t group.add(symbol);\n\t callback && callback.onCreate(symbol);\n\t } else {\n\t symbol.setColor(color);\n\t group.add(symbol); // Group may be new, also need to add.\n\t callback && callback.onUpdate(symbol);\n\t }\n\n\t // Style\n\t var itemStyle = itemStyleModel.getItemStyle(['color', 'symbol', 'symbolSize']);\n\t symbol.setStyle(itemStyle);\n\n\t // Transform and events.\n\t opt = zrUtil.merge({\n\t rectHover: true,\n\t z2: 100\n\t }, opt, true);\n\n\t var symbolSize = hostModel.get('symbolSize');\n\t symbolSize = symbolSize instanceof Array ? symbolSize.slice() : [+symbolSize, +symbolSize];\n\t symbolSize[0] /= 2;\n\t symbolSize[1] /= 2;\n\t opt.scale = symbolSize;\n\n\t var symbolOffset = hostModel.get('symbolOffset');\n\t if (symbolOffset) {\n\t var pos = opt.position = opt.position || [0, 0];\n\t pos[0] += numberUtil.parsePercent(symbolOffset[0], symbolSize[0]);\n\t pos[1] += numberUtil.parsePercent(symbolOffset[1], symbolSize[1]);\n\t }\n\n\t var symbolRotate = hostModel.get('symbolRotate');\n\t opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n\n\t symbol.attr(opt);\n\n\t // FIXME\n\t // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed,\n\t // getBoundingRect will return wrong result.\n\t // (This is supposed to be resolved in zrender, but it is a little difficult to\n\t // leverage performance and auto updateTransform)\n\t // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol.\n\t symbol.updateTransform();\n\n\t return symbol;\n\t}", "function getSymbol() {return symbolField().value}", "function giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) {\n var color = itemStyleModel.get('color');\n\n if (!symbol) {\n var symbolType = hostModel.get('symbol');\n symbol = symbolUtil.createSymbol(symbolType, -1, -1, 2, 2, color);\n symbol.setStyle('strokeNoScale', true);\n group.add(symbol);\n callback && callback.onCreate(symbol);\n }\n else {\n symbol.setColor(color);\n group.add(symbol); // Group may be new, also need to add.\n callback && callback.onUpdate(symbol);\n }\n\n // Style\n var itemStyle = itemStyleModel.getItemStyle(['color', 'symbol', 'symbolSize']);\n symbol.setStyle(itemStyle);\n\n // Transform and events.\n opt = zrUtil.merge({\n rectHover: true,\n z2: 100\n }, opt, true);\n\n var symbolSize = hostModel.get('symbolSize');\n symbolSize = symbolSize instanceof Array\n ? symbolSize.slice()\n : [+symbolSize, +symbolSize];\n symbolSize[0] /= 2;\n symbolSize[1] /= 2;\n opt.scale = symbolSize;\n\n var symbolOffset = hostModel.get('symbolOffset');\n if (symbolOffset) {\n var pos = opt.position = opt.position || [0, 0];\n pos[0] += numberUtil.parsePercent(symbolOffset[0], symbolSize[0]);\n pos[1] += numberUtil.parsePercent(symbolOffset[1], symbolSize[1]);\n }\n\n var symbolRotate = hostModel.get('symbolRotate');\n opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n\n symbol.attr(opt);\n\n // FIXME\n // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed,\n // getBoundingRect will return wrong result.\n // (This is supposed to be resolved in zrender, but it is a little difficult to\n // leverage performance and auto updateTransform)\n // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol.\n symbol.updateTransform();\n\n return symbol;\n }", "function setYourSymbol() {\n document.getElementById('yourSymbol').innerHTML = yourSymbol;\n}", "static getDefaults() {\n return {frame:'basic center-view', y:0, size:'15', path:'/nopath/', sym:'noimg'}\n }", "static getDefaults() {\n return {\n frame:'chart center-container > view', whiskerLen:.3, width:.3, notchWidth:.25,\n attr:{fill:'white', opacity:.5, stroke:'black', 'stroke-width':2}\n }\n }", "function setDefaults() {\n dimension.value = 20;\n sim.value = 0.35;\n vacant.value = 0.1;\n split.value = 0.6;\n aColor.value = \"#006EFF\";\n bColor.value = \"#FF7B00\";\n}", "function handleSymbol(value) {\n switch(value) {\n case 'C':\n buffer = \"0\";\n runningTotal = 0;\n previousOperator = null;\n break;\n case \"=\":\n if(previousOperator === null) {\n return;\n }\n flushOperation(parseInt(buffer));\n previousOperator = null;\n buffer = \"\" + runningTotal;\n runningTotal = 0;\n break; \n case \"←\":\n if (buffer.length === 1) {\n buffer = \"0\";\n } else {\n buffer = buffer.substring(0, buffer.length - 1)\n }\n break;\n default:\n handleMath(value);\n break;\n }\n}", "function giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) {\n\t var color = itemStyleModel.get('color');\n\t\n\t if (!symbol) {\n\t var symbolType = hostModel.get('symbol');\n\t symbol = createSymbol(symbolType, -1, -1, 2, 2, color);\n\t symbol.setStyle('strokeNoScale', true);\n\t group.add(symbol);\n\t callback && callback.onCreate(symbol);\n\t } else {\n\t symbol.setColor(color);\n\t group.add(symbol); // Group may be new, also need to add.\n\t\n\t callback && callback.onUpdate(symbol);\n\t } // Style\n\t\n\t\n\t var itemStyle = itemStyleModel.getItemStyle(['color']);\n\t symbol.setStyle(itemStyle); // Transform and events.\n\t\n\t opt = merge({\n\t rectHover: true,\n\t z2: 100\n\t }, opt, true);\n\t var symbolSize = hostModel.get('symbolSize');\n\t symbolSize = symbolSize instanceof Array ? symbolSize.slice() : [+symbolSize, +symbolSize];\n\t opt.scaleX = symbolSize[0] / 2;\n\t opt.scaleY = symbolSize[1] / 2;\n\t var symbolOffset = hostModel.get('symbolOffset');\n\t\n\t if (symbolOffset) {\n\t opt.x = opt.x || 0;\n\t opt.y = opt.y || 0;\n\t opt.x += parsePercent$1(symbolOffset[0], symbolSize[0]);\n\t opt.y += parsePercent$1(symbolOffset[1], symbolSize[1]);\n\t }\n\t\n\t var symbolRotate = hostModel.get('symbolRotate');\n\t opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n\t symbol.attr(opt); // FIXME\n\t // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed,\n\t // getBoundingRect will return wrong result.\n\t // (This is supposed to be resolved in zrender, but it is a little difficult to\n\t // leverage performance and auto updateTransform)\n\t // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol.\n\t\n\t symbol.updateTransform();\n\t return symbol;\n\t }", "function giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) {\n var color = itemStyleModel.get('color');\n\n if (!symbol) {\n var symbolType = hostModel.get('symbol');\n symbol = Object(util_symbol[\"a\" /* createSymbol */])(symbolType, -1, -1, 2, 2, color);\n symbol.setStyle('strokeNoScale', true);\n group.add(symbol);\n callback && callback.onCreate(symbol);\n } else {\n symbol.setColor(color);\n group.add(symbol); // Group may be new, also need to add.\n\n callback && callback.onUpdate(symbol);\n } // Style\n\n\n var itemStyle = itemStyleModel.getItemStyle(['color']);\n symbol.setStyle(itemStyle); // Transform and events.\n\n opt = Object(util[\"I\" /* merge */])({\n rectHover: true,\n z2: 100\n }, opt, true);\n var symbolSize = hostModel.get('symbolSize');\n symbolSize = symbolSize instanceof Array ? symbolSize.slice() : [+symbolSize, +symbolSize];\n opt.scaleX = symbolSize[0] / 2;\n opt.scaleY = symbolSize[1] / 2;\n var symbolOffset = hostModel.get('symbolOffset');\n\n if (symbolOffset) {\n opt.x = opt.x || 0;\n opt.y = opt.y || 0;\n opt.x += number[\"o\" /* parsePercent */](symbolOffset[0], symbolSize[0]);\n opt.y += number[\"o\" /* parsePercent */](symbolOffset[1], symbolSize[1]);\n }\n\n var symbolRotate = hostModel.get('symbolRotate');\n opt.rotation = (symbolRotate || 0) * Math.PI / 180 || 0;\n symbol.attr(opt); // FIXME\n // (1) When symbol.style.strokeNoScale is true and updateTransform is not performed,\n // getBoundingRect will return wrong result.\n // (This is supposed to be resolved in zrender, but it is a little difficult to\n // leverage performance and auto updateTransform)\n // (2) All of ancesters of symbol do not scale, so we can just updateTransform symbol.\n\n symbol.updateTransform();\n return symbol;\n}", "async init(symbol) {\n // start the api\n const symbolDetails = await this.api.init(symbol);\n\n if (symbolDetails) {\n logger.dim(symbolDetails);\n this.minOrderSize = parseFloat(symbolDetails.minimum_order_size);\n this.assetPrecision = symbolDetails.price_precision;\n this.pricePrecision = symbolDetails.price_precision;\n }\n }", "function fill(box,sym){\r\n\tbox.textContent=sym;\r\n}", "_onCenterDotClick () {\n this.setValue(this._options.defaultValue);\n this.emit(\"update\", this._value);\n }", "function updateSymbol() {\n // get value from input field\n let symbolValue = symbolInput.value;\n // test input value - log to console\n console.log(`input field = ${symbolValue}`);\n // update symbol value in sampleTrading object\n sampleTrading.symbol = symbolValue;\n // call symbolLoader for updated symbol property value from sampleTrading object\n symbolLoader();\n}", "function symbolNode(value, height, depth, italic, skew, classes, style) {\n this.value = value || \"\";\n this.height = height || 0;\n this.depth = depth || 0;\n this.italic = italic || 0;\n this.skew = skew || 0;\n this.classes = classes || [];\n this.style = style || {};\n this.maxFontSize = 0;\n}", "function symbolNode(value, height, depth, italic, skew, classes, style) {\n this.value = value || \"\";\n this.height = height || 0;\n this.depth = depth || 0;\n this.italic = italic || 0;\n this.skew = skew || 0;\n this.classes = classes || [];\n this.style = style || {};\n this.maxFontSize = 0;\n}", "function checkSign(symbol) {\n if(symbol == '+') {\n calcDisplayTop.innerHTML += calcDisplayBottom.innerHTML + '=';\n calcDisplayBottom.innerHTML = parseInt(calcDisplayTop.innerHTML) + parseInt(calcDisplayBottom.innerHTML);\n} else if(symbol == '-') {\n calcDisplayTop.innerHTML += calcDisplayBottom.innerHTML + '=';\n calcDisplayBottom.innerHTML = parseInt(calcDisplayTop.innerHTML) - parseInt(calcDisplayBottom.innerHTML);\n} else if(symbol == '*') {\n calcDisplayTop.innerHTML += calcDisplayBottom.innerHTML + '=';\n calcDisplayBottom.innerHTML = parseInt(calcDisplayTop.innerHTML) * parseInt(calcDisplayBottom.innerHTML);\n} else if(symbol == '÷') {\n calcDisplayTop.innerHTML += calcDisplayBottom.innerHTML + '=';\n calcDisplayBottom.innerHTML = parseInt(calcDisplayTop.innerHTML) / parseInt(calcDisplayBottom.innerHTML);\n }\n}", "numericalMapping(axis) {\n const solver = this.solver;\n const state = this.plotSegment.state;\n const props = this.plotSegment.object.properties;\n const attrs = state.attributes;\n const dataIndices = state.dataRowIndices;\n const table = this.getTableContext();\n switch (axis) {\n case \"x\":\n {\n const data = props.xData;\n if (data.type == \"numerical\") {\n const [x1, x2] = solver.attrs(attrs, [this.x1Name, this.x2Name]);\n const expr = this.getExpression(data.expression);\n const interp = axis_1.getNumericalInterpolate(data);\n for (const [index, markState] of state.glyphs.entries()) {\n const rowContext = table.getGroupedContext(dataIndices[index]);\n const value = expr.getNumberValue(rowContext);\n const t = interp(value);\n solver.addLinear(solver_1.ConstraintStrength.HARD, (1 - t) * props.marginX1 - t * props.marginX2, [[1 - t, x1], [t, x2]], [[1, solver.attr(markState.attributes, \"x\")]]);\n }\n }\n if (data.type == \"categorical\") {\n const [x1, x2, gapX] = solver.attrs(attrs, [\n this.x1Name,\n this.x2Name,\n \"gapX\"\n ]);\n const expr = this.getExpression(data.expression);\n for (const [index, markState] of state.glyphs.entries()) {\n const rowContext = table.getGroupedContext(dataIndices[index]);\n const value = expr.getStringValue(rowContext);\n this.gapX(data.categories.length, data.gapRatio);\n const i = data.categories.indexOf(value);\n solver.addLinear(solver_1.ConstraintStrength.HARD, (data.categories.length - i - 0.5) * props.marginX1 -\n (i + 0.5) * props.marginX2, [\n [i + 0.5, x2],\n [data.categories.length - i - 0.5, x1],\n [-data.categories.length / 2 + i + 0.5, gapX]\n ], [\n [\n data.categories.length,\n solver.attr(markState.attributes, \"x\")\n ]\n ]);\n }\n }\n // solver.addEquals(ConstraintWeight.HARD, x, x1);\n }\n break;\n case \"y\": {\n const data = props.yData;\n if (data.type == \"numerical\") {\n const [y1, y2] = solver.attrs(attrs, [this.y1Name, this.y2Name]);\n const expr = this.getExpression(data.expression);\n const interp = axis_1.getNumericalInterpolate(data);\n for (const [index, markState] of state.glyphs.entries()) {\n const rowContext = table.getGroupedContext(dataIndices[index]);\n const value = expr.getNumberValue(rowContext);\n const t = interp(value);\n solver.addLinear(solver_1.ConstraintStrength.HARD, (t - 1) * props.marginY2 + t * props.marginY1, [[1 - t, y1], [t, y2]], [[1, solver.attr(markState.attributes, \"y\")]]);\n }\n }\n if (data.type == \"categorical\") {\n const [y1, y2, gapY] = solver.attrs(attrs, [\n this.y1Name,\n this.y2Name,\n \"gapY\"\n ]);\n const expr = this.getExpression(data.expression);\n for (const [index, markState] of state.glyphs.entries()) {\n const rowContext = table.getGroupedContext(dataIndices[index]);\n const value = expr.getStringValue(rowContext);\n this.gapY(data.categories.length, data.gapRatio);\n const i = data.categories.indexOf(value);\n solver.addLinear(solver_1.ConstraintStrength.HARD, (data.categories.length - i - 0.5) * props.marginY1 -\n (i + 0.5) * props.marginY2, [\n [i + 0.5, y2],\n [data.categories.length - i - 0.5, y1],\n [-data.categories.length / 2 + i + 0.5, gapY]\n ], [[data.categories.length, solver.attr(markState.attributes, \"y\")]]);\n }\n }\n // solver.addEquals(ConstraintWeight.HARD, y, y2);\n }\n }\n }", "_storeDefaultValues() {\n\t\tsuper._storeDefaultValues();\n\t\tthis.defaultValues.type = this._getDefaultBorderStyle();\n\t}", "setupInitialValues() {\n this.__xSpacingInput.value = \"1.0\";\n this.__ySpacingInput.value = \"1.0\";\n\n this.__xDimInput.value = 5;\n this.__yDimInput.value = 1;\n }", "setZeroDisplay(){\n this.displayCalc = \"0\";\n }", "function setDefaultSymbology(graphic) {\n map.graphics.remove(graphic);\n polygonGraphic.symbol = simpleFillSymbol;\n map.graphics.add(graphic);\n\n map.graphics.remove(graphic.geometry.textGraphic);\n graphic.geometry.textGraphic.symbol.setColor(new dojo.Color([255, 0, 0]));\n map.graphics.add(graphic.geometry.textGraphic);\n}", "function giveSymbol(hostModel,itemStyleModel,group,opt,symbol,callback){var symbolType=hostModel.get('symbol');var color=itemStyleModel.get('color');var symbolSize=hostModel.get('symbolSize');var halfSymbolSize=symbolSize / 2;var itemStyle=itemStyleModel.getItemStyle(['color','symbol','symbolSize']);if(!symbol){symbol = symbolUtil.createSymbol(symbolType,-halfSymbolSize,-halfSymbolSize,symbolSize,symbolSize,color);group.add(symbol);callback && callback.onCreate(symbol);}else {symbol.setStyle(itemStyle);symbol.setColor(color);group.add(symbol); // Group may be new, also need to add.\n callback && callback.onUpdate(symbol);}opt = zrUtil.merge({rectHover:true,style:itemStyle,z2:100},opt,true);symbol.attr(opt);return symbol;}", "defaultRenderer({ value = 0 }) {\n if (this.unit) {\n return `${value}${this.unit}`;\n }\n\n return value;\n }", "function symbolLoader() {\n // get property value from object\n let symbol = sampleTrading.symbol;\n // update DOM - add symbol value...\n symbolOutput.innerHTML = `Latest Symbol = ${symbol}`;\n}", "function sVal(symbol){\n if(symbol == '+' || symbol == '-'){\n return 0;\n }else if (symbol == '*' || symbol == '/'){\n return 1;\n }\n}", "function placeMarker(cell, currentSymbol) {\n if (!isfinishround) {\n let firstChild = cell.firstChild;\n\n if (firstChild.getAttribute(\"type\") === 'placeholder') {\n let marker = new Marker(currentSymbol, false);\n cell.removeChild(firstChild);\n cell.appendChild(marker.getNode())\n }\n\n freespacescounter = freespacescounter - 1;\n symbol = !symbol;\n\n checkStatus(currentSymbol);\n }\n\n }", "GetSymbol (symbol) {\n if (symbol === undefined) {\n return 0;\n }\n let imgsrc = ''\n switch(symbol) {\n case 'partly-cloudy-day':\n imgsrc = partlycloudyday;\n break;\n case 'clear-day':\n imgsrc = clearday;\n break;\n case 'clear-night':\n imgsrc = clearnight;\n break;\n case 'rain':\n imgsrc = rain;\n break;\n case 'snow': \n imgsrc = snow;\n break;\n case 'mist': \n imgsrc = mist;\n break;\n case 'sleet': \n imgsrc = sleet;\n break;\n case 'wind': \n imgsrc = wind;\n break;\n case 'fog': \n imgsrc = fog;\n break;\n case 'cloudy':\n imgsrc = cloudy;\n break; \n case 'partly-cloudy-night':\n imgsrc = partlycloudynight;\n break;\n case 'tornado':\n imgsrc = tornado;\n break;\n case 'thunderstorm':\n imgsrc = thunderstorm;\n break;\n default: \n imgsrc = def;\n }\n return imgsrc;\n }", "function processNumberOnly() {\n\t\t\tvar size = parseInt(tokens[0].token);\n\t\t\ttokens.shift();\n\t\t\tif (!currentSetting) {\n\t\t\t\twarn(\"Can't set just the size of the font since there is no default value.\", str, position);\n\t\t\t\treturn { face: \"\\\"Times New Roman\\\"\", weight: \"normal\", style: \"normal\", decoration: \"none\", size: size };\n\t\t\t}\n\t\t\tif (tokens.length === 0) {\n\t\t\t\treturn { face: currentSetting.face, weight: currentSetting.weight, style: currentSetting.style, decoration: currentSetting.decoration, size: size };\n\t\t\t}\n\t\t\tif (tokens.length === 1 && tokens[0].token === \"box\" && fontTypeCanHaveBox[cmd]) return { face: currentSetting.face, weight: currentSetting.weight, style: currentSetting.style, decoration: currentSetting.decoration, size: size, box: true };\n\t\t\twarn(\"Extra parameters in font definition.\", str, position);\n\t\t\treturn { face: currentSetting.face, weight: currentSetting.weight, style: currentSetting.style, decoration: currentSetting.decoration, size: size };\n\t\t}", "function processNumberOnly() {\n var size = parseInt(tokens[0].token);\n tokens.shift();\n if (!currentSetting) {\n warn(\"Can't set just the size of the font since there is no default value.\", str, position);\n return { face: \"\\\"Times New Roman\\\"\", weight: \"normal\", style: \"normal\", decoration: \"none\", size: size};\n }\n if (tokens.length === 0) {\n return { face: currentSetting.face, weight: currentSetting.weight, style: currentSetting.style, decoration: currentSetting.decoration, size: size};\n }\n if (tokens.length === 1 && tokens[0].token === \"box\" && fontTypeCanHaveBox[cmd])\n return { face: currentSetting.face, weight: currentSetting.weight, style: currentSetting.style, decoration: currentSetting.decoration, size: size, box: true};\n warn(\"Extra parameters in font definition.\", str, position);\n return { face: currentSetting.face, weight: currentSetting.weight, style: currentSetting.style, decoration: currentSetting.decoration, size: size};\n }", "function createLayoutProperty(base, name, percentName, percentFunc, scalarName, scalarFunc, na) {\n Object.defineProperty(base, name, {\n get: function() { return this.private.user[name]; },\n set: function(value) {\n var propertyName = name;\n var p = this.private;\n var changeConstraint = null;\n\n if(na && na[0] && p.user[na[0]] !== null && na[1] && p.user[na[1]] !== null) {\n throw new Error('A '+name+' cannot be set when the '+na[0]+' and '+na[1]+' have been set already.');\n }\n\n this.private.states[propertyName] = value;\n p.user[propertyName] = value;\n\n if(p.constraints[propertyName] && value === null) {\n this.removeLayoutConstraint(p.constraints[propertyName]);\n p.constraints[propertyName] = null;\n } else if(p.constraints[propertyName] !== null && p.constraints[propertyName] && value !== null) {\n changeConstraint = p.constraints[propertyName];\n }\n if(value === null) {\n return;\n }\n this.addEventListener('parent-attached', function() {\n this[propertyName] = p.user[propertyName];\n }.bind(this));\n\n this.addEventListener('parent-dettached', function() {\n this.removeLayoutConstraint(p.constraints[propertyName]);\n }.bind(this));\n\n if(!p.parent) {\n return;\n }\n\n var layoutObject = {priority:'required', firstItem:this, firstAttribute:propertyName, relationship:'=', secondItem:p.parent};\n\n if ((typeof value === \"string\" || value instanceof String) \n && value.indexOf('%') > -1) \n {\n layoutObject.multiplier = percentFunc(parseUnits(value));\n layoutObject.constant = 0.0;\n layoutObject.secondAttribute = percentName;\n } \n else if (typeof value === \"number\" || value instanceof Number \n || typeof value === \"string\" || value instanceof String) \n {\n layoutObject.multiplier = 1.0;\n layoutObject.constant = scalarFunc(parseUnits(value));\n layoutObject.secondAttribute = scalarName;\n } else {\n layoutObject.secondItem = value;\n layoutObject.multiplier = 1.0;\n layoutObject.constant = 0.0;\n if((p.parent === value || this === value.private.parent)\n || propertyName === \"middle\" || propertyName === \"center\") \n {\n layoutObject.firstAttribute = layoutObject.secondAttribute = propertyName;\n } else if (propertyName === \"left\") {\n layoutObject.firstAttribute = \"left\";\n layoutObject.secondAttribute = \"right\";\n } else if (propertyName === \"right\") {\n layoutObject.firstAttribute = \"right\";\n layoutObject.secondAttribute = \"left\";\n } else if (propertyName === \"top\") {\n layoutObject.firstAttribute = \"top\";\n layoutObject.secondAttribute = \"bottom\";\n } else if (propertyName === \"bottom\") {\n layoutObject.firstAttribute = \"bottom\";\n layoutObject.secondAttribute = \"top\";\n } else if (propertyName === \"height\") {\n layoutObject.firstAttribute = \"height\";\n layoutObject.secondAttribute = \"height\";\n } else if (propertyName === \"width\") {\n layoutObject.firstAttribute = \"width\";\n layoutObject.secondAttribute = \"width\";\n }\n } \n if(!layoutObject.secondAttribute) {\n layoutObject.secondItem = null;\n }\n if(changeConstraint !== null) {\n p.constraints[propertyName] = this.changeLayoutConstraint(changeConstraint, layoutObject);\n } else {\n p.constraints[propertyName] = this.addLayoutConstraint(layoutObject);\n }\n }\n });\n }", "function _default(ecModel, api) {\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n var layout = seriesModel.get('layout');\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.type !== 'view') {\n var data = seriesModel.getData();\n var dimensions = [];\n each(coordSys.dimensions, function (coordDim) {\n dimensions = dimensions.concat(data.mapDimension(coordDim, true));\n });\n\n for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n var value = [];\n var hasValue = false;\n\n for (var i = 0; i < dimensions.length; i++) {\n var val = data.get(dimensions[i], dataIndex);\n\n if (!isNaN(val)) {\n hasValue = true;\n }\n\n value.push(val);\n }\n\n if (hasValue) {\n data.setItemLayout(dataIndex, coordSys.dataToPoint(value));\n } else {\n // Also {Array.<number>}, not undefined to avoid if...else... statement\n data.setItemLayout(dataIndex, [NaN, NaN]);\n }\n }\n\n simpleLayoutEdge(data.graph, seriesModel);\n } else if (!layout || layout === 'none') {\n simpleLayout(seriesModel);\n }\n });\n}", "function loadDefaultLayout(){\n\n \t\t$.ajax({\n \t\t\turl: 'load_layout/',\n \t\t\ttype: 'GET',\n \t\t\tsuccess: function(request){\n \t\t\t\toptions = jQuery.parseJSON(request);\n \t\t\t\t$.each(options, function(k, v){\n \t\t\t\t\tif(v.default == true){\n \t\t\t\t\t\tfor(var i = 0; i < v.layout.length; i++){\n \t\t\t\t\t\t\tv.layout[i] = layoutFix(v.layout[i]);\n \t\t\t\t\t\t\tif(v.layout[i].x == 1){\n \t\t\t\t\t\t\t\tneedsFixXBool = false;\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\tif(v.layout[i].x < fixValX){\n \t\t\t\t\t\t\t\t\tfixValX = v.layout[i].x;\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tif(v.layout[i].y == 1){\n \t\t\t\t\t\t\t\tneedsFixYBool = false;\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\tif(v.layout[i].y < fixValY){\n \t\t\t\t\t\t\t\t\tfixValY = v.layout[i].y;\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t\tloadLayout(v.layout, v.mode);\n \t\t\t\t\t}\n \t\t\t\t});\n \t\t\t}\n \t\t});\n \t}", "function _default(ecModel, api) {\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n var layout = seriesModel.get('layout');\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.type !== 'view') {\n var data = seriesModel.getData();\n var dimensions = [];\n each(coordSys.dimensions, function (coordDim) {\n dimensions = dimensions.concat(data.mapDimension(coordDim, true));\n });\n\n for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n var value = [];\n var hasValue = false;\n\n for (var i = 0; i < dimensions.length; i++) {\n var val = data.get(dimensions[i], dataIndex);\n\n if (!isNaN(val)) {\n hasValue = true;\n }\n\n value.push(val);\n }\n\n if (hasValue) {\n data.setItemLayout(dataIndex, coordSys.dataToPoint(value));\n } else {\n // Also {Array.<number>}, not undefined to avoid if...else... statement\n data.setItemLayout(dataIndex, [NaN, NaN]);\n }\n }\n\n simpleLayoutEdge(data.graph);\n } else if (!layout || layout === 'none') {\n simpleLayout(seriesModel);\n }\n });\n}", "function _default(ecModel, api) {\n ecModel.eachSeriesByType('graph', function (seriesModel) {\n var layout = seriesModel.get('layout');\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && coordSys.type !== 'view') {\n var data = seriesModel.getData();\n var dimensions = [];\n each(coordSys.dimensions, function (coordDim) {\n dimensions = dimensions.concat(data.mapDimension(coordDim, true));\n });\n\n for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n var value = [];\n var hasValue = false;\n\n for (var i = 0; i < dimensions.length; i++) {\n var val = data.get(dimensions[i], dataIndex);\n\n if (!isNaN(val)) {\n hasValue = true;\n }\n\n value.push(val);\n }\n\n if (hasValue) {\n data.setItemLayout(dataIndex, coordSys.dataToPoint(value));\n } else {\n // Also {Array.<number>}, not undefined to avoid if...else... statement\n data.setItemLayout(dataIndex, [NaN, NaN]);\n }\n }\n\n simpleLayoutEdge(data.graph);\n } else if (!layout || layout === 'none') {\n simpleLayout(seriesModel);\n }\n });\n}", "function getInputDefault(idx) {\r\n\tvar result = $(inputmetadata[idx]).find(\"defaults>data\");\r\n\tif (result == null|| result.text() == null) {return -100;}\r\n\telse return parseFloat(extract(result.text()));\r\n}", "function setDisplayOperator(sign){\n operatorSign = sign;\n displayOperator.textContent = operatorSign;\n}", "function getSymbol(symbol) { \n var value = symbolElem.value;\n return value;\n}", "function placeHolder(cell, currentSymbol) {\n if (!isfinishround) {\n let child = cell.firstChild;\n if (child === null) {\n let marker = new Marker(currentSymbol);\n cell.appendChild(marker.getNode());\n }\n }\n }", "function getUpdate() {\r\n // empty string refers to spmething empty like color which has no pixels\r\n const suffix = this.dataset.sizing || '';\r\n document.documentElement.style.setProperty(`--${this.name}`, this.value + suffix);\r\n\r\n}", "function fillLabel(opt) {\n Object(util_model[\"f\" /* defaultEmphasis */])(opt, 'label', ['show']);\n} // { [componentType]: MarkerModel }", "function _default(ecModel) {\n var processedMapType = {};\n ecModel.eachSeriesByType('map', function (mapSeries) {\n var mapType = mapSeries.getMapType();\n\n if (mapSeries.getHostGeoModel() || processedMapType[mapType]) {\n return;\n }\n\n var mapSymbolOffsets = {};\n zrUtil.each(mapSeries.seriesGroup, function (subMapSeries) {\n var geo = subMapSeries.coordinateSystem;\n var data = subMapSeries.originalData;\n\n if (subMapSeries.get('showLegendSymbol') && ecModel.getComponent('legend')) {\n data.each(data.mapDimension('value'), function (value, idx) {\n var name = data.getName(idx);\n var region = geo.getRegion(name); // If input series.data is [11, 22, '-'/null/undefined, 44],\n // it will be filled with NaN: [11, 22, NaN, 44] and NaN will\n // not be drawn. So here must validate if value is NaN.\n\n if (!region || isNaN(value)) {\n return;\n }\n\n var offset = mapSymbolOffsets[name] || 0;\n var point = geo.dataToPoint(region.center);\n mapSymbolOffsets[name] = offset + 1;\n data.setItemLayout(idx, {\n point: point,\n offset: offset\n });\n });\n }\n }); // Show label of those region not has legendSymbol(which is offset 0)\n\n var data = mapSeries.getData();\n data.each(function (idx) {\n var name = data.getName(idx);\n var layout = data.getItemLayout(idx) || {};\n layout.showLabel = !mapSymbolOffsets[name];\n data.setItemLayout(idx, layout);\n });\n processedMapType[mapType] = true;\n });\n}", "function _default(ecModel) {\n var processedMapType = {};\n ecModel.eachSeriesByType('map', function (mapSeries) {\n var mapType = mapSeries.getMapType();\n\n if (mapSeries.getHostGeoModel() || processedMapType[mapType]) {\n return;\n }\n\n var mapSymbolOffsets = {};\n zrUtil.each(mapSeries.seriesGroup, function (subMapSeries) {\n var geo = subMapSeries.coordinateSystem;\n var data = subMapSeries.originalData;\n\n if (subMapSeries.get('showLegendSymbol') && ecModel.getComponent('legend')) {\n data.each(data.mapDimension('value'), function (value, idx) {\n var name = data.getName(idx);\n var region = geo.getRegion(name); // If input series.data is [11, 22, '-'/null/undefined, 44],\n // it will be filled with NaN: [11, 22, NaN, 44] and NaN will\n // not be drawn. So here must validate if value is NaN.\n\n if (!region || isNaN(value)) {\n return;\n }\n\n var offset = mapSymbolOffsets[name] || 0;\n var point = geo.dataToPoint(region.center);\n mapSymbolOffsets[name] = offset + 1;\n data.setItemLayout(idx, {\n point: point,\n offset: offset\n });\n });\n }\n }); // Show label of those region not has legendSymbol(which is offset 0)\n\n var data = mapSeries.getData();\n data.each(function (idx) {\n var name = data.getName(idx);\n var layout = data.getItemLayout(idx) || {};\n layout.showLabel = !mapSymbolOffsets[name];\n data.setItemLayout(idx, layout);\n });\n processedMapType[mapType] = true;\n });\n}", "function _default(ecModel) {\n var processedMapType = {};\n ecModel.eachSeriesByType('map', function (mapSeries) {\n var mapType = mapSeries.getMapType();\n\n if (mapSeries.getHostGeoModel() || processedMapType[mapType]) {\n return;\n }\n\n var mapSymbolOffsets = {};\n zrUtil.each(mapSeries.seriesGroup, function (subMapSeries) {\n var geo = subMapSeries.coordinateSystem;\n var data = subMapSeries.originalData;\n\n if (subMapSeries.get('showLegendSymbol') && ecModel.getComponent('legend')) {\n data.each(data.mapDimension('value'), function (value, idx) {\n var name = data.getName(idx);\n var region = geo.getRegion(name); // If input series.data is [11, 22, '-'/null/undefined, 44],\n // it will be filled with NaN: [11, 22, NaN, 44] and NaN will\n // not be drawn. So here must validate if value is NaN.\n\n if (!region || isNaN(value)) {\n return;\n }\n\n var offset = mapSymbolOffsets[name] || 0;\n var point = geo.dataToPoint(region.center);\n mapSymbolOffsets[name] = offset + 1;\n data.setItemLayout(idx, {\n point: point,\n offset: offset\n });\n });\n }\n }); // Show label of those region not has legendSymbol(which is offset 0)\n\n var data = mapSeries.getData();\n data.each(function (idx) {\n var name = data.getName(idx);\n var layout = data.getItemLayout(idx) || {};\n layout.showLabel = !mapSymbolOffsets[name];\n data.setItemLayout(idx, layout);\n });\n processedMapType[mapType] = true;\n });\n}", "function appendSymbol(parent, x, y, symbol, color) {\r\n if (symbol === 'none') {\r\n return;\r\n }\r\n\r\n parent.append(\"path\")\r\n .attr(\"transform\", function (d) {\r\n return \"translate(\" + x + \", \" + y + \")\";\r\n })\r\n .attr(\"class\", \"symbol\")\r\n .attr(\"d\", d3.svg.symbol()\r\n .type(symbol)\r\n .size(50))\r\n .style(\"fill\", color)\r\n .style(\"stroke\", color);\r\n}", "function DefaultPalette()\n{\n minPalVal = initialMinPal;//reset globals back to defualt values\n maxPalVal = initialMaxPal;\n\n\tdefaultColor = layerDetails.defaultPalette\n\n // here we don't use UpdatePalette() becuase that one defualt to the max and min that is currently \n //selected by the user\n UpdatePaletteDefault(defaultColor, initialMaxPal, initialMinPal);//update to original defualt palette\n $('#maxPal').val(initialMaxPal);//change the text of the input box of the html\n $('#minPal').val(initialMinPal);\n\n}", "function getDefaultValue(style, direction) {\r\n if (style === 'width') {\r\n return direction === 'horizontal' ? DEFAULT_WIDTH : '100%';\r\n }\r\n else {\r\n return direction === 'vertical' ? DEFAULT_HEIGHT : '100%';\r\n }\r\n}", "function _initSymbolWin(){\n _aSymbolWin[0] = [0,0,90,150,200];\n _aSymbolWin[1] = [0,0,80,110,160];\n _aSymbolWin[2] = [0,0,70,100,150];\n _aSymbolWin[3] = [0,0,50,80,110];\n _aSymbolWin[4] = [0,0,40,60,80];\n _aSymbolWin[5] = [0,0,30,50,70];\n _aSymbolWin[6] = [0,0,20,30,50];\n _aSymbolWin[7] = [0,0,0,0,0,50];\n _aSymbolWin[8] = [0,0,0,0,0,50];\n _aSymbolWin[9] = [0,0,0,0,0,50];\n\n return _aSymbolWin;\n}", "function createDefaultSymbol(color, outline) {\n return new symbols_1.SimpleMarkerSymbol({\n color: color || null,\n size: 4,\n outline: outline || {\n color: \"rgba(200,200,200,0.4)\",\n width: 0.5\n }\n });\n }", "function getDefaultValue(style, direction) {\n if (style === 'width') {\n return direction === 'horizontal' ? DEFAULT_WIDTH : '100%';\n }\n else {\n return direction === 'vertical' ? DEFAULT_HEIGHT : '100%';\n }\n}", "function getDefaultValue(style, direction) {\n if (style === 'width') {\n return direction === 'horizontal' ? DEFAULT_WIDTH : '100%';\n }\n else {\n return direction === 'vertical' ? DEFAULT_HEIGHT : '100%';\n }\n}", "function getDefaultValue(style, direction) {\n if (style === 'width') {\n return direction === 'horizontal' ? DEFAULT_WIDTH : '100%';\n }\n else {\n return direction === 'vertical' ? DEFAULT_HEIGHT : '100%';\n }\n}", "function Conversions_getSymbolPriority(symbol){\r\n switch(symbol){\r\n case \"(\":return 5;\r\n case \"|\":return 4;\r\n case \"^\":return 3;\r\n case \"*\":return 2;\r\n case \"/\":return 2;\r\n case \"+\":return 1;\r\n case \"-\":return 1;\r\n }\r\n return 0;\r\n}", "function defaultValues(){\n\tbluValue=0;\n\thueRValue=0;\n\tinvtValue=0;\n\tbrightnValue=1;\n\tsepiValue=0;\n\tgraysaValue=0;\n\topaciValue=1;\n\tsatuvalue=1;\n\tcontrstValue=1;\n}", "function setDefaults() {\n //set max long label value\n maxTextLength = 0;\n dataset.forEach(function (d) {\n currentLabel = d[currentSerie.groupField];\n if (currentLabel && currentLabel.toString().length > maxTextLength) {\n maxLongText = currentLabel;\n maxTextLength = currentLabel.toString().length;\n }\n });\n\n //attach text\n tempTextSVG = diagramG.append('text')\n .style('font-size', diagram.xAxis.labelFontSize + 'px')\n .style('color', diagram.xAxis.labelFontColor)\n .style('font-family', diagram.xAxis.labelFontFamily + ', Arial, Helvetica, Ubuntu')\n .style('font-style', diagram.xAxis.labelFontStyle == 'bold' ? 'normal' : diagram.xAxis.labelFontStyle)\n .style('font-weight', diagram.xAxis.labelFontStyle == 'bold' ? 'bold' : 'normal')\n .text(maxLongText);\n\n //set max text length\n tempTextSVGOffset = tempTextSVG.node().getBoundingClientRect();\n maxTextWidth = tempTextSVGOffset.width + labelOffset;\n\n //remove temporary text\n tempTextSVG.remove();\n\n //calculate axis height\n if (diagram.xAxis.locked) {\n axisHeight = diagram.xAxis.labelFontSize + 2;\n }\n\n //set item width\n sectorWidth = width - maxTextWidth;\n sectorHeight = height / dataset.length - axisHeight;\n itemHeight = sectorHeight - barOffset;\n\n //compare it\n if (itemHeight <= 0)\n itemHeight = sectorHeight;\n\n //set automatic label size\n if (currentSerie.labelFontSize === 'auto')\n currentSerie.labelFontSize = itemHeight / 1.5;\n\n //check min font size\n if (currentSerie.labelFontSize < minFontSize)\n currentSerie.labelFontSize = minFontSize;\n\n //set automatic label size\n if (currentSerie.labelFontColor === 'auto')\n currentSerie.labelFontColor = '#333333';\n }", "function handleSymbol(symbol){\n// if(symbol === 'C') {\n// buffer = '0';\n// runningTotal = 0;\n// }instead of doing a bunch of if-else statements for buttons, do switch as below for each case-with break after each switch case\n switch (symbol) {\n case 'C':\n buffer = '0';\n runningTotal = 0;\n break; \n case '=':\n if (previousOperator === null) {\n //so above is user hasn't entered anything yet - so screen is null\n //you need two numbers to do math\n return;\n }\n flushOperation(parseInt(buffer)); //this does the math part of equal\n previousOperator = null; //clear the button out after\n buffer = runningTotal;\n runningTotal = 0; //after math is done reassign to zero\n break;\n case '←': //tip copy and paste symbols from the DOM\n if(buffer.length === 1){ //backspace 1 character\n buffer = '0';\n }else {\n buffer = buffer.substring(0, buffer.length - 1); //-1 is stop 1 short of going all the way to the end\n }\n break;\n case '+': //note these need to be the signs not the &plus that is in the html\n case '−':\n case '×':\n case '÷':\n handleMath(symbol);\n break;\n }\n}", "function changeOperator(symbol) {\n inputOperator = symbol;\n console.log('input operator is now', symbol);\n updateCalculatorDisplay();\n}", "updateFillSizeAndPosition(size, margin, newValue, updateTooltip, changeValue) {\n const that = this,\n fillStyle = that.$.fill.style;\n\n if (that._normalLayout) {\n fillStyle[that._settings.dimension] = size + 'px';\n }\n else {\n fillStyle[that._settings.dimension] = Math.min(that._measurements.trackLength, Math.max(0, (that._measurements.trackLength - size))) + 'px';\n fillStyle[margin] = size + 'px';\n }\n\n if (updateTooltip) {\n const oldValue = that.value;\n\n delete that._valueBeforeCoercion;\n that._numericProcessor.updateToolTipAndValue(newValue, oldValue, changeValue);\n }\n }", "defaultRenderer({\n value = 0\n }) {\n value = this.formatter.format(value);\n\n if (this.unit) {\n return `${value}${this.unit}`;\n }\n\n return value;\n }", "function initSymbols() {\n // special callback: this is invoked before ASCIImath symbol data is set up\n // but AFTER the ASCIImath configuration has been initialized completely.\n // This is the time where userland code gets to edit the symbol tables...\n if (typeof asciimath.config.preInitSymbols === \"function\") {\n var data = {\n AMsymbols: AMsymbols,\n asciimath: asciimath,\n };\n asciimath.config.preInitSymbols(data);\n AMsymbols = data.AMsymbols; // this table may have been patched by the preInitSymbols() callback.\n }\n\n var symlen = AMsymbols.length;\n for (var i = 0; i < symlen; i++) {\n if (AMsymbols[i].tex && !AMsymbols[i].notexcopy) {\n AMsymbols.push({\n input: AMsymbols[i].tex,\n tag: AMsymbols[i].tag,\n output: AMsymbols[i].output,\n ttype: AMsymbols[i].ttype,\n atname: AMsymbols[i].atname,\n atval: AMsymbols[i].atval,\n tex: AMsymbols[i].tex,\n rewriteleftright: AMsymbols[i].rewriteleftright,\n acc: AMsymbols[i].acc || false,\n val: AMsymbols[i].val || false,\n func: AMsymbols[i].func || false,\n tietoprev: AMsymbols[i].tietoprev || false,\n notexcopy: true,\n });\n }\n }\n refreshSymbols();\n }", "function setDefaultSettings(){\n\t//default keyboard\n\tsetDefaultKeyboard();\n\n\t//default food number\n\tdocument.getElementById(\"foodAmount\").value = 70;\n\tdocument.getElementById(\"foodValue\").innerHTML = 70;\n\n\t//default food colors\n\tdocument.getElementById(\"5\").value = \"#e66465\";\n\tdocument.getElementById(\"15\").value = \"#1c4fe9\";\n\tdocument.getElementById(\"25\").value = \"#d925fd\";\n\n\n\t//default time\n\tdocument.getElementById(\"minutes\").value = 1;\n\tdocument.getElementById(\"seconds\").value = 0;\n\n\n\t//default num of monsters\n\tdocument.getElementById(\"monstersAmount\").value = 1;\n\n\t//default sound\n\tdocument.getElementById(\"soundValue\").value = 50;\n\tdocument.getElementById(\"volumeValue\").innerHTML = 50;\n}", "function Symbol(identifier, name, step) {\n this.identifier = identifier;\n this.orientation = 0; //DEG, clockwise\n this.name = name;\n this.step = step;\n this.classes = \"\";\n \n //get a starting position\n var position = {};\n position.posX = \"0px\"; //px from left\n position.posY = \"0px\"; //px from top\n this.positions = new Array();\n this.positions[0] = position; \n}", "function symbolClick() {\n var symbol = $(this).text();\n updateFormula(function(text) {\n return text + symbol;\n });\n }", "function renderInitialStylingValues(element,renderer,initialStylingValues,isEntryClassBased){for(var i=1/* KeyValueStartPosition */;i<initialStylingValues.length;i+=2/* Size */){var value=initialStylingValues[i+1/* ValueOffset */];if(value){if(isEntryClassBased){setClass(element,initialStylingValues[i+0/* PropOffset */],true,renderer,null);}else{setStyle(element,initialStylingValues[i+0/* PropOffset */],value,renderer,null);}}}}", "function _default(ecModel) {\n ecModel.eachSeriesByType('graph', function (graphSeries) {\n var coordSys = graphSeries.coordinateSystem;\n\n if (coordSys && coordSys.type !== 'view') {\n return;\n }\n\n if (graphSeries.get('layout') === 'force') {\n var preservedPoints = graphSeries.preservedPoints || {};\n var graph = graphSeries.getGraph();\n var nodeData = graph.data;\n var edgeData = graph.edgeData;\n var forceModel = graphSeries.getModel('force');\n var initLayout = forceModel.get('initLayout');\n\n if (graphSeries.preservedPoints) {\n nodeData.each(function (idx) {\n var id = nodeData.getId(idx);\n nodeData.setItemLayout(idx, preservedPoints[id] || [NaN, NaN]);\n });\n } else if (!initLayout || initLayout === 'none') {\n simpleLayout(graphSeries);\n } else if (initLayout === 'circular') {\n circularLayout(graphSeries, 'value');\n }\n\n var nodeDataExtent = nodeData.getDataExtent('value');\n var edgeDataExtent = edgeData.getDataExtent('value'); // var edgeDataExtent = edgeData.getDataExtent('value');\n\n var repulsion = forceModel.get('repulsion');\n var edgeLength = forceModel.get('edgeLength');\n\n if (!zrUtil.isArray(repulsion)) {\n repulsion = [repulsion, repulsion];\n }\n\n if (!zrUtil.isArray(edgeLength)) {\n edgeLength = [edgeLength, edgeLength];\n } // Larger value has smaller length\n\n\n edgeLength = [edgeLength[1], edgeLength[0]];\n var nodes = nodeData.mapArray('value', function (value, idx) {\n var point = nodeData.getItemLayout(idx);\n var rep = linearMap(value, nodeDataExtent, repulsion);\n\n if (isNaN(rep)) {\n rep = (repulsion[0] + repulsion[1]) / 2;\n }\n\n return {\n w: rep,\n rep: rep,\n fixed: nodeData.getItemModel(idx).get('fixed'),\n p: !point || isNaN(point[0]) || isNaN(point[1]) ? null : point\n };\n });\n var edges = edgeData.mapArray('value', function (value, idx) {\n var edge = graph.getEdgeByIndex(idx);\n var d = linearMap(value, edgeDataExtent, edgeLength);\n\n if (isNaN(d)) {\n d = (edgeLength[0] + edgeLength[1]) / 2;\n }\n\n var edgeModel = edge.getModel();\n return {\n n1: nodes[edge.node1.dataIndex],\n n2: nodes[edge.node2.dataIndex],\n d: d,\n curveness: edgeModel.get('lineStyle.curveness') || 0,\n ignoreForceLayout: edgeModel.get('ignoreForceLayout')\n };\n });\n var coordSys = graphSeries.coordinateSystem;\n var rect = coordSys.getBoundingRect();\n var forceInstance = forceLayout(nodes, edges, {\n rect: rect,\n gravity: forceModel.get('gravity'),\n friction: forceModel.get('friction')\n });\n var oldStep = forceInstance.step;\n\n forceInstance.step = function (cb) {\n for (var i = 0, l = nodes.length; i < l; i++) {\n if (nodes[i].fixed) {\n // Write back to layout instance\n vec2.copy(nodes[i].p, graph.getNodeByIndex(i).getLayout());\n }\n }\n\n oldStep(function (nodes, edges, stopped) {\n for (var i = 0, l = nodes.length; i < l; i++) {\n if (!nodes[i].fixed) {\n graph.getNodeByIndex(i).setLayout(nodes[i].p);\n }\n\n preservedPoints[nodeData.getId(i)] = nodes[i].p;\n }\n\n for (var i = 0, l = edges.length; i < l; i++) {\n var e = edges[i];\n var edge = graph.getEdgeByIndex(i);\n var p1 = e.n1.p;\n var p2 = e.n2.p;\n var points = edge.getLayout();\n points = points ? points.slice() : [];\n points[0] = points[0] || [];\n points[1] = points[1] || [];\n vec2.copy(points[0], p1);\n vec2.copy(points[1], p2);\n\n if (+e.curveness) {\n points[2] = [(p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * e.curveness, (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * e.curveness];\n }\n\n edge.setLayout(points);\n } // Update layout\n\n\n cb && cb(stopped);\n });\n };\n\n graphSeries.forceLayout = forceInstance;\n graphSeries.preservedPoints = preservedPoints; // Step to get the layout\n\n forceInstance.step();\n } else {\n // Remove prev injected forceLayout instance\n graphSeries.forceLayout = null;\n }\n });\n}", "function _default(ecModel) {\n ecModel.eachSeriesByType('graph', function (graphSeries) {\n var coordSys = graphSeries.coordinateSystem;\n\n if (coordSys && coordSys.type !== 'view') {\n return;\n }\n\n if (graphSeries.get('layout') === 'force') {\n var preservedPoints = graphSeries.preservedPoints || {};\n var graph = graphSeries.getGraph();\n var nodeData = graph.data;\n var edgeData = graph.edgeData;\n var forceModel = graphSeries.getModel('force');\n var initLayout = forceModel.get('initLayout');\n\n if (graphSeries.preservedPoints) {\n nodeData.each(function (idx) {\n var id = nodeData.getId(idx);\n nodeData.setItemLayout(idx, preservedPoints[id] || [NaN, NaN]);\n });\n } else if (!initLayout || initLayout === 'none') {\n simpleLayout(graphSeries);\n } else if (initLayout === 'circular') {\n circularLayout(graphSeries, 'value');\n }\n\n var nodeDataExtent = nodeData.getDataExtent('value');\n var edgeDataExtent = edgeData.getDataExtent('value'); // var edgeDataExtent = edgeData.getDataExtent('value');\n\n var repulsion = forceModel.get('repulsion');\n var edgeLength = forceModel.get('edgeLength');\n\n if (!zrUtil.isArray(repulsion)) {\n repulsion = [repulsion, repulsion];\n }\n\n if (!zrUtil.isArray(edgeLength)) {\n edgeLength = [edgeLength, edgeLength];\n } // Larger value has smaller length\n\n\n edgeLength = [edgeLength[1], edgeLength[0]];\n var nodes = nodeData.mapArray('value', function (value, idx) {\n var point = nodeData.getItemLayout(idx);\n var rep = linearMap(value, nodeDataExtent, repulsion);\n\n if (isNaN(rep)) {\n rep = (repulsion[0] + repulsion[1]) / 2;\n }\n\n return {\n w: rep,\n rep: rep,\n fixed: nodeData.getItemModel(idx).get('fixed'),\n p: !point || isNaN(point[0]) || isNaN(point[1]) ? null : point\n };\n });\n var edges = edgeData.mapArray('value', function (value, idx) {\n var edge = graph.getEdgeByIndex(idx);\n var d = linearMap(value, edgeDataExtent, edgeLength);\n\n if (isNaN(d)) {\n d = (edgeLength[0] + edgeLength[1]) / 2;\n }\n\n var edgeModel = edge.getModel();\n var curveness = zrUtil.retrieve3(edgeModel.get('lineStyle.curveness'), -getCurvenessForEdge(edge, graphSeries, idx, true), 0);\n return {\n n1: nodes[edge.node1.dataIndex],\n n2: nodes[edge.node2.dataIndex],\n d: d,\n curveness: curveness,\n ignoreForceLayout: edgeModel.get('ignoreForceLayout')\n };\n });\n var coordSys = graphSeries.coordinateSystem;\n var rect = coordSys.getBoundingRect();\n var forceInstance = forceLayout(nodes, edges, {\n rect: rect,\n gravity: forceModel.get('gravity'),\n friction: forceModel.get('friction')\n });\n var oldStep = forceInstance.step;\n\n forceInstance.step = function (cb) {\n for (var i = 0, l = nodes.length; i < l; i++) {\n if (nodes[i].fixed) {\n // Write back to layout instance\n vec2.copy(nodes[i].p, graph.getNodeByIndex(i).getLayout());\n }\n }\n\n oldStep(function (nodes, edges, stopped) {\n for (var i = 0, l = nodes.length; i < l; i++) {\n if (!nodes[i].fixed) {\n graph.getNodeByIndex(i).setLayout(nodes[i].p);\n }\n\n preservedPoints[nodeData.getId(i)] = nodes[i].p;\n }\n\n for (var i = 0, l = edges.length; i < l; i++) {\n var e = edges[i];\n var edge = graph.getEdgeByIndex(i);\n var p1 = e.n1.p;\n var p2 = e.n2.p;\n var points = edge.getLayout();\n points = points ? points.slice() : [];\n points[0] = points[0] || [];\n points[1] = points[1] || [];\n vec2.copy(points[0], p1);\n vec2.copy(points[1], p2);\n\n if (+e.curveness) {\n points[2] = [(p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * e.curveness, (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * e.curveness];\n }\n\n edge.setLayout(points);\n } // Update layout\n\n\n cb && cb(stopped);\n });\n };\n\n graphSeries.forceLayout = forceInstance;\n graphSeries.preservedPoints = preservedPoints; // Step to get the layout\n\n forceInstance.step();\n } else {\n // Remove prev injected forceLayout instance\n graphSeries.forceLayout = null;\n }\n });\n}", "function placeSymbol() {\n if (type == \"moon\") {\n moon = new magicalCanvas.Moon();\n moon.name = \"moon\";\n symbols.push(moon);\n }\n if (type == \"cloud\") {\n cloud = new magicalCanvas.Cloud();\n cloud.name = \"cloud\";\n symbols.push(cloud);\n }\n if (type == \"house\") {\n house = new magicalCanvas.House();\n house.name = \"house\";\n symbols.push(house);\n }\n if (type == \"star\") {\n star = new magicalCanvas.Star();\n star.name = \"star\";\n symbols.push(star);\n }\n if (type == \"sun\") {\n sun = new magicalCanvas.Sun();\n sun.name = \"sun\";\n symbols.push(sun);\n }\n if (type == \"tree\") {\n tree = new magicalCanvas.Tree();\n tree.name = \"tree\";\n symbols.push(tree);\n }\n move = true;\n }", "function _updateDefaultFromTheme(componentContext) {\n var themeDefault = ThemeUtils.parseJSONFromFontFamily('oj-form-layout-option-defaults') || {}; // componentContext.props.labelEdge = themeDefault;\n\n if (componentContext) {\n if (!componentContext.props.labelEdge) {\n element.labelEdge = themeDefault.labelEdge;\n }\n\n if (!componentContext.props.colspanWrap) {\n element.colspanWrap = themeDefault.colspanWrap;\n }\n\n if (!componentContext.props.direction) {\n element.direction = themeDefault.direction;\n }\n } else {\n if (!element.labelEdge) {\n element.labelEdge = themeDefault.labelEdge;\n }\n\n if (!element.colspanWrap) {\n element.colspanWrap = themeDefault.colspanWrap;\n }\n\n if (!element.direction) {\n element.direction = themeDefault.direction;\n }\n }\n }" ]
[ "0.58664745", "0.5845491", "0.58197355", "0.5759925", "0.55711716", "0.5520214", "0.5520214", "0.5520214", "0.5520214", "0.5520214", "0.5516355", "0.551447", "0.5510452", "0.54998726", "0.52375317", "0.52375317", "0.5183262", "0.5183262", "0.5183262", "0.5183262", "0.5183262", "0.5183262", "0.51371473", "0.5134438", "0.51217467", "0.51030743", "0.51030743", "0.5094525", "0.50909853", "0.5089963", "0.50789297", "0.50521755", "0.5049933", "0.50481284", "0.5044425", "0.50086844", "0.4996085", "0.49689797", "0.49447715", "0.48928392", "0.48744637", "0.48674852", "0.48674852", "0.48585016", "0.48226482", "0.48137236", "0.47921383", "0.4791677", "0.4782576", "0.47333828", "0.47317818", "0.47140485", "0.4712161", "0.4698925", "0.4693131", "0.46911812", "0.4681188", "0.46763206", "0.46757686", "0.46715394", "0.46645117", "0.46645117", "0.465928", "0.46507642", "0.46429703", "0.4629028", "0.46277124", "0.4617409", "0.4610351", "0.4610351", "0.4610351", "0.46053362", "0.46035898", "0.4581547", "0.45808628", "0.45758536", "0.45726895", "0.45726895", "0.45726895", "0.45719483", "0.45536673", "0.45432293", "0.45358348", "0.45211497", "0.44958675", "0.44911423", "0.44903067", "0.447729", "0.44732726", "0.4473061", "0.44538885", "0.44484693", "0.44484693", "0.44477513", "0.44476378" ]
0.5821798
7
Displayable for incremental rendering. It will be rendered in a separate layer IncrementalDisplay have two main methods. `clearDisplayables` and `addDisplayables` addDisplayables will render the added displayables incremetally. It use a not clearFlag to tell the painter don't clear the layer if it's the first element. TODO Style override ?
function IncrementalDisplayble(opts) { Displayble.call(this, opts); this._displayables = []; this._temporaryDisplayables = []; this._cursor = 0; this.notClear = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Displayable(opts){opts = opts || {};Element.call(this,opts); // Extend properties\n for(var name in opts) {if(opts.hasOwnProperty(name) && name !== 'style'){this[name] = opts[name];}} /**\n \t * @type {module:zrender/graphic/Style}\n \t */this.style = new Style(opts.style);this._rect = null; // Shapes for cascade clipping.\n this.__clipPaths = []; // FIXME Stateful must be mixined after style is setted\n // Stateful.call(this, opts);\n }", "function Displayable(opts) {\n opts = opts || {};\n Element.call(this, opts); // Extend properties\n\n for (var name in opts) {\n if (opts.hasOwnProperty(name) && name !== 'style') {\n this[name] = opts[name];\n }\n }\n /**\n * @type {module:zrender/graphic/Style}\n */\n\n\n this.style = new Style(opts.style, this);\n this._rect = null; // Shapes for cascade clipping.\n // Can only be `null`/`undefined` or an non-empty array, MUST NOT be an empty array.\n // because it is easy to only using null to check whether clipPaths changed.\n\n this.__clipPaths = null; // FIXME Stateful must be mixined after style is setted\n // Stateful.call(this, opts);\n}", "function Displayable(opts) {\n opts = opts || {};\n Element.call(this, opts); // Extend properties\n\n for (var name in opts) {\n if (opts.hasOwnProperty(name) && name !== 'style') {\n this[name] = opts[name];\n }\n }\n /**\n * @type {module:zrender/graphic/Style}\n */\n\n\n this.style = new Style(opts.style, this);\n this._rect = null; // Shapes for cascade clipping.\n // Can only be `null`/`undefined` or an non-empty array, MUST NOT be an empty array.\n // because it is easy to only using null to check whether clipPaths changed.\n\n this.__clipPaths = null; // FIXME Stateful must be mixined after style is setted\n // Stateful.call(this, opts);\n}", "function Displayable(opts) {\n\n opts = opts || {};\n\n Element.call(this, opts);\n\n // Extend properties\n for (var name in opts) {\n if (opts.hasOwnProperty(name) && name !== 'style') {\n this[name] = opts[name];\n }\n }\n\n /**\n * @type {module:zrender/graphic/Style}\n */\n this.style = new Style(opts.style);\n\n this._rect = null;\n // Shapes for cascade clipping.\n this.__clipPaths = [];\n\n // FIXME Stateful must be mixined after style is setted\n // Stateful.call(this, opts);\n}", "function Displayable(opts) {\n\n\t opts = opts || {};\n\n\t Element.call(this, opts);\n\n\t // Extend properties\n\t for (var name in opts) {\n\t if (opts.hasOwnProperty(name) && name !== 'style') {\n\t this[name] = opts[name];\n\t }\n\t }\n\n\t /**\n\t * @type {module:zrender/graphic/Style}\n\t */\n\t this.style = new Style(opts.style);\n\n\t this._rect = null;\n\t // Shapes for cascade clipping.\n\t this.__clipPaths = [];\n\n\t // FIXME Stateful must be mixined after style is setted\n\t // Stateful.call(this, opts);\n\t}", "function Displayable(opts) {\n\n opts = opts || {};\n\n Element.call(this, opts);\n\n // Extend properties\n for (var name in opts) {\n if (\n opts.hasOwnProperty(name) &&\n name !== 'style'\n ) {\n this[name] = opts[name];\n }\n }\n\n /**\n * @type {module:zrender/graphic/Style}\n */\n this.style = new Style(opts.style, this);\n\n this._rect = null;\n // Shapes for cascade clipping.\n this.__clipPaths = [];\n\n // FIXME Stateful must be mixined after style is setted\n // Stateful.call(this, opts);\n }", "function Displayable(opts) {\n\n opts = opts || {};\n\n Element.call(this, opts);\n\n // Extend properties\n for (var name in opts) {\n if (\n opts.hasOwnProperty(name) &&\n name !== 'style'\n ) {\n this[name] = opts[name];\n }\n }\n\n /**\n * @type {module:zrender/graphic/Style}\n */\n this.style = new Style(opts.style);\n\n this._rect = null;\n // Shapes for cascade clipping.\n this.__clipPaths = [];\n\n // FIXME Stateful must be mixined after style is setted\n // Stateful.call(this, opts);\n }", "function RenderList() {\n\t\tvar renderItems = [];\n\t\tvar renderItemsIndex = 0;\n\t\t/**\n\t\t\t\t* Opaque list.\n\t\t\t\t* @memberof zen3d.RenderList#\n\t\t\t\t*/\n\n\t\tvar opaque = [];\n\t\tvar opaqueCount = 0;\n\t\t/**\n\t\t\t\t* Transparent list.\n\t\t\t\t* @memberof zen3d.RenderList#\n\t\t\t\t*/\n\n\t\tvar transparent = [];\n\t\tvar transparentCount = 0;\n\t\t/**\n\t\t\t\t* Mark count start.\n\t\t\t\t* @memberof zen3d.RenderList#\n\t\t\t\t*/\n\n\t\tfunction startCount() {\n\t\t\trenderItemsIndex = 0;\n\t\t\topaqueCount = 0;\n\t\t\ttransparentCount = 0;\n\t\t}\n\t\t/**\n\t\t\t\t* Collect render list.\n\t\t\t\t* @memberof zen3d.RenderList#\n\t\t\t\t* @param {zen3d.Object3D} object - The object to be collected.\n\t\t\t\t* @param {zen3d.Camera} camera - The main camera.\n\t\t\t\t*/\n\n\n\t\tfunction add(object, camera) {\n\t\t\t// frustum test\n\t\t\tif (object.frustumCulled && camera.frustumCulled) {\n\t\t\t\thelpSphere.copy(object.geometry.boundingSphere).applyMatrix4(object.worldMatrix);\n\t\t\t\tvar frustumTest = camera.frustum.intersectsSphere(helpSphere);\n\n\t\t\t\tif (!frustumTest) {\n\t\t\t\t\t// only test bounding sphere\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} // calculate z\n\n\n\t\t\thelpVector3.setFromMatrixPosition(object.worldMatrix);\n\t\t\thelpVector3.project(camera);\n\n\t\t\tif (Array.isArray(object.material)) {\n\t\t\t\tvar groups = object.geometry.groups;\n\n\t\t\t\tfor (var i = 0; i < groups.length; i++) {\n\t\t\t\t\tvar group = groups[i];\n\t\t\t\t\tvar groupMaterial = object.material[group.materialIndex];\n\n\t\t\t\t\tif (groupMaterial) {\n\t\t\t\t\t\t_doAdd(object, object.geometry, groupMaterial, helpVector3.z, group);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t_doAdd(object, object.geometry, object.material, helpVector3.z);\n\t\t\t}\n\t\t}\n\n\t\tfunction _doAdd(object, geometry, material, z, group) {\n\t\t\tvar renderable = renderItems[renderItemsIndex];\n\n\t\t\tif (renderable === undefined) {\n\t\t\t\trenderable = {\n\t\t\t\t\tobject: object,\n\t\t\t\t\tgeometry: geometry,\n\t\t\t\t\tmaterial: material,\n\t\t\t\t\tz: z,\n\t\t\t\t\trenderOrder: object.renderOrder,\n\t\t\t\t\tgroup: group\n\t\t\t\t};\n\t\t\t\trenderItems[renderItemsIndex] = renderable;\n\t\t\t} else {\n\t\t\t\trenderable.object = object;\n\t\t\t\trenderable.geometry = geometry;\n\t\t\t\trenderable.material = material;\n\t\t\t\trenderable.z = z;\n\t\t\t\trenderable.renderOrder = object.renderOrder;\n\t\t\t\trenderable.group = group;\n\t\t\t}\n\n\t\t\tif (material.transparent) {\n\t\t\t\ttransparent[transparentCount] = renderable;\n\t\t\t\ttransparentCount++;\n\t\t\t} else {\n\t\t\t\topaque[opaqueCount] = renderable;\n\t\t\t\topaqueCount++;\n\t\t\t}\n\n\t\t\trenderItemsIndex++;\n\t\t}\n\t\t/**\n\t\t\t\t* Mark count finished.\n\t\t\t\t* @memberof zen3d.RenderList#\n\t\t\t\t*/\n\n\n\t\tfunction endCount() {\n\t\t\topaque.length = opaqueCount;\n\t\t\ttransparent.length = transparentCount;\n\t\t}\n\t\t/**\n\t\t\t\t* Sort render list.\n\t\t\t\t* @memberof zen3d.RenderList#\n\t\t\t\t*/\n\n\n\t\tfunction sort() {\n\t\t\topaque.sort(sortFrontToBack);\n\t\t\ttransparent.sort(sortBackToFront);\n\t\t}\n\n\t\treturn {\n\t\t\topaque: opaque,\n\t\t\ttransparent: transparent,\n\t\t\tstartCount: startCount,\n\t\t\tadd: add,\n\t\t\tendCount: endCount,\n\t\t\tsort: sort\n\t\t};\n\t}", "function combDisplayList() {\n // scan all the objects in the display list\n for (var i = 0; i < scene.objects.length; ++i) {\n var sceneObject = scene.objects[i];\n\n // check the type of object. Each type has one pool. Go through each object in the\n // pool and set to visible the number of used objects in this frame, set the\n // others to hidden.\n // Only tiny exception is that the sphere has one pool for each detail level.\n var primitiveType;\n if (sceneObject.isLine) primitiveType = GEOM_TYPE_LINE;\n else if (sceneObject.isRectangle) primitiveType = GEOM_TYPE_RECT;\n else if (sceneObject.isBox) primitiveType = GEOM_TYPE_BOX;\n else if (sceneObject.isCylinder) primitiveType = GEOM_TYPE_CYLINDER;\n else if (sceneObject.isSphere !== 0) primitiveType = GEOM_TYPE_SPHERE + sceneObject.isSphere - minimumBallDetail;\n\n // set the first \"used*****\" objects to visible...\n if (objectsUsedInFrameCounts[primitiveType] > 0) {\n sceneObject.visible = true;\n objectsUsedInFrameCounts[primitiveType]--;\n } else {\n // ... and the others to invisible\n sceneObject.visible = false;\n }\n\n if (sceneObject.isAmbientLight) {\n if (usedAmbientLights > 0) {\n sceneObject.visible = true;\n usedAmbientLights--;\n } else {\n sceneObject.visible = false;\n }\n }\n }\n}", "render_display() {\n this.element.fadeIn();\n this.visible = true;\n }", "draw() {\n // if not initialized\n if (this.viewportFollow === null) return;\n\n // draw background\n this._drawEveryCellWrapper(this._drawLayer.bind(this, 'ground'));\n\n // draw foreground\n for (const [, layerName, renderFunction, renderArgs] of this.customizedLayers) {\n if (renderFunction === '_drawCharacters') {\n this._drawCharacters(renderArgs);\n } else {\n this._drawEveryCellWrapper(this._drawLayer.bind(this, layerName));\n }\n }\n }", "function clearGraphics() {\n pointLayer.removeAll();\n bufferLayer.removeAll();\n }", "componentDidUpdate() {\n this.props.layerlist.forEach(layer => {\n //Layer is visible, add and bring to back\n if (this.props.visiblemap.get(layer.id)) {\n let leaflayer = this.addLayer(layer);\n let style = this.props.stylemap.get(layer.id);\n leaflayer.setStyle({ color: style.color, opacity: style.opacity });\n leaflayer.bringToBack();\n }\n //Layer is not visible, remove\n else {\n this.removeLayer(layer.id);\n }\n });\n }", "function Display_clearAll() {\n\t// Get display content\n\tvar displayContent = document.getElementById(\"displayContent\");\n\n\t// Figure out what needs to be cleared out here\n\tthis.clear(displayContent);\n\n\t// Clear svg doc\n\tthis.clear(this.root);\n}", "Draw()\n\t{\n\t\t// Clear the canvas, optimize later if enough brain\n\t\tthis.ctx.clearRect(0, 0, this.canvasWidth, this.canvasHeight);\n\n\t\t// Draw everything\n\t\tfor(var i = 0; i < this.CanvasComponentCollection.orderedCollection.length; i++)\n\t\t{\n\t\t\tthis.CanvasComponentCollection.orderedCollection[i].Draw();\n\t\t}\n\t}", "function refreshDisplayNoOver() {\n p.getBubbleDrawer().clear();\n drawScales();\n p.getBubbleDrawer().drawDate(year.current);\n drawBubbles();\n drawBubblesNames();\n p.getBubbleDrawer().display();\n}", "function updateLayersDiv(){\n var node = document.querySelector(\".layer-list\");\n node.innerHTML = '';\n for(var i = layersArray.length-1; i>=0; i--){\n node.appendChild(layersArray[i].layerIndicatorDiv)\n }\n}", "display() {\n this.scene.pushMatrix();\n this.scene.multMatrix(this.transformationMatrix);\n if ((typeof this.cgfTexture != 'undefined') && this.cgfMaterial != null)\n this.cgfMaterial.setTexture(this.cgfTexture);\n if (this.cgfMaterial != null)\n this.cgfMaterial.apply();\n\n if (typeof this.animations[this.atualAnimationId] != 'undefined')\n this.animations[this.atualAnimationId].display();\n\n for (let children of this.childrens) {\n if (children.cgfTextureId == \"inherit\") {\n children.cgfTexture = this.cgfTexture;\n children.length_sTexture = this.length_sTexture;\n children.length_tTexture = this.length_tTexture;\n }\n if (children.cgfMaterialId == \"inherit\") {\n children.cgfMaterial = this.cgfMaterial;\n }\n if (!(children instanceof Component)) {\n if (!(isNaN(this.length_sTexture) || isNaN(this.length_tTexture)))\n children.updateTexCoords(this.length_sTexture, this.length_tTexture);\n }\n children.display();\n }\n\n this.scene.popMatrix();\n }", "function draw()\n{\n\trequestAnimationFrame(draw);\n\tg_canvas.clearRect(0, 0, g_canvasWidth, g_canvasHeight);\n\tfor (let renderable of g_renderables)\n\t{\n\t\trenderable.render();\n\t}\n}", "function clearDisplay() {\n hideContainers();\n resetCopyNotes();\n resetClipboardNote();\n }", "function displayLayer(elementType) {\n if (selectedLayer != \"None\") (0, _Display.eraseLayer)(selectedLayer);\n selectedLayer = elementType;\n if (elementType != \"None\") {\n var layer = environment.extractLayer(elementType);\n (0, _Display.drawLayer)(layer, 4, 100, .5, 0.3, false);\n }\n}", "function displayLayer(elementType) {\n if (selectedLayer != \"None\") (0, _Display.eraseLayer)(selectedLayer);\n selectedLayer = elementType;\n if (elementType != \"None\") {\n var layer = environment.extractLayer(elementType);\n (0, _Display.drawLayer)(layer, 4, 100, .5, 0.3, false);\n }\n}", "function paint() {\n\n\t\t\tpaintStones();\n\n\t\t\t// Tag the current move\n\t\t\tif (goMap.currentMoveIndex > 0) {\n\t\t\t\tpaintCurrentMove();\n\t\t\t}\n\n\t\t\tif (displayNum) {\n\t\t\t\tpaintNumbers();\n\t\t\t}\n\t\t}", "getDisplayables() {\n return this._displayables;\n }", "function refreshDisplay(){\n env.disp.render() ;\n env.plot.render() ;\n}", "clearDisplay() {\n this.current.innerHTML = '0';\n this.last.innerHTML = '';\n return\n }", "function _draw() {\n _map.baseLayer.container.appendChild(_self.container);\n _redraw();\n }", "clearMainDisplay () {\n this.setState({display: []});\n\n }", "function draw() {\n for (let i=0; i<tiles.length; i++) {\n tiles[i].display();\n }\n}", "componentDidUpdate() {\n this.clear();\n this.draw();\n }", "renderLayerList () {\n const layerElements = this.mapElement_ ? this.mapElement_.layerElements : [];\n\n this.listContainer_.innerHTML = `<ol>${layerElements.map((element) => this.renderLayerItem(element)).join('')}</ol>`;\n }", "renderIncDom() {\n\t\tif (this.component_.render) {\n\t\t\tthis.component_.render();\n\t\t} else {\n\t\t\tIncrementalDOM.elementVoid('div');\n\t\t}\n\t}", "update() {\n if (!this.renderer.renderingToScreen) {\n return;\n }\n // update children...\n this.updateAccessibleObjects(this.renderer._lastObjectRendered);\n var rect = this.renderer.view.getBoundingClientRect();\n var sx = rect.width / this.renderer.width;\n var sy = rect.height / this.renderer.height;\n var div = this.div;\n div.style.left = (rect.left) + \"px\";\n div.style.top = (rect.top) + \"px\";\n div.style.width = (this.renderer.width) + \"px\";\n div.style.height = (this.renderer.height) + \"px\";\n for (var i = 0; i < this.children.length; i++) {\n var child = this.children[i];\n if (child.renderId !== this.renderId) {\n child._accessibleActive = false;\n UtilsSettings_1.UtilsSettings.removeItems(this.children, i, 1);\n this.div.removeChild(child._accessibleDiv);\n this.pool.push(child._accessibleDiv);\n child._accessibleDiv = null;\n i--;\n if (this.children.length === 0) {\n this.deactivate();\n }\n }\n else {\n // map div to display..\n div = child._accessibleDiv;\n var hitArea = child.hitArea;\n var wt = child.worldTransform;\n if (child.hitArea) {\n div.style.left = ((wt.tx + (hitArea.x * wt.a)) * sx) + \"px\";\n div.style.top = ((wt.ty + (hitArea.y * wt.d)) * sy) + \"px\";\n div.style.width = (hitArea.width * wt.a * sx) + \"px\";\n div.style.height = (hitArea.height * wt.d * sy) + \"px\";\n }\n else {\n hitArea = child.getBounds();\n this.capHitArea(hitArea);\n div.style.left = (hitArea.x * sx) + \"px\";\n div.style.top = (hitArea.y * sy) + \"px\";\n div.style.width = (hitArea.width * sx) + \"px\";\n div.style.height = (hitArea.height * sy) + \"px\";\n // update button titles and hints if they exist and they've changed\n if (div.title !== child.accessibleTitle && child.accessibleTitle !== null) {\n div.title = child.accessibleTitle;\n }\n if (div.getAttribute('aria-label') !== child.accessibleHint\n && child.accessibleHint !== null) {\n div.setAttribute('aria-label', child.accessibleHint);\n }\n }\n }\n }\n // increment the render id..\n this.renderId++;\n }", "draw()\n\t{\n\t\t// if the scrollbar's marker position has changed then the layout must be updated:\n\t\tif (this._scrollbar.markerPos !== this._prevScrollbarMarkerPos)\n\t\t{\n\t\t\tthis._prevScrollbarMarkerPos = this._scrollbar.markerPos;\n\t\t\tthis._needUpdate = true;\n\t\t}\n\n\t\t// draw the decorations:\n\t\tsuper.draw();\n\n\t\t// draw the stimuli:\n\t\tfor (let i = 0; i < this._items.length; ++i)\n\t\t{\n\t\t\tif (this._visual.visibles[i])\n\t\t\t{\n\t\t\t\tconst textStim = this._visual.textStims[i];\n\t\t\t\ttextStim.draw();\n\n\t\t\t\tconst responseStim = this._visual.responseStims[i];\n\t\t\t\tif (responseStim)\n\t\t\t\t{\n\t\t\t\t\tresponseStim.draw();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// draw the scrollbar:\n\t\tthis._scrollbar.draw();\n\t}", "function displayMarkers(){\r\n for(var i=0; i<self.markerArray().length; i++){\r\n self.markerArray()[i][1].setVisible(true);\r\n\tself.markerArray()[i][1].setIcon(defaultIcon);\r\n }\r\n}", "clearBothDisplay () {\n this.setState({display: [], cumDisplay: []});\n }", "display() {\n\t\tthis.scene.pushMatrix();\n\t\tvar currMaterial = this.scene.pushMaterial(this.material);\n\t\tvar currTexture = this.scene.pushTexture(this.texture);\n\n\t\tcurrMaterial.setTexture(currTexture);\n\t\tcurrMaterial.setTextureWrap('REPEAT', 'REPEAT');\n\t\tcurrMaterial.apply();\n\n\t\tthis.scene.gameOrchestrator.logPicking();\n\t\tfor (let i = 0; i < this.tiles.length; i++) {\n\t\t\tif (this.scene.gameOrchestrator.animator.currentState === this.scene.gameOrchestrator.animator.states.playing)\n\t\t\t\tthis.scene.registerForPick(i + 1, this.tiles[i]);\n\t\t\tthis.tiles[i].display();\n\t\t}\n\t\tthis.scene.clearPickRegistration();\n\n\n\t\tlet pieceXscale = 0.1;\n\t\tlet pieceYscale = 0.01;\n\t\tlet pieceZscale = 0.25;\n\n\t\tlet unusedPieces = 0;\n\t\tfor (let i = 0; i < this.whitePieces.length; i++) {\n\t\t\tthis.scene.pushMatrix();\n\t\t\tif (this.whitePieces[i].getTile() === null) {\n\t\t\t\tthis.scene.translate(2, pieceYscale / 2 + (pieceYscale + 0.001) * unusedPieces, 1);\n\t\t\t\tunusedPieces++;\n\t\t\t}\n\t\t\tthis.whitePieces[i].display();\n\t\t\tthis.scene.popMatrix();\n\t\t}\n\t\tunusedPieces = 0;\n\t\tfor (let i = 0; i < this.blackPieces.length; i++) {\n\t\t\tthis.scene.pushMatrix();\n\t\t\tif (this.blackPieces[i].getTile() === null) {\n\t\t\t\tthis.scene.translate(2, pieceYscale / 2 + (pieceYscale + 0.001) * unusedPieces, -1);\n\t\t\t\tunusedPieces++;\n\t\t\t}\n\t\t\tthis.blackPieces[i].display();\n\t\t\tthis.scene.popMatrix();\n\t\t}\n\n\t\tthis.scene.popTexture();\n\t\tthis.scene.popMaterial();\n\t\tthis.scene.popMatrix();\n\t}", "resetLayers() {\n this.underlays = [];\n this.layersContainers.forEach((container) => {\n container.innerHTML = '';\n });\n }", "_setInitialComponentDisplay() {\n const that = this;\n\n if (that.spinButtons === false) {\n that.$spinButtonsContainer.addClass('jqx-hidden');\n }\n\n if (that.radixDisplay === false) {\n that.$radixDisplayButton.addClass('jqx-hidden');\n }\n\n if (that.showUnit === false) {\n that.$unitDisplay.addClass('jqx-hidden');\n }\n }", "static displayPaintings(){\n const paintings = Storage.getPaintings();\n\n // we need to put the book into UI\n paintings.forEach(function(painting){\n //Instantiate UI\n const uiList = new UI();\n\n uiList.addPaintingToList(painting);\n });\n\n }", "addToMainDisplay(elem){\n this.setState({display: [...this.state.display, elem]});\n }", "function patchDisplay(cm, updateNumbersFrom, dims) {\n let display = cm.display, lineNumbers = cm.options.lineNumbers\n let container = display.lineDiv, cur = container.firstChild\n\n function rm(node) {\n let next = node.nextSibling\n // Works around a throw-scroll bug in OS X Webkit\n if (webkit && mac && cm.display.currentWheelTarget == node)\n node.style.display = \"none\"\n else\n node.parentNode.removeChild(node)\n return next\n }\n\n let view = display.view, lineN = display.viewFrom\n // Loop over the elements in the view, syncing cur (the DOM nodes\n // in display.lineDiv) with the view as we go.\n for (let i = 0; i < view.length; i++) {\n let lineView = view[i]\n if (lineView.hidden) {\n } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n let node = buildLineElement(cm, lineView, lineN, dims)\n container.insertBefore(node, cur)\n } else { // Already drawn\n while (cur != lineView.node) cur = rm(cur)\n let updateNumber = lineNumbers && updateNumbersFrom != null &&\n updateNumbersFrom <= lineN && lineView.lineNumber\n if (lineView.changes) {\n if (indexOf(lineView.changes, \"gutter\") > -1) updateNumber = false\n updateLineForChanges(cm, lineView, lineN, dims)\n }\n if (updateNumber) {\n removeChildren(lineView.lineNumber)\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)))\n }\n cur = lineView.node.nextSibling\n }\n lineN += lineView.size\n }\n while (cur) cur = rm(cur)\n}", "initializeDisplay() {\n for ( let i = 0; i < this['$content'].data.length; i++ ) {\n this['$content'].display[i] = {};\n }\n }", "displayAllInSequence ( callback ) {\n\t\tif ( this.count() > 0 ) {\n\t\t\tif ( !this.isCurrentlyDisplaying()) {\n\t\t\t\tthis.displayNext( callback );\n\t\t\t} else {\n\t\t\t\tthis.addEmptiedCallback( callback );\n\t\t\t}\n\t\t} else if ( callback ) {\n\t\t\tcallback();\n\t\t}\n\t}", "update()\n {\n if (!this.renderer.renderingToScreen)\n {\n return;\n }\n\n // update children...\n this.updateAccessibleObjects(this.renderer._lastObjectRendered);\n\n const rect = this.renderer.view.getBoundingClientRect();\n const sx = rect.width / this.renderer.width;\n const sy = rect.height / this.renderer.height;\n\n let div = this.div;\n\n div.style.left = `${rect.left}px`;\n div.style.top = `${rect.top}px`;\n div.style.width = `${this.renderer.width}px`;\n div.style.height = `${this.renderer.height}px`;\n\n for (let i = 0; i < this.children.length; i++)\n {\n const child = this.children[i];\n\n if (child.renderId !== this.renderId)\n {\n child._accessibleActive = false;\n\n core.utils.removeItems(this.children, i, 1);\n this.div.removeChild(child._accessibleDiv);\n this.pool.push(child._accessibleDiv);\n child._accessibleDiv = null;\n\n i--;\n\n if (this.children.length === 0)\n {\n this.deactivate();\n }\n }\n else\n {\n // map div to display..\n div = child._accessibleDiv;\n let hitArea = child.hitArea;\n const wt = child.worldTransform;\n\n if (child.hitArea)\n {\n div.style.left = `${(wt.tx + (hitArea.x * wt.a)) * sx}px`;\n div.style.top = `${(wt.ty + (hitArea.y * wt.d)) * sy}px`;\n\n div.style.width = `${hitArea.width * wt.a * sx}px`;\n div.style.height = `${hitArea.height * wt.d * sy}px`;\n }\n else\n {\n hitArea = child.getBounds();\n\n this.capHitArea(hitArea);\n\n div.style.left = `${hitArea.x * sx}px`;\n div.style.top = `${hitArea.y * sy}px`;\n\n div.style.width = `${hitArea.width * sx}px`;\n div.style.height = `${hitArea.height * sy}px`;\n }\n }\n }\n\n // increment the render id..\n this.renderId++;\n }", "enqueue ( displayable, callback ) {\n\t\tthis[DISPLAY_LIST].push( displayable );\n\t\tthis.displayAllInSequence( callback );\n\t}", "function DisplayObject()\n{\n this.last = this;\n this.first = this;\n /**\n * The coordinate of the object relative to the local coordinates of the parent.\n *\n * @property position\n * @type Point\n */\n this.position = new Point();\n\n /**\n * The scale factor of the object.\n *\n * @property scale\n * @type Point\n */\n this.scale = new Point(1,1);//{x:1, y:1};\n\n /**\n * The pivot point of the displayObject that it rotates around\n *\n * @property pivot\n * @type Point\n */\n this.pivot = new Point(0,0);\n\n /**\n * The rotation of the object in radians.\n *\n * @property rotation\n * @type Number\n */\n this.rotation = 0;\n\n /**\n * The opacity of the object.\n *\n * @property alpha\n * @type Number\n */\n this.alpha = 1;\n\n /**\n * The visibility of the object.\n *\n * @property visible\n * @type Boolean\n */\n this.visible = true;\n\n /**\n * This is the defined area that will pick up mouse / touch events. It is null by default.\n * Setting it is a neat way of optimising the hitTest function that the interactionManager will use (as it will not need to hit test all the children)\n *\n * @property hitArea\n * @type Rectangle|Circle|Ellipse|Polygon\n */\n this.hitArea = null;\n\n /**\n * This is used to indicate if the displayObject should display a mouse hand cursor on rollover\n *\n * @property buttonMode\n * @type Boolean\n */\n this.buttonMode = false;\n\n /**\n * Can this object be rendered\n *\n * @property renderable\n * @type Boolean\n */\n this.renderable = false;\n\n /**\n * [read-only] The display object container that contains this display object.\n *\n * @property parent\n * @type DisplayObjectContainer\n * @readOnly\n */\n this.parent = null;\n\n /**\n * [read-only] The stage the display object is connected to, or undefined if it is not connected to the stage.\n *\n * @property stage\n * @type Stage\n * @readOnly\n */\n this.stage = null;\n\n /**\n * [read-only] The multiplied alpha of the displayobject\n *\n * @property worldAlpha\n * @type Number\n * @readOnly\n */\n this.worldAlpha = 1;\n\n /**\n * [read-only] Whether or not the object is interactive, do not toggle directly! use the `interactive` property\n *\n * @property _interactive\n * @type Boolean\n * @readOnly\n * @private\n */\n this._interactive = false;\n\n this.defaultCursor = 'pointer';\n\n /**\n * [read-only] Current transform of the object based on world (parent) factors\n *\n * @property worldTransform\n * @type Mat3\n * @readOnly\n * @private\n */\n this.worldTransform = mat3.create();//mat3.identity();\n\n /**\n * [read-only] Current transform of the object locally\n *\n * @property localTransform\n * @type Mat3\n * @readOnly\n * @private\n */\n this.localTransform = mat3.create();//mat3.identity();\n\n /**\n * [NYI] Unkown\n *\n * @property color\n * @type Array<>\n * @private\n */\n this.color = [];\n\n /**\n * [NYI] Holds whether or not this object is dynamic, for rendering optimization\n *\n * @property dynamic\n * @type Boolean\n * @private\n */\n this.dynamic = true;\n\n // chach that puppy!\n this._sr = 0;\n this._cr = 1;\n\n\n this.filterArea = new Rectangle(0,0,1,1);\n\n /*\n * MOUSE Callbacks\n */\n\n /**\n * A callback that is used when the users clicks on the displayObject with their mouse\n * @method click\n * @param interactionData {InteractionData}\n */\n\n /**\n * A callback that is used when the user clicks the mouse down over the sprite\n * @method mousedown\n * @param interactionData {InteractionData}\n */\n\n /**\n * A callback that is used when the user releases the mouse that was over the displayObject\n * for this callback to be fired the mouse must have been pressed down over the displayObject\n * @method mouseup\n * @param interactionData {InteractionData}\n */\n\n /**\n * A callback that is used when the user releases the mouse that was over the displayObject but is no longer over the displayObject\n * for this callback to be fired, The touch must have started over the displayObject\n * @method mouseupoutside\n * @param interactionData {InteractionData}\n */\n\n /**\n * A callback that is used when the users mouse rolls over the displayObject\n * @method mouseover\n * @param interactionData {InteractionData}\n */\n\n /**\n * A callback that is used when the users mouse leaves the displayObject\n * @method mouseout\n * @param interactionData {InteractionData}\n */\n\n\n /*\n * TOUCH Callbacks\n */\n\n /**\n * A callback that is used when the users taps on the sprite with their finger\n * basically a touch version of click\n * @method tap\n * @param interactionData {InteractionData}\n */\n\n /**\n * A callback that is used when the user touch's over the displayObject\n * @method touchstart\n * @param interactionData {InteractionData}\n */\n\n /**\n * A callback that is used when the user releases a touch over the displayObject\n * @method touchend\n * @param interactionData {InteractionData}\n */\n\n /**\n * A callback that is used when the user releases the touch that was over the displayObject\n * for this callback to be fired, The touch must have started over the sprite\n * @method touchendoutside\n * @param interactionData {InteractionData}\n */\n}", "display() {\n requestAnimationFrame(()=>{this.display();});\n\n if(this.effectController.showGround){\n this.drawPlane(1,12,12);\n }else{\n this.removePlane();\n }\n\n if(this.effectController.showAxes){\n this.drawAxes(15);\n }else{\n this.removeAxes();\n }\n\n if(this.viewSide!=this.effectController.viewSide)\n {\n this.setLookDirection(this.effectController.viewSide);\n this.viewSide = this.effectController.viewSide;\n }\n\n if(this.lightType!=this.effectController.lightType){\n this.setLightType(this.effectController.lightType);\n this.lightType = this.effectController.lightType;\n }\n \n if(this.lightType == \"1\"){\n this.headLight.position.copy(this.camera.position);\n }\n\n this.renderer.render(this.scene, this.camera);\n this.controls.update();\n }", "function patchDisplay(cm, updateNumbersFrom, dims) {\n var display = cm.display,\n lineNumbers = cm.options.lineNumbers;\n var container = display.lineDiv,\n cur = container.firstChild;\n\n function rm(node) {\n var next = node.nextSibling; // Works around a throw-scroll bug in OS X Webkit\n\n if (webkit && mac && cm.display.currentWheelTarget == node) {\n node.style.display = \"none\";\n } else {\n node.parentNode.removeChild(node);\n }\n\n return next;\n }\n\n var view = display.view,\n lineN = display.viewFrom; // Loop over the elements in the view, syncing cur (the DOM nodes\n // in display.lineDiv) with the view as we go.\n\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i];\n if (lineView.hidden) ;else if (!lineView.node || lineView.node.parentNode != container) {\n // Not drawn yet\n var node = buildLineElement(cm, lineView, lineN, dims);\n container.insertBefore(node, cur);\n } else {\n // Already drawn\n while (cur != lineView.node) {\n cur = rm(cur);\n }\n\n var updateNumber = lineNumbers && updateNumbersFrom != null && updateNumbersFrom <= lineN && lineView.lineNumber;\n\n if (lineView.changes) {\n if (indexOf(lineView.changes, \"gutter\") > -1) {\n updateNumber = false;\n }\n\n updateLineForChanges(cm, lineView, lineN, dims);\n }\n\n if (updateNumber) {\n removeChildren(lineView.lineNumber);\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\n }\n\n cur = lineView.node.nextSibling;\n }\n lineN += lineView.size;\n }\n\n while (cur) {\n cur = rm(cur);\n }\n }", "function loadDisplay() {\n loadElevationLayer();\n loadGrid();\n}", "function loadDisplay() {\n loadElevationLayer();\n loadGrid();\n}", "render() {\n\t\tvar layers = Object.keys(this.props.layers).map(function(layer_id, i) {\n\t\t\tvar layer = this.props.layers[layer_id];\n var style = \"info\";\n var active = (layer_id == this.state.active_layer);\n var glyphicon = (this.state.visible_layers.indexOf(layer_id) < 0) ? \"ban-circle\" : \"eye-open\";\n\n\t\t\treturn (\n\t\t\t\t<ListGroupItem\n\t\t\t\t\tdata-id={ i } key={ i }\n\t\t\t\t\tbsStyle={style} active={active}>\n <Button className=\"layer-visible-button\" bsSize=\"xsmall\" onClick={this.toggleLayerVisibility(layer_id).bind(this)}><Glyphicon glyph={glyphicon} /></Button>\n <span className=\"active-layer-clickable\" onClick={this.toggleLayerActive(layer_id).bind(this)}>{layer.layer_name}</span>\n <Button className=\"layer-delete-button\" bsSize=\"xsmall\" onClick={this.deleteLayer(layer_id).bind(this)}><Glyphicon glyph=\"glyphicon glyphicon-remove\" /></Button>\n\t\t\t\t</ListGroupItem>\n\t\t\t);\n\t\t}.bind(this));\n\n\t\treturn <ListGroup id=\"layers\">{ layers }</ListGroup>\n\t}", "drawThings() {\r\n this.paddle.render();\r\n this.ball.render();\r\n\r\n this.bricks.forEach((brick) => brick.display());\r\n this.blocks.forEach((block) => block.show());\r\n\r\n }", "function TrackingDisplay($display) {\n\t\t//Store the canvas element for this display\n\t\tthis.$display = $display;\n\n\t\t//Retrieve and store the 2d drawing context for this canvas\n\t\tthis.drawContext = $display[0].getContext('2d');\n\n\t\t//Store the dimensions of the current display element.\n\t\tthis.width = $display.width();\n\t\tthis.height = $display.height();\n\n\t\t//Determine which axis is the constraining axis for this canvas so we can ensure our displays are squares.\n\t\tif (this.width < this.height) {\n\t\t\tthis.height = this.width;\n\t\t} else {\n\t\t\tthis.width = this.height;\n\t\t}\n\n\t\t//Apply the new dimensions\n\t\t$display.height(this.height).width(this.width).attr(\"width\", this.width).attr(\"height\", this.height);\n\n\t\t//Multidimensional array of values from the CELL_STATE variable representing the state of each cell.\n\t\tthis.gridState = [];\n\n\t\t//Multidimensional array of any values. Used just to contain data related to each cell. At the moment, this only used\n\t\t//to specify the type of ship in a \"SHIP\" cell.\n\t\tthis.gridData = [];\n\n\t\t//Declare the hasInit flag, for controlling when the initialization logic fires\n\t\tthis.hasInit = false;\n\t}", "function patchDisplay(cm, updateNumbersFrom, dims) {\n var display = cm.display, lineNumbers = cm.options.lineNumbers\n var container = display.lineDiv, cur = container.firstChild\n\n function rm(node) {\n var next = node.nextSibling\n // Works around a throw-scroll bug in OS X Webkit\n if (webkit && mac && cm.display.currentWheelTarget == node)\n { node.style.display = \"none\" }\n else\n { node.parentNode.removeChild(node) }\n return next\n }\n\n var view = display.view, lineN = display.viewFrom\n // Loop over the elements in the view, syncing cur (the DOM nodes\n // in display.lineDiv) with the view as we go.\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i]\n if (lineView.hidden) {\n } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n var node = buildLineElement(cm, lineView, lineN, dims)\n container.insertBefore(node, cur)\n } else { // Already drawn\n while (cur != lineView.node) { cur = rm(cur) }\n var updateNumber = lineNumbers && updateNumbersFrom != null &&\n updateNumbersFrom <= lineN && lineView.lineNumber\n if (lineView.changes) {\n if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false }\n updateLineForChanges(cm, lineView, lineN, dims)\n }\n if (updateNumber) {\n removeChildren(lineView.lineNumber)\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)))\n }\n cur = lineView.node.nextSibling\n }\n lineN += lineView.size\n }\n while (cur) { cur = rm(cur) }\n}", "function patchDisplay(cm, updateNumbersFrom, dims) {\n var display = cm.display, lineNumbers = cm.options.lineNumbers\n var container = display.lineDiv, cur = container.firstChild\n\n function rm(node) {\n var next = node.nextSibling\n // Works around a throw-scroll bug in OS X Webkit\n if (webkit && mac && cm.display.currentWheelTarget == node)\n { node.style.display = \"none\" }\n else\n { node.parentNode.removeChild(node) }\n return next\n }\n\n var view = display.view, lineN = display.viewFrom\n // Loop over the elements in the view, syncing cur (the DOM nodes\n // in display.lineDiv) with the view as we go.\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i]\n if (lineView.hidden) {\n } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n var node = buildLineElement(cm, lineView, lineN, dims)\n container.insertBefore(node, cur)\n } else { // Already drawn\n while (cur != lineView.node) { cur = rm(cur) }\n var updateNumber = lineNumbers && updateNumbersFrom != null &&\n updateNumbersFrom <= lineN && lineView.lineNumber\n if (lineView.changes) {\n if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false }\n updateLineForChanges(cm, lineView, lineN, dims)\n }\n if (updateNumber) {\n removeChildren(lineView.lineNumber)\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)))\n }\n cur = lineView.node.nextSibling\n }\n lineN += lineView.size\n }\n while (cur) { cur = rm(cur) }\n}", "function patchDisplay(cm, updateNumbersFrom, dims) {\n\t\t var display = cm.display, lineNumbers = cm.options.lineNumbers;\n\t\t var container = display.lineDiv, cur = container.firstChild;\n\t\t\n\t\t function rm(node) {\n\t\t var next = node.nextSibling;\n\t\t // Works around a throw-scroll bug in OS X Webkit\n\t\t if (webkit && mac && cm.display.currentWheelTarget == node)\n\t\t node.style.display = \"none\";\n\t\t else\n\t\t node.parentNode.removeChild(node);\n\t\t return next;\n\t\t }\n\t\t\n\t\t var view = display.view, lineN = display.viewFrom;\n\t\t // Loop over the elements in the view, syncing cur (the DOM nodes\n\t\t // in display.lineDiv) with the view as we go.\n\t\t for (var i = 0; i < view.length; i++) {\n\t\t var lineView = view[i];\n\t\t if (lineView.hidden) {\n\t\t } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n\t\t var node = buildLineElement(cm, lineView, lineN, dims);\n\t\t container.insertBefore(node, cur);\n\t\t } else { // Already drawn\n\t\t while (cur != lineView.node) cur = rm(cur);\n\t\t var updateNumber = lineNumbers && updateNumbersFrom != null &&\n\t\t updateNumbersFrom <= lineN && lineView.lineNumber;\n\t\t if (lineView.changes) {\n\t\t if (indexOf(lineView.changes, \"gutter\") > -1) updateNumber = false;\n\t\t updateLineForChanges(cm, lineView, lineN, dims);\n\t\t }\n\t\t if (updateNumber) {\n\t\t removeChildren(lineView.lineNumber);\n\t\t lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\n\t\t }\n\t\t cur = lineView.node.nextSibling;\n\t\t }\n\t\t lineN += lineView.size;\n\t\t }\n\t\t while (cur) cur = rm(cur);\n\t\t }", "renderContents() {\n const me = this,\n {\n element,\n headerContainer,\n footerContainer,\n rowManager\n } = me;\n me.emptyCache(); // columns will be \"drawn\" on render anyway, bail out\n\n if (me.isPainted) {\n // reset measured header height, to make next call to get headerHeight measure it\n me._headerHeight = null;\n me.callEachSubGrid('refreshHeader', headerContainer);\n me.callEachSubGrid('refreshFooter', footerContainer); // Note that these are hook methods for features to plug in to. They do not do anything.\n\n me.renderHeader(headerContainer, element);\n me.renderFooter(footerContainer, element);\n me.fixSizes(); // any elements currently used for rows should be released.\n // actual removal of elements is done in SubGrid#clearRows\n\n const refreshContext = rowManager.removeAllRows();\n rowManager.calculateRowCount(false, true, true);\n\n if (rowManager.rowCount) {\n // Sets up the RowManager's position for when renderRows calls RowManager#reinitialize\n // so that it renders the correct data block at the correct position.\n rowManager.setPosition(refreshContext);\n me.renderRows();\n }\n }\n }", "function medalsRender()\n{\n if (!medalsDisplayQueue.length)\n return;\n \n // update first medal in queue\n const medal = medalsDisplayQueue[0];\n const time = timeReal - medalsDisplayTimeLast;\n if (!medalsDisplayTimeLast)\n medalsDisplayTimeLast = timeReal;\n else if (time > medalDisplayTime)\n medalsDisplayQueue.shift(medalsDisplayTimeLast = 0);\n else\n {\n // slide on/off medals\n const slideOffTime = medalDisplayTime - medalDisplaySlideTime;\n const hidePercent = \n time < medalDisplaySlideTime ? 1 - time / medalDisplaySlideTime :\n time > slideOffTime ? (time - slideOffTime) / medalDisplaySlideTime : 0;\n medal.render(hidePercent);\n }\n}", "function showFoodLayer(clearLayers, keepListeners) {\n if (keepListeners !== true) {\n ClearSelectionListeners();\n }\n if (clearLayers) {\n foodLayer.clearLayers();\n }\n map.addLayer(foodLayer);\n map.removeLayer(shelterLayer);\n map.removeLayer(todoLayer);\n map.removeLayer(eventsLayer);\n map.removeLayer(otherLayer);\n currentLayer = \"food\";\n }", "display() {\n push();\n // Filter goes from transparent to more opaque\n this.fill.alpha += this.fill.alphaChangeRate;\n this.fill.alpha = constrain(this.fill.alpha, 0, this.fill.finalAlpha);\n // Draw a rectangle\n rectMode(CORNER);\n fill(this.fill.r, this.fill.g, this.fill.b, this.fill.alpha);\n rect(this.x, this.y, this.length, this.height);\n pop();\n }", "draw(){\n let shapes = this.shapeList.iterator();\n push();\n while(!shapes.isEmpty()){\n shapes.currItem().draw();\n shapes.next();\n }\n pop();\n\n this.drawText();\n }", "function patchDisplay(cm, updateNumbersFrom, dims) {\n\t\t var display = cm.display, lineNumbers = cm.options.lineNumbers;\n\t\t var container = display.lineDiv, cur = container.firstChild;\n\n\t\t function rm(node) {\n\t\t var next = node.nextSibling;\n\t\t // Works around a throw-scroll bug in OS X Webkit\n\t\t if (webkit && mac && cm.display.currentWheelTarget == node)\n\t\t { node.style.display = \"none\"; }\n\t\t else\n\t\t { node.parentNode.removeChild(node); }\n\t\t return next\n\t\t }\n\n\t\t var view = display.view, lineN = display.viewFrom;\n\t\t // Loop over the elements in the view, syncing cur (the DOM nodes\n\t\t // in display.lineDiv) with the view as we go.\n\t\t for (var i = 0; i < view.length; i++) {\n\t\t var lineView = view[i];\n\t\t if (lineView.hidden) ; else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n\t\t var node = buildLineElement(cm, lineView, lineN, dims);\n\t\t container.insertBefore(node, cur);\n\t\t } else { // Already drawn\n\t\t while (cur != lineView.node) { cur = rm(cur); }\n\t\t var updateNumber = lineNumbers && updateNumbersFrom != null &&\n\t\t updateNumbersFrom <= lineN && lineView.lineNumber;\n\t\t if (lineView.changes) {\n\t\t if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false; }\n\t\t updateLineForChanges(cm, lineView, lineN, dims);\n\t\t }\n\t\t if (updateNumber) {\n\t\t removeChildren(lineView.lineNumber);\n\t\t lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\n\t\t }\n\t\t cur = lineView.node.nextSibling;\n\t\t }\n\t\t lineN += lineView.size;\n\t\t }\n\t\t while (cur) { cur = rm(cur); }\n\t\t }", "function createBatcher() {\n var queue = new Set();\n return {\n add: function (child) { return queue.add(child); },\n flush: function (_a) {\n var _b = _a === void 0 ? defaultHandler : _a, layoutReady = _b.layoutReady, parent = _b.parent;\n (0,_render_dom_utils_batch_layout_js__WEBPACK_IMPORTED_MODULE_1__.batchLayout)(function (read, write) {\n var order = Array.from(queue).sort(_render_utils_compare_by_depth_js__WEBPACK_IMPORTED_MODULE_2__.compareByDepth);\n var ancestors = parent\n ? (0,_render_dom_projection_utils_js__WEBPACK_IMPORTED_MODULE_3__.collectProjectingAncestors)(parent)\n : [];\n write(function () {\n var allElements = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__spreadArray)((0,tslib__WEBPACK_IMPORTED_MODULE_4__.__spreadArray)([], (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__read)(ancestors)), (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__read)(order));\n allElements.forEach(function (element) { return element.resetTransform(); });\n });\n read(function () {\n order.forEach(_render_dom_projection_utils_js__WEBPACK_IMPORTED_MODULE_3__.updateLayoutMeasurement);\n });\n write(function () {\n ancestors.forEach(function (element) { return element.restoreTransform(); });\n order.forEach(layoutReady);\n });\n read(function () {\n /**\n * After all children have started animating, ensure any Entering components are set to Present.\n * If we add deferred animations (set up all animations and then start them in two loops) this\n * could be moved to the start loop. But it needs to happen after all the animations configs\n * are generated in AnimateSharedLayout as this relies on presence data\n */\n order.forEach(function (child) {\n if (child.isPresent)\n child.presence = _types_js__WEBPACK_IMPORTED_MODULE_5__.Presence.Present;\n });\n });\n write(function () {\n /**\n * Starting these animations will have queued jobs on the frame loop. In some situations,\n * like when removing an element, these will be processed too late after the DOM is manipulated,\n * leaving a flash of incorrectly-projected content. By manually flushing these jobs\n * we ensure there's no flash.\n */\n framesync__WEBPACK_IMPORTED_MODULE_0__.flushSync.preRender();\n framesync__WEBPACK_IMPORTED_MODULE_0__.flushSync.render();\n });\n read(function () {\n /**\n * Schedule a callback at the end of the following frame to assign the latest projection\n * box to the prevViewportBox snapshot. Once global batching is in place this could be run\n * synchronously. But for now it ensures that if any nested `AnimateSharedLayout` top-level\n * child attempts to calculate its previous relative position against a prevViewportBox\n * it will be against its latest projection box instead, as the snapshot is useless beyond this\n * render.\n */\n framesync__WEBPACK_IMPORTED_MODULE_0__.default.postRender(function () {\n return order.forEach(assignProjectionToSnapshot);\n });\n queue.clear();\n });\n });\n // TODO: Need to find a layout-synchronous way of flushing this\n (0,_render_dom_utils_batch_layout_js__WEBPACK_IMPORTED_MODULE_1__.flushLayout)();\n },\n };\n}", "function createBatcher() {\n var queue = new Set();\n return {\n add: function (child) { return queue.add(child); },\n flush: function (_a) {\n var _b = _a === void 0 ? defaultHandler : _a, layoutReady = _b.layoutReady, parent = _b.parent;\n (0,_render_dom_utils_batch_layout_js__WEBPACK_IMPORTED_MODULE_1__.batchLayout)(function (read, write) {\n var order = Array.from(queue).sort(_render_utils_compare_by_depth_js__WEBPACK_IMPORTED_MODULE_2__.compareByDepth);\n var ancestors = parent\n ? (0,_render_dom_projection_utils_js__WEBPACK_IMPORTED_MODULE_3__.collectProjectingAncestors)(parent)\n : [];\n write(function () {\n var allElements = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__spreadArray)((0,tslib__WEBPACK_IMPORTED_MODULE_4__.__spreadArray)([], (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__read)(ancestors)), (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__read)(order));\n allElements.forEach(function (element) { return element.resetTransform(); });\n });\n read(function () {\n order.forEach(_render_dom_projection_utils_js__WEBPACK_IMPORTED_MODULE_3__.updateLayoutMeasurement);\n });\n write(function () {\n ancestors.forEach(function (element) { return element.restoreTransform(); });\n order.forEach(layoutReady);\n });\n read(function () {\n /**\n * After all children have started animating, ensure any Entering components are set to Present.\n * If we add deferred animations (set up all animations and then start them in two loops) this\n * could be moved to the start loop. But it needs to happen after all the animations configs\n * are generated in AnimateSharedLayout as this relies on presence data\n */\n order.forEach(function (child) {\n if (child.isPresent)\n child.presence = _types_js__WEBPACK_IMPORTED_MODULE_5__.Presence.Present;\n });\n });\n write(function () {\n /**\n * Starting these animations will have queued jobs on the frame loop. In some situations,\n * like when removing an element, these will be processed too late after the DOM is manipulated,\n * leaving a flash of incorrectly-projected content. By manually flushing these jobs\n * we ensure there's no flash.\n */\n framesync__WEBPACK_IMPORTED_MODULE_0__.flushSync.preRender();\n framesync__WEBPACK_IMPORTED_MODULE_0__.flushSync.render();\n });\n read(function () {\n /**\n * Schedule a callback at the end of the following frame to assign the latest projection\n * box to the prevViewportBox snapshot. Once global batching is in place this could be run\n * synchronously. But for now it ensures that if any nested `AnimateSharedLayout` top-level\n * child attempts to calculate its previous relative position against a prevViewportBox\n * it will be against its latest projection box instead, as the snapshot is useless beyond this\n * render.\n */\n framesync__WEBPACK_IMPORTED_MODULE_0__.default.postRender(function () {\n return order.forEach(assignProjectionToSnapshot);\n });\n queue.clear();\n });\n });\n // TODO: Need to find a layout-synchronous way of flushing this\n (0,_render_dom_utils_batch_layout_js__WEBPACK_IMPORTED_MODULE_1__.flushLayout)();\n },\n };\n}", "function Layer(x, y, z, width, scheme) {\n this.z = z;\n this.width = width;\n this.x = typeof x !== 'undefined' ? x : 0;\n this.y = typeof y !== 'undefined' ? y : 0;\n this.scheme = scheme;\n this.buildings = new Array();\n this.numUpdates = 0\n\n\n this.addBuilding = function(building) {\n this.buildings.push(building);\n }\n\n this.removeBuilding = function() {\n this.buildings.shift()\n }\n\n this.draw = function(context) {\n for (index = 0; index < this.buildings.length; ++index) {\n this.buildings[index].draw(context, this.scheme, this.x, this.y);\n }\n }\n\n this.populateFromScheme = function(){\n this.populate(this.scheme['maxBuildings']);\n }\n\n this.shiftLeft = function(dx){\n this.x -= dx;\n }\n\n this.populate = function(numBuildings) {\n var width = window.innerWidth;\n var height = window.innerHeight;\n for (index = 0; index < numBuildings ; ++index) {\n this.addBuilding(new Building(\n getRandInt(Math.abs(this.x), this.width),\n getRandMinMax(\"BuildingWidth\", this.scheme) * width,\n getRandMinMax(\"BuildingHeight\", this.scheme) * height,\n getRandArrayElem(this.scheme['colorScheme'])\n ));\n if (index > this.scheme['minBuildings']) {\n if (getRandInt(1,4) > 3) return;\n }\n }\n }\n\n this.updateLayer = function(populate, remove, shift) {\n var populate = typeof populate !== 'undefined' ? populate : 1;\n var remove= typeof remove!== 'undefined' ? remove: 1;\n var shift= typeof shift!== 'undefined' ? shift: 1;\n\n this.populate(populate);\n this.removeBuilding(remove);\n this.shiftLeft(shift);\n \n this.numUpdates++;\n }\n}", "static redraw() {\n let i = 0;\n let s = SmartCanvas.collection.length;\n\n for (; i < s; i++) {\n SmartCanvas.collection[i].redraw();\n }\n }", "function patchDisplay(cm, updateNumbersFrom, dims) {\n var display = cm.display, lineNumbers = cm.options.lineNumbers;\n var container = display.lineDiv, cur = container.firstChild;\n\n function rm(node) {\n var next = node.nextSibling;\n // Works around a throw-scroll bug in OS X Webkit\n if (webkit && mac && cm.display.currentWheelTarget == node)\n { node.style.display = \"none\"; }\n else\n { node.parentNode.removeChild(node); }\n return next\n }\n\n var view = display.view, lineN = display.viewFrom;\n // Loop over the elements in the view, syncing cur (the DOM nodes\n // in display.lineDiv) with the view as we go.\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i];\n if (lineView.hidden) {\n } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n var node = buildLineElement(cm, lineView, lineN, dims);\n container.insertBefore(node, cur);\n } else { // Already drawn\n while (cur != lineView.node) { cur = rm(cur); }\n var updateNumber = lineNumbers && updateNumbersFrom != null &&\n updateNumbersFrom <= lineN && lineView.lineNumber;\n if (lineView.changes) {\n if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false; }\n updateLineForChanges(cm, lineView, lineN, dims);\n }\n if (updateNumber) {\n removeChildren(lineView.lineNumber);\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\n }\n cur = lineView.node.nextSibling;\n }\n lineN += lineView.size;\n }\n while (cur) { cur = rm(cur); }\n}", "function patchDisplay(cm, updateNumbersFrom, dims) {\n var display = cm.display, lineNumbers = cm.options.lineNumbers;\n var container = display.lineDiv, cur = container.firstChild;\n\n function rm(node) {\n var next = node.nextSibling;\n // Works around a throw-scroll bug in OS X Webkit\n if (webkit && mac && cm.display.currentWheelTarget == node)\n { node.style.display = \"none\"; }\n else\n { node.parentNode.removeChild(node); }\n return next\n }\n\n var view = display.view, lineN = display.viewFrom;\n // Loop over the elements in the view, syncing cur (the DOM nodes\n // in display.lineDiv) with the view as we go.\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i];\n if (lineView.hidden) {\n } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n var node = buildLineElement(cm, lineView, lineN, dims);\n container.insertBefore(node, cur);\n } else { // Already drawn\n while (cur != lineView.node) { cur = rm(cur); }\n var updateNumber = lineNumbers && updateNumbersFrom != null &&\n updateNumbersFrom <= lineN && lineView.lineNumber;\n if (lineView.changes) {\n if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false; }\n updateLineForChanges(cm, lineView, lineN, dims);\n }\n if (updateNumber) {\n removeChildren(lineView.lineNumber);\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\n }\n cur = lineView.node.nextSibling;\n }\n lineN += lineView.size;\n }\n while (cur) { cur = rm(cur); }\n}", "function patchDisplay(cm, updateNumbersFrom, dims) {\n var display = cm.display, lineNumbers = cm.options.lineNumbers;\n var container = display.lineDiv, cur = container.firstChild;\n\n function rm(node) {\n var next = node.nextSibling;\n // Works around a throw-scroll bug in OS X Webkit\n if (webkit && mac && cm.display.currentWheelTarget == node)\n { node.style.display = \"none\"; }\n else\n { node.parentNode.removeChild(node); }\n return next\n }\n\n var view = display.view, lineN = display.viewFrom;\n // Loop over the elements in the view, syncing cur (the DOM nodes\n // in display.lineDiv) with the view as we go.\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i];\n if (lineView.hidden) {\n } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n var node = buildLineElement(cm, lineView, lineN, dims);\n container.insertBefore(node, cur);\n } else { // Already drawn\n while (cur != lineView.node) { cur = rm(cur); }\n var updateNumber = lineNumbers && updateNumbersFrom != null &&\n updateNumbersFrom <= lineN && lineView.lineNumber;\n if (lineView.changes) {\n if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false; }\n updateLineForChanges(cm, lineView, lineN, dims);\n }\n if (updateNumber) {\n removeChildren(lineView.lineNumber);\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\n }\n cur = lineView.node.nextSibling;\n }\n lineN += lineView.size;\n }\n while (cur) { cur = rm(cur); }\n}", "function patchDisplay(cm, updateNumbersFrom, dims) {\n var display = cm.display, lineNumbers = cm.options.lineNumbers;\n var container = display.lineDiv, cur = container.firstChild;\n\n function rm(node) {\n var next = node.nextSibling;\n // Works around a throw-scroll bug in OS X Webkit\n if (webkit && mac && cm.display.currentWheelTarget == node)\n { node.style.display = \"none\"; }\n else\n { node.parentNode.removeChild(node); }\n return next\n }\n\n var view = display.view, lineN = display.viewFrom;\n // Loop over the elements in the view, syncing cur (the DOM nodes\n // in display.lineDiv) with the view as we go.\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i];\n if (lineView.hidden) {\n } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n var node = buildLineElement(cm, lineView, lineN, dims);\n container.insertBefore(node, cur);\n } else { // Already drawn\n while (cur != lineView.node) { cur = rm(cur); }\n var updateNumber = lineNumbers && updateNumbersFrom != null &&\n updateNumbersFrom <= lineN && lineView.lineNumber;\n if (lineView.changes) {\n if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false; }\n updateLineForChanges(cm, lineView, lineN, dims);\n }\n if (updateNumber) {\n removeChildren(lineView.lineNumber);\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\n }\n cur = lineView.node.nextSibling;\n }\n lineN += lineView.size;\n }\n while (cur) { cur = rm(cur); }\n}", "function patchDisplay(cm, updateNumbersFrom, dims) {\n var display = cm.display, lineNumbers = cm.options.lineNumbers;\n var container = display.lineDiv, cur = container.firstChild;\n\n function rm(node) {\n var next = node.nextSibling;\n // Works around a throw-scroll bug in OS X Webkit\n if (webkit && mac && cm.display.currentWheelTarget == node)\n { node.style.display = \"none\"; }\n else\n { node.parentNode.removeChild(node); }\n return next\n }\n\n var view = display.view, lineN = display.viewFrom;\n // Loop over the elements in the view, syncing cur (the DOM nodes\n // in display.lineDiv) with the view as we go.\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i];\n if (lineView.hidden) {\n } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n var node = buildLineElement(cm, lineView, lineN, dims);\n container.insertBefore(node, cur);\n } else { // Already drawn\n while (cur != lineView.node) { cur = rm(cur); }\n var updateNumber = lineNumbers && updateNumbersFrom != null &&\n updateNumbersFrom <= lineN && lineView.lineNumber;\n if (lineView.changes) {\n if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false; }\n updateLineForChanges(cm, lineView, lineN, dims);\n }\n if (updateNumber) {\n removeChildren(lineView.lineNumber);\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\n }\n cur = lineView.node.nextSibling;\n }\n lineN += lineView.size;\n }\n while (cur) { cur = rm(cur); }\n}", "function patchDisplay(cm, updateNumbersFrom, dims) {\n var display = cm.display, lineNumbers = cm.options.lineNumbers;\n var container = display.lineDiv, cur = container.firstChild;\n\n function rm(node) {\n var next = node.nextSibling;\n // Works around a throw-scroll bug in OS X Webkit\n if (webkit && mac && cm.display.currentWheelTarget == node)\n { node.style.display = \"none\"; }\n else\n { node.parentNode.removeChild(node); }\n return next\n }\n\n var view = display.view, lineN = display.viewFrom;\n // Loop over the elements in the view, syncing cur (the DOM nodes\n // in display.lineDiv) with the view as we go.\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i];\n if (lineView.hidden) {\n } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n var node = buildLineElement(cm, lineView, lineN, dims);\n container.insertBefore(node, cur);\n } else { // Already drawn\n while (cur != lineView.node) { cur = rm(cur); }\n var updateNumber = lineNumbers && updateNumbersFrom != null &&\n updateNumbersFrom <= lineN && lineView.lineNumber;\n if (lineView.changes) {\n if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false; }\n updateLineForChanges(cm, lineView, lineN, dims);\n }\n if (updateNumber) {\n removeChildren(lineView.lineNumber);\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\n }\n cur = lineView.node.nextSibling;\n }\n lineN += lineView.size;\n }\n while (cur) { cur = rm(cur); }\n}", "function patchDisplay(cm, updateNumbersFrom, dims) {\n var display = cm.display, lineNumbers = cm.options.lineNumbers;\n var container = display.lineDiv, cur = container.firstChild;\n\n function rm(node) {\n var next = node.nextSibling;\n // Works around a throw-scroll bug in OS X Webkit\n if (webkit && mac && cm.display.currentWheelTarget == node)\n { node.style.display = \"none\"; }\n else\n { node.parentNode.removeChild(node); }\n return next\n }\n\n var view = display.view, lineN = display.viewFrom;\n // Loop over the elements in the view, syncing cur (the DOM nodes\n // in display.lineDiv) with the view as we go.\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i];\n if (lineView.hidden) {\n } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n var node = buildLineElement(cm, lineView, lineN, dims);\n container.insertBefore(node, cur);\n } else { // Already drawn\n while (cur != lineView.node) { cur = rm(cur); }\n var updateNumber = lineNumbers && updateNumbersFrom != null &&\n updateNumbersFrom <= lineN && lineView.lineNumber;\n if (lineView.changes) {\n if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false; }\n updateLineForChanges(cm, lineView, lineN, dims);\n }\n if (updateNumber) {\n removeChildren(lineView.lineNumber);\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\n }\n cur = lineView.node.nextSibling;\n }\n lineN += lineView.size;\n }\n while (cur) { cur = rm(cur); }\n}", "function patchDisplay(cm, updateNumbersFrom, dims) {\n var display = cm.display, lineNumbers = cm.options.lineNumbers;\n var container = display.lineDiv, cur = container.firstChild;\n\n function rm(node) {\n var next = node.nextSibling;\n // Works around a throw-scroll bug in OS X Webkit\n if (webkit && mac && cm.display.currentWheelTarget == node)\n { node.style.display = \"none\"; }\n else\n { node.parentNode.removeChild(node); }\n return next\n }\n\n var view = display.view, lineN = display.viewFrom;\n // Loop over the elements in the view, syncing cur (the DOM nodes\n // in display.lineDiv) with the view as we go.\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i];\n if (lineView.hidden) {\n } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n var node = buildLineElement(cm, lineView, lineN, dims);\n container.insertBefore(node, cur);\n } else { // Already drawn\n while (cur != lineView.node) { cur = rm(cur); }\n var updateNumber = lineNumbers && updateNumbersFrom != null &&\n updateNumbersFrom <= lineN && lineView.lineNumber;\n if (lineView.changes) {\n if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false; }\n updateLineForChanges(cm, lineView, lineN, dims);\n }\n if (updateNumber) {\n removeChildren(lineView.lineNumber);\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\n }\n cur = lineView.node.nextSibling;\n }\n lineN += lineView.size;\n }\n while (cur) { cur = rm(cur); }\n}", "function patchDisplay(cm, updateNumbersFrom, dims) {\n var display = cm.display, lineNumbers = cm.options.lineNumbers;\n var container = display.lineDiv, cur = container.firstChild;\n\n function rm(node) {\n var next = node.nextSibling;\n // Works around a throw-scroll bug in OS X Webkit\n if (webkit && mac && cm.display.currentWheelTarget == node)\n { node.style.display = \"none\"; }\n else\n { node.parentNode.removeChild(node); }\n return next\n }\n\n var view = display.view, lineN = display.viewFrom;\n // Loop over the elements in the view, syncing cur (the DOM nodes\n // in display.lineDiv) with the view as we go.\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i];\n if (lineView.hidden) {\n } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n var node = buildLineElement(cm, lineView, lineN, dims);\n container.insertBefore(node, cur);\n } else { // Already drawn\n while (cur != lineView.node) { cur = rm(cur); }\n var updateNumber = lineNumbers && updateNumbersFrom != null &&\n updateNumbersFrom <= lineN && lineView.lineNumber;\n if (lineView.changes) {\n if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false; }\n updateLineForChanges(cm, lineView, lineN, dims);\n }\n if (updateNumber) {\n removeChildren(lineView.lineNumber);\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\n }\n cur = lineView.node.nextSibling;\n }\n lineN += lineView.size;\n }\n while (cur) { cur = rm(cur); }\n}", "function patchDisplay(cm, updateNumbersFrom, dims) {\n var display = cm.display, lineNumbers = cm.options.lineNumbers;\n var container = display.lineDiv, cur = container.firstChild;\n\n function rm(node) {\n var next = node.nextSibling;\n // Works around a throw-scroll bug in OS X Webkit\n if (webkit && mac && cm.display.currentWheelTarget == node)\n { node.style.display = \"none\"; }\n else\n { node.parentNode.removeChild(node); }\n return next\n }\n\n var view = display.view, lineN = display.viewFrom;\n // Loop over the elements in the view, syncing cur (the DOM nodes\n // in display.lineDiv) with the view as we go.\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i];\n if (lineView.hidden) {\n } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n var node = buildLineElement(cm, lineView, lineN, dims);\n container.insertBefore(node, cur);\n } else { // Already drawn\n while (cur != lineView.node) { cur = rm(cur); }\n var updateNumber = lineNumbers && updateNumbersFrom != null &&\n updateNumbersFrom <= lineN && lineView.lineNumber;\n if (lineView.changes) {\n if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false; }\n updateLineForChanges(cm, lineView, lineN, dims);\n }\n if (updateNumber) {\n removeChildren(lineView.lineNumber);\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\n }\n cur = lineView.node.nextSibling;\n }\n lineN += lineView.size;\n }\n while (cur) { cur = rm(cur); }\n}", "function patchDisplay(cm, updateNumbersFrom, dims) {\n var display = cm.display, lineNumbers = cm.options.lineNumbers;\n var container = display.lineDiv, cur = container.firstChild;\n\n function rm(node) {\n var next = node.nextSibling;\n // Works around a throw-scroll bug in OS X Webkit\n if (webkit && mac && cm.display.currentWheelTarget == node)\n { node.style.display = \"none\"; }\n else\n { node.parentNode.removeChild(node); }\n return next\n }\n\n var view = display.view, lineN = display.viewFrom;\n // Loop over the elements in the view, syncing cur (the DOM nodes\n // in display.lineDiv) with the view as we go.\n for (var i = 0; i < view.length; i++) {\n var lineView = view[i];\n if (lineView.hidden) {\n } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\n var node = buildLineElement(cm, lineView, lineN, dims);\n container.insertBefore(node, cur);\n } else { // Already drawn\n while (cur != lineView.node) { cur = rm(cur); }\n var updateNumber = lineNumbers && updateNumbersFrom != null &&\n updateNumbersFrom <= lineN && lineView.lineNumber;\n if (lineView.changes) {\n if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false; }\n updateLineForChanges(cm, lineView, lineN, dims);\n }\n if (updateNumber) {\n removeChildren(lineView.lineNumber);\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\n }\n cur = lineView.node.nextSibling;\n }\n lineN += lineView.size;\n }\n while (cur) { cur = rm(cur); }\n}", "function ShowLayerMaps() {\n //$('.divLayerVisibleContainer').show();\n //dojo.byId('divLayerVisibleContainer').style.display = \"block\";\n //alert(\"test layers\");\n //var cellHeight = (isMobileDevice) ? 55 : 60;\n if (dojo.byId('divLayerVisibleContainer').className == \"showLayerVisibleHeight\") {\n dojo.byId('divLayerVisibleContainer').className = \"hideLayerVisibleHeight\";\n dojo.byId('divLayerVisibleContainer').style.height = '0px';\n// $('.divLayerVisibleContainer').hide();\n //dojo.byId('divLayerVisibleContainer').style.display = \"none\";\n }\n else {\n dojo.byId('divLayerVisibleContainer').style.height = '120px'; // Math.ceil(baseMapLayerCollection.length / 2) * cellHeight + \"px\";\n dojo.byId('divLayerVisibleContainer').style.top = '10em';\n dojo.byId('divLayerVisibleContainer').className = \"showLayerVisibleHeight\";\n// $('.divLayerVisibleContainer').show();\n //dojo.byId('divLayerVisibleContainer').style.display = \"block\";\n }\n}", "display() {\n if (this.isAvailable) {\n push();\n noStroke();\n imageMode(CENTER);\n tint(255, this.visibility);\n image(this.image, this.x, this.y, this.radius, this.radius);\n\n pop();\n }\n }", "update() {\n this.clear();\n this.draw();\n }", "function drawcollectables(t_collectable)\n{\n\tfor(var i = 0; i < collectables.length; i++)\n\t\t{\n\t\t\tstroke(255, 255, 0); \n\t\t\tstrokeWeight(25)\n\t\t\tpoint(t_collectable.x_pos, t_collectable.y_pos);\n\t\t\tstroke(255, 255, 0);\n\t\t\tstrokeWeight();\t\n\t\t}\n}", "function patchDisplay(cm, updateNumbersFrom, dims) {\r\n var display = cm.display, lineNumbers = cm.options.lineNumbers;\r\n var container = display.lineDiv, cur = container.firstChild;\r\n\r\n function rm(node) {\r\n var next = node.nextSibling;\r\n // Works around a throw-scroll bug in OS X Webkit\r\n if (webkit && mac && cm.display.currentWheelTarget == node)\r\n { node.style.display = \"none\"; }\r\n else\r\n { node.parentNode.removeChild(node); }\r\n return next\r\n }\r\n\r\n var view = display.view, lineN = display.viewFrom;\r\n // Loop over the elements in the view, syncing cur (the DOM nodes\r\n // in display.lineDiv) with the view as we go.\r\n for (var i = 0; i < view.length; i++) {\r\n var lineView = view[i];\r\n if (lineView.hidden) {\r\n } else if (!lineView.node || lineView.node.parentNode != container) { // Not drawn yet\r\n var node = buildLineElement(cm, lineView, lineN, dims);\r\n container.insertBefore(node, cur);\r\n } else { // Already drawn\r\n while (cur != lineView.node) { cur = rm(cur); }\r\n var updateNumber = lineNumbers && updateNumbersFrom != null &&\r\n updateNumbersFrom <= lineN && lineView.lineNumber;\r\n if (lineView.changes) {\r\n if (indexOf(lineView.changes, \"gutter\") > -1) { updateNumber = false; }\r\n updateLineForChanges(cm, lineView, lineN, dims);\r\n }\r\n if (updateNumber) {\r\n removeChildren(lineView.lineNumber);\r\n lineView.lineNumber.appendChild(document.createTextNode(lineNumberFor(cm.options, lineN)));\r\n }\r\n cur = lineView.node.nextSibling;\r\n }\r\n lineN += lineView.size;\r\n }\r\n while (cur) { cur = rm(cur); }\r\n}", "function updateDisplay(launchpad) {\n for (var x = 0; x < 9; x++) {\n for (var y = 0; y < 9; y++) {\n if (x == 8 && y == 0) continue;\n var color = launchpad.buffers[launchpad.visibleBuffer][x][y] || launchpad.colors[0][0];\n var shape = document.getElementById(\"key\" + x + y);\n // Do not apply brightness correction to non-lit pads and buttons\n shape.style.opacity = (color == launchpad.colors[0][0]) ? 1 : launchpad.brightness;\n shape.style.fill = color;\n }\n }\n}", "function addListLayer() {\n // screenshotCanvas();\n // add 1 to the layers number in the layer-list\n var chNum = $(\"#layer-list\").data(\"numLayers\");\n $(\"#layer-list\").data(\"numLayers\", chNum+=1);\n var colors = $(\"#layer-list\").data(\"colorList\");\n var defaultColor = colors[(chNum-1)%colors.length];\n var newListLayer = $('<div></div>');\n newListLayer.attr(\"id\", \"layer\" + chNum);\n newListLayer.addClass(\"well layer\");\n var layerImg = $('<div class=\"imgdiv layer well\"></div>');\n layerImg.css(\"background-color\", defaultColor);\n $(\"canvas\").css(\"border-color\", defaultColor);\n var layerTitle = '<p contenteditable=\"true\">Layer '+chNum+'</p>';\n newListLayer.append(layerImg);\n newListLayer.append(layerTitle);\n // If this is NOT the first canvas layer, save old canvas layer\n if (paper.project.layers.length != 1){\n $(\".selected\").data(\"canvasLayer\", paper.project.activeLayer);\n paper.project.activeLayer.children[0].selected = false;\n paper.project.activeLayer.children[0].strokeColor = \"#d4dadd\";\n cordsVisible(false);\n }\n\n $(\"#layer-list\").children().removeClass(\"selected\");\n $(newListLayer).addClass(\"selected\");\n\n new paper.Layer();\n new paper.Path();\n paper.project.activeLayer.children[0].selected = true;\n\n // if (paper.project.layers.length == 2) $(\".selected\").data(\"canvasLayer\", paper.project.activeLayer);\n $(\"#layer-list\").prepend(newListLayer);\n // Add a jQuery click listener\n $(\"#layer\" + chNum).click(function(){ transferSelected(this) });\n}", "function InitLayers()\n{\n LayerCollection.push(new RenderLayer(LayerCollection.length));\n CurrentLayer = LayerCollection[0];\n CurrentLayer.IsSelected = true;\n}", "function draw() {\n if (!drawOnTop.checked) {\n clear();\n }\n // Handeling the Draw my self\n render();\n}", "render() {\n this.renderCells();\n this.paintCells();\n this.setFigures();\n }", "function paint() {\n\n\t\t// Number of layers in total\n\t\tvar layersLength = layers.length;\n\n\t\t// Draw the overlap layers\n\t\tfor( var i = layersLength - layerOverlap, len = layersLength; i < len; i++ ) {\n\n\t\t\tcontext.save();\n\t\t\tcontext.globalCompositeOperation = 'destination-over';\n\t\t\tpaintLayer( layers[i] );\n\t\t\tcontext.restore();\n\n\t\t}\n\n\t\t// Cut out the overflow layers using the first layer as a mask\n\t\tcontext.save();\n\t\tcontext.globalCompositeOperation = 'destination-in';\n\t\tpaintLayer( layers[0], true );\n\t\tcontext.restore();\n\n\t\t// // Draw the normal layers underneath the overlap\n\t\tfor( var i = 0, len = layersLength; i < len; i++ ) {\n\n\t\t\tcontext.save();\n\t\t\tcontext.globalCompositeOperation = 'destination-over';\n\t\t\tpaintLayer( layers[i] );\n\t\t\tcontext.restore();\n\n\t\t}\n\n\t}", "displayVisuals(helper) {\n //Cube Layer 1\n image(\n assets.visual.default.cubeLayer1,\n cube.x - 400 * cube.size,\n cube.y - 420 * cube.size,\n 763.4 * cube.size,\n 843.7 * cube.size\n );\n\n if (this.keyAction.interactedObject === \"boat\") {\n this.keyAction.boat(helper);\n } else if (this.keyAction.interactedObject === \"nets\") {\n this.keyAction.nets(helper);\n } else if (this.keyAction.interactedObject === \"port\") {\n this.keyAction.port(helper);\n } else if (this.keyAction.interactedObject === \"waterSurface\") {\n this.keyAction.waterSurface(helper);\n }\n this.keyAction.parameterNetwork.inputToOutput();\n this.keyAction.parameterNetwork.calculateScore();\n this.calculateEntities();\n for (let i = 0; i < this.coralArray.length; i++) {\n this.coralArray[i].render(assets);\n }\n\n //net\n if (this.hover.nets === true) {\n image(\n assets.visual.active.nets,\n cube.x - 200 * cube.size,\n cube.y - 290 * cube.size,\n 660 * 0.6 * cube.size,\n 501 * 0.9 * cube.size\n );\n } else {\n image(\n assets.visual.default.nets,\n cube.x - 200 * cube.size,\n cube.y - 290 * cube.size,\n 660 * 0.6 * cube.size,\n 501 * 0.9 * cube.size\n );\n }\n\n //Cube Layer 2\n image(\n assets.visual.default.cubeLayer2,\n cube.x - 310 * cube.size,\n cube.y - 375 * cube.size,\n 313.5 * cube.size,\n 732.6 * cube.size\n );\n for (let i = 0; i < this.fishArray.length; i++) {\n this.fishArray[i].move();\n this.fishArray[i].render();\n }\n\n //Cube Layer 3\n image(\n assets.visual.default.cubeLayer3,\n cube.x - 400 * cube.size,\n cube.y - 420 * cube.size,\n 763.4 * cube.size,\n 843.7 * cube.size\n );\n for (let i = 0; i < this.bycatchArray.length; i++) {\n this.bycatchArray[i].float();\n this.bycatchArray[i].render();\n }\n if (this.plasticTeppich.stage >= 0) {\n this.plasticTeppich.float();\n this.plasticTeppich.render(assets);\n }\n\n //boat\n if (this.hover.boat === true) {\n image(\n assets.visual.active.boat,\n cube.x + 150 * cube.size,\n cube.y - 370 * cube.size,\n 2203 * 0.08 * cube.size,\n 1165 * 0.08 * cube.size\n );\n } else {\n image(\n assets.visual.default.boat,\n cube.x + 150 * cube.size,\n cube.y - 370 * cube.size,\n 2203 * 0.08 * cube.size,\n 1165 * 0.08 * cube.size\n );\n }\n\n //house\n image(\n assets.visual.default.house,\n cube.x - 240 * cube.size,\n cube.y - 440 * cube.size,\n 1684 * 0.075 * cube.size,\n 1962 * 0.075 * cube.size\n );\n if (this.hover.house === true) {\n image(\n assets.visual.active.house,\n cube.x - 350 * cube.size,\n cube.y - 400 * cube.size,\n 1684 * 0.08 * cube.size,\n 1962 * 0.08 * cube.size\n );\n } else {\n image(\n assets.visual.default.house,\n cube.x - 350 * cube.size,\n cube.y - 400 * cube.size,\n 1684 * 0.08 * cube.size,\n 1962 * 0.08 * cube.size\n );\n }\n this.keyAction.parameterNetwork.display();\n if (\n this.keyAction.parameterNetwork.loseEnd === true ||\n this.keyAction.parameterNetwork.winEnd === true\n ) {\n helper.screenState = \"end\";\n }\n }", "function _fnDraw( oSettings )\n\t\t{\n\t\t\tvar i, iLen;\n\t\t\tvar anRows = [];\n\t\t\tvar iRowCount = 0;\n\t\t\tvar bRowError = false;\n\t\t\tvar iStrips = oSettings.asStripClasses.length;\n\t\t\tvar iOpenRows = oSettings.aoOpenRows.length;\n\t\t\t\n\t\t\toSettings.bDrawing = true;\n\t\t\t\n\t\t\t/* Check and see if we have an initial draw position from state saving */\n\t\t\tif ( typeof oSettings.iInitDisplayStart != 'undefined' && oSettings.iInitDisplayStart != -1 )\n\t\t\t{\n\t\t\t\tif ( oSettings.oFeatures.bServerSide )\n\t\t\t\t{\n\t\t\t\t\toSettings._iDisplayStart = oSettings.iInitDisplayStart;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\toSettings._iDisplayStart = (oSettings.iInitDisplayStart >= oSettings.fnRecordsDisplay()) ?\n\t\t\t\t\t\t0 : oSettings.iInitDisplayStart;\n\t\t\t\t}\n\t\t\t\toSettings.iInitDisplayStart = -1;\n\t\t\t\t_fnCalculateEnd( oSettings );\n\t\t\t}\n\t\t\t\n\t\t\t/* If we are dealing with Ajax - do it here */\n\t\t\tif ( !oSettings.bDestroying && oSettings.oFeatures.bServerSide && \n\t\t\t !_fnAjaxUpdate( oSettings ) )\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if ( !oSettings.oFeatures.bServerSide )\n\t\t\t{\n\t\t\t\toSettings.iDraw++;\n\t\t\t}\n\t\t\t\n\t\t\tif ( oSettings.aiDisplay.length !== 0 )\n\t\t\t{\n\t\t\t\tvar iStart = oSettings._iDisplayStart;\n\t\t\t\tvar iEnd = oSettings._iDisplayEnd;\n\t\t\t\t\n\t\t\t\tif ( oSettings.oFeatures.bServerSide )\n\t\t\t\t{\n\t\t\t\t\tiStart = 0;\n\t\t\t\t\tiEnd = oSettings.aoData.length;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor ( var j=iStart ; j<iEnd ; j++ )\n\t\t\t\t{\n\t\t\t\t\tvar aoData = oSettings.aoData[ oSettings.aiDisplay[j] ];\n\t\t\t\t\tvar nRow = aoData.nTr;\n\t\t\t\t\t\n\t\t\t\t\t/* Remove the old stripping classes and then add the new one */\n\t\t\t\t\tif ( iStrips !== 0 )\n\t\t\t\t\t{\n\t\t\t\t\t\tvar sStrip = oSettings.asStripClasses[ iRowCount % iStrips ];\n\t\t\t\t\t\tif ( aoData._sRowStripe != sStrip )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$(nRow).removeClass( aoData._sRowStripe ).addClass( sStrip );\n\t\t\t\t\t\t\taoData._sRowStripe = sStrip;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t/* Custom row callback function - might want to manipule the row */\n\t\t\t\t\tif ( typeof oSettings.fnRowCallback == \"function\" )\n\t\t\t\t\t{\n\t\t\t\t\t\tnRow = oSettings.fnRowCallback.call( oSettings.oInstance, nRow, \n\t\t\t\t\t\t\toSettings.aoData[ oSettings.aiDisplay[j] ]._aData, iRowCount, j );\n\t\t\t\t\t\tif ( !nRow && !bRowError )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t_fnLog( oSettings, 0, \"A node was not returned by fnRowCallback\" );\n\t\t\t\t\t\t\tbRowError = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tanRows.push( nRow );\n\t\t\t\t\tiRowCount++;\n\t\t\t\t\t\n\t\t\t\t\t/* If there is an open row - and it is attached to this parent - attach it on redraw */\n\t\t\t\t\tif ( iOpenRows !== 0 )\n\t\t\t\t\t{\n\t\t\t\t\t\tfor ( var k=0 ; k<iOpenRows ; k++ )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ( nRow == oSettings.aoOpenRows[k].nParent )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tanRows.push( oSettings.aoOpenRows[k].nTr );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* Table is empty - create a row with an empty message in it */\n\t\t\t\tanRows[ 0 ] = document.createElement( 'tr' );\n\t\t\t\t\n\t\t\t\tif ( typeof oSettings.asStripClasses[0] != 'undefined' )\n\t\t\t\t{\n\t\t\t\t\tanRows[ 0 ].className = oSettings.asStripClasses[0];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tvar nTd = document.createElement( 'td' );\n\t\t\t\tnTd.setAttribute( 'valign', \"top\" );\n\t\t\t\tnTd.colSpan = _fnVisbleColumns( oSettings );\n\t\t\t\tnTd.className = oSettings.oClasses.sRowEmpty;\n\t\t\t\tif ( typeof oSettings.oLanguage.sEmptyTable != 'undefined' &&\n\t\t\t\t oSettings.fnRecordsTotal() === 0 )\n\t\t\t\t{\n\t\t\t\t\tnTd.innerHTML = oSettings.oLanguage.sEmptyTable;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tnTd.innerHTML = oSettings.oLanguage.sZeroRecords.replace(\n\t\t\t\t\t\t'_MAX_', oSettings.fnFormatNumber(oSettings.fnRecordsTotal()) );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tanRows[ iRowCount ].appendChild( nTd );\n\t\t\t}\n\t\t\t\n\t\t\t/* Callback the header and footer custom funcation if there is one */\n\t\t\tif ( typeof oSettings.fnHeaderCallback == 'function' )\n\t\t\t{\n\t\t\t\toSettings.fnHeaderCallback.call( oSettings.oInstance, $('>tr', oSettings.nTHead)[0], \n\t\t\t\t\t_fnGetDataMaster( oSettings ), oSettings._iDisplayStart, oSettings.fnDisplayEnd(),\n\t\t\t\t\toSettings.aiDisplay );\n\t\t\t}\n\t\t\t\n\t\t\tif ( typeof oSettings.fnFooterCallback == 'function' )\n\t\t\t{\n\t\t\t\toSettings.fnFooterCallback.call( oSettings.oInstance, $('>tr', oSettings.nTFoot)[0], \n\t\t\t\t\t_fnGetDataMaster( oSettings ), oSettings._iDisplayStart, oSettings.fnDisplayEnd(),\n\t\t\t\t\toSettings.aiDisplay );\n\t\t\t}\n\t\t\t\n\t\t\t/* \n\t\t\t * Need to remove any old row from the display - note we can't just empty the tbody using\n\t\t\t * $().html('') since this will unbind the jQuery event handlers (even although the node \n\t\t\t * still exists!) - equally we can't use innerHTML, since IE throws an exception.\n\t\t\t */\n\t\t\tvar\n\t\t\t\tnAddFrag = document.createDocumentFragment(),\n\t\t\t\tnRemoveFrag = document.createDocumentFragment(),\n\t\t\t\tnBodyPar, nTrs;\n\t\t\t\n\t\t\tif ( oSettings.nTBody )\n\t\t\t{\n\t\t\t\tnBodyPar = oSettings.nTBody.parentNode;\n\t\t\t\tnRemoveFrag.appendChild( oSettings.nTBody );\n\t\t\t\t\n\t\t\t\t/* When doing infinite scrolling, only remove child rows when sorting, filtering or start\n\t\t\t\t * up. When not infinite scroll, always do it.\n\t\t\t\t */\n\t\t\t\tif ( !oSettings.oScroll.bInfinite || !oSettings._bInitComplete ||\n\t\t\t\t \toSettings.bSorted || oSettings.bFiltered )\n\t\t\t\t{\n\t\t\t\t\tnTrs = oSettings.nTBody.childNodes;\n\t\t\t\t\tfor ( i=nTrs.length-1 ; i>=0 ; i-- )\n\t\t\t\t\t{\n\t\t\t\t\t\tnTrs[i].parentNode.removeChild( nTrs[i] );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* Put the draw table into the dom */\n\t\t\t\tfor ( i=0, iLen=anRows.length ; i<iLen ; i++ )\n\t\t\t\t{\n\t\t\t\t\tnAddFrag.appendChild( anRows[i] );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\toSettings.nTBody.appendChild( nAddFrag );\n\t\t\t\tif ( nBodyPar !== null )\n\t\t\t\t{\n\t\t\t\t\tnBodyPar.appendChild( oSettings.nTBody );\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/* Call all required callback functions for the end of a draw */\n\t\t\tfor ( i=oSettings.aoDrawCallback.length-1 ; i>=0 ; i-- )\n\t\t\t{\n\t\t\t\toSettings.aoDrawCallback[i].fn.call( oSettings.oInstance, oSettings );\n\t\t\t}\n\t\t\t\n\t\t\t/* Draw is complete, sorting and filtering must be as well */\n\t\t\toSettings.bSorted = false;\n\t\t\toSettings.bFiltered = false;\n\t\t\toSettings.bDrawing = false;\n\t\t\t\n\t\t\tif ( oSettings.oFeatures.bServerSide )\n\t\t\t{\n\t\t\t\t_fnProcessingDisplay( oSettings, false );\n\t\t\t\tif ( typeof oSettings._bInitComplete == 'undefined' )\n\t\t\t\t{\n\t\t\t\t\t_fnInitComplete( oSettings );\n\t\t\t\t}\n\t\t\t}\n\t\t}", "_updateDecorations()\n\t{\n\t\tif (typeof this._pixi !== \"undefined\")\n\t\t{\n\t\t\tthis._pixi.destroy(true);\n\t\t}\n\n\t\tthis._pixi = new PIXI.Graphics();\n\t\tthis._pixi.scale.x = 1;\n\t\tthis._pixi.scale.y = 1;\n\t\tthis._pixi.rotation = 0;\n\t\tthis._pixi.position = to_pixiPoint(this.pos, this.units, this.win);\n\n\t\tthis._pixi.alpha = this._opacity;\n\t\tthis._pixi.zIndex = -this._depth;\n\n\t\t// apply the form clip mask (n.b., that is not the stimuli clip mask):\n\t\tthis._pixi.mask = this._clipMask;\n\n\t\t// form background:\n\t\tthis._pixi.lineStyle(1, new Color(this.borderColor).int, this._opacity, 0.5);\n\t\t// this._decorations.beginFill(this._barFillColor.int, this._opacity);\n\t\tthis._pixi.beginFill(new Color(this.fillColor).int);\n\t\tthis._pixi.drawRect(this._leftEdge_px, this._bottomEdge_px, this._size_px[0], this._size_px[1]);\n\t\t// this._decorations.endFill();\n\t\tthis._pixi.endFill();\n\n\t\t// item decorators:\n\t\tthis._decorations = new PIXI.Graphics();\n\t\tthis._pixi.addChild(this._decorations);\n\t\tthis._decorations.mask = this._stimuliClipMask;\n\t\tthis._decorations.lineStyle(1, new Color(\"gray\").int, this._opacity, 0.5);\n\t\tthis._decorations.alpha = 0.5;\n\n\t\tfor (let i = 0; i < this._items.length; ++i)\n\t\t{\n\t\t\tif (this._visual.visibles[i])\n\t\t\t{\n\t\t\t\tconst item = this._items[i];\n\t\t\t\t// background for headings and descriptions:\n\t\t\t\tif (item.type === Form.Types.HEADING || item.type === Form.Types.DESCRIPTION)\n\t\t\t\t{\n\t\t\t\t\tconst textStim = this._visual.textStims[i];\n\t\t\t\t\tconst textStimPos = [\n\t\t\t\t\t\tthis._leftEdge + textStim._relativePos[0],\n\t\t\t\t\t\tthis._topEdge + textStim._relativePos[1] - this._scrollbarOffset,\n\t\t\t\t\t];\n\t\t\t\t\tconst textStimPos_px = util.to_px(textStimPos, this._units, this._win);\n\t\t\t\t\tthis._decorations.beginFill(new Color(\"darkgray\").int);\n\t\t\t\t\tthis._decorations.drawRect(\n\t\t\t\t\t\ttextStimPos_px[0] - this._itemPadding_px / 2,\n\t\t\t\t\t\ttextStimPos_px[1] + this._itemPadding_px / 2,\n\t\t\t\t\t\tthis._size_px[0] - this._itemPadding_px - this._scrollbarWidth_px,\n\t\t\t\t\t\t-this._getLengthPix(this._visual.rowHeights[i]) - this._itemPadding_px,\n\t\t\t\t\t);\n\t\t\t\t\tthis._decorations.endFill();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "updateBatches() {\n if (this.dirty === this.cacheDirty) {\n return;\n }\n if (this.graphicsData.length === 0) {\n return;\n }\n if (this.dirty !== this.cacheDirty) {\n for (var i = 0; i < this.graphicsData.length; i++) {\n var data = this.graphicsData[i];\n // reveal(data.fillStyle.texture.baseTexture.resource);\n // reveal(data.lineStyle.texture.baseTexture.resource);\n if (data.fillStyle && !data.fillStyle.texture.baseTexture.valid) {\n return;\n }\n if (data.lineStyle && !data.lineStyle.texture.baseTexture.valid) {\n return;\n }\n }\n }\n this.cacheDirty = this.dirty;\n var uvs = this.uvs;\n var batchPart = this.batches.pop()\n || GraphicsGeometry.BATCH_POOL.pop()\n || new BatchPart();\n batchPart.style = batchPart.style\n || this.graphicsData[0].fillStyle\n || this.graphicsData[0].lineStyle;\n var currentTexture = batchPart.style.texture.baseTexture;\n // reveal(currentTexture);\n var currentColor = batchPart.style.color + batchPart.style.alpha;\n this.batches.push(batchPart);\n // reveal(this.batches);\n // TODO - this can be simplified\n for (var i$1 = this.shapeIndex; i$1 < this.graphicsData.length; i$1++) {\n this.shapeIndex++;\n var data$1 = this.graphicsData[i$1];\n // reveal(data$1);\n var command = GraphicsGeometry.getFillCommand(data$1.type);\n // reveal(command)\n var fillStyle = data$1.fillStyle;\n var lineStyle = data$1.lineStyle;\n // build out the shapes points..\n command.build(data$1);\n if (data$1.matrix) {\n this.transformPoints(data$1.points, data$1.matrix);\n // reveal(data$1.points)\n // \treveal(data$1.matrix)\n }\n for (var j = 0; j < 2; j++) {\n var style = (j === 0) ? fillStyle : lineStyle;\n if (!style.visible) {\n continue;\n }\n var nextTexture = style.texture.baseTexture;\n if (currentTexture !== nextTexture || (style.color + style.alpha) !== currentColor) {\n // TODO use a const\n nextTexture.wrapMode = 10497;\n currentTexture = nextTexture;\n currentColor = style.color + style.alpha;\n var index$1 = this.indices.length;\n var attribIndex = this.points.length / 2;\n batchPart.size = index$1 - batchPart.start;\n batchPart.attribSize = attribIndex - batchPart.attribStart;\n if (batchPart.size > 0) {\n batchPart = GraphicsGeometry.BATCH_POOL.pop() || new BatchPart();\n this.batches.push(batchPart);\n }\n batchPart.style = style;\n batchPart.start = index$1;\n batchPart.attribStart = attribIndex;\n // TODO add this to the render part..\n }\n var start = this.points.length / 2;\n if (j === 0) {\n if (data$1.holes.length) {\n this.processHoles(data$1.holes);\n GraphicsGeometry.buildPoly.triangulate(data$1, this);\n }\n else {\n command.triangulate(data$1, this);\n }\n }\n else {\n GraphicsGeometry.buildLine(data$1, this);\n for (var i$2 = 0; i$2 < data$1.holes.length; i$2++) {\n GraphicsGeometry.buildLine(data$1.holes[i$2], this);\n }\n }\n var size = (this.points.length / 2) - start;\n this.addUvs(this.points, uvs, style.texture, start, size, style.matrix);\n }\n }\n var index = this.indices.length;\n var attrib = this.points.length / 2;\n batchPart.size = index - batchPart.start;\n batchPart.attribSize = attrib - batchPart.attribStart;\n this.indicesUint16 = new Uint16Array(this.indices);\n // TODO make this a const..\n this.batchable = this.isBatchable();\n if (this.batchable) {\n this.batchDirty++;\n this.uvsFloat32 = new Float32Array(this.uvs);\n // offset the indices so that it works with the batcher...\n for (var i$3 = 0; i$3 < this.batches.length; i$3++) {\n var batch = this.batches[i$3];\n for (var j$1 = 0; j$1 < batch.size; j$1++) {\n var index$2 = batch.start + j$1;\n this.indicesUint16[index$2] = this.indicesUint16[index$2] - batch.attribStart;\n }\n }\n }\n else {\n this.buildDrawCalls();\n }\n }", "function drawElement(geneType, estado) {\n $('canvas').setLayerGroup(geneType, {\n visible: estado\n }).drawLayers();\n}", "onRender() {\n super.onRender();\n this.clearList();\n this.renderList();\n }", "draw( display ){\n\t\tthis.drawHitBox( display );\n\t}" ]
[ "0.6213168", "0.5756399", "0.5756399", "0.56918347", "0.56884956", "0.5577846", "0.5547541", "0.5346625", "0.53179514", "0.5314656", "0.5273291", "0.5256486", "0.5206572", "0.51939934", "0.51723945", "0.51640016", "0.51606536", "0.51556456", "0.514929", "0.513892", "0.5118991", "0.5118991", "0.51179415", "0.5070599", "0.50617045", "0.50414777", "0.50357753", "0.5034549", "0.50173223", "0.5017164", "0.500851", "0.5004175", "0.50031894", "0.49968135", "0.49962226", "0.4986699", "0.49850833", "0.4981917", "0.49734995", "0.49685985", "0.49663666", "0.496345", "0.49608472", "0.4952864", "0.49456924", "0.49453747", "0.4941924", "0.49416393", "0.49409866", "0.49341568", "0.49341568", "0.4931482", "0.4924938", "0.4924596", "0.49217835", "0.49217835", "0.49197918", "0.4908731", "0.49040368", "0.48893735", "0.48890698", "0.48884818", "0.4886117", "0.48803884", "0.48803884", "0.48764446", "0.48756188", "0.4871534", "0.4871534", "0.4871534", "0.4871534", "0.4871534", "0.4871534", "0.4871534", "0.4871534", "0.4871534", "0.4871534", "0.4871534", "0.48692575", "0.48688632", "0.4861232", "0.48587787", "0.48579764", "0.48550704", "0.48548922", "0.48487774", "0.4840439", "0.48376608", "0.48364836", "0.48357642", "0.4831576", "0.48263678", "0.48218894", "0.48171243", "0.4815324", "0.4814972" ]
0.6358434
4
mouse event in upper applicatoin.
function markTouch(event) { event && (event.zrByTouch = true); } // function markTriggeredFromLocal(event) {
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mouseUp() { }", "mouseReleased() {\n this.mouseEvent(\"mouseReleased\");\n }", "function MouseUpEvent() {}", "e_mouseOut(e)\n\t{\n\n\t}", "mouseDown(pt) {}", "mouseDown(pt) {}", "_mouseEvent(eventType, e)\n\t{\n\t\tsuper._mouseEvent(eventType, e);\n\t}", "_mouseEvent(eventType, e)\n\t{\n\t\tsuper._mouseEvent(eventType, e);\n\t}", "_mouseEvent(eventType, e)\n\t{\n\t\tsuper._mouseEvent(eventType, e);\n\t}", "_mouseEvent(eventType, e)\n\t{\n\t\tsuper._mouseEvent(eventType, e);\n\t}", "_mouseEvent(eventType, e)\n\t{\n\t\tsuper._mouseEvent(eventType, e);\n\t}", "function mouseevent(e){\n\t// console.log(`Event Type = ${e.type}`);\n}", "mouseUp(pt) {}", "mouseUp(pt) {}", "e_mouseOver(e)\n\t{\n\n\t}", "function handler() {\n applyFishEye(\n sig.mousecaptor.mouseX,\n sig.mousecaptor.mouseY\n );\n }", "on_mouseup(e, localX, localY) {\n\n }", "_evtMousedown(event) {\n if (this.isHidden || !this._editor) {\n return;\n }\n if (Private.nonstandardClick(event)) {\n this.reset();\n return;\n }\n let target = event.target;\n while (target !== document.documentElement) {\n // If the user has made a selection, emit its value and reset the widget.\n if (target.classList.contains(ITEM_CLASS)) {\n event.preventDefault();\n event.stopPropagation();\n event.stopImmediatePropagation();\n this._selected.emit(target.getAttribute('data-value'));\n this.reset();\n return;\n }\n // If the mouse event happened anywhere else in the widget, bail.\n if (target === this.node) {\n event.preventDefault();\n event.stopPropagation();\n event.stopImmediatePropagation();\n return;\n }\n target = target.parentElement;\n }\n this.reset();\n }", "onMouseDown (e) {\n this.isMouseDown = true;\n\n this.emit('mouse-down', {x: e.offsetX, y: e.offsetY});\n }", "onPaperMouseDown(event) {\n if (this.originalEvents.onMouseDown) this.originalEvents.onMouseDown(event);\n }", "function down(evt){mouseDown(getMousePos(evt));}", "function down(evt){mouseDown(getMousePos(evt));}", "function mouseUp()\n {\n ThemerService.mouseDown = false;\n $document.unbind('mouseup', mouseUp);\n }", "sketchpad_mouseUp() {\n this.mouseDown = 0\n }", "function MouseListener() {\n}", "function handler() {\n applyFishEye(\n sig.mousecaptor.mouseX,\n sig.mousecaptor.mouseY\n );\n }", "function mouseDownHandler(e) {\n //middle button\n if (e.which == 2) {\n oldPageY = e.pageY;\n container.on('mousemove', mouseMoveHandler);\n }\n }", "function mouseDownHandler(e){\n //middle button\n if (e.which == 2){\n oldPageY = e.pageY;\n container.on('mousemove', mouseMoveHandler);\n }\n }", "function mouseDownHandler(e){\n //middle button\n if (e.which == 2){\n oldPageY = e.pageY;\n container.on('mousemove', mouseMoveHandler);\n }\n }", "function mouseDownHandler(e){\n //middle button\n if (e.which == 2){\n oldPageY = e.pageY;\n container.on('mousemove', mouseMoveHandler);\n }\n }", "function mouseDownHandler(e){\n //middle button\n if (e.which == 2){\n oldPageY = e.pageY;\n container.on('mousemove', mouseMoveHandler);\n }\n }", "onMouseDown(e) {}", "mouseDown(x, y, _isLeftButton) {}", "externalMouseDown() {\n this._strikeMouseDown();\n this._localPointer._mouseIsActive = true;\n }", "function mouseClicked() {\n fill('#222222');\n rect(300,300,150,150)\n return false;\n }", "function mouseDownHandler(e){\n //middle button\n if (e.which == 2){\n oldPageY = e.pageY;\n container.addEventListener('mousemove', mouseMoveHandler);\n }\n }", "function mouseDownHandler(e){\n //middle button\n if (e.which == 2){\n oldPageY = e.pageY;\n container.addEventListener('mousemove', mouseMoveHandler);\n }\n }", "function mouseDownHandler(e){\n //middle button\n if (e.which == 2){\n oldPageY = e.pageY;\n container.addEventListener('mousemove', mouseMoveHandler);\n }\n }", "function documentMouseDown(event){}", "function mouseDownHandler(e){\r\n //middle button\r\n if (e.which == 2){\r\n oldPageY = e.pageY;\r\n container.on('mousemove', mouseMoveHandler);\r\n }\r\n }", "function mouseDownHandler(e){\r\n //middle button\r\n if (e.which == 2){\r\n oldPageY = e.pageY;\r\n container.on('mousemove', mouseMoveHandler);\r\n }\r\n }", "function mouseDownHandler(e){\r\n //middle button\r\n if (e.which == 2){\r\n oldPageY = e.pageY;\r\n container.on('mousemove', mouseMoveHandler);\r\n }\r\n }", "mouseUp(x, y, _isLeftButton) {}", "_mouseEvent(eventType, e)\n\t{\n\t\tswitch(eventType)\n\t\t{\n\t\t\tcase ComponentEvent.MOUSE_OVER:\n\t\t\t\tdocument.body.style.cursor = 'pointer';\n\t\t\t\tbreak;\n\n\t\t\tcase ComponentEvent.MOUSE_OUT:\n\t\t\t\tdocument.body.style.cursor = 'default';\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\tsuper._mouseEvent(eventType, e);\n\t}", "onMouseUp(event) {\n\t\tcurrentEvent = event\n\t\tthis.isClicked = false\n\t\tthis.render()\n\t}", "onIntersectedByMouse(){\n }", "function canvasClick(e) {\n\tblockus.mouseClicked();\n}", "onMouseUp(event) {\n\t\t// console.log(\"mouse up\");\n\t\tthis.props.setIsDrawing(false);\n\t}", "function mouseDownHandler(e){\r\n //middle button\r\n if (e.which == 2){\r\n oldPageY = e.pageY;\r\n container.addEventListener('mousemove', mouseMoveHandler);\r\n }\r\n }", "function mouseDownHandler(e){\r\n //middle button\r\n if (e.which == 2){\r\n oldPageY = e.pageY;\r\n container.addEventListener('mousemove', mouseMoveHandler);\r\n }\r\n }", "function canvasMouseDown(e) {\n\tblockus.mouseDown();\n}", "function mysketchpad_mouseUp() {\n mouseDown = 0;\n lastX=-1;\n lastY=-1;\n }", "on_mousedown(e, localX, localY) {\n\n }", "onClick(event) {\n\t\t// console.log(\"mouse click\");\n\t\tthis.draw(event);\n\t}", "function onMouseUpWindow(event) {\n if (!insideElmt) {\n onMouseUp(event);\n }\n\n releaseMouse();\n }", "externalMouseUp() {\n this._strikeMouseUp();\n this._localPointer._mouseIsActive = false;\n }", "onMouseUp(e) {}", "function mousedown(event) {\r\n\t\t\t\tactiveElement = event.target;\r\n\t\t\t}", "function clickHandler(event){\n\t\t\tif(ignoreClick){\n\t\t\t\tignoreClick = false;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar offset = overlay.cumulativeOffset();\t\t\t\n\t\t\ttarget.fire('flotr:click', [{\n\t\t\t\tx: xaxis.min + (event.pageX - offset.left - plotOffset.left) / hozScale,\n\t\t\t\ty: yaxis.max - (event.pageY - offset.top - plotOffset.top) / vertScale\n\t\t\t}]);\n\t\t}", "_mouseEvent(eventType, e)\n\t{\n\t\tswitch(eventType)\n\t\t{\n\t\t\tcase ComponentEvent.MOUSE_OVER:\n\t\t\t\tdocument.body.style.cursor = 'pointer';\n\t\t\t\tbreak;\n\n\t\t\tcase ComponentEvent.MOUSE_OUT:\n\t\t\t\tdocument.body.style.cursor = 'default';\n\t\t\t\tbreak;\n\n\t\t\tcase ComponentEvent.CLICK:\n\t\t\t\tthis.SwitchState();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\tsuper._mouseEvent(eventType, e);\n\t}", "_mouseEvent(eventType, e)\n\t{\n\t\tswitch(eventType)\n\t\t{\n\t\t\tcase ComponentEvent.MOUSE_OVER:\n\t\t\t\tdocument.body.style.cursor = 'pointer';\n\t\t\t\tbreak;\n\n\t\t\tcase ComponentEvent.MOUSE_OUT:\n\t\t\t\tdocument.body.style.cursor = 'default';\n\t\t\t\tbreak;\n\n\t\t\tcase ComponentEvent.CLICK:\n\t\t\t\tthis.SwitchState();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\tsuper._mouseEvent(eventType, e);\n\t}", "function u(e){if(!m(e))return Q.props.interactive?(document.body.addEventListener(\"mouseleave\",s),void document.addEventListener(\"mousemove\",Y)):void s()}", "mouseClicked() {\n this.inputNode.mouseClicked();\n }", "function mouse(kind, pt, id) {\n \n}", "function activeCursor(e) {\n const item = e.target;\n if (item.id === \"logo\" || item.classList.contains(\"burger\")) {\n mouse.classList.add(\"nav-active\");\n } else {\n mouse.classList.remove(\"nav-active\");\n }\n if (item.classList.contains(\"button\")) {\n mouse.classList.add(\"explore-active\");\n gsap.to(\".title-swipe\", 1, { y: \"0%\" });\n mouseTxt.innerText = \"click\";\n } else {\n mouse.classList.remove(\"explore-active\");\n mouseTxt.innerText = \"\";\n gsap.to(\".title-swipe\", 1, { y: \"100%\" });\n }\n}", "function onDocumentMouseDown( event )\n\t\t {\n\t\t\t\t\t\t\tconsole.log(\"Bang\");\n\t\t \t// the following line would stop any other event handler from firing\n\t\t \t// (such as the mouse's TrackballControls)\n\t\t \t// event.preventDefault();\n\t\t \t//console.log(\"Click.\");\n\t\t \t// update the mouse variable\n\t\t \tmouse.x = ( event.clientX / window.innerWidth ) * 2 - 1;\n\t\t \tmouse.y = - ( event.clientY / window.innerHeight ) * 2 + 1;\n\t\t \tcheckSelection();\n\t\t }", "function mouseDown(e) {\n mousePress(e.button, true);\n}", "function mousedown() {\n index = this.index;\n scene = this.scene;\n v1 = pv.vector(pv.event.pageX, pv.event.pageY);\n m1 = this.transform();\n k = 1 / (m1.k * this.scale);\n if (bound) {\n bound = {\n x: (1 - m1.k) * this.width(),\n y: (1 - m1.k) * this.height()\n };\n }\n }", "function onMouseClick(e) {\n eventHandler.mouseClickHandler(e);\n}", "function sketchpad_mouseUp() {\n mouseDown=0;\n }", "function mousePressed() {\n session.mousePressed();\n}", "function mouse_clicked(){\n\t\treturn M.mouse_clicked;\n\t}", "function mouseup(e){\n\t\t// console.log(e);\n\n\t\tif (mouseIsDown){\n\t\t\tvar point = {\n\t\t\t\tx: e.offsetX,\n\t\t\t\ty: e.offsetY\n\t\t\t};\n\n\t\t\tcurrentLayout.selectFurnitureAtPoint(point);\n\t\t}\n\n\t\tmouseIsDown = false;\n\t}", "_mouseEvent(eventType, e)\n\t{\n\t\tswitch(eventType)\n\t\t{\n\t\t\tcase ComponentEvent.MOUSE_OVER:\n\t\t\t\tdocument.body.style.cursor = 'text';\n\t\t\t\tbreak;\n\n\t\t\tcase ComponentEvent.MOUSE_OUT:\n\t\t\t\tdocument.body.style.cursor = 'default';\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\tsuper._mouseEvent(eventType, e);\n\t}", "function mouseUpHandler(e) {\n //middle button\n if (e.which == 2) {\n container.off('mousemove');\n }\n }", "function customMouseUp(event) {\n\tGL_handleMouseUp(event);\n\t\n\tvar canvasOffset = $(\"#\" + BRAIN_CANVAS_ID).offset();\n var final_x_val = GL_lastMouseX + document.body.scrollLeft + document.documentElement.scrollLeft - Math.floor(canvasOffset.left);\n var final_y_val = GL_lastMouseY + document.body.scrollTop + document.documentElement.scrollTop - Math.floor(canvasOffset.top) + 1;\n\t\n if ((Math.abs(final_x_val - GL_mouseXRelToCanvas) > 5) || (Math.abs(final_y_val - GL_mouseYRelToCanvas) > 5)) {\n \tif (BASE_PICK_isMovieMode == false) {\n \t\tdrawScene();\n \t}\n } else {\n \tBASE_PICK_doVerticePick();\n }\n}", "function mousePressed() {y=1}", "function fireMouseOut(e) {\n console.log('out', e);\n\n }", "mouseClick(p) {\n }", "function runEvent(e) {\n console.log(`EVENT TYPE: ${e.type}`);\n\n heading.textContent = `MouseX ${e.offsetX} MouseY: ${e.offsetY}`; // it will display on heading the coords of mouse \n \n document.body.style.backgroundColor = `rgb(${e.offsetX}, ${e.offsetY}, 40 `; // change the background after the mouse coords\n}", "mouseDown(e){\n if(e.button == 0){\n e.stopPropagation();\n e.preventDefault();\n\n this.set('moveStart', true);\n\n const self = this;\n this.set('mouseMoveListener', function(e){\n if(self.mouseMove){\n self.mouseMove(e);\n }\n });\n\n this.set('mouseUpListener', function(e){\n if(self.mouseUp){\n self.mouseUp(e);\n }\n });\n\n document.addEventListener('mousemove', this.get('mouseMoveListener'));\n document.addEventListener('mouseup', this.get('mouseUpListener'));\n }\n }", "function dashboardMouseDown( event ) {\n // check this is not chart\n console.info(\"event : \", event);\n console.info(\"pos : \", $(this).position());\n var curpagePos = $(this).position();\n \n if (currentDashboard.checkChartHit((event.clientX - curpagePos.left),(event.clientY - curpagePos.top)))\n {\n return;\n }\n \n if (lasso) {\n lasso = null;\n }\n \n lasso = $('#selectRect')\n .attr(\"ox\",event.clientX)\n .attr(\"oy\",event.clientY)\n .attr(\"x\",event.clientX)\n .attr(\"y\",event.clientY)\n .attr(\"class\",\"lasso\")\n .css('top', event.clientY)\n .css('left', event.clientX)\n .width(0)\n .height(0)\n .show()\n ; \n }", "function bloquear_click_derecho(){\n if(document.layers)document.captureEvents(Event.MOUSEDOWN);\n document.onmousedown=evento_click_derecho;\n}", "function mousedownForCanvas(event)\n{\n global_mouseButtonDown = true;\n event.preventDefault(); //need? (maybe not on desktop)\n}", "function handleMouseOverDist(e) {\n\t\t\t\te.currentTarget.addClassName('active');\n\t\t\t\tvar parent = $(e.currentTarget).parent().get(0);\n\n\t\t\t\ttheInterface.emit('ui:emphElement', {\n\t\t\t\t\tid : e.currentTarget.getAttribute('id'),\n\t\t\t\t\tlayer : parent.getAttribute('data-layer')\n\t\t\t\t});\n\n\t\t\t}", "function mouseUp(e) {\n mousePress(e.button, false);\n}", "e_mouseEnter(e)\n\t{\n\t\t\n\t}", "function mouseUpHandler(e){\n //middle button\n if (e.which == 2){\n container.off('mousemove');\n }\n }", "function mouseUpHandler(e){\n //middle button\n if (e.which == 2){\n container.off('mousemove');\n }\n }", "function mouseUpHandler(e){\n //middle button\n if (e.which == 2){\n container.off('mousemove');\n }\n }", "function mouseUpHandler(e){\n //middle button\n if (e.which == 2){\n container.off('mousemove');\n }\n }", "function _handleMenuWindowMouseDown(e) {\n e.stopPropagation();\n }", "function mouseUpHandler(e){\r\n //middle button\r\n if (e.which == 2){\r\n container.off('mousemove');\r\n }\r\n }", "function mouseUpHandler(e){\r\n //middle button\r\n if (e.which == 2){\r\n container.off('mousemove');\r\n }\r\n }", "function mouseUpHandler(e){\r\n //middle button\r\n if (e.which == 2){\r\n container.off('mousemove');\r\n }\r\n }", "function mouseClicked(){\n // the x position will take the value of the horizontal mouse position\n xPos=mouseX;\n // the y position will take the value of the vertical mouse position\n yPos = mouseY;\n}", "function themeMouseMove() {\n screen_has_mouse = true;\n }", "function MouseUpHandler(e) {\n pan_context = false;\n}", "static onMapMousedown() {\n store.dispatch(mapMousedown())\n }", "onElementMouseUp(event) {}", "onElementMouseUp(event) {}" ]
[ "0.71278685", "0.7011503", "0.6923161", "0.6783577", "0.67772967", "0.67772967", "0.6727869", "0.6727869", "0.6727869", "0.6727869", "0.6727869", "0.67134", "0.66991264", "0.66991264", "0.66144776", "0.6577799", "0.6574535", "0.65693283", "0.6567548", "0.655783", "0.65392727", "0.65392727", "0.6538264", "0.652744", "0.65095526", "0.65030634", "0.64919144", "0.64817566", "0.64817566", "0.64817566", "0.64817566", "0.6477399", "0.6457878", "0.6457747", "0.64544505", "0.64517", "0.64517", "0.64517", "0.64512825", "0.6443819", "0.6443819", "0.6443819", "0.6443115", "0.6434672", "0.6433743", "0.64320517", "0.6430815", "0.64302874", "0.6427856", "0.6427856", "0.6417719", "0.64127713", "0.6400036", "0.6392288", "0.6383144", "0.6381883", "0.6379275", "0.63785195", "0.6374881", "0.6370306", "0.6370306", "0.63555604", "0.63531417", "0.6346246", "0.6340464", "0.63401693", "0.6336267", "0.6334163", "0.6333478", "0.633283", "0.633034", "0.6323828", "0.63230425", "0.63210416", "0.631501", "0.63067895", "0.6305779", "0.6302166", "0.63019335", "0.6298411", "0.62952405", "0.62925667", "0.6291043", "0.62875587", "0.6287185", "0.62864345", "0.6281724", "0.62804234", "0.62804234", "0.62804234", "0.62804234", "0.62661344", "0.6265944", "0.6265944", "0.6265944", "0.62595445", "0.625014", "0.6249387", "0.6248832", "0.62485373", "0.62485373" ]
0.0
-1
Detect whether the given el is in `painterRoot`.
function isLocalEl(instance, el) { var elTmp = el; var isLocal = false; while (elTmp && elTmp.nodeType !== 9 && !(isLocal = elTmp.domBelongToZr || elTmp !== el && elTmp === instance.painterRoot)) { elTmp = elTmp.parentNode; } return isLocal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "contains(element) {\n return this.root.contains(element.root);\n }", "function isElementInViewport(el) {\n // special bonus for those using jQuery\n if (el instanceof jQuery) {\n el = el[0];\n }\n\n var elRect = el.getBoundingClientRect();\n var windowRect = {\n top: 0,\n left: 0,\n bottom: $(window).height(),\n right: $(window).width(),\n height: $(window).height(),\n width: $(window).width()\n };\n\n elRect = clientRectIntersect(elRect, windowRect);\n if (elRect.width * elRect.height == 0) return false;\n\n var $scrollParents = scrollableParents(el);\n for (var i = 0; i < $scrollParents.length; i++) {\n var scrollParent = $scrollParents.get(i);\n var scrollParentRect = scrollParent.getBoundingClientRect();\n elRect = clientRectIntersect(elRect, scrollParentRect);\n if (elRect.width * elRect.height == 0) return false;\n }\n\n return true;\n}", "function isInView(e) {\n let parent = scrollableParent(e);\n let parentViewTop = parent.getBoundingClientRect().top;\n let parentViewBottom = parentViewTop + parent.getBoundingClientRect().height;\n\n var elemTop = e.getBoundingClientRect().top;\n var elemBottom = elemTop + (e.getBoundingClientRect().height/2);\n\n return (\n ((elemBottom <= parentViewBottom) && (elemTop >= parentViewTop)) && \n ((elemBottom > 0) && (elemTop <= window.innerHeight))\n );\n }", "function isAnyPartOfElementInViewport(el) {\n\n //ADD WHEN USE JQUERY\n\n if (typeof jQuery === \"function\" && el instanceof jQuery) {\n el = el[0];\n }\n\n const rect = el.getBoundingClientRect();\n // DOMRect { x: 8, y: 8, width: 100, height: 100, top: 8, right: 108, bottom: 108, left: 8 }\n const windowHeight = (window.innerHeight || document.documentElement.clientHeight);\n const windowWidth = (window.innerWidth || document.documentElement.clientWidth);\n\n // http://stackoverflow.com/questions/325933/determine-whether-two-date-ranges-overlap\n const vertInView = (rect.top <= windowHeight) && ((rect.top + rect.height) >= 0);\n const horInView = (rect.left <= windowWidth) && ((rect.left + rect.width) >= 0);\n\n return (vertInView && horInView);\n}", "function isInViewport(el) {\n var elementTop = el.offset().top;\n var elementBottom = elementTop + el.outerHeight();\n var viewportTop = jQuery(window).scrollTop();\n var viewportBottom = viewportTop + jQuery(window).height();\n return elementBottom > viewportTop && elementTop < viewportBottom;\n }", "isElementContained(parent, event) {\n var node = event.target?.parentNode;\n while (node != null) {\n if (node === parent) {\n return true;\n }\n node = node.parentNode;\n }\n return false;\n }", "function check(el) {\n var vh = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);\n var bottom = el.getBoundingClientRect().bottom;\n return bottom < vh;\n}", "function elementInViewport(el) {\n var top = el.offsetTop;\n var left = el.offsetLeft;\n var width = el.offsetWidth;\n var height = el.offsetHeight;\n\n while(el.offsetParent) {\n el = el.offsetParent;\n top += el.offsetTop;\n left += el.offsetLeft;\n }\n\n return (\n top < (window.pageYOffset + window.innerHeight) &&\n left < (window.pageXOffset + window.innerWidth) &&\n (top + height) > window.pageYOffset &&\n (left + width) > window.pageXOffset\n );\n }", "function isElementInViewport(el) {\n let top = el.offsetTop;\n let left = el.offsetLeft;\n let width = el.offsetWidth;\n let height = el.offsetHeight;\n\n while (el.offsetParent) {\n el = el.offsetParent;\n top += el.offsetTop;\n left += el.offsetLeft;\n }\n\n return (\n top < (window.pageYOffset + window.innerHeight) &&\n left < (window.pageXOffset + window.innerWidth) &&\n (top + height) > window.pageYOffset &&\n (left + width) > window.pageXOffset\n );\n }", "function elementInViewport(el) {\n\t\tvar top = el.offsetTop;\n\t\tvar left = el.offsetLeft;\n\t\tvar width = el.offsetWidth;\n\t\tvar height = el.offsetHeight;\n\n\t\twhile(el.offsetParent) {\n\t\t el = el.offsetParent;\n\t\t top += el.offsetTop;\n\t\t left += el.offsetLeft;\n\t\t}\n\n\t\treturn (\n\t\t top < (window.pageYOffset + window.innerHeight) &&\n\t\t left < (window.pageXOffset + window.innerWidth) &&\n\t\t (top + height) > window.pageYOffset &&\n\t\t (left + width) > window.pageXOffset\n\t\t);\n\t}", "function elementInViewport(el) {\n\t\tvar top = el.offsetTop;\n\t\tvar left = el.offsetLeft;\n\t\tvar width = el.offsetWidth;\n\t\tvar height = el.offsetHeight;\n\n\t\twhile(el.offsetParent) {\n\t\t el = el.offsetParent;\n\t\t top += el.offsetTop;\n\t\t left += el.offsetLeft;\n\t\t}\n\n\t\treturn (\n\t\t top < (window.pageYOffset + window.innerHeight) &&\n\t\t left < (window.pageXOffset + window.innerWidth) &&\n\t\t (top + height) > window.pageYOffset &&\n\t\t (left + width) > window.pageXOffset\n\t\t);\n\t}", "function elementInViewport(el) {\n\t\tvar top = el.offsetTop;\n\t\tvar left = el.offsetLeft;\n\t\tvar width = el.offsetWidth;\n\t\tvar height = el.offsetHeight;\n\n\t\twhile(el.offsetParent) {\n\t\t el = el.offsetParent;\n\t\t top += el.offsetTop;\n\t\t left += el.offsetLeft;\n\t\t}\n\n\t\treturn (\n\t\t top < (window.pageYOffset + window.innerHeight) &&\n\t\t left < (window.pageXOffset + window.innerWidth) &&\n\t\t (top + height) > window.pageYOffset &&\n\t\t (left + width) > window.pageXOffset\n\t\t);\n\t}", "function elementInViewport(el) {\n\tvar top = el.offsetTop;\n\tvar left = el.offsetLeft;\n\tvar width = el.offsetWidth;\n\tvar height = el.offsetHeight;\n\n\twhile (el.offsetParent) {\n\t\tel = el.offsetParent;\n\t\ttop += el.offsetTop;\n\t\tleft += el.offsetLeft;\n\t}\n\n\treturn (\n\t\ttop >= window.pageYOffset &&\n\t\tleft >= window.pageXOffset &&\n\t\t(top + height) <= (window.pageYOffset + window.innerHeight) &&\n\t\t(left + width) <= (window.pageXOffset + window.innerWidth)\n\t);\n}", "function elementInViewport(el) {\n var top = el.offsetTop;\n var left = el.offsetLeft;\n var width = el.offsetWidth;\n var height = el.offsetHeight;\n\n while (el.offsetParent) {\n el = el.offsetParent;\n top += el.offsetTop;\n left += el.offsetLeft;\n }\n\n return (\n\t\t top < (window.pageYOffset + window.innerHeight) &&\n\t\t left < (window.pageXOffset + window.innerWidth) &&\n\t\t (top + height) > window.pageYOffset &&\n\t\t (left + width) > window.pageXOffset\n\t\t);\n }", "function elementInViewport(el) {\r\n var top = el.offsetTop;\r\n var left = el.offsetLeft;\r\n var width = el.offsetWidth;\r\n var height = el.offsetHeight;\r\n\r\n while (el.offsetParent) {\r\n el = el.offsetParent;\r\n top += el.offsetTop;\r\n left += el.offsetLeft;\r\n }\r\n\r\n return (\r\n\t\t top < (window.pageYOffset + window.innerHeight) &&\r\n\t\t left < (window.pageXOffset + window.innerWidth) &&\r\n\t\t (top + height) > window.pageYOffset &&\r\n\t\t (left + width) > window.pageXOffset\r\n\t\t);\r\n }", "function isScrolledIntoView($elem) {\n // Get scroll position and div position\n var docViewTop = $(window).scrollTop();\n var docViewBottom = docViewTop + $(window).height();\n var elemTop = $elem.offset().top;\n var elemBottom = elemTop + $elem.height();\n // Return true if element is within view\n return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));\n }", "function elementInViewport(el) {\n offset = elementPosition(el);\n var up = offset[0];\n var left = offset[1];\n var width = offset[2];\n var height = offset[3];\n return up < window.pageYOffset + window.innerHeight && left < window.pageXOffset + window.innerWidth && (up + height) > window.pageYOffset && (left + width) > window.pageXOffset;\n}", "function elementInViewport(el) {\n\t\tvar el = el[0] || el,\n\t\t\ttop = el.offsetTop,\n\t\t\tleft = el.offsetLeft,\n\t\t\twidth = el.offsetWidth,\n\t\t\theight = el.offsetHeight;\n\n\t\twhile (el.offsetParent) {\n\t\t\tel = el.offsetParent;\n\t\t\ttop += el.offsetTop;\n\t\t\tleft += el.offsetLeft;\n\t\t}\n\n\t\treturn (\n\t\t\ttop < (window.pageYOffset + window.innerHeight) &&\n\t\t\tleft < (window.pageXOffset + window.innerWidth) &&\n\t\t\t(top + height) > window.pageYOffset &&\n\t\t\t(left + width) > window.pageXOffset\n\t\t);\n\t}", "function element_contains(el, x, y) {\n\tif (el === \"\") return null; //Empty slots contain nothing.\n\tif (ctx.isPointInPath(element_path(el).path, x - el.x, y - el.y)) return el;\n\tfor (let attr of types[el.type].children || [])\n\t\tfor (let child of el[attr] || []) {\n\t\t\tlet c = element_contains(child, x, y);\n\t\t\tif (c) return c;\n\t\t}\n\treturn null;\n}", "function isElementInViewport (el) {\n //ADD WHEN USE JQUERY\n if (typeof jQuery === \"function\" && el instanceof jQuery) {\n el = el[0];\n }\n //\n var rect = el.getBoundingClientRect();\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\n );\n }", "function elementInViewport(el) \n{ \n var top = el.offsetTop;\n var left = el.offsetLeft;\n var width = el.offsetWidth;\n var height = el.offsetHeight;\n\n while (el.offsetParent) {\n el = el.offsetParent;\n top += el.offsetTop;\n left += el.offsetLeft;\n }\n\n return (\n top >= window.pageYOffset &&\n left >= window.pageXOffset &&\n (top + height) <= (window.pageYOffset + window.innerHeight) &&\n (left + width) <= (window.pageXOffset + window.innerWidth)\n );\n}", "containsEventTarget(target) {\n debug(LOG,'containsEventTarget', {target});\n\n return this.element.getDOMNode().contains(target)\n\n }", "function isScrolledIntoView(el){\n \n var rect = el.getBoundingClientRect();\n \n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /* or $(window).height() */\n rect.right <= (window.innerWidth || document.documentElement.clientWidth) /* or $(window).width() */\n );\n \n}", "function elementInViewport(el) {\n var top = el.offsetTop;\n var left = el.offsetLeft;\n var width = el.offsetWidth;\n var height = el.offsetHeight;\n \n while(el.offsetParent) {\n el = el.offsetParent;\n top += el.offsetTop;\n left += el.offsetLeft;\n }\n \n return (\n top < (window.pageYOffset + window.innerHeight) &&\n left < (window.pageXOffset + window.innerWidth) &&\n (top + height) > window.pageYOffset &&\n (left + width) > window.pageXOffset\n );\n \n}", "elementInViewport2(el) {\n var top = el.offsetTop;\n var left = el.offsetLeft;\n var width = el.offsetWidth;\n var height = el.offsetHeight;\n\n while(el.offsetParent) {\n el = el.offsetParent;\n top += el.offsetTop;\n left += el.offsetLeft;\n }\n \n return (\n top < (window.pageYOffset + window.innerHeight) &&\n left < (window.pageXOffset + window.innerWidth) &&\n (top + height) > window.pageYOffset &&\n (left + width) > window.pageXOffset\n );\n }", "function elementInViewport(el) {\r\n\tvar top = el.offsetTop;\r\n\tvar left = el.offsetLeft;\r\n\tvar width = el.offsetWidth;\r\n\tvar height = el.offsetHeight;\r\n\twhile(el.offsetParent) {\r\n\t\tel = el.offsetParent;\r\n\t\ttop += el.offsetTop;\r\n\t\tleft += el.offsetLeft;\r\n\t}\r\n\treturn (\r\n\t\ttop >= window.pageYOffset &&\r\n\t\tleft >= window.pageXOffset &&\r\n\t\t(top + height) <= (window.pageYOffset + window.innerHeight) &&\r\n\t\t(left + width) <= (window.pageXOffset + window.innerWidth)\r\n\t);\r\n}", "_scrollableContainsElement(scrollable, elementRef) {\n let element = elementRef.nativeElement;\n let scrollableElement = scrollable.getElementRef().nativeElement;\n // Traverse through the element parents until we reach null, checking if any of the elements\n // are the scrollable's element.\n do {\n if (element == scrollableElement) {\n return true;\n }\n } while (element = element.parentElement);\n return false;\n }", "function elementInViewport(el) {\n let top = el.offsetTop;\n let left = el.offsetLeft;\n let width = el.offsetWidth;\n let height = el.offsetHeight;\n\n while(el.offsetParent) {\n el = el.offsetParent;\n top += el.offsetTop;\n left += el.offsetLeft;\n }\n\n return (\n top >= window.pageYOffset &&\n left >= window.pageXOffset &&\n (top + height) <= (window.pageYOffset + window.innerHeight) &&\n (left + width) <= (window.pageXOffset + window.innerWidth)\n );\n}", "function isScrolledIntoView(elem)\n\t\t\t\t{\n if (elem == null) {\n return;\n }\n\t\t\t\t\tvar docViewTop = $(window).scrollTop();\n\t\t\t\t\tvar docViewMiddle = docViewTop + (0.5 * $(window).height());\n\t\t\t\t\tvar docViewBottom = docViewTop + $(window).height();\n\t\t\t\t\tvar elemTop = $(elem).offset().top;\n\t\t\t\t\tvar elemBottom = elemTop + $(elem).height();\n\t\t\t\t\t//return ((elemBottom >= docViewTop) && (elemTop <= docViewBottom));\n\t\t\t\t\treturn ((elemBottom >= docViewMiddle) && (elemTop <= docViewMiddle));\n\t\t\t\t}", "function isElementInView(elem) {\n var viewBottom = viewTop + wHeight;\n\n //Get the position of the element on the page\n var elemTop = Math.round(elem.offset().top);\n var elemBottom = elemTop + elem.height();\n\n return ((elemTop < viewBottom) && (elemBottom > viewTop));\n}", "function isElementInViewport(el) {\n\n var rect = el.getBoundingClientRect();\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\n );\n }", "function isElementInViewport(el) {\n const rect = el.getBoundingClientRect();\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth));\n\n }", "function isElementInViewport(el) {\r\n var rect = el.getBoundingClientRect();\r\n return (\r\n rect.top >= 0 &&\r\n rect.left >= 0 &&\r\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\r\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\r\n );\r\n }", "function isScrolledIntoView(elem) {\n var docViewTop = $(window).scrollTop();\n var docViewBottom = docViewTop + $(window).height();\n \n var elemTop = $(elem).offset().top;\n var elemBottom = elemTop + $(elem).height();\n \n return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));\n }", "function hasIntersection(tmpRect, svg) {\n if (svg == null || svg == \"undefined\") {\n return false;\n }\n var el = document.getElementById(svg.node.id);\n var childNodes = el.childNodes;\n var check = false;\n if (childNodes.length == 0) {\n return checkInterscetion(tmpRect, el);\n } else {\n for (var c in childNodes) {\n if (childNodes[c] instanceof SVGElement) {\n check = checkInterscetion(tmpRect, childNodes[c]);\n if (check) {\n return check;\n }\n }\n\n }\n }\n return check;\n}", "function _hasAncestor(elem, ancestor) {\n let found = false\n let el = elem\n while (!found && (el = el.parentNode)) {\n if (el == ancestor) {\n found = true\n }\n }\n return found\n}", "_containsFocus() {\n if (!this._document || !this._elementRef) {\n return false;\n }\n const stepperElement = this._elementRef.nativeElement;\n const focusedElement = this._document.activeElement;\n return stepperElement === focusedElement || stepperElement.contains(focusedElement);\n }", "function elementInViewport2(el) {\n var top = el.offsetTop;\n var left = el.offsetLeft;\n var width = el.offsetWidth;\n var height = el.offsetHeight;\n \n while(el.offsetParent) {\n el = el.offsetParent;\n top += el.offsetTop;\n left += el.offsetLeft;\n }\n \n return (\n top < (window.pageYOffset + window.innerHeight) &&\n left < (window.pageXOffset + window.innerWidth) &&\n (top + height) > window.pageYOffset &&\n (left + width) > window.pageXOffset\n );\n }", "function element_in_scroll(elem) {\n var docViewTop = $(window).scrollTop();\n var docViewBottom = docViewTop + $(window).height();\n\n var elemTop = $(elem).offset().top;\n var elemBottom = elemTop - $(elem).height() - 100;\n\n return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));\n }", "function contains(root, selectorOrElement) {\n const element = getOne(selectorOrElement)\n // We cannot use `root.contains(element)` as <form> elements with an input named \"contains\"\n // would define `root.contains` to return that input (GH#507).\n return Node.prototype.contains.call(root, element)\n }", "function hasParent(el, test) {\n\twhile (test) {\n\t\tif (test === el.parentElement) {\n\t\t\treturn true;\n\t\t}\n\t\ttest = test.parentElement;\n\t}\n\treturn false;\n}", "function isElementInViewport(el) {\n var rect = el.getBoundingClientRect();\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document. documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document. documentElement.clientWidth)\n );\n}", "function isElementInViewport(el) {\n\t\tvar rect = el.getBoundingClientRect();\n\t\treturn (\n\t\t\trect.top >= 0 &&\n\t\t\trect.left >= 0 &&\n\t\t\trect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n\t\t\trect.right <= (window.innerWidth || document.documentElement.clientWidth)\n\t\t);\n\t}", "_scrollableContainsElement(scrollable, elementOrElementRef) {\n let element = coerceElement(elementOrElementRef);\n let scrollableElement = scrollable.getElementRef().nativeElement;\n // Traverse through the element parents until we reach null, checking if any of the elements\n // are the scrollable's element.\n do {\n if (element == scrollableElement) {\n return true;\n }\n } while ((element = element.parentElement));\n return false;\n }", "function isElementInsideNav(el) {\n\t\tconst expandedLevel1El = rootEl.querySelector('[data-o-hierarchical-nav-level=\"1\"] > [aria-expanded=\"true\"]');\n\t\tlet expandedMegaDropdownEl;\n\t\tlet allLevel1Els;\n\n\t\tif (expandedLevel1El) {\n\t\t\texpandedMegaDropdownEl = getMegaDropdownEl(expandedLevel1El);\n\t\t\tif (expandedMegaDropdownEl && expandedMegaDropdownEl.contains(el)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tallLevel1Els = rootEl.querySelectorAll('[data-o-hierarchical-nav-level=\"1\"] > li');\n\n\t\tfor (let c = 0, l = allLevel1Els.length; c < l; c++) {\n\t\t\tif (allLevel1Els[c].contains(el)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "function isInView(el, vbox) {\n var bbox = util.transformedBoundingBox(el);\n //vbox = vbox || bbox;\n var result = (bbox.x > -vbox.x - bbox.width &&\n bbox.y > -vbox.y - bbox.height &&\n bbox.x < -vbox.x + vbox.width &&\n bbox.y < -vbox.y + vbox.height);\n return result;\n }", "function isScrolledIntoView(elem){\n var docViewTop = $(window).scrollTop();\n var docViewBottom = docViewTop + $(window).height();\n\n var elemTop = $(elem).offset().top;\n var elemBottom = elemTop + $(elem).height();\n\n return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));\n }", "function isElementInViewport(el) {\r\n // check for jQuery\r\n if (typeof jQuery === \"function\" && el instanceof jQuery) {\r\n el = el[0];\r\n }\r\n var rect = el.getBoundingClientRect();\r\n return (\r\n (rect.top <= 0\r\n && rect.bottom >= 0)\r\n ||\r\n (rect.bottom >= (window.innerHeight || document.documentElement.clientHeight) &&\r\n rect.top <= (window.innerHeight || document.documentElement.clientHeight))\r\n ||\r\n (rect.top >= 0 &&\r\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight))\r\n );\r\n}", "function isScrolledIntoView(elem) {\n var docViewTop = $(window).scrollTop();\n var docViewBottom = docViewTop + $(window).height();\n\n var elemTop = $(elem).offset().top;\n var elemBottom = elemTop + $(elem).height();\n\n return elemBottom <= docViewBottom && elemTop >= docViewTop;\n }", "function isElementInViewport(el) {\n\t if (typeof $ === \"function\" && el instanceof $) el = el[0];\n\t var rect = el.getBoundingClientRect();\n\t return rect.bottom >= 0 && rect.right >= 0 && rect.top <= (window.innerHeight || document.documentElement.clientHeight) && rect.left <= (window.innerWidth || document.documentElement.clientWidth);\n\t }", "function isElementInViewport(el) {\n const rect = el.getBoundingClientRect();\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <=\n (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\n );\n }", "function isElementInViewport(el) {\n var rect = el.getBoundingClientRect();\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\n );\n }", "function isElementInViewport(el) {\n var rect = el.getBoundingClientRect();\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\n );\n }", "function isElementInViewport(el) {\n var rect = el.getBoundingClientRect();\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\n );\n }", "function isElementInViewport(el) {\n var rect = el.getBoundingClientRect();\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\n );\n }", "function isElementInViewport(el) {\n var rect = el.getBoundingClientRect();\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <=\n (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\n );\n }", "_scrollableContainsElement(scrollable, elementOrElementRef) {\n let element = (0,_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__.coerceElement)(elementOrElementRef);\n let scrollableElement = scrollable.getElementRef().nativeElement; // Traverse through the element parents until we reach null, checking if any of the elements\n // are the scrollable's element.\n\n do {\n if (element == scrollableElement) {\n return true;\n }\n } while (element = element.parentElement);\n\n return false;\n }", "function isElementInViewport(el) {\r\n var rect = el.getBoundingClientRect();\r\n return (\r\n rect.top >= 0 &&\r\n rect.left >= 0 &&\r\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\r\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\r\n );\r\n }", "function isElementInViewport(el) {\r\n var rect = el.getBoundingClientRect();\r\n return (\r\n rect.top >= 0 &&\r\n rect.left >= 0 &&\r\n rect.bottom <=\r\n (window.innerHeight || document.documentElement.clientHeight) &&\r\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\r\n );\r\n }", "_scrollableContainsElement(scrollable, elementOrElementRef) {\n let element = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__[\"coerceElement\"])(elementOrElementRef);\n let scrollableElement = scrollable.getElementRef().nativeElement;\n // Traverse through the element parents until we reach null, checking if any of the elements\n // are the scrollable's element.\n do {\n if (element == scrollableElement) {\n return true;\n }\n } while (element = element.parentElement);\n return false;\n }", "function isElementInViewport(el) {\r\n\r\n //special bonus for those using jQuery\r\n if (typeof jQuery === \"function\" && el instanceof jQuery) {\r\n el = el[0];\r\n }\r\n\r\n var rect = el.getBoundingClientRect();\r\n\r\n return (\r\n rect.top >= 0 &&\r\n rect.left >= 0 &&\r\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /*or $(window).height() */\r\n rect.right <= (window.innerWidth || document.documentElement.clientWidth) /*or $(window).width() */\r\n );\r\n}", "_isAttachedToDOM() {\n const element = this._elementRef.nativeElement;\n if (element.getRootNode) {\n const rootNode = element.getRootNode();\n // If the element is inside the DOM the root node will be either the document\n // or the closest shadow root, otherwise it'll be the element itself.\n return rootNode && rootNode !== element;\n }\n // Otherwise fall back to checking if it's in the document. This doesn't account for\n // shadow DOM, however browser that support shadow DOM should support `getRootNode` as well.\n return document.documentElement.contains(element);\n }", "function isScrolledIntoView(elem)\n {\n var docViewTop = $(window).scrollTop();\n var docViewBottom = docViewTop + $(window).height();\n\n var elemTop = $(elem).offset().top;\n var elemBottom = elemTop + $(elem).height();\n\n return ((elemBottom <= docViewBottom+$(elem).height()) && (elemTop >= docViewTop-$(elem).height())); /* partially */\n /* return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop)); // fully */\n }", "function isScrolledIntoView(elem) {\n var docViewTop = $(window).scrollTop();\n var docViewBottom = docViewTop + $(window).height();\n var elemTop = $(elem).offset().top;\n var elemBottom = elemTop + $(elem).height();\n return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));\n }", "function isScrolledIntoView(elem) {\n var docViewTop = $(window).scrollTop();\n var docViewBottom = docViewTop + $(window).height();\n var elemTop = $(elem).offset().top;\n var elemBottom = elemTop + $(elem).height();\n return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));\n }", "function isElementInViewport(el) {\r\n const rect = el.getBoundingClientRect();\r\n return (\r\n rect.top >= 0 &&\r\n rect.left >= 0 &&\r\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\r\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\r\n );\r\n }", "function isElementInViewport(el) {\n var rect = el.getBoundingClientRect();\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\n );\n}", "function isElementInViewport(el) {\n var rect = el.getBoundingClientRect();\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\n );\n}", "function isElementInViewport(el) {\n let rect = el.getBoundingClientRect();\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\n );\n }", "function elementHasElement(parent, lookingFor) {\n\tfor (var i = 0; i < parent.children.length; i++) {\n\t\tif (parent.children[i] == lookingFor) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\tif (elementHasElement(parent.children[i], lookingFor)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n}", "function isScrolledIntoView(elem) {\n var docViewTop = $(window).scrollTop();\n var docViewBottom = docViewTop + $(window).height();\n\n var elemTop = $(elem).offset().top;\n var elemBottom = elemTop + $(elem).height();\n\n return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));\n }", "function isScrolledIntoView(elem) {\n var docViewTop = $(window).scrollTop();\n var docViewBottom = docViewTop + $(window).height();\n\n var elemTop = $(elem).offset().top;\n var elemBottom = elemTop + $(elem).height();\n\n return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));\n }", "function isElementInViewport (el) {\n var rect = el.getBoundingClientRect();\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /*or $(window).height() */\n rect.right <= (window.innerWidth || document.documentElement.clientWidth) /*or $(window).width() */\n );\n }", "function isElementInViewport(el) {\n let rect = el.getBoundingClientRect();\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= ((window.innerHeight * 1.15) || document.documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document.documentElement.clientWidth)\n );\n}", "function isScrolledIntoView(elem) {\n\t var docViewTop = $(window).scrollTop();\n\t var docViewBottom = docViewTop + $(window).height();\n\n\t var elemTop = $(elem).offset().top;\n\t var elemBottom = elemTop + $(elem).height();\n\n\t return ((elemBottom >= docViewTop) && (elemTop <= docViewBottom)\n\t && (elemBottom <= docViewBottom) && (elemTop >= docViewTop) );\n\t }", "function isScrolledIntoView(elem) {\n var $elem = $(elem);\n var $window = $(window);\n\n var docViewTop = $window.scrollTop();\n var docViewBottom = docViewTop + $window.height();\n\n var elemTop = $elem.offset().top;\n var elemBottom = elemTop + $elem.height();\n\n return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));\n}", "function isElementInViewport(el) {\n\t\tvar rect = el.getBoundingClientRect();\n\t\treturn (\n\t\t\trect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /*or $(window).height() */\n\t\t\trect.right <= (window.innerWidth || document.documentElement.clientWidth) /*or $(window).width() */);\n\t}", "function isScrolledIntoView(elem){\r\n var docViewTop = $(window).scrollTop();\r\n var docViewBottom = docViewTop + $(window).height();\r\n\r\n var elemTop = $(elem).offset().top;\r\n var elemBottom = elemTop + $(elem).height();\r\n\r\n return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));\r\n}", "function isScrolledIntoView(elem) {\n var docViewTop = jQuery(window).scrollTop();\n var docViewBottom = docViewTop + jQuery(window).height();\n\n var elemTop = jQuery(elem).offset().top;\n var elemBottom = elemTop + jQuery(elem).height();\n\n return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));\n}", "_isFocusWithinDrawer() {\n var _a;\n const activeEl = (_a = this._doc) === null || _a === void 0 ? void 0 : _a.activeElement;\n return !!activeEl && this._elementRef.nativeElement.contains(activeEl);\n }", "function isElementInViewport(elem) {\r\n var $elem = $(elem);\r\n\r\n if($elem.offset() != undefined) {\r\n\r\n // Get the scroll position of the page.\r\n var scrollElem = ((navigator.userAgent.toLowerCase().indexOf('webkit') != -1) ? 'body' : 'html');\r\n var viewportTop = $(scrollElem).scrollTop();\r\n var viewportBottom = viewportTop + $(window).height();\r\n\r\n // Get the position of the element on the page.\r\n var elemTop = Math.round($elem.offset().top);\r\n var elemBottom = elemTop + $elem.height();\r\n\r\n return ((elemTop < viewportBottom) && (elemBottom > viewportTop));\r\n\r\n }\r\n }", "function elemIsVisible(el) {\n var rect = el.getBoundingClientRect();\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document. documentElement.clientHeight) &&\n rect.right <= (window.innerWidth || document. documentElement.clientWidth)\n );\n}", "function isElementInViewport(el) {\n\t var rect = el.getBoundingClientRect();\n\t return (\n\t\trect.top >= 0 &&\n\t\trect.left >= 0 &&\n\t\trect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n\t\trect.right <= (window.innerWidth || document.documentElement.clientWidth)\n\t );\n\t}", "function isScrolledIntoView(el) {\n var elemTop = el.getBoundingClientRect().top;\n var elemBottom = el.getBoundingClientRect().bottom;\n var isVisible = (elemTop >= 0) && (elemBottom <= window.innerHeight);\n return isVisible;\n}", "has(el) {\n\t const t = this._elements.indexOf(el);\n\t return t === -1 ? 0 : 1;\n\t }", "function isScrolledIntoView(elem) {\n var docViewTop = $(window).scrollTop();\n var docViewBottom = docViewTop + $(window).height();\n var elemTop = $(elem).offset().top;\n var elemBottom = elemTop + $(elem).height();\n return (\n (elemBottom <= docViewBottom * 1.03 && elemTop * 1.2 >= docViewTop) ||\n (elemBottom >= docViewBottom && elemTop <= docViewTop)\n );\n}", "function isScrolledIntoView(elem) {\r\n var docViewTop = $(window).scrollTop();\r\n var docViewBottom = docViewTop + $(window).height();\r\n var elemTop = $(elem).offset().top;\r\n var elemBottom = elemTop + $(elem).height();\r\n return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));\r\n}", "function isScrolledIntoView(el){\n\tvar $el = $(el);\n\treturn ($el.offset().top + $el.outerHeight(true) <= $(window).scrollTop() + $(window).height()) && ($el.offset().top + $el.outerHeight(true) > $(window).scrollTop());\n}", "function isElementInViewport(el) {\n // Source: https://upokary.com/how-to-check-if-an-element-is-visible-in-the-current-viewport-as-we-scroll/\n let rect = el.getBoundingClientRect();\n\n // if the bounderies inside the current Viewport\n return rect.bottom > 0 &&\n rect.right > 0 &&\n rect.left < (window.innerWidth || document.documentElement.clientWidth) &&\n rect.top < (window.innerHeight || document.documentElement.clientHeight);\n}", "function isElementInViewport(elem) {\n var $elem = $(elem);\n\n // Get the scroll position of the page.\n var scrollElem = ((navigator.userAgent.toLowerCase().indexOf('webkit') != -1) ? 'body' : 'html');\n var viewportTop = $(scrollElem).scrollTop();\n var viewportBottom = viewportTop + $(window).height();\n\n // Get the position of the element on the page.\n var elemTop = Math.round( $elem.offset().top);\n var elemBottom = elemTop + $elem.parent().height();\n return ((elemTop < viewportBottom) && (elemBottom > viewportTop));\n}", "function isElementInViewport(elem) {\n var $elem = $(elem);\n\n // Get the scroll position of the page.\n var scrollElem = ((navigator.userAgent.toLowerCase().indexOf('webkit') != -1) ? 'body' : 'html');\n var viewportTop = $(scrollElem).scrollTop();\n var viewportBottom = viewportTop + $(window).height();\n\n // Get the position of the element on the page.\n var elemTop = Math.round( $elem.offset().top );\n var elemBottom = elemTop + $elem.height();\n\n return ((elemTop < viewportBottom) && (elemBottom > viewportTop));\n }", "function isInViewport(el) {\n const rect = el.getBoundingClientRect();\n console.log(rect);\n console.log(window.innerHeight);\n console.log(document.documentElement.clientHeight);\n console.log(rect.bottom<=(window.innerHeight || document.documentElement.clientHeight));\n return (\n rect.top <= 150 &&\n rect.bottom >= 150\n );\n}", "function dw_contained(oNode, oCont) {\r\n if (!oNode) return; // in case alt-tab away while hovering (prevent error)\r\n while ( oNode = oNode.parentNode ) if ( oNode == oCont ) return true;\r\n return false;\r\n}", "function isElement(el) {\n return el instanceof Object && el && el.nodeType === 1;\n}", "function isElementInViewport(el, viewportTarget) {\n // Get position data of the element\n var rect = el.getBoundingClientRect();\n // Convert to array\n var targets = _Type__WEBPACK_IMPORTED_MODULE_6__[\"isArray\"](viewportTarget) ? viewportTarget : viewportTarget ? [viewportTarget] : [];\n // Should we measure against specific viewport element?\n if (targets.length) {\n for (var i = 0; i < targets.length; i++) {\n var target = targets[i];\n // Check if viewport itself is visible\n if (!isElementInViewport(target)) {\n return false;\n }\n // Check if element is visible within the viewport\n var viewportRect = target.getBoundingClientRect();\n if (rect.top >= 0 &&\n rect.left >= 0 &&\n rect.top <= (viewportRect.top + viewportRect.height) &&\n rect.left <= (viewportRect.left + viewportRect.width)) {\n return true;\n }\n }\n return false;\n }\n return (rect.top >= 0 &&\n rect.left >= 0 &&\n rect.top <= (window.innerHeight || document.documentElement.clientHeight) &&\n rect.left <= (window.innerWidth || document.documentElement.clientWidth));\n}", "function isElementInViewport(el) {\n //size of the element and its poisiton relative to viewport\n const rect = el.getBoundingClientRect();\n //true if top, and left position is larger than zero and bottom is below innerheight and right is before the width\n return (\n rect.top >= 0 &&\n rect.left >= 0 &&\n rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n rect.right <= (1100 || document.documentElement.clientWidth)\n );\n }", "function isScrolledIntoView(elem)\n{\n var docViewTop = $(window).scrollTop();\n var docViewBottom = docViewTop + $(window).height();\n var elemTop = $(elem).offset().top;\n var elemBottom = elemTop + $(elem).height();\n return ((elemBottom >= docViewTop) && (elemTop <= docViewBottom) && (elemBottom <= docViewBottom) && (elemTop >= docViewTop));\n}", "function isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement;\n }", "function viewportChecker(elem) {\n let secPosition = elem.getBoundingClientRect();\n return (secPosition.top >= 0);\n}" ]
[ "0.6508953", "0.6346906", "0.61302805", "0.6118589", "0.60854", "0.60770774", "0.6059435", "0.60318965", "0.60308576", "0.5997771", "0.5997771", "0.5997771", "0.5984568", "0.59779656", "0.597612", "0.5967062", "0.5961217", "0.5957339", "0.5956322", "0.5937471", "0.59357744", "0.59190625", "0.59159344", "0.59153", "0.59135854", "0.59086347", "0.59075695", "0.5896821", "0.5888209", "0.588632", "0.5879642", "0.58689684", "0.5863025", "0.58584106", "0.58535373", "0.5851758", "0.585063", "0.5848687", "0.5847594", "0.58462894", "0.5845771", "0.5839851", "0.58352935", "0.5830895", "0.58305806", "0.5827631", "0.5822474", "0.58218807", "0.5821478", "0.5819684", "0.58175045", "0.5816871", "0.5816871", "0.5816871", "0.5816871", "0.5814903", "0.58144474", "0.5811035", "0.58099806", "0.58084446", "0.58082813", "0.5798003", "0.57979006", "0.5793502", "0.5793502", "0.57853734", "0.5784702", "0.5784702", "0.5776954", "0.5775193", "0.57715946", "0.57686263", "0.576351", "0.57604945", "0.5758346", "0.57555264", "0.5753877", "0.57517934", "0.5751325", "0.57469904", "0.57422954", "0.5739881", "0.5735466", "0.5734424", "0.57284194", "0.57269275", "0.5719808", "0.5717227", "0.5711385", "0.57112384", "0.5709617", "0.57020444", "0.5700056", "0.5698219", "0.56927824", "0.56923467", "0.56723285", "0.5661999", "0.56578535" ]
0.59724075
16
Make a fake event but not change the original event, becuase the global event probably be used by other listeners not belonging to zrender.
function FakeGlobalEvent(instance, event) { this.type = event.type; this.target = this.currentTarget = instance.dom; this.pointerType = event.pointerType; // Necessray for the force calculation of zrX, zrY this.clientX = event.clientX; this.clientY = event.clientY; // Because we do not mount global listeners to touch events, // we do not copy `targetTouches` and `changedTouches` here. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function InternalEvent() { }", "function InternalEvent() { }", "function InternalEvent() { }", "function InternalEvent() { }", "function InternalEvent() { }", "function InternalEvent() {}", "function FakeEvent(type, bubbles, cancelable, target) {\r\n\t\t this.initEvent(type, bubbles, cancelable, target);\r\n\t\t }", "function fakeEvent(el, type) {\n var event;\n\n if (document.createEvent) {\n event = document.createEvent('HTMLEvents');\n event.initEvent(type, true, true);\n } else {\n event = document.createEventObject();\n event.eventType = 'on' + type;\n }\n\n if (document.createEvent) {\n el.dispatchEvent(event);\n } else {\n el.fireEvent(event.eventType, event);\n }\n }", "function fakeEvent(){\n const event = document.createEvent(\"HTMLEvents\")\n event.initEvent(\"change\",false,true)\n document.getElementById(\"choixTypeMedia\").dispatchEvent(event)\n}", "function dumbListener2(event) {}", "function dumbListener2(event) {}", "function markTouch(event) {\n event && (event.zrByTouch = true);\n} // function markTriggeredFromLocal(event) {", "function markTouch(event) {\n event && (event.zrByTouch = true);\n} // function markTriggeredFromLocal(event) {", "function uueventfire(node, // @param Node: target node\r\n eventType, // @param String: \"click\", \"custom\"\r\n param) { // @param Mix(= void): param\r\n // @return Node:\r\n if (uu.event.has(node, eventType)) {\r\n\r\n var fakeEventObjectEx = {\r\n stopPropagation: uu.nop,\r\n preventDefault: uu.nop,\r\n node: node, // current target\r\n name: eventType, // event name\r\n code: 0, // 0: unknown\r\n src: node, // event source\r\n rel: node,\r\n px: 0,\r\n py: 0,\r\n ox: 0,\r\n oy: 0,\r\n type: eventType, // event type\r\n param: param\r\n };\r\n\r\n node.uuEventEvaluatorHash[eventType].forEach(function(evaluator) {\r\n evaluator.call(node, fakeEventObjectEx, true); // fromCustomEvent = true\r\n });\r\n }\r\n return node;\r\n}", "function a(e) {\n return function(t, n) {\n var o;\n h.isValidElement(t) && E(!1, \"TestUtils.Simulate expects a component instance and not a ReactElement.TestUtils.Simulate will not work if you are using shallow rendering.\"), \n S.isDOMComponent(t) ? o = w(t) : t.tagName && (o = t);\n var i = d.eventNameDispatchConfigs[e], a = new r();\n a.target = o, a.type = e.toLowerCase();\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var s = new x(i, g.getInstanceFromNode(o), a, o);\n // Since we aren't using pooling, always persist the event. This will make\n // sure it's marked and won't warn when setting additional properties.\n s.persist(), l(s, n), i.phasedRegistrationNames ? f.accumulateTwoPhaseDispatches(s) : f.accumulateDirectDispatches(s), \n b.batchedUpdates(function() {\n p.enqueueEvents(s), p.processEventQueue(!0);\n });\n };\n }", "function u(e) {\n return function(t, n) {\n var o = new r(e);\n l(o, n), S.isDOMComponent(t) ? S.simulateNativeEventOnDOMComponent(e, t, o) : t.tagName && // Will allow on actual dom nodes.\n S.simulateNativeEventOnNode(e, t, o);\n };\n }", "static setEvent(event) {\n contextEvent.set(event);\n }", "function InputEvent() {\n var _this14 = this;\n\n var globals = window || global;\n\n // Slightly odd way construct our object. This way methods are force bound.\n // Used to test for duplicate library.\n $.extend(this, {\n\n // For browsers that do not support isTrusted, assumes event is native.\n isNativeEvent: function isNativeEvent(evt) {\n return evt.originalEvent && evt.originalEvent.isTrusted !== false;\n },\n\n fakeInputEvent: function fakeInputEvent(evt) {\n if (_this14.isNativeEvent(evt)) {\n $(evt.target).trigger('input');\n }\n },\n\n misbehaves: function misbehaves(evt) {\n if (_this14.isNativeEvent(evt)) {\n _this14.behavesOk(evt);\n $(document).on('change.inputevent', evt.data.selector, _this14.fakeInputEvent);\n _this14.fakeInputEvent(evt);\n }\n },\n\n behavesOk: function behavesOk(evt) {\n if (_this14.isNativeEvent(evt)) {\n $(document) // Simply unbinds the testing handler\n .off('input.inputevent', evt.data.selector, _this14.behavesOk).off('change.inputevent', evt.data.selector, _this14.misbehaves);\n }\n },\n\n // Bind the testing handlers\n install: function install() {\n if (globals.inputEventPatched) {\n return;\n }\n globals.inputEventPatched = '0.0.3';\n var _arr = ['select', 'input[type=\"checkbox\"]', 'input[type=\"radio\"]', 'input[type=\"file\"]'];\n for (var _i = 0; _i < _arr.length; _i++) {\n var selector = _arr[_i];\n $(document).on('input.inputevent', selector, { selector: selector }, _this14.behavesOk).on('change.inputevent', selector, { selector: selector }, _this14.misbehaves);\n }\n },\n\n uninstall: function uninstall() {\n delete globals.inputEventPatched;\n $(document).off('.inputevent');\n }\n\n });\n }", "function fixEvent ( e ) {\n\n\t\t// Prevent scrolling and panning on touch events, while\n\t\t// attempting to slide. The tap event also depends on this.\n\t\te.preventDefault();\n\n\t\t// Filter the event to register the type, which can be\n\t\t// touch, mouse or pointer. Offset changes need to be\n\t\t// made on an event specific basis.\n\t\tvar touch = e.type.indexOf('touch') === 0\n\t\t\t,mouse = e.type.indexOf('mouse') === 0\n\t\t\t,pointer = e.type.indexOf('pointer') === 0\n\t\t\t,x,y, event = e;\n\n\t\t// IE10 implemented pointer events with a prefix;\n\t\tif ( e.type.indexOf('MSPointer') === 0 ) {\n\t\t\tpointer = true;\n\t\t}\n\n\t\t// Get the originalEvent, if the event has been wrapped\n\t\t// by jQuery. Zepto doesn't wrap the event.\n\t\tif ( e.originalEvent ) {\n\t\t\te = e.originalEvent;\n\t\t}\n\n\t\tif ( touch ) {\n\t\t\t// noUiSlider supports one movement at a time,\n\t\t\t// so we can select the first 'changedTouch'.\n\t\t\tx = e.changedTouches[0].pageX;\n\t\t\ty = e.changedTouches[0].pageY;\n\t\t}\n\n\t\tif ( mouse || pointer ) {\n\n\t\t\t// Polyfill the pageXOffset and pageYOffset\n\t\t\t// variables for IE7 and IE8;\n\t\t\tif( !pointer && window.pageXOffset === undefined ){\n\t\t\t\twindow.pageXOffset = document.documentElement.scrollLeft;\n\t\t\t\twindow.pageYOffset = document.documentElement.scrollTop;\n\t\t\t}\n\n\t\t\tx = e.clientX + window.pageXOffset;\n\t\t\ty = e.clientY + window.pageYOffset;\n\t\t}\n\n\t\tevent.points = [x, y];\n\t\tevent.cursor = mouse;\n\n\t\treturn event;\n\t}", "function fixSpecialEvents(events) {\n events.forEach(name => {\n $.event.special[name] = {\n setup: function (_, ns, handle) {\n if (ns.includes(\"noPreventDefault\")) {\n this.addEventListener(name, handle, {passive: false});\n } else {\n this.addEventListener(name, handle, {passive: true});\n }\n }\n };\n });\n}", "triggerEvent(e){\n\t\tthis.emit(e.type, e);\n\t}", "function InputEvent() {\n var _this14 = this;\n\n var globals = window || global;\n\n // Slightly odd way construct our object. This way methods are force bound.\n // Used to test for duplicate library.\n _extends(this, {\n\n // For browsers that do not support isTrusted, assumes event is native.\n isNativeEvent: function isNativeEvent(evt) {\n return evt.originalEvent && evt.originalEvent.isTrusted !== false;\n },\n\n fakeInputEvent: function fakeInputEvent(evt) {\n if (_this14.isNativeEvent(evt)) {\n $(evt.target).trigger('input');\n }\n },\n\n misbehaves: function misbehaves(evt) {\n if (_this14.isNativeEvent(evt)) {\n _this14.behavesOk(evt);\n $(document).on('change.inputevent', evt.data.selector, _this14.fakeInputEvent);\n _this14.fakeInputEvent(evt);\n }\n },\n\n behavesOk: function behavesOk(evt) {\n if (_this14.isNativeEvent(evt)) {\n $(document) // Simply unbinds the testing handler\n .off('input.inputevent', evt.data.selector, _this14.behavesOk).off('change.inputevent', evt.data.selector, _this14.misbehaves);\n }\n },\n\n // Bind the testing handlers\n install: function install() {\n if (globals.inputEventPatched) {\n return;\n }\n globals.inputEventPatched = '0.0.3';\n var _arr = ['select', 'input[type=\"checkbox\"]', 'input[type=\"radio\"]', 'input[type=\"file\"]'];\n for (var _i = 0; _i < _arr.length; _i++) {\n var selector = _arr[_i];\n $(document).on('input.inputevent', selector, { selector: selector }, _this14.behavesOk).on('change.inputevent', selector, { selector: selector }, _this14.misbehaves);\n }\n },\n\n uninstall: function uninstall() {\n delete globals.inputEventPatched;\n $(document).off('.inputevent');\n }\n\n });\n }", "function remapEvent(eventName, globalObj) {\n if (globalObj === void 0) { globalObj = window; }\n if (!(\"ontouchstart\" in globalObj.document)) {\n switch (eventName) {\n case \"touchstart\":\n return \"pointerdown\";\n case \"touchmove\":\n return \"pointermove\";\n case \"touchend\":\n return \"pointerup\";\n default:\n return eventName;\n }\n }\n return eventName;\n}", "function fixEvent(e) {\n\n // Prevent scrolling and panning on touch events, while\n // attempting to slide. The tap event also depends on this.\n e.preventDefault();\n\n // Filter the event to register the type, which can be\n // touch, mouse or pointer. Offset changes need to be\n // made on an event specific basis.\n var touch = e.type.indexOf('touch') === 0\n\t\t\t\t, mouse = e.type.indexOf('mouse') === 0\n\t\t\t\t, pointer = e.type.indexOf('pointer') === 0\n\t\t\t\t, x, y, event = e;\n\n // IE10 implemented pointer events with a prefix;\n if (e.type.indexOf('MSPointer') === 0) {\n pointer = true;\n }\n\n // Get the originalEvent, if the event has been wrapped\n // by jQuery. Zepto doesn't wrap the event.\n if (e.originalEvent) {\n e = e.originalEvent;\n }\n\n if (touch) {\n // noUiSlider supports one movement at a time,\n // so we can select the first 'changedTouch'.\n x = e.changedTouches[0].pageX;\n y = e.changedTouches[0].pageY;\n }\n if (mouse || pointer) {\n\n // Polyfill the pageXOffset and pageYOffset\n // variables for IE7 and IE8;\n if (!pointer && window.pageXOffset === undefined) {\n window.pageXOffset = document.documentElement.scrollLeft;\n window.pageYOffset = document.documentElement.scrollTop;\n }\n\n x = e.clientX + window.pageXOffset;\n y = e.clientY + window.pageYOffset;\n }\n\n return $.extend(event, {\n 'pointX': x\n\t\t\t\t, 'pointY': y\n\t\t\t\t, cursor: mouse\n });\n }", "function setup_event (params) {\n return true;\n}", "trigger(eventName, data = null) {\n if (!eventName) return;\n let e = new CustomEvent(eventName, {detail: data});\n this.dummy.dispatchEvent(e);\n }", "function fixEvent(event) {\n\tvar thisObj = this,\n\t\t_button = (\"button\" in event) && event.button;\n\t\n\t// один объект события может передаваться по цепочке разным обработчикам\n\t// при этом кроссбраузерная обработка будет вызвана только 1 раз\n\t// Снизу, в функции commonHandle,, мы должны проверять на !event[\"__isFixed\"]\n\tevent[\"__isFixed\"] = true;// пометить событие как обработанное\n\n\t//http://javascript.gakaa.com/event-detail.aspx\n\t//http://www.w3.org/TR/2011/WD-DOM-Level-3-Events-20110531/#event-type-click\n\t//indicates the current click count; the attribute value must be 1 when the user begins this action and increments by 1 for each click.\n\tif(event.type === \"click\" || event.type === \"dblclick\") {\n\t\tif(event.detail === void 0)event.detail = event.type === \"click\" ? 1 : 2;\n\t\tif(!event.button && fixEvent[\"__b\"] !== void 0)_button = fixEvent[\"__b\"];\n\t}\n\n\t_append(event, _Event_prototype);\n\n\tevent.target || (event.target = event.srcElement || document);// добавить target для IE\n\t/*\n\tif ( event.target && (/3|4/).test( event.target.nodeType ) ) {\n\t\tevent.target = event.target.parentNode;\n\t}\n\t*/\n\n\t// добавить relatedTarget в IE, если это нужно\n\tif(event.relatedTarget === void 0 && event.fromElement)\n\t\tevent.relatedTarget = event.fromElement == event.target ? event.toElement : event.fromElement;\n\t/*\n\tevent.relatedTarget = event.relatedTarget ||\n\t\tevent.type == 'mouseout' ? event.toElement :\n\t\tevent.type == 'mouseover' ? event.fromElement : null;\n\t*/\n\n\t// вычислить pageX/pageY для IE\n\tif(event.pageX == null && event.clientX != null) {\n\t\tvar html = _document_documentElement, body = document.body;\n\t\t/*event.pageX = event.clientX + (html && html.scrollLeft || body && body.scrollLeft || 0) - (html.clientLeft || 0);\n\t\tevent.pageY = event.clientY + (html && html.scrollTop || body && body.scrollTop || 0) - (html.clientTop || 0);*/\n\t\t//Новая вервия нуждающаяся в проверки\n\t\tevent.pageX = event.clientX + (window.pageXOffset || html.scrollLeft || body.scrollLeft || 0) - (html.clientLeft || 0);\n\t\tevent.pageY = event.clientY + (window.pageYOffset || html.scrollTop || body.scrollTop || 0) - (html.clientTop || 0);\n\t}\n\n\t//Add 'which' for click: 1 == left; 2 == middle; 3 == right\n\t//Unfortunately the event.button property is not set for click events. It is however set for mouseup/down/move ... but not click | http://bugs.jquery.com/ticket/4164\n\tif(!event.which && _button)event.which = _button & 1 ? 1 : _button & 2 ? 3 : _button & 4 ? 2 : 0;\n\n\tif(!event.timeStamp)event.timeStamp = +new _Native_Date();\n\t\n\tif(!event.eventPhase)event.eventPhase = (event.target == thisObj) ? 2 : 3; // \"AT_TARGET\" = 2, \"BUBBLING_PHASE\" = 3\n\t\n\tif(!event.currentTarget)event.currentTarget = thisObj;\n\t\t\n\t\t\n\t// событие DOMAttrModified\n\t// TODO:: недоделано\n\t// TODO:: Привести event во всех случаях (для всех браузеров) в одинаковый вид с newValue, prevValue, propName и т.д.\n\tif(!event.attrName && event.propertyName)event.attrName = _String_split.call(event.propertyName, '.')[0];//IE При изменении style.width в propertyName передаст именно style.width, а не style, как нам надо\n\n\treturn event\n}", "function InputEvent() {\n var _this13 = this;\n\n var globals = window || global;\n\n // Slightly odd way construct our object. This way methods are force bound.\n // Used to test for duplicate library.\n $.extend(this, {\n\n // For browsers that do not support isTrusted, assumes event is native.\n isNativeEvent: function isNativeEvent(evt) {\n return evt.originalEvent && evt.originalEvent.isTrusted !== false;\n },\n\n fakeInputEvent: function fakeInputEvent(evt) {\n if (_this13.isNativeEvent(evt)) {\n $(evt.target).trigger('input');\n }\n },\n\n misbehaves: function misbehaves(evt) {\n if (_this13.isNativeEvent(evt)) {\n _this13.behavesOk(evt);\n $(document).on('change.inputevent', evt.data.selector, _this13.fakeInputEvent);\n _this13.fakeInputEvent(evt);\n }\n },\n\n behavesOk: function behavesOk(evt) {\n if (_this13.isNativeEvent(evt)) {\n $(document) // Simply unbinds the testing handler\n .off('input.inputevent', evt.data.selector, _this13.behavesOk).off('change.inputevent', evt.data.selector, _this13.misbehaves);\n }\n },\n\n // Bind the testing handlers\n install: function install() {\n if (globals.inputEventPatched) {\n return;\n }\n globals.inputEventPatched = '0.0.3';\n var _arr = ['select', 'input[type=\"checkbox\"]', 'input[type=\"radio\"]', 'input[type=\"file\"]'];\n for (var _i = 0; _i < _arr.length; _i++) {\n var selector = _arr[_i];\n $(document).on('input.inputevent', selector, { selector: selector }, _this13.behavesOk).on('change.inputevent', selector, { selector: selector }, _this13.misbehaves);\n }\n },\n\n uninstall: function uninstall() {\n delete globals.inputEventPatched;\n $(document).off('.inputevent');\n }\n\n });\n }", "function makeSimulator(eventType) {\n\t return function (domComponentOrNode, eventData) {\n\t var node;\n\t if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n\t node = findDOMNode(domComponentOrNode);\n\t } else if (domComponentOrNode.tagName) {\n\t node = domComponentOrNode;\n\t }\n\t\n\t var dispatchConfig = ReactBrowserEventEmitter.eventNameDispatchConfigs[eventType];\n\t\n\t var fakeNativeEvent = new Event();\n\t fakeNativeEvent.target = node;\n\t // We don't use SyntheticEvent.getPooled in order to not have to worry about\n\t // properly destroying any properties assigned from `eventData` upon release\n\t var event = new SyntheticEvent(dispatchConfig, ReactMount.getID(node), fakeNativeEvent, node);\n\t assign(event, eventData);\n\t\n\t if (dispatchConfig.phasedRegistrationNames) {\n\t EventPropagators.accumulateTwoPhaseDispatches(event);\n\t } else {\n\t EventPropagators.accumulateDirectDispatches(event);\n\t }\n\t\n\t ReactUpdates.batchedUpdates(function () {\n\t EventPluginHub.enqueueEvents(event);\n\t EventPluginHub.processEventQueue(true);\n\t });\n\t };\n\t}", "function triggerCustomEvent( obj, eventType, event ) {\n\t\tvar originalType = event.type;\n\t\tevent.type = eventType;\n\t\t$.event.handle.call( obj, event );\n\t\tevent.type = originalType;\n\t}", "function click_base_event(event, robot) {\n if (robot.level > event.difficulty) {\n event.diffuse = true;\n event.duration = 10; // Duration of a diffused event is how long it takes to fix.\n } else {\n robot.dead = true; // Might be too harsh!\n } \n}", "function nativeDispatchEvent(srcEvent,eventType,eventPointer){eventPointer=eventPointer||pointer;var eventObj;if(eventType==='click'||eventType=='mouseup'||eventType=='mousedown'){eventObj=document.createEvent('MouseEvents');eventObj.initMouseEvent(eventType,true,true,window,srcEvent.detail,eventPointer.x,eventPointer.y,eventPointer.x,eventPointer.y,srcEvent.ctrlKey,srcEvent.altKey,srcEvent.shiftKey,srcEvent.metaKey,srcEvent.button,srcEvent.relatedTarget||null);}else{eventObj=document.createEvent('CustomEvent');eventObj.initCustomEvent(eventType,true,true,{});}eventObj.$material=true;eventObj.pointer=eventPointer;eventObj.srcEvent=srcEvent;eventPointer.target.dispatchEvent(eventObj);}", "static set EVENT( value ) {\n overtakenAdaptEvent = value;\n }", "function makeSimulator(eventType) {\n return function (domComponentOrNode, eventData) {\n var node;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = findDOMNode(domComponentOrNode);\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var dispatchConfig = ReactBrowserEventEmitter.eventNameDispatchConfigs[eventType];\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(dispatchConfig, ReactMount.getID(node), fakeNativeEvent, node);\n assign(event, eventData);\n\n if (dispatchConfig.phasedRegistrationNames) {\n EventPropagators.accumulateTwoPhaseDispatches(event);\n } else {\n EventPropagators.accumulateDirectDispatches(event);\n }\n\n ReactUpdates.batchedUpdates(function () {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue(true);\n });\n };\n}", "function makeSimulator(eventType) {\n return function (domComponentOrNode, eventData) {\n var node;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = findDOMNode(domComponentOrNode);\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var dispatchConfig = ReactBrowserEventEmitter.eventNameDispatchConfigs[eventType];\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(dispatchConfig, ReactMount.getID(node), fakeNativeEvent, node);\n assign(event, eventData);\n\n if (dispatchConfig.phasedRegistrationNames) {\n EventPropagators.accumulateTwoPhaseDispatches(event);\n } else {\n EventPropagators.accumulateDirectDispatches(event);\n }\n\n ReactUpdates.batchedUpdates(function () {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue(true);\n });\n };\n}", "function makeSimulator(eventType) {\n return function (domComponentOrNode, eventData) {\n var node;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = findDOMNode(domComponentOrNode);\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var dispatchConfig = ReactBrowserEventEmitter.eventNameDispatchConfigs[eventType];\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(dispatchConfig, ReactMount.getID(node), fakeNativeEvent, node);\n assign(event, eventData);\n\n if (dispatchConfig.phasedRegistrationNames) {\n EventPropagators.accumulateTwoPhaseDispatches(event);\n } else {\n EventPropagators.accumulateDirectDispatches(event);\n }\n\n ReactUpdates.batchedUpdates(function () {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue(true);\n });\n };\n}", "function initXuaEvent(e) {\r\n if (! e) return null;\r\n\r\n e.src = null;\r\n e.pos = null;\r\n e.btn = null;\r\n\r\n // Let e.src be the literal target of event e.\r\n if (ie) {\r\n e.src = e.srcElement;\r\n } else {\r\n // XXX Perhaps we should recursively look up the hierarchy for a parent\r\n // with nodeType 1.\r\n if (e.target.nodeType != 1) {\r\n e.src = e.target.parentNode;\r\n }\r\n e.src = e.target;\r\n }\r\n\r\n // Let e.pos be the position of the event on the x and y axes.\r\n e.pos = new Pos((ie ? e.clientX : e.pageX), (ie ? e.clientY : e.pageY));\r\n // Adjust MSIE event coordinates for scrolling.\r\n if (ie && e.pos != null) {\r\n e.pos.x += viewLeft();\r\n e.pos.y += viewTop();\r\n }\r\n\r\n // XXX By the time e makes it's way back to the caller, e.btn is effectively\r\n // useless. Neither Gecko-based browsers nor MSIE are able to intercept a\r\n // right-click event.\r\n\r\n // Let e.btn be the mouse button that triggered the event: 1 for left, 2 for\r\n // right and 3 for middle.\r\n if (ie) {\r\n if (e.button == 1 || e.button == 2) {\r\n e.btn = e.button;\r\n } else if (e.button == 3 || e.button == 5) {\r\n e.btn = 3;\r\n } else {\r\n e.btn = 1;\r\n }\r\n } else {\r\n if (e.button == 0) {\r\n e.btn = 1;\r\n } else if (e.button == 1) {\r\n e.btn = 3;\r\n } else if (e.button == 2) {\r\n e.btn = 2;\r\n } else {\r\n e.btn = 1;\r\n }\r\n }\r\n\r\n e.stp = function () {\r\n if (ie) {\r\n this.cancelBubble = true;\r\n this.returnValue = false;\r\n } else {\r\n this.stopPropagation();\r\n this.preventDefault();\r\n }\r\n };\r\n\r\n return e;\r\n}", "function createFakeEvent(typeArg) {\n if (['keydown', 'keyup', 'keypress'].includes(typeArg)) {\n return new KeyboardEvent(typeArg, {\n 'key': ' ',\n 'code': ' ',\n 'charCode': ' '.charCodeAt(0),\n 'keyCode': ' '.charCodeAt(0),\n 'which': ' '.charCodeAt(0),\n 'bubbles': true,\n 'composed': true,\n 'cancelable': true\n });\n } else if (['input', 'change'].includes(typeArg)) {\n return new InputEvent(typeArg, {\n 'bubbles': true,\n 'composed': true,\n 'cancelable': true\n });\n } else if (['focus', 'blur'].includes(typeArg)) {\n return new FocusEvent(typeArg, {\n 'bubbles': true,\n 'composed': true,\n 'cancelable': true\n });\n } else {\n log.error(\"createFakeEvent: Unknown event type: \" + typeArg);\n return null;\n }\n}", "dispatchEvent(_event) {\n throw new Error(\"This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.\");\n }", "dispatchEvent(_event) {\n throw new Error(\"This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.\");\n }", "dispatchEvent(_event) {\n throw new Error(\"This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.\");\n }", "function makeSimulator(eventType) {\n\t return function(domComponentOrNode, eventData) {\n\t var node;\n\t if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n\t node = domComponentOrNode.getDOMNode();\n\t } else if (domComponentOrNode.tagName) {\n\t node = domComponentOrNode;\n\t }\n\t\n\t var fakeNativeEvent = new Event();\n\t fakeNativeEvent.target = node;\n\t // We don't use SyntheticEvent.getPooled in order to not have to worry about\n\t // properly destroying any properties assigned from `eventData` upon release\n\t var event = new SyntheticEvent(\n\t ReactBrowserEventEmitter.eventNameDispatchConfigs[eventType],\n\t ReactMount.getID(node),\n\t fakeNativeEvent\n\t );\n\t assign(event, eventData);\n\t EventPropagators.accumulateTwoPhaseDispatches(event);\n\t\n\t ReactUpdates.batchedUpdates(function() {\n\t EventPluginHub.enqueueEvents(event);\n\t EventPluginHub.processEventQueue();\n\t });\n\t };\n\t}", "function fakeClick(event, anchorObj) {\n if(anchorObj.click) {\n anchorObj.click()\n }\n else if(document.createEvent) {\n if(event.target !== anchorObj) {\n var evt = document.createEvent(\"MouseEvents\");\n evt.initMouseEvent(\"click\", true, true, window,\n 0, 0, 0, 0, 0, false, false, false, false, 0, null);\n var allowDefault = anchorObj.dispatchEvent(evt);\n }\n }\n}", "fakeTouchEvent(e) {\n return {\n identifier: -1,\n target: e.target,\n pageX: e.pageX,\n pageY: e.pageY\n };\n }", "function patchViaCapturingAllTheEvents() {\n eventNames.forEach(function (property) {\n var onproperty = 'on' + property;\n document.addEventListener(property, function (event) {\n var elt = event.target, bound;\n while (elt) {\n if (elt[onproperty] && !elt[onproperty]._unbound) {\n bound = global.zone.bind(elt[onproperty]);\n bound._unbound = elt[onproperty];\n elt[onproperty] = bound;\n }\n elt = elt.parentElement;\n }\n }, true);\n });\n}", "function RenderEvent() {}", "dispatch_event( evt_name ){\r\n this.dispatchEvent( new CustomEvent( evt_name, { \r\n bubbles : true, \r\n cancelable : true, \r\n composed : false,\r\n detail : { \r\n value : this.main_value,\r\n } \r\n }));\r\n }", "function remapEvent(eventName, globalObj = window) {\n if (!('ontouchstart' in globalObj.document)) {\n switch (eventName) {\n case 'touchstart':\n return 'pointerdown';\n case 'touchmove':\n return 'pointermove';\n case 'touchend':\n return 'pointerup';\n default:\n return eventName;\n }\n }\n\n return eventName;\n}", "function remapEvent(eventName, globalObj = window) {\n if (!('ontouchstart' in globalObj.document)) {\n switch (eventName) {\n case 'touchstart':\n return 'pointerdown';\n case 'touchmove':\n return 'pointermove';\n case 'touchend':\n return 'pointerup';\n default:\n return eventName;\n }\n }\n\n return eventName;\n}", "function retriggerEvent(object, originalEvent, newEvent){\n\t\t\n\t\tjQuery(object).on(originalEvent, function(event){\n\t\t\tg_objGallery.trigger(newEvent, [this]);\n\t\t});\n\t\n\t}", "_fireCustomEvent(context, eventName, eventBody, eventSettings) {\n if (!eventBody) {\n eventBody = {};\n }\n if (!eventSettings) {\n eventSettings = {\n bubbles: false,\n composed: false\n }\n }\n var newEvent = new CustomEvent(eventName, { detail: eventBody, bubbles: eventSettings.bubbles, composed: eventSettings.composed });\n context.dispatchEvent(newEvent);\n return newEvent;\n }", "touchHandler(e) {\n var touches = e.changedTouches, first = touches[0], type = \"\";\n switch (e.type){\n case \"touchstart\":\n type = \"mousedown\";\n break;\n case \"touchmove\":\n type = \"mousemove\";\n break;\n case \"touchend\":\n type = \"mouseup\";\n break;\n case \"touchcancel\":\n type = \"mouseup\";\n break;\n default:\n return;\n }\n var simulatedEvent = document.createEvent(\"MouseEvent\");\n simulatedEvent.initMouseEvent(type, true, true, window, 1, first.screenX, first.screenY, first.clientX, first.clientY, false, false, false, false, 0/*left*/, null);\n first.target.dispatchEvent(simulatedEvent);\n e.preventDefault();\n }", "function makeSimulator(eventType) {\n return function(domComponentOrNode, eventData) {\n var node;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = domComponentOrNode.getDOMNode();\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(\n ReactBrowserEventEmitter.eventNameDispatchConfigs[eventType],\n ReactMount.getID(node),\n fakeNativeEvent\n );\n mergeInto(event, eventData);\n EventPropagators.accumulateTwoPhaseDispatches(event);\n\n ReactUpdates.batchedUpdates(function() {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue();\n });\n };\n}", "function makeSimulator(eventType) {\n return function(domComponentOrNode, eventData) {\n var node;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = domComponentOrNode.getDOMNode();\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(\n ReactBrowserEventEmitter.eventNameDispatchConfigs[eventType],\n ReactMount.getID(node),\n fakeNativeEvent\n );\n assign(event, eventData);\n EventPropagators.accumulateTwoPhaseDispatches(event);\n\n ReactUpdates.batchedUpdates(function() {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue();\n });\n };\n}", "function makeSimulator(eventType) {\n return function(domComponentOrNode, eventData) {\n var node;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = domComponentOrNode.getDOMNode();\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(\n ReactBrowserEventEmitter.eventNameDispatchConfigs[eventType],\n ReactMount.getID(node),\n fakeNativeEvent\n );\n assign(event, eventData);\n EventPropagators.accumulateTwoPhaseDispatches(event);\n\n ReactUpdates.batchedUpdates(function() {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue();\n });\n };\n}", "function makeSimulator(eventType) {\n return function(domComponentOrNode, eventData) {\n var node;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = domComponentOrNode.getDOMNode();\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(\n ReactBrowserEventEmitter.eventNameDispatchConfigs[eventType],\n ReactMount.getID(node),\n fakeNativeEvent\n );\n assign(event, eventData);\n EventPropagators.accumulateTwoPhaseDispatches(event);\n\n ReactUpdates.batchedUpdates(function() {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue();\n });\n };\n}", "function makeSimulator(eventType) {\n return function(domComponentOrNode, eventData) {\n var node;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = domComponentOrNode.getDOMNode();\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(\n ReactBrowserEventEmitter.eventNameDispatchConfigs[eventType],\n ReactMount.getID(node),\n fakeNativeEvent\n );\n assign(event, eventData);\n EventPropagators.accumulateTwoPhaseDispatches(event);\n\n ReactUpdates.batchedUpdates(function() {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue();\n });\n };\n}", "function makeSimulator(eventType) {\n return function(domComponentOrNode, eventData) {\n var node;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = domComponentOrNode.getDOMNode();\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(\n ReactBrowserEventEmitter.eventNameDispatchConfigs[eventType],\n ReactMount.getID(node),\n fakeNativeEvent\n );\n assign(event, eventData);\n EventPropagators.accumulateTwoPhaseDispatches(event);\n\n ReactUpdates.batchedUpdates(function() {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue();\n });\n };\n}", "function makeSimulator(eventType) {\n return function(domComponentOrNode, eventData) {\n var node;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = domComponentOrNode.getDOMNode();\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(\n ReactBrowserEventEmitter.eventNameDispatchConfigs[eventType],\n ReactMount.getID(node),\n fakeNativeEvent\n );\n assign(event, eventData);\n EventPropagators.accumulateTwoPhaseDispatches(event);\n\n ReactUpdates.batchedUpdates(function() {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue();\n });\n };\n}", "function makeSimulator(eventType) {\n return function(domComponentOrNode, eventData) {\n var node;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = domComponentOrNode.getDOMNode();\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(\n ReactBrowserEventEmitter.eventNameDispatchConfigs[eventType],\n ReactMount.getID(node),\n fakeNativeEvent\n );\n assign(event, eventData);\n EventPropagators.accumulateTwoPhaseDispatches(event);\n\n ReactUpdates.batchedUpdates(function() {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue();\n });\n };\n}", "function makeSimulator(eventType) {\n return function(domComponentOrNode, eventData) {\n var node;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = domComponentOrNode.getDOMNode();\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(\n ReactBrowserEventEmitter.eventNameDispatchConfigs[eventType],\n ReactMount.getID(node),\n fakeNativeEvent\n );\n assign(event, eventData);\n EventPropagators.accumulateTwoPhaseDispatches(event);\n\n ReactUpdates.batchedUpdates(function() {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue();\n });\n };\n}", "function makeSimulator(eventType) {\n return function(domComponentOrNode, eventData) {\n var node;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = domComponentOrNode.getDOMNode();\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(\n ReactBrowserEventEmitter.eventNameDispatchConfigs[eventType],\n ReactMount.getID(node),\n fakeNativeEvent\n );\n assign(event, eventData);\n EventPropagators.accumulateTwoPhaseDispatches(event);\n\n ReactUpdates.batchedUpdates(function() {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue();\n });\n };\n}", "function makeSimulator(eventType) {\n return function(domComponentOrNode, eventData) {\n var node;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = domComponentOrNode.getDOMNode();\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(\n ReactBrowserEventEmitter.eventNameDispatchConfigs[eventType],\n ReactMount.getID(node),\n fakeNativeEvent\n );\n assign(event, eventData);\n EventPropagators.accumulateTwoPhaseDispatches(event);\n\n ReactUpdates.batchedUpdates(function() {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue();\n });\n };\n}", "function createCustomEventPolyfill() {\r\n function CustomEvent(typeArg, eventInitDict) {\r\n var params = eventInitDict || { bubbles: false, cancelable: false, detail: undefined };\r\n var evt = document.createEvent('CustomEvent');\r\n evt.initCustomEvent(typeArg, !!params.bubbles, !!params.cancelable, params.detail);\r\n return evt;\r\n }\r\n CustomEvent.prototype = Event.prototype;\r\n return CustomEvent;\r\n}", "function createFakeEvent(type, canBubble = true, cancelable = true) {\n const event = document.createEvent('Event');\n event.initEvent(type, canBubble, cancelable);\n return event;\n}", "function fixEvent ( e, pageOffset ) {\n\n\t\t// Filter the event to register the type, which can be\n\t\t// touch, mouse or pointer. Offset changes need to be\n\t\t// made on an event specific basis.\n\t\tvar touch = e.type.indexOf('touch') === 0;\n\t\tvar mouse = e.type.indexOf('mouse') === 0;\n\t\tvar pointer = e.type.indexOf('pointer') === 0;\n\n\t\tvar x;\n\t\tvar y;\n\n\t\t// IE10 implemented pointer events with a prefix;\n\t\tif ( e.type.indexOf('MSPointer') === 0 ) {\n\t\t\tpointer = true;\n\t\t}\n\n\t\tif ( touch ) {\n\n\t\t\t// Fix bug when user touches with two or more fingers on mobile devices.\n\t\t\t// It's useful when you have two or more sliders on one page,\n\t\t\t// that can be touched simultaneously.\n\t\t\t// #649, #663, #668\n\t\t\tif ( e.touches.length > 1 ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// noUiSlider supports one movement at a time,\n\t\t\t// so we can select the first 'changedTouch'.\n\t\t\tx = e.changedTouches[0].pageX;\n\t\t\ty = e.changedTouches[0].pageY;\n\t\t}\n\n\t\tpageOffset = pageOffset || getPageOffset(scope_Document);\n\n\t\tif ( mouse || pointer ) {\n\t\t\tx = e.clientX + pageOffset.x;\n\t\t\ty = e.clientY + pageOffset.y;\n\t\t}\n\n\t\te.pageOffset = pageOffset;\n\t\te.points = [x, y];\n\t\te.cursor = mouse || pointer; // Fix #435\n\n\t\treturn e;\n\t}", "pcBindEvent(){ return false }", "function fixEvent ( e, pageOffset ) {\n\t\n\t\t\t// Prevent scrolling and panning on touch events, while\n\t\t\t// attempting to slide. The tap event also depends on this.\n\t\t\te.preventDefault();\n\t\n\t\t\t// Filter the event to register the type, which can be\n\t\t\t// touch, mouse or pointer. Offset changes need to be\n\t\t\t// made on an event specific basis.\n\t\t\tvar touch = e.type.indexOf('touch') === 0,\n\t\t\t\tmouse = e.type.indexOf('mouse') === 0,\n\t\t\t\tpointer = e.type.indexOf('pointer') === 0,\n\t\t\t\tx,y, event = e;\n\t\n\t\t\t// IE10 implemented pointer events with a prefix;\n\t\t\tif ( e.type.indexOf('MSPointer') === 0 ) {\n\t\t\t\tpointer = true;\n\t\t\t}\n\t\n\t\t\tif ( touch ) {\n\t\t\t\t// noUiSlider supports one movement at a time,\n\t\t\t\t// so we can select the first 'changedTouch'.\n\t\t\t\tx = e.changedTouches[0].pageX;\n\t\t\t\ty = e.changedTouches[0].pageY;\n\t\t\t}\n\t\n\t\t\tpageOffset = pageOffset || getPageOffset();\n\t\n\t\t\tif ( mouse || pointer ) {\n\t\t\t\tx = e.clientX + pageOffset.x;\n\t\t\t\ty = e.clientY + pageOffset.y;\n\t\t\t}\n\t\n\t\t\tevent.pageOffset = pageOffset;\n\t\t\tevent.points = [x, y];\n\t\t\tevent.cursor = mouse || pointer; // Fix #435\n\t\n\t\t\treturn event;\n\t\t}", "dispatchCustomEvent(eventName) {\n const OriginalCustomEvent = new CustomEvent(eventName, { bubbles: true, cancelable: true });\n OriginalCustomEvent.relatedTarget = this;\n this.dispatchEvent(OriginalCustomEvent);\n this.removeEventListener(eventName, this);\n }", "function fixEvent ( e, pageOffset ) {\n\n\t\t// Prevent scrolling and panning on touch events, while\n\t\t// attempting to slide. The tap event also depends on this.\n\t\te.preventDefault();\n\n\t\t// Filter the event to register the type, which can be\n\t\t// touch, mouse or pointer. Offset changes need to be\n\t\t// made on an event specific basis.\n\t\tvar touch = e.type.indexOf('touch') === 0,\n\t\t\tmouse = e.type.indexOf('mouse') === 0,\n\t\t\tpointer = e.type.indexOf('pointer') === 0,\n\t\t\tx,y, event = e;\n\n\t\t// IE10 implemented pointer events with a prefix;\n\t\tif ( e.type.indexOf('MSPointer') === 0 ) {\n\t\t\tpointer = true;\n\t\t}\n\n\t\tif ( touch ) {\n\t\t\t// noUiSlider supports one movement at a time,\n\t\t\t// so we can select the first 'changedTouch'.\n\t\t\tx = e.changedTouches[0].pageX;\n\t\t\ty = e.changedTouches[0].pageY;\n\t\t}\n\n\t\tpageOffset = pageOffset || getPageOffset();\n\n\t\tif ( mouse || pointer ) {\n\t\t\tx = e.clientX + pageOffset.x;\n\t\t\ty = e.clientY + pageOffset.y;\n\t\t}\n\n\t\tevent.pageOffset = pageOffset;\n\t\tevent.points = [x, y];\n\t\tevent.cursor = mouse || pointer; // Fix #435\n\n\t\treturn event;\n\t}", "function fixEvent ( e, pageOffset ) {\n\n\t\t// Prevent scrolling and panning on touch events, while\n\t\t// attempting to slide. The tap event also depends on this.\n\t\te.preventDefault();\n\n\t\t// Filter the event to register the type, which can be\n\t\t// touch, mouse or pointer. Offset changes need to be\n\t\t// made on an event specific basis.\n\t\tvar touch = e.type.indexOf('touch') === 0,\n\t\t\tmouse = e.type.indexOf('mouse') === 0,\n\t\t\tpointer = e.type.indexOf('pointer') === 0,\n\t\t\tx,y, event = e;\n\n\t\t// IE10 implemented pointer events with a prefix;\n\t\tif ( e.type.indexOf('MSPointer') === 0 ) {\n\t\t\tpointer = true;\n\t\t}\n\n\t\tif ( touch ) {\n\t\t\t// noUiSlider supports one movement at a time,\n\t\t\t// so we can select the first 'changedTouch'.\n\t\t\tx = e.changedTouches[0].pageX;\n\t\t\ty = e.changedTouches[0].pageY;\n\t\t}\n\n\t\tpageOffset = pageOffset || getPageOffset();\n\n\t\tif ( mouse || pointer ) {\n\t\t\tx = e.clientX + pageOffset.x;\n\t\t\ty = e.clientY + pageOffset.y;\n\t\t}\n\n\t\tevent.pageOffset = pageOffset;\n\t\tevent.points = [x, y];\n\t\tevent.cursor = mouse || pointer; // Fix #435\n\n\t\treturn event;\n\t}", "function makeSimulator(eventType) {\n return function (domComponentOrNode, eventData) {\n var node;\n !!React.isValidElement(domComponentOrNode) ? \"development\" !== 'production' ? invariant(false, 'TestUtils.Simulate expects a component instance and not a ReactElement.TestUtils.Simulate will not work if you are using shallow rendering.') : _prodInvariant('14') : void 0;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = findDOMNode(domComponentOrNode);\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var dispatchConfig = EventPluginRegistry.eventNameDispatchConfigs[eventType];\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n fakeNativeEvent.type = eventType.toLowerCase();\n\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(dispatchConfig, ReactDOMComponentTree.getInstanceFromNode(node), fakeNativeEvent, node);\n // Since we aren't using pooling, always persist the event. This will make\n // sure it's marked and won't warn when setting additional properties.\n event.persist();\n _assign(event, eventData);\n\n if (dispatchConfig.phasedRegistrationNames) {\n EventPropagators.accumulateTwoPhaseDispatches(event);\n } else {\n EventPropagators.accumulateDirectDispatches(event);\n }\n\n ReactUpdates.batchedUpdates(function () {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue(true);\n });\n };\n}", "function setEventBehaviour(){\n\t\t\tbutton.style(\"pointer-events\",\"all\");\n\t\t}", "asEvent() {\r\n return super.asEvent();\r\n }", "asEvent() {\r\n return super.asEvent();\r\n }", "asEvent() {\r\n return super.asEvent();\r\n }", "function fixEvent ( e, pageOffset ) {\r\n\r\n\t\t\t// Prevent scrolling and panning on touch events, while\r\n\t\t\t// attempting to slide. The tap event also depends on this.\r\n\t\t\te.preventDefault();\r\n\r\n\t\t\t// Filter the event to register the type, which can be\r\n\t\t\t// touch, mouse or pointer. Offset changes need to be\r\n\t\t\t// made on an event specific basis.\r\n\t\t\tvar touch = e.type.indexOf('touch') === 0,\r\n\t\t\t\tmouse = e.type.indexOf('mouse') === 0,\r\n\t\t\t\tpointer = e.type.indexOf('pointer') === 0,\r\n\t\t\t\tx,y, event = e;\r\n\r\n\t\t\t// IE10 implemented pointer events with a prefix;\r\n\t\t\tif ( e.type.indexOf('MSPointer') === 0 ) {\r\n\t\t\t\tpointer = true;\r\n\t\t\t}\r\n\r\n\t\t\tif ( touch ) {\r\n\t\t\t\t// noUiSlider supports one movement at a time,\r\n\t\t\t\t// so we can select the first 'changedTouch'.\r\n\t\t\t\tx = e.changedTouches[0].pageX;\r\n\t\t\t\ty = e.changedTouches[0].pageY;\r\n\t\t\t}\r\n\r\n\t\t\tpageOffset = pageOffset || getPageOffset();\r\n\r\n\t\t\tif ( mouse || pointer ) {\r\n\t\t\t\tx = e.clientX + pageOffset.x;\r\n\t\t\t\ty = e.clientY + pageOffset.y;\r\n\t\t\t}\r\n\r\n\t\t\tevent.pageOffset = pageOffset;\r\n\t\t\tevent.points = [x, y];\r\n\t\t\tevent.cursor = mouse || pointer; // Fix #435\r\n\r\n\t\t\treturn event;\r\n\t\t}", "function makeSimulator(eventType) {\n return function (domNode, eventData) {\n if (!!React.isValidElement(domNode)) {\n {\n throw Error( \"TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.\" );\n }\n }\n\n if (!!ReactTestUtils.isCompositeComponent(domNode)) {\n {\n throw Error( \"TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.\" );\n }\n }\n\n var dispatchConfig = eventNameDispatchConfigs$1[eventType];\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = domNode;\n fakeNativeEvent.type = eventType.toLowerCase(); // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n\n var targetInst = getInstanceFromNode$1(domNode);\n var event = new SyntheticEvent(dispatchConfig, targetInst, fakeNativeEvent, domNode); // Since we aren't using pooling, always persist the event. This will make\n // sure it's marked and won't warn when setting additional properties.\n\n event.persist();\n\n _assign(event, eventData);\n\n if (dispatchConfig.phasedRegistrationNames) {\n accumulateTwoPhaseDispatches$1(event);\n } else {\n accumulateDirectDispatches$1(event);\n }\n\n ReactDOM.unstable_batchedUpdates(function () {\n // Normally extractEvent enqueues a state restore, but we'll just always\n // do that since we're by-passing it here.\n enqueueStateRestore$1(domNode);\n runEventsInBatch$1(event);\n });\n restoreStateIfNeeded$1();\n };\n}", "function makeSimulator(eventType) {\n return function (domComponentOrNode, eventData) {\n var node;\n !!React.isValidElement(domComponentOrNode) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'TestUtils.Simulate expects a component instance and not a ReactElement.TestUtils.Simulate will not work if you are using shallow rendering.') : _prodInvariant('14') : void 0;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = findDOMNode(domComponentOrNode);\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var dispatchConfig = EventPluginRegistry.eventNameDispatchConfigs[eventType];\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n fakeNativeEvent.type = eventType.toLowerCase();\n\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(dispatchConfig, ReactDOMComponentTree.getInstanceFromNode(node), fakeNativeEvent, node);\n // Since we aren't using pooling, always persist the event. This will make\n // sure it's marked and won't warn when setting additional properties.\n event.persist();\n _assign(event, eventData);\n\n if (dispatchConfig.phasedRegistrationNames) {\n EventPropagators.accumulateTwoPhaseDispatches(event);\n } else {\n EventPropagators.accumulateDirectDispatches(event);\n }\n\n ReactUpdates.batchedUpdates(function () {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue(true);\n });\n };\n}", "function makeSimulator(eventType) {\n return function (domComponentOrNode, eventData) {\n var node;\n !!React.isValidElement(domComponentOrNode) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'TestUtils.Simulate expects a component instance and not a ReactElement.TestUtils.Simulate will not work if you are using shallow rendering.') : _prodInvariant('14') : void 0;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = findDOMNode(domComponentOrNode);\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var dispatchConfig = EventPluginRegistry.eventNameDispatchConfigs[eventType];\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n fakeNativeEvent.type = eventType.toLowerCase();\n\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(dispatchConfig, ReactDOMComponentTree.getInstanceFromNode(node), fakeNativeEvent, node);\n // Since we aren't using pooling, always persist the event. This will make\n // sure it's marked and won't warn when setting additional properties.\n event.persist();\n _assign(event, eventData);\n\n if (dispatchConfig.phasedRegistrationNames) {\n EventPropagators.accumulateTwoPhaseDispatches(event);\n } else {\n EventPropagators.accumulateDirectDispatches(event);\n }\n\n ReactUpdates.batchedUpdates(function () {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue(true);\n });\n };\n}", "function makeSimulator(eventType) {\n return function (domComponentOrNode, eventData) {\n var node;\n !!React.isValidElement(domComponentOrNode) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'TestUtils.Simulate expects a component instance and not a ReactElement.TestUtils.Simulate will not work if you are using shallow rendering.') : _prodInvariant('14') : void 0;\n if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n node = findDOMNode(domComponentOrNode);\n } else if (domComponentOrNode.tagName) {\n node = domComponentOrNode;\n }\n\n var dispatchConfig = EventPluginRegistry.eventNameDispatchConfigs[eventType];\n\n var fakeNativeEvent = new Event();\n fakeNativeEvent.target = node;\n fakeNativeEvent.type = eventType.toLowerCase();\n\n // We don't use SyntheticEvent.getPooled in order to not have to worry about\n // properly destroying any properties assigned from `eventData` upon release\n var event = new SyntheticEvent(dispatchConfig, ReactDOMComponentTree.getInstanceFromNode(node), fakeNativeEvent, node);\n // Since we aren't using pooling, always persist the event. This will make\n // sure it's marked and won't warn when setting additional properties.\n event.persist();\n _assign(event, eventData);\n\n if (dispatchConfig.phasedRegistrationNames) {\n EventPropagators.accumulateTwoPhaseDispatches(event);\n } else {\n EventPropagators.accumulateDirectDispatches(event);\n }\n\n ReactUpdates.batchedUpdates(function () {\n EventPluginHub.enqueueEvents(event);\n EventPluginHub.processEventQueue(true);\n });\n };\n}", "function dispatchFakeEvent(node, type, canBubble) {\n return dispatchEvent(node, typeof type === 'string' ? createFakeEvent(type, canBubble) : type);\n}", "function 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}", "function rawHandlerProxy(ev) { return self._rawEventHandler(ev); }", "function psEventHandler(event) {\n var event_type = event.type;\n // Prevent invocation when triggered manually from $ps_wrap\n if (!ps_wrap_do_not_trigger_map[event_type]) {\n //console.log('triggered ' + event_type);\n ps_do_not_trigger_map[event_type] = true;\n $ps_wrap.trigger(event_type);\n ps_do_not_trigger_map[event_type] = false;\n }\n }", "function patchViaCapturingAllTheEvents() {\n var _loop_1 = function _loop_1(i) {\n var property = eventNames[i];\n var onproperty = 'on' + property;\n self.addEventListener(property, function (event) {\n var elt = event.target,\n bound,\n source;\n\n if (elt) {\n source = elt.constructor['name'] + '.' + onproperty;\n } else {\n source = 'unknown.' + onproperty;\n }\n\n while (elt) {\n if (elt[onproperty] && !elt[onproperty][unboundKey]) {\n bound = wrapWithCurrentZone(elt[onproperty], source);\n bound[unboundKey] = elt[onproperty];\n elt[onproperty] = bound;\n }\n\n elt = elt.parentElement;\n }\n }, true);\n };\n\n for (var i = 0; i < eventNames.length; i++) {\n _loop_1(i);\n }\n }", "function n(){var t=this,i=window||global;e.extend(this,{isNativeEvent:function(e){return e.originalEvent&&e.originalEvent.isTrusted!==!1},fakeInputEvent:function(i){t.isNativeEvent(i)&&e(i.target).trigger(\"input\")},misbehaves:function(i){t.isNativeEvent(i)&&(t.behavesOk(i),e(document).on(\"change.inputevent\",i.data.selector,t.fakeInputEvent),t.fakeInputEvent(i))},behavesOk:function(i){t.isNativeEvent(i)&&e(document).off(\"input.inputevent\",i.data.selector,t.behavesOk).off(\"change.inputevent\",i.data.selector,t.misbehaves)},install:function(){if(!i.inputEventPatched){i.inputEventPatched=\"0.0.3\";for(var n=[\"select\",'input[type=\"checkbox\"]','input[type=\"radio\"]','input[type=\"file\"]'],r=0;r<n.length;r++){var s=n[r];e(document).on(\"input.inputevent\",s,{selector:s},t.behavesOk).on(\"change.inputevent\",s,{selector:s},t.misbehaves)}}},uninstall:function(){delete i.inputEventPatched,e(document).off(\".inputevent\")}})}", "function n(){var t=this,i=window||global;e.extend(this,{isNativeEvent:function(e){return e.originalEvent&&e.originalEvent.isTrusted!==!1},fakeInputEvent:function(i){t.isNativeEvent(i)&&e(i.target).trigger(\"input\")},misbehaves:function(i){t.isNativeEvent(i)&&(t.behavesOk(i),e(document).on(\"change.inputevent\",i.data.selector,t.fakeInputEvent),t.fakeInputEvent(i))},behavesOk:function(i){t.isNativeEvent(i)&&e(document).off(\"input.inputevent\",i.data.selector,t.behavesOk).off(\"change.inputevent\",i.data.selector,t.misbehaves)},install:function(){if(!i.inputEventPatched){i.inputEventPatched=\"0.0.3\";for(var n=[\"select\",'input[type=\"checkbox\"]','input[type=\"radio\"]','input[type=\"file\"]'],r=0;r<n.length;r++){var s=n[r];e(document).on(\"input.inputevent\",s,{selector:s},t.behavesOk).on(\"change.inputevent\",s,{selector:s},t.misbehaves)}}},uninstall:function(){delete i.inputEventPatched,e(document).off(\".inputevent\")}})}", "function n(){var t=this,i=window||global;e.extend(this,{isNativeEvent:function(e){return e.originalEvent&&e.originalEvent.isTrusted!==!1},fakeInputEvent:function(i){t.isNativeEvent(i)&&e(i.target).trigger(\"input\")},misbehaves:function(i){t.isNativeEvent(i)&&(t.behavesOk(i),e(document).on(\"change.inputevent\",i.data.selector,t.fakeInputEvent),t.fakeInputEvent(i))},behavesOk:function(i){t.isNativeEvent(i)&&e(document).off(\"input.inputevent\",i.data.selector,t.behavesOk).off(\"change.inputevent\",i.data.selector,t.misbehaves)},install:function(){if(!i.inputEventPatched){i.inputEventPatched=\"0.0.3\";for(var n=[\"select\",'input[type=\"checkbox\"]','input[type=\"radio\"]','input[type=\"file\"]'],r=0;r<n.length;r++){var s=n[r];e(document).on(\"input.inputevent\",s,{selector:s},t.behavesOk).on(\"change.inputevent\",s,{selector:s},t.misbehaves)}}},uninstall:function(){delete i.inputEventPatched,e(document).off(\".inputevent\")}})}", "function n(){var t=this,i=window||global;e.extend(this,{isNativeEvent:function(e){return e.originalEvent&&e.originalEvent.isTrusted!==!1},fakeInputEvent:function(i){t.isNativeEvent(i)&&e(i.target).trigger(\"input\")},misbehaves:function(i){t.isNativeEvent(i)&&(t.behavesOk(i),e(document).on(\"change.inputevent\",i.data.selector,t.fakeInputEvent),t.fakeInputEvent(i))},behavesOk:function(i){t.isNativeEvent(i)&&e(document).off(\"input.inputevent\",i.data.selector,t.behavesOk).off(\"change.inputevent\",i.data.selector,t.misbehaves)},install:function(){if(!i.inputEventPatched){i.inputEventPatched=\"0.0.3\";for(var n=[\"select\",'input[type=\"checkbox\"]','input[type=\"radio\"]','input[type=\"file\"]'],r=0;r<n.length;r++){var s=n[r];e(document).on(\"input.inputevent\",s,{selector:s},t.behavesOk).on(\"change.inputevent\",s,{selector:s},t.misbehaves)}}},uninstall:function(){delete i.inputEventPatched,e(document).off(\".inputevent\")}})}", "function makeNativeSimulator(eventType) {\n\t return function (domComponentOrNode, nativeEventData) {\n\t var fakeNativeEvent = new Event(eventType);\n\t assign(fakeNativeEvent, nativeEventData);\n\t if (ReactTestUtils.isDOMComponent(domComponentOrNode)) {\n\t ReactTestUtils.simulateNativeEventOnDOMComponent(eventType, domComponentOrNode, fakeNativeEvent);\n\t } else if (domComponentOrNode.tagName) {\n\t // Will allow on actual dom nodes.\n\t ReactTestUtils.simulateNativeEventOnNode(eventType, domComponentOrNode, fakeNativeEvent);\n\t }\n\t };\n\t}", "_evtChange(event) { }", "_evtClick(event) { }", "onEvent() {\n \n }", "function fixEvent ( e, pageOffset ) {\n\n\t\t// Prevent scrolling and panning on touch events, while\n\t\t// attempting to slide. The tap event also depends on this.\n\t\te.preventDefault();\n\n\t\t// Filter the event to register the type, which can be\n\t\t// touch, mouse or pointer. Offset changes need to be\n\t\t// made on an event specific basis.\n\t\tvar touch = e.type.indexOf('touch') === 0,\n\t\t\tmouse = e.type.indexOf('mouse') === 0,\n\t\t\tpointer = e.type.indexOf('pointer') === 0,\n\t\t\tx,y, event = e;\n\n\t\t// IE10 implemented pointer events with a prefix;\n\t\tif ( e.type.indexOf('MSPointer') === 0 ) {\n\t\t\tpointer = true;\n\t\t}\n\n\t\tif ( touch ) {\n\n\t\t\t// Fix bug when user touches with two or more fingers on mobile devices.\n\t\t\t// It's useful when you have two or more sliders on one page,\n\t\t\t// that can be touched simultaneously.\n\t\t\t// #649, #663, #668\n\t\t\tif ( event.touches.length > 1 ) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// noUiSlider supports one movement at a time,\n\t\t\t// so we can select the first 'changedTouch'.\n\t\t\tx = e.changedTouches[0].pageX;\n\t\t\ty = e.changedTouches[0].pageY;\n\t\t}\n\n\t\tpageOffset = pageOffset || getPageOffset();\n\n\t\tif ( mouse || pointer ) {\n\t\t\tx = e.clientX + pageOffset.x;\n\t\t\ty = e.clientY + pageOffset.y;\n\t\t}\n\n\t\tevent.pageOffset = pageOffset;\n\t\tevent.points = [x, y];\n\t\tevent.cursor = mouse || pointer; // Fix #435\n\n\t\treturn event;\n\t}", "function fixEvent(e, pageOffset) {\n // Prevent scrolling and panning on touch events, while\n // attempting to slide. The tap event also depends on this.\n e.preventDefault();\n // Filter the event to register the type, which can be\n // touch, mouse or pointer. Offset changes need to be\n // made on an event specific basis.\n var touch = e.type.indexOf('touch') === 0,\n mouse = e.type.indexOf('mouse') === 0,\n pointer = e.type.indexOf('pointer') === 0,\n x, y, event = e;\n // IE10 implemented pointer events with a prefix;\n if (e.type.indexOf('MSPointer') === 0) {\n pointer = true;\n }\n if (touch) {\n // noUiSlider supports one movement at a time,\n // so we can select the first 'changedTouch'.\n x = e.changedTouches[0].pageX;\n y = e.changedTouches[0].pageY;\n }\n pageOffset = pageOffset || getPageOffset();\n if (mouse || pointer) {\n x = e.clientX + pageOffset.x;\n y = e.clientY + pageOffset.y;\n }\n event.pageOffset = pageOffset;\n event.points = [x, y];\n event.cursor = mouse || pointer; // Fix #435\n return event;\n }", "function leverageNative( el, type, isSetup ) {\n\n\t\t\t// Missing `isSetup` indicates a trigger call, which must force setup through jQuery.event.add\n\t\t\tif ( !isSetup ) {\n\t\t\t\tif ( dataPriv.get( el, type ) === undefined ) {\n\t\t\t\t\tjQuery.event.add( el, type, returnTrue );\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Register the controller as a special universal handler for all event namespaces\n\t\t\tdataPriv.set( el, type, false );\n\t\t\tjQuery.event.add( el, type, {\n\t\t\t\tnamespace: false,\n\t\t\t\thandler: function( event ) {\n\t\t\t\t\tvar result,\n\t\t\t\t\t\tsaved = dataPriv.get( this, type );\n\n\t\t\t\t\tif ( ( event.isTrigger & 1 ) && this[ type ] ) {\n\n\t\t\t\t\t\t// Interrupt processing of the outer synthetic .trigger()ed event\n\t\t\t\t\t\tif ( !saved ) {\n\n\t\t\t\t\t\t\t// Store arguments for use when handling the inner native event\n\t\t\t\t\t\t\t// There will always be at least one argument (an event object), so this array\n\t\t\t\t\t\t\t// will not be confused with a leftover capture object.\n\t\t\t\t\t\t\tsaved = slice.call( arguments );\n\t\t\t\t\t\t\tdataPriv.set( this, type, saved );\n\n\t\t\t\t\t\t\t// Trigger the native event and capture its result\n\t\t\t\t\t\t\tthis[ type ]();\n\t\t\t\t\t\t\tresult = dataPriv.get( this, type );\n\t\t\t\t\t\t\tdataPriv.set( this, type, false );\n\n\t\t\t\t\t\t\tif ( saved !== result ) {\n\n\t\t\t\t\t\t\t\t// Cancel the outer synthetic event\n\t\t\t\t\t\t\t\tevent.stopImmediatePropagation();\n\t\t\t\t\t\t\t\tevent.preventDefault();\n\n\t\t\t\t\t\t\t\treturn result;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// If this is an inner synthetic event for an event with a bubbling surrogate\n\t\t\t\t\t\t// (focus or blur), assume that the surrogate already propagated from triggering\n\t\t\t\t\t\t// the native event and prevent that from happening again here.\n\t\t\t\t\t\t// This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the\n\t\t\t\t\t\t// bubbling surrogate propagates *after* the non-bubbling base), but that seems\n\t\t\t\t\t\t// less bad than duplication.\n\t\t\t\t\t\t} else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) {\n\t\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// If this is a native event triggered above, everything is now in order\n\t\t\t\t\t// Fire an inner synthetic event with the original arguments\n\t\t\t\t\t} else if ( saved ) {\n\n\t\t\t\t\t\t// ...and capture the result\n\t\t\t\t\t\tdataPriv.set( this, type, jQuery.event.trigger(\n\t\t\t\t\t\t\tsaved[ 0 ],\n\t\t\t\t\t\t\tsaved.slice( 1 ),\n\t\t\t\t\t\t\tthis\n\t\t\t\t\t\t) );\n\n\t\t\t\t\t\t// Abort handling of the native event by all jQuery handlers while allowing\n\t\t\t\t\t\t// native handlers on the same element to run. On target, this is achieved\n\t\t\t\t\t\t// by stopping immediate propagation just on the jQuery event. However,\n\t\t\t\t\t\t// the native event is re-wrapped by a jQuery one on each level of the\n\t\t\t\t\t\t// propagation so the only way to stop it for jQuery is to stop it for\n\t\t\t\t\t\t// everyone via native `stopPropagation()`. This is not a problem for\n\t\t\t\t\t\t// focus/blur which don't bubble, but it does also stop click on checkboxes\n\t\t\t\t\t\t// and radios. We accept this limitation.\n\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t\tevent.isImmediatePropagationStopped = returnTrue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\t}", "function generateEvent(s,args){var evt=document.createEvent(\"CustomEvent\");evt.initCustomEvent(s,false,false,args);return evt;}", "function test_event(event, t) {\n var counter = 0;\n\n function anon() {\n ++counter;\n\n if (counter === 1) {\n Fun.delay(anon, 500, this);\n anon.$Event.remove(\"go\");\n }\n }\n\n var sample_ev0 = $.Eventize(anon);\n\n var sample_ev1 = $.Eventize(function eventized() {\n ++counter;\n\n t.equal(counter, 2, \"[\" + event + \"]sample_ev1 error [\" + counter + \"] \");\n });\n\n // you can use normal functions if you dont want to stop/remove the listener from itself\n var sample_ev2 = function sample_ev2() {\n ++counter;\n\n t.equal(counter, 3, \"[\" + event + \"]sample_ev2 error [\" + counter + \"] \");\n };\n var once = 0;\n // you can use normal functions if you dont want to stop/remove the listener from itself\n var sample_once_ev3 = function sample_once_ev3() {\n t.equal(++once, 1, \"[\" + event + \"]sample_once_ev3 error [\" + once + \"] \");\n };\n\n var emitter = new $.Events();\n\n/*\nconsole.log(\n require(\"util\").inspect($.Events, {depth: 6, colors: true})\n );\nconsole.log(\n require(\"util\").inspect(emitter, {depth: 6, colors: true})\n );\n\nprocess.exit();\n*/\n\n t.equal(emitter.hasListeners(\"go\"), false, \"[\" + event + \"] should be at false listeners\");\n\n emitter.on(\"go\", sample_ev0);\n t.equal(emitter.hasListeners(\"go\"), 1, \"[\" + event + \"] should be at 1 listeners\");\n\n emitter.on(\"go\", sample_ev1);\n t.equal(emitter.hasListeners(\"go\"), 2, \"[\" + event + \"] should be at 2 listeners\");\n\n emitter.on(\"go\", sample_ev2);\n t.equal(emitter.hasListeners(\"go\"), 3, \"[\" + event + \"] should be at 3 listeners\");\n\n emitter.once(\"go\", sample_once_ev3);\n t.equal(emitter.hasListeners(\"go\"), 4, \"[\" + event + \"] should be at 4 listeners\");\n\n emitter.fireEvent(event);\n\n t.equal(counter, 3, \"[\" + event + \"]after emit error [\" + counter + \"] \");\n\n setTimeout(function () {\n t.equal(counter, 4, \"[\" + event + \"]after 1000ms error [\" + counter + \"] \");\n\n console.log(emitter.$__events);\n\n t.equal(emitter.hasListeners(\"go\"), 2, \"[\" + event + \"] should be at 2 listeners\");\n emitter.off(\"go\", sample_ev1);\n t.equal(emitter.hasListeners(\"go\"), 1, \"[\" + event + \"] should be at 1 listeners\");\n emitter.off(\"go\", sample_ev2);\n t.equal(emitter.hasListeners(\"go\"), false, \"[\" + event + \"] should be at 0 listeners\");\n\n emitter.fireEvent(event); //should no emit new events!\n\n t.end();\n }, 1000);\n }" ]
[ "0.6689947", "0.6689947", "0.6689947", "0.6689947", "0.6689947", "0.6672476", "0.6390427", "0.6323072", "0.61057925", "0.59957904", "0.59957904", "0.5988517", "0.5988517", "0.594916", "0.591062", "0.59044594", "0.58671993", "0.584601", "0.58458734", "0.582639", "0.5821287", "0.58162767", "0.57858473", "0.57771266", "0.575557", "0.5754897", "0.5748277", "0.5737944", "0.5733608", "0.5728107", "0.5721808", "0.5714377", "0.57119083", "0.5704757", "0.5704757", "0.5704757", "0.57045996", "0.5689553", "0.5679555", "0.5679555", "0.5679555", "0.56644535", "0.5641224", "0.5638959", "0.5631883", "0.56227785", "0.56208426", "0.5614011", "0.5614011", "0.5605501", "0.56040615", "0.5601956", "0.5592089", "0.5591893", "0.5591893", "0.5591893", "0.5591893", "0.5591893", "0.5591893", "0.5591893", "0.5591893", "0.5591893", "0.5591893", "0.5586655", "0.55838084", "0.5575877", "0.55745536", "0.5571099", "0.5552047", "0.5548571", "0.5548571", "0.55382586", "0.5537687", "0.55359346", "0.55359346", "0.55359346", "0.5529752", "0.5518206", "0.551494", "0.551494", "0.551494", "0.5513734", "0.5509064", "0.55060846", "0.5504235", "0.54947436", "0.54938376", "0.54938376", "0.54938376", "0.54938376", "0.5491448", "0.5487848", "0.5487776", "0.54822135", "0.5482094", "0.5482046", "0.54728204", "0.5468447", "0.54597795" ]
0.7121552
1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Compatitable with 2.0
function get(opt, path) { path = path.split(','); var obj = opt; for (var i = 0; i < path.length; i++) { obj = obj && obj[path[i]]; if (obj == null) { break; } } return obj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "private public function m246() {}", "private internal function m248() {}", "get() {}", "constructor() {\n throw new Error('Not implemented');\n }", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "constructor() {\n\t}", "constructor() {\n\t}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "transient private protected internal function m182() {}", "constructor() {\n\t\t// ...\n\t}", "constructor() {\n\n\t}", "_get () {\n throw new Error('_get not implemented')\n }", "createStream () {\n\n }", "constructor () { super() }", "transient private internal function m185() {}", "static create () {}", "static final private internal function m106() {}", "transient final protected internal function m174() {}", "constructor() {\n }", "get () {\n }", "function version(){ return \"0.13.0\" }", "transient private protected public internal function m181() {}", "supportsByteArrayValues() {\n return true;\n }", "onComponentMount() {\n\n }", "function getVersion(){return _VERSION}", "constructor() { super() }", "function _____SHARED_functions_____(){}", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() {\r\n }", "supportsPlatform() {\n return true;\n }", "transient protected internal function m189() {}", "static get STATUS() {\n return 0;\n }", "obtain(){}", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "function SigV4Utils() { }", "constructor () {\r\n\t\t\r\n\t}", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "function getImplementation( cb ){\n\n }", "function getVersion() {\n return 1.0;\n}", "init () {\n\t\treturn null;\n\t}", "static get tag(){return\"hal-9000\"}", "toString(){\n\t\treturn 'not implemented';\n\t}", "static transient final protected public internal function m46() {}", "transient private public function m183() {}", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "didMount() {\n }", "requestContainerInfo() {}", "constructor( ) {}", "constructor(info) {\n super();\n\n _defineProperty(this, \"_peerConnectionId\", void 0);\n\n _defineProperty(this, \"_reactTag\", void 0);\n\n _defineProperty(this, \"_id\", void 0);\n\n _defineProperty(this, \"_label\", void 0);\n\n _defineProperty(this, \"_maxPacketLifeTime\", void 0);\n\n _defineProperty(this, \"_maxRetransmits\", void 0);\n\n _defineProperty(this, \"_negotiated\", void 0);\n\n _defineProperty(this, \"_ordered\", void 0);\n\n _defineProperty(this, \"_protocol\", void 0);\n\n _defineProperty(this, \"_readyState\", void 0);\n\n _defineProperty(this, \"_subscriptions\", []);\n\n _defineProperty(this, \"binaryType\", 'arraybuffer');\n\n _defineProperty(this, \"bufferedAmount\", 0);\n\n _defineProperty(this, \"bufferedAmountLowThreshold\", 0);\n\n this._peerConnectionId = info.peerConnectionId;\n this._reactTag = info.reactTag;\n this._label = info.label;\n this._id = info.id === -1 ? null : info.id; // null until negotiated.\n\n this._ordered = Boolean(info.ordered);\n this._maxPacketLifeTime = info.maxPacketLifeTime;\n this._maxRetransmits = info.maxRetransmits;\n this._protocol = info.protocol || '';\n this._negotiated = Boolean(info.negotiated);\n this._readyState = info.readyState;\n\n this._registerEvents();\n }", "function Adapter() {}", "function emptyByteString(){return PlatformSupport.getPlatform().emptyByteString;}/**\r\n * Copyright 2017 Google Inc.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */// TODO(mcg): Change to a string enum once we've upgraded to typescript 2.4.", "function HBaseElement() {\n }", "constructor() {\n super(null);\n }", "get() {\n\n }", "transient final private internal function m170() {}", "initialize()\n {\n }", "transient final private public function m168() {}", "initialize() {}", "initialize() {}", "initialize() {}", "initialize() {}", "initialize() {}", "initialize() {}", "initialize() {\n\n }", "static transient final private internal function m43() {}", "function _null() {\n return exports.PREFIX.null;\n}", "function DWRUtil() { }", "initiator() {\n throw new Error('Not implemented');\n }", "get supportStreaming() { return exists && has(WA.instantiateStreaming); }", "constructor() {\n this.startTime = Date.now();\n this.attributes = {\n \"version\": 0.5, \n \"lang\": \"node.js\",\n \"startTime\": this.startTime\n };\n\n this.inspectedCPU = false;\n this.inspectedMemory = false;\n this.inspectedContainer = false;\n this.inspectedPlatform = false;\n this.inspectedLinux = false;\n }", "headers() {\n throw new Error('Not implemented');\n }", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "get WSAPlayerX64() {}", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }" ]
[ "0.5306975", "0.5000489", "0.49478292", "0.49032435", "0.48796922", "0.4813589", "0.47755355", "0.47755355", "0.47531366", "0.47512633", "0.47255257", "0.47252375", "0.4716664", "0.4704309", "0.4702985", "0.46977335", "0.4639922", "0.45913684", "0.45748463", "0.45701677", "0.45648503", "0.45360342", "0.45202672", "0.45124194", "0.45094657", "0.45021972", "0.4497266", "0.44942433", "0.44875", "0.44875", "0.44875", "0.44875", "0.44875", "0.44875", "0.44875", "0.44875", "0.44875", "0.44875", "0.44875", "0.44821605", "0.44776958", "0.44734424", "0.44726655", "0.44580925", "0.44399133", "0.44352385", "0.44323796", "0.4428895", "0.44179106", "0.44122317", "0.44093066", "0.44071588", "0.43989107", "0.43930784", "0.43891215", "0.43857145", "0.4384661", "0.4376987", "0.4373989", "0.43622348", "0.4348609", "0.43481845", "0.43416053", "0.4330386", "0.4329579", "0.4326422", "0.43218985", "0.43056637", "0.43046206", "0.43046206", "0.43046206", "0.43046206", "0.43046206", "0.43046206", "0.4288913", "0.42865312", "0.42864162", "0.42854986", "0.42796758", "0.42740914", "0.42738843", "0.42734507", "0.42724505", "0.4263666", "0.426273", "0.426273", "0.426273", "0.426273", "0.426273", "0.426273", "0.426273", "0.426273", "0.426273", "0.426273", "0.426273", "0.426273", "0.426273", "0.426273", "0.426273", "0.426273", "0.426273" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function _default(seriesType, defaultSymbolType, legendSymbol) { // Encoding visual for all series include which is filtered for legend drawing return { seriesType: seriesType, // For legend. performRawSeries: true, reset: function (seriesModel, ecModel, api) { var data = seriesModel.getData(); var symbolType = seriesModel.get('symbol'); var symbolSize = seriesModel.get('symbolSize'); var keepAspect = seriesModel.get('symbolKeepAspect'); var symbolRotate = seriesModel.get('symbolRotate'); var hasSymbolTypeCallback = isFunction(symbolType); var hasSymbolSizeCallback = isFunction(symbolSize); var hasSymbolRotateCallback = isFunction(symbolRotate); var hasCallback = hasSymbolTypeCallback || hasSymbolSizeCallback || hasSymbolRotateCallback; var seriesSymbol = !hasSymbolTypeCallback && symbolType ? symbolType : defaultSymbolType; var seriesSymbolSize = !hasSymbolSizeCallback ? symbolSize : null; var seriesSymbolRotate = !hasSymbolRotateCallback ? seriesSymbolRotate : null; data.setVisual({ legendSymbol: legendSymbol || seriesSymbol, // If seting callback functions on `symbol` or `symbolSize`, for simplicity and avoiding // to bring trouble, we do not pick a reuslt from one of its calling on data item here, // but just use the default value. Callback on `symbol` or `symbolSize` is convenient in // some cases but generally it is not recommanded. symbol: seriesSymbol, symbolSize: seriesSymbolSize, symbolKeepAspect: keepAspect, symbolRotate: symbolRotate }); // Only visible series has each data be visual encoded if (ecModel.isSeriesFiltered(seriesModel)) { return; } function dataEach(data, idx) { if (hasCallback) { var rawValue = seriesModel.getRawValue(idx); var params = seriesModel.getDataParams(idx); hasSymbolTypeCallback && data.setItemVisual(idx, 'symbol', symbolType(rawValue, params)); hasSymbolSizeCallback && data.setItemVisual(idx, 'symbolSize', symbolSize(rawValue, params)); hasSymbolRotateCallback && data.setItemVisual(idx, 'symbolRotate', symbolRotate(rawValue, params)); } if (data.hasItemOption) { var itemModel = data.getItemModel(idx); var itemSymbolType = itemModel.getShallow('symbol', true); var itemSymbolSize = itemModel.getShallow('symbolSize', true); var itemSymbolRotate = itemModel.getShallow('symbolRotate', true); var itemSymbolKeepAspect = itemModel.getShallow('symbolKeepAspect', true); // If has item symbol if (itemSymbolType != null) { data.setItemVisual(idx, 'symbol', itemSymbolType); } if (itemSymbolSize != null) { // PENDING Transform symbolSize ? data.setItemVisual(idx, 'symbolSize', itemSymbolSize); } if (itemSymbolRotate != null) { data.setItemVisual(idx, 'symbolRotate', itemSymbolRotate); } if (itemSymbolKeepAspect != null) { data.setItemVisual(idx, 'symbolKeepAspect', itemSymbolKeepAspect); } } } return { dataEach: data.hasItemOption || hasCallback ? dataEach : null }; } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "started () {}", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "started() {\r\n\r\n\t}", "function SigV4Utils() { }", "static get NOT_READY () {return 0}", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "initialize() {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "function getImplementation( cb ){\n\n }", "heartbeat () {\n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "static final private internal function m106() {}", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "get WSAPlayerX64() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }" ]
[ "0.53492224", "0.48935446", "0.48514137", "0.48082927", "0.47720826", "0.4744996", "0.47347993", "0.47019523", "0.46926585", "0.46926585", "0.46730793", "0.46452278", "0.46379203", "0.46256977", "0.4618543", "0.45818752", "0.45806864", "0.45742333", "0.4568166", "0.45616665", "0.45558366", "0.4549164", "0.45481402", "0.45447382", "0.4537214", "0.4522665", "0.451785", "0.4497493", "0.44942656", "0.4484697", "0.4472648", "0.44683102", "0.4465637", "0.44581723", "0.44557354", "0.4454013", "0.44524705", "0.44436827", "0.44380364", "0.4427005", "0.44242096", "0.44237852", "0.44070554", "0.44050547", "0.44050547", "0.44050547", "0.4404598", "0.4393088", "0.43767613", "0.43684104", "0.43635124", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43511948", "0.43502447", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43443355", "0.43417493", "0.43380377", "0.43350744", "0.43350744", "0.4332956", "0.43327877" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function _default(ecModel, payload) { ecModel.eachSeriesByType('sankey', function (seriesModel) { var graph = seriesModel.getGraph(); var nodes = graph.nodes; if (nodes.length) { var minValue = Infinity; var maxValue = -Infinity; zrUtil.each(nodes, function (node) { var nodeValue = node.getLayout().value; if (nodeValue < minValue) { minValue = nodeValue; } if (nodeValue > maxValue) { maxValue = nodeValue; } }); zrUtil.each(nodes, function (node) { var mapping = new VisualMapping({ type: 'color', mappingMethod: 'linear', dataExtent: [minValue, maxValue], visual: seriesModel.get('color') }); var mapValueToColor = mapping.mapValueToVisual(node.getLayout().value); var customColor = node.getModel().get('itemStyle.color'); customColor != null ? node.setVisual('color', customColor) : node.setVisual('color', mapValueToColor); }); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "started () {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "function SigV4Utils() { }", "started() {\r\n\r\n\t}", "static get NOT_READY () {return 0}", "initialize() {\n\n }", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "function getImplementation( cb ){\n\n }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "heartbeat () {\n }", "static final private internal function m106() {}", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "get WSAPlayerX64() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }" ]
[ "0.53504926", "0.4896905", "0.48514667", "0.48116106", "0.4775166", "0.4743932", "0.47342455", "0.47035336", "0.4694186", "0.4694186", "0.46744877", "0.46453032", "0.46394095", "0.4629355", "0.46211302", "0.45832416", "0.45812932", "0.45752546", "0.45698234", "0.45625272", "0.4557475", "0.4549714", "0.45494938", "0.4545794", "0.45383474", "0.4523037", "0.45180768", "0.45005357", "0.4496748", "0.4486438", "0.447462", "0.44716924", "0.4468301", "0.44601226", "0.4456266", "0.4455926", "0.44557476", "0.4445067", "0.44378054", "0.44258687", "0.44258553", "0.4424118", "0.44097725", "0.4406038", "0.4404498", "0.4404498", "0.4404498", "0.43926418", "0.43781474", "0.43708664", "0.43657827", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43526813", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4349645", "0.43450522", "0.43440443", "0.43390423", "0.43347356", "0.43347356", "0.43332103", "0.43318707" ]
0.0
-1
Myers' Diff Algorithm Modified from
function Diff() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function diffArray(_a, _b) {\n const state = {\n distance: 0,\n adds: {},\n dels: {},\n const: {},\n linear: []\n };\n if (_a === _b) {\n return state;\n }\n const reverse = _a.length >= _b.length;\n const adds = state[reverse ? \"dels\" : \"adds\"];\n const dels = state[reverse ? \"adds\" : \"dels\"];\n const aID = reverse ? -1 : 1;\n const dID = reverse ? 1 : -1;\n let a, b, na, nb;\n if (reverse) {\n a = _b;\n b = _a;\n }\n else {\n a = _a;\n b = _b;\n }\n na = a.length;\n nb = b.length;\n const offset = na + 1;\n const delta = nb - na;\n const doff = delta + offset;\n const size = na + nb + 3;\n const path = new Array(size).fill(-1);\n const fp = new Array(size).fill(-1);\n const epc = [];\n const pathPos = [];\n function snake(k, p, pp) {\n const koff = k + offset;\n const r = path[koff + ((p > pp) ? -1 : 1)];\n let y = p > pp ? p : pp;\n let x = y - k;\n while (x < na && y < nb && equiv_1.equiv(a[x], b[y])) {\n x++;\n y++;\n }\n path[koff] = pathPos.length;\n pathPos.push([x, y, r]);\n return y;\n }\n let p = -1, pp;\n do {\n p++;\n for (let k = -p, ko = k + offset; k < delta; k++, ko++) {\n fp[ko] = snake(k, fp[ko - 1] + 1, fp[ko + 1]);\n }\n for (let k = delta + p, ko = k + offset; k > delta; k--, ko--) {\n fp[ko] = snake(k, fp[ko - 1] + 1, fp[ko + 1]);\n }\n fp[doff] = snake(delta, fp[doff - 1] + 1, fp[doff + 1]);\n } while (fp[doff] !== nb);\n state.distance = delta + 2 * p;\n let r = path[doff];\n while (r !== -1) {\n epc.push(pp = pathPos[r]);\n r = pp[2];\n }\n for (let i = epc.length - 1, px = 0, py = 0; i >= 0; i--) {\n const e = epc[i];\n let v;\n while (px < e[0] || py < e[1]) {\n const d = e[1] - e[0];\n if (d > py - px) {\n adds[py] = v = b[py];\n state.linear.push([aID, [py, v]]);\n py++;\n }\n else if (d < py - px) {\n dels[px] = v = a[px];\n state.linear.push([dID, [px, v]]);\n px++;\n }\n else {\n state.const[px] = v = a[px];\n state.linear.push([0, [px, v]]);\n px++;\n py++;\n }\n }\n }\n return state;\n}", "xpDiff (swapSkater) {\n let skaterOverall = this.props.selectedSkater.edges + this.props.selectedSkater.jumps + this.props.selectedSkater.form + this.props.selectedSkater.presentation;\n let swapSkaterOverall = swapSkater.edges + swapSkater.jumps + swapSkater.form + swapSkater.presentation;\n return swapSkaterOverall - skaterOverall;\n }", "function findDiff(c, x, y, i, j, results, user) {\n if (i > 0 && j > 0 && x[i-1] === y[j-1]) {\n findDiff(c, x, y, i-1, j-1, results, user);\n diff_result = new DiffResult();\n diff_result.char = x[i-1];\n diff_result.status = \" \";\n diff_result.user = 0;\n results.push(diff_result);\n }\n else if (j > 0 && (i == 0 || c[i][j-1] >= c[i-1][j])) {\n findDiff(c, x, y, i, j-1, results, user);\n diff_result = new DiffResult();\n diff_result.char = y[j-1];\n diff_result.status = \"+\";\n diff_result.user = user;\n results.push(diff_result);\n\n }\n else if (i > 0 && (j == 0 || c[i][j-1] < c[i-1][j])) {\n findDiff(c, x, y, i-1, j, results, user);\n diff_result = new DiffResult();\n diff_result.char = x[i-1];\n diff_result.status = \"-\";\n diff_result.user = user;\n results.push(diff_result); \n }\n\n return results;\n\n}", "function test() {\n var b1, b2, prev = null, prevdiff = null;\n\n var res = [];\n\n for (b1 = 0; b1 < 256; b1++) {\n for (b2 = 0; b2 < 256; b2++) {\n var data = new Uint8Array([ 0xf9, b1, b2 ]).buffer;\n var val = CBOR.decode(data);\n var obj = { input: Duktape.enc('hex', data), value: val };\n if (prev !== null && Number.isNaN(prev) && Number.isNaN(val)) {\n obj.diff = 0;\n } else if (prev !== null && Number.isFinite(prev) && Number.isFinite(val)) {\n obj.diff = val - prev;\n }\n prev = val;\n res.push(obj);\n }\n }\n\n var diff_printed = false;\n for (i = 0; i < res.length; i++) {\n var prev = (i > 0 ? res[i - 1] : {});\n var curr = res[i];\n if (prev.diff === curr.diff && typeof curr.diff === 'number') {\n if (diff_printed) {\n } else {\n print(' diff: ' + prev.diff);\n diff_printed = true;\n }\n } else {\n print(curr.input, Duktape.enc('jx', curr.value));\n diff_printed = false;\n }\n }\n}", "function findDifference(a, b) {\nlet summA = 1;\nlet summB = 1;\nfor(let i = 0; i<a.length; i++){\n summA *= a[i];\n}\nfor(let x = 0; x<b.length; x++){\n summB *= b[x];\n}\nlet result;\nif(summA>summB){\n result=summA-summB\n} else {result = summB - summA}\nreturn result\n}", "function diffArray(arr2, arr1, diff, diffFn) {\n if(!diff) return _.simpleDiff(arr2, arr1);\n var matrix = ld(arr1, arr2, diffFn)\n var n = arr1.length;\n var i = n;\n var m = arr2.length;\n var j = m;\n var edits = [];\n var current = matrix[i][j];\n while(i>0 || j>0){\n // the last line\n if (i === 0) {\n edits.unshift(3);\n j--;\n continue;\n }\n // the last col\n if (j === 0) {\n edits.unshift(2);\n i--;\n continue;\n }\n var northWest = matrix[i - 1][j - 1];\n var west = matrix[i - 1][j];\n var north = matrix[i][j - 1];\n\n var min = Math.min(north, west, northWest);\n\n if (min === west) {\n edits.unshift(2); //delete\n i--;\n current = west;\n } else if (min === northWest ) {\n if (northWest === current) {\n edits.unshift(0); //no change\n } else {\n edits.unshift(1); //update\n current = northWest;\n }\n i--;\n j--;\n } else {\n edits.unshift(3); //add\n j--;\n current = north;\n }\n }\n var LEAVE = 0;\n var ADD = 3;\n var DELELE = 2;\n var UPDATE = 1;\n var n = 0;m=0;\n var steps = [];\n var step = { index: null, add:0, removed:[] };\n\n for(var i=0;i<edits.length;i++){\n if(edits[i] > 0 ){ // NOT LEAVE\n if(step.index === null){\n step.index = m;\n }\n } else { //LEAVE\n if(step.index != null){\n steps.push(step)\n step = {index: null, add:0, removed:[]};\n }\n }\n switch(edits[i]){\n case LEAVE:\n n++;\n m++;\n break;\n case ADD:\n step.add++;\n m++;\n break;\n case DELELE:\n step.removed.push(arr1[n])\n n++;\n break;\n case UPDATE:\n step.add++;\n step.removed.push(arr1[n])\n n++;\n m++;\n break;\n }\n }\n if(step.index != null){\n steps.push(step)\n }\n return steps\n}", "function diff(a, b) {\n \tvar i,\n \t j,\n \t result = a.slice();\n\n \tfor (i = 0; i < result.length; i++) {\n \t\tfor (j = 0; j < b.length; j++) {\n \t\t\tif (result[i] === b[j]) {\n \t\t\t\tresult.splice(i, 1);\n \t\t\t\ti--;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n \treturn result;\n }", "function difference(arr1, arr2) {\n \n \n \n}", "function symDiff(arr1, arr2) { // create callback function for argsArray.reduce\n var uniqueVals = []; // create an empty array\n for (var i = 0; i < arr1.length; i++) { // loop through first array\n if (arr2.indexOf(arr1[i]) < 0 && uniqueVals.indexOf(arr1[i]) < 0) {\n uniqueVals.push(arr1[i]); // if the number in arr1 is not in arr2 or the uniqueVals array push it to uniqueVals\n }\n }\n\n arr2.forEach(function(item) { // loop through each number in arr2\n if (arr1.indexOf(item) < 0 && uniqueVals.indexOf(item) < 0) {\n uniqueVals.push(item); // if the number is not in arr1 nor uniqueVals push it to uniqueVals\n }\n });\n return uniqueVals;\n }", "function diff( a, b ) {\n var result = a.slice();\n\tfor ( var i = 0; i < result.length; i++ ) {\n\t\tfor ( var j = 0; j < b.length; j++ ) {\n\t\t\tif ( result[i] === b[j] ) {\n\t\t\t\tresult.splice(i, 1);\n\t\t\t\ti--;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn result;\n}", "function diffArray(arr2, arr1, diff, diffFn) {\n\t if(!diff) return simpleDiff(arr2, arr1);\n\t var matrix = ld(arr1, arr2, diffFn)\n\t var n = arr1.length;\n\t var i = n;\n\t var m = arr2.length;\n\t var j = m;\n\t var edits = [];\n\t var current = matrix[i][j];\n\t while(i>0 || j>0){\n\t // the last line\n\t if (i === 0) {\n\t edits.unshift(3);\n\t j--;\n\t continue;\n\t }\n\t // the last col\n\t if (j === 0) {\n\t edits.unshift(2);\n\t i--;\n\t continue;\n\t }\n\t var northWest = matrix[i - 1][j - 1];\n\t var west = matrix[i - 1][j];\n\t var north = matrix[i][j - 1];\n\n\t var min = Math.min(north, west, northWest);\n\n\t if (min === west) {\n\t edits.unshift(2); //delete\n\t i--;\n\t current = west;\n\t } else if (min === northWest ) {\n\t if (northWest === current) {\n\t edits.unshift(0); //no change\n\t } else {\n\t edits.unshift(1); //update\n\t current = northWest;\n\t }\n\t i--;\n\t j--;\n\t } else {\n\t edits.unshift(3); //add\n\t j--;\n\t current = north;\n\t }\n\t }\n\t var LEAVE = 0;\n\t var ADD = 3;\n\t var DELELE = 2;\n\t var UPDATE = 1;\n\t var n = 0;m=0;\n\t var steps = [];\n\t var step = {index: null, add:0, removed:[]};\n\n\t for(var i=0;i<edits.length;i++){\n\t if(edits[i] > 0 ){ // NOT LEAVE\n\t if(step.index === null){\n\t step.index = m;\n\t }\n\t } else { //LEAVE\n\t if(step.index != null){\n\t steps.push(step)\n\t step = {index: null, add:0, removed:[]};\n\t }\n\t }\n\t switch(edits[i]){\n\t case LEAVE:\n\t n++;\n\t m++;\n\t break;\n\t case ADD:\n\t step.add++;\n\t m++;\n\t break;\n\t case DELELE:\n\t step.removed.push(arr1[n])\n\t n++;\n\t break;\n\t case UPDATE:\n\t step.add++;\n\t step.removed.push(arr1[n])\n\t n++;\n\t m++;\n\t break;\n\t }\n\t }\n\t if(step.index != null){\n\t steps.push(step)\n\t }\n\t return steps\n\t}", "function diff(A) {\n return A.slice(1).map(function(n, i) { return n - A[i]; });\n }", "function diffPossible (A, B){\n if(A.length <= 1) return 0;\n \n var aElm = A.shift();\n \n while(aElm){\n for(nextElm of A){\n if(aElm - nextElm == B || nextElm - aElm == B){\n return 1;\n }\n }\n aElm = A.shift();\n }\n \n return 0;\n }", "function difference() {\n\t\t\tvar s = 0;\n\t\t\tfor (var i = 0 ; i <= n ; i++)\n\t\t\t\ts += (-1)**i * this.binomial(n,i) * f(x + (n-2*i)*h);\n\t\t\treturn s / (2*h)**n\n\t\t}", "function versionDiffers(a1, a2) {\n\t\tvar inBoth = intersection(a1, a2);\n\t\treturn _.filter(inBoth, function ina2(r1) {\n\t\t\treturn _.some(a2, function rina2(r2) {\n\t\t\t\treturn r1.id === r2.id && r1.version !== r2.version;\n\t\t\t});\n\t\t});\n\t}", "function difference(){\n\t\t\tfor (var j = 0; j<totalArray.length; j++) {\n\t\t\t\tdifferenceTotal = Math.abs(parseInt(totalNew) - parseInt(totalArray[j]));\n\t\t\t\tdiffArray.push(differenceTotal);\n\t\t\t\tdifferenceTotal = 0;\n\t\t\t}\n\t\t\tconsole.log(\"This is the diffarray \" + diffArray);\n\t\t\tindexOfSmallest();\n\t\t}", "function symdiff(arr1, arr2){\n // create an empety array to store the unique values\n var newArr = [];\n // iterate through each item in the first array\n for (var i = 0; i <arr1.length; i++){\n // if the first item in the first array is not in the second array or in the new array\n if(arr2.indexOf(arr1[i])<0 && newArr.indexOf(arr1[i])<0){\n // push the item into the new array\n newArr.push(arr1[i]);\n }\n }\n // iterate through the second array\n arr2.forEach(function(item){\n // if the items in the second array are not present in the first array or in the new array\n if(arr1.indexOf(item)<0 && newArr.indexOf(item)<0){\n // push the item into the new array\n newArr.push(item);\n }\n });\n return newArr;\n\n }", "function diffArrayHeuristic(a, b, settings) {\n\tconst lookahead = settings.arrayLookahead;\n\tlet sublog = [];\n\tlet ia = 0;\n\tfor (let i = 0; i < b.length; i++) {\n\t\tlet validDif = 2;\n\t\tlet validSrc = null;\n\t\tfor (let j = ia; j < Math.min(ia + lookahead, a.length); j++) {\n\t\t\tlet dif = diffHeuristic(a[j], b[i], settings);\n\t\t\tif (dif < validDif) {\n\t\t\t\tvalidDif = dif;\n\t\t\t\tvalidSrc = j;\n\t\t\t}\n\t\t}\n\t\tif (validDif > settings.arrayTrulyDifferentThreshold)\n\t\t\tvalidSrc = null;\n\t\tif (validSrc != null) {\n\t\t\twhile (ia < validSrc) {\n\t\t\t\tsublog.push(\"POPA\");\n\t\t\t\tia++;\n\t\t\t}\n\t\t\tsublog.push(\"PATCH\");\n\t\t\tia++;\n\t\t} else {\n\t\t\tif (ia == a.length) {\n\t\t\t\tsublog.push(\"INSERT\");\n\t\t\t} else {\n\t\t\t\tsublog.push(\"PATCH\");\n\t\t\t\tia++;\n\t\t\t}\n\t\t}\n\t}\n\twhile (ia < a.length) {\n\t\tsublog.push(\"POPA\");\n\t\tia++;\n\t}\n\treturn sublog;\n}", "function assoc_diff (a,b)\n{\n console.log([a,b]);\n var ks = Object.keys(a).concat(Object.keys(b)).unique();\n\n var Δ = [];\n\n for(var x=0; x<ks.length; x++)\n {\n if (typeof a[ks[x]] == 'object' && typeof b[ks[x]] == 'object')\n {\n if (a[ks[x]]===null || b[ks[x]]===null)\n {\n if (!(a[ks[x]]===null && b[ks[x]]===null))\n {\n Δ.push(ks[x]);\n }\n }\n else if (assoc_diff(a[ks[x]],b[ks[x]]).length)\n {\n Δ.push(ks[x]);\n }\n }\n else if (a[ks[x]]!=b[ks[x]])\n {\n Δ.push(ks[x]);\n }\n }\n return Δ;\n}", "function jwdistance(s1, s2) {\n if (typeof(s1) != \"string\" || typeof(s2) != \"string\") return 0;\n if (s1.length == 0 || s2.length == 0) return 0;\n s1 = s1.toLowerCase(), s2 = s2.toLowerCase();\n var matchWindow = (Math.floor(Math.max(s1.length, s2.length) / 2.0)) - 1;\n var matches1 = new Array(s1.length);\n var matches2 = new Array(s2.length);\n var m = 0; // number of matches\n var t = 0; // number of transpositions\n //debug helpers\n //console.log(\"s1: \" + s1 + \"; s2: \" + s2);\n //console.log(\" - matchWindow: \" + matchWindow);\n // find matches\n for (var i = 0; i < s1.length; i++) {\n var matched = false;\n // check for an exact match\n if (s1[i] == s2[i]) {\n matches1[i] = matches2[i] = matched = true;\n m++\n }\n // check the \"match window\"\n else {\n // this for loop is a little brutal\n for (k = (i <= matchWindow) ? 0 : i - matchWindow;\n (k <= i + matchWindow) && k < s2.length && !matched;\n k++) {\n if (s1[i] == s2[k]) {\n if (!matches1[i] && !matches2[k]) {\n m++;\n }\n matches1[i] = matches2[k] = matched = true;\n }\n }\n }\n }\n if (m == 0) return 0.0;\n // count transpositions\n var k = 0;\n for (var i = 0; i < s1.length; i++) {\n if (matches1[k]) {\n while (!matches2[k] && k < matches2.length)\n k++;\n if (s1[i] != s2[k] && k < matches2.length) {\n t++;\n }\n k++;\n }\n }\n //debug helpers:\n //console.log(\" - matches: \" + m);\n //console.log(\" - transpositions: \" + t);\n t = t / 2.0;\n return (m / s1.length + m / s2.length + (m - t) / m) / 3;\n}", "function _VirtualDom_diff(x, y)\n{\n\tvar patches = [];\n\t_VirtualDom_diffHelp(x, y, patches, 0);\n\treturn patches;\n}", "function _VirtualDom_diff(x, y)\n{\n\tvar patches = [];\n\t_VirtualDom_diffHelp(x, y, patches, 0);\n\treturn patches;\n}", "function _VirtualDom_diff(x, y)\n{\n\tvar patches = [];\n\t_VirtualDom_diffHelp(x, y, patches, 0);\n\treturn patches;\n}", "function _VirtualDom_diff(x, y)\n{\n\tvar patches = [];\n\t_VirtualDom_diffHelp(x, y, patches, 0);\n\treturn patches;\n}", "function _VirtualDom_diff(x, y)\n{\n\tvar patches = [];\n\t_VirtualDom_diffHelp(x, y, patches, 0);\n\treturn patches;\n}", "function _VirtualDom_diff(x, y)\n{\n\tvar patches = [];\n\t_VirtualDom_diffHelp(x, y, patches, 0);\n\treturn patches;\n}", "function _VirtualDom_diff(x, y)\n{\n\tvar patches = [];\n\t_VirtualDom_diffHelp(x, y, patches, 0);\n\treturn patches;\n}", "function _VirtualDom_diff(x, y)\n{\n\tvar patches = [];\n\t_VirtualDom_diffHelp(x, y, patches, 0);\n\treturn patches;\n}", "function _VirtualDom_diff(x, y)\n{\n\tvar patches = [];\n\t_VirtualDom_diffHelp(x, y, patches, 0);\n\treturn patches;\n}", "function _VirtualDom_diff(x, y)\n{\n\tvar patches = [];\n\t_VirtualDom_diffHelp(x, y, patches, 0);\n\treturn patches;\n}", "function _VirtualDom_diff(x, y)\n{\n\tvar patches = [];\n\t_VirtualDom_diffHelp(x, y, patches, 0);\n\treturn patches;\n}", "function _VirtualDom_diff(x, y)\n{\n\tvar patches = [];\n\t_VirtualDom_diffHelp(x, y, patches, 0);\n\treturn patches;\n}", "function _VirtualDom_diff(x, y)\n{\n\tvar patches = [];\n\t_VirtualDom_diffHelp(x, y, patches, 0);\n\treturn patches;\n}", "function _VirtualDom_diff(x, y)\n{\n\tvar patches = [];\n\t_VirtualDom_diffHelp(x, y, patches, 0);\n\treturn patches;\n}", "function _VirtualDom_diff(x, y)\n{\n\tvar patches = [];\n\t_VirtualDom_diffHelp(x, y, patches, 0);\n\treturn patches;\n}", "function _VirtualDom_diff(x, y)\n{\n\tvar patches = [];\n\t_VirtualDom_diffHelp(x, y, patches, 0);\n\treturn patches;\n}", "_diff(){\t\t\n\t\tvar text1 = this.currentContribution > 0 ? this.contributions[this.currentContribution - 1].content :'';\n\t\tvar text2 = this.contributions[this.currentContribution].content;\n\t\t\n\t\tvar author = this.contributions[this.currentContribution].user;\n\t\tvar soundEffect = this._getSoundEffect(author.id);\t\t\n\t\t\n\t\tvar dmp = new diff_match_patch();\n \tvar d = dmp.diff_main(text1, text2, false);\n \tdmp.diff_cleanupSemantic(d);\n \t\n \t\n \tthis._talkContribution(soundEffect,author);\n \t\n \t\n \treturn dmp.diff_prettyHtml(d,soundEffect.color);\n }", "function getScaleDiffFn(points1, points2) {\n\n // Find remaining points with predictable position\n var src = [];\n var dst = [];\n var i, j, a, b, matchJ = 0;\n var len1 = points1.length;\n var len2 = points2.length;\n for (i = 0; i < len1; i++) {\n a = points1[i];\n for (j = matchJ; j < len2; j++) {\n b = points2[j];\n if (a.id === b.id) {\n matchJ = j + 1;\n src.push(a);\n dst.push(b);\n break;\n }\n }\n }\n\n if (src.length < 1 || dst.length < 1) {\n // Applying scale difference will not be possible\n return (d => d);\n }\n\n var numProps = Object.keys(src[0])\n .filter(prop => typeof src[0][prop] === 'number')\n .filter(prop => prop !== 'id');\n\n var propDiffs = {};\n var createPropDiffFn = (a0, b0, a, b) => (c0) => (\n b +\n (c0 - b0) *\n (b - a) /\n (b0 - a0)\n );\n var createSimpleDiffFn = (a0, a) => (c0) => (c0 - a0 + a);\n numProps.forEach(prop => {\n var a0 = src[0][prop];\n var a = dst[0][prop];\n for (var i = src.length - 1, b0, b; i > 0; i--) {\n b0 = src[i][prop];\n if (b0 !== a0) {\n b = dst[i][prop];\n propDiffs[prop] = createPropDiffFn(a0, b0, a, b);\n return;\n }\n }\n propDiffs[prop] = createSimpleDiffFn(a0, a);\n });\n\n return (c0) => {\n var c = Object.assign({}, c0);\n numProps.forEach(p => {\n c[p] = propDiffs[p](c0[p]);\n });\n return c;\n };\n}", "function diff( a, b ) {\n\tvar result = a.slice();\n\tfor ( var i = 0; i < result.length; i++ ) {\n\t\tfor ( var j = 0; j < b.length; j++ ) {\n\t\t\tif ( result[i] === b[j] ) {\n\t\t\t\tresult.splice(i, 1);\n\t\t\t\ti--;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn result;\n}", "function diff( a, b ) {\n\tvar result = a.slice();\n\tfor ( var i = 0; i < result.length; i++ ) {\n\t\tfor ( var j = 0; j < b.length; j++ ) {\n\t\t\tif ( result[i] === b[j] ) {\n\t\t\t\tresult.splice(i, 1);\n\t\t\t\ti--;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn result;\n}", "function diff( a, b ) {\n\tvar result = a.slice();\n\tfor ( var i = 0; i < result.length; i++ ) {\n\t\tfor ( var j = 0; j < b.length; j++ ) {\n\t\t\tif ( result[i] === b[j] ) {\n\t\t\t\tresult.splice(i, 1);\n\t\t\t\ti--;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn result;\n}", "function mySolution(arr1, arr2) {\r\n let newArr1 = [];\r\n arr1.map((item, index) => newArr1.push({\r\n 'price': item,\r\n 'index': index,\r\n 'isArr1': true\r\n }));\r\n let newArr2 = [];\r\n arr2.map((item, index) => newArr2.push({\r\n 'price': item,\r\n 'index': index,\r\n 'isArr1': false\r\n }));\r\n newArr1.push(...newArr2);\r\n let myArr = newArr1.slice(0);\r\n myArr.sort((a, b) => {\r\n return a.price - b.price;\r\n });\r\n console.log('sorted Arr: ', myArr);\r\n let minDiffPrice = 1000000;\r\n let tempItem;\r\n let newArr1Index = 0;\r\n let newArr2Index = 0;\r\n myArr.map(item => {\r\n // init\r\n if (minDiffPrice === 1000000) {\r\n tempItem = item;\r\n tempItem.isArr1 ? newArr1Index = tempItem.index : newArr2Index = tempItem.index;\r\n minDiffPrice--;\r\n } else {\r\n if ((item.price - tempItem.price) < minDiffPrice && item.isArr1 !== tempItem.isArr1) {\r\n // need to update\r\n tempItem.isArr1 ? newArr1Index = tempItem.index : newArr2Index = tempItem.index;\r\n minDiffPrice = item.price - tempItem.price;\r\n tempItem = item;\r\n console.log('diffPrice: ' + minDiffPrice);\r\n tempItem.isArr1 ? newArr1Index = tempItem.index : newArr2Index = tempItem.index;\r\n // console.log([newArr1Index, newArr2Index]);\r\n } else if (item.isArr1 === tempItem.isArr1) {\r\n tempItem = item;\r\n }\r\n }\r\n });\r\n return [newArr1Index, newArr2Index];\r\n}", "function arrayDiff(a1, a2) {\n\tvar totalDiff = 0;\n\ta2.forEach((elem, index) => {\n\t\ttotalDiff += Math.abs(elem - a1[index]);\n\t});\n\treturn totalDiff;\n}", "function symmetricDifference(array1, array2) {\n const newArr = [];\n let i = 0;\n let j = 0;\n // while i is in array1 and j is in array2\n while(i < array1.length && j < array2.length){\n // if equal\n if (array1[i] == array2[j]){\n // increment both i and j\n i++;\n j++;\n } else if (array1[i] < array2[j]){ // else if array1 at i is less than array 2 at j \n // push array1 at i and increment i\n if (array1[i] != array1[i-1]) {\n newArr.push(array1[i]);\n }\n i++;\n } else {\n //push array2 at j and increment j \n if (array2[j] != array2[j-1]){\n newArr.push(array2[j]);\n }\n j++;\n }\n }\n while (i < array1.length){\n if (array1[i] != array1[i-1]) {\n newArr.push(array1[i]);\n }\n i++;\n }\n while(j < array2.length){\n if (array2[j] != array2[j-1]){\n newArr.push(array2[j]);\n }\n j++;\n }\n return newArr;\n}", "function f(){for(var f=-1*l;f<=l;f+=2){var g=/*istanbul ignore start*/void 0,h=n[f-1],m=n[f+1],o=(m?m.newPos:0)-f;h&&(\n// No one else is going to attempt to use this value, clear it\nn[f-1]=void 0);var p=h&&h.newPos+1<j,q=m&&0<=o&&o<k;if(p||q){\n// If we have hit the end of both strings, then we are done\nif(\n// Select the diagonal that we want to branch from. We select the prior\n// path whose position in the new string is the farthest from the origin\n// and does not pass the bounds of the diff graph\n!p||q&&h.newPos<m.newPos?(g=e(m),i.pushComponent(g.components,void 0,!0)):(g=h,// No need to clone, we've pulled it from the list\ng.newPos++,i.pushComponent(g.components,!0,void 0)),o=i.extractCommon(g,b,a,f),g.newPos+1>=j&&o+1>=k)return c(d(i,g.components,b,a,i.useLongestToken));\n// Otherwise track this path as a potential candidate and continue.\nn[f]=g}else\n// If this path is a terminal then prune\nn[f]=void 0}l++}", "function findDifference(){\n array3D.shift()\n array3D.shift()\n array3D.unshift(result)\n}", "function diffArray(arr1, arr2) {\n var newArr = [];\n // Same, same; but different.\n for(let i=0; i < arr2.length; i++){\n for(let j=i; j < arr1[i]; j++){\n if(arr2[i] !== arr1[j]){\n if(arr1[j] === null || arr1[j] ===undefined){\n // break;\n console.log(`From arr[j] ${arr2[j]} arr[i] ${arr1[i]}`);\n }\n newArr.push(arr1[i]);\n }\n else if(arr1[j] !== arr2[i]){\n if(arr2[i] === null || arr2[i] ===undefined){\n break;\n console.log(`From arr[j] ${arr2[j]}`);\n }\n newArr.push(arr2[i]);\n }\n // if(arr1[i] !== arr2[j]){\n // newArr.push(arr1[i])\n // }\n // else if(arr2[j] !== arr1[i]){\n // newArr.push(arr2[j]);\n // }\n console.log(`I: ${arr1[i]} J: ${arr2[j]}`)\n }\n }\n return newArr;\n }", "function col_Diff()\n{\n var i=0;\n \n $(\".YetToVisitedNode\").each(function() {\n\n\t\t\t\t\t\t\tif(i%2 == 0 && !$(this).hasClass('evenItinerary'))\n\t\t\t\t\t\t\t{\n \t\t\t\t\t\t\tif($(this).hasClass('oddItinerary'))\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t$(this).removeClass('oddItinerary');\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t$(this).addClass('evenItinerary');\n\t\t\t\t\t\t\t}\n \t\t\t\t\t\telse if(i%2 != 0 && !$(this).hasClass('oddItinerary'))\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tif($(this).hasClass('evenItinerary'))\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\t$(this).removeClass('evenItinerary');\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t$(this).addClass('oddItinerary');\n \t\t\t\t\t\t}\n\t\t\t\t\t\ti++;\n});\n\n\t\t\t\t\t\ti=1;\n\n\t\t\t\t\t\t$(\".visitedNode\").each(function() {\n\t\n \t\t\t\t\tif(i%2 == 0 && !$(this).hasClass('evenItinerary'))\n\t\t\t\t\t\t{\n \t\t\t\t\t\tif($(this).hasClass('oddItinerary'))\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\t$(this).removeClass('oddItinerary');\n \t\t\t\t\t\t}\n \t\t\t\t\t\t$(this).addClass('evenItinerary');\n \t\t\t\t\t}\n \t\t\t\t\telse if(i%2 != 0 && !$(this).hasClass('oddItinerary'))\n \t\t\t\t\t{\n \t\t\t\t\t\tif($(this).hasClass('evenItinerary'))\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\t$(this).removeClass('evenItinerary');\n \t\t\t\t\t\t}\n \t\t\t\t\t\t$(this).addClass('oddItinerary');\n \t\t\t\t\t\t }\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\t});\n\t\t\t\t\t\t//Adding colore difference code ends here\n }", "arrayDiff(newArray, oldArray) {\n var diffArray = [], difference = [];\n for (var i = 0; i < newArray.length; i++) {\n diffArray[newArray[i]] = true;\n }\n for (var j = 0; j < oldArray.length; j++) {\n if (diffArray[oldArray[j]]) {\n delete diffArray[oldArray[j]];\n } else {\n diffArray[oldArray[j]] = true;\n }\n }\n for (var key in diffArray) {\n difference.push(key);\n }\n return difference;\n }", "function sym(args) {\n\tvar argArr = [];\n\tfor (var i = 0; i < arguments.length; i++) {\n\t\targArr.push(arguments[i]);\n\t}\n\tvar diff = [];\n\tfor (var i = 0; i < argArr.length; i++) {\n\t\tdiff = diffTwoArr(diff, argArr[i]);\n\t}\n\t\n\tfunction diffTwoArr(arr1, arr2) {\n\t\tvar diff = [];\n\t\tif (!arr2) {\n\t\t\tarr2 = [];\n\t\t}\n\t\tarr1.forEach(function(val) {\n\t\t\tif (arr2.indexOf(val) === -1 && diff.indexOf(val) === -1) {\n\t\t\t\tdiff.push(val);\n\t\t\t}\n\t\t});\n\t\tarr2.forEach(function(val) {\n\t\t\tif (arr1.indexOf(val) === -1 && diff.indexOf(val) === -1) {\n\t\t\t\tdiff.push(val);\n\t\t\t}\n\t\t});\n\t\treturn diff;\n\t}\n\treturn diff;\n}", "function diff(target, data1, data2){\n if (data1.length != data2.length) return null;\n var i=0;\n while(i<(data1.length/4)){\n\n target[i*4] = data1[4*i] == 0 ? 0 : fastAbs(data1[4*i] - data2[4*i+1]);\n target[i*4+1] = data1[4*i+1] == 0 ? 0 : fastAbs(data1[4*i+1] - data2[4*i+1]);\n target[i*4+2] = data1[4*i+2] == 0 ? 0 : fastAbs(data1[4*i+2] - data2[4*i+2]);\n target[i*4+3] = 0xFF;\n \n i++;\n }\n}", "findDifference(op1, op2) {\n // First, assumed that op1 >= op2.\n let result = '';\n\n // Swap if first string is smaller than second one\n // if (isSmaller(op1, op2)) {\n // [op1, op2] = [op2, op1];\n // }\n\n const n1 = op1.length;\n const n2 = op2.length;\n const diff = n1 - n2;\n\n // Initially take carry zero\n let carry = 0;\n\n // Traverse from end of both Strings\n for (let i = n2 - 1; i >= 0; i--) {\n // Do school mathematics, compute difference of\n // current digits and carry\n let sub = op1[i + diff] - op2[i] - carry;\n if (sub < 0) {\n sub += 10;\n carry = 1;\n } else carry = 0;\n result = sub + result;\n }\n\n // subtract remaining digits of op1[]\n for (let i = n1 - n2 - 1; i >= 0; i--) {\n if (op1[i] == '0' && carry > 0) {\n result = `9${result}`;\n continue;\n }\n const sub = op1[i] - carry;\n if (i > 0 || sub > 0) {\n result = sub + result;\n }\n // remove preceding 0's\n\n carry = 0;\n }\n\n return result;\n }", "function computeDiff(thing1, thing2) {\n if (typeof thing1 === 'object' && typeof thing2 === 'object') {\n if (Array.isArray(thing1) && Array.isArray(thing2)) {\n return arrayDiff(thing1, thing2);\n }\n return objectDiff(thing1, thing2);\n }\n if (thing1 !== thing2) {\n return [thing1, thing2];\n }\n}", "function find_difference(a, b) {\n return Math.abs(a[0]*a[1]*a[2] - b[0]*b[1]*b[2]);\n}", "function testDifference() {\n emptyBoxes();\n testCommon();\n $(\"#diffBox\").append(\"<h3>Test znamének diferencí</h3>\");\n\n // TEST ZNAMENEK DIFFERENCI\n var diffE = (n - 1) / 2;\n var diffD = (n + 1) / 12\n\n var diffC = 0;\n for(i = 0; i < n - 1; i++) {\n if (listNumbers[i + 1] > listNumbers[i]) {\n diffC += 1;\n }\n }\n\n var diffU = (diffC - diffE) / Math.sqrt(diffD);\n\n $(\"#diffBox\").append(\"$H_0:$ Posloupnost čísel je náhodná<br/>\");\n $(\"#diffBox\").append(\"$H_1:$ Posloupnost čísel není náhodná<br/><br/>\");\n $(\"#diffBox\").append(\"$n$ = \" + n + \"<br/>\");\n $(\"#diffBox\").append(\"$C$ = \" + diffC + \"<br/>\");\n $(\"#diffBox\").append(\"$E(C)$ = \" + diffE + \"<br/>\");\n $(\"#diffBox\").append(\"$D(C)$ = \" + diffD.toFixed(4) + \"<br/>\");\n $(\"#diffBox\").append(\"$u$ = \" + diffU.toFixed(4) + \"<br/><br/>\");\n\n var resultRejected = Math.abs(diffU) > u0975;\n if (resultRejected) {\n $(\"#diffBox\").append(\"$|u| > u_{1-{\\\\alpha / 2}}$<br/>\");\n $(\"#diffBox\").append(Math.abs(diffU).toFixed(4) + \" $>$ \" + u0975.toFixed(2) + \"<br/>\");\n $(\"#diffBox\").append(\"<span class='text-red'><b>Zamítá</b></span> se hypotéza o náhodnosti v uspořádání řady hodnot.\");\n } else {\n $(\"#diffBox\").append(\"$|u| \\\\leq u_{1-{\\\\alpha / 2}}$<br/>\");\n $(\"#diffBox\").append(Math.abs(diffU).toFixed(4) + \" $\\\\leq$ \" + u0975.toFixed(2) + \"<br/>\");\n $(\"#diffBox\").append(\"<span class='text-green'><b>Nezamítá</b></span> se hypotéza o náhodnosti v uspořádání řady hodnot.\");\n }\n\n refreshMathJax()\n}", "function patch(old, diff) {\n\tvar out = [];\n\tvar i = 0;\n\twhile (i < diff.length) {\n\t\tif (diff[i]) { // matching\n\t\t\tArray.prototype.push.apply(out, old.slice(out.length, out.length + diff[i]));\n\t\t}\n\t\ti++;\n\t\tif (i < diff.length && diff[i]) { // mismatching\n\t\t\tArray.prototype.push.apply(out, diff.slice(i + 1, i + 1 + diff[i]));\n\t\t\ti += diff[i];\n\t\t}\n\t\ti++;\n\t}\n\treturn out;\n}", "function patch(old, diff) {\n\tvar out = [];\n\tvar i = 0;\n\twhile (i < diff.length) {\n\t\tif (diff[i]) { // matching\n\t\t\tArray.prototype.push.apply(out, old.slice(out.length, out.length + diff[i]));\n\t\t}\n\t\ti++;\n\t\tif (i < diff.length && diff[i]) { // mismatching\n\t\t\tArray.prototype.push.apply(out, diff.slice(i + 1, i + 1 + diff[i]));\n\t\t\ti += diff[i];\n\t\t}\n\t\ti++;\n\t}\n\treturn out;\n}", "_findDifferences(thisObj, originalData, newData, funcMakeKey) {\n var differences = [];\n \n \n for (var i = 0; i < originalData.length; i++) {\n var item = originalData[i];\n\n var searchResult = thisObj._findObjInList(thisObj, item, funcMakeKey(item), newData, funcMakeKey)\n if (searchResult.found) {\n if (!searchResult.exactMatch) {\n differences.push({\"key\": funcMakeKey(item), \"item\": item, \"reason\": 'changed'});\n } \n } else {\n differences.push({\"key\": funcMakeKey(item), \"item\": item, \"reason\": 'removed'});\n }\n }\n\n for (var i = 0; i < newData.length; i++) {\n var item = newData[i];\n var searchResult = thisObj._findObjInList(thisObj, item, funcMakeKey(item), originalData, funcMakeKey)\n if (!searchResult.found) {\n differences.push({\"key\": funcMakeKey(item), \"item\": item, \"reason\": 'added'});\n }\n }\n\n return differences;\n }", "function imgDiff(a, b, walpha, bfactor) {\n\t\tbfactor = bfactor || 1;\n\t\tvar adata = a.data;\n\t\tvar bdata = b.data;\n\t\tvar i, wa, wb, d = 0;\n\t\tfor (i = 0; i < adata.length; i += 4) {\n\n\t\t\twa = wb = 1;\n\t\t\tif (walpha) {\n\t\t\t\twa = (adata[i + 3] / 255);\n\t\t\t\twb = (bdata[i + 3] / 255);\n\t\t\t}\n\t\t\td += (adata[i] + adata[i + 1] + adata[i + 2]) * wa / bfactor -\n\t\t\t\t(bdata[i] + bdata[i + 1] + bdata[i + 2]) * wb;\n\t\t}\n\t\treturn d;\n\t}", "function array_diff(a, b) {\n//loops through the elements in b\n for (i = 0; i < b.length; i++){\n \t\tvar j = 0;\n //checks against the elements of a\n \t\twhile (j < a.length){\n //if it finds the element, remove it\n \t\t\tif (a[j] === b[i]){\n\t \t\t\ta.splice(j, 1);\n\t \t\t}\n //if it doesnt find the element, increase the index of j\n\t \t\telse {\n\t \t\t\tj++;\n\t \t\t}\n \t\t}\n \t}\n \treturn a;\n}", "function compareMatches(arr1, arr2) {\n\t\t\t\tvar diff = 0;\n\t\t\t\tfor (var i = 0; i < arr1.length; i++) {\n\t\t\t\t\tvar num = Math.abs(arr1[i] - arr2[i]);\n\t\t\t\t\tdiff += num\n\t\t\t\t}\n\t\t\t\tresultArray.push(diff);\n\t\t\t}", "function diff(stringX, stringY, user) {\n var x = stringX.split('');\n var y = stringY.split('');\n\n // m is row dimension, n is column dimension \n var m = x.length;\n var n = y.length;\n var lcs = '';\n // Create an LCS table where x-axis is string 1 and y-axis is string 2 to hold \n var c = [];\n\n\n // calculate LCS table via dynamic programming\n for (var i = 0; i <= m; i++) {\n c[i] = [];\n for (var j = 0; j <= n; j++) {\n if (i === 0 || j === 0) {\n c[i][j] = 0;\n }\n else if (x[i-1] === y[j-1]) {\n c[i][j] = c[i - 1][j - 1] + 1;\n }\n else {\n c[i][j] = Math.max(c[i-1][j], c[i][j-1]);\n }\n\n }\n\n }\n\n lcs = backtrace(c, x, y, m, n);\n\n var results = [];\n var diff_results = findDiff(c, x, y, m, n, results, user);\n\n // for (var i = 0; i < diff_result.length; i++) {\n // if (diff_result[i][])\n // }\n // console.log(diff_results);\n return diff_results;\n}", "function diff( a, b ) {\n\tvar i, j,\n\t\tresult = a.slice();\n\n\tfor ( i = 0; i < result.length; i++ ) {\n\t\tfor ( j = 0; j < b.length; j++ ) {\n\t\t\tif ( result[ i ] === b[ j ] ) {\n\t\t\t\tresult.splice( i, 1 );\n\t\t\t\ti--;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn result;\n}", "function friendDifference (array1, array2) {\r\n\r\n\tvar diffArray = [];\r\n\tvar singleDiff\r\n\tvar diffTotal = 0\r\n\t\r\n\tfor (var i = 0; i < array1.length; i++) {\r\n\t\tsingleDiff = array1[i] - array2[i]\r\n\t\tsingleDiff = Math.abs(singleDiff)\r\n\t\tdiffArray.push(singleDiff)\r\n\t}\r\n\r\n\tfor (var j = 0; j < diffArray.length; j++) {\r\n\t\tdiffTotal += diffArray[j]\r\n\t}\r\n\r\n\tconsole.log(diffTotal)\r\n\treturn diffTotal\r\n\r\n}", "function arr_diff(a,b){\r\n\tvar c=[];//clone of a\r\n\tvar d=[];//Anything a does not include\r\n\tvar e=[];//Anything a *does* include\r\n\tfor(var an of a){\r\n\t\tc.push(an);\r\n\t}\r\n\tfor(var bn of b){\r\n\t\tif(c.indexOf(bn)===-1)d.push(bn);\r\n\t\telse e.push(bn);\r\n\t}\r\n\tfor(var en of e){\r\n\t\tc.splice(c.indexOf(en),1);\r\n\t}\r\n\treturn [c,d];\r\n}", "function matrixDiff(arr1, arr2){\n if(arr1 instanceof Array && arr2 instanceof Array){\n\n let num1 =0;\n let num2 =0;\n for(let item1 of arr1){\n for( num1 of item1){\n \n }}\n for(let item2 of arr2){ \nfor( num2 of item2) { \n \n}\n}\n}\n}", "function Eq_second_degre(a, b, c) {\r\n\tvar rep = new Array();\r\n\tvar delta = b*b - 4*a*c; \r\n\tif(delta < 0) {alert('delta = ' + delta);}\r\n\tif(delta == 0) {rep.push(-b/(2*a));}\r\n\tif(delta > 0) {\r\n\t\t var d = Math.sqrt(delta);\r\n\t\t rep.push((-b -d)/(2*a), (-b + d)/(2*a));\r\n\t\t //alert('rep = ' + rep);\r\n\t\t}\r\n\r\n\treturn rep;\r\n}", "function diff( a, b ) {\n\tvar i, j,\n\t\tresult = a.slice();\n\n\tfor ( i = 0; i < result.length; i++ ) {\n\t\tfor ( j = 0; j < b.length; j++ ) {\n\t\t\tif ( result[i] === b[j] ) {\n\t\t\t\tresult.splice( i, 1 );\n\t\t\t\ti--;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\treturn result;\n}", "function diff_v2(v1, v2) { return [v1[0] - v2[0], v1[1] - v2[1]]; }", "function diff(oldTree, newTree) {\n //声明变量patches用来存放补丁的对象\n let patches = {}\n //第一次比较应该是树的第0个索引\n let index = 0\n //递归树 比较过的结果放到补丁里\n walk(oldTree, newTree, index, patches)\n return patches\n}", "function crazyDiff (a){\n let diff = a - 19 \n return diff\n}", "function compareInputs(a: CardanoInput, b: CardanoInput): number {\n if (a.prev_hash !== b.prev_hash) {\n return a.prev_hash < b.prev_hash ? -1 : 1;\n }\n return a.prev_index - b.prev_index;\n}", "function diff(a, b) {\n totalDifference += Math.abs(a - b);\n }", "function compareByGeneratedPositionsInflated(mappingA,mappingB){var cmp=mappingA.generatedLine-mappingB.generatedLine;if(cmp!==0){return cmp;}cmp=mappingA.generatedColumn-mappingB.generatedColumn;if(cmp!==0){return cmp;}cmp=strcmp(mappingA.source,mappingB.source);if(cmp!==0){return cmp;}cmp=mappingA.originalLine-mappingB.originalLine;if(cmp!==0){return cmp;}cmp=mappingA.originalColumn-mappingB.originalColumn;if(cmp!==0){return cmp;}return strcmp(mappingA.name,mappingB.name);}", "function normalize(a, b, changes) {\n for (;;) {\n mergeAdjacent(changes, 1);\n let moved = false;\n // Move unchanged ranges that can be fully moved across an\n // adjacent insertion/deletion, to simplify the diff.\n for (let i = 0; i < changes.length; i++) {\n let ch = changes[i], pre, post;\n // The half-match heuristic sometimes produces non-minimal\n // diffs. Strip matching pre- and post-fixes again here.\n if (pre = commonPrefix(a, ch.fromA, ch.toA, b, ch.fromB, ch.toB))\n ch = changes[i] = new Change(ch.fromA + pre, ch.toA, ch.fromB + pre, ch.toB);\n if (post = commonSuffix(a, ch.fromA, ch.toA, b, ch.fromB, ch.toB))\n ch = changes[i] = new Change(ch.fromA, ch.toA - post, ch.fromB, ch.toB - post);\n let lenA = ch.toA - ch.fromA, lenB = ch.toB - ch.fromB;\n // Only look at plain insertions/deletions\n if (lenA && lenB)\n continue;\n let beforeLen = ch.fromA - (i ? changes[i - 1].toA : 0);\n let afterLen = (i < changes.length - 1 ? changes[i + 1].fromA : a.length) - ch.toA;\n if (!beforeLen || !afterLen)\n continue;\n let text = lenA ? a.slice(ch.fromA, ch.toA) : b.slice(ch.fromB, ch.toB);\n if (beforeLen <= text.length &&\n a.slice(ch.fromA - beforeLen, ch.fromA) == text.slice(text.length - beforeLen)) {\n // Text before matches the end of the change\n changes[i] = new Change(ch.fromA - beforeLen, ch.toA - beforeLen, ch.fromB - beforeLen, ch.toB - beforeLen);\n moved = true;\n }\n else if (afterLen <= text.length &&\n a.slice(ch.toA, ch.toA + afterLen) == text.slice(0, afterLen)) {\n // Text after matches the start of the change\n changes[i] = new Change(ch.fromA + afterLen, ch.toA + afterLen, ch.fromB + afterLen, ch.toB + afterLen);\n moved = true;\n }\n }\n if (!moved)\n break;\n }\n return changes;\n}", "function patch(old, diff) {\n var out = [];\n var i = 0;\n while (i < diff.length) {\n if (diff[i]) {\n // matching\n Array.prototype.push.apply(\n out,\n old.slice(out.length, out.length + diff[i])\n );\n }\n i++;\n if (i < diff.length && diff[i]) {\n // mismatching\n Array.prototype.push.apply(out, diff.slice(i + 1, i + 1 + diff[i]));\n i += diff[i];\n }\n i++;\n }\n return out;\n}", "function diffArray(arr1, arr2) {\nvar newArr = [];\n\n// se debe verificar la existencia de todos los elementos de un array en el otro y vicerversa y por medio de la función no es posible\n//debido a que utiliza los parametros en ambos \"sentidos\"\n\nbuscar(arr1, arr2); \nbuscar(arr2, arr1);\n\nfunction buscar(primero,segundo){\n for(let i = 0; i < primero.length; i++){ // con el ciclo se recorrera todos los elementos del primer array\n// se checan si existe cada uno de los elementos del primer array en el segundo mediante la función indexOF, funcionando de la sig manera\n// [array en donde buscar].indexOf(elemento a buscar) --- si el elemento no existe devolver un -1..\n if(segundo.indexOf(primero[i]) === -1){ // si la condición anterio se cumple\n newArr.push(primero[i]); // se añade al array nuevo.\n }\n}\n}\n\nreturn newArr;\n}", "function getWinDiffDifferences(src1, src2, flags)\r\n{ \r\n try\r\n {\r\n // first create two temporary files \r\n var tfolder, TemporaryFolder = 2;\r\n tfolder = fso.GetSpecialFolder(TemporaryFolder);\r\n if (! tfolder)\r\n return \"unknown\";\r\n \r\n var tname1 = fso.GetTempName();\r\n var tfile1 = tfolder.CreateTextFile(tname1);\r\n var tpath1 = tfolder.Path + \"\\\\\" + tname1;\r\n tfile1.Write(src1);\r\n tfile1.Close();\r\n \r\n var tname2 = fso.GetTempName();\r\n var tfile2 = tfolder.CreateTextFile(tname2);\r\n var tpath2 = tfolder.Path + \"\\\\\" + tname2;\r\n tfile2.Write(src2);\r\n tfile2.Close();\r\n \r\n var tResName = fso.GetTempName();\r\n var tResPath = tfolder.Path + \"\\\\\" + tResName;\r\n \r\n // second run windiff\r\n var cmd = WINDIFF + \" -F\" + flags + \" \" + tResPath;\r\n cmd += \" \" + tpath1;\r\n cmd += \" \" + tpath2;\r\n\r\n var result = WshShell.Run(cmd, 7, true);\r\n if (result != 0)\r\n {\r\n WScript.StdErr.WriteLine(\r\n \"getWinDiffDifferences: Fatal error: windiff\"\r\n + \" failed\"); \r\n return \"unknown\";\r\n }\r\n \r\n // third read the results\r\n var tResFile = fso.OpenTextFile(tfolder.Path + \"\\\\\" + tResName);\r\n var res = tResFile.ReadAll();\r\n tResFile.Close();\r\n \r\n fso.DeleteFile(tpath1);\r\n fso.DeleteFile(tpath2);\r\n fso.DeleteFile(tResPath);\r\n \r\n return res;\r\n }\r\n catch(e)\r\n {\r\n return \"Information about differences is not available\";\r\n }\r\n}", "function findDifference(a, b) {\n return Math.abs(a.reduce(function(x,y){return x*y;}) - b.reduce(function(x,y){return x*y;}))\n}", "function compatibility(arr1, arr2) {\n var totalDiff = 0;\n for (let i in arr1) {\n totalDiff = totalDiff + difference(arr1[i], arr2[i])\n }\n return totalDiff\n}", "function smallestDifference(arrayOne, arrayTwo) {\n // Write your code here.\n //javascript v8 sort, quick sort, mozilla uses merge sort On average O(n log N) T, O(N) S + O(n log M) T, O(M) S\n let sortedArrayOne = arrayOne.sort((a,b) => a - b);\n let sortedArrayTWo = arrayTwo.sort((a,b) => a - b);\n let pointerOne = 0;\n let pointerTwo = 0;\n let smallestDifference = Infinity;\n let differenceStore = []\n\n // as long as the pointers dont reach the end, keep going \n\n // O(N * M)\n while ( pointerOne < sortedArrayOne.length ) {\n while (pointerTwo < sortedArrayTWo.length ) {\n let curentDifference = Math.abs(sortedArrayTWo[pointerTwo] - sortedArrayOne[pointerOne]);\n if (smallestDifference > curentDifference ) {\n smallestDifference = curentDifference;\n differenceStore = [sortedArrayTWo[pointerTwo], sortedArrayOne[pointerOne]];\n }\n pointerTwo++;\n }\n pointerOne++;\n pointerTwo = 0;\n }\n return differenceStore\n }", "function findDiff(a, b) {\n a = a.split(\"\").sort().join(\"\")\n b = b.split(\"\").sort().join(\"\")\n for (var i = 0; i < b.length; i++) {\n if(b[i] != a[i]){\n return b[i];\n }\n }\n}", "function difference(s1, s2) {\n if(s2.size === 0){\n return (s1)\n }\n if(s1.size === 0 || s2.size === 0){\n return new Set()\n }\n\nlet hasNot = new Set()\n let has = new Set()\n s1.forEach((e)=> {\n if(s2.has(e)) {\n has.add(e)\n } else {\n hasNot.add(e)\n }\n })\n if(has.size === 0) {\n return s1\n } \n\n if(hasNot.size > 0) {\n return hasNot\n }\n \n}", "refDiff() {\n let res = {\n toAdd: [],\n toRemove: [],\n toUpdate: [],\n };\n Object.keys(this.frameNew).forEach((key) => {\n !this.frameOld[key] && res.toAdd.push(this.frameNew[key]);\n this.frameOld[key] && res.toUpdate.push(this.frameNew[key]);\n });\n Object.keys(this.frameOld).forEach((key) => {\n !this.frameNew[key] && res.toRemove.push(this.frameOld[key]);\n });\n return res;\n }", "difference(arr1, arr2) {\n let arr3 = [];\n for (let i = 0; i < arr1.length; i++) {\n let isDifferent = true;\n for (let j = 0; j < arr2.length; j++) {\n if (arr1[i] === arr2[j]) {\n isDifferent = false;\n }\n }\n if (isDifferent) {\n arr3.push(arr1[i]);\n }\n }\n return arr3;\n }", "function Difference(base, head) {\n\t var changes = {}, length = 0;\n\n\t function changed(h, b) {\n\t return h !== b && !_.isEqual(_.omit(h, 'v'), _.omit(b, 'v'));\n\t }\n\n\t _.each(head.entities, function(h, id) {\n\t var b = base.entities[id];\n\t if (changed(h, b)) {\n\t changes[id] = {base: b, head: h};\n\t length++;\n\t }\n\t });\n\n\t _.each(base.entities, function(b, id) {\n\t var h = head.entities[id];\n\t if (!changes[id] && changed(h, b)) {\n\t changes[id] = {base: b, head: h};\n\t length++;\n\t }\n\t });\n\n\t function addParents(parents, result) {\n\t for (var i = 0; i < parents.length; i++) {\n\t var parent = parents[i];\n\n\t if (parent.id in result)\n\t continue;\n\n\t result[parent.id] = parent;\n\t addParents(head.parentRelations(parent), result);\n\t }\n\t }\n\n\t var difference = {};\n\n\t difference.length = function() {\n\t return length;\n\t };\n\n\t difference.changes = function() {\n\t return changes;\n\t };\n\n\t difference.extantIDs = function() {\n\t var result = [];\n\t _.each(changes, function(change, id) {\n\t if (change.head) result.push(id);\n\t });\n\t return result;\n\t };\n\n\t difference.modified = function() {\n\t var result = [];\n\t _.each(changes, function(change) {\n\t if (change.base && change.head) result.push(change.head);\n\t });\n\t return result;\n\t };\n\n\t difference.created = function() {\n\t var result = [];\n\t _.each(changes, function(change) {\n\t if (!change.base && change.head) result.push(change.head);\n\t });\n\t return result;\n\t };\n\n\t difference.deleted = function() {\n\t var result = [];\n\t _.each(changes, function(change) {\n\t if (change.base && !change.head) result.push(change.base);\n\t });\n\t return result;\n\t };\n\n\t difference.summary = function() {\n\t var relevant = {};\n\n\t function addEntity(entity, graph, changeType) {\n\t relevant[entity.id] = {\n\t entity: entity,\n\t graph: graph,\n\t changeType: changeType\n\t };\n\t }\n\n\t function addParents(entity) {\n\t var parents = head.parentWays(entity);\n\t for (var j = parents.length - 1; j >= 0; j--) {\n\t var parent = parents[j];\n\t if (!(parent.id in relevant)) addEntity(parent, head, 'modified');\n\t }\n\t }\n\n\t _.each(changes, function(change) {\n\t if (change.head && change.head.geometry(head) !== 'vertex') {\n\t addEntity(change.head, head, change.base ? 'modified' : 'created');\n\n\t } else if (change.base && change.base.geometry(base) !== 'vertex') {\n\t addEntity(change.base, base, 'deleted');\n\n\t } else if (change.base && change.head) { // modified vertex\n\t var moved = !_.isEqual(change.base.loc, change.head.loc),\n\t retagged = !_.isEqual(change.base.tags, change.head.tags);\n\n\t if (moved) {\n\t addParents(change.head);\n\t }\n\n\t if (retagged || (moved && change.head.hasInterestingTags())) {\n\t addEntity(change.head, head, 'modified');\n\t }\n\n\t } else if (change.head && change.head.hasInterestingTags()) { // created vertex\n\t addEntity(change.head, head, 'created');\n\n\t } else if (change.base && change.base.hasInterestingTags()) { // deleted vertex\n\t addEntity(change.base, base, 'deleted');\n\t }\n\t });\n\n\t return d3.values(relevant);\n\t };\n\n\t difference.complete = function(extent) {\n\t var result = {}, id, change;\n\n\t for (id in changes) {\n\t change = changes[id];\n\n\t var h = change.head,\n\t b = change.base,\n\t entity = h || b;\n\n\t if (extent &&\n\t (!h || !h.intersects(extent, head)) &&\n\t (!b || !b.intersects(extent, base)))\n\t continue;\n\n\t result[id] = h;\n\n\t if (entity.type === 'way') {\n\t var nh = h ? h.nodes : [],\n\t nb = b ? b.nodes : [],\n\t diff, i;\n\n\t diff = _.difference(nh, nb);\n\t for (i = 0; i < diff.length; i++) {\n\t result[diff[i]] = head.hasEntity(diff[i]);\n\t }\n\n\t diff = _.difference(nb, nh);\n\t for (i = 0; i < diff.length; i++) {\n\t result[diff[i]] = head.hasEntity(diff[i]);\n\t }\n\t }\n\n\t addParents(head.parentWays(entity), result);\n\t addParents(head.parentRelations(entity), result);\n\t }\n\n\t return result;\n\t };\n\n\t return difference;\n\t}", "function array_diff(a, b) {\n if (a.length === 0 || b.length === 0) {\n return a;\n } else {\n while (b.length > 0) {\n a = a.filter(num => num != b[0])\n b.shift();\n }\n return a\n }\n}", "function diffStructured(inputA, inputB) {\n // Pick from each cart in sort order\n const a = inputA.filter(line => !line.ordered).sort(compareLines);\n const b = inputB.filter(line => !line.ordered).sort(compareLines);\n const result = [];\n\n let indexA = 0, indexB = 0;\n\n while((indexA < a.length) && (indexB < b.length)) {\n const comp = compareLines(a[indexA], b[indexB]);\n\n if(comp === 0) {\n // It's the same section/line; but if the values are different, perform a diff\n const value = (a[indexA].value === b[indexB].value) ? a[indexA].value : diff.diffWords(a[indexA].value, b[indexB].value).map(cleanDiffObj);\n\n // Recurse\n result.push({\n value: value,\n children: (a[indexA].children || b[indexB].children) && diffStructured(a[indexA].children || [], b[indexB].children || []),\n key: a[indexA].key,\n extra: a[indexA].extra,\n });\n\n indexA++;\n indexB++;\n }\n else if(comp < 0) {\n result.push(markRecursive(a[indexA], false));\n indexA++;\n }\n else {\n result.push(markRecursive(b[indexB], true));\n indexB++;\n }\n }\n\n // Push remaining items\n result.push(...a.slice(indexA).map(a => markRecursive(a, false)), ...b.slice(indexB).map(b => markRecursive(b, true)));\n\n // Now process the ordered part of the input\n const orderedInputA = inputA.filter(line => line.ordered);\n const orderedInputB = inputB.filter(line => line.ordered);\n\n const orderedKeys = new Set([...orderedInputA.map(l => l.key), ...orderedInputB.map(l => l.key)]);\n\n for(let key of orderedKeys) {\n const sectionA = orderedInputA.filter(line => line.key === key);\n const sectionB = orderedInputB.filter(line => line.key === key);\n\n result.push(\n // Destructure arrays ([[2, 3], [1]] -> [2, 3, 1])\n ...[].concat(\n // Run a regular JsDiff\n ...diff.diffArrays(\n sectionA.map(line => line.value), sectionB.map(line => line.value)\n )\n // Rebuild it into arrays of individual lines (restore the context from the original)\n .map(item => item.value.map(value => {\n return {\n value: value,\n key: key,\n ordered: true,\n added: item.added,\n removed: item.removed,\n extra: (sectionA[0] || sectionB[0]).extra,\n };\n }))\n )\n );\n }\n\n return result;\n}", "function difference(p1,p2) {\n var p1 = toParser(p1);\n var p2 = toParser(p2);\n var pid = parser_id++;\n\n // match a but not b. if both match and b's matched text is shorter\n // than a's, a successfull match is made\n return function(state) {\n var savedState = state;\n var cached = savedState.getCached(pid);\n if(cached)\n return cached;\n\n var br = p2(state);\n if(!br) {\n cached = p1(state);\n } else {\n var ar = p1(state);\n if(ar.matched.length >= br.matched.length)\n cached = br;\n else\n cached = ar;\n }\n savedState.putCached(pid, cached);\n return cached;\n }\n}", "function distance(s1, s2) {\r\n if (typeof(s1) != \"string\" || typeof(s2) != \"string\") return 0;\r\n if (s1.length == 0 || s2.length == 0) \r\n return 0;\r\n s1 = s1.toLowerCase(), s2 = s2.toLowerCase();\r\n var matchWindow = (Math.floor(Math.max(s1.length, s2.length) / 2.0)) - 1;\r\n var matches1 = new Array(s1.length);\r\n var matches2 = new Array(s2.length);\r\n var m = 0; // number of matches\r\n var t = 0; // number of transpositions\r\n\r\n //debug helpers\r\n //console.log(\"s1: \" + s1 + \"; s2: \" + s2);\r\n //console.log(\" - matchWindow: \" + matchWindow);\r\n\r\n // find matches\r\n for (var i = 0; i < s1.length; i++) {\r\n\tvar matched = false;\r\n\r\n\t// check for an exact match\r\n\tif (s1[i] == s2[i]) {\r\n\t\tmatches1[i] = matches2[i] = matched = true;\r\n\t\tm++\r\n\t}\r\n\r\n\t// check the \"match window\"\r\n\telse {\r\n \t// this for loop is a little brutal\r\n \tfor (k = (i <= matchWindow) ? 0 : i - matchWindow;\r\n \t\t(k <= i + matchWindow) && k < s2.length && !matched;\r\n\t\t\tk++) {\r\n \t\tif (s1[i] == s2[k]) {\r\n \t\tif(!matches1[i] && !matches2[k]) {\r\n \t \t\tm++;\r\n \t\t}\r\n\r\n \t matches1[i] = matches2[k] = matched = true;\r\n \t }\r\n \t}\r\n\t}\r\n }\r\n\r\n if(m == 0)\r\n return 0.0;\r\n\r\n // count transpositions\r\n var k = 0;\r\n\r\n for(var i = 0; i < s1.length; i++) {\r\n \tif(matches1[k]) {\r\n \t while(!matches2[k] && k < matches2.length)\r\n k++;\r\n\t if(s1[i] != s2[k] && k < matches2.length) {\r\n t++;\r\n }\r\n\r\n \t k++;\r\n \t}\r\n }\r\n \r\n //debug helpers:\r\n //console.log(\" - matches: \" + m);\r\n //console.log(\" - transpositions: \" + t);\r\n t = t / 2.0;\r\n return (m / s1.length + m / s2.length + (m - t) / m) / 3;\r\n}", "function howmany_diff(ary1, ary2){\n for (var i = 0; i < ary1.length; i++){\n var a = ary1[i]\n var b = ary2[i]\n if (a != b){\n diff++\n }\n }\n }", "function sumSwap(arr1,arr2) {\n const sum1 = arr1.reduce((a,b) => a+b);\n const sum2 = arr2.reduce((a,b) => a+b);\n\n let diff = Math.abs(sum1 - sum2);\n let i = 1;\n let num1 = 1;\n\n while (i !== diff) {\n if (arr1.includes(i) && arr2.includes(diff - i) ) {\n return [i,diff-i];\n }\n i++;\n }\n return -1;\n}", "function changeArray(array1, array2){\r\n\tvar diff = [];\r\n\tfor(var i=0; i<59; i++){\r\n\t\tdiff[i] = array1[i] - array2[i];\r\n\t}\r\n\treturn diff;\r\n}", "function diff(arr1, arr2) {\n var newArr = [];\n for (i=0; i < arr2.length; i++) {\n if (arr1.indexOf(arr2[i]) === -1) {\n newArr.push(arr2[i]);\n }\n }\n for (i=0; i < arr1.length; i++) {\n if (arr2.indexOf(arr1[i]) === -1) {\n newArr.push(arr1[i]);\n }\n }\n\n return newArr;\n}", "function sym() {\n let arrays = Array.from(arguments);\n let diff = bisym(arrays[0], arrays[1]);\n for(let i=2; i<arrays.length; i++) {\n diff = bisym(diff, arrays[i]);\n }\n return diff; \n}" ]
[ "0.6273011", "0.6077076", "0.59796834", "0.5967978", "0.59645283", "0.5930521", "0.59217876", "0.59086835", "0.5904942", "0.58921844", "0.5887232", "0.5876926", "0.58377385", "0.5837271", "0.58078206", "0.57771474", "0.5774021", "0.57625955", "0.5746534", "0.5738624", "0.57356954", "0.57356954", "0.57356954", "0.57356954", "0.57356954", "0.57356954", "0.57356954", "0.57356954", "0.57356954", "0.57356954", "0.57356954", "0.57356954", "0.57356954", "0.57356954", "0.57356954", "0.57356954", "0.57335496", "0.5730151", "0.57258314", "0.57258314", "0.57258314", "0.57233965", "0.5716136", "0.5703981", "0.57029504", "0.570102", "0.5700413", "0.56753725", "0.5673178", "0.56670135", "0.5647279", "0.564441", "0.5642169", "0.5635675", "0.5621612", "0.56167614", "0.56167614", "0.5609145", "0.5606377", "0.5606078", "0.5605955", "0.5603225", "0.5600494", "0.5594248", "0.55906403", "0.5581045", "0.5574337", "0.5568315", "0.5560268", "0.5552346", "0.554459", "0.5534475", "0.5533645", "0.552582", "0.55255866", "0.5523673", "0.5517815", "0.5501925", "0.5498488", "0.5487045", "0.54839885", "0.54708546", "0.54659194", "0.54578334", "0.54536253", "0.54524237", "0.5446627", "0.54463756", "0.544585", "0.5444963", "0.5441983", "0.5439006", "0.54345024", "0.54340553", "0.54277724" ]
0.6874856
5
Main worker method. checks all permutations of a given edit length for acceptance.
function execEditLength() { for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) { var basePath; var addPath = bestPath[diagonalPath - 1]; var removePath = bestPath[diagonalPath + 1]; var oldPos = (removePath ? removePath.newPos : 0) - diagonalPath; if (addPath) { // No one else is going to attempt to use this value, clear it bestPath[diagonalPath - 1] = undefined; } var canAdd = addPath && addPath.newPos + 1 < newLen; var canRemove = removePath && 0 <= oldPos && oldPos < oldLen; if (!canAdd && !canRemove) { // If this path is a terminal then prune bestPath[diagonalPath] = undefined; continue; } // Select the diagonal that we want to branch from. We select the prior // path whose position in the new string is the farthest from the origin // and does not pass the bounds of the diff graph if (!canAdd || canRemove && addPath.newPos < removePath.newPos) { basePath = clonePath(removePath); self.pushComponent(basePath.components, undefined, true); } else { basePath = addPath; // No need to clone, we've pulled it from the list basePath.newPos++; self.pushComponent(basePath.components, true, undefined); } oldPos = self.extractCommon(basePath, newArr, oldArr, diagonalPath); // If we have hit the end of both strings, then we are done if (basePath.newPos + 1 >= newLen && oldPos + 1 >= oldLen) { return buildValues(self, basePath.components, newArr, oldArr); } else { // Otherwise track this path as a potential candidate and continue. bestPath[diagonalPath] = basePath; } } editLength++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function execEditLength() {\n\t for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n\t var basePath = /*istanbul ignore start*/void 0 /*istanbul ignore end*/;\n\t var addPath = bestPath[diagonalPath - 1],\n\t removePath = bestPath[diagonalPath + 1],\n\t _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n\t if (addPath) {\n\t // No one else is going to attempt to use this value, clear it\n\t bestPath[diagonalPath - 1] = undefined;\n\t }\n\n\t var canAdd = addPath && addPath.newPos + 1 < newLen,\n\t canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n\t if (!canAdd && !canRemove) {\n\t // If this path is a terminal then prune\n\t bestPath[diagonalPath] = undefined;\n\t continue;\n\t }\n\n\t // Select the diagonal that we want to branch from. We select the prior\n\t // path whose position in the new string is the farthest from the origin\n\t // and does not pass the bounds of the diff graph\n\t if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n\t basePath = clonePath(removePath);\n\t self.pushComponent(basePath.components, undefined, true);\n\t } else {\n\t basePath = addPath; // No need to clone, we've pulled it from the list\n\t basePath.newPos++;\n\t self.pushComponent(basePath.components, true, undefined);\n\t }\n\n\t _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath);\n\n\t // If we have hit the end of both strings, then we are done\n\t if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n\t return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n\t } else {\n\t // Otherwise track this path as a potential candidate and continue.\n\t bestPath[diagonalPath] = basePath;\n\t }\n\t }\n\n\t editLength++;\n\t }", "function execEditLength() {\n\t for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n\t var basePath = /*istanbul ignore start*/void 0 /*istanbul ignore end*/;\n\t var addPath = bestPath[diagonalPath - 1],\n\t removePath = bestPath[diagonalPath + 1],\n\t _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n\t if (addPath) {\n\t // No one else is going to attempt to use this value, clear it\n\t bestPath[diagonalPath - 1] = undefined;\n\t }\n\n\t var canAdd = addPath && addPath.newPos + 1 < newLen,\n\t canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n\t if (!canAdd && !canRemove) {\n\t // If this path is a terminal then prune\n\t bestPath[diagonalPath] = undefined;\n\t continue;\n\t }\n\n\t // Select the diagonal that we want to branch from. We select the prior\n\t // path whose position in the new string is the farthest from the origin\n\t // and does not pass the bounds of the diff graph\n\t if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n\t basePath = clonePath(removePath);\n\t self.pushComponent(basePath.components, undefined, true);\n\t } else {\n\t basePath = addPath; // No need to clone, we've pulled it from the list\n\t basePath.newPos++;\n\t self.pushComponent(basePath.components, true, undefined);\n\t }\n\n\t _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath);\n\n\t // If we have hit the end of both strings, then we are done\n\t if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n\t return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n\t } else {\n\t // Otherwise track this path as a potential candidate and continue.\n\t bestPath[diagonalPath] = basePath;\n\t }\n\t }\n\n\t editLength++;\n\t }", "function execEditLength() {\n\t for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n\t var basePath = /*istanbul ignore start*/void 0 /*istanbul ignore end*/;\n\t var addPath = bestPath[diagonalPath - 1],\n\t removePath = bestPath[diagonalPath + 1],\n\t _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n\t if (addPath) {\n\t // No one else is going to attempt to use this value, clear it\n\t bestPath[diagonalPath - 1] = undefined;\n\t }\n\n\t var canAdd = addPath && addPath.newPos + 1 < newLen,\n\t canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n\t if (!canAdd && !canRemove) {\n\t // If this path is a terminal then prune\n\t bestPath[diagonalPath] = undefined;\n\t continue;\n\t }\n\n\t // Select the diagonal that we want to branch from. We select the prior\n\t // path whose position in the new string is the farthest from the origin\n\t // and does not pass the bounds of the diff graph\n\t if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n\t basePath = clonePath(removePath);\n\t self.pushComponent(basePath.components, undefined, true);\n\t } else {\n\t basePath = addPath; // No need to clone, we've pulled it from the list\n\t basePath.newPos++;\n\t self.pushComponent(basePath.components, true, undefined);\n\t }\n\n\t _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath);\n\n\t // If we have hit the end of both strings, then we are done\n\t if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n\t return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n\t } else {\n\t // Otherwise track this path as a potential candidate and continue.\n\t bestPath[diagonalPath] = basePath;\n\t }\n\t }\n\n\t editLength++;\n\t }", "function execEditLength() {\n\t for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n\t var basePath = /*istanbul ignore start*/void 0 /*istanbul ignore end*/;\n\t var addPath = bestPath[diagonalPath - 1],\n\t removePath = bestPath[diagonalPath + 1],\n\t _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n\t if (addPath) {\n\t // No one else is going to attempt to use this value, clear it\n\t bestPath[diagonalPath - 1] = undefined;\n\t }\n\n\t var canAdd = addPath && addPath.newPos + 1 < newLen,\n\t canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n\t if (!canAdd && !canRemove) {\n\t // If this path is a terminal then prune\n\t bestPath[diagonalPath] = undefined;\n\t continue;\n\t }\n\n\t // Select the diagonal that we want to branch from. We select the prior\n\t // path whose position in the new string is the farthest from the origin\n\t // and does not pass the bounds of the diff graph\n\t if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n\t basePath = clonePath(removePath);\n\t self.pushComponent(basePath.components, undefined, true);\n\t } else {\n\t basePath = addPath; // No need to clone, we've pulled it from the list\n\t basePath.newPos++;\n\t self.pushComponent(basePath.components, true, undefined);\n\t }\n\n\t _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath);\n\n\t // If we have hit the end of both strings, then we are done\n\t if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n\t return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n\t } else {\n\t // Otherwise track this path as a potential candidate and continue.\n\t bestPath[diagonalPath] = basePath;\n\t }\n\t }\n\n\t editLength++;\n\t }", "function execEditLength() {\n\t for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n\t var basePath = undefined;\n\t var addPath = bestPath[diagonalPath - 1],\n\t removePath = bestPath[diagonalPath + 1],\n\t _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n\t if (addPath) {\n\t // No one else is going to attempt to use this value, clear it\n\t bestPath[diagonalPath - 1] = undefined;\n\t }\n\n\t var canAdd = addPath && addPath.newPos + 1 < newLen,\n\t canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n\t if (!canAdd && !canRemove) {\n\t // If this path is a terminal then prune\n\t bestPath[diagonalPath] = undefined;\n\t continue;\n\t }\n\n\t // Select the diagonal that we want to branch from. We select the prior\n\t // path whose position in the new string is the farthest from the origin\n\t // and does not pass the bounds of the diff graph\n\t if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n\t basePath = clonePath(removePath);\n\t self.pushComponent(basePath.components, undefined, true);\n\t } else {\n\t basePath = addPath; // No need to clone, we've pulled it from the list\n\t basePath.newPos++;\n\t self.pushComponent(basePath.components, true, undefined);\n\t }\n\n\t _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath);\n\n\t // If we have hit the end of both strings, then we are done\n\t if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n\t return done(buildValues(basePath.components, newString, oldString, self.useLongestToken));\n\t } else {\n\t // Otherwise track this path as a potential candidate and continue.\n\t bestPath[diagonalPath] = basePath;\n\t }\n\t }\n\n\t editLength++;\n\t }", "function execEditLength() {\n\t\t\tfor ( var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2 ) {\n\t\t\t\tvar basePath = void 0;\n\n\t\t\t\tvar addPath = bestPath[ diagonalPath - 1 ],\n\t\t\t\t\tremovePath = bestPath[ diagonalPath + 1 ],\n\t\t\t\t\t_oldPos = ( removePath ? removePath.newPos : 0 ) - diagonalPath;\n\n\t\t\t\tif ( addPath ) {\n\t\t\t\t\t// No one else is going to attempt to use this value, clear it\n\t\t\t\t\tbestPath[ diagonalPath - 1 ] = undefined;\n\t\t\t\t}\n\n\t\t\t\tvar canAdd = addPath && addPath.newPos + 1 < newLen,\n\t\t\t\t\tcanRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n\n\t\t\t\tif ( ! canAdd && ! canRemove ) {\n\t\t\t\t\t// If this path is a terminal then prune\n\t\t\t\t\tbestPath[ diagonalPath ] = undefined;\n\t\t\t\t\tcontinue;\n\t\t\t\t} // Select the diagonal that we want to branch from. We select the prior\n\t\t\t\t// path whose position in the new string is the farthest from the origin\n\t\t\t\t// and does not pass the bounds of the diff graph\n\n\t\t\t\tif ( ! canAdd || ( canRemove && addPath.newPos < removePath.newPos ) ) {\n\t\t\t\t\tbasePath = clonePath( removePath );\n\t\t\t\t\tself.pushComponent( basePath.components, undefined, true );\n\t\t\t\t} else {\n\t\t\t\t\tbasePath = addPath; // No need to clone, we've pulled it from the list\n\n\t\t\t\t\tbasePath.newPos++;\n\t\t\t\t\tself.pushComponent( basePath.components, true, undefined );\n\t\t\t\t}\n\n\t\t\t\t_oldPos = self.extractCommon( basePath, newString, oldString, diagonalPath ); // If we have hit the end of both strings, then we are done\n\n\t\t\t\tif ( basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen ) {\n\t\t\t\t\treturn done( buildValues( self, basePath.components, newString, oldString, self.useLongestToken ) );\n\t\t\t\t} else {\n\t\t\t\t\t// Otherwise track this path as a potential candidate and continue.\n\t\t\t\t\tbestPath[ diagonalPath ] = basePath;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\teditLength++;\n\t\t} // Performs the length of edit iteration. Is a bit fugly as this has to support the", "function execEditLength() {\n for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath =\n /*istanbul ignore start*/\n void 0\n /*istanbul ignore end*/\n ;\n\n var addPath = bestPath[diagonalPath - 1],\n removePath = bestPath[diagonalPath + 1],\n _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath - 1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos + 1 < newLen,\n canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n } // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n\n\n if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n basePath = clonePath(removePath);\n self.pushComponent(basePath.components, undefined, true);\n } else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n\n basePath.newPos++;\n self.pushComponent(basePath.components, true, undefined);\n }\n\n _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); // If we have hit the end of both strings, then we are done\n\n if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n } else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n } // Performs the length of edit iteration. Is a bit fugly as this has to support the", "function execEditLength() {\n for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath = /*istanbul ignore start*/void 0;\n var addPath = bestPath[diagonalPath - 1],\n removePath = bestPath[diagonalPath + 1],\n _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath - 1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos + 1 < newLen,\n canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n }\n\n // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n basePath = clonePath(removePath);\n self.pushComponent(basePath.components, undefined, true);\n } else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n basePath.newPos++;\n self.pushComponent(basePath.components, true, undefined);\n }\n\n _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath);\n\n // If we have hit the end of both strings, then we are done\n if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n } else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n }", "function execEditLength() {\n for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath = /*istanbul ignore start*/void 0 /*istanbul ignore end*/;\n var addPath = bestPath[diagonalPath - 1],\n removePath = bestPath[diagonalPath + 1],\n _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath - 1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos + 1 < newLen,\n canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n }\n\n // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n basePath = clonePath(removePath);\n self.pushComponent(basePath.components, undefined, true);\n } else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n basePath.newPos++;\n self.pushComponent(basePath.components, true, undefined);\n }\n\n _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath);\n\n // If we have hit the end of both strings, then we are done\n if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n } else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n }", "function execEditLength() {\n for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath = /*istanbul ignore start*/void 0 /*istanbul ignore end*/;\n var addPath = bestPath[diagonalPath - 1],\n removePath = bestPath[diagonalPath + 1],\n _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath - 1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos + 1 < newLen,\n canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n }\n\n // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n basePath = clonePath(removePath);\n self.pushComponent(basePath.components, undefined, true);\n } else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n basePath.newPos++;\n self.pushComponent(basePath.components, true, undefined);\n }\n\n _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath);\n\n // If we have hit the end of both strings, then we are done\n if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n } else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n }", "function execEditLength() {\n for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath = /*istanbul ignore start*/void 0 /*istanbul ignore end*/;\n var addPath = bestPath[diagonalPath - 1],\n removePath = bestPath[diagonalPath + 1],\n _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath - 1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos + 1 < newLen,\n canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n }\n\n // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n basePath = clonePath(removePath);\n self.pushComponent(basePath.components, undefined, true);\n } else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n basePath.newPos++;\n self.pushComponent(basePath.components, true, undefined);\n }\n\n _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath);\n\n // If we have hit the end of both strings, then we are done\n if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n } else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n }", "function execEditLength() {\n for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath = /*istanbul ignore start*/void 0 /*istanbul ignore end*/;\n var addPath = bestPath[diagonalPath - 1],\n removePath = bestPath[diagonalPath + 1],\n _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath - 1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos + 1 < newLen,\n canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n }\n\n // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n basePath = clonePath(removePath);\n self.pushComponent(basePath.components, undefined, true);\n } else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n basePath.newPos++;\n self.pushComponent(basePath.components, true, undefined);\n }\n\n _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath);\n\n // If we have hit the end of both strings, then we are done\n if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n } else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n }", "function execEditLength() {\n for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath = /*istanbul ignore start*/void 0 /*istanbul ignore end*/;\n var addPath = bestPath[diagonalPath - 1],\n removePath = bestPath[diagonalPath + 1],\n _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath - 1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos + 1 < newLen,\n canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n }\n\n // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n basePath = clonePath(removePath);\n self.pushComponent(basePath.components, undefined, true);\n } else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n basePath.newPos++;\n self.pushComponent(basePath.components, true, undefined);\n }\n\n _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath);\n\n // If we have hit the end of both strings, then we are done\n if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n } else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n }", "function execEditLength() {\n for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath = /*istanbul ignore start*/void 0 /*istanbul ignore end*/;\n var addPath = bestPath[diagonalPath - 1],\n removePath = bestPath[diagonalPath + 1],\n _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath - 1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos + 1 < newLen,\n canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n }\n\n // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n basePath = clonePath(removePath);\n self.pushComponent(basePath.components, undefined, true);\n } else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n basePath.newPos++;\n self.pushComponent(basePath.components, true, undefined);\n }\n\n _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath);\n\n // If we have hit the end of both strings, then we are done\n if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n } else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n }", "function execEditLength() {\n for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath = void 0;\n\n var addPath = bestPath[diagonalPath - 1],\n removePath = bestPath[diagonalPath + 1],\n _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath - 1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos + 1 < newLen,\n canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n } // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n\n\n if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n basePath = clonePath(removePath);\n self.pushComponent(basePath.components, undefined, true);\n } else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n\n basePath.newPos++;\n self.pushComponent(basePath.components, true, undefined);\n }\n\n _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); // If we have hit the end of both strings, then we are done\n\n if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n } else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n } // Performs the length of edit iteration. Is a bit fugly as this has to support the", "function execEditLength() {\n for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath = void 0;\n\n var addPath = bestPath[diagonalPath - 1],\n removePath = bestPath[diagonalPath + 1],\n _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath - 1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos + 1 < newLen,\n canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n } // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n\n\n if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n basePath = clonePath(removePath);\n self.pushComponent(basePath.components, undefined, true);\n } else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n\n basePath.newPos++;\n self.pushComponent(basePath.components, true, undefined);\n }\n\n _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); // If we have hit the end of both strings, then we are done\n\n if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n } else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n } // Performs the length of edit iteration. Is a bit fugly as this has to support the", "function execEditLength() {\n for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath = void 0;\n\n var addPath = bestPath[diagonalPath - 1],\n removePath = bestPath[diagonalPath + 1],\n _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath - 1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos + 1 < newLen,\n canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n } // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n\n\n if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n basePath = clonePath(removePath);\n self.pushComponent(basePath.components, undefined, true);\n } else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n\n basePath.newPos++;\n self.pushComponent(basePath.components, true, undefined);\n }\n\n _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); // If we have hit the end of both strings, then we are done\n\n if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n } else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n } // Performs the length of edit iteration. Is a bit fugly as this has to support the", "function execEditLength() {\n for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath = void 0;\n\n var addPath = bestPath[diagonalPath - 1],\n removePath = bestPath[diagonalPath + 1],\n _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath - 1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos + 1 < newLen,\n canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n } // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n\n\n if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n basePath = clonePath(removePath);\n self.pushComponent(basePath.components, undefined, true);\n } else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n\n basePath.newPos++;\n self.pushComponent(basePath.components, true, undefined);\n }\n\n _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); // If we have hit the end of both strings, then we are done\n\n if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n } else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n } // Performs the length of edit iteration. Is a bit fugly as this has to support the", "function execEditLength() {\n for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath = void 0;\n\n var addPath = bestPath[diagonalPath - 1],\n removePath = bestPath[diagonalPath + 1],\n _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath - 1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos + 1 < newLen,\n canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n } // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n\n\n if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n basePath = clonePath(removePath);\n self.pushComponent(basePath.components, undefined, true);\n } else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n\n basePath.newPos++;\n self.pushComponent(basePath.components, true, undefined);\n }\n\n _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); // If we have hit the end of both strings, then we are done\n\n if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n } else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n } // Performs the length of edit iteration. Is a bit fugly as this has to support the", "function execEditLength() {\n for (var diagonalPath = -1*editLength; diagonalPath <= editLength; diagonalPath+=2) {\n var basePath;\n var addPath = bestPath[diagonalPath-1],\n removePath = bestPath[diagonalPath+1];\n oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath-1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos+1 < newLen;\n var canRemove = removePath && 0 <= oldPos && oldPos < oldLen;\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n }\n\n // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n if (!canAdd || (canRemove && addPath.newPos < removePath.newPos)) {\n basePath = clonePath(removePath);\n pushComponent(basePath.components, undefined, true);\n } else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n basePath.newPos++;\n pushComponent(basePath.components, true, undefined);\n }\n\n var oldPos = extractCommon(basePath, newString, oldString, diagonalPath);\n\n // If we have hit the end of both strings, then we are done\n if (basePath.newPos+1 >= newLen && oldPos+1 >= oldLen) {\n return buildValues(basePath.components, newString, oldString);\n } else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n }", "function PrimeChecker(num) {\n function Prime(num) {\n if (num === 2) {\n return true;\n }\n if (num === 1 || num % 2 === 0) {\n return false;\n }\n for (let i = 3; i <= Math.sqrt(num); i = i + 2) {\n if (num % i === 0) {\n return false;\n }\n }\n return true;\n }\n\n function permut(string) {\n if (string.length < 2) return [string];\n var permutations = [];\n for (var i = 0; i < string.length; i++) {\n var char = string[i];\n\n if (string.indexOf(char) != i) continue;\n\n var remainingString =\n string.slice(0, i) + string.slice(i + 1, string.length);\n\n var subLoop = permut(remainingString);\n\n for (var subPermutation of subLoop)\n permutations.push(char + subPermutation);\n }\n return permutations;\n }\n let res = 0;\n let digits = num.toString();\n let powerSet = permut(digits);\n console.log('PrimeChecker -> powerSet', powerSet);\n powerSet.forEach((combo) => {\n debugger;\n if (Prime(parseInt(combo))) {\n res = 1;\n }\n });\n\n return res;\n}", "function validatePermutationSize() {\n var x = parseInt($(\"#x\").val());\n var y = parseInt($(\"#y\").val());\n var nbPieces = 2*Math.pow(x,y);\n if (nbPieces > Number.MAX_SAFE_INTEGER) {\n // Permutation too large.\n $(\"#generate\").removeClass(\"btn-default\").addClass(\"btn-danger\").prop('disabled', true);\n $(\"#x, #y\").parent().addClass(\"has-error bg-danger\");\n $(\"#message\").addClass(\"panel-body\").html(\"<div class='alert alert-danger'><span class='glyphicon glyphicon-warning-sign'></span> Permutation size too large!</div>\");\n } else {\n $(\"#generate\").removeClass(\"btn-danger\").addClass(\"btn-primary\").prop('disabled', false);\n $(\"#x, #y\").parent().removeClass(\"has-error bg-danger\");\n $(\"#message\").removeClass(\"panel-body\").empty();\n }\n\t\n\t// Handle nb pieces input and max checkbox.\n\tif ($(\"#max\").prop('checked')) {\n\t\tif (!$(\"#nbPieces\").prop('disabled')) {\n\t\t\t$(\"#oldNbPieces\").val($(\"#nbPieces\").val());\n\t\t}\n\t\t$(\"#nbPieces\").prop('disabled', true).val(nbPieces);\n\t} else {\n\t\tif ($(\"#nbPieces\").prop('disabled')) {\n\t\t\t$(\"#nbPieces\").prop('disabled', false).val($(\"#oldNbPieces\").val());\n\t\t}\n\t}\n}", "function passWordGen() {\n var options = [];\n while (i == 0) {\n //prompts user for a length:\n var howmany = prompt(\"How long of a passwork would you like? (between 8 and 128 characters\");\n //sets peramiter on answers (if not an accepted answer, loops back through):\n if (8 > (parseInt(howmany)) ||(parseInt(howmany)) > 128) {\n alert(\"Length not in range. Please select a number between 8 and 128.\");\n } else if (howmany == null) {\n alert(\"please select a number\");\n //peramiter is met, so while loop condition is broken (i!=0):\n } else {\n i = 1;\n \n }\n}\n\n// while loop peramiter (i==1 now):\nwhile (i == 1) {\n \n var options = []\n //creates 5 if statements. if each is true, it adds chosen attribute option to array, and breaks while loop condition:\n var doYouWant = confirm(\"Would you like lowercase letters?\");\n if (doYouWant == true) {\n //concat adds the chosen attribute to the \"option\" array:\n //lowercase letter:\n options = options.concat(\"Lowercase\");\n i++;\n\n }\n // uppercase letters:\n doYouWant = confirm(\"Would you like any letters to be uppercase?\");\n if (doYouWant == true) {\n options = options.concat(\"uppercase\");\n i++;\n }\n // numbers:\n doYouWant = confirm(\"Would you like numbers?\");\n if (doYouWant == true) {\n options = options.concat(\"number\");\n i++;\n \n }\n\n //special characters:\n doYouWant = confirm(\"Would you like special characters?\");\n if (doYouWant == true) {\n options = options.concat(\"character\");\n i++;\n }\n //if no options above are true, reloop:\n if (i==1) {\n alert(\"you must choose atleast one character type.\")\n }\n}\n// for stament that loops as many time as user password length input:\nfor (i = 0; i < parseInt(howmany); i++) {\n // for each loop through, variable \"choose\" equals one of the chosen attributes for the\n //password from above. It does so based on their index that has been randomized:\n var choose = options[random(options.length)]\n // the following if statements will choose a random character in the chosen array based on randomly chosen attribute from above:\n if (choose == \"Lowercase\" || choose == \"uppercase\") {\n specify = alphabet[random(26)];\n // sub-category of letters, if the letter is upper or lower case, a random number will be chosen, if it is then uppercase, it \n //will be switched to one:\n if (choose == \"uppercase\") {\n specify = specify.toUpperCase();\n }\n }\n else if (choose == \"number\") {\n specify = numbers[random(9)];\n }\n else if (choose == \"character\") {\n specify = characters[random(23)];\n }\n //adds the character to the string of characters that will be teh final password\n Password = Password + specify\n}\nreturn Password\n\n}", "function checkCriteria(passCreated, confirmChar, confirmLowercase, confirmUppercase, confirmNum, userLength){\n\n // empty string in case a new password needs to be written\n var passNew = \"\";\n\n console.log(\"old pass coming in: \" + passCreated);\n\n // checks for at least one of the cirteria needed, if none exist, creates a new password that does\n if(confirmChar && !(charSet.some(v => passCreated.includes(v)))){\n passNew += charSet[(Math.floor(Math.random() * charSet.length))];\n console.log(\"new pass in char: \" + passNew);\n }\n else if(confirmNum && !(numSet.some(v => passCreated.includes(v)))){\n passNew += numSet[(Math.floor(Math.random() * numSet.length))]; \n console.log(\"new pass in num: \" + passNew);\n }\n else if(confirmLowercase && !(lowerSet.some(v => passCreated.includes(v)))){\n passNew += lowerSet[(Math.floor(Math.random() * lowerSet.length))];\n console.log(\"new pass in lower: \" + passNew);\n }\n else if(confirmUppercase && !(upperSet.some(v => passCreated.includes(v)))){\n passNew += upperSet[(Math.floor(Math.random() * upperSet.length))];\n console.log(\"new pass in upper: \" + passNew);\n }\n else {\n // returns original password as it has at least oen of all criteria picked\n console.log(\"returning original password: \" + passCreated);\n return passCreated;\n }\n \n // if the new password created isn't the length it needs to be, randomly add the criteria chosen until it is the length requested\n if(passNew.length < userLength){\n for(var i = passNew.length; i < userLength; i++){\n passNew += passSet[(Math.floor(Math.random() * passSet.length))];\n }\n // recursive call to ensure newly created password meets at least one of the each criteria chosen\n checkCriteria(passNew, confirmChar, confirmLowercase, confirmUppercase, confirmNum, userLength)\n }\n return passNew;\n}", "function generatePass() {\n // initiate amount of elements in password (according to password range data)\n const passMin = Number(document.querySelector('.noUi-handle-lower').getAttribute('aria-valuenow'));\n const passMax = Number(document.querySelector('.noUi-handle-upper').getAttribute('aria-valuenow'));\n const symbolsPass = Math.floor(Math.random()*(passMax - passMin + 1)) + passMin;\n // initiate empty arrays for checked characters\n const lowercaseArrChecked = [];\n const uppercaseArrChecked = [];\n const numberArrChecked = [];\n const asciiArrChecked = [];\n \n // create new character arrays from only checked\n characters.forEach((arr) => {\n arr.checkedArr(lowercaseArrChecked, uppercaseArrChecked, numberArrChecked, asciiArrChecked);\n })\n \n // generate password\n const passArr = [];\n const arr = [...lowercaseArrChecked, ...uppercaseArrChecked, ...numberArrChecked, ...asciiArrChecked];\n // console.log(arr);\n\n for (let i = 1; i <= symbolsPass; i++) {\n const randomItem = arr[Math.floor(Math.random()*arr.length)];\n passArr.push(randomItem);\n }\n\n // check if there are elements from each array (lowercaseArrChecked, uppercaseArrChecked, numberArrChecked, asciiArrChecked) in generated password\n if (lowercaseArrChecked.length > 0) {\n checkLower = false;\n passArr.forEach( elem => {\n let checkTrue = lowercaseArrChecked.indexOf(elem);\n if (checkTrue > -1) {\n return checkLower = true;\n }\n } )\n }\n if (uppercaseArrChecked.length > 0) {\n checkUpper = false;\n passArr.forEach( elem => {\n let checkTrue = uppercaseArrChecked.indexOf(elem);\n if (checkTrue > -1) {\n return checkUpper = true;\n }\n } )\n }\n if (numberArrChecked.length > 0) {\n checkNumber = false;\n passArr.forEach( elem => {\n let checkTrue = numberArrChecked.indexOf(elem);\n if (checkTrue > -1) {\n return checkNumber = true;\n }\n } )\n }\n if (asciiArrChecked.length > 0) {\n checkAscii = false;\n passArr.forEach( elem => {\n let checkTrue = asciiArrChecked.indexOf(elem);\n if (checkTrue > -1) {\n return checkAscii = true;\n }\n } )\n }\n\n if ( (checkLower === false) || (checkUpper === false) || (checkNumber === false) || (checkAscii === false) ) {\n generatePass();\n } else {\n let pass = passArr.join('');\n \n document.querySelector('#pass-result').value = pass;\n }\n\n}", "function calculatePermutations(){\n \n // Calculate number of possible permutations\n var permutations = str(adjective.length * medium.length * material1.length * material2.length * action.length * subject.length);\n \n return permutations;\n}", "function checkLength(){\n\t\tif (inputOrder.length == colorOrder.length){\n\t\t\ttoString();\n\t\t\tcheckOrder();\n\t\t} else {\n\t\t\tinputSequence++\n\t\t}\n\t}", "function checkNumberOfCopies( itcb ) {\n if ( activity.numberOfCopies ) {\n numberOfCopies = ( activity.numberOfCopies - 1 );\n Y.log( 'Will make copies of treatment if valid: ' + numberOfCopies, 'debug', NAME );\n delete activity.numberOfCopies;\n }\n explanationsIsTemplate = numberOfCopies > 0 && ( -1 !== (activity.explanations || '').indexOf('#') );\n if ( explanationsIsTemplate ){\n explanationsArray = activity.explanations.split( '#' ).map( el => el.trim() );\n }\n\n itcb( null );\n }", "function perms(e){\n\n}", "function permAlone (stringToPermutate) {\n let count = 0;\n let acu = [];\n let charsToPermutate = stringToPermutate.split('');\n let passed = [];\n var regex = /([\\w\\d])\\1{1,}/g;\n\n function _permutator () {\n if (acu.length === charsToPermutate.length) {\n if (!acu.join('').match(regex)) {\n count++;\n }\n // exit function\n } else {\n for (let i = 0; i < charsToPermutate.length; i++) {\n if (!passed[i]) {\n passed[i] = true;\n acu.push(charsToPermutate[i]);\n _permutator();\n acu.pop();\n passed[i] = false;\n }\n }\n }\n }\n\n _permutator();\n return count;\n}", "validTeamComps(number_of_players = 6) {\n // Get all permutations of team\n let valid = utils.permutations([...Array(number_of_players).keys()]);\n\n // Can person even play the role given to them\n valid = valid.filter(comp => {\n for (let i = 0; i < 6; i++) {\n let p = comp[i];\n if (p < this.players.length) {\n if (utils.getRole(this.players[p].role, i) == 0) {\n return false;\n }\n }\n }\n return true;\n });\n\n return valid;\n }", "function checkInput(t) {\n return t.task.length < 21;\n}", "function AppSolves(props) {\n\n\tvar perms = permutations.build(6, 4);\n\tvar code = permutations.choose(perms);\n\tconst [ userCodeColors, setUserCodeColors ] = useState([]);\n\tconst [ tallies, setTallies ] = useState({ blackTally: 0, whiteTally: 0 });\n\tconst [ codeSelected, setCodeSelected ] = useState(false);\n\tconst [ state, setState ] = useState({ black: 0, white: 0, code: 'xxxx' });\n\tconst [ flags, setFlags ] = useState({ notyet: false, solved: false, entries: [], score: { black: 0, white: 0 }});\n\tconst [ mycode, setMyCode ] = useState('');\n\n\tconst handleBlack = e => {\n\t\tsetState({ ...state, black: 1*e.currentTarget.selectedIndex });\n\t}\n\n\tconst handleWhite = e => {\n\t\tsetState({ ...state, white: 1*e.currentTarget.selectedIndex });\n\t}\n\n\tconst chosenCode = pegList => {\n// lots of code in here that's shared with handleAccept and needs to be moved to a function that would be called from both places.\n\t\tsetFlags({ ...flags, notyet: false, solved: false, entries: [] });\nconsole.log('chosenCode permutations', perms.slice(0).length);\n\t\tvar colors = pegList.map(item => item.substr(4));\n\t\tsetUserCodeColors(colors);\n\t\tvar code = permutations.choose(perms);\n\t\tsetCodeSelected(true);\n\t\tvar _tallies = evaluateCurrentAttempt(colors.slice(0), code);\n\t\tsetState({ black: _tallies.blackTally, white: _tallies.whiteTally, code: code });\n\t};\n\n\tconst handleAccept = () => {\n\t\tperms = filter_perms(state.black || 0, state.white || 0, state.code);\nconsole.log('filtred permutations', perms.slice(0).length);\n\t\tflags.entries.push({ code: state.code, black: state.black, white: state.white, pool: perms });\n\t\tupdate_perms(perms);\n\t\tvar code = permutations.choose(perms);\n\t\tvar _tallies = evaluateCurrentAttempt(userCodeColors.slice(0), code);\n\t\tsetState({ black: _tallies.blackTally, white: _tallies.whiteTally, code: code });\n\n\t\tif (state.black === 4) {\n\t\t\tperms = permutations.build(6, 4);\n\t\t\tupdate_perms(perms);\n\t\t\tsetState({ code: permutations.choose(perms) });\n\t\t\tsetFlags({\n\t\t\t\t...flags,\n\t\t\t\tnotyet: true,\n\t\t\t\tsolved: true,\n\t\t\t\tscore: { black: 0, white: 0 }\n\t\t\t});\n\t\t\tsetCodeSelected(false);\n\t\t}\n\t};\n\n\tconst handleBegin = (e) => {\n\t\te.preventDefault();\n\t\tsetFlags({ ...flags, notyet: false, solved: false, entries: [] });\n\t};\n\n\n\tconst handleGetTarget = e => {\n\t\te.preventDefault();\n\t\tvar entries = flags.entries;\n console.log(`handleGetTarget mycode ${mycode}, entries`, entries);\n\t\tentries.forEach((entry, ndx) => {\n\t\t\tlet score = score_guess(mycode, entry.code);\n console.log(`compare ${mycode} with ${entry.code}: `, score, entry.black, entry.white);\n\t\t});\n\t};\n\n return (\n<div className=\"container\">\n <CodePicker chosenCode={chosenCode} codeSelected={codeSelected} />\n <div className=\"row\">\n <div className=\"col-md-4\">\n <div className=\"info-column\">\n\t { codeSelected && !flags.notyet && !flags.solved && (<div>\n <table className=\"table table-bordered\">\n <thead>\n <tr className=\"success\">\n <th>Code</th>\n <th>Score</th>\n <th>Resulting Pool Size</th>\n <th></th>\n </tr>\n </thead>\n <tbody>\n \t { flags.entries.map((entry, key) => {\n return (<tr key={key} id={'attempt-' + key}>\n <td>{codeToPegs(entry.code)}</td>\n <td><ScorePegs black={entry.black} white={entry.white} /></td>\n <td>{entry.pool.length}</td>\n <td>\n\t\t\t { entry.pool.length <= 10 && (\n <div>\n {/*entry.pool.join(', ')*/}\n {entry.pool.map((item, ndx) => {\n return <div key={ndx}>{codeToPegs(item)}</div>;\n })}\n </div>) }\n </td>\n </tr>)\n\t } ) }\n <tr>\n <td>{codeToPegs(state.code)}</td>\n <td><ScorePegs black={state.black} white={state.white} /></td>\n <td>{state.pool}</td>\n <td><button className=\"btn btn-info\" onClick={handleAccept}>Next</button></td>\n </tr>\n </tbody>\n </table>\n </div> ) }\n\n\t { flags.solved && (<div>\n <p>Solved! Pick another code? You know you want to.</p>\n </div>) }\n\n </div>\n </div>\n\n <div className=\"col-md-8\">\n{ false && codeSelected && (\n <div>\n <table className=\"table table-bordered\">\n <thead>\n <tr className=\"success\">\n <th>Round</th>\n <th>Code Entry</th>\n <th>Score</th>\n <th>Pool</th>\n </tr>\n </thead>\n <tbody>\n\t { flags.entries.map((entry, key) => {\n return (<tr key={key} id={'feedback-' + key}>\n <td>{key}</td>\n <td>{codeToPegs(entry.code)}</td>\n <td><ScorePegs black={entry.black} white={entry.white}/></td>\n <td>\n Pool size: {entry.pool.length}\n\t\t\t { entry.pool.length <= 10 && (\n <div>\n {/*entry.pool.join(', ')*/}\n {entry.pool.map((item, ndx) => {\n return <div key={ndx}>{codeToPegs(item)}</div>;\n })}\n </div>) }\n </td>\n </tr>)\n\t } ) }\n </tbody>\n </table>\n </div>\n)}\n </div>\n\n </div>\n</div>\n\n );\n}", "function generatePassword() {\n // prompt the user to choose the length of the password\n var message = \"please pick a length for the password\";\n var passLength\n // loop to make sure user chooses between 8 and 128 characters\n do {\n //call the function promptCheck I created to check user entry and return a valid value\n alert(\n \"Password can't be less than 8 characters long or more than 128 characters\"\n );\n passLength = promptCheck(passLength, message);\n } while (passLength < 8 || passLength > 128);\n //console.log(passLength);\n\n //make sure the user choses at least one type of characters to include\n while (!numbers && !upperLetters && !lowerLetters && !characters) {\n var numbers = confirm(\"Would you like to include numbers?\");\n // console.log(\"Made a choice about NUMBERS.\");\n var upperLetters = confirm(\"Would you like to include uppercase letters?\");\n // console.log(\"Made a choice about UPPER LETTERS.\");\n var lowerLetters = confirm(\"Would you like to include lowercase letters?\");\n // console.log(\"Made a choice about LOWER LETTERS.\");\n var characters = confirm(\"Would you like to include special characters?\");\n if (!numbers && !upperLetters && !lowerLetters && !characters) {\n alert(\"you have to pick at least one criteria\");\n }\n }\n\n //variable to store the new password\n var passwordNew = [];\n // big pool will contain all the pools the user chose to get characters from\n var bigPool = [];\n // if selected make sure at least one number is in the mix\n if (numbers) {\n passwordNew.push(\n numbersArray[Math.floor(Math.random() * numbersArray.length)]\n );\n //update password length\n passLength--;\n // add the numbers to the big pool\n bigPool = bigPool.concat(numbersArray);\n //console.log(bigPool);\n }\n // if selected make sure at least one uppercase letter is in the mix\n if (upperLetters) {\n passwordNew.push(\n upperLettersArray[Math.floor(Math.random() * upperLettersArray.length)]\n );\n //update password length\n passLength--;\n // add the uppercase letters to the big pool\n bigPool = bigPool.concat(upperLettersArray);\n //console.log(bigPool);\n }\n // if selected make sure at least one lowercase is in the mix\n if (lowerLetters) {\n passwordNew.push(\n lowerLettersArray[Math.floor(Math.random() * lowerLettersArray.length)]\n );\n //update password length\n passLength--;\n // add the lower letters to the big pool\n bigPool = bigPool.concat(lowerLettersArray);\n //console.log(bigPool);\n }\n // if selected make sure at least one special character is in the mix\n if (characters) {\n passwordNew.push(\n charactersArray[Math.floor(Math.random() * charactersArray.length)]\n );\n //update password length\n passLength--;\n // add the special characters to the big pool\n bigPool = bigPool.concat(charactersArray);\n //console.log(bigPool);\n }\n // a pool to fill the rest of the password\n //console.log(bigPool);\n for (let i = 0; i < passLength; i++) {\n passwordNew.push(bigPool[Math.floor(Math.random() * bigPool.length)]);\n //console.log(passLength);\n }\n\n //console.log(passLength);\n //console.log(passwordNew);\n return passwordNew.join(\"\");\n}", "function generatePassword(e){\n\n // checkDesiredPwLength();\n let pwArr = []; //Array to loop each randomly generated password character into\n let finalPassword; //Will later be a string version of pwArr\n let checkedArr = [lowerChecked.checked , upperChecked.checked , numberChecked.checked , specialChecked.checked]; //Array to log true/false boolean elements into so we know which boxes are checked\n let trueBoxes = []; //All true elements from checkedArr will be pushed into here with their checkedArr index as their value so we know which boxes to act upon\n let functArr = [getRandomLower() , getRandomUpper() , getRandomNumber() , getRandomSpecial()]; //Uses values of trueBoxes to know which functions to run\n\n // GETTING INDEXES OF CHECKED BOXES\n for (i = 0; i < checkedArr.length; i++){\n if (checkedArr[i] === true) {\n trueBoxes.push(i);\n }\n }\n\n // FUNCTIONS FOR WHEN MULTIPLE BOXES ARE CHECKED\n\n //Password generation function for when two boxes are checked\n function twoBoxesChecked(){\n var firstFunctCount = 0; //Number of times first function has ran\n var secondFunctCount = 0; //Number of times second function has ran\n for (var i = 0; i < desiredPasswordLength.value; i++){\n functArr = [getRandomLower() , getRandomUpper() , getRandomNumber() , getRandomSpecial()]; //Redeclaring functArr so it doesn't give us the same character each iteration\n var randFunctSelect = Math.random(); //Random number between 0 and 1\n if (randFunctSelect <= 0.5) { \n pwArr.push(functArr[trueBoxes[0]]); //Runs function that randomly generates a character appropriate to the first checked checkbox\n firstFunctCount++;\n } else {\n pwArr.push(functArr[trueBoxes[1]]); //Runs function that randomly generates a character appropriate to the second checked checkbox\n secondFunctCount++;\n }\n }\n if (firstFunctCount === 0 || secondFunctCount === 0){\n pwArr = [];\n twoBoxesChecked();\n } //If pwArr doesn't include at least one character for each checked checkbox, the function runs again\n };\n\n //Password generation function for when three boxes are checked\n function threeBoxesChecked(){\n var firstFunctCount = 0; //Number of times first function has ran\n var secondFunctCount = 0; //Number of times second function has ran\n var thirdFunctCount = 0; //Number of times third function has ran\n for (var i = 0; i < desiredPasswordLength.value; i++){\n functArr = [getRandomLower() , getRandomUpper() , getRandomNumber() , getRandomSpecial()];\n var randFunctSelect = Math.random();\n if (randFunctSelect <= 0.33333) {\n pwArr.push(functArr[trueBoxes[0]]); //Runs function that randomly generates a character appropriate to the first checked checkbox\n firstFunctCount++;\n } else if (randFunctSelect > 0.33333 && randFunctSelect < 0.66666) {\n pwArr.push(functArr[trueBoxes[1]]); //Runs function that randomly generates a character appropriate to the second checked checkbox\n secondFunctCount++;\n } else {\n pwArr.push(functArr[trueBoxes[2]]); //Runs function that randomly generates a character appropriate to the third checked checkbox\n thirdFunctCount++;\n }\n }\n if (firstFunctCount === 0 || secondFunctCount === 0 || thirdFunctCount == 0){\n pwArr = [];\n threeBoxesChecked();\n } //If pwArr doesn't include at least one character for each checked checkbox, the function runs again\n };\n\n //Password generation function for when all four boxes are checked\n function fourBoxesChecked(){\n var firstFunctCount = 0; //Number of times first function has ran\n var secondFunctCount = 0; //Number of times second function has ran\n var thirdFunctCount = 0; //Number of times third function has ran\n var fourthFunctCount = 0; //Number of times fourth function has ran\n for (var i = 0; i < desiredPasswordLength.value; i++){\n functArr = [getRandomLower() , getRandomUpper() , getRandomNumber() , getRandomSpecial()];\n var randFunctSelect = Math.random();\n if (randFunctSelect <= 0.25) {\n pwArr.push(functArr[trueBoxes[0]]); //Runs function that randomly generates a character appropriate to the first checked checkbox\n firstFunctCount++;\n } else if (randFunctSelect > 0.25 && randFunctSelect <= 0.5) {\n pwArr.push(functArr[trueBoxes[1]]); //Runs function that randomly generates a character appropriate to the second checked checkbox\n secondFunctCount++;\n } else if (randFunctSelect > 0.5 && randFunctSelect <= 0.75) {\n pwArr.push(functArr[trueBoxes[2]]); //Runs function that randomly generates a character appropriate to the third checked checkbox\n thirdFunctCount++;\n } else {\n pwArr.push(functArr[trueBoxes[3]]); //Runs function that randomly generates a character appropriate to the fourth checked checkbox\n fourthFunctCount++;\n }\n }\n if (firstFunctCount === 0 || secondFunctCount === 0 || thirdFunctCount === 0 || fourthFunctCount === 0){\n pwArr = [];\n fourBoxesChecked();\n } //If pwArr doesn't include at least one character for each checked checkbox, the function runs again\n };\n\n\n // IF NO BOXES ARE CHECKED\n if (trueBoxes.length === 0) {\n noChecksAlert.className = \"alert alert-danger text-center py-1\"; //Shows alert to user\n copyButton.className = \"btn btn-outline-secondary disabled\"; //Disables copy button\n copyButton.setAttribute(\"title\" , \"\"); //Hides tooltip for copy button\n setTimeout(clearAlert, 4000); //Calls function to clear alert after 3 seconds\n } else {\n noChecksAlert.className = \"d-none\"; //Sets alert to display:none\n copyButton.className = \"btn btn-outline-secondary\"; //Enables copy button\n copyButton.setAttribute(\"title\" , \"Copy to clipboard\"); //Shows tooltip for copy button\n }\n\n // IF 1 BOX IS CHECKED\n if (trueBoxes.length === 1) {\n for (var i = 0; i < desiredPasswordLength.value; i++){\n functArr = [getRandomLower() , getRandomUpper() , getRandomNumber() , getRandomSpecial()]; // Redeclaring functArr so it doesn't give us the same character for each iteration\n pwArr.push(functArr[trueBoxes[0]])\n }\n\n // IF 2 BOXES ARE CHECKED\n } else if (trueBoxes.length === 2) {\n twoBoxesChecked();\n\n // IF 3 BOXES ARE CHECKED\n } else if (trueBoxes.length === 3) {\n threeBoxesChecked();\n\n // IF ALL 4 BOXES ARE CHECKED\n } else {\n fourBoxesChecked();\n }\n\n // OUTPUTTING PASSWORD TO PAGE\n finalPassword = pwArr.join(\"\"); //Converts password array (pwArr) into a string\n document.querySelector(\"#finalPassword\").value = finalPassword; //Displays password to page\n\n // ENABLING OPTION TO COPY PASSWORD\n copyButton.addEventListener(\"click\" , copyPassword); //Sets up event listener for when copy (clipboard icon) button is clicked\n\n function copyPassword(e) {\n document.querySelector(\"#finalPassword\").select(); //Selects password text\n document.execCommand(\"Copy\"); //Copies password text to clipboard\n e.preventDefault(); //Prevents page refresh when copy button is clicked\n }\n checkDesiredPwLength();\n\n e.preventDefault(); //Prevents page refresh when Generate button is clicked\n}", "function validateAllOptionsToAllowSubmit() {\r\n // if suitable array and criteria conditions align ...\r\n\r\n /*\r\n selectionIndexes: {\r\n ethnicities: [],\r\n ageBands: [],\r\n genders: [],\r\n nationalities: [],\r\n religions: [],\r\n health: [],\r\n qualifications: [],\r\n },\r\n */\r\n\r\n if (\r\n aleph.selectionIndexes.ethnicities &&\r\n aleph.selectionIndexes.ethnicities.length > 0 &&\r\n aleph.selectionIndexes.ageBands &&\r\n aleph.selectionIndexes.ageBands.length > 0 &&\r\n aleph.selectionIndexes.genders &&\r\n aleph.selectionIndexes.genders.length > 0 &&\r\n aleph.selectionIndexes.nationalities &&\r\n aleph.selectionIndexes.nationalities.length > 0 &&\r\n aleph.selectionIndexes.religions &&\r\n aleph.selectionIndexes.religions.length > 0 &&\r\n aleph.selectionIndexes.health &&\r\n aleph.selectionIndexes.health.length > 0 &&\r\n aleph.selectionIndexes.qualifications &&\r\n aleph.selectionIndexes.qualifications.length > 0\r\n ) {\r\n // enable reset and submit buttons\r\n document.getElementById(\"line-submit\").disabled = false;\r\n document.getElementById(\"line-clear\").disabled = false;\r\n } else {\r\n // disable reset and submit buttons\r\n document.getElementById(\"line-submit\").disabled = true;\r\n document.getElementById(\"line-clear\").disabled = true;\r\n }\r\n\r\n return;\r\n}", "function genPswd() {\n userLength = parseInt(window.prompt(\"Please enter a number between 8 - 128 for the length of your password:\"));\n // IF condition 8 - 128 FALSE (no entry)\n if (!userLength) {\n // THEN DISPLAY alert \"requires input\"\n parseInt(window.alert(\"Your input was empty, this criteria is required!\"));\n // RECURSION\n return genPswd();\n // IF condition 8 - 128 FALSE (outside parameters)\n } else if (!(userLength >= 8 && userLength <= 128)) {\n // THEN DISPLAY alert \"number must be between 8 - 128\"\n parseInt(window.alert(\"Number chosen MUST be between 8 and 128.\"));\n // RECURSION\n return genPswd();\n // ELSE condition 8 - 128 is TRUE (using operators and logic)\n } else {\n //DISPLAY character-type confirmations\n yesSpec = window.confirm(\"Do you want to include special characters?\");\n yesNum = window.confirm(\"Do you want to include numbers?\");\n yesLo = window.confirm(\"Do you want to include lower-case characters?\");\n yesUp = window.confirm(\"Do you want to include upper-case characters?\");\n };\n\n // CONDITIONAL functions\n\n // 4 character-types: use concat for results\n if (yesSpec && yesNum && yesLo && yesUp) {\n userCriteria = special.concat(numbers, lowerCase, upperCase);\n }\n // 3 character-types\n // special + number + lo\n else if (yesSpec && yesNum && yesLo) {\n userCriteria = special.concat(numbers, lowerCase);\n }\n // special + number + up\n else if (yesSpec && yesNum && yesUp) {\n userCriteria = special.concat(numbers, upperCase);\n }\n // number + lo + up\n else if (yesNum && yesLo && yesUp) {\n userCriteria = numbers.concat(lowerCase, upperCase);\n }\n // 2 character-types\n // special + number\n else if (yesSpec && yesNum) {\n userCriteria = special.concat(numbers);\n }\n // special + lo\n else if (yesSpec && yesLo) {\n userCriteria = special.concat(lowerCase);\n }\n // special + up\n else if (yesSpec && yesUp) {\n userCriteria = special.concat(upperCase);\n }\n // number + lo\n else if (yesNum && yesLo) {\n userCriteria = numbers.concat(lowerCase);\n }\n // number + up\n else if (yesNum && yesUp) {\n userCriteria = numbers.concat(upperCase);\n }\n // lo + up\n else if (yesLo && yesUp) {\n userCriteria = lowerCase.concat(upperCase);\n }\n // 1 character-type\n // special only\n else if (yesSpec) {\n userCriteria = special;\n }\n // number only\n else if (yesNum) {\n userCriteria = numbers;\n }\n // lowercase only\n else if (yesLo) {\n userCriteria = lowerCase;\n }\n // uppercase only\n else if (yesUp) {\n userCriteria = upperCase;\n }\n // none ==> ALERT \"Must choose at least one character-type criteria.\"\"\n else if (!yesSpec && !yesNum && !yesLo && !yesUp) {\n window.alert(\"You MUST choose at least one character-type.\");\n };\n\n // Random selection for user chosen variables\n // variable to be declared locally so password results will not append *GOOD PRACTICE WHEN USING VAR\n var userPassword = []\n\n for (var i = 0; i < userLength; i++) {\n var randomArr = userCriteria[Math.floor(Math.random() * userCriteria.length)];\n userPassword.push(randomArr);\n }\n \n var e = userPassword.join(\"\");\n inputPassword(e);\n return e;\n}", "function ifCorrectPermutationDo(cell1,cell2,cell3,character){\n gameOver = true;\n changeScore(character);\n displayWinningCells(cell1,cell2,cell3,character);\n gameButton.textContent = \"New Game\";\n}", "function checkAnswer(patternLen) {\r\n for(var i=0;i<patternLen;i++){\r\n if(userClickedPattern[i] !== gamePattern[i]){\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n}", "validate(pwd){\n this._maxLength = 0;\n this._leastTransformations = 10;\n for(let keyboard of this.keyboards){\n try{\n this._transformationsDone = [];\n const length = this._snakeLength(pwd, keyboard);\n if (length > this._maxLength){\n this._maxLength = length;\n\n if (this._transformationsDone.length < this._leastTransformations){\n this._leastTransformations = this._transformationsDone.length;\n }\n }\n } finally {\n this._transformationsDone = [];\n }\n }\n\n this._percentage = this._maxLength / pwd.length;\n\n return !(this._percentage >= this.minPercentage && this._leastTransformations <= 5);\n }", "function manageOutput() {\n runButton = document.getElementsByClassName(\"spellcheck_run\")[0];\n runButton.addEventListener(\"click\", () => {\n not_found = 0;\n correctable = 0;\n uncorrectable = 0;\n if(copyButton.disabled) {\n copyButton.classList.add(\"enabled\");\n copyButton.disabled = false;\n }\n if(AreaOutput.disabled) {\n AreaInput.classList.add(\"enabled\");\n AreaOutput.classList.add(\"enabled\");\n AreaOutput.disabled = false;\n }\n if(AreaOutput.childElementCount >= 1) {\n AreaOutput.innerHTML = '';\n }\n input = inputbox.value.replace(/ +/g,' ').replace(/\\n /g, '\\n').trim();\n tokens = tokenize(input);\n edits = getEditDistances(tokens);\n not_found = Object.keys(edits).length;\n out = []\n for( var i = 0; i < tokens.length; i++ ) {\n str = ''\n while(!(tokens[i] in edits) && i < tokens.length) {\n str += tokens[i++]\n }\n out.push(str);\n if(tokens[i] in edits) {\n token = {}\n token[tokens[i]] = edits[tokens[i]];\n out.push(token);\n }\n }\n output = document.createElement('span');\n output.className = \"spellcheck_output_inner\";\n out.forEach( o => {\n if (typeof(o) == 'string') {\n elem = document.createElement('span');\n elem.innerHTML = o;\n } else {\n elem = document.createElement('select');\n corrections = [];\n key = Object.keys(o)[0];\n for(var i = 1; i <= edit_distance; i++) {\n if(i in o[key]) {\n corrections = corrections.concat(o[key][i].slice(0, correction_count - corrections.length));\n }\n }\n for(var i = 0; i < corrections.length; i++) {\n e = document.createElement('option');\n e.value = i.toString();\n if( i == 0 ) {\n e.innerHTML = key;\n } else {\n e.innerHTML = corrections[i];\n }\n elem.appendChild(e);\n }\n }\n output.appendChild(elem);\n });\n AreaOutput.prepend(output);\n resizeBoxes();\n outputResults();\n });\n copyButton.addEventListener(\"click\", () => {\n el = document.createElement(\"textarea\");\n el.value = generateOutput();\n document.body.appendChild(el);\n el.select();\n document.execCommand(\"copy\");\n document.body.removeChild(el);\n });\n}", "function generatePassword() {\n // Asks for user input and verify\n length = 0;\n //-------------------------------------------------------------------------------\n // Enter loop until valid number selected\n while (length < 8 || length > 128) {\n length = parseInt(prompt(\"How many characters would you like your password? Choose between 8 and 128\")) ;\n // Exit loop if user selects cancel or zero\n if (!length === true || length === 0) {\n return (\"You exited the application\");\n }\n // Alert user if selection less than eight or greater than one hundred and twenty eight\n else if (length < 8 || length > 128) {\n alert(\"You must choose between 8 and 128\");\n }\n }\n //-------------------------------------------------------------------------------\n //Set confirm variables to false because following 'if statements' require true results\n confirmNumber = false;\n confirmCharacter = false;\n confirmUppercase = false;\n confirmLowercase = false;\n //-------------------------------------------------------------------------------\n // Verify user input for criteria\n while (!confirmCharacter && !confirmNumber && !confirmUppercase && !confirmLowercase) {\n confirmNumber = confirm(\"Do you wish to include numbers?\");\n confirmCharacter = confirm(\"Do you wish to include special characters?\");\n confirmUppercase = confirm(\"Do you wish to include uppercase letters?\");\n confirmLowercase = confirm(\"Do you wish to include lowercase letters?\");\n // Alert user if no selection is true\n if (!confirmCharacter && !confirmNumber && !confirmUppercase && !confirmLowercase) {\n alert(\"You must choose atleast one criteria!\");\n }\n }\n //-------------------------------------------------------------------------------\n // Selection criteria matrix (number, character, uppercase, lowercase)\n // First 'if statement' that uses user input prompts to determine choices\n //-------------------------------------------------------------------------------\n // If for 4 positive options (true, true, true, true)\n if (confirmCharacter && confirmNumber && confirmUppercase && confirmLowercase) {\n choices = character.concat(number, Lowercase, Uppercase);\n }\n //-------------------------------------------------------------------------------\n // Else if for 3 positive options (false, true, true, true)\n else if (confirmCharacter && confirmLowercase && confirmUppercase) {\n choices = character.concat(Lowercase, Uppercase);\n }\n // Else if for 3 positive options (true, false, true, true)\n else if (confirmNumber && confirmLowercase && confirmUppercase) {\n choices = number.concat(Lowercase, Uppercase);\n } \n // Else if for 3 positive options (true, true, false, true)\n else if (confirmCharacter && confirmNumber && confirmLowercase) {\n choices = character.concat(number, Lowercase);\n }\n // Else if for 3 positive options (true, true, true, false)\n else if (confirmCharacter && confirmNumber && confirmUppercase) {\n choices = character.concat(number, Uppercase);\n }\n //-------------------------------------------------------------------------------\n // Else if for 2 positive options (true, true, false, false)\n else if (confirmCharacter && confirmNumber) {\n choices = character.concat(number);\n } \n // Else if for 2 positive options (true, false, true, false)\n else if (confirmNumber && confirmUppercase) {\n choices = number.concat(Uppercase);\n } \n // Else if for 2 positive options (true, false, false, true) \n else if (confirmLowercase && confirmNumber) {\n choices = Lowercase.concat(number);\n }\n // Else if for 2 positive options (false, false, true, true)\n else if (confirmLowercase && confirmUppercase) {\n choices = Lowercase.concat(Uppercase);\n } \n // Else if for 2 positive options (false, true, true, false) \n else if (confirmCharacter && confirmUppercase) {\n choices = character.concat(Uppercase); \n } \n // Else if for 2 positive options (false, true, false, true) \n else if (confirmCharacter && confirmLowercase) {\n choices = character.concat(Lowercase);\n } \n //------------------------------------------------------------------------------- \n // Else if for 1 positive option (true, false, false, false)\n else if (confirmNumber) {\n choices = number;\n }\n // Else if for 1 positive option (false, true, false, false)\n else if (confirmCharacter) {\n choices = character;\n }\n //Else if for 1 positive option (false, false, true, false) \n else if (confirmUppercase) {\n choices = space.concat(Uppercase);\n }\n // Else if for 1 positive option (false, false, false, true)\n else if (confirmLowercase) {\n choices = Lowercase;\n }\n ;\n //-------------------------------------------------------------------------------\n // password variable is an array placeholder for user generated amount of length\n var password = [];\n\n // Start random selection variables:\n // Random selection for all variables: \n for (var i = 0; i < length; i++) {\n var pickChoices = choices[Math.floor(Math.random() * choices.length)];\n password.push(pickChoices);\n }\n // This joins the password array and converts it to a string\n var ps = password.join(\"\");\n UserInput(ps);\n return ps;\n}", "sidebarActions() {\n return <div className={'sidebar-actions'} key={'sidebar-actions'}>\n <h3>Actions</h3>\n <button\n type={'button'}\n onClick={() => {\n this.props.resetIncrementalIndex();\n const selectedTargets = this.props.selectedCharacters.map(({ target }) => target);\n const hasTargetStats = selectedTargets.some(target => target.targetStats &&\n target.targetStats.filter(targetStat => targetStat.optimizeForTarget).length)\n const duplicateCharacters = keysWhere(\n collectByKey(this.props.selectedCharacters, ({ id }) => id),\n targets => targets.length > 1);\n\n const minCharacterIndices = this.props.selectedCharacters.reduce((indices, { id }, charIndex) => ({\n [id]: charIndex,\n ...indices\n }));\n console.log(minCharacterIndices);\n\n const invalidTargets = this.props.selectedCharacters.filter(({ target }, index) =>\n target.targetStats.find(targetStat => targetStat.relativeCharacterId && minCharacterIndices[targetStat.relativeCharacterId] > index)\n ).map(({ id }) => id)\n console.log(invalidTargets);\n\n if (invalidTargets.length > 0) {\n this.props.showError([\n <p>You have invalid targets set!</p>,\n <p>For relative targets, the compared character MUST be earlier in the selected characters list.</p>,\n <p>Please fix the following characters:</p>,\n <ul>\n {invalidTargets.map(id => <li>\n {this.props.gameSettings[id] ? this.props.gameSettings[id].name : id}\n </li>)}\n </ul>\n ]);\n } else if (duplicateCharacters.length > 0 || hasTargetStats) {\n this.props.showModal('notice', this.optimizeWithWarningsModal(duplicateCharacters, hasTargetStats));\n } else {\n this.props.showModal('optimizer-progress', <OptimizerProgress />, false);\n this.props.optimizeMods();\n }\n }}\n disabled={!this.props.selectedCharacters.length}\n >\n Optimize my mods!\n </button>\n {\n this.props.showReviewButton ?\n <button type={'button'} onClick={this.props.reviewOldAssignments}>\n Review recommendations\n </button> :\n null\n }\n <button type={'button'} className={'blue'} onClick={this.props.lockAllCharacters}>\n Lock all characters\n </button>\n <button type={'button'} className={'blue'} onClick={this.props.unlockAllCharacters}>\n Unlock all characters\n </button>\n <button\n type={'button'}\n className={'blue'}\n onClick={() => this.props.showModal('reset-modal', this.resetCharsModal())}\n >\n Reset all targets\n </button>\n </div >\n }", "function clickGen(){\n\n var passLength = prompt(\"How long would you like the password? (between 8 and 128 characters)\");\n\n if(passLength > 7 && passLength < 129){\n var choiceLower = confirm(\"Would you like to include lowercase letters?\");\n\n var choiceUpper = confirm(\"Would you like to include capital letters?\");\n\n var choiceNum = confirm(\"Would you like to include numbers?\");\n\n var choiceSpecial = confirm(\"Would you like to include special characters?\");\n\n if(choiceLower || choiceUpper || choiceNum || choiceSpecial){\n var password = \"\";\n do{\n var typesMatch = false;\n password = buildPass(passLength, choiceLower, choiceUpper, choiceNum, choiceSpecial);\n typesMatch = passCheck(password, choiceLower, choiceUpper, choiceNum, choiceSpecial);\n }while(typesMatch === false);\n\n writePassword(password);\n }\n // If they didn't select at least 1 type of character to add\n else{\n alert(\"I'm sorry, but you need to select at least one option\");\n writePassword(\"Your Secure Password would be here if you actually wanted one\");\n }\n }\n // If they didn't select a proper password size\n else{\n alert(\"I'm sorry, we need a number input from 8-128 only\");\n writePassword(\"Your Secure Password would be here if you followed directions\");\n }\n}", "function fill_correct(len) \t\t\n\t{\n\t\tfor(i=0;i<len;i++)\n\t\t{\n\t\t correct[i]=i+1;\t\n\t\t}\n\t}", "function doit() {\n\n console.log(\"doit\");\n\n\n\n answerChecker.oldEvaluate = answerChecker.evaluate;\n\n //stops the code from submitting the answer\n console.log(\"wrap answerChecker\");\n answerChecker.evaluate = function(e, t) {\n result = answerChecker.oldEvaluate(e, t);\n if (result.passed === !0 && result.accurate === !1) {\n result.exception = !0;\n\n logMutations();\n\n }\n return result;\n };\n\n }", "function checkArgs() {\n if (process.argv.length === 2) {\n return 10;\n } else if (process.argv.length === 4) {\n if (process.argv.indexOf(\"-n\") !== -1) {\n index = process.argv.indexOf(\"-n\") + 1;\n if (parseInt(process.argv[index]) < 3) {\n printUsage();\n } else {\n return process.argv[index];\n }\n } else if (process.argv.indexOf(\"-a\") !== -1) {\n index = process.argv.indexOf(\"-a\") + 1;\n if (parseInt(process.argv[index]) < 1 || (parseInt(process.argv[index]) >= Math.pow(10, 2))) {\n printUsage();\n } else {\n appleNum = parseInt(process.argv[index]);\n }\n return 10;\n } else {\n printUsage();\n }\n } else if (process.argv.length === 6) {\n numRows = 10;\n if (process.argv.indexOf(\"-n\") !== -1) {\n index = process.argv.indexOf(\"-n\") + 1;\n if (parseInt(process.argv[index]) < 3) {\n printUsage();\n } else {\n numRows = process.argv[index];\n }\n } else {\n printUsage();\n }\n if (process.argv.indexOf(\"-a\") !== -1) {\n index = process.argv.indexOf(\"-a\") + 1;\n if (parseInt(process.argv[index]) < 1 || (parseInt(process.argv[index]) >= Math.pow(numRows, 2))) {\n printUsage();\n } else {\n appleNum = parseInt(process.argv[index]);\n return numRows;\n }\n } else {\n printUsage();\n }\n }\n printUsage();\n}", "function checkArgs() {\n if (process.argv.length > 4) {\n console.log(\"Too many inputs!\");\n } else {\n return true;\n }\n}", "function main() {\n\twantsPassword = confirm(\n\t\t'Hello, would you like to generate a password? (cancel for no) '\n\t);\n\n\twhile (wantsPassword) {\n\t\tif (wantsPassword) {\n\t\t\trunProgram();\n\t\t\twantsPassword = confirm(\n\t\t\t\t'Would you like to generate another password? (press cancel to write your password to the page) '\n\t\t\t);\n\t\t\twhile (wantsPassword) {\n\t\t\t\tgetWantsSameCriteria();\n\t\t\t\tif (wantsSameCriteria) {\n\t\t\t\t\tgeneratePassword();\n\t\t\t\t\twantsPassword = confirm(\n\t\t\t\t\t\t'Would you like to generate another password? (press cancel to write your password to the page)'\n\t\t\t\t\t);\n\t\t\t\t\tif (wantsPassword) {\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t}\n\t}\n\talert('Thank you');\n}", "function checkIfCorrect(){ var index = stepCounter;\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tstepCounter ++;\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log(\"index \" + index);\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log(\"limit \" + Limit);\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log(\"stepcounter \" + stepCounter);\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log(thePlayerSequence);\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log(thePartialSequence);\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log(thePlayerSequence[index]);\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log(thePartialSequence[index]); \t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\tif (thePlayerSequence[index] == thePartialSequence[index] && stepCounter == Limit && Limit == Goal) {nextLevel();} // check if the level is complete and it calls nextLevel function\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\telse if (thePlayerSequence[index] == thePartialSequence[index] && stepCounter == Limit) {addAnother();}\t// check if the lpartial sequence has been completed and adds a new note to play\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\telse if (thePlayerSequence[index] == thePartialSequence[index]){console.log(\"good job\");}\t//check if the just played note is correct\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\telse {console.log(\"bad job\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tresetAll(); // calls the resetAll functiion which reset the game and starts over\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlocation.reload(); }//reload the page (refresh)\n\t\t\t\t\t\t\t\t\t\t\t\t}", "function main() {\n var T = parseInt(readLine());\n \n for(var a0 = 0; a0 < T; a0++){\n \n \n var n = parseInt(readLine());\n q = readLine().split(' ');\n q = q.map(Number);\n \n \n q = [0].concat(q);\n \n var working =[0];\n \n var pending =[];\n \n for(var i =1;i<=n;i++){\n working.push(i);\n }\n \n var solution =0;\n \n //console.log('\\n',q,'\\n');\n \n for(var i=1;i<=n;i++){\n \n //console.log('ITERATION::',i)\n \n //console.log(working);\n\n \n //console.log('Q: ',q[i],' WORKING: ',working[i]);\n \n if(q[i]!= working[i] ){\n \n var index = working.indexOf(q[i]);\n \n var target =i;\n \n //console.log('TARGET: ',target,'INDEX: ',index);\n \n if( (index - target) > 2 || (target>index) ){\n pending.push({index:index,target:target,element:q[i]})\n }\n else{\n \n var element = working.splice(index,1);\n \n var rest = working.splice(target);\n \n var working = working.concat(element,rest);\n \n solution += index-target;\n }\n \n //console.log('SOLUTION: ',solution);\n \n }\n \n //console.log(working);\n\n \n var stopCondition =true;\n \n for(var j=1;j<n;j++){\n if(q[j]!== working[j]){\n stopCondition =false;\n break;\n }\n }\n \n if(stopCondition){\n console.log(solution);\n break;\n }\n \n }\n \n \n if(pending.length>0){\n console.log('Too chaotic')\n }\n \n \n \n \n }\n\n}", "function allDone(final) {\n\n selected = [].concat(symbolSelection, ulSelection, llSelection, numSelection);\n\n // It takes the value of length of password that user provided \n var getNumber = document.getElementById(\"lengthEl\").value;\n console.log(getNumber);\n\n for (var i = 0; i < getNumber; i++) {\n var pickChoices = selected[Math.floor(Math.random() * selected.length)];\n generatedPassword.push(pickChoices);\n }\n\n var finalPassword = generatedPassword.join(\"\");\n userInput(finalPassword);\n return finalPassword;\n\n}", "conc(program, state) {\n const array = program.arguments[0].elements;\n return _.every(array, (sub) => {\n return isFinal(sub, state);\n });\n }", "_checkOptions() {\n if (!this.shift) {\n this.errors.push(ErrorText.NO_SHIFT);\n } else if (!Number.isInteger(+this.shift)) {\n this.errors.push(`${ErrorText.SHIFT} ${this.shift}`);\n }\n\n if (!this.action) {\n this.errors.push(ErrorText.NO_ACTION);\n } else if (this.action !== Action.DECODE && this.action !== Action.ENCODE) {\n this.errors.push(`${ErrorText.ACTION} ${this.action}`);\n }\n\n if (this.input === this.output && this.input && this.output) {\n this.errors.push(ErrorText.EQUAL_FILES);\n }\n\n this._checkFileAccessibility(this.output, fs.constants.W_OK);\n this._checkFileAccessibility(this.input, fs.constants.R_OK);\n }", "runGeneration() {\n this.sort();\n \n const crossoverList = this.solutions[0].crossover(this.solutions[1]);\n this.solutions.push(crossoverList);\n \n for (let i=0; i<this.getSize(); i++) {\n if (utils.randPercent < this.mutationRate) {\n this.mutateSolution(this.solution[i]);\n }\n }\n }", "function main(input) {\n const { ncolors, prefs, baseColors } = parseInput(input)\n\n for (let combination of product(...prefs)) {\n console.log(combination);\n\n const solution = validateCombination(ncolors, combination, prefs, baseColors)\n if (solution) {\n console.log(solution)\n process.exit(0)\n }\n }\n\n console.error('No solution exists')\n process.exit(1)\n}", "function generatePassword() {\n var result = []\n //prompt questions \n\n var len = prompt(\"how many characters do you want?\");\n while (len < 8 || len > 128 || isNaN(len)) {\n alert(\"please choose a length between 8 and 128\");\n }\n console.log(len)\n var upp = confirm(\"do you want uppercase ok for yes cancel for no\")\n console.log(upp)\n var low = confirm(\"do you want lowercase ok for yes cancel for no\")\n console.log(low)\n var num = confirm(\"do you want numbers ok for yes cancel for no\")\n console.log(num)\n var spe = confirm(\"do you want special characters ok for yes cancel for no\")\n console.log(spe)\n\n if (upp == false && low == false && num == false && spe == false) {\n alert(\"you need to pick at least one category\");\n //generatePassword();\n }\n\n var passwordOptions = {\n length: len,\n hasSpecialCharacters: spe,\n hasNumericCharacters: num,\n hasLowerCasedCharacters: low,\n hasUpperCasedCharacters: upp,\n };\n // need to check if all the inputs are false. if all of them are false, then alert(\"you need to pick at least one category\")\n //and then call thegeneratepassword function. \n // len -> \n\n if (passwordOptions.hasUpperCasedCharacters) {\n possiblecharacter = possiblecharacter.concat(lettersU)\n total.push(randomize(lettersU))\n console.log(\"total uppercase \" + total)\n\n // password += randomize(lettersU) // \"\" + : \"Eg3:\" //false\n // total += lettersU\n // console.log(\"total uppercase \" + total)\n //choose a letter for lettersU (random)\n }\n\n if (passwordOptions.hasLowerCasedCharacters) {\n possiblecharacter = possiblecharacter.concat(lettersL)\n total.push(randomize(lettersL))\n console.log(\"total lowercase \" + total)\n \n // password += randomize(lettersL) // \"\" + : \"Eg3:\" //false\n // total += lettersL\n // console.log(\"total lowercase \" + total)\n //choose a letter for lettersU (random)\n }\n if (passwordOptions.hasNumericCharacters) {\n possiblecharacter = possiblecharacter.concat(numbers)\n total.push(randomize(numbers))\n console.log(\"total numbers \" + total)\n \n // password += randomize(numbers) // \"\" + : \"Eg3:\" //false\n // total += numbers\n // console.log(\"total numbers \" + total)\n //choose a letter for lettersU (random)\n }\n if (passwordOptions.hasSpecialCharacters) {\n possiblecharacter = possiblecharacter.concat(specials)\n total.push(randomize(specials))\n console.log(\"total specials \" + total)\n \n // password += randomize(specials) // \"\" + : \"Eg3:\" //false\n // total += specials\n // console.log(\"total specials \" + total)\n //choose a letter for lettersU (random)\n }\n console.log(\"total \" + total)\n\n\n\n for (var i = 0; i < passwordOptions.length; i++ ) {\n var possiblecharacter1 = randomize(possiblecharacter)\n result.push(possiblecharacter1)\n }\nconsole.log(\"possiblecharacter \" + possiblecharacter)\nfor (var i = 0; i < total; i++) {\n result[i] = total[i]\n}\nconsole.log(result.join(\" \"))\nconsole.log(\"line 119 \" + result)\n\n // total is going to have all the lettersU and all the numbers\n // 6 char but just upp and numbers\n // build the rest of the password ( if user want 8 characters you will need to add as many as the diffrence between the pasword.lenght and the len)\n //loop for 6 characters \n //var index = Math.floor ///\n // password = password + total[index] \n console.log(result);\n return (result.join(\" \"));\n}", "function generatePassword(lower, upper, number, symbol, length){\n \n console.log(lower, upper, number, symbol, length);\n \n // 1. CREATE THE PASSWORD VARIABLE\n let generatedPassword = ``;\n \n // 2. FILTER OUT UNCHECKED OPTIONS\n // True and false values can be added together (True is 1 and false is 0)\n // NOTE: The value set to typesCount will be used when building the password\n const typesCount = lower + upper + number + symbol;\n console.log(typesCount);\n \n // If the user has not selected any of the four options, then display alert and return an empty string from the function so the password displayed will just be an empty string\n if (typesCount === 0){\n alert(`Please select at least one option`);\n // The RETURN keyword stops/ends the execution of a function (AKA Does not run any of the code on the lines that follow the return in the function)\n return ``;\n }\n \n // Creating an array of arrays. The first item in each nested array holds the value of a string that will be used to access a function in the randomFunctions object. Also, the second item in each nested array is one of the values passed into this generatePassword function.\n let typesArr = [\n [`lower`, lower],\n [`upper`, upper],\n [`number`, number],\n [`symbol`, symbol]\n ];\n console.log(typesArr);\n \n // The filter method creates a new array with all the items that \"pass the test\" implemented by the provided function (AKA All the items that cause the function to return a boolean value of true when the funcion is run using the item as an argument for the item parameter in this example)\n // Checking if the value for index of 1 in each item in the array is true or false. Also, removing the item from the array if it is false.\n typesArr = typesArr.filter(item => {\n console.log(item[1]);\n return item[1];\n });\n console.log(`typesArr:`, typesArr);\n \n // 3. LOOP OVER THE LENGTH AND CALL THE GENERATOR FUNCTION FOR EACH CHECKED OPTION\n // Building password with a for loop\n // NOTE: The value for \"length\" is the value selected for the length number input\n for (i = 0; i < length; i += typesCount){\n // One of the items in the updated/filtered version of the typesArr will be the value/argument passed into for the type parameter each time the anonymous arrow function is run/executed\n typesArr.forEach(type => {\n const funcName = type[0];\n console.log(funcName);\n // Accessing and running/executing a unction in the randomFunctions object. Also, concatenating/adding the value returned from the accessed function to the generatedPassword string variable\n generatedPassword += randomFunctions[funcName]();\n console.log(generatedPassword);\n });\n }\n \n // 4. ADD THE GENERATED PASSWORD TO THE FINAL VARIABLE AND RETURN IT FROM THE FUNCTION\n // Removing extra characters if necessary (The above loop will create a password that may not match the length selected if that length is not a multiple of the number of options/checkboxes selected)\n const finalPassword = generatedPassword.slice(0, length);\n console.log(finalPassword);\n \n return finalPassword;\n }", "function generatePassword(charArray) {\n \n //get password length\n var length = lengthInput.value.trim();\n\n //get character types selected by user\n var selectedChars = charArray;\n\n // determine how many of each character should be included\n var numberOfEachChars = [];\n var percentageRemaining = length ;\n\n //select random number of elements to pick for each character selected\n for (let i = 0; i < selectedChars.length - 1; i++) {\n var ranNum = Math.floor(Math.random() * (percentageRemaining * 0.8))\n if (ranNum == 0) {\n ranNum = 1;\n }\n numberOfEachChars.push(ranNum) \n percentageRemaining -= numberOfEachChars[i]\n }\n\n //if the total number of characters that have been assigned is equal to the password length, remove 1 from he largest num and add to the last\n if (percentageRemaining == 0 && selectedChars.length > 1) {\n var n = numberOfEachChars.indexOf(Math.max(numberOfEachChars))\n numberOfEachChars[n] = numberOfEachChars[n] - 1;\n percentageRemaining = 1\n }\n numberOfEachChars.push(percentageRemaining)\n\n //picked characters\n var specialCharVals = [];\n var uppercaseVals = []\n var lowercaseVals = []\n var numericVals = [];\n \n //add the appropriate number of each character selected\n var selectedIndex = 0;\n var noDuplicates = duplicateInput.checked;\n\n // console.log(noDuplicates)\n\n if(selectedChars.indexOf(\"lowercase\") != -1) {\n lowercaseVals = returnRandomVals(numberOfEachChars[selectedIndex],letters,noDuplicates)\n selectedIndex++;\n }\n\n if(selectedChars.indexOf(\"numeric\") != -1) {\n numericVals = returnRandomVals(numberOfEachChars[selectedIndex],numbers,noDuplicates)\n selectedIndex++;\n }\n \n if(selectedChars.indexOf(\"uppercase\") != -1) {\n uppercaseVals = returnRandomVals(numberOfEachChars[selectedIndex],letters,noDuplicates)\n for(let i = 0; i < uppercaseVals.length; i++) {\n uppercaseVals[i] = uppercaseVals[i].toUpperCase()\n }\n selectedIndex++;\n }\n \n if(selectedChars.indexOf(\"specialChar\") != -1) {\n specialCharVals = returnRandomVals(numberOfEachChars[selectedIndex],charcters,noDuplicates)\n selectedIndex++;\n }\n \n //Build Password by ranomizing the order of the random character types selected\n var passwordString = \"\";\n var charPicked;\n\n for (let i = 0; i < length; i++) {\n charPicked = false;\n\n while (charPicked == false) {\n var chooseChar = selectedChars[Math.floor(Math.random() * selectedChars.length)]\n\n if (chooseChar == \"lowercase\") {\n if (lowercaseVals.length > 0) {\n passwordString = passwordString + lowercaseVals[0];\n lowercaseVals.shift();\n charPicked = true\n }\n }\n else if (chooseChar == \"numeric\") {\n if (numericVals.length > 0) {\n passwordString = passwordString + numericVals[0];\n numericVals.shift();\n charPicked = true\n }\n }\n else if (chooseChar == \"uppercase\") {\n if (uppercaseVals.length > 0) {\n passwordString = passwordString + uppercaseVals[0];\n uppercaseVals.shift();\n charPicked = true\n }\n }\n else if (chooseChar == \"specialChar\") {\n if (specialCharVals.length > 0) {\n passwordString = passwordString + specialCharVals[0];\n specialCharVals.shift();\n charPicked = true\n }\n }\n }\n }\n return(passwordString)\n}", "function combine() {\n var finalPassWord = [];\n var randomArray = [];\n\n for (let i = 0; i < length; i++) {\n //picks a random variable array with the characters the user wanted\n randomArray = characterList[Math.floor(Math.random()*characterList.length)];\n \n //puts in a random character from the random array into the final password\n finalPassWord += (randomArray[Math.floor(Math.random()*randomArray.length)]);\n \n }\n \n\n // if all characters were chosen\n if (isLowerCase === true && isUpperCase === true && isSpecialCharacter === true && isNumeric === true) {\n var isTrueLowerCheck = false;\n var isTrueUpperCheck = false;\n var isTrueSpecialCaseCheck = false;\n var isTrueNumberCaseCheck = false;\n\n function lowerCaseCheck (value) {\n if (finalPassWord.includes(value)) {\n //console.log(\"it worked for lower\");\n isTrueLowerCheck = true;\n }\n }\n\n function upperCaseCheck (value) {\n if (finalPassWord.includes(value)) {\n //console.log(\"it worked for upper\");\n isTrueUpperCheck = true;\n }\n }\n\n function specialCaseCheck (value) {\n if (finalPassWord.includes(value)) {\n //console.log(\"it worked for special\");\n isTrueSpecialCaseCheck = true;\n }\n }\n\n function numberCheck (value) {\n if (finalPassWord.includes(value)) {\n //console.log(\"it worked for num\");\n isTrueNumberCaseCheck = true;\n }\n }\n\n\n for (let i=0; i<lowerCase.length; i++) {\n lowerCaseCheck(lowerCase[i]);\n }\n\n for (let i=0; i<upperCase.length; i++) {\n upperCaseCheck(upperCase[i]);\n }\n\n for (let i=0; i<specialCharacter.length; i++) {\n specialCaseCheck(specialCharacter[i]);\n }\n\n for (let i=0; i<number.length; i++) {\n numberCheck(number[i]);\n }\n\n if (isTrueLowerCheck === false || isTrueUpperCheck === false || isTrueSpecialCaseCheck === false || isTrueNumberCaseCheck === false) {\n combine();\n }\n return finalPassWord;\n }\n // if lowercase, uppercase, and special character are chosen\n if(isLowerCase === true && isUpperCase === true && isSpecialCharacter === true && isNumeric === false) {\n var isTrueLowerCheck = false;\n var isTrueUpperCheck = false;\n var isTrueSpecialCaseCheck = false;\n\n function lowerCaseCheck (value) {\n if (finalPassWord.includes(value)) {\n //console.log(\"it worked for lower\");\n isTrueLowerCheck = true;\n }\n }\n\n function upperCaseCheck (value) {\n if (finalPassWord.includes(value)) {\n //console.log(\"it worked for upper\");\n isTrueUpperCheck = true;\n }\n }\n\n function specialCaseCheck (value) {\n if (finalPassWord.includes(value)) {\n //console.log(\"it worked for special\");\n isTrueSpecialCaseCheck = true;\n }\n }\n\n for (let i=0; i<lowerCase.length; i++) {\n lowerCaseCheck(lowerCase[i]);\n }\n\n for (let i=0; i<upperCase.length; i++) {\n upperCaseCheck(upperCase[i]);\n }\n\n for (let i=0; i<specialCharacter.length; i++) {\n specialCaseCheck(specialCharacter[i]);\n }\n\n if (isTrueLowerCheck === false || isTrueUpperCheck === false || isTrueSpecialCaseCheck === false){\n combine();\n }\n return finalPassWord;\n }\n // if uppercase, special, and numbers are chosen\n if(isUpperCase === true && isSpecialCharacter === true && isNumeric === true && isLowerCase === false) {\n var isTrueUpperCheck = false;\n var isTrueSpecialCaseCheck = false;\n var isTrueNumberCaseCheck = false;\n\n function upperCaseCheck (value) {\n if (finalPassWord.includes(value)) {\n //console.log(\"it worked for upper\");\n isTrueUpperCheck = true;\n }\n }\n\n function specialCaseCheck (value) {\n if (finalPassWord.includes(value)) {\n //console.log(\"it worked for special\");\n isTrueSpecialCaseCheck = true;\n }\n }\n\n function numberCheck (value) {\n if (finalPassWord.includes(value)) {\n //console.log(\"it worked for num\");\n isTrueNumberCaseCheck = true;\n }\n }\n\n for (let i=0; i<upperCase.length; i++) {\n upperCaseCheck(upperCase[i]);\n }\n\n for (let i=0; i<specialCharacter.length; i++) {\n specialCaseCheck(specialCharacter[i]);\n }\n\n for (let i=0; i<number.length; i++) {\n numberCheck(number[i]);\n }\n\n if (isTrueUpperCheck === false || isTrueSpecialCaseCheck === false || isTrueNumberCaseCheck === false) {\n combine();\n }\n return finalPassWord;\n }\n // if lowercase, special, and number are chosen\n if(isLowerCase === true && isSpecialCharacter == true && isNumeric === true && isUpperCase === false) {\n var isTrueLowerCheck = false;\n var isTrueSpecialCaseCheck = false;\n var isTrueNumberCaseCheck = false;\n\n function lowerCaseCheck (value) {\n if (finalPassWord.includes(value)) {\n //console.log(\"it worked for lower\");\n isTrueLowerCheck = true;\n }\n }\n function specialCaseCheck (value) {\n if (finalPassWord.includes(value)) {\n //console.log(\"it worked for special\");\n isTrueSpecialCaseCheck = true;\n }\n }\n\n function numberCheck (value) {\n if (finalPassWord.includes(value)) {\n //console.log(\"it worked for num\");\n isTrueNumberCaseCheck = true;\n }\n }\n\n for (let i=0; i<lowerCase.length; i++) {\n lowerCaseCheck(lowerCase[i]);\n }\n for (let i=0; i<specialCharacter.length; i++) {\n specialCaseCheck(specialCharacter[i]);\n }\n\n for (let i=0; i<number.length; i++) {\n numberCheck(number[i]);\n }\n if (isTrueLowerCheck === false || isTrueSpecialCaseCheck === false || isTrueNumberCaseCheck === false) {\n combine();\n }\n return finalPassWord;\n }\n // if lowercase, uppercase, and numbers are chosen\n if(isLowerCase === true && isUpperCase === true && isNumeric === true && isSpecialCharacter === false) {\n var isTrueLowerCheck = false;\n var isTrueUpperCheck = false;\n var isTrueNumberCaseCheck = false;\n\n function lowerCaseCheck (value) {\n if (finalPassWord.includes(value)) {\n //console.log(\"it worked for lower\");\n isTrueLowerCheck = true;\n }\n }\n\n function upperCaseCheck (value) {\n if (finalPassWord.includes(value)) {\n //console.log(\"it worked for upper\");\n isTrueUpperCheck = true;\n }\n }\n function numberCheck (value) {\n if (finalPassWord.includes(value)) {\n //console.log(\"it worked for num\");\n isTrueNumberCaseCheck = true;\n }\n }\n\n for (let i=0; i<lowerCase.length; i++) {\n lowerCaseCheck(lowerCase[i]);\n }\n\n for (let i=0; i<upperCase.length; i++) {\n upperCaseCheck(upperCase[i]);\n }\n for (let i=0; i<number.length; i++) {\n numberCheck(number[i]);\n }\n\n if (isTrueLowerCheck === false || isTrueUpperCheck === false || isTrueNumberCaseCheck === false) {\n combine();\n }\n return finalPassWord;\n }\n\n //console.log(finalPassWord);\n return finalPassWord;\n }", "apply(mutableBoardData, cloneSquare){\n //5..2...4....6.3....3...9..7..3..7.....7..8...6......2..8......3...4..6.....1..5..\n let mutations = 0;\n this.cellIndexes.forEach( (cellIdx, index, array) => {\n let immutableSquare = mutableBoardData[cellIdx];\n let replacementCandidates = [...immutableSquare.candidates];\n \n \n // unlike cage, littleKiller can have repeats in other boxes.\n\n \n let otherCellIndexes = this.cellIndexes.filter( i=> i!== cellIdx);\n replacementCandidates.forEach( (candidate, cIndex, cArray) => {\n if( candidate > 0 ){\n if( ! this.cageValidates(mutableBoardData, this.value-candidate, otherCellIndexes)){\n replacementCandidates[cIndex] = 0;\n mutations = mutations+1;\n }\n \n\n }\n });\n \n\n \n \n \n\n // if the region has a candidate that exists in the intersection of two regions, \n // and the candidate only exists in that intersection on the Other rule, \n //then this candidate must also exist within said intersection on this rule!\n\n\n if( mutations>0 ){\n let newSquareData = cloneSquare(immutableSquare);\n console.log(\"Removing value from square\");\n newSquareData.candidates = replacementCandidates;\n \n mutableBoardData[cellIdx]=newSquareData;\n }\n\n \n \n\n });\n return mutations;\n \n }", "function generatePassword() {\n //variable to store the new password\n var passwordNew = [];\n // big pool will contain all the pools the user chose to get characters from\n var bigPool = [];\n \n\n \n \n // get the length chose by the user through the number input\n // variable to store the length the user chose\n var passLength = document.getElementById(\"length\").value;\n //console.log(passLength);\n // get checkbox status from the DOM\n var numbers = document.getElementById(\"num\").checked;\n var upCase = document.getElementById(\"upCase\").checked;\n var lowCase = document.getElementById(\"lowCase\").checked;\n var spcChar = document.getElementById(\"spcChar\").checked;\n\n /*make sure the user has checked at least one box and the length\n he chose is within the range to generate a password*/\n if ((numbers || upCase || lowCase || spcChar) && (passLength>=8 && passLength<=128)) {\n \n // if selected make sure at least one number is in the mix\n if (numbers) {\n passwordNew.push(\n numbersArray[Math.floor(Math.random() * numbersArray.length)]\n );\n //update password length\n passLength--;\n // add the numbers to the big pool\n bigPool = bigPool.concat(numbersArray);\n //console.log(bigPool);\n }\n // if selected make sure at least one uppercase letter is in the mix\n if (upCase) {\n passwordNew.push(\n upperLettersArray[Math.floor(Math.random() * upperLettersArray.length)]\n );\n //update password length\n passLength--;\n // add the uppercase letters to the big pool\n bigPool = bigPool.concat(upperLettersArray);\n //console.log(bigPool);\n }\n // if selected make sure at least one lowercase is in the mix\n if (lowCase) {\n passwordNew.push(\n lowerLettersArray[Math.floor(Math.random() * lowerLettersArray.length)]\n );\n //update password length\n passLength--;\n // add the lower letters to the big pool\n bigPool = bigPool.concat(lowerLettersArray);\n //console.log(bigPool);\n }\n // if selected make sure at least one special character is in the mix\n if (spcChar) {\n passwordNew.push(\n charactersArray[Math.floor(Math.random() * charactersArray.length)]\n );\n //update password length\n passLength--;\n // add the special characters to the big pool\n bigPool = bigPool.concat(charactersArray);\n //console.log(bigPool);\n }\n // a pool to fill the rest of the password\n //console.log(bigPool);\n for (let i = 0; i < passLength; i++) {\n // add a random character at each iteration\n passwordNew.push(bigPool[Math.floor(Math.random() * bigPool.length)]);\n //console.log(passLength);\n }\n //return password value\n return passwordNew.join(\"\");\n }\n //otherwise let them now in the text box\n else if (passLength<8 || passLength>128) {\n return \"The Password Should be a minimum of 8 characters\\n and a maximum of 128\";\n }\n else {\n return \"You have to choose at least one criteria\";\n }\n}", "function generatePassword() {\n // WHEN prompted for the length of the password\n // THEN I choose a length of at least 8 characters and no more than 128 characters\n passwordLength = prompt(\"How long do you want your password to be?\");\n if (passwordLength > 128 || passwordLength < 8) {\n alert(\"Please choose a number between 8 - 128.\");\n return generatePassword();\n }\n\n //Ask users all otions. //if its true, at least 1 of them need to be in there\n numbersChoice = confirm(\"Do you want numbers?\");\n symbolsChoice = confirm(\"Do you want symbols?\");\n capsChoice = confirm(\"Do you want caps?\");\n lowercaseChoice = confirm(\"Do you want lower case?\");\n\n //Put all items that user choose into one array\n var allOptions = [];\n var charBox = [];\n var confirmTimes = 0;\n\n if (numbersChoice) {\n allOptions = allOptions.concat(numbers);\n charBox = charBox.concat(\n numbers[Math.floor(Math.random() * numbers.length)]\n );\n confirmTimes++;\n }\n if (symbolsChoice) {\n allOptions = allOptions.concat(symbols);\n charBox = charBox.concat(\n symbols[Math.floor(Math.random() * symbols.length)]\n );\n confirmTimes++;\n }\n if (capsChoice) {\n allOptions = allOptions.concat(alphabetCaps);\n charBox = charBox.concat(\n alphabetCaps[Math.floor(Math.random() * alphabetCaps.length)]\n );\n confirmTimes++;\n }\n if (lowercaseChoice) {\n allOptions = allOptions.concat(alphabetLower);\n charBox = charBox.concat(\n alphabetLower[Math.floor(Math.random() * alphabetLower.length)]\n );\n confirmTimes++;\n }\n\n //Choose characters randomly from array \"allOptions\"\n\n for (i = 0; i < passwordLength - confirmTimes; i++) {\n charBox = charBox.concat(\n allOptions[Math.floor(Math.random() * allOptions.length)]\n );\n }\n return charBox.join(\"\");\n}", "function checkPasswordSettings() {\n \n let characters = document.getElementsByName('characters');\n let selected = [];\n\n\n for (let i=0; i<characters.length; i++) {\n if (characters[i].checked) {\n selected.push(1)\n } else {\n continue\n // selected.push(0);\n }\n }\n\n //if no selection at all >> alert\n\n if (selected.length == 0) {\n alert(\"No character selection, select at least one!\")\n return\n }\n\n for (let i=0; i < selected.length; i++) {\n if (i == 0 && selected[i] == 1 ) {\n charsForGeneration = charsForGeneration.concat(alphabetsSmall)\n }\n\n if (i == 1 && selected[i] == 1 ) {\n charsForGeneration = charsForGeneration.concat(alphabetsCapital)\n }\n\n if (i == 2 && selected[i] == 1 ) {\n charsForGeneration = charsForGeneration.concat(numbers)\n }\n\n if (i == 3 && selected[i] == 1 ) {\n charsForGeneration = charsForGeneration.concat(specials)\n }\n }\n\n}", "function check() {\n /**\n * check if output grid same as correct answer. if so, store info and move to next task\n */\n if (SENDING_TO_NEXT) {\n return;\n }\n update_grid_from_div($(`#output_grid .editable_grid`), CURRENT_OUTPUT_GRID);\n reference_output = TEST_PAIR.output.grid;\n submitted_output = CURRENT_OUTPUT_GRID.grid;\n\n for (i=0;i<ATTEMPT_JSONS.length;i++) {\n if (ATTEMPT_JSONS[i] == JSON.stringify(submitted_output)) {\n errorMsg(\"You have already tried this grid. Try a different output before checking your answer.\");\n return;\n }\n }\n\n // have to store as json string bc firebase cannot store nested arrays\n ATTEMPT_JSONS.push(JSON.stringify(submitted_output));\n\n if (reference_output.length != submitted_output.length || reference_output[0].length != submitted_output[0].length) {\n errorMsg(`Wrong answer. Try again. You have ${MAX_ATTEMPTS_BUILDER - ATTEMPT_JSONS.length} attempts left.`);\n ATTEMPTS_SEQUENCE.push({\n \"action\": {\"tool\": \"check\", \"correct\": false},\n \"grid\": array_copy(CURRENT_OUTPUT_GRID.grid),\n \"time\": (new Date() - START_DATE) / 1000\n });\n // used all attempts\n if (ATTEMPT_JSONS.length == MAX_ATTEMPTS_BUILDER) {\n SENDING_TO_NEXT = true;\n used_all_attempts();\n }\n return;\n }\n\n for (var i = 0; i < reference_output.length; i++) {\n ref_row = reference_output[i];\n for (var j = 0; j < ref_row.length; j++) {\n if (ref_row[j] != submitted_output[i][j]) {\n errorMsg(`Wrong answer. Try again. You have ${MAX_ATTEMPTS_BUILDER - ATTEMPT_JSONS.length} attempts left.`);\n ATTEMPTS_SEQUENCE.push({\n \"action\": {\"tool\": \"check\", \"correct\": false},\n \"grid\": array_copy(CURRENT_OUTPUT_GRID.grid),\n \"time\": (new Date() - START_DATE) / 1000\n });\n // used all attempts\n if (ATTEMPT_JSONS.length == MAX_ATTEMPTS_BUILDER) {\n SENDING_TO_NEXT = true;\n used_all_attempts();\n }\n return;\n }\n }\n }\n\n ATTEMPTS_SEQUENCE.push({\n \"action\": {\"tool\": \"check\", \"correct\": true},\n \"grid\": array_copy(CURRENT_OUTPUT_GRID.grid),\n \"time\": (new Date() - START_DATE) / 1000\n });\n\n SENDING_TO_NEXT = true;\n infoMsg(\"Correct!\");\n\n const newDate = new Date();\n const build_time = (newDate - START_DATE) / 1000;\n\n if (IS_VERIFICATION) {\n $(\"#speaker_certainty_modal\").modal('show');\n } else {\n\n show_loader();\n\n get_description_by_id(TASK_ID, DESC_ID, DESCRIPTIONS_TYPE).then(desc_to_update => {\n get_task_best_desc(TASK_ID, DESCRIPTIONS_TYPE).then(task_best => {\n\n let a = task_best.success_score + PRIORS[0];\n let b = (task_best.attempts - task_best.success_score) + PRIORS[1];\n \n let mean = a / (a + b);\n task_best.mean = mean;\n\n store_listener(DESC_ID, TASK_ID, uid, ATTEMPT_JSONS.length, ATTEMPT_JSONS, JSON.stringify(ATTEMPTS_SEQUENCE), build_time, true, DESCRIPTIONS_TYPE, maxIdleTime, task_best, desc_to_update, null, null)\n .then(function () { \n set_user_complete_time(uid, build_time, `${TASK_ID}_${DESCRIPTIONS_TYPE}_listener`).then(function() {\n next_task(TIMING_CREDIT / 60); \n }).catch(function (error) { console.error('Error storing response ' + error); });\n })\n .catch(function (error) { console.error(\"Error storing response: \" + error); });\n \n }).catch(err => {\n console.error(err);\n });\n });\n }\n}", "function isValidLength(solution) {\n return solution.length === 81;\n}", "checkAndRun(){\n var checks=this.checkPointers();\n\n if(checks.passed){\n this.passedRun=true;\n this.update();\n //this doesn't find if there are any fails in the update...\n }else{\n checks.errors.forEach(function(error){console.error (error)})\n this.passedRun=false;\n }\n }", "function generatePassword(){\n\n//Input password length and confirm password is anywhere from 8 to 128 numbers\nvar passwordLength = prompt(\"How many characters would you like your password to be from 8 to 128?\");\n\n//this is a checker to make sure that the user selected a number from the correct span\n if(passwordLength < 8 || passwordLength > 128) {\n var length = false;\n while (length === false) {\n passwordLength = prompt(\"Please enter a number between 8 and 128\");\n if (passwordLength >7 && passwordLength <129) {\n length = true;\n }\n }\n }\n\n//confirm which type of characters you would like in your password\nvar upperCase = confirm(\"Would you like your password to have uppercase letters?\");\nvar lowerCase = confirm(\"Would you like your password to have lowercase letters?\");\nvar numberConfirm= confirm(\"Would you like your password to have numbers?\");\nvar specialCharacters= confirm(\"Would you like your password to have special characters?\");\n\n//this checks to make sure the user selected at least one type of character for their password\nif(upperCase === false && lowerCase === false && numberConfirm === false && specialCharacters === false) {\n alert(\"Please select at least one type of character\");\n var charChoice = false;\n while (charChoice === false) {\n var upperCase = confirm(\"Would you like your password to have uppercase letters?\");\n var lowerCase = confirm(\"Would you like your password to have lowercase letters?\");\n var numberConfirm = confirm(\"Would you like your password to have numbers?\");\n var specialCharacters = confirm(\"Would you like your password to have special characters?\");\n if(upperCase === true || lowerCase === true || numberConfirm === true || specialCharacters === true) {\n charChoice = true;\n }\n }\n}\n\n//this variable is created to hold all of the character choices that the user has selected\nvar possibles =[];\n\nif (upperCase) {\n possibles.push(uppers);\n}\n\nif (lowerCase) {\n possibles.push(lowers);\n}\n\nif (numberConfirm){\n possibles.push(numbers);\n}\n\nif (specialCharacters) {\n possibles.push(specials);\n}\n\nconsole.log (possibles);\n\nvar result=\"\";\n\n//this for loop selects a random array from the input and secondly randomly selects a character from that array for the entirety of the password length\nfor (var i = 0; i <passwordLength; i++){\n var randomArray =\n possibles[Math.floor(Math.random() * possibles.length)];\n var randomChar=\n randomArray[Math.floor(Math.random() * randomArray.length)];\n result += randomChar;\n}\nconsole.log(result);\nreturn result;\n}", "function generatePassword() {\n\n // Variable for password length:\n var length = (prompt(\"how many characters would you like in your password? Choose between 8 and 128.\"));\n\n // If user does not select value:\n if (!length) {\n alert(\"This needs a value\");\n }\n\n // If user inputs value outside of parameters:\n else if (length < 8 || length > 128) {\n alert(\"This needs a value between 8 and 128!\");\n }\n\n // After correct number of characters has been input, pop-up question \"confirm\" dialog boxes:\n else {\n confirmNumber = confirm(\"Will this contain numbers?\");\n confirmCharacter = confirm(\"Will this contain special characters?\");\n confirmUppercase = confirm(\"Will this contain uppercase letters?\");\n confirmLowercase = confirm(\"Will this contain lowercase letters?\");\n };\n\n // this variable is to create an empty array to hold all possible options:\n var possibleChars = []\n\n // This variable will generate the password randomly:\n var result = []\n\n // For 4 negative options:\n if (!confirmCharacter && !confirmNumber && !confirmUppercase && !confirmLowercase) {\n choices = alert(\"You must choose a criteria!\");\n }\n\n // For 4 positive options:\n else if (confirmCharacter && confirmNumber && confirmUppercase && confirmLowercase) {\n possibleChars = character.concat(number, lowercase, uppercase);\n console.log(\"possible characters are \" + possibleChars)\n }\n\n // Else if for 3 positive options:\n else if (confirmCharacter && confirmNumber && confirmUppercase) {\n possibleChars = character.concat(number, uppercase);\n console.log(\"possible characters are \" + possibleChars)\n }\n else if (confirmCharacter && confirmNumber && confirmLowercase) {\n possibleChars = character.concat(number, lowercase);\n console.log(\"possible characters are \" + possibleChars)\n }\n else if (confirmCharacter && confirmLowercase && confirmUppercase) {\n possibleChars = character.concat(lowercase, uppercase);\n console.log(\"possible characters are \" + possibleChars)\n }\n else if (confirmNumber && confirmLowercase && confirmUppercase) {\n possibleChars = number.concat(lowercase, uppercase);\n console.log(\"possible characters are \" + possibleChars)\n }\n\n // Else if for 2 positive options \n else if (confirmCharacter && confirmNumber) {\n possibleChars = character.concat(number);\n console.log(\"possible characters are \" + possibleChars)\n }\n else if (confirmCharacter && confirmLowercase) {\n possibleChars = character.concat(lowercase);\n console.log(\"possible characters are \" + possibleChars)\n }\n else if (confirmCharacter && confirmUppercase) {\n possibleChars = character.concat(uppercase);\n console.log(\"possible characters are \" + possibleChars)\n }\n else if (confirmLowercase && confirmNumber) {\n possibleChars = lowercase.concat(number);\n console.log(\"possible characters are \" + possibleChars)\n }\n else if (confirmLowercase && confirmUppercase) {\n possibleChars = lowercase.concat(uppercase);\n console.log(\"possible characters are \" + possibleChars)\n }\n else if (confirmNumber && confirmUppercase) {\n possibleChars = number.concat(uppercase);\n console.log(\"possible characters are \" + possibleChars)\n }\n\n // Else if for 1 positive option\n else if (confirmCharacter) {\n possibleChars = character;\n console.log(\"possible characters are \" + possibleChars)\n }\n else if (confirmNumber) {\n possibleChars = number;\n console.log(\"possible characters are \" + possibleChars)\n }\n else if (confirmLowercase) {\n possibleChars = lowercase;\n console.log(\"possible characters are \" + possibleChars)\n }\n else if (confirmUppercase) {\n possibleChars = uppercase;\n console.log(\"possible characters are \" + possibleChars)\n }\n\n\n //Use a for loop (length is the number of characters the user chose for the password)\n\n console.log(length);\n\n // this is the moment you get back the info to the variable password that calls the function\n // push selected-number random items from possibleChars array into the results array using math.random to choose random index\n\n // Learning Assistant helped me work through the following:\n\n // Random selection for all variables: \n for (var i = 0; i < length; i++) {\n var pickpossibleChars = possibleChars[Math.floor(Math.random() * possibleChars.length)];\n result.push(pickpossibleChars);\n }\n // Use \"join()\" to convert elements into a string:\n var password = result.join(\"\");\n console.log(password);\n return password;\n}", "checkResult() {\n const MAX_ANSWERS_LENGTH = 10;\n if (this.model.isDead()) {\n this.loose();\n } else if (this.model.defineAnswersLength() === MAX_ANSWERS_LENGTH) {\n this.win();\n } else {\n this.startGame();\n }\n }", "CheckEntries(DeleteAll){\n \n let correct = [];\n \n //iterate through all indexes of input fields\n for (let index = 1; index < 8; index++){\n \n\n //fetch value of html input field\n let str = \"input\".concat(index.toString());\n let value = document.getElementById(str).value;\n \n //checks if value is present\n if ( value === \"\" ) {\n correct.push(\"false\")\n } else {\n correct.push(\"true\")\n }\n \n }\n //given that correct only has \"true\" entries it deletes all entries from cart and alerts user of success\n if ( correct.filter(x => x === \"false\").length === 0 ) {\n DeleteAll();\n alert(\"Kauf erfolgreich.\\nKehre zur Startseite zurück.\");\n return true;\n } else {\n console.log(correct);\n const str = \"Fehlende Eingabe! Bitte Felder \".concat(getAllIndexes(correct, \"false\").join(), \" überprüfen\") \n alert(str);\n return false;\n }\n }", "function generatePassword() {\n var lengthConfirmation = (prompt(\"Please confirm the length of the password?\"));\n\n // Loop if answer is outside the parameters \n while(lengthConfirmation <= 7 || lengthConfirmation >= 21) {\n alert(\"Sorry the password length can be 8-20. Please try again\");\n var lengthConfirmation = (prompt(\"Please confirm the length of the password?\"));\n } \n\n // Repeat back how many charactes the user will have \n alert(`The password will have ${lengthConfirmation} characters`);\n\n // Determine parameters of password \n\tvar upperCaseConfirmation = confirm(\"If you want to include upper case alphabets in your password, please click OK\");\n\tvar lowerCaseConfirmation = confirm(\"If you want to include lower case alphabets in your password, please click OK\");\n\tvar numericCharacterConfirmation = confirm(\"If you want to include numbers in your password, please click OK\"); \n var specialCharacterConfirmation = confirm(\"If you want to include special symbols in your password, please click OK\");\n \n \n \n // Loop if answer is outside the parameters \n while(upperCaseConfirmation === false && lowerCaseConfirmation === false && specialCharacterConfirmation === false && numericCharacterConfirmation === false) {\n alert(\"At least one parameter must be chosen\");\n var upperCaseConfirmation = confirm(\"If you want to include upper case alphabets in your password, please click OK\");\n\t\tvar lowerCaseConfirmation = confirm(\"If you want to include lower case alphabets in your password, please click OK\");\n\t\tvar numericCharacterConfirmation = confirm(\"If you want to include numbers in your password, please click OK\"); \n\t\tvar specialCharacterConfirmation = confirm(\"If you want to include special symbols in your password, please click OK\"); \n } \n\n // Assign an action to the password parameters NEED TO FIX THIS\n var passwordCharacters = []\n\t if (upperCaseConfirmation) \n\t {\n\t\tpasswordCharacters = passwordCharacters.concat(upperAlpha)\n\t }\n\t if (lowerCaseConfirmation) \n\t {\n\t\tpasswordCharacters = passwordCharacters.concat(lowerAlpha)\n\t } \n\t if (numericCharacterConfirmation) \n\t {\n passwordCharacters = passwordCharacters.concat(numbers)\n } \n\t if (specialCharacterConfirmation) \n\t {\n\t\tpasswordCharacters = passwordCharacters.concat(specialChar)\n } \n \n console.log(passwordCharacters)\n\n var randomPassword = \"\"\n \n for (var a = 0; a < lengthConfirmation; a++) {\n randomPassword = randomPassword + passwordCharacters[Math.floor(Math.random() * passwordCharacters.length)];\n console.log(randomPassword)\n }\n return randomPassword;\n}", "function perms(e){\n // Make e into a string\n e = e +'';\n // work areas\n var list = [], l = [];\n \n // Init to all zeros\n for(var x=0;x<128;x++)\n list[x] = 0;\n\n // Increment by ascii code\n for(var x=0;x<e.length;x++)\n list[e.charCodeAt(x)]++;\n \n // Move all greater-than-1 to l array\n for(var x=0;x<list.length;x++)\n if (list[x] > 1)\n l.push(list[x]);\n\n // Factorial function\n var f = function(n){ \n if (n === 1) \n return 1;\n else\n return n * f(n-1);\n };\n \n // Bottom\n var b = 1;\n \n // Factorial bottom no.s greater than 1: a!*b!*c!...*n!\n for(var x=0;x<l.length;x++) \n b *= f(l[x]);\n\n // Return distinct permutations of e\n return f(e.length) / b;\n}", "function generatePassword() {\n // Show an alert to start password generation\n alert(\"Please follow the steps prompted to generate your password based on criteria selected.\");\n\n // Call function to get passwordLength\n let passwordLength = getPasswordLength();\n\n // Check if User selects cancel from the prompt then terminate function and return null\n if (passwordLength === null) {\n return null;\n }\n\n // ****** Ask User to select character criteria for the password ****** //\n // Initialize number of character sets selected to 0\n let numberOfCharSetsSelected = 0;\n\n // Initialize an array of booleans with 4 false values. Using an array so I can call a for loop through the array below\n let charSetBoolArray = [false, false, false, false];\n\n // Loop until at least one character set is selected to generate the password\n while (numberOfCharSetsSelected == 0) {\n // Use confirm function to set boolean values for character types\n charSetBoolArray[0] = confirm(\"Do you want lowercase characters in your password? (a b c ...)\"); // lowercase index\n charSetBoolArray[1] = confirm(\"Do you want uppercase characters in your password? (A B C ...)\"); // uppercase index\n charSetBoolArray[2] = confirm(\"Do you want numeric characters in your password? (0 1 2 ...)\"); // numeric index\n charSetBoolArray[3] = confirm(\"Do you want special characters in your password? (! # $ ...)\"); // special index\n\n // sum of values in the charSetBoolArray\n numberOfCharSetsSelected = charSetBoolArray.reduce((a, b) => a + b, 0);\n // console.log(numberOfCharSetsSelected);\n\n // If all 4 booleans are false and add upto 0, alert user and repeat loop\n if (numberOfCharSetsSelected == 0) {\n alert(\"At least one of the character types must be selected in order to generate your password. Try again.\");\n }\n }\n\n // ****** Generate random number of characters for each selected character set ******//\n // Minimum 1 character and and maximum(passwordLength - numberOfCharSetsSelected) + 1\n\n // initialize passwordCharArray to track how many characters are in each character set based on the charSetBoolArray's true or false\n let charSetQtyArray = [0, 0, 0, 0];\n let i = 0;\n\n for (i = 0; i < charSetQtyArray.length; i++) {\n if (charSetBoolArray[i] === true && numberOfCharSetsSelected === 1) {\n charSetQtyArray[i] = passwordLength - numberOfCharSetsSelected + 1;\n } else if (charSetBoolArray[i] === true) {\n charSetQtyArray[i] = Math.floor(Math.random() * (passwordLength - numberOfCharSetsSelected)) + 1;\n passwordLength = passwordLength - charSetQtyArray[i];\n numberOfCharSetsSelected -= 1;\n }\n }\n // console.log(\"charSetBoolArray: \" + charSetBoolArray);\n // console.log(\"charSetQtyArray: \" + charSetQtyArray);\n\n // *** Add random characters of each character set into a string based on number of characters in charSetQtyArray *** //\n // The generated password is sorted by character set and need to be shuffled afterwards.\n\n // initialize password to an empty string\n let password = \"\";\n\n //character set Array\n const charSetArray = [\"abcdefghijklmnopqrstuvwxyz\", \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\", \"0123456789\", \"!\\\"#$%&'()*+,-./:;<=>?@[]^_`{|}~\"];\n\n let j = 0;\n\n // loop through charSetQtyArray (4 times)\n for (i = 0; i < charSetQtyArray.length; i++) {\n //loop through number of characters for each character set\n for (j = 0; j < charSetQtyArray[i]; j++) {\n // randomly generate a character from the ith index of charSetArray\n let char = charSetArray[i].charAt(getRandomInteger(0, charSetArray[i].length - 1));\n // console.log(char);\n password = password + char;\n // console.log(password);\n }\n }\n\n // ***** Shuffle the password generated *****\n let shuffledPassword = shuffleString(password);\n return shuffledPassword;\n}", "function VALIDARLONGITUD() {\n var len = arguments[0].toString().length;\n\n if (len > arguments[2] || len < arguments[1]) {\n return false;\n }\n\n return true;\n}", "function adjustSizes() {\n var highestIndex = 0;\n for (var argument in arguments) {\n var listSize = argument.length;\n if (listSize > highestIndex) {\n highestIndex = listSize;\n }\n }\n\n for (var argument in arguments) {\n while (argument.length < highestIndex) {\n argument.add(\"\");\n }\n }\n}", "function possible_change(par,z1,z2)//pomiedzy zaw//jesli sa obok siebie w tabeli i r<6 to ok\n{\n //console.log(\"Prop zmiany: \"+par+\" out: \"+z1+\" in: \"+z2);\nif(par==1)\n{\n var r=0; var ile_razy_para = 0;\n for(var u=0;u<changes.length;u++)\n {\n if(changes[u][0]==1)\n {\n r++;\n //sprawdzanie czy w jakiejś parze są już te numery - ale nie razem - zmiana zawsze niedozwolona\n if(changes[u][1]==z1||changes[u][1]==z2||changes[u][2]==z1||changes[u][2]==z2)\n {\n if((changes[u][1]!=z1 && changes[u][2]==z2) || (changes[u][1]==z1 && changes[u][2]!=z2) || (changes[u][1]!=z2 && changes[u][2]==z1) || (changes[u][1]==z2 && changes[u][2]!=z1))\n {\n //alert(\"1- jestem-return 6 - już uczesniczył w zmianie.\");\n //alert(\"changes[u][1]: \"+changes[u][1]);alert(\"changes[u][2]: \"+changes[u][2]);\n //alert(\"z1: \"+z1);alert(\"z2: \"+z2); \n return 7;//zmiana niedozwolona - już uczestniczył w innej parze na wymianę\n }\n }\n //ile razy podane nr są w parze - raz mogą być - trzeba dozolić jak raz są w parze - na zm powr\n if((changes[u][1]==z1&&changes[u][2]==z2)||(changes[u][1]==z2&&changes[u][2]==z1))\n {\n ile_razy_para++;\n }\n }\n }\n //alert(\"ile razy para1: \"+ile_razy_para);\n if(ile_razy_para>1){return 7;}//zmiana niedozwolona - mogą się raz zmnienić i 1 raz powrotnie\n //alert(\"return ilość change1: \"+r);\n return r;//zm dozwolona 0,1,2,3,4,5\n}\nelse if(par==2)\n{\n var r=0; var ile_razy_para = 0;\n for(var u=0;u<changes.length;u++)\n {\n if(changes[u][0]==2)\n {\n r++;\n //sprawdzanie czy w jakiejś parze są już te numery - ale nie razem - zmiana zawsze niedozwolona\n if(changes[u][1]==z1||changes[u][1]==z2||changes[u][2]==z1||changes[u][2]==z2)\n {\n if((changes[u][1]!=z1 && changes[u][2]==z2) || (changes[u][1]==z1 && changes[u][2]!=z2) || (changes[u][1]!=z2 && changes[u][2]==z1) || (changes[u][1]==z2 && changes[u][2]!=z1))\n {\n //alert(\"2- jestem-return 6 - już uczesniczył w zmianie.\");\n //alert(\"changes[u][1]: \"+changes[u][1]);alert(\"changes[u][2]: \"+changes[u][2]);\n //alert(\"z1: \"+z1);alert(\"z2: \"+z2); \n return 7;//zmiana niedozwolona - już uczestniczył w innej parze na wymianę\n }\n }\n //ile razy podane nr są w parze - raz mogą być - trzeba dozolić jak raz są w parze - na zm powr\n if((changes[u][1]==z1&&changes[u][2]==z2)||(changes[u][1]==z2&&changes[u][2]==z1))\n {\n ile_razy_para++;\n }\n }\n }\n //alert(\"ile razy para2: \"+ile_razy_para);\n if(ile_razy_para>1){return 7;}//zmiana niedozwolona - mogą się raz zmnienić i 1 raz powrotnie\n //alert(\"return ilość change2: \"+r);\n return r;//zm dozwolona 0,1,2,3,4,5,6\n}\n}", "function submitCheck(){\n if(on===true){//Locks game if on switch is not engaged.\n let check=0;\n for(let j=0;j<playerArray.length;j++){\n if(!strictOn){//The rules if strict mode disengaged.\n if(sequence[j] === playerArray[j]){ check++; }//Keeps running total of success.\n else{\n i=0;\n check=0;\n playerArray=[];\n center.style.background = 'red';//Mild red to signify a mistake.\n setTimeout(()=>{ center.style.background = '#ededcc'; }, 1000);\n setTimeout(()=>{ active(sequence[i]) }, 2000);\n }\n }else{//The rules if strict mode engaged.\n if(sequence[j] === playerArray[j]){ check++; }\n else{\n center.style.background = '#440000';//Angry red to signify complete failure.\n setTimeout(()=>{ center.style.background = '#ededcc'; }, 1000);\n//Intentionally turn game off to up the stakes:\n setTimeout(()=>{ pulse(); onOff(); }, 1000);\n }\n }\n }\n//Checks running total to determine if sequence completed:\n if(check === sequence.length){\n i=0;\n playerArray=[];\n startGame();\n }\n }\n}", "function generatePassword() {\n var passLength = prompt(\"Enter Desired Password Length. Min 8 Characters and 128 Max.\");\n\n // Verify that password length meets requirements and creates an array that is the same length as the user input.\n if (passLength >= 8 && passLength <= 128) {\n var newPasswordLength = parseInt(passLength);\n console.log(newPasswordLength)\n //var newPasswordLength = passLength;\n //console.log(newPasswordLength);\n var confirmUppercase = confirm(\"Have Password Contain Uppercase Letters?\");\n var confirmLowercase = confirm(\"Have Password Contain Lowercase Letters?\");\n var confirmNumbers = confirm(\"Have Password Contain Numbers?\");\n var confirmSpecial = confirm(\"Have Password Contain Special Characters?\");\n\n var newPasswordLength;\n if (confirmUppercase && confirmLowercase && confirmNumbers && confirmSpecial) {\n // var all = uppercase + lowercase + number + special;\n var all = uppercase.concat(lowercase, number, special);\n console.log(all)\n var password = '';\n for (var index = 0; index < newPasswordLength; index++) {\n var character = Math.floor(Math.random() * all.length);\n password += all[(character, character + 1)];\n }\n document.getElementById(\"password\").innerHTML = password;\n }\n\n // 2.) only uppercase, lowercase, & numbers are selected\n else if (confirmUppercase && confirmLowercase && confirmNumbers) {\n var all = uppercase.concat(lowercase, number);\n var password = '';\n for (var index = 0; index < newPasswordLength; index++) {\n var character = Math.floor(Math.random() * all.length);\n password += all[(character, character + 1)];\n }\n document.getElementById(\"password\").innerHTML = password;\n }\n\n // 3.) only uppercase & lowercase are selected\n else if (confirmUppercase && confirmLowercase) {\n var all = uppercase.concat(lowercase);\n var password = '';\n for (var index = 0; index < newPasswordLength; index++) {\n var character = Math.floor(Math.random() * all.length);\n password += all[(character, character + 1)];\n }\n document.getElementById(\"password\").innerHTML = password;\n }\n\n\n\n // 4.) only uppercase is selected\n else if (confirmUppercase) {\n var all = uppercase;\n var password = '';\n for (var index = 0; index < newPasswordLength; index++) {\n var character = Math.floor(Math.random() * all.length);\n password += all[(character, character + 1)];\n }\n document.getElementById(\"password\").innerHTML = password;\n }\n\n\n // 5.) only lowercase is selected\n else if (confirmLowercase) {\n var all = lowercase;\n var password = '';\n for (var index = 0; index < newPasswordLength; index++) {\n var character = Math.floor(Math.random() * all.length);\n password += all[(character, character + 1)];\n }\n document.getElementById(\"password\").innerHTML = password;\n }\n\n\n // 6.) only numbers are selected\n else if (confirmNumbers) {\n var all = number;\n var password = '';\n for (var index = 0; index < newPasswordLength; index++) {\n var character = Math.floor(Math.random() * all.length);\n password += all[(character, character + 1)];\n }\n document.getElementById(\"password\").innerHTML = password;\n }\n\n\n // 7.) only symbols are selected\n else if (confirmSpecial) {\n var all = special;\n var password = '';\n for (var index = 0; index < newPasswordLength; index++) {\n var character = Math.floor(Math.random() * all.length);\n password += all[(character, character + 1)];\n }\n document.getElementById(\"password\").innerHTML = password;\n }\n\n // 8.) only numbers & symbols are selected\n else if (confirmNumbers && confirmSpecial) {\n var all = number.concat(special);\n var password = '';\n for (var index = 0; index < newPasswordLength; index++) {\n var character = Math.floor(Math.random() * all.length);\n password += all[(character, character + 1)];\n }\n document.getElementById(\"password\").innerHTML = password;\n }\n\n\n // 9.) only lowercase & numbers are selected\n else if (confirmLowercase && confirmNumbers) {\n var all = lowercase.concat(number);\n var password = '';\n for (var index = 0; index < newPasswordLength; index++) {\n var character = Math.floor(Math.random() * all.length);\n password += all[(character, character + 1)];\n }\n document.getElementById(\"password\").innerHTML = password;\n }\n\n\n // 10.) only lowercase & numbers are selected\n else if (confirmLowercase && confirmSpecial) {\n var all = lowercase.concat(special);\n var password = '';\n for (var index = 0; index < newPasswordLength; index++) {\n var character = Math.floor(Math.random() * all.length);\n password += all[(character, character + 1)];\n }\n document.getElementById(\"password\").innerHTML = password;\n } else {\n alert(\"Please select at least one conditional choice from lower or uppercase letters, numbers, or special characters\");\n alert(\"Please enter a number between 8 and 128\");\n }\n function writePassword() {\n var password = generatePassword();\n var passwordText = document.querySelector(\"#password\");\n\n passwordText.value = password;\n }\n console.log(password);\n\n function copyClipboard() {\n var copyText = document.getElementById(\"password\");\n var text = copyText.textContent;\n if (text.length > 0) {\n copyText.select();\n copyText.setSelectionRange(0, 99999)\n document.execCommand(\"copy\");\n alert(\"Your password has been copied to clipboard.\");\n }\n }\n }\n}", "function getPasswordOptions() {\n \n \n var result = [];\n \n \n //Complete your function here...\n var passwordLength = prompt(\"How many characters would you like your password to contain?\");\n \n \n // Conditional statement to check if password length is a number. Prompts end if this evaluates false\n \n if(!isNaN(passwordLength));\n else\n {\n passwordLength = prompt(\"Please enter a number.\")\n }\n // Conditional statement to check if password length is at least 8 characters long. Prompts end if this evaluates false\n if(passwordLength >= 8);\n \n else\n {\n passwordLength = prompt(\"Please enter a number greater than or equals to 8.\")\n \n }\n \n \n // Conditional statement to check if password length is less than 128 characters long. Prompts end if this evaluates false\n \n if(passwordLength<=128);\n \n else\n {\n passwordLength = prompt(\"Please enter a number lessthan or equals to 128.\")\n \n }\n \n var numbers = confirm(\"Do you want numbers in your password?\");\n \n var lowerCases = confirm(\"Do you want lowercases in your password?\");\n \n var upperCases = confirm(\"Do you want uppercases in your password?\");\n \n var special = confirm(\"Do you want special characters in your password?\");\n \n // Conditional statement to check if user does not include any types of characters. Password generator ends if all four variables evaluate to false\n if(numbers == true || lowerCases == true || upperCases== true ||special == true );\n \n else\n {\n alert(\"You did not select any of the charector from the list!\")\n \n \n }\n // this is a minimum count for numbers, lowerCases, upperCases & specialCharacters\n var minimumCount = 0;\n \n \n // Empty minimums for numbers, lowerCases, upperCases & specialCharacters\n \n var minimumNumbers = \"\";\n var minimumLowerCases = \"\";\n var minimumUpperCases = \"\";\n var minimumSpecialCharacters = \"\";\n \n \n // Generator functions**\n \n // Variable to store boolean regarding the inclusion of numeric characters\n var functionArray = {\n getNumbers: function() {\n // return String.fromCharCode(Math.floor(Math.random() * 10 + 48));\n return numericCharacters[Math.floor(Math.random() * numericCharacters.length)];\n },\n // Variable to store boolean regarding the inclusion of lowercase characters\n \n \n getLowerCases: function() {\n //return String.fromCharCode(Math.floor(Math.random() * 26 + 97));\n return lowerCasedCharacters[Math.floor(Math.random() * lowerCasedCharacters.length)];\n },\n \n // Variable to store boolean regarding the inclusion of uppercase characters\n getUpperCases: function() {\n // return String.fromCharCode(Math.floor(Math.random() * 26 + 65));\n return upperCasedCharacters[Math.floor(Math.random() * upperCasedCharacters.length)];\n },\n \n // Variable to store boolean regarding the inclusion of special characters\n getSpecialCharacters: function() {\n return specialCharacters[Math.floor(Math.random() * specialCharacters.length)]\n }\n \n };\n \n // Checks to make sure user selected ok for all and uses empty minimums from above\n \n // empty string variable for the for loop below\n var randomPasswordGenerated = \"\";\n \n // loop getting random characters\n for (let i = 0; i < (parseInt(passwordLength) - minimumCount); i++) {\n \n \n if (numbers === true) {\n minimumNumbers = functionArray.getNumbers();\n minimumCount++;\n \n }\n \n if (lowerCases === true) {\n minimumLowerCases = functionArray.getLowerCases();\n minimumCount++;\n \n }\n \n if (upperCases === true) {\n minimumUpperCases = functionArray.getUpperCases();\n minimumCount++;\n \n }\n \n if (special === true) {\n minimumSpecialCharacters = functionArray.getSpecialCharacters();\n minimumCount++;\n \n }\n \n \n // to make sure characters are added to the password\n randomPasswordGenerated += minimumNumbers;\n randomPasswordGenerated += minimumLowerCases;\n randomPasswordGenerated += minimumUpperCases;\n randomPasswordGenerated += minimumSpecialCharacters;\n \n }\n return randomPasswordGenerated;\n \n }", "function createPass(lower, upper, special, number, length){\n \n //Letting it Equal a string//\n let createPass = \"\";\n\n //Determines how many types are checked off\n const typesCount = lower + upper + special + number;\n \n\n // Identfies which arrays are checked\n const typesArr = [{lower}, {upper}, {special}, {number}].filter(\n item => Object.values(item)[0]\n ); \n if (typesCount === 0) {return 'Please select the Paramaters'}\n \n for (i=0; i<length; i = i + typesCount) {\n typesArr.forEach(function (type) {\n const funcName= Object.keys(type)[0];\n \n createPass = createPass + randomFunc[funcName]();\n }\n ) \n \n }\n // Making the password the desired length//\n\n //***NEW STUFF***//\n \n //Slicing password from length//\n const finalPass = createPass.slice(0, length)\n //Turning it into and array\n const passArray = Array.from(finalPass)\n //Shuffling the Array\n const passInput = shuffle(passArray)\n //Turning it back into a string then placing it in element.\n const joinedPass = passInput.join('')\n\n return (\"Your new password is: \" + joinedPass)\n}", "function writePassword() {\n //reset arrays with each new password\n var passwordLength = 0\n let lowerPasswordSet = [];\n let upperPasswordSet = [];\n let numericPasswordSet = [];\n let specialPasswordSet = [];\n\n //ask user for password length\n //if # is not 8-128 will continue to prompt\n while (isNaN(passwordLength) || passwordLength < 8 || passwordLength > 128) {\n passwordLength = parseInt(prompt(\"How long do you want the length of the password? Enter a number 8 - 128 to continue\"));\n }\n\n //validation\n window.alert(\"Valid Character Length\");\n //comfirm criteria included \n var hasLowerCase = confirm(\"Would you like to include lowercase letters?\");\n var hasUpperCase = confirm(\"Would you like to include uppercase letters?\");\n var hasNumeric = confirm(\"Would you like to include numbers?\");\n var hasSpecialCharacters = confirm(\"Would you like to include special characters?\");\n\n var criteriaNum = ([hasLowerCase, hasUpperCase, hasNumeric, hasSpecialCharacters].filter(v => v).length);\n\n //var password = generatePassword() \n\n if (hasLowerCase) {\n while (lowerPasswordSet.length < parseInt(passwordLength) / criteriaNum) {\n const randomIndex = Math.floor(Math.random() * lowerCasedCharacters.length)\n const character = lowerCasedCharacters[randomIndex];\n lowerPasswordSet.push(character);\n }\n }\n\n if (hasUpperCase) {\n while (upperPasswordSet.length < parseInt(passwordLength) / criteriaNum) {\n const randomIndex = Math.floor(Math.random() * upperCasedCharacters.length)\n const character = upperCasedCharacters[randomIndex];\n upperPasswordSet.push(character);\n }\n }\n\n if (hasNumeric) {\n while (numericPasswordSet.length < parseInt(passwordLength) / criteriaNum) {\n const randomIndex = Math.floor(Math.random() * numericCharacters.length)\n const character = numericCharacters[randomIndex];\n numericPasswordSet.push(character);\n }\n }\n\n if (hasSpecialCharacters) {\n while (specialPasswordSet.length < parseInt(passwordLength) / criteriaNum) {\n const randomIndex = Math.floor(Math.random() * specialCharacters.length)\n const character = specialCharacters[randomIndex];\n specialPasswordSet.push(character);\n }\n }\n\n else {\n }\n window.alert(\"Accepted Character Criteria\");\n\n //merge arrays for each criteria\n const mergedArray = [...lowerPasswordSet, ...upperPasswordSet, ...numericPasswordSet, ...specialPasswordSet];\n\n const finalPassword = new Array(passwordLength);\n for (let i = 0; i < finalPassword.length; i++) {\n finalPassword[i] = mergedArray[i]\n }\n\n var passwordText = document.querySelector(\"#password\");\n\n //join values\n passwordText.value = finalPassword.join(\"\");\n}", "displayAnswer() {\n let allerginFound;\n do {\n allerginFound = false;\n // easy case\n this.foods.forEach((food) => {\n if (food.ingredients.length == 1 && food.allergins.length == 1) {\n this.recordAllergin(food.ingredients[0], food.allergins[0]);\n allerginFound = true;\n }\n });\n // only choice across two items\n if (allerginFound == false) {\n for (let loop1 = 0; loop1 < this.foods.length; loop1++) {\n let firstFood = this.foods[loop1];\n for (let loop2 = 0; loop2 < firstFood.allergins.length; loop2++) {\n let suspectAllergin = firstFood.allergins[loop2];\n let suspectIngredients = firstFood.ingredients.concat();\n for (let loop3 = loop1 + 1; loop3 < this.foods.length; loop3++) {\n let secondFood = this.foods[loop3];\n if (secondFood.allergins.includes(suspectAllergin)) {\n suspectIngredients = suspectIngredients.filter(value => secondFood.ingredients.includes(value));\n if (suspectIngredients.length == 1) {\n this.recordAllergin(suspectIngredients[0], suspectAllergin);\n allerginFound = true;\n }\n }\n if (allerginFound)\n break;\n }\n if (allerginFound)\n break;\n }\n if (allerginFound)\n break;\n }\n }\n } while (allerginFound == true);\n let allowedIngredients = new Array();\n this.foods.forEach((food) => {\n if (food.allergins.length == 0)\n allowedIngredients = allowedIngredients.concat(food.ingredients);\n });\n this.answerDisplay.innerText = \"Cleared ingredients appear \" + allowedIngredients.length + \" times\";\n this.allerginsDetermined.sort((a, b) => { return a < b ? -1 : 1; });\n this.answerDisplay.innerHTML += \"<br/><br/>Canonical dangerous ingredient list is: \";\n this.allerginsDetermined.forEach(value => this.answerDisplay.innerHTML += this.ingredientsWithAllergins.get(value) + \",\", this);\n this.answerDisplay.innerHTML += \" (don't forget to remove the trailing comma)\";\n }", "function writePassword() {\n var pwLength;\n\n function validateLength() {\n pwLength = prompt(\"Choose password length between 8 and 128 characters\");\n console.log(pwLength);\n if (pwLength < 8) {\n alert(\"Password length must be at least 8 characters\");\n validateLength();\n } if (pwLength > 128) {\n alert(\"Password length must be less than 128 characters\");\n validateLength();\n }\n }\n\n validateLength();\n var lowerPrompt = confirm(\"Do you want to include lower case letters?\");\n var upperPrompt = confirm(\"Do you want to include upper case letters?\");\n var numberPrompt = confirm(\"Do you want to include numbers?\");\n var specialPrompt = confirm(\"Do you want to include special characters?\");\n console.log(pwLength, lowerPrompt, upperPrompt, numberPrompt, specialPrompt)\n\n var empty = []\n if (lowerPrompt === true) {\n console.log(lowerCase);\n empty = empty.concat(lowerCase);\n\n }\n if (upperPrompt === true) {\n console.log(upperCase);\n empty = empty.concat(upperCase);\n }\n if (numberPrompt === true) {\n console.log(number);\n empty = empty.concat(number);\n }\n if (specialPrompt === true) {\n console.log(special);\n empty = empty.concat(special);\n }\n console.log(empty)\n\n // We have array empty with our permitted characters\n // We have number pwLength with our amount of characters we'll want\n var password = \"\"; \n\n for (let i = 0; i < pwLength; i++) {\n let randomIndex = Math.floor( Math.random () * empty.length );\n password = password + empty[randomIndex];\n }\n\n var passwordText = document.querySelector(\"#password\");\n passwordText.value = password; //sets the value of the password text box to be the generated password\n}", "function longPlaneteerCalls(words){\nfor(let i = 0 ; i < words.length; i++){\nif(words[i].length > 4){\nreturn true\n}\n}\nreturn false\n}", "function generatePassword (){\n\n // creates password variable and empty array for all the chosen characters\n var password = \"\";\n var characters = [];\n\n // user is prompted for the length of the password generated, giving us the variable for the password length\n var passwordLength = prompt(\"Please select how long you would like the password to be (Must be between 8 and 128 characters).\");\n\n // if statement varifying validity of user input, anything not a number will rerun the generator\n // given a valid input the user is asked for conditions for the password \n // null passwordLength makes sure user isn't forced to continue through generator, if wanting to cancel right away they can cancel the generator\n if (passwordLength === null) {\n return;\n // creates range for length\n } else if (passwordLength < 8 || passwordLength > 128) {\n alert(\"The password must be between 8 and 128 characters.\");\n return generatePassword();\n // validates if input is a number\n } else if (isNaN(passwordLength)) {\n alert(\"Please input a valid number.\");\n return generatePassword();\n // continues main function with valid input\n } else {\n var isNum = confirm(\"Click OK if you would you like to include numbers?\");\n var isLow = confirm(\"Click OK if you would you like to include lowercase letters?\");\n var isUp = confirm (\"Click OK if you would you like to use uppercase letters?\");\n var isSpecial = confirm(\"Click OK if you would you like to include special characters?\");\n };\n\n console.log(passwordLength);\n\n // user chooses what to include, if chosen, \"characters\" array concats each specified condition\n if (isNum === false && isUp === false && isUp === false && isSpecial === false ) {\n alert (\"You must choose at least one condition\");\n return generatePassword();\n }\n if (isNum === true) {\n characters = characters.concat(numbers);\n }\n if (isLow === true) {\n characters = characters.concat(lowerLetters);\n }\n if (isUp === true) {\n characters = characters.concat(upperLetters);\n }\n if (isSpecial === true) {\n characters = characters.concat(special);\n }\n\n console.log(characters);\n\n // for loop to randomly select characters from the chosen \"characters\" array the user created with their conditions\n // and creates a random \"password\" array that we display to the user\n for (var i=0; i<passwordLength; i++)\n password += characters[Math.floor(Math.random() * characters.length )];\n console.log(password);\n return password;\n \n}", "function getOptions () {\n // Create a variable to store the length of the password from the user input\n let length = parseInt(\n prompt('How many characters would you like in your password?')\n );\n\n \n\n// Create a conditional statement to check if password length is a number; If it evaluates as false, return an alert for the user to provide a number\nif (isNaN(length) === true) {\n alert('You must enter a number for the password length.');\n return;\n}\n\n// Create a conditional statement to check if the password length is at least 8 characters long; If it evaluates as false, return an alert for the user to enter a password length of at least 8 characters\nif (length < 8) {\n alert('The password length must be 8 or more characters.');\n return;\n}\n// Create a conditional statement to check if the password length is less than 128 characters long. If it evaluates as false, return an alert for the user to enter a password length of less than 128 characters long\n\nif (length > 128) {\n alert('The password must be no more than 128 characters.')\n return;\n}\n\n// Create a variable to store a boolean to include lowercase characters\nlet hasSpecialChars = confirm (\n 'Would you like to include SPECIAL characters? (If yes, click ok.)'\n);\n\nlet hasNumericChars = confirm (\n 'Would you like to include NUMERIC characters? (If yes, click ok.)'\n);\n\n// Create a variable to store a boolean to include lowercase characters\nlet hasLowercaseChars = confirm (\n 'Would you like to include LOWERCASE characters? (If yes, click ok.)'\n);\n\n// Create a variable to store a boolean to include uppercase characters\nlet hasUppercaseChars = confirm (\n 'Would you like to include UPPERCASE characters? (If yes, click ok.)'\n);\n\n// Create a conditional statement to check if the user does not include any types of characters. Alert the user that at least one character type must be selected\nif (\n hasSpecialChars === false &&\n hasNumericChars === false &&\n hasLowercaseChars === false &&\n hasUppercaseChars === false \n) {\n alert('You must select at least ONE character type to generate a password.')\n return;\n}\n\n\n// Create an object to store the user inputs\nlet userSelections = {\n length: length,\n hasSpecialChars: hasSpecialChars,\n hasNumericChars: hasNumericChars,\n hasLowercaseChars: hasLowercaseChars,\n hasUppercaseChars: hasUppercaseChars\n};\n\nreturn userSelections;\n\n}", "function longPlaneteerCalls(words) {\n for(let i = 0; i < words.length; i++){\n if (words[i].length > 4){\n return(true);\n }\n return (false);\n }\n}", "function writePassword() {\n \n promptLength = prompt(\"Please select a password length between 8 and 128 characters\");\n numLength = parseInt(promptLength);\n if (numLength >=8 && numLength <= 128) {\n //runconfirms if password length meets criteria, otherwise run else statement only\n var upperCase = confirm(\"Do you want uppercase letters?\");\n var lowerCase = confirm(\"Do you want lowercase letters?\");\n var nums = confirm(\"Do you want numbers?\");\n var speChar = confirm(\"Do you want special characters?\");\n\n //validate at least one password criteria was chosen; run alerts/confirms until one password criteria chosen\n while (upperCase !== true && lowerCase !== true && nums !== true && speChar!== true) {\n alert(\"Please select at least one password criteria from the following pop-up windows.\");\n upperCase = confirm(\"Do you want uppercase letters?\");\n lowerCase = confirm(\"Do you want lowercase letters?\");\n nums = confirm(\"Do you want numbers?\");\n speChar = confirm(\"Do you want special characters?\");\n };\n\n//Constructs array based on user choices\n if (upperCase) {\n charChoices = charChoices.concat(caps)\n } \n if (lowerCase) {\n charChoices = charChoices.concat(lows)\n }\n if (nums) {\n charChoices = charChoices.concat(ints)\n }\n if (speChar) {\n charChoices = charChoices.concat(chars)\n }\n\n for (var i = 0; i < numLength; i++){\n \n if (newPassWord.length === numLength){\n\n break;\n } \n generatePassword();\n \n };\n\n }\n \n \n function generatePassword () {\n \n //grab a random item from the charChoices array\n var randomChar = charChoices[Math.floor(Math.random() * charChoices.length)];\n // console.log(randomChar);\n\n //push random item into password array\n newPassWord.push(randomChar);\n // console.log(newPassWord.length);\n\n\n\n //changed source code from var password = generatePassword() to var password = newPassWord.join('').\n //concatinate items in new array into string & print to page\n var password = newPassWord.join('');\n var passwordText = document.querySelector(\"#password\");\n // console.log(password);\n passwordText.value = password;\n \n \n };\n \n //application does not yet validate final password to ensure at least one character from each array is present.\n //application does not yet re-set after password is generated so user can re-run it.\n}", "function validateTry(e) {\n var app = UiApp.getActiveApplication();\n\n /* Restauracao dos elementos de Callback */\n var ticket = e.parameter.ticket;\n var userTry = e.parameter.userTry;\n \n /* Abertura da planilha de controle de respostas */\n var answerSheet = SpreadsheetApp.openById(answerSSKey).getActiveSheet();\n \n /* Obtencao da posicao dos dados do usuario na planilha de controle de respostas */\n var currentUserPosition = getUserPosition(ticket, answerSheet);\n \n /* Obtencao da tentativa atual do usuario */\n var tryNumber = Number(answerSheet.getRange(currentUserPosition, 7).getDisplayValue());\n \n /* Registro da tentativa atual do usuario */\n answerSheet.getRange(currentUserPosition, 4 + tryNumber).setValue(userTry);\n \n /* Obtencao da passphrase atribuida ao usuario */\n var passphrase = answerSheet.getRange(currentUserPosition, 2).getDisplayValue();\n \n /* Obtencao do vetor passphrase */\n var passphraseVector = [];\n var word = [];\n for (var i = 0, j = 0, k = 0; i <= passphrase.length; i++) {\n if (passphrase[i] === ' ' || passphrase[i] == null) {\n word = word.join(\"\");\n passphraseVector[k++] = word;\n word = [];\n j = 0;\n }\n else {\n word[j++] = passphrase[i];\n }\n }\n \n /* Verificacao da passphrase atribuida ao usuario e chamada dos tratadores */\n var tryReport = [];\n if (verifyPassphrase(passphraseVector, userTry, tryReport) == false) {\n app = wrongTry(app, tryNumber, tryReport);\n answerSheet.getRange(currentUserPosition, 7).setValue(tryNumber+1);\n return app;\n }\n \n answerSheet.getRange(currentUserPosition, 7).setValue(tryNumber+1);\n app = correctTry(app);\n return app;\n}", "function checkForChanges(someArray) {\n let changeRequest = prompt(\"Do you wish to make changes? (y/n)\");\n if (changeRequest === 'y') {\n // Destination\n let answer = prompt(\"Do you wish to change \" + someArray[0] + \"? (y/n)\")\n if (answer === 'y') {\n someArray[0] = rndArrayElemSelector(destinationArray, destinationArray.length);\n }\n // Transportation\n answer = prompt(\"Do you wish to change \" + someArray[1] + \"? (y/n)\")\n if (answer === 'y') {\n someArray[1] = rndArrayElemSelector(transportationArray, transportationArray.length);\n }\n // Restaurant Dining\n answer = prompt(\"Do you wish to change \" + someArray[2] + \"? (y/n)\")\n if (answer === 'y') {\n someArray[2] = rndArrayElemSelector(restaurantArray, restaurantArray.length);\n }\n // Entertainment\n answer = prompt(\"Do you wish to change \" + someArray[3] + \"? (y/n)\")\n if (answer === 'y') {\n someArray[3] = rndArrayElemSelector(entertainmentArray, entertainmentArray.length);\n }\n return true;\n } else {\n console.log(\"\\nEnjoy your Trip!\");\n return false;\n }\n}", "function rebuild() {\n\t\tcalcWidth();\n\t\tcheck();\n\t}", "function allPrompts() {\n\n // create prompts for pw criteria & collecting their response in variable:\n \n pwLength = prompt(\"Please choose a password length from 8 - 128\");\n\n // ensures input is a number 8-128 & gives validLength a number\n var validLength = pwLength <= 128 && pwLength >= 8;\n\n\n // if statement that triggers all the prompts through the function below\n if (validLength) {\n //generatePassword();\n }\n\n else {\n alert(\"please follow instructions\");\n allPrompts();\n }\n\n var charPrompt = confirm(\"Do you want to use special characters?\");\n var numPrompt = confirm(\"Do you want to use number?\");\n var lcPrompt = confirm(\"Do you want to use lowercase letters?\");\n var clPrompt = confirm(\"Do you want to use capital letters?\");\n if (charPrompt) {\n pwArr = pwArr.concat(specChar);\n }\n if (numPrompt) {\n pwArr = pwArr.concat(passNumbers);\n }\n if (lcPrompt) {\n pwArr = pwArr.concat(smallLetters);\n }\n if (clPrompt) {\n pwArr = pwArr.concat(capLetters);\n }\n console.log(pwArr);\n userSelect = pwArr.join(\"\");\n return userSelect\n}", "checkSolution() {\n if (this.state.solvedRoots.length === this.state.wordRoots.length) {\n const solution = this.fillIn(null, true)\n this.setState({ answerParts: solution });\n setTimeout(() => this.props.nextQuestion(this.state.autohintOn), 1500);\n } else {\n this.setState({choices: this.randomChoices(this.state.answerParts, this.state.allRoots) }, this.autohint)\n }\n }", "chooseResults(matches){\r\n // Counter for number of files\r\n var z = 1;\r\n var limitArr = [];\r\n \r\n // Validate inputs\r\n function setLimit(end){\r\n limitArr = [\"n\", \"N\", \"p\", \"P\", \"x\", \"X\"];\r\n for(var i = 1; i < end + 1; i ++){\r\n limitArr.push(i);\r\n }\r\n return limitArr;\r\n }\r\n \r\n let start = 0, end = 5, dontExit = true;\r\n \r\n // Displaying the list of results onto the screen\r\n function displayFiles(filesToShow, matches){\r\n\r\n misc.output(\"<-- VIEW RESULTS -->\");\r\n for(var j = 0; j < filesToShow.length; j ++){\r\n let z = matches.indexOf(filesToShow[j]) + 1;\r\n console.log(`[${j + 1}]\\t${z}. ${filesToShow[j].title} (${filesToShow[j].cat}) (${filesToShow[j].user})`);\r\n }\r\n }\r\n do{\r\n // More than 5 matches so have to view through a few pages of quizzes\r\n if(matches.length > 5){\r\n let filesToShow = matches.slice(start, end);\r\n displayFiles(filesToShow, matches);\r\n setLimit(5);\r\n // Only 5 files so no need view through\r\n }else{\r\n displayFiles(matches, matches);\r\n setLimit(matches.length);\r\n }\r\n let instrucText = `\\nInput the number to choose the result. N for next, P for Previous and X to Exit\\n>> `;\r\n let instruc = read.question(instrucText, {limit: limitArr, limitMessage: \"Please input a valid command\"});\r\n \r\n // If instruc is a number\r\n if(instruc.match(/^[1-5]{1}$/)){\r\n let fileToLoad = matches[start + parseInt(instruc) - 1];\r\n \r\n this.findQuiz(fileToLoad);\r\n dontExit = false;\r\n // If instruc isn't a number (N, P or X)\r\n }else if(instruc.toUpperCase() == \"N\"){\r\n \r\n if((end + 5) > matches.length){\r\n misc.output(\"There are no more results after this\");\r\n if(matches.length > 5) start = matches.length - 5;\r\n else start = 0;\r\n end = matches.length;\r\n }\r\n else{\r\n start += 5;\r\n end += 5;\r\n }\r\n }else if(instruc.toUpperCase() == \"P\"){\r\n if((start - 5) < 0){\r\n misc.output(\"There are no more results before this\");\r\n start = 0;\r\n if(matches.length > 5) end = 5;\r\n else end = matches.length;\r\n }else{\r\n start -= 5;\r\n end -= 5;\r\n }\r\n }else if(instruc.toUpperCase() == \"X\"){\r\n dontExit = false;\r\n this.searchAQuiz();\r\n }\r\n }while(dontExit);\r\n }" ]
[ "0.58797383", "0.58797383", "0.58797383", "0.58797383", "0.5835287", "0.57971644", "0.577797", "0.57108396", "0.5707728", "0.5707728", "0.5707728", "0.5707728", "0.5707728", "0.5707728", "0.5685203", "0.5685203", "0.5685203", "0.5685203", "0.5676224", "0.55059826", "0.5442204", "0.5425866", "0.54166406", "0.54050195", "0.5336347", "0.531057", "0.52696854", "0.5265517", "0.5259748", "0.5242857", "0.5238097", "0.5213018", "0.51879", "0.5145387", "0.5139207", "0.50915474", "0.5091447", "0.50810194", "0.50609136", "0.5052369", "0.5043128", "0.5043008", "0.5041361", "0.5038063", "0.50271714", "0.5021873", "0.5021641", "0.5006428", "0.50009245", "0.49861485", "0.4980956", "0.49786267", "0.49752674", "0.49719998", "0.49700385", "0.49618027", "0.49615708", "0.49488539", "0.49430737", "0.49188337", "0.49131808", "0.4909574", "0.49068132", "0.49021643", "0.4898857", "0.48943228", "0.48887166", "0.48779282", "0.48724723", "0.4865506", "0.48646685", "0.48598605", "0.48574877", "0.48470157", "0.48451158", "0.48391894", "0.48305455", "0.4804477", "0.4787489", "0.47843498", "0.47829595", "0.47726572", "0.47722068", "0.47676933", "0.476393", "0.47621104", "0.476119", "0.47601485", "0.47578403", "0.47553182", "0.47542462", "0.47536874", "0.475345", "0.47533688", "0.47485963" ]
0.5730249
12
Hover to change label and labelLine
function onEmphasis() { text.ignore = text.hoverIgnore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function labelMouseOver(tag) {\n d3.selectAll('marker#' + tag)\n .select('path')\n .classed('hovered', true);\n\n d3.selectAll('.' + tag)\n .selectAll('path, text')\n .classed('hovered', true);\n }", "mouseover() {\n this.label.value = \"Reset\";\n this.label.innerHTML = \"Reset\";\n }", "mouseout() {\n this.label.value = \"Steps:\";\n this.label.innerHTML = \"Steps:\";\n }", "function HoverLabel(chart, options) {\n this.id = options.id\n this.chart = chart\n\n // HTML elements.\n this.circle = makeLabel(\"hover-circle\")\n this.valLabel = makeLabel(\"hover-label hover-value-label\")\n this.dateLabel = makeLabel(\"hover-label hover-date-label\", chart.tpadding)\n this.vLine = new HoverLine(chart)\n this.vLineBack = new HoverLine(chart)\n this.onResize()\n\n sail(this.chart.container)\n .append(this.dateLabel)\n .append(this.valLabel)\n .append(this.circle)\n\n this.isVisible = HIDE\n this.isValVisible = HIDE\n this.markerType = null // null or String (e.g. \"heat\")\n // requestAnimationFrame info.\n this.hasAnimReq = false\n this.animEv = null\n\n var _this = this\n d3.select(chart.canvas)\n .on(\"mousemove.label\", function() { _this.onMouseMove(d3.event) })\n d3.select(chart.container)\n .on(\"mouseout.label\", function() { _this.onMouseOut(d3.mouse(this), d3.event) })\n\n var _this = this\n this.chart.xInterval.on(\"hover:x\", this._onHoverX = function(x, ts) {\n _this.vLine.moveTo(x)\n _this.vLineBack.moveTo(x === null ? x : backLineDelta(chart, ts))\n })\n}", "function onEmphasis(){labelLine.ignore = labelLine.hoverIgnore;text.ignore = text.hoverIgnore;}", "function hover(event, pos, item) {\n if (item) {\n $(\"#label\").css(\"display\", \"block\");\n $(\"#label\").css(\"position\", \"absolute\");\n // Offset the label so it's not covered by the cursor\n $(\"#label\").css(\"left\", (item.pageX + 10) + \"px\");\n $(\"#label\").css(\"top\", (item.pageY - 20) + \"px\");\n $(\"#label\").text(item.datapoint[1]);\n }\n else {\n $(\"#label\").css(\"display\", \"none\");\n }\n}", "function addLabelToLine(lineData, label, className) {\n\tvar delay = (label == \"Weekly Average\") ? 0 : 1000;\n\tsvgLine.append(\"text\")\n\t \t\t.attr(\"class\", className)\n\t \t\t.attr(\"transform\", function(d, i) {\n\t \t\t\treturn \"translate(\" + xScale(lineData.length -1 + 15) + \",\"\n\t\t\t\t\t\t\t\t\t+ yScale(lineData[lineData.length-1]) + \")\";\n\t\t\t})\n\t\t\t.attr(\"x\", 6)\n\t \t\t.attr(\"dy\", \"0.3em\")\n\t \t\t.text(label)\n\t \t\t.attr(\"visibility\", \"hidden\")\n\t\t\t.transition()\n\t\t\t.delay(delay)\n\t \t\t.attr(\"visibility\", \"visible\");\n}", "function updateMouseHoverLine() {\r\n for (var i=0; i<lineSegments.length; ++i) {\r\n ls = lineSegments[i];\r\n //determine if cursor position is on or very near a line\r\n var TOLERANCE = CELL_SIZE/2;\r\n var mousePos = {x:mouseX,y:mouseY};\r\n var closestPoint = Geometry.getClosestPointOnLineSegment(ls.p1, ls.p2, mousePos, TOLERANCE)\r\n if (closestPoint != false) {\r\n ls.hover = true;\r\n if (debug && currentTool == \"select-line\" || currentTool == \"delete-line\") {\r\n //draw dot for p2\r\n ctx.beginPath();\r\n ctx.arc(closestPoint.x, closestPoint.y, 2, 0, Math.PI*2, true); \r\n ctx.closePath();\r\n ctx.fillStyle = \"purple\";\r\n ctx.fill();\r\n }\r\n } else {\r\n ls.hover = false;\r\n }\r\n }\r\n}", "function labelMouseEnter(linkData, direction) {\n var inverse = direction === 'from';\n\n d3.selectAll('marker#' + getMarkerId(linkData, inverse))\n .select('path')\n .classed('hovered', true);\n\n d3.selectAll('.' + getMarkerId(linkData, inverse))\n .selectAll('path, text')\n .classed('hovered', true);\n\n svg.selectAll('.label').sort(function(a, b) {\n // select the parent and sort the path's\n if (a.id === linkData.id && b.id !== linkData.id) {\n return 1; // a is hovered\n } else if (a.id !== linkData.id && b.id === linkData.id) {\n return -1; // b is hovered\n } else {\n // workaround to make sorting in chrome for these elements stable\n return a.id - b.id; // compare unique values\n }\n });\n }", "function addDriverLabels(vis, laps, cssClass, x, textAnchor) {\n\n return vis.selectAll('text.label.' + cssClass)\n .data(laps)\n .enter()\n .append('svg:text')\n .attr('class', 'label ' + cssClass)\n .attr('x', x)\n .attr('dy', '0.35em')\n .attr('text-anchor', textAnchor)\n .text(function(d) {\n\n\n var var4= [d.name,d.placing.slice(1, 6)];\n //var qna = var4.split(',');\n //var res = qna.join(\" <br> \");\n\n return var4[0] ;//+ var4[1];\n })\n .style('fill', function(d) {\n\n return SCALES.clr(d.placing[0]);\n })\n .on('mouseover', function(d) {\n\n highlight(vis, d.name);\n })\n .on('mouseout', function() {\n\n unhighlight(vis);\n });\n\n}", "function create_line_label(p, label, color){\n\t var pr=new Promise(function(ok, fail){\n\t\tvar le_tpl={\n\t\t \n\t\t ui_opts : {\n\t\t //render_name : false,\n\t\t\tlabel : true,\n\t\t\troot_classes : [\"inline\"],\n\t\t\tchild_classes : [\"panel panel-default btn-xs horizontal_margin inline\"]\n\t\t },\n\t\t elements : {\n\t\t\tenable : {\n\t\t\t name : label,\n\t\t\t type : \"bool\",\n\t\t\t value : true,\n\t\t\t ui_opts : {\n\t\t\t\ttype: \"edit\", label : true, root_classes : [\"inline\"],\n\t\t\t }\n\t\t\t\n\t\t\t},\n\t\t\tline_color : {\n\t\t\t type : \"color\",\n\t\t\t ui_opts : {\n\t\t\t\troot_classes : [\"inline\"],\n\t\t\t\ttype : 'edit',\n\t\t\t },\n\t\t\t value : color\n\t\t\t \n\t\t\t},\n\t\t }\n\t\t};\n\t\t\n\t\tcreate_widget(le_tpl, lines).then(function(le){\n\t\t \n\t\t lines.add_child(le,label);\n\t\t le.elements.enable.listen(\"change\", function () { vec.config_range();} );\n\t\t le.elements.line_color.listen(\"change\", function (c) {\n\t\t\tp.stroke=this.value; vec.config_range(false,false);\n\t\t });\n\t\t \n\t\t //le.elements.enable.trigger(\"change\");\n\t\t p.le=le;\n\t\t ok(le);\n\t\t}).catch(fail);\n\t });\n\n\t return pr;\n\t}", "function renderLabel(inputObject, inputLine) {\n\n var leadingLabelTag = \"<a class=\\\"mLabel\\\" data-toggle=\\\"tooltip\\\" data-placement=\\\"top\\\" title=\\\"Line Label\\\">\";\n var trailingTag = \"</a>\";\n\n if (inputObject.lineLabel) {\n inputLine = inputLine + leadingLabelTag + inputObject.lineLabel + trailingTag;\n }\n if (inputObject.lineLeadSpace) {\n inputLine = inputLine + inputObject.lineLeadSpace;\n }\n return inputLine;\n}", "function redrawLabels() {\n labels\n .transition()\n .duration(1500)\n .attr(\"x\", d => d.x)\n .attr(\"y\", d => d.y);\n\n links\n .transition()\n .duration(1500)\n .attr(\"x2\", d => d.x)\n .attr(\"y2\", d => d.y);\n }", "function lineMouseOver(l, i) {\n var major = getMajorAsClass(l[0].major);\n\n changeElementOpacityForDifferentMajors(\"vis2-line\", major, '.1');\n changeElementOpacityForDifferentMajors(\"vis2-dot\", major, '.1');\n\n // this makes the tooltip visible\n div.transition()\n .duration(50)\n .style(\"opacity\", .9);\n\n var string = \"Women majoring in <i>\" + l[0]['major'] + '</i>';\n\n // this sets the location and content of the tooltip to the point's location/coordinates\n div.html(string)\n .style(\"left\", (d3.event.pageX) + \"px\")\n .style(\"top\", (d3.event.pageY - 28) + \"px\");\n}", "function updateLabel() {\n\t\tlabelVal.text( slider._getLabelValCallback( brush.extent()[0] ) );\n\t\tlabelLabel.attr(\"transform\", \"translate(\" + (+sliderWidth + \n \t\t\t\t\t\t \t +labelVal[0][0].offsetWidth + \n \t\t\t\t\t\t \t +margin.labelSpace) + \n \t \",\" + sliderHeight/2 + \")\");\n\t}", "function showLabelsOnHover(transitive) {\n each(transitive.stops, function (k, stop) {\n if (!stop.svgGroup) return;\n stop.svgGroup.selectAll('.transitive-stop-circle')\n .on('mouseenter', function (data) {\n stop.svgGroup.select('#transitive-stop-label-' + data.stop.getId())\n .style('visibility', 'visible');\n })\n .on('mouseleave', function (data) {\n if (transitive.display.zoom.scale() < 0.75) {\n stop.svgGroup.select('#transitive-stop-label-' + data.stop.getId())\n .style('visibility', 'hidden');\n }\n });\n });\n}", "function setLabelLineStyle(targetEl, statesModels, defaultStyle) {\n\t var labelLine = targetEl.getTextGuideLine();\n\t var label = targetEl.getTextContent();\n\t\n\t if (!label) {\n\t // Not show label line if there is no label.\n\t if (labelLine) {\n\t targetEl.removeTextGuideLine();\n\t }\n\t\n\t return;\n\t }\n\t\n\t var normalModel = statesModels.normal;\n\t var showNormal = normalModel.get('show');\n\t var labelIgnoreNormal = label.ignore;\n\t\n\t for (var i = 0; i < DISPLAY_STATES.length; i++) {\n\t var stateName = DISPLAY_STATES[i];\n\t var stateModel = statesModels[stateName];\n\t var isNormal = stateName === 'normal';\n\t\n\t if (stateModel) {\n\t var stateShow = stateModel.get('show');\n\t var isLabelIgnored = isNormal ? labelIgnoreNormal : retrieve2(label.states[stateName] && label.states[stateName].ignore, labelIgnoreNormal);\n\t\n\t if (isLabelIgnored // Not show when label is not shown in this state.\n\t || !retrieve2(stateShow, showNormal) // Use normal state by default if not set.\n\t ) {\n\t var stateObj = isNormal ? labelLine : labelLine && labelLine.states.normal;\n\t\n\t if (stateObj) {\n\t stateObj.ignore = true;\n\t }\n\t\n\t continue;\n\t } // Create labelLine if not exists\n\t\n\t\n\t if (!labelLine) {\n\t labelLine = new Polyline();\n\t targetEl.setTextGuideLine(labelLine); // Reset state of normal because it's new created.\n\t // NOTE: NORMAL should always been the first!\n\t\n\t if (!isNormal && (labelIgnoreNormal || !showNormal)) {\n\t setLabelLineState(labelLine, true, 'normal', statesModels.normal);\n\t } // Use same state proxy.\n\t\n\t\n\t if (targetEl.stateProxy) {\n\t labelLine.stateProxy = targetEl.stateProxy;\n\t }\n\t }\n\t\n\t setLabelLineState(labelLine, false, stateName, stateModel);\n\t }\n\t }\n\t\n\t if (labelLine) {\n\t defaults(labelLine.style, defaultStyle); // Not fill.\n\t\n\t labelLine.style.fill = null;\n\t var showAbove = normalModel.get('showAbove');\n\t var labelLineConfig = targetEl.textGuideLineConfig = targetEl.textGuideLineConfig || {};\n\t labelLineConfig.showAbove = showAbove || false; // Custom the buildPath.\n\t\n\t labelLine.buildPath = buildLabelLinePath;\n\t }\n\t }", "function _labelHoverEnter() {\r\n\tvar menuItem = Utils.getObjForId(this);\t// this.view ;\r\n\tif( !menuItem || !menuItem.isSelectable() || !menuItem.isEnabled() ) return;\r\n\r\n\tmenuItem.fTopRowOuter.style.background = LookAndFeel.url(\"highlight.png\") + ' repeat';\r\n\tmenuItem.fTopRow.style.background = LookAndFeel.url(\"highlight_tr.png\") + ' no-repeat top right';\r\n\tmenuItem.fTopRowImage.style.display = \"block\";\r\n\r\n\tmenuItem.fBotRowOuter.style.background = LookAndFeel.url(\"highlight.png\") + ' repeat';\r\n\tmenuItem.fBotRow.style.background = LookAndFeel.url(\"highlight_br.png\") + ' no-repeat top right';\r\n\tmenuItem.fBotRowImage.style.display = \"block\";\r\n\r\n\tmenuItem.fMidRowOuter.style.background = LookAndFeel.url(\"highlight.png\") + ' repeat';\r\n\tmenuItem.fMidRow.style.background = LookAndFeel.url(\"highlight.png\") + ' repeat';\r\n\t// setting row content a must for IE\r\n\tif( menuItem.fMidRowContent.style )\r\n\t menuItem.fMidRowContent.style.background = LookAndFeel.url(\"highlight.png\") + ' repeat';\r\n\tmenuItem.fMidRowOuter.style.color = \"#EEEEEE\";\r\n\tif( menuItem.fSelectListener && menuItem.fSelectListener.onItemHover )\r\n\t menuItem.fSelectListener.onItemHover(menuItem, menuItem.fSelectListener);\r\n }", "function setLabel(props){\n //label content\n var labelAttribute = \"<h2>\" + props[expressed] +\n \"</h2>\";\n\n //create info label div\n var infolabel = d3.select(\"body\")\n .append(\"div\")\n .attr(\"class\", \"infolabel\")\n .attr(\"id\", props.name + \"_label\")\n .html(labelAttribute);\n\n var regionName = infolabel.append(\"div\")\n .attr(\"class\", \"labelname\")\n .html(props.name);\n}", "function highlightLabel(highlight) {\n d3.selectAll('.labels').transition().style('opacity', 0.2)\n .style('font-size', \"9.5px\").style('fill', '#B8CBED');\n\n highlight.forEach(function(d) {\n d3.selectAll('.lab-'+d).transition().style('opacity', 1)\n .style('font-size', \"13px\")\n .style('fill', '#5B6D8F')\n })\n }", "function logMouseEnter() {\n log('hover:scatterlegend', { numLabels })\n }", "function setLabel(props){\n //label content\n var labelAttribute = \"<h1>\" + props[expressed] +\n \"</h1>\" + expressed + \"</b>\";\n\n //create info label div\n var infolabel = d3.select(\"body\")\n .append(\"div\")\n .attr(\"class\", \"infolabel\")\n .attr(\"id\", props.adm1_code + \"_label\")\n .html(labelAttribute)\n\n var regionName = infolabel.append(\"div\")\n .attr(\"class\", \"labelname\")\n .html((props.NAME_1 + \" Region\").bold());\n }", "function moveLabel() {\n //Determine width of label\n var labelWidth = d3.select('.infolabel')\n //Use node() to get the first element in this selection\n .node()\n //Return an object containing the sie of the label\n .getBoundingClientRect()\n //Examine width to determine how much to shift the mouse over\n .width;\n\n //Use coordinates of mousemove event to set label coordinates with offsets from wherever event is\n var x1 = d3.event.pageX - labelWidth/2,\n y1 = d3.event.pageY - 55;\n //Select the infolabel currently mousing over\n d3.select(\".infolabel\")\n .style(\"left\", x1 + \"px\")\n .style(\"top\", y1 + \"px\");\n}", "function mouseoverTrainLine() {\n var lineID = d3.select(this).attr(\"id\");\n d3.select(this).attr(\"style\", \"cursor:pointer\");\n\n var circleID = lineID.replace(\"line\", \"circle\");\n var circle = d3.select(\"#\" + circleID);\n\n if ((popupOpen && circleID != currentCircleID) || editting)\n return;\n\n currentCircleID = circleID;\n currentCircle = circle;\n\n // currentCircle\n // .transition().duration(200)\n // .attr(\"style\", \"cursor:pointer\")\n // .attr(\"r\", 5);\n\n defineChangesFromLine(circleID);\n\n popupOpen = true;\n\n // updatePopupCircleSize(currentCircle);\n // updatePopupCircleContent();\n}", "function Label_MouseOver(event)\n{\n\t//block the event\n\tBrowser_BlockEvent(event);\n\t//get the html\n\tvar theHTML = Get_HTMLObject(Browser_GetEventSourceElement(event));\n\t//valid?\n\tif (theHTML)\n\t{\n\t\tif (theHTML.InterpreterObject.UltraGrid)\n\t\t{\n\t\t\t//ignore everything and just forward to ultragrid\n\t\t\tUltraGrid_OnMouseOverEvent(event);\n\t\t}\n\t\telse \n\t\t{\n\t\t\t//update creation point\n\t\t\tPopupMenu_UpdateCreationPoint(event);\n\t\t\t//trigger an event\n\t\t\tvar result = __SIMULATOR.ProcessEvent(new Event_Event(theHTML.InterpreterObject, __NEMESIS_EVENT_MOUSEOVER, theHTML.InterpreterObject.GetData()));\n\t\t\t//no match nor block?\n\t\t\tif (!result.Match && !result.Blocked)\n\t\t\t{\n\t\t\t\t//has html parent?\n\t\t\t\tif (theHTML.InterpreterObject.Parent && theHTML.InterpreterObject.Parent.HTML)\n\t\t\t\t{\n\t\t\t\t\t//switch on its class\n\t\t\t\t\tswitch (theHTML.InterpreterObject.Parent.DataObject.Class)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase __NEMESIS_CLASS_LABEL:\n\t\t\t\t\t\tcase __NEMESIS_CLASS_LINK:\n\t\t\t\t\t\tcase __NEMESIS_CLASS_UNKNOWN:\n\t\t\t\t\t\t\t//trigger on the parent\n\t\t\t\t\t\t\tBrowser_FireEvent(theHTML.InterpreterObject.Parent.HTML, __BROWSER_EVENT_MOUSEOVER);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\t\t\t\n\t\t}\n\t}\n}", "function drawHover(context, data, settings) {\n var size = settings.labelSize,\n font = settings.labelFont,\n weight = settings.labelWeight;\n context.font = \"\".concat(weight, \" \").concat(size, \"px \").concat(font); // Then we draw the label background\n\n context.beginPath();\n context.fillStyle = '#fff';\n context.shadowOffsetX = 0;\n context.shadowOffsetY = 0;\n context.shadowBlur = 8;\n context.shadowColor = '#000';\n var textWidth = context.measureText(data.label).width;\n var x = Math.round(data.x - size / 2 - 2),\n y = Math.round(data.y - size / 2 - 2),\n w = Math.round(textWidth + size / 2 + data.size + 9),\n h = Math.round(size + 4),\n e = Math.round(size / 2 + 2);\n context.moveTo(x, y + e);\n context.moveTo(x, y + e);\n context.arcTo(x, y, x + e, y, e);\n context.lineTo(x + w, y);\n context.lineTo(x + w, y + h);\n context.lineTo(x + e, y + h);\n context.arcTo(x, y + h, x, y + h - e, e);\n context.lineTo(x, y + e);\n context.closePath();\n context.fill();\n context.shadowOffsetX = 0;\n context.shadowOffsetY = 0;\n context.shadowBlur = 0; // Then we need to draw the node\n\n (0, _node.default)(context, data); // And finally we draw the label\n\n (0, _label.default)(context, data, settings);\n}", "function _mouse_over_handler(ev, d, i)\n {\n g.append('svg:text')\n .attr('id', \"t\" + parent_name + d.rssi + \"-\" + i)\n .attr('x', function(){ return xScale(d.time); })\n .attr('y', function(){ return yScale(d.rssi) - 8; })\n .attr('text-anchor', 'middle')\n .text(function(){ return `${d.rssi}(${date_scale_format(d.time)})`; });\n }", "function labelMouseLeave(linkData, direction) {\n var inverse = direction === 'from';\n d3.selectAll('marker#' + getMarkerId(linkData, inverse))\n .select('path')\n .classed('hovered', false);\n\n d3.selectAll('.' + getMarkerId(linkData, inverse))\n .selectAll('path, text')\n .classed('hovered', false);\n }", "function handleMouseOver (d,i){\n d3.select(this).attr('stroke', 'yellow');\n\n // Specify where to put label of text\n Svg.append(\"text\")\n .attr('id', \"t\" + i)\n .attr(\"x\", x(d.x) )\n .attr('y', y(d.y) )\n .text(d.id)\n .style('fill', 'white');\n }", "function showPreviewButtonLabel() {\n addClass(\"preview-button-label\",\" label-hover\");\n}", "handleLabelChange(event) {\n this.ruleLabel = event.detail;\n this.fireEventWithRule();\n }", "highlightLabel(label) {\n // set text to display according to mode\n // debugger\n let text;\n if (this.state.mode === EVALUATION) {\n text = label.student_answer || DEFAULT_EVALUATION_LABEL_MESSAGE;\n } else {\n text = label.text || DEFAULT_LABEL_MESSAGE;\n }\n // set style to label\n this.setLabelStyle(label, { text, worldReferenceSize: this._.meshDiameter,\n style: this._.highlightedLabelStyle });\n }", "function onEmphasis() {\n labelLine.ignore = labelLine.hoverIgnore;\n text.ignore = text.hoverIgnore;\n }", "function addTimeLineMark(instant){\n\t$(\".timeLineGradLabel\").eq(instant).addClass(\"withEvent\");\n}", "function mouseOverHandler2(d) {\n\t\tsetItsHover(!itsHover);\n\t\tsetToolTip({\n\t\t\tisShow: true,\n\t\t\tx: +d.target.attributes.cx.value,\n\t\t\ty: +d.target.attributes.cy.value,\n\t\t\tvalue: d.target.attributes.val.value,\n\t\t\tcolor: d.target.attributes.fill.value\n\t\t});\n\n\t\tsetRad(d.target.attributes.circleId.value);\n\n\t\tconsole.log('hover', d.target.attributes.circleId.value);\n\t}", "function onEmphasis() {\n\t labelLine.ignore = labelLine.hoverIgnore;\n\t text.ignore = text.hoverIgnore;\n\t }", "function setMouseOver (polyline, streetname) {\n polyline.on('mouseover', function (e) {\n let layer = e.target;\n layer.setStyle({ color: '#000', opacity: 1});\n layer.bindTooltip('<strong>Activate ' + streetname + '</strong>');\n });\n return;\n}", "function handleMouseOver(d, i) { // Add interactivity\n\n // Specify where to put label of text\n svg.append(\"text\")\n .attr(\"id\", \"t\" + d.date.getTime() + \"-\" + d.time + \"-\" + i)\n .attr(\"x\", function() { return x(d.date) + left; })\n .attr(\"y\", function() { return y(d.time) + top - 5; })\n .attr(\"font-size\", \"12px\")\n .text(function() {\n var month = d.date.getMonth() + 1;\n var day = d.date.getDate();\n var year = d.date.getFullYear();\n var toPrintDate = month + \"/\" + day + \"/\" + year;\n return d.name + \": \" + toPrintDate + \", \" + ticks(d.time); // Value of the text\n });\n }", "function setLabel(props){\n //label content\n var labelAttribute = \"<h1>\" + props[expressed] + \"%\" +\n \"</h1><b>\" + \"Percent \" + expressed + \"</b>\";\n\n //create info label div\n var infolabel = d3.select(\"body\")\n .append(\"div\")\n .attr(\"class\", \"infolabel\")\n .attr(\"id\", props.NAME_1 + \"_label\")\n .html(labelAttribute);\n\n var stateName = infolabel.append(\"div\")\n .attr(\"class\", \"labelname\")\n .html(props.NAME_1);\n}", "hover(x, y){\n var self = this;\n self.startX = x || self.startX;\n self.startY = y || self.startY;\n self.draw(self.selected ? self.line.keyboard.keySelectedHoverBorderColor : self.line.keyboard.keyHoverBorderColor, true);\n }", "function onEmphasis() {\n labelLine.ignore = labelLine.hoverIgnore;\n text.ignore = text.hoverIgnore;\n }", "function onEmphasis() {\n labelLine.ignore = labelLine.hoverIgnore;\n text.ignore = text.hoverIgnore;\n }", "function onEmphasis() {\n labelLine.ignore = labelLine.hoverIgnore;\n text.ignore = text.hoverIgnore;\n }", "function onEmphasis() {\n labelLine.ignore = labelLine.hoverIgnore;\n text.ignore = text.hoverIgnore;\n }", "function handleMouseOver(d, i) { // Add interactivity\n // Use D3 to select element, change color and size\n d3.select(this).attr(\"fill\", \"orange\");\n\n // Specify where to put label of text\n svg.append(\"text\").attr({\n id: \"t\" + d.x + \"-\" + d.y + \"-\" + i, // Create an id for text so we can select it later for removing on mouseout\n x: function() {\n return xScale(d.x) - 30;\n },\n y: function() {\n return yScale(d.y) - 15;\n }\n })\n}", "function handlePointHoverEnter (e) {\n var point = $(this).data(\"point\");\n point.style = pointStyleHover;\n point.redraw();\n }", "function handlePointHoverEnter (e) {\n var point = $(this).data(\"point\");\n point.style = pointStyleHover;\n point.redraw();\n }", "function labelChange(axis, clickedText) {\n // Switch the currently active to inactive.\n d3.selectAll(\".aText\")\n .filter(\".\" + axis)\n .filter(\".active\")\n .classed(\"active\", false)\n .classed(\"inactive\", true);\n\n // Switch the text just clicked to active.\n clickedText.classed(\"inactive\", false).classed(\"active\", true);\n }", "function setLabel(props){\r\n \r\n if (expressed == attrArray[0]){\r\n var label = REM_2012;\r\n } else if (expressed == attrArray[1]){\r\n var label = REM_2013;\r\n } else if (expressed == attrArray[2]){\r\n var label = REM_2014;\r\n } else if (expressed == attrArray[3]){\r\n var label = REM_2015;\r\n } else if (expressed == attrArray[4]){\r\n var label = REM_2016;\r\n };\r\n \r\n //label content\r\n var labelAttribute = \"<h1>\" + props[expressed] +\r\n \"</h1><br><b>\" + label + \"</b>\";\r\n\r\n //create info label div\r\n var infolabel = d3.select(\"body\")\r\n .append(\"div\")\r\n .attr(\"class\", \"infolabel\")\r\n .attr(\"id\", props.CODE + \"_label\")\r\n .html(labelAttribute);\r\n\r\n var regionName = infolabel.append(\"div\")\r\n .attr(\"class\", \"labelname\")\r\n .html(props.Name);\r\n}", "function node_mouseover(d) {\r\n if (drawing_line && d !== selected_node) {\r\n // highlight and select target node\r\n selected_target_node = d;\r\n }\r\n}", "function updateLabelLinePoints(target, labelLineModel) {\n\t if (!target) {\n\t return;\n\t }\n\t\n\t var labelLine = target.getTextGuideLine();\n\t var label = target.getTextContent(); // Needs to create text guide in each charts.\n\t\n\t if (!(label && labelLine)) {\n\t return;\n\t }\n\t\n\t var labelGuideConfig = target.textGuideLineConfig || {};\n\t var points = [[0, 0], [0, 0], [0, 0]];\n\t var searchSpace = labelGuideConfig.candidates || DEFAULT_SEARCH_SPACE;\n\t var labelRect = label.getBoundingRect().clone();\n\t labelRect.applyTransform(label.getComputedTransform());\n\t var minDist = Infinity;\n\t var anchorPoint = labelGuideConfig.anchor;\n\t var targetTransform = target.getComputedTransform();\n\t var targetInversedTransform = targetTransform && invert([], targetTransform);\n\t var len = labelLineModel.get('length2') || 0;\n\t\n\t if (anchorPoint) {\n\t pt2.copy(anchorPoint);\n\t }\n\t\n\t for (var i = 0; i < searchSpace.length; i++) {\n\t var candidate = searchSpace[i];\n\t getCandidateAnchor(candidate, 0, labelRect, pt0, dir);\n\t Point.scaleAndAdd(pt1, pt0, dir, len); // Transform to target coord space.\n\t\n\t pt1.transform(targetInversedTransform); // Note: getBoundingRect will ensure the `path` being created.\n\t\n\t var boundingRect = target.getBoundingRect();\n\t var dist = anchorPoint ? anchorPoint.distance(pt1) : target instanceof Path ? nearestPointOnPath(pt1, target.path, pt2) : nearestPointOnRect(pt1, boundingRect, pt2); // TODO pt2 is in the path\n\t\n\t if (dist < minDist) {\n\t minDist = dist; // Transform back to global space.\n\t\n\t pt1.transform(targetTransform);\n\t pt2.transform(targetTransform);\n\t pt2.toArray(points[0]);\n\t pt1.toArray(points[1]);\n\t pt0.toArray(points[2]);\n\t }\n\t }\n\t\n\t limitTurnAngle(points, labelLineModel.get('minTurnAngle'));\n\t labelLine.setShape({\n\t points: points\n\t });\n\t } // Temporal variable for the limitTurnAngle function", "function mouseOverFunction() {\n // Highlight circle\n var circle = d3.select(this);\n circle\n .style(\"fill\", \"#B3F29D\")\n .style(\"fill-opacity\", 0.5);\n\n // Find links which have circle as source and highlight\n svg.selectAll(\".link\")\n .filter(function(d) {\n return d.source.name === circle[0][0].__data__.name;\n })\n .style(\"stroke\", \"#B3F29D\");\n\n // Find labels which have circle as source and highlight\n svg.selectAll(\".label\")\n .filter(function(d) {\n if (d.name) {\n return d.name === circle[0][0].__data__.name;\n } else {\n return d.source.name === circle[0][0].__data__.name;\n }\n })\n .style(\"fill\",\"#B3F29D\");\n }", "function labelUpdate(axis, clickText) {\n // Switch old choice off\n d3.selectAll(\".aText\")\n .filter(\".\" + axis)\n .filter(\".active\")\n .classed(\"active\", false)\n .classed(\"inactive\", true);\n \n // switches new choice on\n clickText.classed(\"inactive\", false).classed(\"active\", true);\n }", "function labelChange(axis, clickedText) {\n // Switch the currently active to inactive.\n d3\n .selectAll(\".aText\")\n .filter(\".\" + axis)\n .filter(\".active\")\n .classed(\"active\", false)\n .classed(\"inactive\", true);\n\n // Switch the text just clicked to active.\n clickedText.classed(\"inactive\", false).classed(\"active\", true);\n }", "function setLabelLineStyle(targetEl, statesModels, defaultStyle) {\n var labelLine = targetEl.getTextGuideLine();\n var label = targetEl.getTextContent();\n\n if (!label) {\n // Not show label line if there is no label.\n if (labelLine) {\n targetEl.removeTextGuideLine();\n }\n\n return;\n }\n\n var normalModel = statesModels.normal;\n var showNormal = normalModel.get('show');\n var labelIgnoreNormal = label.ignore;\n\n for (var i = 0; i < _util_states__WEBPACK_IMPORTED_MODULE_9__[/* DISPLAY_STATES */ \"a\"].length; i++) {\n var stateName = _util_states__WEBPACK_IMPORTED_MODULE_9__[/* DISPLAY_STATES */ \"a\"][i];\n var stateModel = statesModels[stateName];\n var isNormal = stateName === 'normal';\n\n if (stateModel) {\n var stateShow = stateModel.get('show');\n var isLabelIgnored = isNormal ? labelIgnoreNormal : Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_6__[/* retrieve2 */ \"P\"])(label.states[stateName] && label.states[stateName].ignore, labelIgnoreNormal);\n\n if (isLabelIgnored // Not show when label is not shown in this state.\n || !Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_6__[/* retrieve2 */ \"P\"])(stateShow, showNormal) // Use normal state by default if not set.\n ) {\n var stateObj = isNormal ? labelLine : labelLine && labelLine.states.normal;\n\n if (stateObj) {\n stateObj.ignore = true;\n }\n\n continue;\n } // Create labelLine if not exists\n\n\n if (!labelLine) {\n labelLine = new _util_graphic__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"]();\n targetEl.setTextGuideLine(labelLine); // Reset state of normal because it's new created.\n // NOTE: NORMAL should always been the first!\n\n if (!isNormal && (labelIgnoreNormal || !showNormal)) {\n setLabelLineState(labelLine, true, 'normal', statesModels.normal);\n } // Use same state proxy.\n\n\n if (targetEl.stateProxy) {\n labelLine.stateProxy = targetEl.stateProxy;\n }\n }\n\n setLabelLineState(labelLine, false, stateName, stateModel);\n }\n }\n\n if (labelLine) {\n Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_6__[/* defaults */ \"j\"])(labelLine.style, defaultStyle); // Not fill.\n\n labelLine.style.fill = null;\n var showAbove = normalModel.get('showAbove');\n var labelLineConfig = targetEl.textGuideLineConfig = targetEl.textGuideLineConfig || {};\n labelLineConfig.showAbove = showAbove || false; // Custom the buildPath.\n\n labelLine.buildPath = buildLabelLinePath;\n }\n}", "function moveLabel(){\n //use coordinates of mousemove event to set label coordinates\n //var x = d3.event.clientX + 10,\n // y = d3.event.clientY - 75;\n //get width of label\n var labelWidth = d3.select(\".infolabel\")\n .node()\n .getBoundingClientRect()\n .width;\n\n //use coordinates of mousemove event to set label coordinates\n var x1 = d3.event.clientX + 10,\n y1 = d3.event.clientY - 75,\n x2 = d3.event.clientX - labelWidth - 10,\n y2 = d3.event.clientY + 25;\n\n //horizontal label coordinate, testing for overflow\n var x = d3.event.clientX > window.innerWidth - labelWidth - 20 ? x2 : x1;\n //vertical label coordinate, testing for overflow\n var y = d3.event.clientY < 75 ? y2 : y1;\n\n d3.select(\".infolabel\")\n .style(\"left\", x + \"px\")\n .style(\"top\", y + \"px\");\n}", "function mouseOver(d) {\n setLabel(d);\n\n // Only highlight segments that are ancestors of the current segment.\n paths\n .interrupt()\n .style('opacity', 0.5)\n .filter(function(node) {\n // check if d.account starts with node.account\n return (d.account.lastIndexOf(node.account, 0) === 0);\n })\n .style('opacity', 1);\n }", "function createPacLabel (x,y,l) {\n\n var g = viz.selection().selectAll(\".vz-halo-arc-plot\").append(\"g\")\n .attr(\"class\",\"vz-halo-label\")\n .style(\"pointer-events\",\"none\")\n .style(\"opacity\",0);\n\n g.append(\"text\")\n .style(\"font-size\",\"11px\")\n .style(\"fill\",theme.skin().labelColor)\n .style(\"fill-opacity\",.75)\n .attr(\"text-anchor\",\"middle\")\n .attr(\"x\", x)\n .attr(\"y\", y)\n .text(l);\n\n var rect = g[0][0].getBoundingClientRect();\n g.insert(\"rect\",\"text\")\n .style(\"shape-rendering\",\"auto\")\n .style(\"fill\",theme.skin().labelFill)\n .style(\"opacity\",.45)\n .attr(\"width\",rect.width+12)\n .attr(\"height\",rect.height+12)\n .attr(\"rx\",3)\n .attr(\"ry\",3)\n .attr(\"x\", x-5 - rect.width/2)\n .attr(\"y\", y - rect.height-3);\n\n g.transition().style(\"opacity\",1);\n}", "function createPacLabel (x,y,l) {\n\n var g = viz.selection().selectAll(\".vz-halo-arc-plot\").append(\"g\")\n .attr(\"class\",\"vz-halo-label\")\n .style(\"pointer-events\",\"none\")\n .style(\"opacity\",0);\n\n g.append(\"text\")\n .style(\"font-size\",\"11px\")\n .style(\"fill\",theme.skin().labelColor)\n .style(\"fill-opacity\",.75)\n .attr(\"text-anchor\",\"middle\")\n .attr(\"x\", x)\n .attr(\"y\", y)\n .text(l);\n\n var rect = g[0][0].getBoundingClientRect();\n g.insert(\"rect\",\"text\")\n .style(\"shape-rendering\",\"auto\")\n .style(\"fill\",theme.skin().labelFill)\n .style(\"opacity\",.45)\n .attr(\"width\",rect.width+12)\n .attr(\"height\",rect.height+12)\n .attr(\"rx\",3)\n .attr(\"ry\",3)\n .attr(\"x\", x-5 - rect.width/2)\n .attr(\"y\", y - rect.height-3);\n\n g.transition().style(\"opacity\",1);\n}", "addLabeltoEdge(label, font_family, font_size, color) {\n // Add the Label to the DOM\n const rotatelabel = this.getRotateLabel()\n d3.select(this.html.node().parentElement).append(\"text\")\n .attr(\"x\", (this.x2+this.x1)/ 2 - 5*label.length)\n .attr(\"y\", (this.y2+this.y1 )/2 - this.stroke_width)\n .attr(\"transform\", rotatelabel)\n .style(\"font-family\", font_family)\n .style(\"font-size\", font_size)\n .attr(\"fill\", color)\n .text(label)\n }", "function moveLabel(){\n //get width of label\n var labelWidth = d3.select(\".infolabel\")\n .node()\n .getBoundingClientRect()\n .width;\n\n //use coordinates of mousemove event to set label coordinates\n var x1 = d3.event.clientX + 10,\n y1 = d3.event.clientY - 75,\n x2 = d3.event.clientX - labelWidth - 10,\n y2 = d3.event.clientY + 25;\n\n //horizontal label coordinate, testing for overflow\n var x = d3.event.clientX > window.innerWidth - labelWidth - 20 ? x2 : x1; \n //vertical label coordinate, testing for overflow\n var y = d3.event.clientY < 75 ? y2 : y1; \n\n d3.select(\".infolabel\")\n .style({\n \"left\": x + \"px\",\n \"top\": y + \"px\"\n });\n }", "function setLabel(props){\n\t\t//Label content\n\t\tlet labelAttribute = \"<h1>\" + props[expressed] +\n\t\t\t\"</h1><b>\" + expressed + \"</b>\";\n\n\t\t//Create info label div\n\t\tlet infoLabel = d3.select(\"body\")\n\t\t\t.append(\"div\")\n\t\t\t.attr(\"class\", \"infoLabel\")\n\t\t\t.attr(\"id\", props.name + \"_label\")\n\t\t\t.html(labelAttribute);\n\n\t\tlet countryName = infoLabel.append(\"div\")\n\t\t\t.attr(\"class\", \"labelname\")\n\t\t\t.html(props.name);\n\t}", "function circleMouseIn() {\n var text = d3.select(this.parentNode).moveToFront().select('.MST.label')\n .transition()\n .duration(250)\n .style('font-size', '18px')\n }", "function _mouse_over_handler(ev, d)\n {\n const i = g.selectAll(\".dot\").nodes().indexOf(this);\n g.append('svg:text')\n .attr('id', \"t\" + d + \"-\" + i)\n .attr('x', function() { return xScale(i); })\n .attr('y', function() { return yScale(d) -5; })\n .text(function(){ return d; });\n }", "function draw_label(step, c, label) {\n\tvar t = svg.append('text')\n\t\t.attr('x', get_text_x(step))\n\t\t.attr('y', get_text_y(c))\n\t\t.attr('font-family', 'sans-serif')\n\t\t.attr('font-size', '18')\n\t\t.attr('id', 't'+get_text_x(step)+'label'+get_text_y(c))\n\t\t.attr('text-anchor', 'middle');\n\tfor (i in label.split('\\n')) {\n\t\tt.append('tspan')\n\t\t\t.text(label.split('\\n')[i])\n\t\t\t.attr('dy', i * 20)\n\t\t\t.attr('x', get_text_x(step));\n\t}\n}", "configureLabels() {\n this.label\n .attr(\"class\", \"lgv-label\")\n .attr(\"data-node-label\", d => this.extractLabel(d))\n .attr(\"data-node-depth\", d => d.depth)\n .attr(\"data-node-children\", d => d.children ? true : false)\n .attr(\"x\", d => d.x)\n .attr(\"y\", d => d.children ? (d.y - (d.r * 0.9)) : d.y)\n .text(d => this.extractLabel(d));\n }", "updateEdgeLabel() {\n const rotatelabel = this.getRotateLabel()\n d3.select(this.html.node().parentElement).select(\"text\")\n .attr(\"x\", (this.x2+this.x1)/ 2 - 5*this.label.length)\n .attr(\"y\", (this.y2+this.y1 - this.stroke_width)/2)\n .attr(\"transform\", rotatelabel)\n }", "function moveLabel()\n {\n //get width of label\n var labelWidth = d3.select(\".infolabel\")\n .node()\n .getBoundingClientRect()\n .width;\n\n //use coordinates of mousemove event to set label coordinates\n var x1 = d3.event.clientX + 10,\n y1 = d3.event.clientY - 75,\n x2 = d3.event.clientX - labelWidth - 10,\n y2 = d3.event.clientY + 25;\n\n //horizontal label coordinate, testing for overflow\n var x = d3.event.clientX > window.innerWidth - labelWidth - 20 ? x2 : x1; \n\n //vertical label coordinate, testing for overflow\n var y = d3.event.clientY < 75 ? y2 : y1; \n\n d3.select(\".infolabel\")\n .style\n ({\n \"left\": x + \"px\",\n \"top\": y + \"px\"\n });\n }", "function moveLabel(){\n\n var labelWidth = d3.select(\".infolabel\")\n .node()\n .getBoundingClientRect()\n .width;\n //use coordinates of mousemove event to set label coordinates\n var x1 = d3.event.clientX + 10,\n y1 = d3.event.clientY + 800,\n x2 = d3.event.clientX - labelWidth - 10,\n y2 = d3.event.clientY + 500;\n\n //horizontal label coordinate, testing for overflow\n var x = d3.event.clientX > window.innerWidth - labelWidth - 20 ? x2 : x1;\n //vertical label coordinate, testing for overflow\n var y = d3.event.clientY < 75 ? y2 : y1;\n\n\n d3.select(\".infolabel\")\n .style(\"left\", x + \"px\")\n .style(\"top\", y + \"px\");\n\n }", "function moveLabel(){\n //get width of label\n var labelWidth = d3.select(\".infolabel\")\n .node()\n .getBoundingClientRect()\n .width;\n \n //use coordinates of mousemove event to set label coordinates\n var x1 = d3.event.clientX + 10,\n y1 = d3.event.clientY - 75,\n x2 = d3.event.clientX - labelWidth - 10,\n y2 = d3.event.clientY + 25;\n \n //horizontal label coordinate, testing for overflow\n var x = d3.event.clientX > window.innerWidth - labelWidth - 20 ? x2 : x1; \n //vertical label coordinate, testing for overflow\n var y = d3.event.clientY < 75 ? y2 : y1; \n\n d3.select(\".infolabel\")\n .style(\"left\", x + \"px\")\n .style(\"top\", y + \"px\");\n }", "function mouseover() {\n tooltip\n .style('opacity', 1)\n d3.select(this)\n .style('stroke', 'black')\n .style('opacity', 1)\n }", "function updateLabelLinePoints(target, labelLineModel) {\n if (!target) {\n return;\n }\n\n var labelLine = target.getTextGuideLine();\n var label = target.getTextContent(); // Needs to create text guide in each charts.\n\n if (!(label && labelLine)) {\n return;\n }\n\n var labelGuideConfig = target.textGuideLineConfig || {};\n var points = [[0, 0], [0, 0], [0, 0]];\n var searchSpace = labelGuideConfig.candidates || DEFAULT_SEARCH_SPACE;\n var labelRect = label.getBoundingRect().clone();\n labelRect.applyTransform(label.getComputedTransform());\n var minDist = Infinity;\n var anchorPoint = labelGuideConfig.anchor;\n var targetTransform = target.getComputedTransform();\n var targetInversedTransform = targetTransform && Object(zrender_lib_core_matrix__WEBPACK_IMPORTED_MODULE_7__[/* invert */ \"e\"])([], targetTransform);\n var len = labelLineModel.get('length2') || 0;\n\n if (anchorPoint) {\n pt2.copy(anchorPoint);\n }\n\n for (var i = 0; i < searchSpace.length; i++) {\n var candidate = searchSpace[i];\n getCandidateAnchor(candidate, 0, labelRect, pt0, dir);\n _util_graphic__WEBPACK_IMPORTED_MODULE_0__[/* default */ \"a\"].scaleAndAdd(pt1, pt0, dir, len); // Transform to target coord space.\n\n pt1.transform(targetInversedTransform); // Note: getBoundingRect will ensure the `path` being created.\n\n var boundingRect = target.getBoundingRect();\n var dist = anchorPoint ? anchorPoint.distance(pt1) : target instanceof _util_graphic__WEBPACK_IMPORTED_MODULE_1__[/* default */ \"b\"] ? nearestPointOnPath(pt1, target.path, pt2) : nearestPointOnRect(pt1, boundingRect, pt2); // TODO pt2 is in the path\n\n if (dist < minDist) {\n minDist = dist; // Transform back to global space.\n\n pt1.transform(targetTransform);\n pt2.transform(targetTransform);\n pt2.toArray(points[0]);\n pt1.toArray(points[1]);\n pt0.toArray(points[2]);\n }\n }\n\n limitTurnAngle(points, labelLineModel.get('minTurnAngle'));\n labelLine.setShape({\n points: points\n });\n} // Temporal variable for the limitTurnAngle function", "function moveLabel(){\n //get width of label\n var labelWidth = d3.select(\".infolabel\")\n .node()\n .getBoundingClientRect()\n .width;\n //use coordinates of mousemove event to set label coordinates\n var x1 = event.clientX + 10,\n y1 = event.clientY - 75,\n x2 = event.clientX - labelWidth - 10,\n y2 = event.clientY + 25;\n\n //horizontal label coordinate, testing for overflow\n var x = event.clientX > window.innerWidth - labelWidth - 20 ? x2 : x1; \n //vertical label coordinate, testing for overflow\n var y = event.clientY < 75 ? y2 : y1; \n\n d3.select(\".infolabel\")\n .style(\"left\", x + \"px\")\n .style(\"top\", y + \"px\");\n}", "draw_label(){\n this.svg.append('rect')\n .attr(\"class\", \"timeline-label\")\n .attr(\"x\", \"0\")\n .attr(\"y\", \"0\")\n .attr(\"width\", `${this.WIDTH}`)\n .attr(\"height\", `${this.label_height}`)\n\n this.svg.append('text')\n .attr('x', `${this.X0 - 30}`)\n .attr('text-anchor', 'left')\n .attr('y', this.label_height - 15)\n .attr('class','roll_label')\n .text(`Mean per year of ${this.y_attribute.toLowerCase()} of ${this.type} in ${this.unit}`)\n\n }", "function highlight(props){\n //change stroke\n var selected = d3.selectAll(\".\" + props.iso_a3) //or iso_a3?\n .style(\"stroke\", \"blue\")\n .style(\"stroke-width\", \"2\");\n //console.log(\"hello\", \".\" + props.iso_a3);\n // add dynamic label on mouseover\n setLabel(props);\n}", "function moveLabel(){\r\n //get width of label\r\n var labelWidth = d3.select(\".infolabel\")\r\n .node()\r\n .getBoundingClientRect()\r\n .width;\r\n \r\n //use coordinates of mousemove event to set label coordinates\r\n var x1 = d3.event.clientX + 10,\r\n y1 = d3.event.clientY - 75,\r\n x2 = d3.event.clientX - labelWidth - 10,\r\n y2 = d3.event.clientY + 25;\r\n\r\n //horizontal label coordinate, testing for overflow\r\n var x = d3.event.clientX > window.innerWidth - labelWidth - 20 ? x2 : x1; \r\n //vertical label coordinate, testing for overflow\r\n var y = d3.event.clientY < 75 ? y2 : y1; \r\n\r\n d3.select(\".infolabel\")\r\n .style(\"left\", x + \"px\")\r\n .style(\"top\", y + \"px\");\r\n}", "function borderMouseover(d, i, paths) {\n var element = svgElement.getElementById(this.id);\n element.classList.add(\"hovered\");\n updateTooltip(d);\n}", "function mouseOverPath(path) {\n\n if (network.selectedNode === null) return;\n if (network.selectedNode !== path.edge.i &&\n network.selectedNode !== path.edge.j) return;\n\n var label = path.edge.i.name + \" - \" + \n path.edge.j.name + \"<br>\";\n for (var i = 0; i < path.edge.weights.length; i++) {\n label = label + network.matrixLabels[i] + \": \" \n + path.edge.weights[i] + \"<br>\";\n }\n\n edgeLabelElem\n .html(label)\n .style(\"left\", (d3.event.pageX) + \"px\")\n .style(\"top\", (d3.event.pageY) + \"px\")\n .transition()\n .duration(50)\n .style(\"opacity\", 0.7)\n }", "function addlbl() {\n}", "editLabel(id, event) {\n event.preventDefault();\n if (event.target.label.value !== \"\") {\n const link = this.props.node.ports.bottom.links[id];\n link.addLabel(event.target.label.value);\n this.props.node.display = false;\n this.props.node.selectedLinkId = null;\n this.props.node.app.forceUpdate();\n }\n }", "function handleInstructionsMouseOver(event) {\n if (event.type == \"mouseover\") {\n createjs.Tween.get(questionMark, { loop: false }).to({ scaleX: 1.0625, scaleY: 1.0625 }, 50);\n }\n else {\n createjs.Tween.get(questionMark, { loop: false }).to({ scaleX: 1.0, scaleY: 1.0 }, 50);\n }\n }", "function tooltipOn(x, y, d) {\n // change tooltip information depending on which line is hovered over\n var percent_change;\n var information = \"\";\n for(var n=0; n < state.keys.length-1; n++){\n percent_change = state.keys[n]+\": \" + formatPercent((d[state.keys[n+1]] - d[state.keys[n]])/d[state.keys[n]]);\n // append information for multiple years\n information += (percent_change + \"<br/>\");\n }\n\n tooltip.transition()\n .duration(100)\n .style(\"opacity\", 0.9);\n tooltip.html(d.country + \"<br/>\" + information)\n .style(\"left\", (x+5) + \"px\")\n .style(\"top\", (y-45) + \"px\");\n }", "function circleMouseOut() {\n var text = d3.select(this.parentNode).moveToBack().select('.MST.label')\n .transition()\n .duration(250)\n .style('font-size', '10px')\n }", "static getLabelDragAndDrop (plot, showTrendLine = false) {\n const dragStart = () => plot.svg.selectAll('.link').remove()\n\n const dragMove = function () {\n d3.select(this)\n .attr('x', d3.event.x)\n .attr('y', d3.event.y)\n\n // Save the new location of text so links can be redrawn\n const id = d3.select(this).attr('id')\n const label = _.find(plot.data.lab, l => l.id === Number(id))\n if ($(this).prop('tagName') === 'image') {\n label.x = d3.event.x + (label.width / 2)\n label.y = d3.event.y + label.height\n } else {\n label.x = d3.event.x\n label.y = d3.event.y\n }\n }\n\n const dragEnd = function () {\n // If label is dragged out of viewBox, remove the lab and add to legend\n const id = Number(d3.select(this).attr('id'))\n const lab = _.find(plot.data.lab, l => l.id === id)\n const anc = _.find(plot.data.pts, a => a.id === id)\n\n const notBubblePlot = !Utils.isArrOfNums(this.Z)\n const labIsNotLogo = lab.url !== ''\n const labOnTopOfPoint = (lab.x - (lab.width / 2) < anc.x && anc.x < lab.x + (lab.width / 2)) && (lab.y > anc.y && anc.y > lab.y - lab.height)\n\n if (plot.data.isOutsideViewBox(lab) && !showTrendLine) {\n // Element dragged off plot\n plot.data.addElemToLegend(id)\n plot.state.pushLegendPt(id)\n plot.resetPlotAfterDragEvent()\n } else if (labIsNotLogo && notBubblePlot && labOnTopOfPoint) {\n // For logo labels and not bubbles, if the logo is directly on top of the point, do not draw point\n plot.svg.select(`#anc-${id}`).attr('fill-opacity', 0)\n } else {\n plot.state.pushUserPositionedLabel(id, lab.x, lab.y, plot.vb)\n plot.svg.select(`#anc-${id}`).attr('fill-opacity', d => d.fillOpacity)\n if (!showTrendLine) {\n plot.drawLinks()\n }\n }\n }\n\n return d3.behavior.drag()\n .origin(function () {\n return {\n x: d3.select(this).attr('x'),\n y: d3.select(this).attr('y'),\n }\n })\n .on('dragstart', dragStart)\n .on('drag', dragMove)\n .on('dragend', dragEnd)\n }", "function handleMouseOver(d, i) { // Add interactivity\n // Use D3 to select element, change color and size\n d3.select(this).style(\"fill\",\"orange\")\n .attr(\"r\", radius*2)\n\n // Specify where to put label of text\n svg.append(\"text\").attr(\"id\", \"t1337\")\n .attr(\"x\", x(d.x) - 30)\n .attr(\"y\", y(d.y) - 15)\n .text([d.x, d.y]);\n}", "function node_mouseover(d) {\n d3.select(this).transition()\n .duration(150)\n .attr(\"r\", 10);\n //update the target node\n if (drawing_line && d !== selected_node) {\n // highlight and select target node\n selected_target_node = d;\n }\n}", "function setSmallLabelsProperties(label, text){\n label.style.backgroundColor = \"#4EA1E6\";\n label.style.overflow = \"hidden\";\n label.style.position = \"relative\";\n label.style.top = \"0px\";\n label.style.fontSize = \"9px\";\n label.appendChild(document.createTextNode(translateFromTypeToName(text)));\n label.style.textAlign = \"left\";\n}", "function handleMouseOver(d, i) {\n\nd3.selectAll(\".visualCircle\").transition()\n .duration(200)\n .style(\"opacity\", 1)\n .attr(\"fill\", \"rgba(255,255,255,0.8)\")\n .attr(\"r\", circleRBefore);\n\nd3.selectAll(\".visualLabel\").transition()\n .duration(200)\n .style(\"opacity\", 0);\n\nd3.select(\"#circle_\" + this.id).transition()\n .duration(200)\n .style(\"opacity\", 0.2)\n .attr(\"fill\", \"rgba(255,255,255,0)\")\n .attr(\"r\", circleRAfter);\n\nd3.select(\"#text_\" + this.id).transition()\n .duration(200)\n .style(\"opacity\", 1);\n \ndocument.getElementById(\"type680target\").innerHTML = \"<h4>\" + itemTitles[this.id] + \"</h4><hr class='light' style='margin-left: 0px;'><p class='text-justify'>\" + itemDescriptions[this.id] + \"</p>\";\n\n}", "function handleMouseover(e){\n\t\t\t\tlet code = e.currentTarget.getAttribute(\"data-code\"),\n\t\t\t\t\tcountryData = csvData.filter(c => c.Country_Code === code)[0],\n\t\t\t\t\tcountryName = countryData.Name,\n countryIndex = countryData[dataset];\n\t\t\t\toutput.innerHTML = countryName + \"<br /> \" + countryIndex;\n\t\t\t\tdocument.querySelectorAll(`[data-code=${code}]`).forEach(el => {\n\t\t\t\t\tel.setAttribute(\"stroke\", \"red\");\n\t\t\t\t\tel.setAttribute(\"stroke-width\", 2.75);\n\t\t\t\t});\n\t\t\t}", "function toolTipLine(){\n var mouseG = svgTs.append(\"g\")\n .attr(\"class\", \"mouse-over-effects\");\n\n mouseG.append(\"path\") // this is the black vertical line to follow mouse\n .attr(\"class\", \"mouse-line\")\n .style(\"stroke\", \"black\")\n .style(\"stroke-width\", \"1px\")\n .style(\"opacity\", \"0\");\n\n var lines = document.getElementsByClassName('line');\n\n var mousePerLine = mouseG.selectAll('.mouse-per-line')\n .data(dataset)\n .enter()\n .append(\"g\")\n .attr(\"class\", \"mouse-per-line\");\n\n // mousePerLine.append(\"circle\")\n // .attr(\"r\", 4)\n // .style(\"stroke\", function(d) {\n // return getColorTs(d.key);\n // })\n // .style(\"fill\", \"none\")\n // .style(\"stroke-width\", \"1px\")\n // .style(\"opacity\", \"0\");\n //\n // mousePerLine.append(\"text\")\n // .attr(\"transform\", \"translate(10,3)\")\n\n mouseG.append('svg:rect') // append a rect to catch mouse movements on canvas\n .attr('width', tsWidth) // can't catch mouse events on a g element\n .attr('height', tsHeight)\n .attr('fill', 'none')\n .attr('pointer-events', 'all')\n .on('mouseout', function() { // on mouse out hide line, circles and text\n d3.select(\".mouse-line\")\n .style(\"opacity\", \"0\");\n // d3.selectAll(\".mouse-per-line circle\")\n // .style(\"opacity\", \"0\");\n // d3.selectAll(\".mouse-per-line text\")\n // .style(\"opacity\", \"0\");\n })\n .on('mouseover', function() { // on mouse in show line, circles and text\n d3.select(\".mouse-line\")\n .style(\"opacity\", \"1\");\n // d3.selectAll(\".mouse-per-line circle\")\n // .style(\"opacity\", \"1\");\n // d3.selectAll(\".mouse-per-line text\")\n // .style(\"opacity\", \"1\");\n })\n .on('mousemove', function() { // mouse moving over canvas\n var mouse = d3.mouse(this);\n d3.select(\".mouse-line\")\n .attr(\"d\", function() {\n var d = \"M\" + mouse[0] + \",\" + tsHeight;\n d += \" \" + mouse[0] + \",\" + 0;\n return d;\n });\n\n\n d3.selectAll(\".mouse-per-line\")\n .attr(\"transform\", function(d, i) {\n console.log(tsWidth/mouse[0])\n\n var xDate = tsxScale.invert(mouse[0]);\n var x1 = d3.timeMinute.every(5).round(xDate),\n\n idx = bisectDate(d.values, x1);\ndebugger\n var beginning = 0,\n end = lines[i].getTotalLength(),\n target = null;\n\n while (true){\n target = Math.floor((beginning + end) / 2);\n pos = lines[i].getPointAtLength(target);\n if ((target === end || target === beginning) && pos.x !== mouse[0]) {\n break;\n }\n if (pos.x > mouse[0]) end = target;\n else if (pos.x < mouse[0]) beginning = target;\n else break; //position found\n }\n\n d3.select(this).select('text')\n .text(tsyScale.invert(pos.y))\n .attr(\"font-size\",\"11px\");\n // \"#dot-\" + d.key + \"-\" + idx.style(\"fill\",\"white\").style(\"opacity\",1);\n let xPos = d3.select(\"#dot-\" + d.key + \"-\" + idx).attr(\"cx\");\n\n let yPos = d3.select(\"#dot-\" + d.key + \"-\" + idx).attr(\"cy\");\ndebugger\n d3.select(\"#carIcon-\" + d.key )\n .transition()\n .duration(2000)\n // .attrTween(\"transform\", translateAlong(tsRoutes.node()))\n .ease(d3.easeLinear)\n .attr(\"x\", xPos-5)\n .attr(\"y\", yPos-5);\n // .attr(\"transform\", (d,i)=> {\n // return \"translate(\" + [projectionTs([d.values[i].Long,d.values[i].Lat])[0]-5,projectionTs([d.values[i].Long,d.values[i].Lat])[1]-5] + \")\";\n // });\n// debugger\n return \"translate(\" + mouse[0] + \",\" + pos.y +\")\";\n });\n });\n }", "function mouseover( d ) {\n\t\t// set x and y location\n\t\tvar dotX = iepX( parseYear( d.data.year ) ),\n\t\t\tdotY = iepY( d.data.value ),\n\t\t\tdotBtu = d3.format( \".2f\" )( d.data.value ),\n\t\t\tdotYear = d.data.year,\n\t\t\tdotSource = d.data.name;\n\n\t\t// console.log( \"SOURCE:\", dotSource, index( lineColors( dotSource ) ) );\n\n\t\t// add content to tooltip text element\n\t\t/*tooltip.select( \".tooltip_text\" )\n\t\t\t.style( \"border-color\", lineColors( [ dotSource ] - 2 ) );*/\n\n\t\ttooltip.select( \".tooltip_title\" )\n\t\t\t.text( dotYear )\n\t\t/*.style( \"color\", lineColors( dotSource ) )*/\n\t\t;\n\n\t\ttooltip.select( \".tooltip_data\" )\n\t\t\t.text( dotBtu + \" \" + yUnitsAbbr );\n\n\t\ttooltip.select( \".tooltip_marker\" )\n\t\t\t.text( \"▼\" )\n\t\t/*.style( \"color\", lineColors( dotSource ) )*/\n\t\t;\n\n\t\t//Change position of tooltip and text of tooltip\n\t\ttooltip.style( \"visibility\", \"visible\" )\n\t\t\t.style( \"left\", dotX + ( chart_margins.left / 2 ) + \"px\" )\n\t\t\t.style( \"top\", dotY + ( chart_margins.top / 2 ) + \"px\" );\n\t} //mouseover", "tooltipShow(event, d, vis) {\n moveTimeSliderLayerDown();\n vis.lineData = vis.linegroups.get(d.properties.name);\n if (vis.lineData === undefined) {\n d3.select('#mapchart-tooltip').style('display', 'none');\n return null;\n }\n\n // Update Domain\n vis.xScale.domain(vis.years);\n vis.yScale.domain(vis.consumption.get(d.properties.name));\n\n // Redraw Lines\n let tooltip = d3.select('#mapchart-tooltip');\n let tooltipLines = tooltip\n .style('display', 'block')\n .selectAll('.line')\n .data(vis.lineData)\n .join('path');\n tooltipLines\n .attr('class', 'line')\n .attr('fill', 'none')\n .attr('stroke', d => vis.colorScale(d[0]))\n .attr('stroke-width', 3)\n .attr('d', d => d3.line()\n .defined(d => d.Consumption != 0)\n .x(d => vis.xScale(d.Year))\n .y(d => vis.yScale(d.Consumption))\n (d[1]));\n\n // Update Piechart\n let data = Array.from(vis.groups.get(d.properties.name).values());\n let tooltipPie = tooltip\n .selectAll('.test')\n .data(d3.sum(data) == 0 ? pie(0) : pie(data))\n .join('path');\n tooltipPie\n .attr('transform', 'translate(25, 20)')\n .attr('class', 'test')\n .attr('fill', d => {\n return vis.indexColorScale(d.index);\n })\n .attr('d', arc)\n .attr('stroke', 'black')\n .attr('stroke-width', '1px');\n\n // Update Line Chart Title, Call Axes\n vis.tooltipTitle.text(`Energy Consumption of\n ${d.properties.name} between ${vis.years[0]} - ${vis.years[1]} `);\n vis.xAxisG.call(vis.xAxis);\n vis.yAxisG.call(vis.yAxis);\n }", "function drawSlopeLabel() {\n let label = document.getElementById(\"slopeLabel\");\n // display when points are pinned. do not redraw if nothing changed\n if (pt1.pinned && pt2.pinned && m != label.innerHTML.substring(2)\n && isFinite(m) && m != 0 && !riseRunDisplay) {\n // find midpoint of line, put the label there\n midpoint = calcMidpoint(pt1.x, pt1.y, pt2.x, pt2.y);\n screenPos = planeCoordToAbsScreenPosition(midpoint.x, midpoint.y, 0, 0);\n label.hidden = false;\n label.innerHTML = \"m=\" + m.toFixed(2);\n label.style.left = screenPos.x + \"px\";\n label.style.top = screenPos.y + \"px\";\n }\n}", "function mouseLeave(d) {\n paths\n .transition()\n .duration(1000)\n .style('opacity', 1)\n setLabel(root);\n }", "function setLabel(props){\n //label content\n if (isNaN(props[expressed])) {\n var displayNumber = \"No Medals\";\n } else {\n var displayNumber = (props[expressed]).toFixed(2);\n };\n if (isNaN(props.tot_tot)){\n var totalMedals = 0\n } else {\n var totalMedals = props.tot_tot.toLocaleString()\n }\n var whichOlympics = dropdownText(expressed);\n var whichGDP = String(\"gdp_\" + whichOlympics[0].slice(-4));\n if (isNaN(props[whichGDP])) {\n var GDPval = 'Undefined';\n } else {\n var GDPval = \"$\" + props[whichGDP].toLocaleString();\n }\n\n var labelAttribute = \"<h1>\" + displayNumber +\n \"</h1><b>\" + whichOlympics[0] + \" \" + whichOlympics[1] + \"</b>\";\n \n var olympicHistoryText = \"<p><b>\" + props.ADMIN + \"<br><p>PP GDP:</b> \" + GDPval + \"<br>\" + \"<b>All-time Combined Medal Total:</b> \" + totalMedals;\n\n //create info label div\n var infolabel = d3.select(\"body\")\n .append(\"div\")\n .attr(\"class\", \"infolabel\")\n .attr(\"id\", props.geoid + \"_label\")\n .html(labelAttribute);\n \n var olympicHistory = infolabel.append(\"div\")\n .attr(\"class\", \"labelname\")\n .html(olympicHistoryText);\n }", "function setLabel(props){\n var formatName = props.name.replace(new RegExp(\"_\", \"g\"),\" \");\n \n var labelAttribute = \"<h1>\" + props[expressed] + \"</h1><b>\" + formatName + \"</b>\";\n \n var infoLabel = d3.select(\"body\")\n .append(\"div\")\n .attr(\"class\", \"infoLabel\")\n .attr(\"id\", props.name + \"_label\")\n .html(labelAttribute);\n }", "function drawLine(startPoint, endPoint, label) {\n // first I am going to create the links\n var newElement = document.createElementNS(\"http://www.w3.org/2000/svg\", 'path');\n var pathString = \"M \" + startPoint[0].toString() + \", \" + startPoint[1].toString() + \" L \" + endPoint[0].toString() + \", \" + endPoint[1].toString();\n\n newElement.setAttribute(\"d\", pathString);\n newElement.style.stroke = \"black\";\n newElement.style.strokeWidth = \"2\";\n newElement.setAttribute(\"id\", label);\n svg.appendChild(newElement);\n // Now to add the text labels\n var textElement = document.createElementNS(\"http://www.w3.org/2000/svg\", 'text');\n textElement.setAttribute(\"dy\", \"-12\");\n textElement.setAttribute(\"style\", \"text-anchor:middle; font-size:23px;\");\n var textPath = document.createElementNS(\"http://www.w3.org/2000/svg\", 'textPath');\n textPath.setAttributeNS(\"http://www.w3.org/1999/xlink\", \"xlink:href\", \"#\"+label);\n textPath.setAttribute(\"startOffset\", \"50%\");\n textPath.textContent = label;\n textElement.appendChild(textPath);\n svg.appendChild(textElement);\n}", "function updateLabels() {\n label = label.data(data.topics, function(d) {\n return d.name;\n });\n\n label.exit().remove();\n\n var labelEnter = label.enter().append(\"a\")\n .attr(\"class\", \"g-label\")\n .attr(\"id\", function(d) {\n return encodeURIComponent(d.name);\n })\n .call(force.drag)\n .call(linkTopic);\n\n labelEnter.append(\"div\")\n .attr(\"class\", \"g-name\")\n .text(function(d) {\n return d.name;\n });\n\n labelEnter.append(\"div\")\n .attr(\"class\", \"g-value\");\n\n label\n .style(\"font-size\", function(d) {\n return Math.max(8, r(d.count) / 2.2) + \"px\";\n })\n .style(\"width\", function(d) {\n return r(d.count) * 2.5 + \"px\";\n });\n\n // Create a temporary span to compute the true text width.\n label.append(\"span\")\n .text(function(d) {\n return d.name;\n })\n .each(function(d) { d.dx = Math.max(2.5 * r(d.count), this.getBoundingClientRect().width); })\n .remove();\n\n label\n .style(\"width\", function(d) {\n return d.dx + \"px\";\n })\n .select(\".g-value\")\n .text(function(d) {\n return d.count + (d.r > 60 ? \" mentions\" : \"\");\n });\n\n // Compute the height of labels when wrapped.\n label.each(function(d) { d.dy = this.getBoundingClientRect().height; });\n }", "getHoverLabel() {\n if (this._source && this._parent && this._parent._source) {\n return this._source.raw.path || this._source.raw.name;\n }\n let label = this.getLabel(false);\n const parent = this.getParent();\n if (parent) {\n const hover = parent.getHoverLabel();\n if (hover) {\n return `${hover}/${label}`;\n }\n }\n return label;\n }", "function mouseover(d) {\n\t\tchart.append(\"text\")\n\t\t\t.attr(\"id\", \"interactivity\")\n\t\t\t.attr(\"y\", y(d.value) - 15)\n\t\t\t.attr(\"x\", x(d.year) + 23)\n\t\t\t.style(\"text-anchor\", \"start\")\n\t\t\t.style(\"font\", \"10px sans-serif\")\n\t\t\t.text(d.value);\n\n\t\td3.select(this)\n\t\t\t.style(\"fill\", \"darkblue\");\n\t}", "addToLabel(label, font_family, font_size, color) {\n const rotatelabel = this.getRotateLabel()\n d3.select(this.html.node().parentElement).select(\"text\")\n .attr(\"x\", (this.x2+edge.x1)/ 2 - 5*label.length)\n .attr(\"y\", (this.y2+edge.y1 - this.stroke_width)/2)\n .attr(\"transform\", rotatelabel)\n .style(\"font-family\", font_family)\n .style(\"font-size\", font_size)\n .attr(\"fill\", color)\n .text(label)\n }" ]
[ "0.7160721", "0.6747871", "0.66706216", "0.6636008", "0.66344315", "0.6630238", "0.6559844", "0.6481869", "0.6460244", "0.6438774", "0.642701", "0.63942605", "0.6377741", "0.635967", "0.6343922", "0.6314459", "0.62718886", "0.6250335", "0.6237528", "0.62035286", "0.61927736", "0.619123", "0.61129797", "0.6080437", "0.60725737", "0.6065927", "0.60626304", "0.6060482", "0.6056636", "0.6052508", "0.59863377", "0.5978632", "0.5972859", "0.5969844", "0.5968441", "0.5944243", "0.5942723", "0.5942059", "0.5941809", "0.5935404", "0.59149617", "0.59149617", "0.59149617", "0.59149617", "0.59040785", "0.588771", "0.588771", "0.58863395", "0.5880389", "0.587809", "0.5871766", "0.5870366", "0.58654654", "0.58613527", "0.5860246", "0.58601457", "0.5857163", "0.58555996", "0.58555996", "0.58547515", "0.58486724", "0.58439654", "0.5839731", "0.5834744", "0.5830573", "0.58259374", "0.58220595", "0.5819452", "0.58149004", "0.58111143", "0.58089197", "0.5792363", "0.57900316", "0.5782643", "0.5776036", "0.57753557", "0.57707274", "0.57637864", "0.5759155", "0.5757252", "0.5748803", "0.57481784", "0.5746439", "0.5743943", "0.5736613", "0.573334", "0.57307565", "0.57278097", "0.5724868", "0.57218057", "0.5720244", "0.57139486", "0.5709509", "0.57061356", "0.5705917", "0.5705205", "0.57024384", "0.56970197", "0.5695441", "0.5695036", "0.56924695" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function dataToCoordSize(dataSize, dataItem) { // dataItem is necessary in log axis. dataItem = dataItem || [0, 0]; return zrUtil.map(['x', 'y'], function (dim, dimIdx) { var axis = this.getAxis(dim); var val = dataItem[dimIdx]; var halfSize = dataSize[dimIdx] / 2; return axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize)); }, this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "started () {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "function SigV4Utils() { }", "started() {\r\n\r\n\t}", "static get NOT_READY () {return 0}", "initialize() {\n\n }", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "function getImplementation( cb ){\n\n }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "heartbeat () {\n }", "static final private internal function m106() {}", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "get WSAPlayerX64() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }" ]
[ "0.53504926", "0.4896905", "0.48514667", "0.48116106", "0.4775166", "0.4743932", "0.47342455", "0.47035336", "0.4694186", "0.4694186", "0.46744877", "0.46453032", "0.46394095", "0.4629355", "0.46211302", "0.45832416", "0.45812932", "0.45752546", "0.45698234", "0.45625272", "0.4557475", "0.4549714", "0.45494938", "0.4545794", "0.45383474", "0.4523037", "0.45180768", "0.45005357", "0.4496748", "0.4486438", "0.447462", "0.44716924", "0.4468301", "0.44601226", "0.4456266", "0.4455926", "0.44557476", "0.4445067", "0.44378054", "0.44258687", "0.44258553", "0.4424118", "0.44097725", "0.4406038", "0.4404498", "0.4404498", "0.4404498", "0.43926418", "0.43781474", "0.43708664", "0.43657827", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43545496", "0.43526813", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.43514904", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4350625", "0.4349645", "0.43450522", "0.43440443", "0.43390423", "0.43347356", "0.43347356", "0.43332103", "0.43318707" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. / Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function _default(ecModel) { ecModel.eachSeriesByType('map', function (seriesModel) { var colorList = seriesModel.get('color'); var itemStyleModel = seriesModel.getModel('itemStyle'); var areaColor = itemStyleModel.get('areaColor'); var color = itemStyleModel.get('color') || colorList[seriesModel.seriesIndex % colorList.length]; seriesModel.getData().setVisual({ 'areaColor': areaColor, 'color': color }); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onChildAppStart () {\n\n }", "get Android() {}", "onMessageStart() { }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "createStream () {\n\n }", "onComponentMount() {\n\n }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "didMount() {\n }", "requestContainerInfo() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "function bridgeAndroidAndIOS() {\r\n\r\n //ios\r\n function setupWebViewJavascriptBridge(callback) {\r\n if (window.WebViewJavascriptBridge) {\r\n return callback(WebViewJavascriptBridge);\r\n }\r\n if (window.WVJBCallbacks) {\r\n return window.WVJBCallbacks.push(callback);\r\n }\r\n window.WVJBCallbacks = [callback];\r\n var WVJBIframe = document.createElement('iframe');\r\n WVJBIframe.style.display = 'none';\r\n WVJBIframe.src = 'https://__bridge_loaded__';\r\n document.documentElement.appendChild(WVJBIframe);\r\n setTimeout(function() {\r\n document.documentElement.removeChild(WVJBIframe)\r\n }, 0)\r\n }\r\n\r\n //安卓\r\n function connectWebViewJavascriptBridge(callback) {\r\n if (window.WebViewJavascriptBridge) {\r\n callback(WebViewJavascriptBridge)\r\n } else {\r\n document.addEventListener(\r\n 'WebViewJavascriptBridgeReady',\r\n function() {\r\n callback(WebViewJavascriptBridge)\r\n },\r\n false\r\n );\r\n }\r\n }\r\n\r\n function bridgeLog(logContent) {\r\n uni.showModal({\r\n title: \"原始数据\",\r\n content: logContent,\r\n })\r\n }\r\n\r\n switch (uni.getSystemInfoSync().platform) {\r\n case 'android':\r\n connectWebViewJavascriptBridge(function(bridge) {\r\n bridge.init();\r\n bridge.registerHandler(\"GetUser\", function(data, responseCallback) {\r\n if(JSON.parse(data).guid != \"null\"){\r\n uni.setStorageSync('userInfo', {\r\n guid: JSON.parse(data).guid,\r\n token: JSON.parse(data).token\r\n })\r\n }\r\n uni.setStorageSync('parameter', {\r\n activityID: JSON.parse(data).activityID,\r\n AppCode: JSON.parse(data).AppCode\r\n })\r\n // 初始传入token和guid\r\n Vue.config.configDic = {\r\n Authorization: JSON.parse(data).Authorization,\r\n statusBarHeight: Number.parseInt(JSON.parse(data).statusBarHeight),\r\n };\r\n });\r\n\r\n })\r\n break;\r\n case 'ios':\r\n setupWebViewJavascriptBridge(function(bridge) {\r\n bridge.registerHandler('GetUser', function(data, responseCallback) {\r\n if(data.guid != \"null\"){\r\n uni.setStorageSync('userInfo', {\r\n guid: data.guid,\r\n token: data.token\r\n })\r\n }\r\n uni.setStorageSync('parameter', {\r\n activityID: data.activityID,\r\n AppCode: data.AppCode\r\n })\r\n // 初始传入token和guid\r\n Vue.config.configDic = {\r\n Authorization: data.Authorization,\r\n productID: data.productID,\r\n statusBarHeight: data.statusBarHeight,\r\n };\r\n })\r\n })\r\n break;\r\n default:\r\n console.log('运行在开发者工具上')\r\n break;\r\n }\r\n\r\n}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "constructor(speechCallback, clientId, streamId) {\n console.log(\"in gcloud\");\n const useOpus = false;\n this.clientId = clientId;\n this.streamId = streamId;\n this.isOpen = true;\n\n // Note: \n // 1) The client side detects silence and does a startStream, and endStream\n // The streamId is incremented everytime this happens, \n // so a combination of clientId + streamId can uniquely identify a stream.\n // The server will be transcribing each client's stream in parallel.\n //\n // 2) The streaming API has a limit of 5 minutes. So just before 5 minutes are up\n // there will timer that will close and reopen the stream. Any non final results will\n // we sent again to be re-transcribed,\n // The restartCounter will be incremented every time the stream is restarted. However\n // the streamId will remain the same.\n //\n // 3) Every stream will have set of results. Some results will be final and some won't be\n // After a result is final, that portion of the audio will not be transcribed again by the API\n // each final result will have resultEndTime, - this is time in seconds (and nanoseconds) \n // from the time the stream was started/restarted.\n // Results don'd have a startTime, it is implicit that the startTime is resultEndTime\n // of the last final stream, or 0 if there was no final stream before this\n // We augment the result to add this startTime\n //\n // We also keep a cumulative restartTime, which is the difference betwen the beginning of \n // stream start and begining of the most recent stream restart. And add this to \n // the startTime and endTime. This way the client is completely unaware of the internal restarts\n // \n \n // Have we started/restarted a new stream ?\n this.newStream = true;\n\n // number of times the stream has been restarted\n this.restartCounter = 0;\n\n // audio Input is any array of chunks (buffer)\n this.audioInput = [];\n this.audioInputSize = 0; // total size of all the buffers\n\n // the end time (in seconds) of the last result. \n // the End time is calculated from the beginning of start/restart stream\n this.resultEndTime = 0;\n\n // the end time of the last final result.\n this.finalEndTime = 0;\n\n // the start time (in seconds) of the current result. \n // It is calculated fom beginning of start/restart stream\n this.startTime = 0;\n \n // the time between the of beginning of start stream and the beginning of the most current restart stream.\n this.restartTime = 0;\n\n\n this.lastTranscriptWasFinal = false;\n\n this.restartTimer = null;\n\n this.config = {\n encoding: useOpus ? 'OGG_OPUS' : 'LINEAR16',\n sampleRateHertz: useOpus ? 48000 : 16000,\n languageCode: 'en_us',\n enableAutomaticPunctuation: true,\n speechContexts: [{ phrases: phrases}],\n };\n\n this.request = {\n config : this.config,\n interimResults: true,\n };\n\n this.startStreamInternal();\n }", "constructor() {\n }", "constructor(info) {\n super();\n\n _defineProperty(this, \"_peerConnectionId\", void 0);\n\n _defineProperty(this, \"_reactTag\", void 0);\n\n _defineProperty(this, \"_id\", void 0);\n\n _defineProperty(this, \"_label\", void 0);\n\n _defineProperty(this, \"_maxPacketLifeTime\", void 0);\n\n _defineProperty(this, \"_maxRetransmits\", void 0);\n\n _defineProperty(this, \"_negotiated\", void 0);\n\n _defineProperty(this, \"_ordered\", void 0);\n\n _defineProperty(this, \"_protocol\", void 0);\n\n _defineProperty(this, \"_readyState\", void 0);\n\n _defineProperty(this, \"_subscriptions\", []);\n\n _defineProperty(this, \"binaryType\", 'arraybuffer');\n\n _defineProperty(this, \"bufferedAmount\", 0);\n\n _defineProperty(this, \"bufferedAmountLowThreshold\", 0);\n\n this._peerConnectionId = info.peerConnectionId;\n this._reactTag = info.reactTag;\n this._label = info.label;\n this._id = info.id === -1 ? null : info.id; // null until negotiated.\n\n this._ordered = Boolean(info.ordered);\n this._maxPacketLifeTime = info.maxPacketLifeTime;\n this._maxRetransmits = info.maxRetransmits;\n this._protocol = info.protocol || '';\n this._negotiated = Boolean(info.negotiated);\n this._readyState = info.readyState;\n\n this._registerEvents();\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onChildAppSourceChangeRestart () {\n\n }", "constructor() {\n\n\t}", "async componentDidUpdate() {\n console.log(this.props.directory);\n //this needs to be replaced with environment variable\n const beginingUrl = \"http://10.34.1.30:8080/songs/\";\n const songLoc = this.props.directory + \"/outputlist.m3u8\";\n var hlsUrl = beginingUrl + songLoc;\n var audio = this.player;\n\n //Should this logic be loacated here??This looks hacky,\n const token = await getToken();\n let bearerTokenString = \"Bearer \" + token;\n\n if (Hls.isSupported()) {\n var hls = new Hls({\n // This configuration is required to insure that only the\n // viewer can access the content by sending a session cookie\n // to api.video service\n xhrSetup: function (xhr, url) {\n xhr.setRequestHeader(\"Authorization\", bearerTokenString);\n },\n });\n hls.loadSource(hlsUrl);\n hls.attachMedia(audio);\n hls.on(Hls.Events.MANIFEST_PARSED, function () {\n audio.play();\n });\n } else if (audio.canPlayType(\"application/vnd.apple.mpegurl\")) {\n console.log(\"Nigga we here!!\");\n audio.src = hlsUrl;\n audio.addEventListener(\"loadedmetadata\", function () {\n audio.play();\n });\n }\n }", "onMessageReceive() {}", "constructor() {\n\t}", "constructor() {\n\t}", "componentWillMount() {\n //CodePush.disallowRestart();\n //Alert.alert(\"mounted cool vite OK OK MAINTENANT CA MARCHE !!!!!\");\n/*CodePush.sync(\n{\ndeploymentKey: 'giMb817KrtTFkIuOg4i5ohnEUDyoBJvD1i-VN',\nupdateDialog: true,\ninstallMode: CodePush.InstallMode.IMMEDIATE,\n},\nthis.CodePushStatusDidChange.bind(this),\nthis.CodePushDownloadDidProgress.bind(this)\n);*/\n /* Animated.loop(\n Animated.sequence([\n Animated.timing(this.animatedValue, { toValue: 1, duration: 3000, easing: Easing.ease, useNativeDriver: true }),\n Animated.timing(this.animatedValue, { toValue: 0, duration: 3000, easing: Easing.ease, useNativeDriver: true }),\n ])).start();*/\n //this.toggleLike(); \n //CodePush.notifyApplicationReady();\n this._onLoadStart();\n }", "function version(){ return \"0.13.0\" }", "get supportStreaming() { return exists && has(WA.instantiateStreaming); }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "onChildAppRestart (/* reason */) {\n\n }", "_init(config) {\n this.name = config.name;\n this.appId = config.appid || config.appId;\n this.serverUrl = config.server_url + '/sync_xcx';\n this.autoTrackProperties = {};\n // cache commands.\n this._queue = [];\n\n if (config.isChildInstance) {\n this._state = {};\n } else {\n logger.enabled = config.enableLog;\n this.instances = []; // 子实例名称\n this._state = {\n getSystemInfo: false,\n initComplete: false,\n };\n systemInfo.getSystemInfo(() => {\n this._updateState({\n getSystemInfo: true,\n });\n });\n\n if (config.autoTrack) {\n this.autoTrack = PlatformAPI.initAutoTrackInstance(this, config);\n } else {\n var launchOptions = PlatformAPI.getAppOptions((options) => {\n if (options && options.scene) {\n this._setAutoTrackProperties({\n '#scene': options.scene,\n });\n }\n\n });\n if (launchOptions.scene) {\n this._setAutoTrackProperties({\n '#scene': launchOptions.scene,\n });\n }\n }\n }\n\n this.store = new ThinkingDataPersistence(config, () => {\n if (this.config.asyncPersistence && _.isFunction(this.config.persistenceComplete)) {\n this.config.persistenceComplete(this);\n }\n this._updateState();\n });\n }", "_addHMRClientCode(data) {\n// If we have it, grab supporting code...\n let prependage = fs.readFileSync('./lib/hmr/clientSocket.js'),\n appendage = fs.readFileSync('./lib/hmr/hmr.js')\n\n// Prepend clientSocket.js to bundle.... Append hmr runtime to bundle\n return `${prependage}${data}${appendage}`\n }", "componentDidMount() {\n this.setState({\n configuration: {\n flow: {\n name: \"sample1\",\n id: \"01\",\n components: [\n {\n type: \"http-listener\",\n id: \"http-list-01\",\n properties: {\n method: \"get\",\n port: 8000,\n path: \"http://localhost\"\n }\n },\n {\n type: \"logger\",\n id: \"logger-01\",\n properties: {\n level: \"info\"\n }\n },\n {\n type: \"file-writer\",\n id: \"file-write-01\",\n properties: {\n location: \"xx\",\n username: \"sachith\",\n password: \"\",\n filename: \"hello.txt\"\n }\n }\n ]\n }\n }\n\n });\n }", "componentWillUnmount(){\n Streaming.disconnect();\n }", "pushStart() {\n Cordova.exec(\n () => {},\n () => {},\n 'SparkProxy',\n 'pushStart',\n []);\n }", "async onReady() {\n // Initialize your adapter here\n // Subsribe to all state changes\n this.subscribeStates('*');\n this.axiosInstance = axios_1.default.create({\n baseURL: `http://${this.config.host}/api/v1/`,\n timeout: 1000\n });\n // try to ping volumio\n const connectionSuccess = await this.pingVolumio();\n if (this.config.checkConnection) {\n let interval = this.config.checkConnectionInterval;\n if (!interval || !isNumber(interval)) {\n this.log.error(`Invalid connection check interval setting. Will be set to 30s`);\n interval = 30;\n }\n this.checkConnectionInterval = setInterval(this.checkConnection, interval * 1000, this);\n }\n // get system infos\n if (connectionSuccess) {\n this.apiGet('getSystemInfo').then(sysInfo => {\n this.setStateAsync('info.id', sysInfo.id, true);\n this.setStateAsync('info.host', sysInfo.host, true);\n this.setStateAsync('info.name', sysInfo.name, true);\n this.setStateAsync('info.type', sysInfo.type, true);\n this.setStateAsync('info.serviceName', sysInfo.serviceName, true);\n this.setStateAsync('info.systemversion', sysInfo.systemversion, true);\n this.setStateAsync('info.builddate', sysInfo.builddate, true);\n this.setStateAsync('info.variant', sysInfo.variant, true);\n this.setStateAsync('info.hardware', sysInfo.hardware, true);\n });\n // get inital player state\n this.updatePlayerState();\n }\n if (this.config.subscribeToStateChanges && this.config.subscriptionPort && connectionSuccess) {\n this.log.debug('Subscription mode is activated');\n try {\n this.httpServerInstance = this.httpServer.listen(this.config.subscriptionPort);\n this.log.debug(`Server is listening on ${ip_1.default.address()}:${this.config.subscriptionPort}`);\n this.subscribeToVolumioNotifications();\n }\n catch (error) {\n this.log.error(`Starting server on ${this.config.subscriptionPort} for subscription mode failed: ${error.message}`);\n }\n }\n else if (this.config.subscribeToStateChanges && !this.config.subscriptionPort) {\n this.log.error('Subscription mode is activated, but port is not configured.');\n }\n else if (!this.config.subscribeToStateChanges && connectionSuccess) {\n this.unsubscribeFromVolumioNotifications();\n }\n this.httpServer.post('/volumiostatus', (req, res) => {\n this.onVolumioStateChange(req.body);\n res.sendStatus(200);\n });\n }", "function IbtRealTimeSJ(){/***********************************************************\n\t * @attributes\n\t ***********************************************************/var appKey;// application key\n\tvar authToken;// authentication token\n\tvar clusterUrl;// cluster URL to connect\n\tvar waitingClusterResponse;// indicates whether is waiting for a cluster response\n\tvar connectionTimeout;// connection timeout in milliseconds\n\tvar messageMaxSize;// message maximum size in bytes\n\tvar channelMaxSize;// channel maximum size in bytes\n\tvar channelsMaxSize;// maximum of channels for batchSend\n\tvar messagesBuffer;// buffer to hold the message parts\n\tvar id;// object identifier\n\tvar isConnected;// indicates whether the client object is connected\n\tvar isConnecting;// indicates whether the client object is connecting\n\tvar alreadyConnectedFirstTime;// indicates whether the client already connected for the first time\n\tvar stopReconnecting;// indicates whether the user disconnected (stop the reconnecting proccess)\n\tvar ortc;// represents the object itself\n\tvar sockjs;// socket connected to\n\tvar url;// URL to connect\n\tvar userPerms;// user permissions\n\tvar connectionMetadata;// connection metadata used to identify the client\n\tvar announcementSubChannel;// announcement subchannel\n\tvar subscribedChannels;// subscribed/subscribing channels\n\tvar lastKeepAlive;// holds the time of the last keep alive received\n\tvar invalidConnection;// indicates whether the connection is valid\n\tvar reconnectIntervalId;// id used for the reconnect interval\n\tvar reconnectStartedAt;// the time which the reconnect started\n\tvar validatedTimeoutId;// id used for the validated timeout\n\tvar validatedArrived;// indicates whether the validated message arrived\n\tvar retryingWithSsl;// indicates whether the connection is being retried with SSL\n\tvar protocol;// protocol to use\n\tvar sslSessionCookieName;// the SSL session cookie name\n\tvar sessionCookieName;// the session cookie name\n\tvar sessionId;// the session ID\n\tvar registrationId;// browser device token for push notifications\n\tvar pushPlatform;// push notifications platform\n\t/***********************************************************\n\t * @attributes initialization\n\t ***********************************************************/sslSessionCookieName=\"ortcssl\";sessionCookieName=\"ortcsession-\";connectionTimeout=5000;messageMaxSize=800;channelMaxSize=100;connectionMetadataMaxSize=256;channelsMaxSize=50;// Time in seconds\n\tvar heartbeatDefaultTime=15;// Heartbeat default interval time\n\tvar heartbeatDefaultFails=3;// Heartbeat default max fails\n\tvar heartbeatMaxTime=60;var heartbeatMinTime=10;var heartbeatMaxFails=6;var heartbeatMinFails=1;var heartbeatTime=heartbeatDefaultTime;// Heartbeat interval time\n\tvar heartbeatFails=heartbeatDefaultFails;// Heartbeat max fails\n\tvar heartbeatInterval=null;// Heartbeat interval\n\tvar heartbeatActive=false;messagesBuffer={};subscribedChannels={};isConnected=false;isConnecting=false;alreadyConnectedFirstTime=false;invalidConnection=false;waitingClusterResponse=false;validatedArrived=false;retryingWithSsl=false;ortc=this;lastKeepAlive=null;userPerms=null;reconnectStartedAt=null;protocol=undefined;pushPlatform=\"GCM\";var delegateExceptionCallback=function(ortcArg,event){if(ortcArg!==null&&ortcArg.onException!==null){ortcArg.onException(ortcArg,event);}};/***********************************************************\n\t * @properties\n\t ***********************************************************/this.getId=function(){return id;};this.setId=function(newId){id=newId;};this.getUrl=function(){return url;};this.setUrl=function(newUrl){url=newUrl;clusterUrl=null;};this.getClusterUrl=function(){return clusterUrl;};this.setClusterUrl=function(newUrl){clusterUrl=newUrl;url=null;};this.getConnectionTimeout=function(){return connectionTimeout;};this.setConnectionTimeout=function(newTimeout){connectionTimeout=newTimeout;};this.getIsConnected=function(){return isConnected&&ortc.sockjs!==null;};this.getConnectionMetadata=function(){return connectionMetadata;};this.setConnectionMetadata=function(newConnectionMetadata){connectionMetadata=newConnectionMetadata;};this.getAnnouncementSubChannel=function(){return announcementSubChannel;};this.setAnnouncementSubChannel=function(newAnnouncementSubChannel){announcementSubChannel=newAnnouncementSubChannel;};this.getProtocol=function(){return protocol;};this.setProtocol=function(newProtocol){protocol=newProtocol;};this.getSessionId=function(){return sessionId;};/*\n\t * Get heartbeat interval.\n\t */this.getHeartbeatTime=function(){return heartbeatTime;};/*\n\t * Set heartbeat interval.\n\t */this.setHeartbeatTime=function(newHeartbeatTime){if(newHeartbeatTime&&!isNaN(newHeartbeatTime)){if(newHeartbeatTime>heartbeatMaxTime||newHeartbeatTime<heartbeatMinTime){delegateExceptionCallback(ortc,`Heartbeat time is out of limits - Min: ${heartbeatMinTime} | Max: ${heartbeatMaxTime}`);}else{heartbeatTime=newHeartbeatTime;}}else{delegateExceptionCallback(ortc,`Invalid heartbeat time ${newHeartbeatTime}`);}};/*\n\t * Get how many times can the client fail the heartbeat.\n\t */this.getHeartbeatFails=function(){return heartbeatFails;};/*\n\t * Set heartbeat fails. Defines how many times can the client fail the heartbeat.\n\t */this.setHeartbeatFails=function(newHeartbeatFails){if(newHeartbeatFails&&!isNaN(newHeartbeatFails)){if(newHeartbeatFails>heartbeatMaxFails||newHeartbeatFails<heartbeatMinFails){delegateExceptionCallback(ortc,`Heartbeat fails is out of limits - Min: ${heartbeatMinFails} | Max: ${heartbeatMaxFails}`);}else{heartbeatFails=newHeartbeatFails;}}else{delegateExceptionCallback(ortc,`Invalid heartbeat fails ${newHeartbeatFails}`);}};/*\n\t * Get heart beat active.\n\t */this.getHeartbeatActive=function(){return heartbeatActive;};/*\n\t * Set heart beat active. Heart beat provides better accuracy for presence data.\n\t */this.setHeartbeatActive=function(active){heartbeatActive=active;};/***********************************************************\n\t * @events\n\t ***********************************************************/this.onConnected=null;this.onDisconnected=null;this.onSubscribed=null;this.onUnsubscribed=null;this.onException=null;this.onReconnecting=null;this.onReconnected=null;/***********************************************************\n\t * @public methods\n\t ***********************************************************//*\n\t * Connects to the gateway with the application key and authentication token.\n\t */this.connect=function(appKey,authToken){/*\n\t Sanity Checks\n\t */if(isConnected){delegateExceptionCallback(ortc,\"Already connected\");}else if(!url&&!clusterUrl){delegateExceptionCallback(ortc,\"URL and Cluster URL are null or empty\");}else if(!appKey){delegateExceptionCallback(ortc,\"Application Key is null or empty\");}else if(!authToken){delegateExceptionCallback(ortc,\"Authentication Token is null or empty\");}else if(url&&!ortcIsValidUrl(url)){delegateExceptionCallback(ortc,\"Invalid URL\");}else if(clusterUrl&&!ortcIsValidUrl(clusterUrl)){delegateExceptionCallback(ortc,\"Invalid Cluster URL\");}else if(!ortcIsValidInput(appKey)){delegateExceptionCallback(ortc,\"Application Key has invalid characters\");}else if(!ortcIsValidInput(authToken)){delegateExceptionCallback(ortc,\"Authentication Token has invalid characters\");}else if(!ortcIsValidInput(announcementSubChannel)){delegateExceptionCallback(ortc,\"Announcement Subchannel has invalid characters\");}else if(connectionMetadata&&connectionMetadata.length>connectionMetadataMaxSize){delegateExceptionCallback(ortc,\"Connection metadata size exceeds the limit of \"+connectionMetadataMaxSize+\" characters\");}else{ortc.appKey=appKey;ortc.authToken=authToken;isConnecting=true;stopReconnecting=false;validatedArrived=false;clearValidatedTimeout(self);// Read SSL session cookie\n\t//var sslConn = readCookie(sslSessionCookieName);\n\tvar sslConn=false;if(sslConn){changeUrlSsl();}if(clusterUrl&&clusterUrl!=null){clusterUrl=clusterUrl.ortcTreatUrl();clusterConnection();}else{url=url.ortcTreatUrl();ortc.sockjs=createSocketConnection(url);}//If ssl connection increase connection timeout\n\tif(clusterUrl&&clusterUrl!=null&&clusterUrl.indexOf(\"/ssl\")>=0||url&&url.indexOf(\"https\")>=0){if(!retryingWithSsl){ortc.setConnectionTimeout(30*1000);}else{if(ortc.getConnectionTimeout()<300*1000){if(ortc.getConnectionTimeout()<30*1000){ortc.setConnectionTimeout(30*1000);}else{ortc.setConnectionTimeout((ortc.getConnectionTimeout()+10)*1000);}}else{stopReconnecting=true;clearReconnectInterval();}}}if(!ortc.reconnectIntervalId&&!stopReconnecting){// Interval to reconnect\n\tortc.reconnectIntervalId=setInterval(function(){if(stopReconnecting){clearReconnectInterval();}else{var currentDateTime=new Date();if(ortc.sockjs==null&&!waitingClusterResponse){reconnectSocket();}// 35 seconds\n\tif(lastKeepAlive!=null&&lastKeepAlive+35000<new Date().getTime()){lastKeepAlive=null;// Server went down\n\tif(isConnected){disconnectSocket();}}}},ortc.getConnectionTimeout());}}};this.setNotificationConfig=function(config){config.cmd=\"config\";this.sendMessageToServiceWorker(config);};this.showNotification=function(notification){notification.cmd=\"notification\";this.sendMessageToServiceWorker(notification);};this.sendMessageToServiceWorker=function(message){return new Promise(function(resolve,reject){var messageChannel=new MessageChannel();messageChannel.port1.onmessage=function(event){if(event.data.error){reject(event.data.error);}else{resolve(event.data);}};navigator.serviceWorker.controller.postMessage(message,[messageChannel.port2]);});};/*\n\t * Subscribes to the channel so the client object can receive all messages sent to it by other clients with Notifications.\n\t */this.subscribeWithNotifications=function(channel,subscribeOnReconnected,regId,onMessageCallback){ortc.registrationId=regId;this._subscribe(channel,subscribeOnReconnected,regId,null,onMessageCallback);};/*\n\t * Subscribes to the channel so the client object can receive all messages sent that are valid according to the given filter\n\t */this.subscribeWithFilter=function(channel,subscribeOnReconnected,filter,onMessageCallback){this._subscribe(channel,subscribeOnReconnected,null,filter,onMessageCallback);};/*\n\t * Subscribes to the channel so the client object can receive all messages sent to it by other clients.\n\t */this.subscribe=function(channel,subscribeOnReconnected,onMessageCallback){this._subscribe(channel,subscribeOnReconnected,null,null,onMessageCallback);};this._subscribe=function(channel,subscribeOnReconnected,regId,filter,onMessageCallback){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribing){delegateExceptionCallback(ortc,\"Already subscribing to the channel \\\"\"+channel+\"\\\"\");}else if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed){delegateExceptionCallback(ortc,\"Already subscribed to the channel \\\"\"+channel+\"\\\"\");}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else if(!ortcIsValidBoolean(subscribeOnReconnected)){delegateExceptionCallback(ortc,\"The argument \\\"subscribeOnReconnected\\\" must be a boolean\");}else if(!ortcIsFunction(onMessageCallback)){delegateExceptionCallback(ortc,\"The argument \\\"onMessageCallback\\\" must be a function\");}else{if(ortc.sockjs!=null){var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){delegateExceptionCallback(ortc,\"No permission found to subscribe to the channel \\\"\"+channel+\"\\\"\");}else{if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=true;subscribedChannels[channel].isSubscribed=false;subscribedChannels[channel].subscribeOnReconnected=subscribeOnReconnected;subscribedChannels[channel].onMessageCallback=onMessageCallback;subscribedChannels[channel].filter=filter;}else{subscribedChannels[channel]={\"isSubscribing\":true,\"isSubscribed\":false,\"subscribeOnReconnected\":subscribeOnReconnected,\"onMessageCallback\":onMessageCallback,\"filter\":filter};}if(regId){subscribedChannels[channel].withNotifications=true;ortc.sockjs.send(\"subscribe;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+regId+\";\"+pushPlatform);}else{subscribedChannels[channel].withNotifications=false;if(filter){ortc.sockjs.send(\"subscribefilter;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+filter);}else{ortc.sockjs.send(\"subscribe;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm);}}}}}};/*\n\t * Unsubscribes from the channel so the client object stops receiving messages sent to it.\n\t */this.unsubscribe=function(channel){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(!subscribedChannels[channel]||subscribedChannels[channel]&&!subscribedChannels[channel].isSubscribed){delegateExceptionCallback(ortc,\"Not subscribed to the channel \"+channel);}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else{if(ortc.sockjs!=null){if(subscribedChannels[channel].withNotifications==true){ortc.sockjs.send(\"unsubscribe;\"+ortc.appKey+\";\"+channel+\";\"+ortc.registrationId+\";\"+pushPlatform);}else{ortc.sockjs.send(\"unsubscribe;\"+ortc.appKey+\";\"+channel);}}}};/*\n\t * Sends the message to the channel.\n\t */this.send=function(channel,message){/*\n\t Sanity Checks\n\t */if(!isConnected||ortc.sockjs==null){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(!message){delegateExceptionCallback(ortc,\"Message is null or empty\");}else if(!ortcIsString(message)){delegateExceptionCallback(ortc,\"Message must be a string\");}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else{var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){delegateExceptionCallback(ortc,\"No permission found to send to the channel \\\"\"+channel+\"\\\"\");}else{// Multi part\n\tvar messageParts=[];var messageId=generateId(8);var i;var allowedMaxSize=messageMaxSize-channel.length;for(i=0;i<message.length;i=i+allowedMaxSize){// Just one part\n\tif(message.length<=allowedMaxSize){messageParts.push(message);break;}if(message.substring(i,i+allowedMaxSize)){messageParts.push(message.substring(i,i+allowedMaxSize));}}for(var j=1;j<=messageParts.length;j++){ortc.sockjs.send(\"send;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+messageId+\"_\"+j+\"-\"+messageParts.length+\"_\"+messageParts[j-1]);}}}};/*\n\t * Sends the message to multiple channels.\n\t */this.batchSend=function(channels,message){/*\n\t Sanity Checks\n\t */channels=ortcStrToArray(channels);if(!isConnected||ortc.sockjs==null){delegateExceptionCallback(ortc,\"Not connected\");}else if(!ortcIsArray(channels)){delegateExceptionCallback(ortc,\"Channels must be a array\");}else if(!message){delegateExceptionCallback(ortc,\"Message is null or empty\");}else if(!ortcIsString(message)){delegateExceptionCallback(ortc,\"Message must be a string\");}else if(channels.length<=0){delegateExceptionCallback(ortc,\"Channels must be an array at least with one channel\");}else if(channels.length>channelsMaxSize){channels=[];delegateExceptionCallback(ortc,\"The channel maximum was reached (>\"+channelsMaxSize+\")\");}for(i=0;i<channels.length;i++){var channel=channels[i];if(channel.length>channelMaxSize){channels.splice(i,1);delegateExceptionCallback(ortc,\"Channel \"+channel+\" size exceeds the limit of \"+channelMaxSize+\" characters\");}}if(channels.length>0){var arrayHashPerm=[];for(i=0;i<channels.length;i++){var channel=channels[i];var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){channels.splice(i,1);delegateExceptionCallback(ortc,\"No permission found to send to the channel \\\"\"+channel+\"\\\"\");}else{arrayHashPerm.push(hashPerm);}}if(channels.length>0){var messageParts=[];var messageId=generateId(8);var allowedMaxSize=messageMaxSize-channels.toString().length;for(i=0;i<message.length;i=i+allowedMaxSize){// Just one part\n\tif(message.length<=allowedMaxSize){messageParts.push(message);break;}if(message.substring(i,i+allowedMaxSize)){messageParts.push(message.substring(i,i+allowedMaxSize));}}for(j=1;j<=messageParts.length;j++){ortc.sockjs.send(\"batchSend;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+JSON.stringify(channels)+\";\"+JSON.stringify(arrayHashPerm)+\";\"+messageId+\"_\"+j+\"-\"+messageParts.length+\"_\"+messageParts[j-1]);}}}};/*\n\t * Disconnects from the gateway.\n\t */this.disconnect=function(){clearReconnectInterval();stopReconnectProcess();// Clear subscribed channels\n\tsubscribedChannels={};/*\n\t Sanity Checks\n\t */if(!isConnected&&!invalidConnection){delegateExceptionCallback(ortc,\"Not connected\");}else{disconnectSocket();}};/*\n\t * Gets a value indicating whether this client object is subscribed to the channel.\n\t */this.isSubscribed=function(channel){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else{if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed){return subscribedChannels[channel].isSubscribed;}else{return false;}}};/*\n\t * Gets a json indicating the subscriptions in a channel.\n\t */this.presence=function(parameters,callback){try{var requestUrl=null,isCluster=false,appKey=ortc.appKey,authToken=ortc.authToken;if(parameters.url){requestUrl=parameters.url.ortcTreatUrl();isCluster=parameters.isCluster;appKey=parameters.applicationKey;authToken=parameters.authenticationToken;}else{if(clusterUrl&&clusterUrl!=null){requestUrl=clusterUrl;isCluster=true;}else{requestUrl=url.ortcTreatUrl();;}}getServerUrl({requestUrl:requestUrl,isCluster:isCluster,appKey:appKey},function(error,serverUrl){if(error){callback(error,null);}else{jsonp(serverUrl+\"/presence/\"+appKey+\"/\"+authToken+\"/\"+parameters.channel,callback);}});}catch(e){callback(\"Unable to get presence data\",null);}};var getServerUrl=function(parameters,callback){if(parameters.requestUrl&&parameters.isCluster){var guid=generateGuid();var queryString=\"guid=\"+generateGuid();queryString=parameters.appKey?queryString+\"&appkey=\"+parameters.appKey:queryString;loadClusterServerScript(parameters.requestUrl+\"/?\"+queryString,guid,function(clusterServerResolved,scriptGuid){if(clusterServerResolved){var resultUrl=SOCKET_SERVER;callback(null,resultUrl);}else{callback(null,\"Unable to get server from cluster\");}try{clearScripts(scriptGuid);}catch(loadError){}});}else{var resultUrl=parameters.requestUrl.ortcTreatUrl();callback(null,resultUrl);}};/*\n\t * Adds the Webspectator bootstrap script for the outmost frame on the same domain.\n\t */this.setMonetizerId=function(publicId){var tempWin;var win=tempWin=window;while(tempWin!=window.top){try{if(tempWin.frameElement){win=tempWin.parent;}}catch(e){}tempWin=tempWin.parent;}if(!win._WS_BOOT){var s=document.createElement(\"SCRIPT\");s.src=\"//wfpscripts.webspectator.com/bootstrap/ws-\"+publicId+\".js\";document.getElementsByTagName(\"head\")[0].appendChild(s);}};/***********************************************************\n\t * @private methods\n\t ***********************************************************//*\n\t * Change the current URL to use SSL\n\t */var changeUrlSsl=function(){if(!(\"ActiveXObject\"in window)){if(clusterUrl&&clusterUrl!=null){//clusterUrl = clusterUrl.replace(\"http://\", \"https://\");\n\tif(clusterUrl.indexOf(\"ssl/\")<0){var slashAtTheEnd=clusterUrl.search(/\\/([\\d.]*)\\/$/);if(slashAtTheEnd>-1){clusterUrl=clusterUrl.substring(0,slashAtTheEnd+1)+\"ssl/\"+clusterUrl.substring(slashAtTheEnd+1,clusterUrl.length);}else{clusterUrl=clusterUrl.substring(0,clusterUrl.lastIndexOf(\"/\")+1)+\"ssl/\"+clusterUrl.substring(clusterUrl.lastIndexOf(\"/\")+1);}}}else{url=url.replace(\"http://\",\"https://\");}}// Create session cookie\n\t//createSessionCookie(sslSessionCookieName, 1);\n\t};/*\n\t * Clear the reconnecting interval\n\t */var clearReconnectInterval=function(){if(ortc.reconnectIntervalId){clearInterval(ortc.reconnectIntervalId);ortc.reconnectIntervalId=null;}};/*\n\t * Clear the validated timeout\n\t */var clearValidatedTimeout=function(self){if(self.validatedTimeoutId){clearTimeout(self.validatedTimeoutId);self.validatedTimeoutId=null;}};/*\n\t * Stop the reconnecting process\n\t */var stopReconnectProcess=function(){stopReconnecting=true;alreadyConnectedFirstTime=false;};var startHeartBeatInterval=function(self){if(!self.heartbeatInterval&&heartbeatActive){self.sockjs.send(\"b\");self.heartbeatInterval=setInterval(function(){if(!heartbeatActive){stopHeartBeatInterval(self);}else{self.sockjs.send(\"b\");}},heartbeatTime*1000);}};var stopHeartBeatInterval=function(self){if(self.heartbeatInterval){clearInterval(self.heartbeatInterval);self.heartbeatInterval=null;}};/*\n\t * Creates a cookie with expiration time.\n\t */var createExpireCookie=function(name,value,minutes){var expires=\"\";if(minutes){var date=new Date();date.setTime(date.getTime()+minutes*60*1000);expires=\"; expires=\"+date.toGMTString();}document.cookie=name+\"=\"+value+expires+\"; path=/\";};/*\n\t * Creates a session cookie.\n\t */var createSessionCookie=function(name,value){document.cookie=name+\"=\"+value+\"; path=/\";};/*\n\t * Reads a cookie.\n\t */var readCookie=function(name){var nameEQ=name+\"=\";var ca=document.cookie.split(\";\");var result=null;for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==\" \"){c=c.substring(1,c.length);}if(c.indexOf(nameEQ)==0){result=c.substring(nameEQ.length,c.length);break;}}return result;};/*\n\t * Generates an ID.\n\t */var generateId=function(size){var result=\"\";var S4=function(){return((1+Math.random())*0x10000|0).toString(16).substring(1);};for(var i=0;i<size/4;i++){result+=S4();}return result;};/*\n\t * Disconnects the socket.\n\t */var disconnectSocket=function(){stopHeartBeatInterval(ortc);reconnectStartedAt=null;isConnected=false;isConnecting=false;validatedArrived=false;retryingWithSsl=false;clearValidatedTimeout(self);if(ortc.sockjs!=null){ortc.sockjs.close();ortc.sockjs=null;}};/*\n\t * Reconnects the socket.\n\t */var reconnectSocket=function(){stopHeartBeatInterval(ortc);if(isConnecting){delegateExceptionCallback(ortc,\"Unable to connect\");}isConnecting=true;delegateReconnectingCallback(ortc);reconnectStartedAt=new Date().getTime();if(clusterUrl&&clusterUrl!=null){clusterConnection();}else{ortc.sockjs=createSocketConnection(url);}};/*\n\t * Tries a connection through the cluster gateway with the application key and authentication token.\n\t */var clusterConnection=function(){var guid=generateGuid();var queryString=\"guid=\"+generateGuid();queryString=ortc.appKey?queryString+\"&appkey=\"+ortc.appKey:queryString;loadClusterServerScript(clusterUrl+\"/?\"+queryString,guid,function(clusterServerResolved,scriptGuid){if(clusterServerResolved){url=SOCKET_SERVER;sockjs=createSocketConnection(ortc.getUrl());}try{clearScripts(scriptGuid);}catch(loadError){}});};/*\n\t * Clears the javascript scripts previously loaded into the page.\n\t */var clearScripts=function(guid){var headChildren=document.getElementsByTagName(\"head\")[0].children;var childrenToRemove=[];for(var i=0;i<headChildren.length;i++){if(headChildren[i].attributes!=null&&headChildren[i].attributes[\"ortcScriptId\"]&&headChildren[i].attributes[\"ortcScriptId\"].value==guid){childrenToRemove.push(i);}}for(var child in childrenToRemove){document.getElementsByTagName(\"head\")[0].removeChild(headChildren[childrenToRemove[child]]);}};/*\n\t * Loads the cluster server javascript script into the page.\n\t */var loadClusterServerScript=function(scriptUrl,guid,callback){var script=document.createElement(\"script\");script.type=\"text/javascript\";script.setAttribute(\"ortcScriptId\",guid);waitingClusterResponse=true;if(script.readyState){// IE\n\tscript.onreadystatechange=function(){if(script.readyState==\"loaded\"||script.readyState==\"complete\"){waitingClusterResponse=false;script.onreadystatechange=null;if(typeof SOCKET_SERVER!=\"undefined\"&&SOCKET_SERVER.indexOf(\"undefined\")<0&&SOCKET_SERVER.indexOf(\"unknown_server\")<0){callback(true,guid);}else{callback(false,guid);}}};}else{// Others\n\tscript.onload=function(){waitingClusterResponse=false;if(typeof SOCKET_SERVER!=\"undefined\"&&SOCKET_SERVER.indexOf(\"undefined\")<0&&SOCKET_SERVER.indexOf(\"unknown_server\")<0){callback(true,guid);}else{callback(false,guid);}};}script.onerror=function(){waitingClusterResponse=false;};script.src=scriptUrl;document.getElementsByTagName(\"head\")[0].appendChild(script);};/*\n\t * Generates a GUID.\n\t */var generateGuid=function(){var S4=function(){return((1+Math.random())*0x10000|0).toString(16).substring(1);};return S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4();};/*\n\t * Count the dictionary keys.\n\t */var countKeys=function(dic){var count=0;for(var i in dic){count++;}return count;};/*\n\t * Creates a socket connection.\n\t */var createSocketConnection=function(connectionUrl){var self=ortc;if(self.sockjs==null){if(navigator&&navigator.userAgent&&navigator.userAgent.indexOf(\"PlayStation Vita\")>=0){protocol=\"jsonp-polling\";}self.sockjs=new SockJS(connectionUrl+\"/broadcast\",protocol);// Timeout to receive the validated message\n\tif(!self.sslFallback){var validateTimeoutTime=5000;self.validatedTimeoutId=setTimeout(function(){self.sslFallback=true;stopReconnectProcess();disconnectSocket();invalidConnection=true;retryingWithSsl=true;if(connectionUrl.indexOf(\"https://\")>=0){// We are already using SSL, try streaming\n\tprotocol=\"xhr-streaming\";}else{protocol=undefined;}changeUrlSsl();},validateTimeoutTime);}else if(!self.xhrStreamingFallback){// The SSL fallback failed. Try xhr-streaming\n\tvar validateSslTimeoutTime=5000;self.validatedTimeoutId=setTimeout(function(){self.xhrStreamingFallback=true;stopReconnectProcess();disconnectSocket();invalidConnection=true;retryingWithSsl=true;protocol=\"xhr-streaming\";},validateSslTimeoutTime);}// Connect handler\n\tself.sockjs.onopen=function(){protocol=self.sockjs.protocol;// Update last keep alive time\n\tlastKeepAlive=new Date().getTime();// If is a reconnect do not count session\n\tif(alreadyConnectedFirstTime){sessionId=\"\";}else{// Read session cookie\n\tsessionId=readCookie(sessionCookieName+self.appKey+\"-s\");if(!sessionId){// Read expiration cookie\n\tsessionId=readCookie(sessionCookieName+self.appKey);if(!sessionId){sessionId=generateId(16);}// Create session cookie\n\tcreateSessionCookie(sessionCookieName+self.appKey+\"-s\",sessionId);// Check if session cookie was created\n\tif(!readCookie(sessionCookieName+self.appKey+\"-s\")){sessionId=\"\";}}}var heartbeatDetails=heartbeatActive?\";\"+self.getHeartbeatTime()+\";\"+self.getHeartbeatFails()+\";\":\"\";self.sockjs.send(\"validate;\"+self.appKey+\";\"+self.authToken+\";\"+(announcementSubChannel?announcementSubChannel:\"\")+\";\"+sessionId+\";\"+connectionMetadata+heartbeatDetails);};// Disconnect handler\n\tself.sockjs.onclose=function(e){// e.code=1000 - e.reason=Normal closure\n\t// e.code=1006 - e.reason=WebSocket connection broken\n\t// e.code=2000 - e.reason=All transports failed\n\tstopHeartBeatInterval(ortc);if(ortc.sockjs!=null){ortc.sockjs.close();ortc.sockjs=null;}// Clear user permissions\n\tuserPerms=null;if(e.code!=1000){if(isConnected){isConnected=false;isConnecting=false;protocol=undefined;delegateDisconnectedCallback(self);}if(!stopReconnecting){if(!reconnectStartedAt||reconnectStartedAt+connectionTimeout<new Date().getTime()){reconnectSocket();}}}else{if(!invalidConnection){isConnected=false;isConnecting=false;protocol=undefined;delegateDisconnectedCallback(self);}}if(retryingWithSsl){self.connect(self.appKey,self.authToken);retryingWithSsl=false;}invalidConnection=false;};// Receive handler\n\tself.sockjs.onmessage=function(e){// Update last keep alive time\n\tlastKeepAlive=new Date().getTime();var data=e.data;var channel=data.ch;var message=data.m;var filtered=data.f;// Multi part\n\tvar regexPattern=/^(\\w[^_]*)_{1}(\\d*)-{1}(\\d*)_{1}([\\s\\S.]*)$/;var match=regexPattern.exec(message);var messageId=null;var messageCurrentPart=1;var messageTotalPart=1;var lastPart=false;if(match&&match.length>0){if(match[1]){messageId=match[1];}if(match[2]){messageCurrentPart=match[2];}if(match[3]){messageTotalPart=match[3];}if(match[4]){message=match[4];}}if(messageId){if(!messagesBuffer[messageId]){messagesBuffer[messageId]={};}messagesBuffer[messageId][messageCurrentPart]=message;if(countKeys(messagesBuffer[messageId])==messageTotalPart){lastPart=true;}}else{lastPart=true;}if(lastPart){if(messageId){message=\"\";for(var i=1;i<=messageTotalPart;i++){message+=messagesBuffer[messageId][i];delete messagesBuffer[messageId][i];}delete messagesBuffer[messageId];}delegateMessagesCallback(self,channel,filtered,message);}};self.sockjs.onortcsubscribed=function(e){lastKeepAlive=new Date().getTime();var channel=e.data;if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;subscribedChannels[channel].isSubscribed=true;}delegateSubscribedCallback(self,channel);};self.sockjs.onortcunsubscribed=function(e){lastKeepAlive=new Date().getTime();var channel=e.data;if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribed=false;}delegateUnsubscribedCallback(self,channel);};self.sockjs.onheartbeat=function(){lastKeepAlive=new Date().getTime();};self.sockjs.onortcvalidated=function(e){var sessionExpirationTime=30;if(e.data){userPerms=e.data;}if(e.set){sessionExpirationTime=e.set;}clearValidatedTimeout(self);validatedArrived=true;retryingWithSsl=false;isConnecting=false;isConnected=true;reconnectStartedAt=null;if(sessionId){if(!readCookie(sessionCookieName+self.appKey+\"-s\")){createSessionCookie(sessionCookieName+self.appKey+\"-s\",sessionId);}if(!readCookie(sessionCookieName+self.appKey)){createExpireCookie(sessionCookieName+self.appKey,sessionId,sessionExpirationTime);}}if(alreadyConnectedFirstTime){var channelsToRemove={};// Subscribe to the previously subscribed channels\n\tfor(var key in subscribedChannels){// Subscribe again\n\tif(subscribedChannels[key].subscribeOnReconnected==true&&(subscribedChannels[key].isSubscribing||subscribedChannels[key].isSubscribed)){subscribedChannels[key].isSubscribing=true;subscribedChannels[key].isSubscribed=false;var domainChannelCharacterIndex=key.indexOf(\":\");var channelToValidate=key;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=key.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[key];}if(subscribedChannels[key].filter){self.sockjs.send(\"subscribefilter;\"+self.appKey+\";\"+self.authToken+\";\"+key+\";\"+hashPerm+\";\"+subscribedChannels[key].filter);}else{self.sockjs.send(\"subscribe;\"+self.appKey+\";\"+self.authToken+\";\"+key+\";\"+hashPerm);}}else{channelsToRemove[key]=key;}}for(var keyToRemove in channelsToRemove){delete subscribedChannels[keyToRemove];}messagesBuffer={};delegateReconnectedCallback(self);}else{alreadyConnectedFirstTime=true;delegateConnectedCallback(self);}};self.sockjs.onortcerror=function(e){lastKeepAlive=new Date().getTime();var data=e.data;var operation=data.op;var channel=data.ch;var error=data.ex?data.ex:data;delegateExceptionCallback(self,error);switch(operation){case\"validate\":if(error.indexOf(\"busy\")<0){invalidConnection=true;clearValidatedTimeout(self);retryingWithSsl=false;stopReconnectProcess();}else{clearValidatedTimeout(self);retryingWithSsl=false;}break;case\"subscribe\":if(channel&&subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;}break;case\"subscribe_maxsize\":case\"unsubscribe_maxsize\":case\"shutdown\":clearValidatedTimeout(self);retryingWithSsl=false;break;case\"send_maxsize\":if(channel&&subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;}stopReconnectProcess();break;default:break;}};}return self.sockjs;};var jsonp=function(url,callback){var head=document.head?document.head:document.getElementsByTagName(\"head\")[0];var script=document.createElement(\"script\");var guid=\"ortcJsonp\"+ +new Date();var jsonpCallTimeout=setTimeout(function(){try{callback(\"Unable to get data\",null);window[guid]=undefined;delete window[guid];head.removeChild(script);}catch(e){}},15*1000);window[guid]=function(data){clearTimeout(jsonpCallTimeout);if(data.error){callback(data.error,null);}else{callback(null,data.content);}try{window[guid]=undefined;delete window[guid];head.removeChild(script);}catch(e){}};script.setAttribute(\"src\",url+\"?callback=\"+guid);head.appendChild(script);};var delegateConnectedCallback=function(ortc){if(ortc!=null&&ortc.onConnected!=null){startHeartBeatInterval(ortc);ortc.onConnected(ortc);}};var delegateDisconnectedCallback=function(ortc){if(ortc!=null&&ortc.onDisconnected!=null){ortc.onDisconnected(ortc);}};var delegateSubscribedCallback=function(ortc,channel){if(ortc!=null&&ortc.onSubscribed!=null&&channel!=null){ortc.onSubscribed(ortc,channel);}};var delegateUnsubscribedCallback=function(ortc,channel){if(ortc!=null&&ortc.onUnsubscribed!=null&&channel!=null){ortc.onUnsubscribed(ortc,channel);}};var delegateMessagesCallback=function(ortc,channel,filtered,message){if(ortc!=null&&subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed&&subscribedChannels[channel].onMessageCallback!=null){if(filtered==null){// regular subscription\n\tsubscribedChannels[channel].onMessageCallback(ortc,channel,message);}else{// filtered subscription\n\tsubscribedChannels[channel].onMessageCallback(ortc,channel,filtered,message);}}};var delegateExceptionCallback=function(ortc,event){if(ortc!=null&&ortc.onException!=null){ortc.onException(ortc,event);}};var delegateReconnectingCallback=function(ortc){if(ortc!=null&&ortc.onReconnecting!=null){ortc.onReconnecting(ortc);}};var delegateReconnectedCallback=function(ortc){if(ortc!=null&&ortc.onReconnected!=null){startHeartBeatInterval(ortc);ortc.onReconnected(ortc);}};}", "componentDidMount() {\n //setLocalNotification();\n }", "function AppMeasurement_Module_Media(s){var m=this;m.s=s;s=window;if(!s.s_c_in)s.s_c_il=[],s.s_c_in=0;m._il=s.s_c_il;m._in=s.s_c_in;m._il[m._in]=m;s.s_c_in++;m._c=\"s_m\";m.list=[];m.open=function(w,b,c,h){var d={},a=new Date,g=\"\",e;b||(b=-1);if(w&&c){if(!m.list)m.list={};m.list[w]&&m.close(w);if(h&&h.id)g=h.id;if(g)for(e in m.list)!Object.prototype[e]&&m.list[e]&&m.list[e].S==g&&m.close(m.list[e].name);d.name=w;d.length=b;d.u=0;d.c=0;d.playerName=m.playerName?m.playerName:c;d.S=g;d.L=0;d.f=0;d.timestamp=\r\n\t\tMath.floor(a.getTime()/1E3);d.j=0;d.r=d.timestamp;d.a=-1;d.B=\"\";d.k=-1;d.C=0;d.H={};d.F=0;d.m=0;d.e=\"\";d.A=0;d.K=0;d.z=0;d.D=0;d.l=!1;d.v=\"\";d.I=\"\";d.J=0;d.q=!1;d.G=\"\";d.complete=0;d.Q=0;d.o=0;d.p=0;m.list[w]=d}};m.openAd=function(w,b,c,h,d,a,g,e){var f={};m.open(w,b,c,e);if(f=m.list[w])f.l=!0,f.v=h,f.I=d,f.J=a,f.G=g};m.M=function(w){var b=m.list[w];m.list[w]=0;b&&b.monitor&&clearTimeout(b.monitor.R)};m.close=function(w){m.g(w,0,-1)};m.play=function(w,b,c,h){var d=m.g(w,1,b,c,h);if(d&&!d.monitor)d.monitor=\r\n\t\t{},d.monitor.update=function(){d.j==1&&m.g(d.name,3,-1);d.monitor.R=setTimeout(d.monitor.update,1E3)},d.monitor.update()};m.click=function(w,b){m.g(w,7,b)};m.complete=function(w,b){m.g(w,5,b)};m.stop=function(w,b){m.g(w,2,b)};m.track=function(w){m.g(w,4,-1)};m.P=function(w,b){var c=\"a.media.\",h=w.linkTrackVars,d=w.linkTrackEvents,a=\"m_i\",g,e=w.contextData,f;if(b.l){c+=\"ad.\";if(b.v)e[\"a.media.name\"]=b.v,e[c+\"pod\"]=b.I,e[c+\"podPosition\"]=b.J;if(!b.F)e[c+\"CPM\"]=b.G}if(b.q)e[c+\"clicked\"]=!0,b.q=!1;e[\"a.contentType\"]=\r\n\t\t\"video\"+(b.l?\"Ad\":\"\");e[\"a.media.channel\"]=m.channel;e[c+\"name\"]=b.name;e[c+\"playerName\"]=b.playerName;if(b.length>0)e[c+\"length\"]=b.length;e[c+\"timePlayed\"]=Math.floor(b.f);Math.floor(b.f)>0&&(e[c+\"timePlayed\"]=Math.floor(b.f));if(!b.F)e[c+\"view\"]=!0,a=\"m_s\",b.F=1;if(b.e){e[c+\"segmentNum\"]=b.m;e[c+\"segment\"]=b.e;if(b.A>0)e[c+\"segmentLength\"]=b.A;b.z&&b.f>0&&(e[c+\"segmentView\"]=!0)}if(!b.Q&&b.complete)e[c+\"complete\"]=!0,b.T=1;if(b.o>0)e[c+\"milestone\"]=b.o;if(b.p>0)e[c+\"offsetMilestone\"]=b.p;if(h)for(f in e)Object.prototype[f]||\r\n\t\t(h+=\",contextData.\"+f);g=e[\"a.contentType\"];w.pe=a;w.pev3=g;var s,n;if(m.contextDataMapping){if(!w.events2)w.events2=\"\";h&&(h+=\",events\");for(f in m.contextDataMapping)if(!Object.prototype[f]){a=f.length>c.length&&f.substring(0,c.length)==c?f.substring(c.length):\"\";g=m.contextDataMapping[f];if(typeof g==\"string\"){s=g.split(\",\");for(n=0;n<s.length;n++)g=s[n],f==\"a.contentType\"?(h&&(h+=\",\"+g),w[g]=e[f]):a==\"view\"||a==\"segmentView\"||a==\"clicked\"||a==\"complete\"||a==\"timePlayed\"||a==\"CPM\"?(d&&(d+=\",\"+\r\n\t\tg),a==\"timePlayed\"||a==\"CPM\"?e[f]&&(w.events2+=(w.events2?\",\":\"\")+g+\"=\"+e[f]):e[f]&&(w.events2+=(w.events2?\",\":\"\")+g)):a==\"segment\"&&e[f+\"Num\"]?(h&&(h+=\",\"+g),w[g]=e[f+\"Num\"]+\":\"+e[f]):(h&&(h+=\",\"+g),w[g]=e[f])}else if(a==\"milestones\"||a==\"offsetMilestones\")f=f.substring(0,f.length-1),e[f]&&m.contextDataMapping[f+\"s\"][e[f]]&&(d&&(d+=\",\"+m.contextDataMapping[f+\"s\"][e[f]]),w.events2+=(w.events2?\",\":\"\")+m.contextDataMapping[f+\"s\"][e[f]]);e[f]&&(e[f]=0);a==\"segment\"&&e[f+\"Num\"]&&(e[f+\"Num\"]=0)}}w.linkTrackVars=\r\n\t\th;w.linkTrackEvents=d};m.g=function(w,b,c,h,d){var a={},g=(new Date).getTime()/1E3,e,f,s=m.trackVars,n=m.trackEvents,o=m.trackSeconds,p=m.trackMilestones,q=m.trackOffsetMilestones,r=m.segmentByMilestones,t=m.segmentByOffsetMilestones,k,j,l=1,i={},u;if(!m.channel)m.channel=m.s.w.location.hostname;if(a=w&&m.list&&m.list[w]?m.list[w]:0){if(a.l)o=m.adTrackSeconds,p=m.adTrackMilestones,q=m.adTrackOffsetMilestones,r=m.adSegmentByMilestones,t=m.adSegmentByOffsetMilestones;c<0&&(c=a.j==1&&a.r>0?g-a.r+a.a:\r\n\t\ta.a);a.length>0&&(c=c<a.length?c:a.length);c<0&&(c=0);a.u=c;if(a.length>0)a.c=a.u/a.length*100,a.c=a.c>100?100:a.c;if(a.a<0)a.a=c;u=a.C;i.name=w;i.ad=a.l;i.length=a.length;i.openTime=new Date;i.openTime.setTime(a.timestamp*1E3);i.offset=a.u;i.percent=a.c;i.playerName=a.playerName;i.mediaEvent=a.k<0?\"OPEN\":b==1?\"PLAY\":b==2?\"STOP\":b==3?\"MONITOR\":b==4?\"TRACK\":b==5?\"COMPLETE\":b==7?\"CLICK\":\"CLOSE\";if(b>2||b!=a.j&&(b!=2||a.j==1)){if(!d)h=a.m,d=a.e;if(b){if(b==1)a.a=c;if((b<=3||b>=5)&&a.k>=0)if(l=!1,s=n=\r\n\t\t\"None\",a.k!=c){f=a.k;if(f>c)f=a.a,f>c&&(f=c);k=p?p.split(\",\"):0;if(a.length>0&&k&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f/a.length*100<e&&a.c>=e)l=!0,j=k.length,i.mediaEvent=\"MILESTONE\",a.o=i.milestone=e;if((k=q?q.split(\",\"):0)&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f<e&&c>=e)l=!0,j=k.length,i.mediaEvent=\"OFFSET_MILESTONE\",a.p=i.offsetMilestone=e}if(a.K||!d){if(r&&p&&a.length>0){if(k=p.split(\",\")){k.push(\"100\");for(j=f=0;j<k.length;j++)if(e=k[j]?parseFloat(\"\"+\r\n\t\tk[j]):0){if(a.c<e)h=j+1,d=\"M:\"+f+\"-\"+e,j=k.length;f=e}}}else if(t&&q&&(k=q.split(\",\"))){k.push(\"\"+(a.length>0?a.length:\"E\"));for(j=f=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)||k[j]==\"E\"){if(c<e||k[j]==\"E\")h=j+1,d=\"O:\"+f+\"-\"+e,j=k.length;f=e}}if(d)a.K=!0}if((d||a.e)&&d!=a.e){a.D=!0;if(!a.e)a.m=h,a.e=d;a.k>=0&&(l=!0)}if((b>=2||a.c>=100)&&a.a<c)a.L+=c-a.a,a.f+=c-a.a;if(b<=2||b==3&&!a.j)a.B+=(b==1||b==3?\"S\":\"E\")+Math.floor(c),a.j=b==3?1:b;if(!l&&a.k>=0&&b<=3&&(o=o?o:0)&&a.f>=o)l=!0,i.mediaEvent=\r\n\t\t\"SECONDS\";a.r=g;a.a=c}if(!b||b<=3&&a.c>=100)a.j!=2&&(a.B+=\"E\"+Math.floor(c)),b=0,s=n=\"None\",i.mediaEvent=\"CLOSE\";if(b==7)l=i.clicked=a.q=!0;if(b==5||m.completeByCloseOffset&&(!b||a.c>=100)&&a.length>0&&c>=a.length-m.completeCloseOffsetThreshold)l=i.complete=a.complete=!0;g=i.mediaEvent;g==\"MILESTONE\"?g+=\"_\"+i.milestone:g==\"OFFSET_MILESTONE\"&&(g+=\"_\"+i.offsetMilestone);a.H[g]?i.eventFirstTime=!1:(i.eventFirstTime=!0,a.H[g]=1);i.event=i.mediaEvent;i.timePlayed=a.L;i.segmentNum=a.m;i.segment=a.e;i.segmentLength=\r\n\t\ta.A;m.monitor&&b!=4&&m.monitor(m.s,i);b==0&&m.M(w);if(l&&a.C==u){w={};w.contextData={};w.linkTrackVars=s;w.linkTrackEvents=n;if(!w.linkTrackVars)w.linkTrackVars=\"\";if(!w.linkTrackEvents)w.linkTrackEvents=\"\";m.P(w,a);w.linkTrackVars||(w[\"!linkTrackVars\"]=1);w.linkTrackEvents||(w[\"!linkTrackEvents\"]=1);m.s.track(w);if(a.D)a.m=h,a.e=d,a.z=!0,a.D=!1;else if(a.f>0)a.z=!1;a.B=\"\";a.o=a.p=0;a.f-=Math.floor(a.f);a.k=c;a.C++}}}return a};m.O=function(w,b,c,h,d){var a=0;if(w&&(!m.autoTrackMediaLengthRequired||\r\n\t\tb&&b>0)){if(!m.list||!m.list[w]){if(c==1||c==3)m.open(w,b,\"HTML5 Video\",d),a=1}else a=1;a&&m.g(w,c,h,-1,0)}};m.attach=function(w){var b,c,h;if(w&&w.tagName&&w.tagName.toUpperCase()==\"VIDEO\"){if(!m.n)m.n=function(b,a,w){var c,f;if(m.autoTrack){c=b.currentSrc;(f=b.duration)||(f=-1);if(w<0)w=b.currentTime;m.O(c,f,a,w,b)}};b=function(){m.n(w,1,-1)};c=function(){m.n(w,1,-1)};m.i(w,\"play\",b);m.i(w,\"pause\",c);m.i(w,\"seeking\",c);m.i(w,\"seeked\",b);m.i(w,\"ended\",function(){m.n(w,0,-1)});m.i(w,\"timeupdate\",\r\n\t\tb);h=function(){!w.paused&&!w.ended&&!w.seeking&&m.n(w,3,-1);setTimeout(h,1E3)};h()}};m.i=function(m,b,c){m.attachEvent?m.attachEvent(\"on\"+b,c):m.addEventListener&&m.addEventListener(b,c,!1)};if(m.completeByCloseOffset==void 0)m.completeByCloseOffset=1;if(m.completeCloseOffsetThreshold==void 0)m.completeCloseOffsetThreshold=1;m.N=function(){var w,b;if(m.autoTrack&&(w=m.s.d.getElementsByTagName(\"VIDEO\")))for(b=0;b<w.length;b++)m.attach(w[b])};m.i(s,\"load\",m.N)}", "constructor(httpClient) {\n this.httpClient = httpClient;\n //public url_base = \"http://localhost:8080\";\n this.url_base = \"https://yaoyuan333.wm.r.appspot.com\";\n }", "function AppMeasurement_Module_Media(s){var m=this;m.s=s;s=window;if(!s.s_c_in)s.s_c_il=[],s.s_c_in=0;m._il=s.s_c_il;m._in=s.s_c_in;m._il[m._in]=m;s.s_c_in++;m._c=\"s_m\";m.list=[];m.open=function(w,b,c,h){var d={},a=new Date,g=\"\",e;b||(b=-1);if(w&&c){if(!m.list)m.list={};m.list[w]&&m.close(w);if(h&&h.id)g=h.id;if(g)for(e in m.list)!Object.prototype[e]&&m.list[e]&&m.list[e].S==g&&m.close(m.list[e].name);d.name=w;d.length=b;d.u=0;d.c=0;d.playerName=m.playerName?m.playerName:c;d.S=g;d.L=0;d.f=0;d.timestamp=\r\nMath.floor(a.getTime()/1E3);d.j=0;d.r=d.timestamp;d.a=-1;d.B=\"\";d.k=-1;d.C=0;d.H={};d.F=0;d.m=0;d.e=\"\";d.A=0;d.K=0;d.z=0;d.D=0;d.l=!1;d.v=\"\";d.I=\"\";d.J=0;d.q=!1;d.G=\"\";d.complete=0;d.Q=0;d.o=0;d.p=0;m.list[w]=d}};m.openAd=function(w,b,c,h,d,a,g,e){var f={};m.open(w,b,c,e);if(f=m.list[w])f.l=!0,f.v=h,f.I=d,f.J=a,f.G=g};m.M=function(w){var b=m.list[w];m.list[w]=0;b&&b.monitor&&clearTimeout(b.monitor.R)};m.close=function(w){m.g(w,0,-1)};m.play=function(w,b,c,h){var d=m.g(w,1,b,c,h);if(d&&!d.monitor)d.monitor=\r\n{},d.monitor.update=function(){d.j==1&&m.g(d.name,3,-1);d.monitor.R=setTimeout(d.monitor.update,1E3)},d.monitor.update()};m.click=function(w,b){m.g(w,7,b)};m.complete=function(w,b){m.g(w,5,b)};m.stop=function(w,b){m.g(w,2,b)};m.track=function(w){m.g(w,4,-1)};m.P=function(w,b){var c=\"a.media.\",h=w.linkTrackVars,d=w.linkTrackEvents,a=\"m_i\",g,e=w.contextData,f;if(b.l){c+=\"ad.\";if(b.v)e[\"a.media.name\"]=b.v,e[c+\"pod\"]=b.I,e[c+\"podPosition\"]=b.J;if(!b.F)e[c+\"CPM\"]=b.G}if(b.q)e[c+\"clicked\"]=!0,b.q=!1;e[\"a.contentType\"]=\r\n\"video\"+(b.l?\"Ad\":\"\");e[\"a.media.channel\"]=m.channel;e[c+\"name\"]=b.name;e[c+\"playerName\"]=b.playerName;if(b.length>0)e[c+\"length\"]=b.length;e[c+\"timePlayed\"]=Math.floor(b.f);Math.floor(b.f)>0&&(e[c+\"timePlayed\"]=Math.floor(b.f));if(!b.F)e[c+\"view\"]=!0,a=\"m_s\",b.F=1;if(b.e){e[c+\"segmentNum\"]=b.m;e[c+\"segment\"]=b.e;if(b.A>0)e[c+\"segmentLength\"]=b.A;b.z&&b.f>0&&(e[c+\"segmentView\"]=!0)}if(!b.Q&&b.complete)e[c+\"complete\"]=!0,b.T=1;if(b.o>0)e[c+\"milestone\"]=b.o;if(b.p>0)e[c+\"offsetMilestone\"]=b.p;if(h)for(f in e)Object.prototype[f]||\r\n(h+=\",contextData.\"+f);g=e[\"a.contentType\"];w.pe=a;w.pev3=g;var s,n;if(m.contextDataMapping){if(!w.events2)w.events2=\"\";h&&(h+=\",events\");for(f in m.contextDataMapping)if(!Object.prototype[f]){a=f.length>c.length&&f.substring(0,c.length)==c?f.substring(c.length):\"\";g=m.contextDataMapping[f];if(typeof g==\"string\"){s=g.split(\",\");for(n=0;n<s.length;n++)g=s[n],f==\"a.contentType\"?(h&&(h+=\",\"+g),w[g]=e[f]):a==\"view\"||a==\"segmentView\"||a==\"clicked\"||a==\"complete\"||a==\"timePlayed\"||a==\"CPM\"?(d&&(d+=\",\"+\r\ng),a==\"timePlayed\"||a==\"CPM\"?e[f]&&(w.events2+=(w.events2?\",\":\"\")+g+\"=\"+e[f]):e[f]&&(w.events2+=(w.events2?\",\":\"\")+g)):a==\"segment\"&&e[f+\"Num\"]?(h&&(h+=\",\"+g),w[g]=e[f+\"Num\"]+\":\"+e[f]):(h&&(h+=\",\"+g),w[g]=e[f])}else if(a==\"milestones\"||a==\"offsetMilestones\")f=f.substring(0,f.length-1),e[f]&&m.contextDataMapping[f+\"s\"][e[f]]&&(d&&(d+=\",\"+m.contextDataMapping[f+\"s\"][e[f]]),w.events2+=(w.events2?\",\":\"\")+m.contextDataMapping[f+\"s\"][e[f]]);e[f]&&(e[f]=0);a==\"segment\"&&e[f+\"Num\"]&&(e[f+\"Num\"]=0)}}w.linkTrackVars=\r\nh;w.linkTrackEvents=d};m.g=function(w,b,c,h,d){var a={},g=(new Date).getTime()/1E3,e,f,s=m.trackVars,n=m.trackEvents,o=m.trackSeconds,p=m.trackMilestones,q=m.trackOffsetMilestones,r=m.segmentByMilestones,t=m.segmentByOffsetMilestones,k,j,l=1,i={},u;if(!m.channel)m.channel=m.s.w.location.hostname;if(a=w&&m.list&&m.list[w]?m.list[w]:0){if(a.l)o=m.adTrackSeconds,p=m.adTrackMilestones,q=m.adTrackOffsetMilestones,r=m.adSegmentByMilestones,t=m.adSegmentByOffsetMilestones;c<0&&(c=a.j==1&&a.r>0?g-a.r+a.a:\r\na.a);a.length>0&&(c=c<a.length?c:a.length);c<0&&(c=0);a.u=c;if(a.length>0)a.c=a.u/a.length*100,a.c=a.c>100?100:a.c;if(a.a<0)a.a=c;u=a.C;i.name=w;i.ad=a.l;i.length=a.length;i.openTime=new Date;i.openTime.setTime(a.timestamp*1E3);i.offset=a.u;i.percent=a.c;i.playerName=a.playerName;i.mediaEvent=a.k<0?\"OPEN\":b==1?\"PLAY\":b==2?\"STOP\":b==3?\"MONITOR\":b==4?\"TRACK\":b==5?\"COMPLETE\":b==7?\"CLICK\":\"CLOSE\";if(b>2||b!=a.j&&(b!=2||a.j==1)){if(!d)h=a.m,d=a.e;if(b){if(b==1)a.a=c;if((b<=3||b>=5)&&a.k>=0)if(l=!1,s=n=\r\n\"None\",a.k!=c){f=a.k;if(f>c)f=a.a,f>c&&(f=c);k=p?p.split(\",\"):0;if(a.length>0&&k&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f/a.length*100<e&&a.c>=e)l=!0,j=k.length,i.mediaEvent=\"MILESTONE\",a.o=i.milestone=e;if((k=q?q.split(\",\"):0)&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f<e&&c>=e)l=!0,j=k.length,i.mediaEvent=\"OFFSET_MILESTONE\",a.p=i.offsetMilestone=e}if(a.K||!d){if(r&&p&&a.length>0){if(k=p.split(\",\")){k.push(\"100\");for(j=f=0;j<k.length;j++)if(e=k[j]?parseFloat(\"\"+\r\nk[j]):0){if(a.c<e)h=j+1,d=\"M:\"+f+\"-\"+e,j=k.length;f=e}}}else if(t&&q&&(k=q.split(\",\"))){k.push(\"\"+(a.length>0?a.length:\"E\"));for(j=f=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)||k[j]==\"E\"){if(c<e||k[j]==\"E\")h=j+1,d=\"O:\"+f+\"-\"+e,j=k.length;f=e}}if(d)a.K=!0}if((d||a.e)&&d!=a.e){a.D=!0;if(!a.e)a.m=h,a.e=d;a.k>=0&&(l=!0)}if((b>=2||a.c>=100)&&a.a<c)a.L+=c-a.a,a.f+=c-a.a;if(b<=2||b==3&&!a.j)a.B+=(b==1||b==3?\"S\":\"E\")+Math.floor(c),a.j=b==3?1:b;if(!l&&a.k>=0&&b<=3&&(o=o?o:0)&&a.f>=o)l=!0,i.mediaEvent=\r\n\"SECONDS\";a.r=g;a.a=c}if(!b||b<=3&&a.c>=100)a.j!=2&&(a.B+=\"E\"+Math.floor(c)),b=0,s=n=\"None\",i.mediaEvent=\"CLOSE\";if(b==7)l=i.clicked=a.q=!0;if(b==5||m.completeByCloseOffset&&(!b||a.c>=100)&&a.length>0&&c>=a.length-m.completeCloseOffsetThreshold)l=i.complete=a.complete=!0;g=i.mediaEvent;g==\"MILESTONE\"?g+=\"_\"+i.milestone:g==\"OFFSET_MILESTONE\"&&(g+=\"_\"+i.offsetMilestone);a.H[g]?i.eventFirstTime=!1:(i.eventFirstTime=!0,a.H[g]=1);i.event=i.mediaEvent;i.timePlayed=a.L;i.segmentNum=a.m;i.segment=a.e;i.segmentLength=\r\na.A;m.monitor&&b!=4&&m.monitor(m.s,i);b==0&&m.M(w);if(l&&a.C==u){w={};w.contextData={};w.linkTrackVars=s;w.linkTrackEvents=n;if(!w.linkTrackVars)w.linkTrackVars=\"\";if(!w.linkTrackEvents)w.linkTrackEvents=\"\";m.P(w,a);w.linkTrackVars||(w[\"!linkTrackVars\"]=1);w.linkTrackEvents||(w[\"!linkTrackEvents\"]=1);m.s.track(w);if(a.D)a.m=h,a.e=d,a.z=!0,a.D=!1;else if(a.f>0)a.z=!1;a.B=\"\";a.o=a.p=0;a.f-=Math.floor(a.f);a.k=c;a.C++}}}return a};m.O=function(w,b,c,h,d){var a=0;if(w&&(!m.autoTrackMediaLengthRequired||\r\nb&&b>0)){if(!m.list||!m.list[w]){if(c==1||c==3)m.open(w,b,\"HTML5 Video\",d),a=1}else a=1;a&&m.g(w,c,h,-1,0)}};m.attach=function(w){var b,c,h;if(w&&w.tagName&&w.tagName.toUpperCase()==\"VIDEO\"){if(!m.n)m.n=function(b,a,w){var c,f;if(m.autoTrack){c=b.currentSrc;(f=b.duration)||(f=-1);if(w<0)w=b.currentTime;m.O(c,f,a,w,b)}};b=function(){m.n(w,1,-1)};c=function(){m.n(w,1,-1)};m.i(w,\"play\",b);m.i(w,\"pause\",c);m.i(w,\"seeking\",c);m.i(w,\"seeked\",b);m.i(w,\"ended\",function(){m.n(w,0,-1)});m.i(w,\"timeupdate\",\r\nb);h=function(){!w.paused&&!w.ended&&!w.seeking&&m.n(w,3,-1);setTimeout(h,1E3)};h()}};m.i=function(m,b,c){m.attachEvent?m.attachEvent(\"on\"+b,c):m.addEventListener&&m.addEventListener(b,c,!1)};if(m.completeByCloseOffset==void 0)m.completeByCloseOffset=1;if(m.completeCloseOffsetThreshold==void 0)m.completeCloseOffsetThreshold=1;m.N=function(){var w,b;if(m.autoTrack&&(w=m.s.d.getElementsByTagName(\"VIDEO\")))for(b=0;b<w.length;b++)m.attach(w[b])};m.i(s,\"load\",m.N)}", "create () {\r\n // Send a create-job message to the native-app.\r\n openPort();\r\n return browser.storage.local.get({ props: {} }).then(result => {\r\n // Get a cookie jar for the job.\r\n return getCookieJarForVideo(this.props.videoUrl).then(cookieJar => {\r\n state.port.postMessage({\r\n topic: 'create-job',\r\n data: {\r\n jobId: this.id,\r\n // Merge the default props and the job props.\r\n props: Object.assign({ cookieJar }, result.props, this.props)\r\n }\r\n });\r\n \r\n // Flag this job as active.\r\n this.state = 'active';\r\n \r\n // Make the icon blue because a job is running.\r\n browser.browserAction.setIcon({\r\n path: 'icons/film-blue.svg'\r\n });\r\n });\r\n });\r\n }", "supportsPlatform() {\n return true;\n }", "function FileSystemService($http, $q, $log) {\n var _directory = LocalFileSystem.PERSISTENT;\n var _fs = null;\n var _that = this;\n\n this.isInitalized = false;\n\n function errorHandler(e) {\n var msg = '';\n\n switch (e.code) {\n case FileError.QUOTA_EXCEEDED_ERR:\n msg = 'QUOTA_EXCEEDED_ERR';\n break;\n case FileError.NOT_FOUND_ERR:\n msg = 'NOT_FOUND_ERR';\n break;\n case FileError.SECURITY_ERR:\n msg = 'SECURITY_ERR';\n break;\n case FileError.INVALID_MODIFICATION_ERR:\n msg = 'INVALID_MODIFICATION_ERR';\n break;\n case FileError.INVALID_STATE_ERR:\n msg = 'INVALID_STATE_ERR';\n break;\n default:\n msg = 'Unknown Error';\n break;\n };\n\n $log.error('FileSystemService: ' + msg);\n }\n\n // startup\n window.requestFileSystem(_directory, 0, function(fs){\n _fs = fs;\n _that.isInitalized = true;\n }, errorHandler);\n\n\n /**\n * Checks if file is in persistent storage\n */\n this.fileExists = function(filename) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n //var uri = _directory + \"/\" + filename;\n //return $http.get(uri);\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {}, function(fileEntry) {\n // Get a File object representing the file,\n // then use FileReader to read its contents.\n fileEntry.file(function(file) {\n var reader = new FileReader();\n\n reader.onloadend = function(e) {\n deferred.resolve(e.target.result);\n };\n\n reader.readAsDataURL(file);\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n\n /**\n * Get File from perstistent storage\n */\n this.getFile = function(filename) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n //var uri = _directory + \"/\" + filename;\n //return $http.get(uri);\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {}, function(fileEntry) {\n // Get a File object representing the file,\n // then use FileReader to read its contents.\n fileEntry.file(function(file) {\n var reader = new FileReader();\n\n reader.onloadend = function(e) {\n deferred.resolve(e.target.result);\n };\n\n reader.readAsDataURL(file);\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n\n /**\n * Save data into file (and create that if necessary).\n */\n this.saveFile = function(filename, data) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {create: true}, function(fileEntry) {\n // Create a FileWriter object for our FileEntry (log.txt).\n fileEntry.createWriter(function(fileWriter) {\n\n fileWriter.onwriteend = function(e) {\n $log.log('Write completed.');\n deferred.resolve();\n };\n\n fileWriter.onerror = function(e) {\n deferred.reject(e);\n $log.error('FileSystemService: write failed, ' + e.toString());\n };\n\n // Create a new Blob and write it to log.txt.\n var blob = new Blob([data], {type: 'text/plain'});\n\n fileWriter.write(blob);\n\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n}", "static initialize(app, changeLogService, deviceService, deviceFileService, deviceFileUploadService, file, httpService, localDBManagementService, localDbService, networkService, securityService) {\n if (this.initialized) {\n return;\n }\n deviceService.addStartUpService({\n serviceName: 'OfflineStartupService',\n start: () => {\n if (window['SQLitePlugin']) {\n localDBManagementService.setLogSQl((sessionStorage.getItem('wm.logSql') === 'true') || (sessionStorage.getItem('debugMode') === 'true'));\n window.logSql = (flag = true) => {\n localDBManagementService.setLogSQl(flag);\n sessionStorage.setItem('wm.logSql', flag ? 'true' : 'false');\n };\n window.executeLocalSql = (dbName, query, params) => {\n localDBManagementService.executeSQLQuery(dbName, query, params, true);\n };\n return localDBManagementService.loadDatabases().then(() => {\n changeLogService.addWorker(new IdResolver(localDBManagementService));\n changeLogService.addWorker(new ErrorBlocker(localDBManagementService));\n changeLogService.addWorker(new FileHandler());\n changeLogService.addWorker(new MultiPartParamTransformer(deviceFileService, localDBManagementService));\n new LiveVariableOfflineBehaviour(changeLogService, httpService, localDBManagementService, networkService, localDbService).add();\n new FileUploadOfflineBehaviour(changeLogService, deviceFileService, deviceFileUploadService, file, networkService, deviceFileService.getUploadDirectory()).add();\n new NamedQueryExecutionOfflineBehaviour(changeLogService, httpService, localDBManagementService, networkService).add();\n localDBManagementService.registerCallback(new UploadedFilesImportAndExportService(changeLogService, deviceFileService, localDBManagementService, file));\n changeLogService.addWorker({\n onAddCall: () => {\n if (!networkService.isConnected()) {\n networkService.disableAutoConnect();\n }\n },\n postFlush: stats => {\n if (stats.totalTaskCount > 0) {\n localDBManagementService.close()\n .catch(noop)\n .then(() => {\n location.assign(window.location.origin + window.location.pathname);\n });\n }\n }\n });\n });\n }\n return Promise.resolve();\n }\n });\n new SecurityOfflineBehaviour(app, file, deviceService, networkService, securityService).add();\n }", "constructor(){\n\t\t//console.log('API START');\n\t}", "get deviceServiceUUID() { return this._deviceServiceUUID ? this._deviceServiceUUID : 'FFE0'; }", "constructor () {\r\n\t\t\r\n\t}", "_sdkCompatibility() {\n // WebSocket\n // http://caniuse.com/#feat=websockets\n var canCreateWebSocket = 'WebSocket' in window;\n console.log('Native WebSocket capability: ' +\n canCreateWebSocket);\n\n if (!canCreateWebSocket) {\n throw new Error('No WebSocket capabilities');\n }\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x330b4067;\n this.SUBCLASS_OF_ID = 0xd3262a4a;\n\n this.phonecallsEnabled = args.phonecallsEnabled || null;\n this.defaultP2pContacts = args.defaultP2pContacts || null;\n this.preloadFeaturedStickers = args.preloadFeaturedStickers || null;\n this.ignorePhoneEntities = args.ignorePhoneEntities || null;\n this.revokePmInbox = args.revokePmInbox || null;\n this.blockedMode = args.blockedMode || null;\n this.pfsEnabled = args.pfsEnabled || null;\n this.date = args.date;\n this.expires = args.expires;\n this.testMode = args.testMode;\n this.thisDc = args.thisDc;\n this.dcOptions = args.dcOptions;\n this.dcTxtDomainName = args.dcTxtDomainName;\n this.chatSizeMax = args.chatSizeMax;\n this.megagroupSizeMax = args.megagroupSizeMax;\n this.forwardedCountMax = args.forwardedCountMax;\n this.onlineUpdatePeriodMs = args.onlineUpdatePeriodMs;\n this.offlineBlurTimeoutMs = args.offlineBlurTimeoutMs;\n this.offlineIdleTimeoutMs = args.offlineIdleTimeoutMs;\n this.onlineCloudTimeoutMs = args.onlineCloudTimeoutMs;\n this.notifyCloudDelayMs = args.notifyCloudDelayMs;\n this.notifyDefaultDelayMs = args.notifyDefaultDelayMs;\n this.pushChatPeriodMs = args.pushChatPeriodMs;\n this.pushChatLimit = args.pushChatLimit;\n this.savedGifsLimit = args.savedGifsLimit;\n this.editTimeLimit = args.editTimeLimit;\n this.revokeTimeLimit = args.revokeTimeLimit;\n this.revokePmTimeLimit = args.revokePmTimeLimit;\n this.ratingEDecay = args.ratingEDecay;\n this.stickersRecentLimit = args.stickersRecentLimit;\n this.stickersFavedLimit = args.stickersFavedLimit;\n this.channelsReadMediaPeriod = args.channelsReadMediaPeriod;\n this.tmpSessions = args.tmpSessions || null;\n this.pinnedDialogsCountMax = args.pinnedDialogsCountMax;\n this.pinnedInfolderCountMax = args.pinnedInfolderCountMax;\n this.callReceiveTimeoutMs = args.callReceiveTimeoutMs;\n this.callRingTimeoutMs = args.callRingTimeoutMs;\n this.callConnectTimeoutMs = args.callConnectTimeoutMs;\n this.callPacketTimeoutMs = args.callPacketTimeoutMs;\n this.meUrlPrefix = args.meUrlPrefix;\n this.autoupdateUrlPrefix = args.autoupdateUrlPrefix || null;\n this.gifSearchUsername = args.gifSearchUsername || null;\n this.venueSearchUsername = args.venueSearchUsername || null;\n this.imgSearchUsername = args.imgSearchUsername || null;\n this.staticMapsProvider = args.staticMapsProvider || null;\n this.captionLengthMax = args.captionLengthMax;\n this.messageLengthMax = args.messageLengthMax;\n this.webfileDcId = args.webfileDcId;\n this.suggestedLangCode = args.suggestedLangCode || null;\n this.langPackVersion = args.langPackVersion || null;\n this.baseLangPackVersion = args.baseLangPackVersion || null;\n }", "static _getName() {\n return 'ContentPlayback';\n }", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "start(callback){\n \n }", "onStartHeaders() {}", "async componentWillMount() {\n var _this = this\n _this.setUpUserDataFromFB()\n\n //ASK FOR CAMERA ONLT IF IS PREVIEW TRUE AND SHOWBARCODE TRUE\n if (Config.isPreview && Config.showBCScanner) {\n const { status } = await Permissions.askAsync(Permissions.CAMERA);\n this.setState({ hasCameraPermission: status === 'granted' });\n }\n\n\n\n AppEventEmitter.addListener('user.state.changes', this.alterUserState);\n if (Config.isTesterApp) {\n this.listenForUserAuth();\n } else if (Config.isPreview && !Config.isTesterApp) {\n //Load list of apps\n _this.retreiveAppDemos(\"apps\");\n }\n\n if (!Config.isPreview && !Config.isTesterApp) {\n\n //Load the data automatically, this is normal app and refister for Push notification\n this.registerForPushNotificationsAsync();\n Notifications.addListener(this._handleNotification);\n this.retreiveMeta();\n }\n\n\n await Font.loadAsync({\n //\"Material Icons\": require(\"@expo/vector-icons/fonts/MaterialIcons.ttf\"),\n //\"Ionicons\": require(\"@expo/vector-icons/fonts/Ionicons.ttf\"),\n // \"Feather\": require(\"@expo/vector-icons/fonts/Feather.ttf\"),\n 'open-sans': require('./assets/fonts/OpenSans-Regular.ttf'),\n 'lato-light': require('./assets/fonts/Lato-Light.ttf'),\n 'lato-regular': require('./assets/fonts/Lato-Regular.ttf'),\n 'lato-bold': require('./assets/fonts/Lato-Bold.ttf'),\n 'lato-black': require('./assets/fonts/Lato-Black.ttf'),\n 'roboto-medium': require('./assets/fonts/Roboto-Medium.ttf'),\n 'roboto-bold': require('./assets/fonts/Roboto-Bold.ttf'),\n 'roboto-light': require('./assets/fonts/Roboto-Light.ttf'),\n 'roboto-thin': require('./assets/fonts/Roboto-Thin.ttf'),\n\n });\n\n this.setState({ isReady: true, fontLoaded: true });\n }", "function writeHeader() {\n seekHead = createSeekHead();\n \n let\n ebmlHeader = {\n \"id\": 0x1a45dfa3, // EBML\n \"data\": [\n {\n \"id\": 0x4286, // EBMLVersion\n \"data\": 1\n },\n {\n \"id\": 0x42f7, // EBMLReadVersion\n \"data\": 1\n },\n {\n \"id\": 0x42f2, // EBMLMaxIDLength\n \"data\": 4\n },\n {\n \"id\": 0x42f3, // EBMLMaxSizeLength\n \"data\": 8\n },\n {\n \"id\": 0x4282, // DocType\n \"data\": \"webm\"\n },\n {\n \"id\": 0x4287, // DocTypeVersion\n \"data\": 2\n },\n {\n \"id\": 0x4285, // DocTypeReadVersion\n \"data\": 2\n }\n ]\n },\n \n segmentInfo = {\n \"id\": 0x1549a966, // Info\n \"data\": [\n {\n \"id\": 0x2ad7b1, // TimecodeScale\n \"data\": 1e6 // Times will be in miliseconds (1e6 nanoseconds per step = 1ms)\n },\n {\n \"id\": 0x4d80, // MuxingApp\n \"data\": \"webm-writer-js\",\n },\n {\n \"id\": 0x5741, // WritingApp\n \"data\": \"webm-writer-js\"\n },\n segmentDuration // To be filled in later\n ]\n },\n \n videoProperties = [\n {\n \"id\": 0xb0, // PixelWidth\n \"data\": videoWidth\n },\n {\n \"id\": 0xba, // PixelHeight\n \"data\": videoHeight\n }\n ];\n \n if (options.transparent) {\n videoProperties.push(\n {\n \"id\": 0x53C0, // AlphaMode\n \"data\": 1\n }\n );\n }\n \n let\n tracks = {\n \"id\": 0x1654ae6b, // Tracks\n \"data\": [\n {\n \"id\": 0xae, // TrackEntry\n \"data\": [\n {\n \"id\": 0xd7, // TrackNumber\n \"data\": DEFAULT_TRACK_NUMBER\n },\n {\n \"id\": 0x73c5, // TrackUID\n \"data\": DEFAULT_TRACK_NUMBER\n },\n {\n \"id\": 0x9c, // FlagLacing\n \"data\": 0\n },\n {\n \"id\": 0x22b59c, // Language\n \"data\": \"und\"\n },\n {\n \"id\": 0x86, // CodecID\n \"data\": \"V_VP8\"\n },\n {\n \"id\": 0x258688, // CodecName\n \"data\": \"VP8\"\n },\n {\n \"id\": 0x83, // TrackType\n \"data\": 1\n },\n {\n \"id\": 0xe0, // Video\n \"data\": videoProperties\n }\n ]\n }\n ]\n };\n \n ebmlSegment = {\n \"id\": 0x18538067, // Segment\n \"size\": -1, // Unbounded size\n \"data\": [\n seekHead,\n segmentInfo,\n tracks,\n ]\n };\n \n let\n bufferStream = new ArrayBufferDataStream(256);\n \n writeEBML(bufferStream, blobBuffer.pos, [ebmlHeader, ebmlSegment]);\n blobBuffer.write(bufferStream.getAsDataArray());\n \n // Now we know where these top-level elements lie in the file:\n seekPoints.SegmentInfo.positionEBML.data = fileOffsetToSegmentRelative(segmentInfo.offset);\n seekPoints.Tracks.positionEBML.data = fileOffsetToSegmentRelative(tracks.offset);\n \n\t writtenHeader = true;\n }", "function AppMeasurement(){var s=this;s.version=\"1.0.3\";var w=window;if(!w.s_c_in)w.s_c_il=[],w.s_c_in=0;s._il=w.s_c_il;s._in=w.s_c_in;s._il[s._in]=s;w.s_c_in++;s._c=\"s_c\";var n=w,g,k;try{g=n.parent;for(k=n.location;g&&g.location&&k&&\"\"+g.location!=\"\"+k&&n.location&&\"\"+g.location!=\"\"+n.location&&g.location.host==k.host;)n=g,g=n.parent}catch(o){}s.za=function(s){try{console.log(s)}catch(a){}};s.ba=function(s){return\"\"+parseInt(s)==\"\"+s};s.replace=function(s,a,c){if(!s||s.indexOf(a)<0)return s;return s.split(a).join(c)};\r\ns.escape=function(b){var a,c;if(!b)return b;b=encodeURIComponent(b);for(a=0;a<7;a++)c=\"+~!*()'\".substring(a,a+1),b.indexOf(c)>=0&&(b=s.replace(b,c,\"%\"+c.charCodeAt(0).toString(16).toUpperCase()));return b};s.unescape=function(b){if(!b)return b;b=b.indexOf(\"+\")>=0?s.replace(b,\"+\",\" \"):b;try{return decodeURIComponent(b)}catch(a){}return unescape(b)};s.pa=function(){var b=w.location.hostname,a=s.fpCookieDomainPeriods,c;if(!a)a=s.cookieDomainPeriods;if(b&&!s.U&&!/^[0-9.]+$/.test(b)&&(a=a?parseInt(a):\r\n2,a=a>2?a:2,c=b.lastIndexOf(\".\"),c>=0)){for(;c>=0&&a>1;)c=b.lastIndexOf(\".\",c-1),a--;s.U=c>0?b.substring(c):b}return s.U};s.c_r=s.cookieRead=function(b){b=s.escape(b);var a=\" \"+s.d.cookie,c=a.indexOf(\" \"+b+\"=\"),e=c<0?c:a.indexOf(\";\",c);b=c<0?\"\":s.unescape(a.substring(c+2+b.length,e<0?a.length:e));return b!=\"[[B]]\"?b:\"\"};s.c_w=s.cookieWrite=function(b,a,c){var e=s.pa(),d=s.cookieLifetime,f;a=\"\"+a;d=d?(\"\"+d).toUpperCase():\"\";c&&d!=\"SESSION\"&&d!=\"NONE\"&&((f=a!=\"\"?parseInt(d?d:0):-60)?(c=new Date,c.setTime(c.getTime()+\r\nf*1E3)):c==1&&(c=new Date,f=c.getYear(),c.setYear(f+5+(f<1900?1900:0))));if(b&&d!=\"NONE\")return s.d.cookie=b+\"=\"+s.escape(a!=\"\"?a:\"[[B]]\")+\"; path=/;\"+(c&&d!=\"SESSION\"?\" expires=\"+c.toGMTString()+\";\":\"\")+(e?\" domain=\"+e+\";\":\"\"),s.cookieRead(b)==a;return 0};s.v=[];s.V=function(b,a){if(s.W)return 0;if(!s.maxDelay)s.maxDelay=250;var c=0,e=(new Date).getTime()+s.maxDelay,d=s.d.Ma,f=[\"webkitvisibilitychange\",\"visibilitychange\"];if(!d)d=s.d.Na;if(d&&d==\"prerender\"){if(!s.G){s.G=1;for(c=0;c<f.length;c++)s.d.addEventListener(f[c],\r\nfunction(){var b=s.d.Ma;if(!b)b=s.d.Na;if(b==\"visible\")s.G=0,s.delayReady()})}c=1;e=0}else s.u(\"_d\")&&(c=1);c&&(s.v.push({m:b,a:a,t:e}),s.G||setTimeout(s.delayReady,s.maxDelay));return c};s.delayReady=function(){var b=(new Date).getTime(),a=0,c;for(s.u(\"_d\")&&(a=1);s.v.length>0;){c=s.v.shift();if(a&&!c.t&&c.t>b){s.v.unshift(c);setTimeout(s.delayReady,parseInt(s.maxDelay/2));break}s.W=1;s[c.m].apply(s,c.a);s.W=0}};s.setAccount=s.sa=function(b){var a,c;if(!s.V(\"setAccount\",arguments))if(s.account=b,\r\ns.allAccounts){a=s.allAccounts.concat(b.split(\",\"));s.allAccounts=[];a.sort();for(c=0;c<a.length;c++)(c==0||a[c-1]!=a[c])&&s.allAccounts.push(a[c])}else s.allAccounts=b.split(\",\")};s.P=function(b,a,c,e,d){var f=\"\",i,j,w,q,g=0;b==\"contextData\"&&(b=\"c\");if(a){for(i in a)if(!Object.prototype[i]&&(!d||i.substring(0,d.length)==d)&&a[i]&&(!c||c.indexOf(\",\"+(e?e+\".\":\"\")+i+\",\")>=0)){w=!1;if(g)for(j=0;j<g.length;j++)i.substring(0,g[j].length)==g[j]&&(w=!0);if(!w&&(f==\"\"&&(f+=\"&\"+b+\".\"),j=a[i],d&&(i=i.substring(d.length)),\r\ni.length>0))if(w=i.indexOf(\".\"),w>0)j=i.substring(0,w),w=(d?d:\"\")+j+\".\",g||(g=[]),g.push(w),f+=s.P(j,a,c,e,w);else if(typeof j==\"boolean\"&&(j=j?\"true\":\"false\"),j){if(e==\"retrieveLightData\"&&d.indexOf(\".contextData.\")<0)switch(w=i.substring(0,4),q=i.substring(4),i){case \"transactionID\":i=\"xact\";break;case \"channel\":i=\"ch\";break;case \"campaign\":i=\"v0\";break;default:s.ba(q)&&(w==\"prop\"?i=\"c\"+q:w==\"eVar\"?i=\"v\"+q:w==\"list\"?i=\"l\"+q:w==\"hier\"&&(i=\"h\"+q,j=j.substring(0,255)))}f+=\"&\"+s.escape(i)+\"=\"+s.escape(j)}}f!=\r\n\"\"&&(f+=\"&.\"+b)}return f};s.ra=function(){var b=\"\",a,c,e,d,f,i,j,w,g=\"\",n=\"\",k=c=\"\";if(s.lightProfileID)a=s.J,(g=s.lightTrackVars)&&(g=\",\"+g+\",\"+s.ea.join(\",\")+\",\");else{a=s.e;if(s.pe||s.linkType)if(g=s.linkTrackVars,n=s.linkTrackEvents,s.pe&&(c=s.pe.substring(0,1).toUpperCase()+s.pe.substring(1),s[c]))g=s[c].Va,n=s[c].Ua;g&&(g=\",\"+g+\",\"+s.C.join(\",\")+\",\");n&&(n=\",\"+n+\",\",g&&(g+=\",events,\"));s.events2&&(k+=(k!=\"\"?\",\":\"\")+s.events2)}for(c=0;c<a.length;c++){d=a[c];f=s[d];e=d.substring(0,4);i=d.substring(4);\r\n!f&&d==\"events\"&&k&&(f=k,k=\"\");if(f&&(!g||g.indexOf(\",\"+d+\",\")>=0)){switch(d){case \"timestamp\":d=\"ts\";break;case \"dynamicVariablePrefix\":d=\"D\";break;case \"visitorID\":d=\"vid\";break;case \"pageURL\":d=\"g\";if(f.length>255)s.pageURLRest=f.substring(255),f=f.substring(0,255);break;case \"pageURLRest\":d=\"-g\";break;case \"referrer\":d=\"r\";break;case \"vmk\":case \"visitorMigrationKey\":d=\"vmt\";break;case \"visitorMigrationServer\":d=\"vmf\";s.ssl&&s.visitorMigrationServerSecure&&(f=\"\");break;case \"visitorMigrationServerSecure\":d=\r\n\"vmf\";!s.ssl&&s.visitorMigrationServer&&(f=\"\");break;case \"charSet\":d=\"ce\";break;case \"visitorNamespace\":d=\"ns\";break;case \"cookieDomainPeriods\":d=\"cdp\";break;case \"cookieLifetime\":d=\"cl\";break;case \"variableProvider\":d=\"vvp\";break;case \"currencyCode\":d=\"cc\";break;case \"channel\":d=\"ch\";break;case \"transactionID\":d=\"xact\";break;case \"campaign\":d=\"v0\";break;case \"resolution\":d=\"s\";break;case \"colorDepth\":d=\"c\";break;case \"javascriptVersion\":d=\"j\";break;case \"javaEnabled\":d=\"v\";break;case \"cookiesEnabled\":d=\r\n\"k\";break;case \"browserWidth\":d=\"bw\";break;case \"browserHeight\":d=\"bh\";break;case \"connectionType\":d=\"ct\";break;case \"homepage\":d=\"hp\";break;case \"plugins\":d=\"p\";break;case \"events\":k&&(f+=(f!=\"\"?\",\":\"\")+k);if(n){i=f.split(\",\");f=\"\";for(e=0;e<i.length;e++)j=i[e],w=j.indexOf(\"=\"),w>=0&&(j=j.substring(0,w)),w=j.indexOf(\":\"),w>=0&&(j=j.substring(0,w)),n.indexOf(\",\"+j+\",\")>=0&&(f+=(f?\",\":\"\")+i[e])}break;case \"events2\":f=\"\";break;case \"contextData\":b+=s.P(\"c\",s[d],g,d);f=\"\";break;case \"lightProfileID\":d=\r\n\"mtp\";break;case \"lightStoreForSeconds\":d=\"mtss\";s.lightProfileID||(f=\"\");break;case \"lightIncrementBy\":d=\"mti\";s.lightProfileID||(f=\"\");break;case \"retrieveLightProfiles\":d=\"mtsr\";break;case \"deleteLightProfiles\":d=\"mtsd\";break;case \"retrieveLightData\":s.retrieveLightProfiles&&(b+=s.P(\"mts\",s[d],g,d));f=\"\";break;default:s.ba(i)&&(e==\"prop\"?d=\"c\"+i:e==\"eVar\"?d=\"v\"+i:e==\"list\"?d=\"l\"+i:e==\"hier\"&&(d=\"h\"+i,f=f.substring(0,255)))}f&&(b+=\"&\"+d+\"=\"+(d.substring(0,3)!=\"pev\"?s.escape(f):f))}d==\"pev3\"&&s.g&&\r\n(b+=s.g)}return b};s.p=function(s){var a=s.tagName;if(\"\"+s.Ta!=\"undefined\"||\"\"+s.Ea!=\"undefined\"&&(\"\"+s.Ea).toUpperCase()!=\"HTML\")return\"\";a=a&&a.toUpperCase?a.toUpperCase():\"\";a==\"SHAPE\"&&(a=\"\");a&&((a==\"INPUT\"||a==\"BUTTON\")&&s.type&&s.type.toUpperCase?a=s.type.toUpperCase():!a&&s.href&&(a=\"A\"));return a};s.Y=function(s){var a=s.href?s.href:\"\",c,e,d;c=a.indexOf(\":\");e=a.indexOf(\"?\");d=a.indexOf(\"/\");if(a&&(c<0||e>=0&&c>e||d>=0&&c>d))e=s.protocol&&s.protocol.length>1?s.protocol:l.protocol?l.protocol:\r\n\"\",c=l.pathname.lastIndexOf(\"/\"),a=(e?e+\"//\":\"\")+(s.host?s.host:l.host?l.host:\"\")+(h.substring(0,1)!=\"/\"?l.pathname.substring(0,c<0?0:c)+\"/\":\"\")+a;return a};s.z=function(b){var a=s.p(b),c,e,d=\"\",f=0;if(a){c=b.protocol;e=b.onclick;if(b.href&&(a==\"A\"||a==\"AREA\")&&(!e||!c||c.toLowerCase().indexOf(\"javascript\")<0))d=s.Y(b);else if(e)d=s.replace(s.replace(s.replace(s.replace(\"\"+e,\"\\r\",\"\"),\"\\n\",\"\"),\"\\t\",\"\"),\" \",\"\"),f=2;else if(a==\"INPUT\"||a==\"SUBMIT\"){if(b.value)d=b.value;else if(b.innerText)d=b.innerText;\r\nelse if(b.textContent)d=b.textContent;f=3}else if(b.src&&a==\"IMAGE\")d=b.src;if(d)return{id:d.substring(0,100),type:f}}return 0};s.Qa=function(b){for(var a=s.p(b),c=s.z(b);b&&!c&&a!=\"BODY\";)if(b=b.parentElement?b.parentElement:b.parentNode)a=s.p(b),c=s.z(b);if(!c||a==\"BODY\")b=0;if(b&&(a=b.onclick?\"\"+b.onclick:\"\",a.indexOf(\".tl(\")>=0||a.indexOf(\".trackLink(\")>=0))b=0;return b};s.Ca=function(){var b,a,c=s.linkObject,e=s.linkType,d=s.linkURL,f,i;s.K=1;if(!c)s.K=0,c=s.j;if(c){b=s.p(c);for(a=s.z(c);c&&\r\n!a&&b!=\"BODY\";)if(c=c.parentElement?c.parentElement:c.parentNode)b=s.p(c),a=s.z(c);if(!a||b==\"BODY\")c=0;if(c){var j=c.onclick?\"\"+c.onclick:\"\";if(j.indexOf(\".tl(\")>=0||j.indexOf(\".trackLink(\")>=0)c=0}}else s.K=1;!d&&c&&(d=s.Y(c));d&&!s.linkLeaveQueryString&&(f=d.indexOf(\"?\"),f>=0&&(d=d.substring(0,f)));if(!e&&d){var g=0,n=0,k;if(s.trackDownloadLinks&&s.linkDownloadFileTypes){j=d.toLowerCase();f=j.indexOf(\"?\");i=j.indexOf(\"#\");f>=0?i>=0&&i<f&&(f=i):f=i;f>=0&&(j=j.substring(0,f));f=s.linkDownloadFileTypes.toLowerCase().split(\",\");\r\nfor(i=0;i<f.length;i++)(k=f[i])&&j.substring(j.length-(k.length+1))==\".\"+k&&(e=\"d\")}if(s.trackExternalLinks&&!e&&(j=d.toLowerCase(),s.aa(j))){if(!s.linkInternalFilters)s.linkInternalFilters=w.location.hostname;f=0;s.linkExternalFilters?(f=s.linkExternalFilters.toLowerCase().split(\",\"),g=1):s.linkInternalFilters&&(f=s.linkInternalFilters.toLowerCase().split(\",\"));if(f){for(i=0;i<f.length;i++)k=f[i],j.indexOf(k)>=0&&(n=1);n?g&&(e=\"e\"):g||(e=\"e\")}}}s.linkObject=c;s.linkURL=d;s.linkType=e;if(s.trackClickMap||\r\ns.trackInlineStats)if(s.g=\"\",c){e=s.pageName;d=1;c=c.sourceIndex;if(!e)e=s.pageURL,d=0;if(w.s_objectID)a.id=w.s_objectID,c=a.type=1;if(e&&a&&a.id&&b)s.g=\"&pid=\"+s.escape(e.substring(0,255))+(d?\"&pidt=\"+d:\"\")+\"&oid=\"+s.escape(a.id.substring(0,100))+(a.type?\"&oidt=\"+a.type:\"\")+\"&ot=\"+b+(c?\"&oi=\"+c:\"\")}};s.ta=function(){var b=s.K,a=s.linkType,c=s.linkURL,e=s.linkName;if(a&&(c||e))a=a.toLowerCase(),a!=\"d\"&&a!=\"e\"&&(a=\"o\"),s.pe=\"lnk_\"+a,s.pev1=c?s.escape(c):\"\",s.pev2=e?s.escape(e):\"\",b=1;s.abort&&(b=0);\r\nif(s.trackClickMap||s.trackInlineStats){a={};c=0;var d=s.cookieRead(\"s_sq\"),f=d?d.split(\"&\"):0,i,j,w;d=0;if(f)for(i=0;i<f.length;i++)j=f[i].split(\"=\"),e=s.unescape(j[0]).split(\",\"),j=s.unescape(j[1]),a[j]=e;e=s.account.split(\",\");if(b||s.g){b&&!s.g&&(d=1);for(j in a)if(!Object.prototype[j])for(i=0;i<e.length;i++){d&&(w=a[j].join(\",\"),w==s.account&&(s.g+=(j.charAt(0)!=\"&\"?\"&\":\"\")+j,a[j]=[],c=1));for(f=0;f<a[j].length;f++)w=a[j][f],w==e[i]&&(d&&(s.g+=\"&u=\"+s.escape(w)+(j.charAt(0)!=\"&\"?\"&\":\"\")+j+\"&u=0\"),\r\na[j].splice(f,1),c=1)}b||(c=1);if(c){d=\"\";i=2;!b&&s.g&&(d=s.escape(e.join(\",\"))+\"=\"+s.escape(s.g),i=1);for(j in a)!Object.prototype[j]&&i>0&&a[j].length>0&&(d+=(d?\"&\":\"\")+s.escape(a[j].join(\",\"))+\"=\"+s.escape(j),i--);s.cookieWrite(\"s_sq\",d)}}}return b};s.ua=function(){if(!s.Ka){var b=new Date,a=n.location,c,e,d,f=d=e=c=\"\",i=\"\",w=\"\",g=\"1.2\",k=s.cookieWrite(\"s_cc\",\"true\",0)?\"Y\":\"N\",o=\"\",p=\"\",r=0;if(b.setUTCDate&&(g=\"1.3\",r.toPrecision&&(g=\"1.5\",c=[],c.forEach))){g=\"1.6\";d=0;e={};try{d=new Iterator(e),\r\nd.next&&(g=\"1.7\",c.reduce&&(g=\"1.8\",g.trim&&(g=\"1.8.1\",Date.parse&&(g=\"1.8.2\",Object.create&&(g=\"1.8.5\")))))}catch(t){}}c=screen.width+\"x\"+screen.height;d=navigator.javaEnabled()?\"Y\":\"N\";e=screen.pixelDepth?screen.pixelDepth:screen.colorDepth;i=s.w.innerWidth?s.w.innerWidth:s.d.documentElement.offsetWidth;w=s.w.innerHeight?s.w.innerHeight:s.d.documentElement.offsetHeight;b=navigator.plugins;try{s.b.addBehavior(\"#default#homePage\"),o=s.b.Ra(a)?\"Y\":\"N\"}catch(u){}try{s.b.addBehavior(\"#default#clientCaps\"),\r\np=s.b.connectionType}catch(x){}if(b)for(;r<b.length&&r<30;){if(a=b[r].name)a=a.substring(0,100)+\";\",f.indexOf(a)<0&&(f+=a);r++}s.resolution=c;s.colorDepth=e;s.javascriptVersion=g;s.javaEnabled=d;s.cookiesEnabled=k;s.browserWidth=i;s.browserHeight=w;s.connectionType=p;s.homepage=o;s.plugins=f;s.Ka=1}};s.B={};s.loadModule=function(b,a){s.B[b]||(s[b]=w[\"AppMeasurement_Module_\"+b]?new w[\"AppMeasurement_Module_\"+b](s):{},s.B[b]=s[b]);a&&(s[b+\"_onLoad\"]=a,delayCall(b+\"_onLoad\",[s,m],1)||a(s,m))};s.u=function(b){var a,\r\nc;for(a in s.B)if(!Object.prototype[a]&&(c=s.B[a])&&c[b]&&c[b]())return 1;return 0};s.xa=function(){var b=Math.floor(Math.random()*1E13),a=s.visitorSampling,c=s.visitorSamplingGroup;c=\"s_vsn_\"+(s.visitorNamespace?s.visitorNamespace:s.account)+(c?\"_\"+c:\"\");var e=s.cookieRead(c);if(a){e&&(e=parseInt(e));if(!e){if(!s.cookieWrite(c,b))return 0;e=b}if(e%1E4>v)return 0}return 1};s.Q=function(b,a){var c,e,d,f,i,w;for(c=0;c<2;c++){e=c>0?s.R:s.e;for(d=0;d<e.length;d++)if(f=e[d],(i=b[f])||b[\"!\"+f]){if(!a&&\r\n(f==\"contextData\"||f==\"retrieveLightData\")&&s[f])for(w in s[f])i[w]||(i[w]=s[f][w]);s[f]=i}}};s.La=function(b){var a,c,e,d;for(a=0;a<2;a++){c=a>0?s.R:s.e;for(e=0;e<c.length;e++)d=c[e],b[d]=s[d],b[d]||(b[\"!\"+d]=1)}};s.oa=function(s){var a,c,e,d,f,w=0,g,n=\"\",k=\"\";if(s&&s.length>255&&(a=\"\"+s,c=a.indexOf(\"?\"),c>0&&(g=a.substring(c+1),a=a.substring(0,c),d=a.toLowerCase(),e=0,d.substring(0,7)==\"http://\"?e+=7:d.substring(0,8)==\"https://\"&&(e+=8),c=d.indexOf(\"/\",e),c>0&&(d=d.substring(e,c),f=a.substring(c),\r\na=a.substring(0,c),d.indexOf(\"google\")>=0?w=\",q,ie,start,search_key,word,kw,cd,\":d.indexOf(\"yahoo.co\")>=0&&(w=\",p,ei,\"),w&&g)))){if((s=g.split(\"&\"))&&s.length>1){for(e=0;e<s.length;e++)d=s[e],c=d.indexOf(\"=\"),c>0&&w.indexOf(\",\"+d.substring(0,c)+\",\")>=0?n+=(n?\"&\":\"\")+d:k+=(k?\"&\":\"\")+d;n&&k?g=n+\"&\"+k:k=\"\"}c=253-(g.length-k.length)-a.length;s=a+(c>0?f.substring(0,c):\"\")+\"?\"+g}return s};s.qa=function(){var b=s.cookieRead(\"s_fid\"),a=\"\",c=\"\",e;e=8;var d=4;if(!b||b.indexOf(\"-\")<0){for(b=0;b<16;b++)e=Math.floor(Math.random()*\r\ne),a+=\"0123456789ABCDEF\".substring(e,e+1),e=Math.floor(Math.random()*d),c+=\"0123456789ABCDEF\".substring(e,e+1),e=d=16;b=a+\"-\"+c}s.cookieWrite(\"s_fid\",b,1)||(b=0);return b};s.t=s.track=function(b){var a,c=new Date,e=\"s\"+Math.floor(c.getTime()/108E5)%10+Math.floor(Math.random()*1E13),d=c.getYear();d=\"t=\"+s.escape(c.getDate()+\"/\"+c.getMonth()+\"/\"+(d<1900?d+1900:d)+\" \"+c.getHours()+\":\"+c.getMinutes()+\":\"+c.getSeconds()+\" \"+c.getDay()+\" \"+c.getTimezoneOffset());if(!s.V(\"track\",arguments)){b&&(a={},s.La(a),\r\ns.Q(b));if(s.xa()&&(s.fid=s.qa(),s.Ca(),s.usePlugins&&s.doPlugins&&s.doPlugins(s),s.account)){if(!s.abort){if(s.trackOffline&&!s.timestamp)s.timestamp=Math.floor(c.getTime()/1E3);c=w.location;if(!s.pageURL)s.pageURL=c.href?c.href:c;if(!s.referrer&&!s.ia)s.referrer=n.document.referrer,s.ia=1;s.referrer=s.oa(s.referrer);s.u(\"_g\")}s.ta()&&!s.abort&&(s.ua(),d+=s.ra(),s.Ba(e,d));s.abort||s.u(\"_t\")}b&&s.Q(a,1);s.timestamp=s.linkObject=s.j=s.linkURL=s.linkName=s.linkType=w.Sa=s.pe=s.pev1=s.pev2=s.pev3=s.g=\r\n0}};s.tl=s.trackLink=function(b,a,c,e,d){s.linkObject=b;s.linkType=a;s.linkName=c;if(d)s.i=b,s.l=d;return s.track(e)};s.trackLight=function(b,a,c,e){s.lightProfileID=b;s.lightStoreForSeconds=a;s.lightIncrementBy=c;return s.track(e)};s.clearVars=function(){var b,a;for(b=0;b<s.e.length;b++)if(a=s.e[b],a.substring(0,4)==\"prop\"||a.substring(0,4)==\"eVar\"||a.substring(0,4)==\"hier\"||a.substring(0,4)==\"list\"||a==\"channel\"||a==\"events\"||a==\"eventList\"||a==\"products\"||a==\"productList\"||a==\"purchaseID\"||a==\r\n\"transactionID\"||a==\"state\"||a==\"zip\"||a==\"campaign\")s[a]=void 0};s.Ba=function(b,a){var c,e=s.trackingServer;c=\"\";var d=s.dc,f=\"sc.\",w=s.visitorNamespace;if(e){if(s.trackingServerSecure&&s.ssl)e=s.trackingServerSecure}else{if(!w)w=s.account,e=w.indexOf(\",\"),e>=0&&(w=w.Oa(0,e)),w=w.replace(/[^A-Za-z0-9]/g,\"\");c||(c=\"2o7.net\");d=d?(\"\"+d).toLowerCase():\"d1\";c==\"2o7.net\"&&(d==\"d1\"?d=\"112\":d==\"d2\"&&(d=\"122\"),f=\"\");e=w+\".\"+d+\".\"+f+c}c=s.ssl?\"https://\":\"http://\";c+=e+\"/b/ss/\"+s.account+\"/\"+(s.mobile?\"5.\":\r\n\"\")+\"1/JS-\"+s.version+(s.Ja?\"T\":\"\")+\"/\"+b+\"?AQB=1&ndh=1&\"+a+\"&AQE=1\";s.wa&&(c=c.substring(0,2047));s.ma(c);s.H()};s.ma=function(b){s.c||s.va();s.c.push(b);s.I=s.o();s.ha()};s.va=function(){s.c=s.ya();if(!s.c)s.c=[]};s.ya=function(){var b,a;if(s.M()){try{(a=w.localStorage.getItem(s.L()))&&(b=w.JSON.parse(a))}catch(c){}return b}};s.M=function(){var b=!0;if(!s.trackOffline||!s.offlineFilename||!w.localStorage||!w.JSON)b=!1;return b};s.Z=function(){var b=0;if(s.c)b=s.c.length;s.q&&b++;return b};s.H=function(){if(!s.q)if(s.$=\r\nnull,s.fa)s.I>s.A&&s.ga(s.c),s.O(500);else{var b=s.ja();if(b>0)s.O(b);else if(b=s.X())s.q=1,s.Aa(b),s.Fa(b)}};s.O=function(b){if(!s.$)b||(b=0),s.$=setTimeout(s.H,b)};s.ja=function(){var b;if(!s.trackOffline||s.offlineThrottleDelay<=0)return 0;b=s.o()-s.da;if(s.offlineThrottleDelay<b)return 0;return s.offlineThrottleDelay-b};s.X=function(){if(s.c.length>0)return s.c.shift()};s.Aa=function(b){if(s.debugTracking){var a=\"AppMeasurement Debug: \"+b;b=b.split(\"&\");var c;for(c=0;c<b.length;c++)a+=\"\\n\\t\"+\r\ns.unescape(b[c]);s.za(a)}};s.Fa=function(b){var a;a||(a=new Image);a.T=function(){try{if(s.N)clearTimeout(s.N),s.N=0;if(a.timeout)clearTimeout(a.timeout),a.timeout=0}catch(b){}};a.onload=a.Ia=function(){a.T();s.la();s.D();s.q=0;s.H()};a.onabort=a.onerror=a.na=function(){a.T();s.q&&s.c.unshift(s.ka);s.q=0;s.I>s.A&&s.ga(s.c);s.D();s.O(500)};a.onreadystatechange=function(){a.readyState==4&&(a.status==200?a.Ia():a.na())};s.da=s.o();a.src=b;if(a.abort)s.N=setTimeout(a.abort,5E3);s.ka=b;s.Pa=w[\"s_i_\"+s.replace(s.account,\r\n\",\",\"_\")]=a;if(s.useForcedLinkTracking&&s.r||s.l){if(!s.forcedLinkTrackingTimeout)s.forcedLinkTrackingTimeout=250;s.F=setTimeout(s.D,s.forcedLinkTrackingTimeout)}};s.la=function(){if(s.M()&&!(s.ca>s.A))try{w.localStorage.removeItem(s.L()),s.ca=s.o()}catch(b){}};s.ga=function(b){if(s.M()){s.ha();try{w.localStorage.setItem(s.L(),w.JSON.stringify(b)),s.A=s.o()}catch(a){}}};s.ha=function(){if(s.trackOffline){if(!s.offlineLimit||s.offlineLimit<=0)s.offlineLimit=10;for(;s.c.length>s.offlineLimit;)s.X()}};\r\ns.forceOffline=function(){s.fa=!0};s.forceOnline=function(){s.fa=!1};s.L=function(){return s.offlineFilename+\"-\"+s.visitorNamespace+s.account};s.o=function(){return(new Date).getTime()};s.aa=function(s){s=s.toLowerCase();if(s.indexOf(\"#\")!=0&&s.indexOf(\"about:\")!=0&&s.indexOf(\"javascript:\")!=0)return!0;return!1};s.setTagContainer=function(b){var a,c,e;s.Ja=b;for(a=0;a<s._il.length;a++)if((c=s._il[a])&&c._c==\"s_l\"&&c.tagContainerName==b){s.Q(c);if(c.lmq)for(a=0;a<c.lmq.length;a++)e=c.lmq[a],s.loadModule(e.n);\r\nif(c.ml)for(e in c.ml)if(s[e])for(a in b=s[e],e=c.ml[e],e)if(!Object.prototype[a]&&(typeof e[a]!=\"function\"||(\"\"+e[a]).indexOf(\"s_c_il\")<0))b[a]=e[a];if(c.mmq)for(a=0;a<c.mmq.length;a++)e=c.mmq[a],s[e.m]&&(b=s[e.m],b[e.f]&&typeof b[e.f]==\"function\"&&(e.a?b[e.f].apply(b,e.a):b[e.f].apply(b)));if(c.tq)for(a=0;a<c.tq.length;a++)s.track(c.tq[a]);c.s=s;break}};s.Util={urlEncode:s.escape,urlDecode:s.unescape,cookieRead:s.cookieRead,cookieWrite:s.cookieWrite,getQueryParam:function(b,a,c){var e;a||(a=s.pageURL?\r\ns.pageURL:w.location);c||(c=\"&\");if(b&&a&&(a=\"\"+a,e=a.indexOf(\"?\"),e>=0&&(a=c+a.substring(e+1)+c,e=a.indexOf(c+b+\"=\"),e>=0&&(a=a.substring(e+c.length+b.length+1),e=a.indexOf(c),e>=0&&(a=a.substring(0,e)),a.length>0))))return s.unescape(a);return\"\"}};s.C=[\"timestamp\",\"dynamicVariablePrefix\",\"visitorID\",\"anonymousVisitorID\",\"globalVisitorID\",\"globalLocationHint\",\"fid\",\"vmk\",\"visitorMigrationKey\",\"visitorMigrationServer\",\"visitorMigrationServerSecure\",\"charSet\",\"visitorNamespace\",\"cookieDomainPeriods\",\r\n\"fpCookieDomainPeriods\",\"cookieLifetime\",\"pageName\",\"pageURL\",\"referrer\",\"contextData\",\"currencyCode\",\"lightProfileID\",\"lightStoreForSeconds\",\"lightIncrementBy\",\"retrieveLightProfiles\",\"deleteLightProfiles\",\"retrieveLightData\",\"pe\",\"pev1\",\"pev2\",\"pev3\",\"pageURLRest\"];s.e=s.C.concat([\"purchaseID\",\"variableProvider\",\"channel\",\"server\",\"pageType\",\"transactionID\",\"campaign\",\"state\",\"zip\",\"events\",\"events2\",\"products\",\"tnt\"]);s.ea=[\"timestamp\",\"charSet\",\"visitorNamespace\",\"cookieDomainPeriods\",\"cookieLifetime\",\r\n\"contextData\",\"lightProfileID\",\"lightStoreForSeconds\",\"lightIncrementBy\"];s.J=s.ea.slice(0);s.R=[\"account\",\"allAccounts\",\"debugTracking\",\"visitor\",\"trackOffline\",\"offlineLimit\",\"offlineThrottleDelay\",\"offlineFilename\",\"usePlugins\",\"doPlugins\",\"configURL\",\"visitorSampling\",\"s.visitorSamplingGroup\",\"linkObject\",\"linkURL\",\"linkName\",\"linkType\",\"trackDownloadLinks\",\"trackExternalLinks\",\"trackClickMap\",\"trackInlineStats\",\"linkLeaveQueryString\",\"linkTrackVars\",\"linkTrackEvents\",\"linkDownloadFileTypes\",\r\n\"linkExternalFilters\",\"linkInternalFilters\",\"useForcedLinkTracking\",\"forcedLinkTrackingTimeout\",\"trackingServer\",\"trackingServerSecure\",\"ssl\",\"abort\",\"mobile\",\"dc\",\"lightTrackVars\",\"maxDelay\"];for(g=0;g<=75;g++)s.e.push(\"prop\"+g),s.J.push(\"prop\"+g),s.e.push(\"eVar\"+g),s.J.push(\"eVar\"+g),g<6&&s.e.push(\"hier\"+g),g<4&&s.e.push(\"list\"+g);g=[\"resolution\",\"colorDepth\",\"javascriptVersion\",\"javaEnabled\",\"cookiesEnabled\",\"browserWidth\",\"browserHeight\",\"connectionType\",\"homepage\",\"plugins\"];s.e=s.e.concat(g);\r\ns.C=s.C.concat(g);s.ssl=w.location.protocol.toLowerCase().indexOf(\"https\")>=0;s.charSet=\"UTF-8\";s.contextData={};s.offlineThrottleDelay=0;s.offlineFilename=\"AppMeasurement.offline\";s.da=0;s.I=0;s.A=0;s.ca=0;s.linkDownloadFileTypes=\"exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx\";s.w=w;s.d=w.document;try{s.wa=navigator.appName==\"Microsoft Internet Explorer\"}catch(p){}s.D=function(){if(s.F)w.clearTimeout(s.F),s.F=null;s.i&&s.r&&s.i.dispatchEvent(s.r);if(s.l)if(typeof s.l==\"function\")s.l();\r\nelse if(s.i&&s.i.href)s.d.location=s.i.href;s.i=s.r=s.l=0};s.Ga=function(){s.b=s.d.body;if(s.b)if(s.k=function(b){var a,c,e,d,f;if(!(s.d&&s.d.getElementById(\"cppXYctnr\")||b&&b.Da)){if(s.S)if(s.useForcedLinkTracking)s.b.removeEventListener(\"click\",s.k,!1);else{s.b.removeEventListener(\"click\",s.k,!0);s.S=s.useForcedLinkTracking=0;return}else s.useForcedLinkTracking=0;s.j=b.srcElement?b.srcElement:b.target;try{if(s.j&&(s.j.tagName||s.j.parentElement||s.j.parentNode))if(e=s.Z(),s.track(),e<s.Z()&&s.useForcedLinkTracking&&\r\nb.target){for(d=b.target;d&&d!=s.b&&d.tagName.toUpperCase()!=\"A\"&&d.tagName.toUpperCase()!=\"AREA\";)d=d.parentNode;if(d&&(f=d.href,s.aa(f)||(f=0),c=d.target,b.target.dispatchEvent&&f&&(!c||c==\"_self\"||c==\"_top\"||c==\"_parent\"||w.name&&c==w.name))){try{a=s.d.createEvent(\"MouseEvents\")}catch(g){a=new w.MouseEvent}if(a){try{a.initMouseEvent(\"click\",b.bubbles,b.cancelable,b.view,b.detail,b.screenX,b.screenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget)}catch(j){a=\r\n0}if(a)a.Da=1,b.stopPropagation(),b.Ha&&b.Ha(),b.preventDefault(),s.i=b.target,s.r=a}}}}catch(k){}s.j=0}},s.b&&s.b.attachEvent)s.b.attachEvent(\"onclick\",s.k);else{if(s.b&&s.b.addEventListener){if(navigator&&(navigator.userAgent.indexOf(\"WebKit\")>=0&&s.d.createEvent||navigator.userAgent.indexOf(\"Firefox/2\")>=0&&w.MouseEvent))s.S=1,s.useForcedLinkTracking=1,s.b.addEventListener(\"click\",s.k,!0);s.b.addEventListener(\"click\",s.k,!1)}}else setTimeout(setupBody,30)};s.Ga()}", "function getVersion(){return _VERSION}", "InitVsaEngine() {\n\n }", "constructor() {\n this.systemLog = false\n this.appName = '@codedungeon/messenger'\n this.logToFile = false\n this.methods = [\n 'write',\n 'critical',\n 'lblCritical',\n 'danger',\n 'lblDanger',\n 'debug',\n 'error',\n 'lblError',\n 'important',\n 'lblImportant',\n 'info',\n 'lblInfo',\n 'log',\n 'note',\n 'notice',\n 'lblNotice',\n 'status',\n 'success',\n 'lblSuccess',\n 'warn',\n 'lblWarn',\n 'warning',\n 'lblWarning'\n ]\n }", "private internal function m248() {}", "function WebSocketRpcConnection()\n{\nvar self = this;\n\nvar isNodeJs = (typeof window === \"undefined\" ? true : false);\n\nvar lib = null;\nvar SpaceifyError = null;\nvar SpaceifyUtility = null;\nvar RpcCommunicator = null;\n//var SpaceifyLogger = null;\nvar WebSocketConnection = null;\n\nif (isNodeJs)\n\t{\n\tlib = \"/var/lib/spaceify/code/\";\n\n\tSpaceifyError = require(lib + \"spaceifyerror\");\n\t//SpaceifyLogger = require(lib + \"spaceifylogger\");\n\tSpaceifyUtility = require(lib + \"spaceifyutility\");\n\tRpcCommunicator = require(lib + \"rpccommunicator\");\n\tWebSocketConnection = require(lib + \"websocketconnection\");\n\t}\nelse\n\t{\n\tlib = (window.WEBPACK_MAIN_LIBRARY ? window.WEBPACK_MAIN_LIBRARY : window);\n\n\t//SpaceifyLogger = lib.SpaceifyLogger;\n\tSpaceifyError = lib.SpaceifyError;\n\tSpaceifyUtility = lib.SpaceifyUtility;\n\tRpcCommunicator = lib.RpcCommunicator;\n\tWebSocketConnection = lib.WebSocketConnection;\n\t}\n\nvar errorc = new SpaceifyError();\nvar utility = new SpaceifyUtility();\nvar communicator = new RpcCommunicator();\nvar connection = new WebSocketConnection();\n//var logger = new SpaceifyLogger(\"WebSocketRpcConnection\");\n\nself.connect = function(options, callback)\n\t{\n\tconnection.connect(options, function(err, data)\n\t\t{\n\t\tif(!err)\n\t\t\t{\n\t\t\tcommunicator.addConnection(connection);\n\n\t\t\tif(callback)\n\t\t\t\tcallback(null, true);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tif(callback)\n\t\t\t\tcallback(errorc.makeErrorObject(\"wsrpcc\", \"Failed to open WebsocketRpcConnection.\", \"WebSocketRpcConnection::connect\"), null);\n\t\t\t}\n\t\t});\n\t};\n\nself.close = function()\n\t{\n\t};\n\nself.getCommunicator = function()\n\t{\n\treturn communicator;\n\t};\n\nself.getConnection = function()\n\t{\n\treturn connection;\n\t};\n\n// Inherited methods\nself.getIsOpen = function()\n\t{\n\treturn connection.getIsOpen();\n\t}\n\nself.getIsSecure = function()\n\t{\n\treturn connection.getIsSecure();\n\t}\n\nself.getPort = function()\n\t{\n\treturn connection.getPort();\n\t}\n\nself.getId = function()\n\t{\n\treturn connection.getId();\n\t}\n\nself.connectionExists = function(connectionId)\n\t{\n\treturn communicator.connectionExists(connectionId);\n\t}\n\nself.exposeRpcMethod = function(name, object, method)\n\t{\n\tcommunicator.exposeRpcMethod(name, object, method);\n\t}\n\nself.exposeRpcMethodSync = function(name, object, method)\n\t{\n\tcommunicator.exposeRpcMethodSync(name, object, method);\n\t}\n\nself.callRpc = function(method, params, object, listener)\n\t{\n\treturn communicator.callRpc(method, params, object, listener, connection.getId());\n\t}\n\n// External event listeners\nself.setConnectionListener = function(listener)\n\t{\n\tcommunicator.setConnectionListener(listener);\n\t};\n\nself.setDisconnectionListener = function(listener)\n\t{\n\tcommunicator.setDisconnectionListener(listener);\n\t};\n\n}", "heartbeat () {\n }", "function _____SHARED_functions_____(){}", "onShareAppMessage() {\n\n }", "function getString(key, params) {\n var result = WEB_PLATFORM.getString(\"org_opensds_storage_devices\", key, params);\n if(result == null){\n return key;\n }else{\n return result;\n }\n }", "componentDidMount(){\n console.info(this.constructor.name+ 'Component mount process finished');\n }", "onMessage() {}", "onMessage() {}", "requestThumbnails() {\n let position = this.state.position;\n let ed = this.state.ed;\n let ts = position == 'start' ? ed.start : ed.end;\n\n this.props.socket.emit('frameSelect',{ ts: ts } );\n }", "static get tag(){return\"hal-9000\"}", "constructor(t){const e={...t};this.connectionState=new h,this.server=\"https://hub-server-2.heatgenius.co.uk\",this.username=\"\",this.signature=\"\",this.auth={header:{}},this.lastQueryTime=null,this._axios=i.a.create({}),this.logger=e.logger?e.logger:console,this.debug=!!e.debug&&e.debug}", "started() {\r\n\r\n\t}", "get EXTERNAL_API() {\n return ['setUsageMode',\n 'setBackupMode',\n 'setLocationMode',\n 'setUsageOptinHidden',\n ];\n }", "getVideoDataBuffer() {\n return this.videoDataBuffer;\n }", "addTPKLayer(){\n //<editor-fold desc=\"old code to eliminate\">\n /* if (typeof local == 'undefined') {\n\n //todo: maybe based on this url we could decide if taking the tpk from File API or form URL\n var xhrRequest = new XMLHttpRequest();\n var _this = this;\n xhrRequest.open(\"GET\", url, true);\n xhrRequest.responseType = \"blob\";\n xhrRequest.onprogress = function(evt){\n var percent = 0;\n if(/!*evt.hasOwnProperty(\"total\")*!/typeof evt[\"total\"] !== 'undefined'){\n percent = (parseFloat(evt.loaded / evt.total) * 100).toFixed(0);\n }\n else{\n percent = (parseFloat(evt.loaded / evt.totalSize) * 100).toFixed(0);\n }\n\n console.log(\"Get file via url \" + percent + \"%\");\n console.log(\"Begin downloading remote tpk file...\");\n };\n\n xhrRequest.error = function(err){\n console.log(\"ERROR retrieving TPK file: \" + err.toString());\n alert(\"There was a problem retrieve the file.\");\n };\n var __this = _this;\n xhrRequest.onload = function(oEvent) {\n if(this.status === 200) {\n console.log(\"Remote tpk download finished.\" + oEvent);\n __this.zipParser(this.response);\n }\n else{\n alert(\"There was a problem loading the file. \" + this.status + \": \" + this.statusText );\n }\n };\n xhrRequest.send();\n }\n*/\n //</editor-fold>\n if (this.get('ermesCordova').isNative()){\n\n var basemapName = this.get('parcels').get('basemapName');\n var store = cordova.file.dataDirectory;\n var fileName = basemapName;\n this.set(\"loading\", true);\n this.getBaseMapZip (store, fileName).then((binary)=>{\n if (binary!== null) {\n this.zipParser(binary);\n }\n else {\n Ember.debug(\"getBaseMapZip: error loading the zip file\");\n }\n });\n }\n\n }", "private public function m246() {}", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "async onReady() {\n try {\n // Initialize your adapter here\n //Logging of adapter start\n this.log.info('start fb-checkpresence: ip-address: \"' + this.config.ipaddress + '\" - interval devices: ' + this.config.interval + ' Min.' + ' - interval members: ' + this.config.intervalFamily + ' s');\n this.log.debug('configuration user: <' + this.config.username + '>');\n this.log.debug('configuration history: <' + this.config.history + '>');\n this.log.debug('configuration dateformat: <' + this.config.dateformat + '>');\n this.log.debug('configuration familymembers: ' + JSON.stringify(this.config.familymembers));\n this.log.debug('configuration fb-devices ' + this.config.fbdevices);\n this.log.debug('configuratuion mesh info: ' + this.config.meshinfo); \n\n //decrypt fritzbox password\n const sysObj = await this.getForeignObjectAsync('system.config');\n if (sysObj && sysObj.native && sysObj.native.secret) {\n this.config.password = this.decrypt(sysObj.native.secret, this.config.password);\n } else {\n this.config.password = this.decrypt('SdoeQ85NTrg1B0FtEyzf', this.config.password);\n }\n\n //Configuration changes if needed\n let adapterObj = (await this.getForeignObjectAsync(`system.adapter.${this.namespace}`));\n let adapterObjChanged = false; //for changes\n \n //if interval <= 0 than set to 1\n if (this.config.interval <= 0) {\n adapterObj.native.interval = 1;\n adapterObjChanged = true;\n this.config.interval = 1;\n this.log.warn('interval is less than 1. Set to 1 Min.');\n }\n\n //if interval <= 0 than set to 1\n if (this.config.intervalFamily <= 9) {\n adapterObj.native.intervalFamily = 10;\n adapterObjChanged = true;\n this.config.intervalFamily = 10;\n this.log.warn('interval is less than 10. Set to 10s.');\n }\n\n //create new configuration items -> workaround for older versions\n for(let i=0;i<this.config.familymembers.length;i++){\n if (this.config.familymembers[i].useip == undefined) {\n adapterObj.native.familymembers[i].useip = false;\n adapterObj.native.familymembers[i].ipaddress = '';\n adapterObjChanged = true;\n }\n }\n\n if (adapterObjChanged === true){ //Save changes\n await this.setForeignObjectAsync(`system.adapter.${this.namespace}`, adapterObj);\n }\n\n const cfg = {\n ip: this.config.ipaddress,\n port: '49000',\n iv: this.config.interval,\n history: this.config.history,\n dateFormat: this.config.dateformat,\n uid: this.config.username,\n pwd: this.config.password,\n members: this.config.familymembers,\n wl: this.config.whitelist\n };\n \n const cron = cfg.iv * 60;\n const cronFamily = this.config.intervalFamily;\n \n const devInfo = {\n host: this.config.ipaddress,\n port: '49000',\n sslPort: null,\n uid: this.config.username,\n pwd: this.config.password\n };\n\n this.Fb = await fb.Fb.init(devInfo, this);\n if(this.Fb.services === null) {\n this.log.error('Can not get services! Adapter stops');\n this.stopAdapter();\n }\n\n //Check if services/actions are supported\n this.GETPATH = await this.Fb.chkService('X_AVM-DE_GetHostListPath', 'Hosts1', 'X_AVM-DE_GetHostListPath');\n this.GETMESHPATH = await this.Fb.chkService('X_AVM-DE_GetMeshListPath', 'Hosts1', 'X_AVM-DE_GetMeshListPath');\n this.GETBYMAC = await this.Fb.chkService('GetSpecificHostEntry', 'Hosts1', 'GetSpecificHostEntry');\n this.GETBYIP = await this.Fb.chkService('X_AVM-DE_GetSpecificHostEntryByIP', 'Hosts1', 'X_AVM-DE_GetSpecificHostEntryByIP');\n this.GETPORT = await this.Fb.chkService('GetSecurityPort', 'DeviceInfo1', 'GetSecurityPort');\n this.GETEXTIP = await this.Fb.chkService('GetInfo', 'WANPPPConnection1', 'GetInfo');\n if ( this.GETEXTIP == false) this.GETEXTIP = await this.Fb.chkService('GetInfo', 'WANIPConnection1', 'GetInfo');\n this.SETENABLE = await this.Fb.chkService('SetEnable', 'WLANConfiguration3', 'SetEnable');\n this.WLAN3INFO = await this.Fb.chkService('GetInfo', 'WLANConfiguration3', 'WLANConfiguration3-GetInfo');\n this.DEVINFO = await this.Fb.chkService('GetInfo', 'DeviceInfo1', 'DeviceInfo1-GetInfo');\n this.DISALLOWWANACCESSBYIP = await this.Fb.chkService('DisallowWANAccessByIP', 'X_AVM-DE_HostFilter', 'DisallowWANAccessByIP');\n this.GETWANACCESSBYIP = await this.Fb.chkService('GetWANAccessByIP', 'X_AVM-DE_HostFilter', 'GetWANAccessByIP');\n this.REBOOT = await this.Fb.chkService('Reboot', 'DeviceConfig1', 'Reboot');\n \n //const test = await Fb.soapAction(Fb, '/upnp/control/deviceconfig', 'urn:dslforum-org:service:DeviceConfig:1', 'X_AVM-DE_CreateUrlSID', null);\n\n //Create global objects\n await obj.createGlobalObjects(this, this.HTML+this.HTML_END, this.HTML_GUEST+this.HTML_END, this.enabled);\n await obj.createMemberObjects(this, cfg, this.HTML_HISTORY + this.HTML_END, this.enabled);\n\n //create Fb devices\n if (this.GETPATH != null && this.GETPATH == true && this.config.fbdevices == true){\n const items = await this.Fb.getDeviceList(this, cfg, this.Fb);\n if (items != null){\n let res = await obj.createFbDeviceObjects(this, items, this.enabled);\n if (res === true) this.log.info('createFbDeviceObjects finished successfully');\n res = await obj.createMeshObjects(this, items, 0, this.enabled); //create channel 0 as default interface\n if (res === true) this.log.info('createMeshObjects finished successfully');\n }else{\n this.log.error('createFbDeviceObjects -> ' + \"can't read devices from fritzbox! Adapter stops\");\n adapterObj = await this.getForeignObjectAsync(`system.adapter.${this.namespace}`);\n adapterObj.common.enabled = false; // Adapter ausschalten\n await this.setForeignObjectAsync(`system.adapter.${this.namespace}`, adapterObj);\n }\n await this.resyncFbObjects(items);\n }\n\n // states changes inside the adapters namespace are subscribed\n if (this.SETENABLE === true && this.WLAN3INFO === true) this.subscribeStates(`${this.namespace}` + '.guest.wlan');\n if (this.DISALLOWWANACCESSBYIP === true && this.GETWANACCESSBYIP === true) this.subscribeStates(`${this.namespace}` + '.fb-devices.*.disabled'); \n if (this.REBOOT === true) this.subscribeStates(`${this.namespace}` + '.reboot'); \n\n //get uuid for transaction\n //const sSid = await Fb.soapAction(Fb, '/upnp/control/deviceconfig', urn + 'DeviceConfig:1', 'X_GenerateUUID', null);\n //const uuid = sSid['NewUUID'].replace('uuid:', '');\n this.loop(10, 55, cronFamily, cron, cfg);\n } catch (error) {\n this.showError('onReady: ' + error);\n }\n }", "async onReady() {\n // Initialize your adapter here\n\n this.setState(\"info.connection\", false, true);\n // Reset the connection indicator during startup\n this.type = \"VW\";\n this.country = \"DE\";\n this.clientId = \"9496332b-ea03-4091-a224-8c746b885068%40apps_vw-dilab_com\";\n this.xclientId = \"38761134-34d0-41f3-9a73-c4be88d7d337\";\n this.scope = \"openid%20profile%20mbb%20email%20cars%20birthdate%20badge%20address%20vin\";\n this.redirect = \"carnet%3A%2F%2Fidentity-kit%2Flogin\";\n this.xrequest = \"de.volkswagen.carnet.eu.eremote\";\n this.responseType = \"id_token%20token%20code\";\n this.xappversion = \"5.1.2\";\n this.xappname = \"eRemote\";\n if (this.config.type === \"id\") {\n this.type = \"Id\";\n this.country = \"DE\";\n this.clientId = \"a24fba63-34b3-4d43-b181-942111e6bda8@apps_vw-dilab_com\";\n this.xclientId = \"\";\n this.scope = \"openid profile badge cars dealers birthdate vin\";\n this.redirect = \"weconnect://authenticated\";\n this.xrequest = \"com.volkswagen.weconnect\";\n this.responseType = \"code id_token token\";\n this.xappversion = \"\";\n this.xappname = \"\";\n }\n if (this.config.type === \"skoda\") {\n this.type = \"Skoda\";\n this.country = \"CZ\";\n this.clientId = \"7f045eee-7003-4379-9968-9355ed2adb06%40apps_vw-dilab_com\";\n this.xclientId = \"28cd30c6-dee7-4529-a0e6-b1e07ff90b79\";\n this.scope = \"openid%20profile%20phone%20address%20cars%20email%20birthdate%20badge%20dealers%20driversLicense%20mbb\";\n this.redirect = \"skodaconnect%3A%2F%2Foidc.login%2F\";\n this.xrequest = \"cz.skodaauto.connect\";\n this.responseType = \"code%20id_token\";\n this.xappversion = \"3.2.6\";\n this.xappname = \"cz.skodaauto.connect\";\n }\n if (this.config.type === \"seat\") {\n this.type = \"Seat\";\n this.country = \"ES\";\n this.clientId = \"50f215ac-4444-4230-9fb1-fe15cd1a9bcc@apps_vw-dilab_com\";\n this.xclientId = \"9dcc70f0-8e79-423a-a3fa-4065d99088b4\";\n this.scope = \"openid profile mbb cars birthdate nickname address phone\";\n this.redirect = \"seatconnect://identity-kit/login\";\n this.xrequest = \"cz.skodaauto.connect\";\n this.responseType = \"code%20id_token\";\n this.xappversion = \"1.1.29\";\n this.xappname = \"SEATConnect\";\n }\n if (this.config.type === \"audi\") {\n this.type = \"Audi\";\n this.country = \"DE\";\n this.clientId = \"09b6cbec-cd19-4589-82fd-363dfa8c24da@apps_vw-dilab_com\";\n this.xclientId = \"77869e21-e30a-4a92-b016-48ab7d3db1d8\";\n this.scope = \"address profile badge birthdate birthplace nationalIdentifier nationality profession email vin phone nickname name picture mbb gallery openid\";\n this.redirect = \"myaudi:///\";\n this.xrequest = \"de.myaudi.mobile.assistant\";\n this.responseType = \"token%20id_token\";\n // this.responseType = \"code\";\n this.xappversion = \"3.22.0\";\n this.xappname = \"myAudi\";\n }\n if (this.config.type === \"go\") {\n this.type = \"\";\n this.country = \"\";\n this.clientId = \"ac42b0fa-3b11-48a0-a941-43a399e7ef84@apps_vw-dilab_com\";\n this.xclientId = \"\";\n this.scope = \"openid%20profile%20address%20email%20phone\";\n this.redirect = \"vwconnect%3A%2F%2Fde.volkswagen.vwconnect%2Foauth2redirect%2Fidentitykit\";\n this.xrequest = \"\";\n this.responseType = \"code\";\n this.xappversion = \"\";\n this.xappname = \"\";\n }\n if (this.config.interval === 0) {\n this.log.info(\"Interval of 0 is not allowed reset to 1\");\n this.config.interval = 1;\n }\n this.login()\n .then(() => {\n this.log.debug(\"Login successful\");\n this.setState(\"info.connection\", true, true);\n this.getPersonalData()\n .then(() => {\n this.getVehicles()\n .then(() => {\n if (this.config.type !== \"go\") {\n this.vinArray.forEach((vin) => {\n if (this.config.type === \"id\") {\n this.getIdStatus(vin).catch(() => {\n this.log.error(\"get id status Failed\");\n });\n } else {\n this.getHomeRegion(vin)\n .catch(() => {\n this.log.debug(\"get home region Failed\");\n })\n .finally(() => {\n this.getVehicleData(vin).catch(() => {\n this.log.error(\"get vehicle data Failed\");\n });\n this.getVehicleRights(vin).catch(() => {\n this.log.error(\"get vehicle rights Failed\");\n });\n this.requestStatusUpdate(vin)\n .finally(() => {\n this.statesArray.forEach((state) => {\n this.getVehicleStatus(vin, state.url, state.path, state.element, state.element2, state.element3, state.element4).catch(() => {\n this.log.debug(\"error while getting \" + state.url);\n });\n });\n })\n .catch(() => {\n this.log.error(\"status update Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"Error getting home region\");\n });\n }\n });\n }\n\n this.updateInterval = setInterval(() => {\n if (this.config.type === \"go\") {\n this.getVehicles();\n return;\n } else if (this.config.type === \"id\") {\n this.vinArray.forEach((vin) => {\n this.getIdStatus(vin).catch(() => {\n this.log.error(\"get id status Failed\");\n this.refreshIDToken().catch(() => {});\n });\n this.getWcData();\n });\n return;\n } else {\n this.vinArray.forEach((vin) => {\n this.statesArray.forEach((state) => {\n this.getVehicleStatus(vin, state.url, state.path, state.element, state.element2).catch(() => {\n this.log.debug(\"error while getting \" + state.url);\n });\n });\n });\n }\n }, this.config.interval * 60 * 1000);\n\n if (this.config.forceinterval > 0) {\n this.fupdateInterval = setInterval(() => {\n if (this.config.type === \"go\") {\n this.getVehicles();\n return;\n }\n this.vinArray.forEach((vin) => {\n this.requestStatusUpdate(vin).catch(() => {\n this.log.error(\"force status update Failed\");\n });\n });\n }, this.config.forceinterval * 60 * 1000);\n }\n })\n .catch(() => {\n this.log.error(\"Get Vehicles Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"get personal data Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"Login Failed\");\n });\n this.subscribeStates(\"*\");\n }", "started () {}", "_specializedInitialisation()\r\n\t{\r\n\t\tLogger.log(\"Specialisation for service AVTransport\", LogType.Info);\r\n\t\tvar relativeTime = this.getVariableByName(\"RelativeTimePosition\");\r\n\t\t//Implémentation pour OpenHome\r\n\t\tif (!relativeTime)\r\n\t\t\trelativeTime = this.getVariableByName(\"A_ARG_TYPE_GetPositionInfo_RelTime\");\r\n\t\tvar transportState = this.getVariableByName(\"TransportState\");\r\n\t\t//Implémentation pour OpenHome\r\n\t\tif (!transportState)\r\n\t\t\ttransportState = this.getVariableByName(\"A_ARG_TYPE_GetTransportInfo_CurrentTransportState\");\r\n\r\n\t\tif (transportState)\r\n\t\t{\r\n\t\t\ttransportState.on('updated', (variable, newVal) =>\r\n\t\t\t{\r\n\t\t\t\tLogger.log(\"On transportStateUpdate : \" + newVal, LogType.DEBUG);\r\n\t\t\t\tvar actPosInfo = this.getActionByName(\"GetPositionInfo\");\r\n\t\t\t\tvar actMediaInfo = this.getActionByName(\"GetMediaInfo\");\r\n\t\t\t\t/*\r\n\t\t\t\t“STOPPED” R\r\n\t\t\t\t“PLAYING” R\r\n\t\t\t\t“TRANSITIONING” O\r\n\t\t\t\t”PAUSED_PLAYBACK” O\r\n\t\t\t\t“PAUSED_RECORDING” O\r\n\t\t\t\t“RECORDING” O\r\n\t\t\t\t“NO_MEDIA_PRESENT”\r\n\t\t\t\t */\r\n\t\t\t\tif (relativeTime && !relativeTime.SendEvent && actPosInfo)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (this._intervalUpdateRelativeTime)\r\n\t\t\t\t\t\tclearInterval(this._intervalUpdateRelativeTime);\r\n\t\t\t\t\tif (newVal == \"PLAYING\" || newVal == \"RECORDING\")\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t} );\r\n\t\t\t\t\t\t//Déclenche la maj toutes les 4 secondes\r\n\t\t\t\t\t\tthis._intervalUpdateRelativeTime = setInterval(() =>{\r\n\t\t\t\t\t\t\t\t//Logger.log(\"On autoUpdate\", LogType.DEBUG);\r\n\t\t\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t}\t);\r\n\t\t\t\t\t\t\t}, 4000);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//else if (newVal == \"STOPPED\" || newVal == \"PAUSED_PLAYBACK\" || newVal == \"PAUSED_RECORDING\" || newVal == \"NO_MEDIA_PRESENT\")\r\n\t\t\t\t//{\r\n\t\t\t\t//\r\n\t\t\t\t//}\r\n\t\t\t\t//On met a jour les media info et position info pour etre sur de mettre a jour les Metadata(par defaut la freebox ne le fait pas ou plutot le fait mal)\r\n\t\t\t\tif (newVal == \"TRANSITIONING\")\r\n\t\t\t\t{\r\n\t\t\t\t\tif (actPosInfo)\r\n\t\t\t\t\t\tactPosInfo.execute(\t{InstanceID: 0}\t);\r\n\t\t\t\t\tif (actMediaInfo)\r\n\t\t\t\t\t\tactMediaInfo.execute(\t{InstanceID: 0} );\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (newVal == \"STOPPED\")\r\n\t\t\t\t{\r\n\t\t\t\t\tif (actPosInfo)\r\n\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t});\r\n\t\t\t\t\tif (actMediaInfo)\r\n\t\t\t\t\t\tactMediaInfo.execute(\t{\tInstanceID: 0 });\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}", "loadComponent(nodeURI, baseURI, callback_async /* nodeDescriptor */, errback_async /* errorMessage */) { // TODO: turn this into a generic xhr loader exposed as a kernel function?\n\n let self = this;\n\n if (nodeURI == self.kutility.protoNodeURI) {\n\n callback_async(self.kutility.protoNodeDescriptor);\n\n } else if (nodeURI.match(RegExp(\"^data:application/json;base64,\"))) {\n\n // Primarly for testing, parse one specific form of data URIs. We need to parse\n // these ourselves since Chrome can't load data URIs due to cross origin\n // restrictions.\n\n callback_async(JSON.parse(atob(nodeURI.substring(29)))); // TODO: support all data URIs\n\n } else {\n\n self.virtualTime.suspend(\"while loading \" + nodeURI); // suspend the queue\n\n let fetchUrl = self.remappedURI(nodeURI, baseURI);\n let dbName = fetchUrl.split(\".\").join(\"_\");\n\n const parseComp = function (f) {\n\n let result = JSON.parse(f);\n\n let nativeObject = result;\n // console.log(nativeObject);\n\n if (nativeObject) {\n callback_async(nativeObject);\n self.virtualTime.resume(\"after loading \" + nodeURI); // resume the queue; may invoke dispatch(), so call last before returning to the host\n\n } else {\n\n self.logger.warnx(\"loadComponent\", \"error loading\", nodeURI + \":\", error);\n errback_async(error);\n self.virtualTime.resume(\"after loading \" + nodeURI); // resume the queue; may invoke dispatch(), so call last before returning to the host\n }\n\n }\n\n\n //var fileName = \"\";\n // let userDB = _LCSDB.user(_LCS_WORLD_USER.pub); \n if (dbName.includes(\"proxy\")) {\n //userDB = await window._LCS_SYS_USER.get('proxy').then();\n let proxyDB = self.proxy ? _LCSDB.user(self.proxy) : _LCSDB.user(_LCS_WORLD_USER.pub);\n let fileName = dbName + '_json';\n let dbNode = proxyDB.get('proxy').get(fileName);\n let nodeProm = new Promise(res => dbNode.once(res));\n\n nodeProm.then(comp => {\n parseComp(comp);\n })\n\n // (function(r){\n // //console.log(r);\n // parseComp(r);\n\n // });\n\n } else {\n var worldName = dbName.split('/')[1];\n var fileName = dbName.split('/')[2];\n //+ '_json';\n\n if (!fileName) {\n worldName = self.helpers.appPath\n fileName = dbName + '_json';\n } else {\n fileName = fileName + '_json';\n }\n\n let dbNode = _LCSDB.user(_LCS_WORLD_USER.pub).get('worlds').path(worldName).get(fileName);\n\n let nodeProm = new Promise(res => dbNode.once(res))\n nodeProm.then(comp => {\n parseComp(comp);\n })\n\n // (function(r){\n // //console.log(r);\n // parseComp(r);\n\n // });\n }\n\n //console.log(source);\n\n //userDB.get(fileName).once(async function(res) {\n\n\n\n\n // }, {wait: 1000})\n }\n\n }", "async onReady() {\n // Initialize your adapter here\n await this.setObjectNotExistsAsync('speed', {\n type: 'channel',\n common: {\n name: 'speed'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.download', {\n type: 'state',\n common: {\n name: 'download',\n role: 'info.status',\n type: 'number',\n desc: 'Download speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.upload', {\n type: 'state',\n common: {\n name: 'upload',\n role: 'info.status',\n type: 'number',\n desc: 'Upload speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.ping', {\n type: 'state',\n common: {\n name: 'ping',\n role: 'info.status',\n type: 'number',\n desc: 'Ping Latency',\n def: 0,\n read: true,\n write: false,\n unit: 'ms',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.progress', {\n type: 'state',\n common: {\n name: 'progress',\n role: 'info.status',\n type: 'number',\n desc: 'Progress',\n def: 0,\n read: true,\n write: false,\n unit: '%',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.speedcheck', {\n type: 'state',\n common: {\n name: 'Run speed test',\n type: 'boolean',\n read: true,\n role: 'button',\n write: true,\n def: false\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress', {\n type: 'channel',\n common: {\n name: 'speed'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.download', {\n type: 'state',\n common: {\n name: 'download',\n role: 'info.status',\n type: 'number',\n desc: 'Download speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.upload', {\n type: 'state',\n common: {\n name: 'upload',\n role: 'info.status',\n type: 'number',\n desc: 'Upload speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.ping', {\n type: 'state',\n common: {\n name: 'ping',\n role: 'info.status',\n type: 'number',\n desc: 'Ping Latency',\n def: 0,\n read: true,\n write: false,\n unit: 'ms',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.progress', {\n type: 'state',\n common: {\n name: 'progress',\n role: 'info.status',\n type: 'number',\n desc: 'Progress',\n def: 0,\n read: true,\n write: false,\n unit: '%',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.speedcheck', {\n type: 'state',\n common: {\n name: 'Run speed test',\n type: 'boolean',\n read: true,\n role: 'button',\n write: true,\n def: false\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info', {\n type: 'channel',\n common: {\n name: 'Information'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info.externalip', {\n type: 'state',\n common: {\n name: 'External IP',\n role: 'info.status',\n type: 'string',\n desc: 'External IP',\n read: true,\n write: false,\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info.internalip', {\n type: 'state',\n common: {\n name: 'Internal IP',\n role: 'info.status',\n type: 'string',\n desc: 'Internal IP',\n read: true,\n write: false,\n },\n native: {},\n });\n this.subscribeStates('*');\n await this.setStateAsync('info.connection', { val: true, ack: true });\n // let result = await this.checkPasswordAsync('admin', 'iobroker');\n // this.log.info('check user admin pw iobroker: ' + result);\n // result = await this.checkGroupAsync('admin', 'admin');\n // this.log.info('check group user admin group admin: ' + result);\n if (this.config.polltime > 1) {\n this.log.info('Checking internet speed every ' + this.config.polltime + ' minutes');\n } else {\n this.log.info('Checking internet speed every ' + this.config.polltime + ' minute');\n }\n await this.start(this.config.polltime);\n }", "enqueue() {\n\n }", "started() { }", "onBrowserStart(browser) {\n\n }", "getPort2() {\n return 0;\n }", "requestReceived(request,response){\n if(this.config.log){\n const logData={\n method : request.method,\n url : request.url,\n headers : request.headers\n };\n\n this.config.logFunction(\n logData\n );\n }\n\n let uri = url.parse(request.url);\n uri.protocol='http';\n uri.host=uri.hostname=request.headers.host;\n uri.port=80;\n uri.query=querystring.parse(uri.query);\n\n if(request.connection.encrypted){\n uri.protocol='https';\n uri.port=443;\n }\n\n (\n function(){\n if(!uri.host){\n return;\n }\n const host=uri.host.split(':');\n\n if(!host[1]){\n return;\n }\n uri.host=uri.hostname=host[0];\n uri.port=host[1];\n }\n )();\n\n for(let key in uri){\n if(uri[key]!==null){\n continue;\n }\n uri[key]='';\n }\n\n request.uri=uri;\n\n if(\n this.onRawRequest(\n request,\n response,\n completeServing.bind(this)\n )\n ){\n return;\n };\n\n uri=uri.pathname;\n\n if (uri=='/'){\n uri=`/${this.config.server.index}`;\n }\n\n let hostname= [];\n\n if (request.headers.host !== undefined){\n hostname = request.headers.host.split(':');\n }\n\n let root = this.config.root;\n\n if(this.config.verbose){\n console.log(`${this.config.logID} REQUEST ###\\n\\n`,\n request.headers,'\\n',\n uri,'\\n\\n',\n hostname,'\\n\\n'\n );\n }\n\n if(this.config.domain!='0.0.0.0' && hostname.length > 0 && hostname[0]!=this.config.domain){\n if(!this.config.domains[hostname[0]]){\n if(this.config.verbose){\n console.log(`${this.config.logID} INVALID HOST ###\\n\\n`);\n }\n this.serveFile(hostname[0],false,response);\n return;\n }\n root=this.config.domains[hostname[0]];\n }\n\n\n if(this.config.verbose){\n console.log(`${this.config.logID} USING ROOT : ${root}###\\n\\n`);\n }\n\n if(uri.slice(-1)=='/'){\n uri+=this.config.server.index;\n }\n\n request.url=uri;\n request.serverRoot=root;\n\n request.body='';\n\n request.on(\n 'data',\n function(chunk){\n request.body+=chunk;\n }.bind(this)\n ).on(\n 'end',\n function(){\n if(this.config.verbose){\n console.log(`###REQUEST BODY :\n ${request.body}\n ###\n `);\n }\n\n requestBodyComplete.bind(this,request,response)();\n }.bind(this)\n );\n }", "function OnChannelOpen()\n{\n}", "connect() {\n throw new Error(\n 'The Message Bus is not currently supported in browser environments'\n );\n }", "constructor() {\n throw new Error('Not implemented');\n }", "constructor() {\n this._connectionResolver = new pip_services3_components_node_1.ConnectionResolver();\n this._maxKeySize = 250;\n this._maxExpiration = 2592000;\n this._maxValue = 1048576;\n this._poolSize = 5;\n this._reconnect = 10000;\n this._timeout = 5000;\n this._retries = 5;\n this._failures = 5;\n this._retry = 30000;\n this._remove = false;\n this._idle = 5000;\n this._client = null;\n }", "componentDidMount()\n {\n\n }", "function OfflineStreamProcessor(config) {\n config = config || {};\n var context = this.context;\n var eventBus = config.eventBus;\n var events = config.events;\n var errors = config.errors;\n var debug = config.debug;\n var constants = config.constants;\n var settings = config.settings;\n var dashConstants = config.dashConstants;\n var manifestId = config.id;\n var type = config.type;\n var streamInfo = config.streamInfo;\n var errHandler = config.errHandler;\n var mediaPlayerModel = config.mediaPlayerModel;\n var abrController = config.abrController;\n var playbackController = config.playbackController;\n var adapter = config.adapter;\n var dashMetrics = config.dashMetrics;\n var baseURLController = config.baseURLController;\n var timelineConverter = config.timelineConverter;\n var bitrate = config.bitrate;\n var offlineStoreController = config.offlineStoreController;\n var completedCb = config.callbacks && config.callbacks.completed;\n var progressCb = config.callbacks && config.callbacks.progression;\n var instance, logger, mediaInfo, indexHandler, representationController, fragmentModel, updating, downloadedSegments, isInitialized, segmentsController, isStopped;\n\n function setup() {\n resetInitialSettings();\n logger = debug.getLogger(instance);\n segmentsController = Object(_dash_controllers_SegmentsController__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(context).create({\n events: events,\n eventBus: eventBus,\n streamInfo: streamInfo,\n timelineConverter: timelineConverter,\n dashConstants: dashConstants,\n segmentBaseController: config.segmentBaseController,\n type: type\n });\n indexHandler = Object(_dash_DashHandler__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(context).create({\n streamInfo: streamInfo,\n type: type,\n timelineConverter: timelineConverter,\n dashMetrics: dashMetrics,\n mediaPlayerModel: mediaPlayerModel,\n baseURLController: baseURLController,\n errHandler: errHandler,\n settings: settings,\n // boxParser: boxParser,\n eventBus: eventBus,\n events: events,\n debug: debug,\n requestModifier: Object(_streaming_utils_RequestModifier__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(context).getInstance(),\n dashConstants: dashConstants,\n constants: constants,\n segmentsController: segmentsController,\n urlUtils: Object(_streaming_utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(context).getInstance()\n });\n representationController = Object(_dash_controllers_RepresentationController__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(context).create({\n streamInfo: streamInfo,\n type: type,\n abrController: abrController,\n dashMetrics: dashMetrics,\n playbackController: playbackController,\n timelineConverter: timelineConverter,\n dashConstants: dashConstants,\n events: events,\n eventBus: eventBus,\n errors: errors,\n segmentsController: segmentsController\n });\n fragmentModel = Object(_streaming_models_FragmentModel__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(context).create({\n streamInfo: streamInfo,\n dashMetrics: dashMetrics,\n fragmentLoader: Object(_streaming_FragmentLoader__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(context).create({\n dashMetrics: dashMetrics,\n mediaPlayerModel: mediaPlayerModel,\n errHandler: errHandler,\n requestModifier: Object(_streaming_utils_RequestModifier__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(context).getInstance(),\n settings: settings,\n eventBus: eventBus,\n events: events,\n errors: errors,\n constants: constants,\n dashConstants: dashConstants,\n urlUtils: Object(_streaming_utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(context).getInstance()\n }),\n debug: debug,\n eventBus: eventBus,\n events: events\n });\n eventBus.on(events.STREAM_REQUESTING_COMPLETED, onStreamRequestingCompleted, instance);\n eventBus.on(events.FRAGMENT_LOADING_COMPLETED, onFragmentLoadingCompleted, instance);\n }\n\n function initialize(_mediaInfo) {\n mediaInfo = _mediaInfo;\n indexHandler.initialize(false);\n updateRepresentation(mediaInfo);\n }\n\n function isInitRequest(request) {\n return request.type === 'InitializationSegment';\n }\n\n function onFragmentLoadingCompleted(e) {\n if (e.sender !== fragmentModel) {\n return;\n }\n\n if (e.request !== null) {\n var isInit = isInitRequest(e.request);\n var suffix = isInit ? 'init' : e.request.index;\n var fragmentName = e.request.representationId + '_' + suffix;\n offlineStoreController.storeFragment(manifestId, fragmentName, e.response).then(function () {\n if (!isInit) {\n // store current index and downloadedSegments number\n offlineStoreController.setRepresentationCurrentState(manifestId, e.request.representationId, {\n index: e.request.index,\n downloaded: downloadedSegments\n });\n }\n });\n }\n\n if (e.error && e.request.serviceLocation && !isStopped) {\n fragmentModel.executeRequest(e.request);\n } else {\n downloadedSegments++;\n download();\n }\n }\n\n function onStreamRequestingCompleted(e) {\n if (e.fragmentModel !== fragmentModel) {\n return;\n }\n\n logger.info(\"[\".concat(manifestId, \"] Stream is complete\"));\n stop();\n completedCb();\n }\n\n function getRepresentationController() {\n return representationController;\n }\n\n function getRepresentationId() {\n return representationController.getCurrentRepresentation().id;\n }\n /**\n * Stops download of fragments\n * @memberof OfflineStreamProcessor#\n */\n\n\n function stop() {\n if (isStopped) {\n return;\n }\n\n isStopped = true;\n }\n\n function removeExecutedRequestsBeforeTime(time) {\n if (fragmentModel) {\n fragmentModel.removeExecutedRequestsBeforeTime(time);\n }\n }\n /**\n * Execute init request for the represenation\n * @memberof OfflineStreamProcessor#\n */\n\n\n function getInitRequest() {\n if (!representationController.getCurrentRepresentation()) {\n return null;\n }\n\n return indexHandler.getInitRequest(getMediaInfo(), representationController.getCurrentRepresentation());\n }\n /**\n * Get next request\n * @memberof OfflineStreamProcessor#\n */\n\n\n function getNextRequest() {\n return indexHandler.getNextSegmentRequest(getMediaInfo(), representationController.getCurrentRepresentation());\n }\n /**\n * Start download\n * @memberof OfflineStreamProcessor#\n */\n\n\n function start() {\n if (representationController) {\n if (!representationController.getCurrentRepresentation()) {\n throw new Error('Start denied to OfflineStreamProcessor');\n }\n\n isStopped = false;\n offlineStoreController.getRepresentationCurrentState(manifestId, representationController.getCurrentRepresentation().id).then(function (state) {\n if (state) {\n indexHandler.setCurrentIndex(state.index);\n downloadedSegments = state.downloaded;\n }\n\n download();\n })[\"catch\"](function () {\n // start from beginining\n download();\n });\n }\n }\n /**\n * Performs download of fragment according to type\n * @memberof OfflineStreamProcessor#\n */\n\n\n function download() {\n if (isStopped) {\n return;\n }\n\n if (isNaN(representationController.getCurrentRepresentation())) {\n var request = null;\n\n if (!isInitialized) {\n request = getInitRequest();\n isInitialized = true;\n } else {\n request = getNextRequest(); // update progression : done here because availableSegmentsNumber is done in getNextRequest from dash handler\n\n updateProgression();\n }\n\n if (request) {\n logger.info(\"[\".concat(manifestId, \"] download request : \").concat(request.url));\n fragmentModel.executeRequest(request);\n } else {\n logger.info(\"[\".concat(manifestId, \"] no request to be downloaded\"));\n }\n }\n }\n /**\n * Update representation\n * @param {Object} mediaInfo - mediaInfo\n * @memberof OfflineStreamProcessor#\n */\n\n\n function updateRepresentation(mediaInfo) {\n updating = true;\n var voRepresentations = adapter.getVoRepresentations(mediaInfo); // get representation VO according to id.\n\n var quality = voRepresentations.findIndex(function (representation) {\n return representation.id === bitrate.id;\n });\n\n if (type !== constants.VIDEO && type !== constants.AUDIO && type !== constants.TEXT) {\n updating = false;\n return;\n }\n\n representationController.updateData(null, voRepresentations, type, mediaInfo.isFragmented, quality);\n }\n\n function isUpdating() {\n return updating;\n }\n\n function getType() {\n return type;\n }\n\n function getMediaInfo() {\n return mediaInfo;\n }\n\n function getAvailableSegmentsNumber() {\n return representationController.getCurrentRepresentation().availableSegmentsNumber + 1; // do not forget init segment\n }\n\n function updateProgression() {\n if (progressCb) {\n progressCb(instance, downloadedSegments, getAvailableSegmentsNumber());\n }\n }\n\n function resetInitialSettings() {\n isInitialized = false;\n downloadedSegments = 0;\n updating = false;\n }\n /**\n * Reset\n * @memberof OfflineStreamProcessor#\n */\n\n\n function reset() {\n resetInitialSettings();\n indexHandler.reset();\n eventBus.off(events.STREAM_REQUESTING_COMPLETED, onStreamRequestingCompleted, instance);\n eventBus.off(events.FRAGMENT_LOADING_COMPLETED, onFragmentLoadingCompleted, instance);\n }\n\n instance = {\n initialize: initialize,\n getMediaInfo: getMediaInfo,\n getRepresentationController: getRepresentationController,\n removeExecutedRequestsBeforeTime: removeExecutedRequestsBeforeTime,\n getType: getType,\n getRepresentationId: getRepresentationId,\n isUpdating: isUpdating,\n start: start,\n stop: stop,\n getAvailableSegmentsNumber: getAvailableSegmentsNumber,\n reset: reset\n };\n setup();\n return instance;\n}", "constructor() {\r\n }", "constructor() {\n\t\t// ...\n\t}", "static get STATUS() {\n return 0;\n }", "onReady() {\n return __awaiter(this, void 0, void 0, function* () {\n this.logger = new log_1.ioBrokerLogger(this.log);\n yield this.setObjectNotExistsAsync(\"verify_code\", {\n type: \"state\",\n common: {\n name: \"2FA verification code\",\n type: \"number\",\n role: \"state\",\n read: true,\n write: true,\n },\n native: {},\n });\n yield this.setObjectNotExistsAsync(\"info\", {\n type: \"channel\",\n common: {\n name: \"info\"\n },\n native: {},\n });\n yield this.setObjectNotExistsAsync(\"info.connection\", {\n type: \"state\",\n common: {\n name: \"Global connection\",\n type: \"boolean\",\n role: \"indicator.connection\",\n read: true,\n write: false,\n },\n native: {},\n });\n yield this.setStateAsync(\"info.connection\", { val: false, ack: true });\n yield this.setObjectNotExistsAsync(\"info.push_connection\", {\n type: \"state\",\n common: {\n name: \"Push notification connection\",\n type: \"boolean\",\n role: \"indicator.connection\",\n read: true,\n write: false,\n },\n native: {},\n });\n // Remove old states of previous adapter versions\n try {\n const schedule_modes = yield this.getStatesAsync(\"*.schedule_mode\");\n Object.keys(schedule_modes).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const push_notifications = yield this.getStatesAsync(\"push_notification.*\");\n Object.keys(push_notifications).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n yield this.delObjectAsync(\"push_notification\");\n }\n catch (error) {\n }\n try {\n const last_camera_url = yield this.getStatesAsync(\"*.last_camera_url\");\n Object.keys(last_camera_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const captured_pic_url = yield this.getStatesAsync(\"*.captured_pic_url\");\n Object.keys(captured_pic_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const person_identified = yield this.getStatesAsync(\"*.person_identified\");\n Object.keys(person_identified).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const last_captured_pic_url = yield this.getStatesAsync(\"*.last_captured_pic_url\");\n Object.keys(last_captured_pic_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const last_captured_pic_html = yield this.getStatesAsync(\"*.last_captured_pic_html\");\n Object.keys(last_captured_pic_html).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n // End\n // Reset event states if necessary (for example because of an unclean exit)\n yield this.initializeEvents(types_1.CameraStateID.PERSON_DETECTED);\n yield this.initializeEvents(types_1.CameraStateID.MOTION_DETECTED);\n yield this.initializeEvents(types_1.DoorbellStateID.RINGING);\n yield this.initializeEvents(types_1.IndoorCameraStateID.CRYING_DETECTED);\n yield this.initializeEvents(types_1.IndoorCameraStateID.SOUND_DETECTED);\n yield this.initializeEvents(types_1.IndoorCameraStateID.PET_DETECTED);\n try {\n if (fs.statSync(this.persistentFile).isFile()) {\n const fileContent = fs.readFileSync(this.persistentFile, \"utf8\");\n this.persistentData = JSON.parse(fileContent);\n }\n }\n catch (err) {\n this.logger.debug(\"No stored data from last exit found.\");\n }\n //TODO: Temporary Test to be removed!\n /*await this.setObjectNotExistsAsync(\"test_button\", {\n type: \"state\",\n common: {\n name: \"Test button\",\n type: \"boolean\",\n role: \"button\",\n read: false,\n write: true,\n },\n native: {},\n });\n this.subscribeStates(\"test_button\");\n await this.setObjectNotExistsAsync(\"test_button2\", {\n type: \"state\",\n common: {\n name: \"Test button2\",\n type: \"boolean\",\n role: \"button\",\n read: false,\n write: true,\n },\n native: {},\n });\n this.subscribeStates(\"test_button2\");*/\n // END\n this.subscribeStates(\"verify_code\");\n const systemConfig = yield this.getForeignObjectAsync(\"system.config\");\n let countryCode = undefined;\n let languageCode = undefined;\n if (systemConfig) {\n countryCode = i18n_iso_countries_1.getAlpha2Code(systemConfig.common.country, \"en\");\n if (i18n_iso_languages_1.isValid(systemConfig.common.language))\n languageCode = systemConfig.common.language;\n }\n try {\n const adapter_info = yield this.getForeignObjectAsync(`system.adapter.${this.namespace}`);\n if (adapter_info && adapter_info.common && adapter_info.common.version) {\n if (this.persistentData.version !== adapter_info.common.version) {\n const currentVersion = Number.parseFloat(utils_1.removeLastChar(adapter_info.common.version, \".\"));\n const previousVersion = this.persistentData.version !== \"\" && this.persistentData.version !== undefined ? Number.parseFloat(utils_1.removeLastChar(this.persistentData.version, \".\")) : 0;\n this.logger.debug(`Handling of adapter update - currentVersion: ${currentVersion} previousVersion: ${previousVersion}`);\n if (previousVersion < currentVersion) {\n yield utils_1.handleUpdate(this, this.logger, previousVersion);\n this.persistentData.version = adapter_info.common.version;\n this.writePersistentData();\n }\n }\n }\n }\n catch (error) {\n this.logger.error(`Handling of adapter update - Error:`, error);\n }\n this.eufy = new EufySecurityAPI.EufySecurity(this, this.logger, countryCode, languageCode);\n this.eufy.on(\"stations\", (stations) => this.handleStations(stations));\n this.eufy.on(\"devices\", (devices) => this.handleDevices(devices));\n this.eufy.on(\"push message\", (messages) => this.handlePushNotification(messages));\n this.eufy.on(\"connect\", () => this.onConnect());\n this.eufy.on(\"close\", () => this.onClose());\n this.eufy.on(\"livestream start\", (station, device, url) => this.onStartLivestream(station, device, url));\n this.eufy.on(\"livestream stop\", (station, device) => this.onStopLivestream(station, device));\n this.eufy.on(\"push connect\", () => this.onPushConnect());\n this.eufy.on(\"push close\", () => this.onPushClose());\n const api = this.eufy.getApi();\n if (this.persistentData.api_base && this.persistentData.api_base != \"\") {\n this.logger.debug(`Load previous api_base: ${this.persistentData.api_base}`);\n api.setAPIBase(this.persistentData.api_base);\n }\n if (this.persistentData.login_hash && this.persistentData.login_hash != \"\") {\n this.logger.debug(`Load previous login_hash: ${this.persistentData.login_hash}`);\n if (utils_1.md5(`${this.config.username}:${this.config.password}`) != this.persistentData.login_hash) {\n this.logger.info(`Authentication properties changed, invalidate saved cloud token.`);\n this.persistentData.cloud_token = \"\";\n this.persistentData.cloud_token_expiration = 0;\n this.persistentData.api_base = \"\";\n }\n }\n else {\n this.persistentData.cloud_token = \"\";\n this.persistentData.cloud_token_expiration = 0;\n }\n if (this.persistentData.cloud_token && this.persistentData.cloud_token != \"\") {\n this.logger.debug(`Load previous token: ${this.persistentData.cloud_token} token_expiration: ${this.persistentData.cloud_token_expiration}`);\n api.setToken(this.persistentData.cloud_token);\n api.setTokenExpiration(new Date(this.persistentData.cloud_token_expiration));\n }\n if (!this.persistentData.openudid || this.persistentData.openudid == \"\") {\n this.persistentData.openudid = utils_1.generateUDID();\n this.logger.debug(`Generated new openudid: ${this.persistentData.openudid}`);\n }\n api.setOpenUDID(this.persistentData.openudid);\n if (!this.persistentData.serial_number || this.persistentData.serial_number == \"\") {\n this.persistentData.serial_number = utils_1.generateSerialnumber(12);\n this.logger.debug(`Generated new serial_number: ${this.persistentData.serial_number}`);\n }\n api.setSerialNumber(this.persistentData.serial_number);\n yield this.eufy.logon();\n });\n }", "function AppMeasurement(r){var a=this;a.version=\"2.8.2\";var k=window;k.s_c_in||(k.s_c_il=[],k.s_c_in=0);a._il=k.s_c_il;a._in=k.s_c_in;a._il[a._in]=a;k.s_c_in++;a._c=\"s_c\";var p=k.AppMeasurement.Xb;p||(p=null);var n=k,m,s;try{for(m=n.parent,s=n.location;m&&m.location&&s&&\"\"+m.location!=\"\"+s&&n.location&&\"\"+m.location!=\"\"+n.location&&m.location.host==s.host;)n=m,m=n.parent}catch(u){}a.F=function(a){try{console.log(a)}catch(b){}};a.Oa=function(a){return\"\"+parseInt(a)==\"\"+a};a.replace=function(a,b,d){return!a||\r\n0>a.indexOf(b)?a:a.split(b).join(d)};a.escape=function(c){var b,d;if(!c)return c;c=encodeURIComponent(c);for(b=0;7>b;b++)d=\"+~!*()'\".substring(b,b+1),0<=c.indexOf(d)&&(c=a.replace(c,d,\"%\"+d.charCodeAt(0).toString(16).toUpperCase()));return c};a.unescape=function(c){if(!c)return c;c=0<=c.indexOf(\"+\")?a.replace(c,\"+\",\" \"):c;try{return decodeURIComponent(c)}catch(b){}return unescape(c)};a.Fb=function(){var c=k.location.hostname,b=a.fpCookieDomainPeriods,d;b||(b=a.cookieDomainPeriods);if(c&&!a.Ga&&!/^[0-9.]+$/.test(c)&&\r\n(b=b?parseInt(b):2,b=2<b?b:2,d=c.lastIndexOf(\".\"),0<=d)){for(;0<=d&&1<b;)d=c.lastIndexOf(\".\",d-1),b--;a.Ga=0<d?c.substring(d):c}return a.Ga};a.c_r=a.cookieRead=function(c){c=a.escape(c);var b=\" \"+a.d.cookie,d=b.indexOf(\" \"+c+\"=\"),f=0>d?d:b.indexOf(\";\",d);c=0>d?\"\":a.unescape(b.substring(d+2+c.length,0>f?b.length:f));return\"[[B]]\"!=c?c:\"\"};a.c_w=a.cookieWrite=function(c,b,d){var f=a.Fb(),e=a.cookieLifetime,g;b=\"\"+b;e=e?(\"\"+e).toUpperCase():\"\";d&&\"SESSION\"!=e&&\"NONE\"!=e&&((g=\"\"!=b?parseInt(e?e:0):-60)?\r\n(d=new Date,d.setTime(d.getTime()+1E3*g)):1==d&&(d=new Date,g=d.getYear(),d.setYear(g+5+(1900>g?1900:0))));return c&&\"NONE\"!=e?(a.d.cookie=a.escape(c)+\"=\"+a.escape(\"\"!=b?b:\"[[B]]\")+\"; path=/;\"+(d&&\"SESSION\"!=e?\" expires=\"+d.toUTCString()+\";\":\"\")+(f?\" domain=\"+f+\";\":\"\"),a.cookieRead(c)==b):0};a.Cb=function(){var c=a.Util.getIeVersion();\"number\"===typeof c&&10>c&&(a.unsupportedBrowser=!0,a.rb(a,function(){}))};a.rb=function(a,b){for(var d in a)a.hasOwnProperty(d)&&\"function\"===typeof a[d]&&(a[d]=b)};\r\na.L=[];a.ja=function(c,b,d){if(a.Ha)return 0;a.maxDelay||(a.maxDelay=250);var f=0,e=(new Date).getTime()+a.maxDelay,g=a.d.visibilityState,h=[\"webkitvisibilitychange\",\"visibilitychange\"];g||(g=a.d.webkitVisibilityState);if(g&&\"prerender\"==g){if(!a.ka)for(a.ka=1,d=0;d<h.length;d++)a.d.addEventListener(h[d],function(){var c=a.d.visibilityState;c||(c=a.d.webkitVisibilityState);\"visible\"==c&&(a.ka=0,a.delayReady())});f=1;e=0}else d||a.p(\"_d\")&&(f=1);f&&(a.L.push({m:c,a:b,t:e}),a.ka||setTimeout(a.delayReady,\r\na.maxDelay));return f};a.delayReady=function(){var c=(new Date).getTime(),b=0,d;for(a.p(\"_d\")?b=1:a.za();0<a.L.length;){d=a.L.shift();if(b&&!d.t&&d.t>c){a.L.unshift(d);setTimeout(a.delayReady,parseInt(a.maxDelay/2));break}a.Ha=1;a[d.m].apply(a,d.a);a.Ha=0}};a.setAccount=a.sa=function(c){var b,d;if(!a.ja(\"setAccount\",arguments))if(a.account=c,a.allAccounts)for(b=a.allAccounts.concat(c.split(\",\")),a.allAccounts=[],b.sort(),d=0;d<b.length;d++)0!=d&&b[d-1]==b[d]||a.allAccounts.push(b[d]);else a.allAccounts=\r\nc.split(\",\")};a.foreachVar=function(c,b){var d,f,e,g,h=\"\";e=f=\"\";if(a.lightProfileID)d=a.P,(h=a.lightTrackVars)&&(h=\",\"+h+\",\"+a.oa.join(\",\")+\",\");else{d=a.g;if(a.pe||a.linkType)h=a.linkTrackVars,f=a.linkTrackEvents,a.pe&&(e=a.pe.substring(0,1).toUpperCase()+a.pe.substring(1),a[e]&&(h=a[e].Vb,f=a[e].Ub));h&&(h=\",\"+h+\",\"+a.H.join(\",\")+\",\");f&&h&&(h+=\",events,\")}b&&(b=\",\"+b+\",\");for(f=0;f<d.length;f++)e=d[f],(g=a[e])&&(!h||0<=h.indexOf(\",\"+e+\",\"))&&(!b||0<=b.indexOf(\",\"+e+\",\"))&&c(e,g)};a.r=function(c,\r\nb,d,f,e){var g=\"\",h,l,k,q,m=0;\"contextData\"==c&&(c=\"c\");if(b){for(h in b)if(!(Object.prototype[h]||e&&h.substring(0,e.length)!=e)&&b[h]&&(!d||0<=d.indexOf(\",\"+(f?f+\".\":\"\")+h+\",\"))){k=!1;if(m)for(l=0;l<m.length;l++)h.substring(0,m[l].length)==m[l]&&(k=!0);if(!k&&(\"\"==g&&(g+=\"&\"+c+\".\"),l=b[h],e&&(h=h.substring(e.length)),0<h.length))if(k=h.indexOf(\".\"),0<k)l=h.substring(0,k),k=(e?e:\"\")+l+\".\",m||(m=[]),m.push(k),g+=a.r(l,b,d,f,k);else if(\"boolean\"==typeof l&&(l=l?\"true\":\"false\"),l){if(\"retrieveLightData\"==\r\nf&&0>e.indexOf(\".contextData.\"))switch(k=h.substring(0,4),q=h.substring(4),h){case \"transactionID\":h=\"xact\";break;case \"channel\":h=\"ch\";break;case \"campaign\":h=\"v0\";break;default:a.Oa(q)&&(\"prop\"==k?h=\"c\"+q:\"eVar\"==k?h=\"v\"+q:\"list\"==k?h=\"l\"+q:\"hier\"==k&&(h=\"h\"+q,l=l.substring(0,255)))}g+=\"&\"+a.escape(h)+\"=\"+a.escape(l)}}\"\"!=g&&(g+=\"&.\"+c)}return g};a.usePostbacks=0;a.Ib=function(){var c=\"\",b,d,f,e,g,h,l,k,q=\"\",m=\"\",n=e=\"\";if(a.lightProfileID)b=a.P,(q=a.lightTrackVars)&&(q=\",\"+q+\",\"+a.oa.join(\",\")+\r\n\",\");else{b=a.g;if(a.pe||a.linkType)q=a.linkTrackVars,m=a.linkTrackEvents,a.pe&&(e=a.pe.substring(0,1).toUpperCase()+a.pe.substring(1),a[e]&&(q=a[e].Vb,m=a[e].Ub));q&&(q=\",\"+q+\",\"+a.H.join(\",\")+\",\");m&&(m=\",\"+m+\",\",q&&(q+=\",events,\"));a.events2&&(n+=(\"\"!=n?\",\":\"\")+a.events2)}if(a.visitor&&a.visitor.getCustomerIDs){e=p;if(g=a.visitor.getCustomerIDs())for(d in g)Object.prototype[d]||(f=g[d],\"object\"==typeof f&&(e||(e={}),f.id&&(e[d+\".id\"]=f.id),f.authState&&(e[d+\".as\"]=f.authState)));e&&(c+=a.r(\"cid\",\r\ne))}a.AudienceManagement&&a.AudienceManagement.isReady()&&(c+=a.r(\"d\",a.AudienceManagement.getEventCallConfigParams()));for(d=0;d<b.length;d++){e=b[d];g=a[e];f=e.substring(0,4);h=e.substring(4);g||(\"events\"==e&&n?(g=n,n=\"\"):\"marketingCloudOrgID\"==e&&a.visitor&&(g=a.visitor.marketingCloudOrgID));if(g&&(!q||0<=q.indexOf(\",\"+e+\",\"))){switch(e){case \"customerPerspective\":e=\"cp\";break;case \"marketingCloudOrgID\":e=\"mcorgid\";break;case \"supplementalDataID\":e=\"sdid\";break;case \"timestamp\":e=\"ts\";break;case \"dynamicVariablePrefix\":e=\r\n\"D\";break;case \"visitorID\":e=\"vid\";break;case \"marketingCloudVisitorID\":e=\"mid\";break;case \"analyticsVisitorID\":e=\"aid\";break;case \"audienceManagerLocationHint\":e=\"aamlh\";break;case \"audienceManagerBlob\":e=\"aamb\";break;case \"authState\":e=\"as\";break;case \"pageURL\":e=\"g\";255<g.length&&(a.pageURLRest=g.substring(255),g=g.substring(0,255));break;case \"pageURLRest\":e=\"-g\";break;case \"referrer\":e=\"r\";break;case \"vmk\":case \"visitorMigrationKey\":e=\"vmt\";break;case \"visitorMigrationServer\":e=\"vmf\";a.ssl&&\r\na.visitorMigrationServerSecure&&(g=\"\");break;case \"visitorMigrationServerSecure\":e=\"vmf\";!a.ssl&&a.visitorMigrationServer&&(g=\"\");break;case \"charSet\":e=\"ce\";break;case \"visitorNamespace\":e=\"ns\";break;case \"cookieDomainPeriods\":e=\"cdp\";break;case \"cookieLifetime\":e=\"cl\";break;case \"variableProvider\":e=\"vvp\";break;case \"currencyCode\":e=\"cc\";break;case \"channel\":e=\"ch\";break;case \"transactionID\":e=\"xact\";break;case \"campaign\":e=\"v0\";break;case \"latitude\":e=\"lat\";break;case \"longitude\":e=\"lon\";break;\r\ncase \"resolution\":e=\"s\";break;case \"colorDepth\":e=\"c\";break;case \"javascriptVersion\":e=\"j\";break;case \"javaEnabled\":e=\"v\";break;case \"cookiesEnabled\":e=\"k\";break;case \"browserWidth\":e=\"bw\";break;case \"browserHeight\":e=\"bh\";break;case \"connectionType\":e=\"ct\";break;case \"homepage\":e=\"hp\";break;case \"events\":n&&(g+=(\"\"!=g?\",\":\"\")+n);if(m)for(h=g.split(\",\"),g=\"\",f=0;f<h.length;f++)l=h[f],k=l.indexOf(\"=\"),0<=k&&(l=l.substring(0,k)),k=l.indexOf(\":\"),0<=k&&(l=l.substring(0,k)),0<=m.indexOf(\",\"+l+\",\")&&(g+=\r\n(g?\",\":\"\")+h[f]);break;case \"events2\":g=\"\";break;case \"contextData\":c+=a.r(\"c\",a[e],q,e);g=\"\";break;case \"lightProfileID\":e=\"mtp\";break;case \"lightStoreForSeconds\":e=\"mtss\";a.lightProfileID||(g=\"\");break;case \"lightIncrementBy\":e=\"mti\";a.lightProfileID||(g=\"\");break;case \"retrieveLightProfiles\":e=\"mtsr\";break;case \"deleteLightProfiles\":e=\"mtsd\";break;case \"retrieveLightData\":a.retrieveLightProfiles&&(c+=a.r(\"mts\",a[e],q,e));g=\"\";break;default:a.Oa(h)&&(\"prop\"==f?e=\"c\"+h:\"eVar\"==f?e=\"v\"+h:\"list\"==\r\nf?e=\"l\"+h:\"hier\"==f&&(e=\"h\"+h,g=g.substring(0,255)))}g&&(c+=\"&\"+e+\"=\"+(\"pev\"!=e.substring(0,3)?a.escape(g):g))}\"pev3\"==e&&a.e&&(c+=a.e)}a.na&&(c+=\"&lrt=\"+a.na,a.na=null);return c};a.D=function(a){var b=a.tagName;if(\"undefined\"!=\"\"+a.$b||\"undefined\"!=\"\"+a.Qb&&\"HTML\"!=(\"\"+a.Qb).toUpperCase())return\"\";b=b&&b.toUpperCase?b.toUpperCase():\"\";\"SHAPE\"==b&&(b=\"\");b&&((\"INPUT\"==b||\"BUTTON\"==b)&&a.type&&a.type.toUpperCase?b=a.type.toUpperCase():!b&&a.href&&(b=\"A\"));return b};a.Ka=function(a){var b=k.location,\r\nd=a.href?a.href:\"\",f,e,g;f=d.indexOf(\":\");e=d.indexOf(\"?\");g=d.indexOf(\"/\");d&&(0>f||0<=e&&f>e||0<=g&&f>g)&&(e=a.protocol&&1<a.protocol.length?a.protocol:b.protocol?b.protocol:\"\",f=b.pathname.lastIndexOf(\"/\"),d=(e?e+\"//\":\"\")+(a.host?a.host:b.host?b.host:\"\")+(\"/\"!=d.substring(0,1)?b.pathname.substring(0,0>f?0:f)+\"/\":\"\")+d);return d};a.M=function(c){var b=a.D(c),d,f,e=\"\",g=0;return b&&(d=c.protocol,f=c.onclick,!c.href||\"A\"!=b&&\"AREA\"!=b||f&&d&&!(0>d.toLowerCase().indexOf(\"javascript\"))?f?(e=a.replace(a.replace(a.replace(a.replace(\"\"+\r\nf,\"\\r\",\"\"),\"\\n\",\"\"),\"\\t\",\"\"),\" \",\"\"),g=2):\"INPUT\"==b||\"SUBMIT\"==b?(c.value?e=c.value:c.innerText?e=c.innerText:c.textContent&&(e=c.textContent),g=3):\"IMAGE\"==b&&c.src&&(e=c.src):e=a.Ka(c),e)?{id:e.substring(0,100),type:g}:0};a.Yb=function(c){for(var b=a.D(c),d=a.M(c);c&&!d&&\"BODY\"!=b;)if(c=c.parentElement?c.parentElement:c.parentNode)b=a.D(c),d=a.M(c);d&&\"BODY\"!=b||(c=0);c&&(b=c.onclick?\"\"+c.onclick:\"\",0<=b.indexOf(\".tl(\")||0<=b.indexOf(\".trackLink(\"))&&(c=0);return c};a.Pb=function(){var c,b,d=a.linkObject,\r\nf=a.linkType,e=a.linkURL,g,h;a.pa=1;d||(a.pa=0,d=a.clickObject);if(d){c=a.D(d);for(b=a.M(d);d&&!b&&\"BODY\"!=c;)if(d=d.parentElement?d.parentElement:d.parentNode)c=a.D(d),b=a.M(d);b&&\"BODY\"!=c||(d=0);if(d&&!a.linkObject){var l=d.onclick?\"\"+d.onclick:\"\";if(0<=l.indexOf(\".tl(\")||0<=l.indexOf(\".trackLink(\"))d=0}}else a.pa=1;!e&&d&&(e=a.Ka(d));e&&!a.linkLeaveQueryString&&(g=e.indexOf(\"?\"),0<=g&&(e=e.substring(0,g)));if(!f&&e){var m=0,q=0,n;if(a.trackDownloadLinks&&a.linkDownloadFileTypes)for(l=e.toLowerCase(),\r\ng=l.indexOf(\"?\"),h=l.indexOf(\"#\"),0<=g?0<=h&&h<g&&(g=h):g=h,0<=g&&(l=l.substring(0,g)),g=a.linkDownloadFileTypes.toLowerCase().split(\",\"),h=0;h<g.length;h++)(n=g[h])&&l.substring(l.length-(n.length+1))==\".\"+n&&(f=\"d\");if(a.trackExternalLinks&&!f&&(l=e.toLowerCase(),a.Na(l)&&(a.linkInternalFilters||(a.linkInternalFilters=k.location.hostname),g=0,a.linkExternalFilters?(g=a.linkExternalFilters.toLowerCase().split(\",\"),m=1):a.linkInternalFilters&&(g=a.linkInternalFilters.toLowerCase().split(\",\")),g))){for(h=\r\n0;h<g.length;h++)n=g[h],0<=l.indexOf(n)&&(q=1);q?m&&(f=\"e\"):m||(f=\"e\")}}a.linkObject=d;a.linkURL=e;a.linkType=f;if(a.trackClickMap||a.trackInlineStats)a.e=\"\",d&&(f=a.pageName,e=1,d=d.sourceIndex,f||(f=a.pageURL,e=0),k.s_objectID&&(b.id=k.s_objectID,d=b.type=1),f&&b&&b.id&&c&&(a.e=\"&pid=\"+a.escape(f.substring(0,255))+(e?\"&pidt=\"+e:\"\")+\"&oid=\"+a.escape(b.id.substring(0,100))+(b.type?\"&oidt=\"+b.type:\"\")+\"&ot=\"+c+(d?\"&oi=\"+d:\"\")))};a.Jb=function(){var c=a.pa,b=a.linkType,d=a.linkURL,f=a.linkName;b&&(d||\r\nf)&&(b=b.toLowerCase(),\"d\"!=b&&\"e\"!=b&&(b=\"o\"),a.pe=\"lnk_\"+b,a.pev1=d?a.escape(d):\"\",a.pev2=f?a.escape(f):\"\",c=1);a.abort&&(c=0);if(a.trackClickMap||a.trackInlineStats||a.ActivityMap){var b={},d=0,e=a.cookieRead(\"s_sq\"),g=e?e.split(\"&\"):0,h,l,k,e=0;if(g)for(h=0;h<g.length;h++)l=g[h].split(\"=\"),f=a.unescape(l[0]).split(\",\"),l=a.unescape(l[1]),b[l]=f;f=a.account.split(\",\");h={};for(k in a.contextData)k&&!Object.prototype[k]&&\"a.activitymap.\"==k.substring(0,14)&&(h[k]=a.contextData[k],a.contextData[k]=\r\n\"\");a.e=a.r(\"c\",h)+(a.e?a.e:\"\");if(c||a.e){c&&!a.e&&(e=1);for(l in b)if(!Object.prototype[l])for(k=0;k<f.length;k++)for(e&&(g=b[l].join(\",\"),g==a.account&&(a.e+=(\"&\"!=l.charAt(0)?\"&\":\"\")+l,b[l]=[],d=1)),h=0;h<b[l].length;h++)g=b[l][h],g==f[k]&&(e&&(a.e+=\"&u=\"+a.escape(g)+(\"&\"!=l.charAt(0)?\"&\":\"\")+l+\"&u=0\"),b[l].splice(h,1),d=1);c||(d=1);if(d){e=\"\";h=2;!c&&a.e&&(e=a.escape(f.join(\",\"))+\"=\"+a.escape(a.e),h=1);for(l in b)!Object.prototype[l]&&0<h&&0<b[l].length&&(e+=(e?\"&\":\"\")+a.escape(b[l].join(\",\"))+\r\n\"=\"+a.escape(l),h--);a.cookieWrite(\"s_sq\",e)}}}return c};a.Kb=function(){if(!a.Tb){var c=new Date,b=n.location,d,f,e=f=d=\"\",g=\"\",h=\"\",l=\"1.2\",k=a.cookieWrite(\"s_cc\",\"true\",0)?\"Y\":\"N\",m=\"\",p=\"\";if(c.setUTCDate&&(l=\"1.3\",(0).toPrecision&&(l=\"1.5\",c=[],c.forEach))){l=\"1.6\";f=0;d={};try{f=new Iterator(d),f.next&&(l=\"1.7\",c.reduce&&(l=\"1.8\",l.trim&&(l=\"1.8.1\",Date.parse&&(l=\"1.8.2\",Object.create&&(l=\"1.8.5\")))))}catch(r){}}d=screen.width+\"x\"+screen.height;e=navigator.javaEnabled()?\"Y\":\"N\";f=screen.pixelDepth?\r\nscreen.pixelDepth:screen.colorDepth;g=a.w.innerWidth?a.w.innerWidth:a.d.documentElement.offsetWidth;h=a.w.innerHeight?a.w.innerHeight:a.d.documentElement.offsetHeight;try{a.b.addBehavior(\"#default#homePage\"),m=a.b.Zb(b)?\"Y\":\"N\"}catch(s){}try{a.b.addBehavior(\"#default#clientCaps\"),p=a.b.connectionType}catch(t){}a.resolution=d;a.colorDepth=f;a.javascriptVersion=l;a.javaEnabled=e;a.cookiesEnabled=k;a.browserWidth=g;a.browserHeight=h;a.connectionType=p;a.homepage=m;a.Tb=1}};a.Q={};a.loadModule=function(c,\r\nb){var d=a.Q[c];if(!d){d=k[\"AppMeasurement_Module_\"+c]?new k[\"AppMeasurement_Module_\"+c](a):{};a.Q[c]=a[c]=d;d.kb=function(){return d.qb};d.sb=function(b){if(d.qb=b)a[c+\"_onLoad\"]=b,a.ja(c+\"_onLoad\",[a,d],1)||b(a,d)};try{Object.defineProperty?Object.defineProperty(d,\"onLoad\",{get:d.kb,set:d.sb}):d._olc=1}catch(f){d._olc=1}}b&&(a[c+\"_onLoad\"]=b,a.ja(c+\"_onLoad\",[a,d],1)||b(a,d))};a.p=function(c){var b,d;for(b in a.Q)if(!Object.prototype[b]&&(d=a.Q[b])&&(d._olc&&d.onLoad&&(d._olc=0,d.onLoad(a,d)),d[c]&&\r\nd[c]()))return 1;return 0};a.Mb=function(){var c=Math.floor(1E13*Math.random()),b=a.visitorSampling,d=a.visitorSamplingGroup,d=\"s_vsn_\"+(a.visitorNamespace?a.visitorNamespace:a.account)+(d?\"_\"+d:\"\"),f=a.cookieRead(d);if(b){b*=100;f&&(f=parseInt(f));if(!f){if(!a.cookieWrite(d,c))return 0;f=c}if(f%1E4>b)return 0}return 1};a.R=function(c,b){var d,f,e,g,h,l;for(d=0;2>d;d++)for(f=0<d?a.Ca:a.g,e=0;e<f.length;e++)if(g=f[e],(h=c[g])||c[\"!\"+g]){if(!b&&(\"contextData\"==g||\"retrieveLightData\"==g)&&a[g])for(l in a[g])h[l]||\r\n(h[l]=a[g][l]);a[g]=h}};a.Ya=function(c,b){var d,f,e,g;for(d=0;2>d;d++)for(f=0<d?a.Ca:a.g,e=0;e<f.length;e++)g=f[e],c[g]=a[g],b||c[g]||(c[\"!\"+g]=1)};a.Eb=function(a){var b,d,f,e,g,h=0,l,k=\"\",m=\"\";if(a&&255<a.length&&(b=\"\"+a,d=b.indexOf(\"?\"),0<d&&(l=b.substring(d+1),b=b.substring(0,d),e=b.toLowerCase(),f=0,\"http://\"==e.substring(0,7)?f+=7:\"https://\"==e.substring(0,8)&&(f+=8),d=e.indexOf(\"/\",f),0<d&&(e=e.substring(f,d),g=b.substring(d),b=b.substring(0,d),0<=e.indexOf(\"google\")?h=\",q,ie,start,search_key,word,kw,cd,\":\r\n0<=e.indexOf(\"yahoo.co\")&&(h=\",p,ei,\"),h&&l)))){if((a=l.split(\"&\"))&&1<a.length){for(f=0;f<a.length;f++)e=a[f],d=e.indexOf(\"=\"),0<d&&0<=h.indexOf(\",\"+e.substring(0,d)+\",\")?k+=(k?\"&\":\"\")+e:m+=(m?\"&\":\"\")+e;k&&m?l=k+\"&\"+m:m=\"\"}d=253-(l.length-m.length)-b.length;a=b+(0<d?g.substring(0,d):\"\")+\"?\"+l}return a};a.eb=function(c){var b=a.d.visibilityState,d=[\"webkitvisibilitychange\",\"visibilitychange\"];b||(b=a.d.webkitVisibilityState);if(b&&\"prerender\"==b){if(c)for(b=0;b<d.length;b++)a.d.addEventListener(d[b],\r\nfunction(){var b=a.d.visibilityState;b||(b=a.d.webkitVisibilityState);\"visible\"==b&&c()});return!1}return!0};a.fa=!1;a.J=!1;a.ub=function(){a.J=!0;a.j()};a.da=!1;a.V=!1;a.pb=function(c){a.marketingCloudVisitorID=c;a.V=!0;a.j()};a.ga=!1;a.W=!1;a.vb=function(c){a.visitorOptedOut=c;a.W=!0;a.j()};a.aa=!1;a.S=!1;a.$a=function(c){a.analyticsVisitorID=c;a.S=!0;a.j()};a.ca=!1;a.U=!1;a.bb=function(c){a.audienceManagerLocationHint=c;a.U=!0;a.j()};a.ba=!1;a.T=!1;a.ab=function(c){a.audienceManagerBlob=c;a.T=\r\n!0;a.j()};a.cb=function(c){a.maxDelay||(a.maxDelay=250);return a.p(\"_d\")?(c&&setTimeout(function(){c()},a.maxDelay),!1):!0};a.ea=!1;a.I=!1;a.za=function(){a.I=!0;a.j()};a.isReadyToTrack=function(){var c=!0,b=a.visitor,d,f,e;a.fa||a.J||(a.eb(a.ub)?a.J=!0:a.fa=!0);if(a.fa&&!a.J)return!1;b&&b.isAllowed()&&(a.da||a.marketingCloudVisitorID||!b.getMarketingCloudVisitorID||(a.da=!0,a.marketingCloudVisitorID=b.getMarketingCloudVisitorID([a,a.pb]),a.marketingCloudVisitorID&&(a.V=!0)),a.ga||a.visitorOptedOut||\r\n!b.isOptedOut||(a.ga=!0,a.visitorOptedOut=b.isOptedOut([a,a.vb]),a.visitorOptedOut!=p&&(a.W=!0)),a.aa||a.analyticsVisitorID||!b.getAnalyticsVisitorID||(a.aa=!0,a.analyticsVisitorID=b.getAnalyticsVisitorID([a,a.$a]),a.analyticsVisitorID&&(a.S=!0)),a.ca||a.audienceManagerLocationHint||!b.getAudienceManagerLocationHint||(a.ca=!0,a.audienceManagerLocationHint=b.getAudienceManagerLocationHint([a,a.bb]),a.audienceManagerLocationHint&&(a.U=!0)),a.ba||a.audienceManagerBlob||!b.getAudienceManagerBlob||(a.ba=\r\n!0,a.audienceManagerBlob=b.getAudienceManagerBlob([a,a.ab]),a.audienceManagerBlob&&(a.T=!0)),c=a.da&&!a.V&&!a.marketingCloudVisitorID,b=a.aa&&!a.S&&!a.analyticsVisitorID,d=a.ca&&!a.U&&!a.audienceManagerLocationHint,f=a.ba&&!a.T&&!a.audienceManagerBlob,e=a.ga&&!a.W,c=c||b||d||f||e?!1:!0);a.ea||a.I||(a.cb(a.za)?a.I=!0:a.ea=!0);a.ea&&!a.I&&(c=!1);return c};a.o=p;a.u=0;a.callbackWhenReadyToTrack=function(c,b,d){var f;f={};f.zb=c;f.yb=b;f.wb=d;a.o==p&&(a.o=[]);a.o.push(f);0==a.u&&(a.u=setInterval(a.j,\r\n100))};a.j=function(){var c;if(a.isReadyToTrack()&&(a.tb(),a.o!=p))for(;0<a.o.length;)c=a.o.shift(),c.yb.apply(c.zb,c.wb)};a.tb=function(){a.u&&(clearInterval(a.u),a.u=0)};a.mb=function(c){var b,d,f=p,e=p;if(!a.isReadyToTrack()){b=[];if(c!=p)for(d in f={},c)f[d]=c[d];e={};a.Ya(e,!0);b.push(f);b.push(e);a.callbackWhenReadyToTrack(a,a.track,b);return!0}return!1};a.Gb=function(){var c=a.cookieRead(\"s_fid\"),b=\"\",d=\"\",f;f=8;var e=4;if(!c||0>c.indexOf(\"-\")){for(c=0;16>c;c++)f=Math.floor(Math.random()*f),\r\nb+=\"0123456789ABCDEF\".substring(f,f+1),f=Math.floor(Math.random()*e),d+=\"0123456789ABCDEF\".substring(f,f+1),f=e=16;c=b+\"-\"+d}a.cookieWrite(\"s_fid\",c,1)||(c=0);return c};a.t=a.track=function(c,b){var d,f=new Date,e=\"s\"+Math.floor(f.getTime()/108E5)%10+Math.floor(1E13*Math.random()),g=f.getYear(),g=\"t=\"+a.escape(f.getDate()+\"/\"+f.getMonth()+\"/\"+(1900>g?g+1900:g)+\" \"+f.getHours()+\":\"+f.getMinutes()+\":\"+f.getSeconds()+\" \"+f.getDay()+\" \"+f.getTimezoneOffset());a.visitor&&a.visitor.getAuthState&&(a.authState=\r\na.visitor.getAuthState());a.p(\"_s\");a.mb(c)||(b&&a.R(b),c&&(d={},a.Ya(d,0),a.R(c)),a.Mb()&&!a.visitorOptedOut&&(a.analyticsVisitorID||a.marketingCloudVisitorID||(a.fid=a.Gb()),a.Pb(),a.usePlugins&&a.doPlugins&&a.doPlugins(a),a.account&&(a.abort||(a.trackOffline&&!a.timestamp&&(a.timestamp=Math.floor(f.getTime()/1E3)),f=k.location,a.pageURL||(a.pageURL=f.href?f.href:f),a.referrer||a.Za||(f=a.Util.getQueryParam(\"adobe_mc_ref\",null,null,!0),a.referrer=f||void 0===f?void 0===f?\"\":f:n.document.referrer),\r\na.Za=1,a.referrer=a.Eb(a.referrer),a.p(\"_g\")),a.Jb()&&!a.abort&&(a.visitor&&!a.supplementalDataID&&a.visitor.getSupplementalDataID&&(a.supplementalDataID=a.visitor.getSupplementalDataID(\"AppMeasurement:\"+a._in,a.expectSupplementalData?!1:!0)),a.Kb(),g+=a.Ib(),a.ob(e,g),a.p(\"_t\"),a.referrer=\"\"))),c&&a.R(d,1));a.abort=a.supplementalDataID=a.timestamp=a.pageURLRest=a.linkObject=a.clickObject=a.linkURL=a.linkName=a.linkType=k.s_objectID=a.pe=a.pev1=a.pev2=a.pev3=a.e=a.lightProfileID=0};a.Ba=[];a.registerPreTrackCallback=\r\nfunction(c){for(var b=[],d=1;d<arguments.length;d++)b.push(arguments[d]);\"function\"==typeof c?a.Ba.push([c,b]):a.debugTracking&&a.F(\"DEBUG: Non function type passed to registerPreTrackCallback\")};a.hb=function(c){a.xa(a.Ba,c)};a.Aa=[];a.registerPostTrackCallback=function(c){for(var b=[],d=1;d<arguments.length;d++)b.push(arguments[d]);\"function\"==typeof c?a.Aa.push([c,b]):a.debugTracking&&a.F(\"DEBUG: Non function type passed to registerPostTrackCallback\")};a.gb=function(c){a.xa(a.Aa,c)};a.xa=function(c,\r\nb){if(\"object\"==typeof c)for(var d=0;d<c.length;d++){var f=c[d][0],e=c[d][1];e.unshift(b);if(\"function\"==typeof f)try{f.apply(null,e)}catch(g){a.debugTracking&&a.F(g.message)}}};a.tl=a.trackLink=function(c,b,d,f,e){a.linkObject=c;a.linkType=b;a.linkName=d;e&&(a.l=c,a.A=e);return a.track(f)};a.trackLight=function(c,b,d,f){a.lightProfileID=c;a.lightStoreForSeconds=b;a.lightIncrementBy=d;return a.track(f)};a.clearVars=function(){var c,b;for(c=0;c<a.g.length;c++)if(b=a.g[c],\"prop\"==b.substring(0,4)||\r\n\"eVar\"==b.substring(0,4)||\"hier\"==b.substring(0,4)||\"list\"==b.substring(0,4)||\"channel\"==b||\"events\"==b||\"eventList\"==b||\"products\"==b||\"productList\"==b||\"purchaseID\"==b||\"transactionID\"==b||\"state\"==b||\"zip\"==b||\"campaign\"==b)a[b]=void 0};a.tagContainerMarker=\"\";a.ob=function(c,b){var d=a.ib()+\"/\"+c+\"?AQB=1&ndh=1&pf=1&\"+(a.ya()?\"callback=s_c_il[\"+a._in+\"].doPostbacks&et=1&\":\"\")+b+\"&AQE=1\";a.hb(d);a.fb(d);a.X()};a.ib=function(){var c=a.jb();return\"http\"+(a.ssl?\"s\":\"\")+\"://\"+c+\"/b/ss/\"+a.account+\"/\"+\r\n(a.mobile?\"5.\":\"\")+(a.ya()?\"10\":\"1\")+\"/JS-\"+a.version+(a.Sb?\"T\":\"\")+(a.tagContainerMarker?\"-\"+a.tagContainerMarker:\"\")};a.ya=function(){return a.AudienceManagement&&a.AudienceManagement.isReady()||0!=a.usePostbacks};a.jb=function(){var c=a.dc,b=a.trackingServer;b?a.trackingServerSecure&&a.ssl&&(b=a.trackingServerSecure):(c=c?(\"\"+c).toLowerCase():\"d1\",\"d1\"==c?c=\"112\":\"d2\"==c&&(c=\"122\"),b=a.lb()+\".\"+c+\".2o7.net\");return b};a.lb=function(){var c=a.visitorNamespace;c||(c=a.account.split(\",\")[0],c=c.replace(/[^0-9a-z]/gi,\r\n\"\"));return c};a.Xa=/{(%?)(.*?)(%?)}/;a.Wb=RegExp(a.Xa.source,\"g\");a.Db=function(c){if(\"object\"==typeof c.dests)for(var b=0;b<c.dests.length;++b){var d=c.dests[b];if(\"string\"==typeof d.c&&\"aa.\"==d.id.substr(0,3))for(var f=d.c.match(a.Wb),e=0;e<f.length;++e){var g=f[e],h=g.match(a.Xa),k=\"\";\"%\"==h[1]&&\"timezone_offset\"==h[2]?k=(new Date).getTimezoneOffset():\"%\"==h[1]&&\"timestampz\"==h[2]&&(k=a.Hb());d.c=d.c.replace(g,a.escape(k))}}};a.Hb=function(){var c=new Date,b=new Date(6E4*Math.abs(c.getTimezoneOffset()));\r\nreturn a.k(4,c.getFullYear())+\"-\"+a.k(2,c.getMonth()+1)+\"-\"+a.k(2,c.getDate())+\"T\"+a.k(2,c.getHours())+\":\"+a.k(2,c.getMinutes())+\":\"+a.k(2,c.getSeconds())+(0<c.getTimezoneOffset()?\"-\":\"+\")+a.k(2,b.getUTCHours())+\":\"+a.k(2,b.getUTCMinutes())};a.k=function(a,b){return(Array(a+1).join(0)+b).slice(-a)};a.ua={};a.doPostbacks=function(c){if(\"object\"==typeof c)if(a.Db(c),\"object\"==typeof a.AudienceManagement&&\"function\"==typeof a.AudienceManagement.isReady&&a.AudienceManagement.isReady()&&\"function\"==typeof a.AudienceManagement.passData)a.AudienceManagement.passData(c);\r\nelse if(\"object\"==typeof c&&\"object\"==typeof c.dests)for(var b=0;b<c.dests.length;++b){var d=c.dests[b];\"object\"==typeof d&&\"string\"==typeof d.c&&\"string\"==typeof d.id&&\"aa.\"==d.id.substr(0,3)&&(a.ua[d.id]=new Image,a.ua[d.id].alt=\"\",a.ua[d.id].src=d.c)}};a.fb=function(c){a.i||a.Lb();a.i.push(c);a.ma=a.C();a.Va()};a.Lb=function(){a.i=a.Nb();a.i||(a.i=[])};a.Nb=function(){var c,b;if(a.ta()){try{(b=k.localStorage.getItem(a.qa()))&&(c=k.JSON.parse(b))}catch(d){}return c}};a.ta=function(){var c=!0;a.trackOffline&&\r\na.offlineFilename&&k.localStorage&&k.JSON||(c=!1);return c};a.La=function(){var c=0;a.i&&(c=a.i.length);a.q&&c++;return c};a.X=function(){if(a.q&&(a.B&&a.B.complete&&a.B.G&&a.B.wa(),a.q))return;a.Ma=p;if(a.ra)a.ma>a.O&&a.Ta(a.i),a.va(500);else{var c=a.xb();if(0<c)a.va(c);else if(c=a.Ia())a.q=1,a.Ob(c),a.Rb(c)}};a.va=function(c){a.Ma||(c||(c=0),a.Ma=setTimeout(a.X,c))};a.xb=function(){var c;if(!a.trackOffline||0>=a.offlineThrottleDelay)return 0;c=a.C()-a.Ra;return a.offlineThrottleDelay<c?0:a.offlineThrottleDelay-\r\nc};a.Ia=function(){if(0<a.i.length)return a.i.shift()};a.Ob=function(c){if(a.debugTracking){var b=\"AppMeasurement Debug: \"+c;c=c.split(\"&\");var d;for(d=0;d<c.length;d++)b+=\"\\n\\t\"+a.unescape(c[d]);a.F(b)}};a.nb=function(){return a.marketingCloudVisitorID||a.analyticsVisitorID};a.Z=!1;var t;try{t=JSON.parse('{\"x\":\"y\"}')}catch(w){t=null}t&&\"y\"==t.x?(a.Z=!0,a.Y=function(a){return JSON.parse(a)}):k.$&&k.$.parseJSON?(a.Y=function(a){return k.$.parseJSON(a)},a.Z=!0):a.Y=function(){return null};a.Rb=function(c){var b,\r\nd,f;a.nb()&&2047<c.length&&(\"undefined\"!=typeof XMLHttpRequest&&(b=new XMLHttpRequest,\"withCredentials\"in b?d=1:b=0),b||\"undefined\"==typeof XDomainRequest||(b=new XDomainRequest,d=2),b&&(a.AudienceManagement&&a.AudienceManagement.isReady()||0!=a.usePostbacks)&&(a.Z?b.Da=!0:b=0));!b&&a.Wa&&(c=c.substring(0,2047));!b&&a.d.createElement&&(0!=a.usePostbacks||a.AudienceManagement&&a.AudienceManagement.isReady())&&(b=a.d.createElement(\"SCRIPT\"))&&\"async\"in b&&((f=(f=a.d.getElementsByTagName(\"HEAD\"))&&f[0]?\r\nf[0]:a.d.body)?(b.type=\"text/javascript\",b.setAttribute(\"async\",\"async\"),d=3):b=0);b||(b=new Image,b.alt=\"\",b.abort||\"undefined\"===typeof k.InstallTrigger||(b.abort=function(){b.src=p}));b.Sa=Date.now();b.Fa=function(){try{b.G&&(clearTimeout(b.G),b.G=0)}catch(a){}};b.onload=b.wa=function(){b.Sa&&(a.na=Date.now()-b.Sa);a.gb(c);b.Fa();a.Bb();a.ha();a.q=0;a.X();if(b.Da){b.Da=!1;try{a.doPostbacks(a.Y(b.responseText))}catch(d){}}};b.onabort=b.onerror=b.Ja=function(){b.Fa();(a.trackOffline||a.ra)&&a.q&&\r\na.i.unshift(a.Ab);a.q=0;a.ma>a.O&&a.Ta(a.i);a.ha();a.va(500)};b.onreadystatechange=function(){4==b.readyState&&(200==b.status?b.wa():b.Ja())};a.Ra=a.C();if(1==d||2==d){var e=c.indexOf(\"?\");f=c.substring(0,e);e=c.substring(e+1);e=e.replace(/&callback=[a-zA-Z0-9_.\\[\\]]+/,\"\");1==d?(b.open(\"POST\",f,!0),b.send(e)):2==d&&(b.open(\"POST\",f),b.send(e))}else if(b.src=c,3==d){if(a.Pa)try{f.removeChild(a.Pa)}catch(g){}f.firstChild?f.insertBefore(b,f.firstChild):f.appendChild(b);a.Pa=a.B}b.G=setTimeout(function(){b.G&&\r\n(b.complete?b.wa():(a.trackOffline&&b.abort&&b.abort(),b.Ja()))},5E3);a.Ab=c;a.B=k[\"s_i_\"+a.replace(a.account,\",\",\"_\")]=b;if(a.useForcedLinkTracking&&a.K||a.A)a.forcedLinkTrackingTimeout||(a.forcedLinkTrackingTimeout=250),a.ia=setTimeout(a.ha,a.forcedLinkTrackingTimeout)};a.Bb=function(){if(a.ta()&&!(a.Qa>a.O))try{k.localStorage.removeItem(a.qa()),a.Qa=a.C()}catch(c){}};a.Ta=function(c){if(a.ta()){a.Va();try{k.localStorage.setItem(a.qa(),k.JSON.stringify(c)),a.O=a.C()}catch(b){}}};a.Va=function(){if(a.trackOffline){if(!a.offlineLimit||\r\n0>=a.offlineLimit)a.offlineLimit=10;for(;a.i.length>a.offlineLimit;)a.Ia()}};a.forceOffline=function(){a.ra=!0};a.forceOnline=function(){a.ra=!1};a.qa=function(){return a.offlineFilename+\"-\"+a.visitorNamespace+a.account};a.C=function(){return(new Date).getTime()};a.Na=function(a){a=a.toLowerCase();return 0!=a.indexOf(\"#\")&&0!=a.indexOf(\"about:\")&&0!=a.indexOf(\"opera:\")&&0!=a.indexOf(\"javascript:\")?!0:!1};a.setTagContainer=function(c){var b,d,f;a.Sb=c;for(b=0;b<a._il.length;b++)if((d=a._il[b])&&\"s_l\"==\r\nd._c&&d.tagContainerName==c){a.R(d);if(d.lmq)for(b=0;b<d.lmq.length;b++)f=d.lmq[b],a.loadModule(f.n);if(d.ml)for(f in d.ml)if(a[f])for(b in c=a[f],f=d.ml[f],f)!Object.prototype[b]&&(\"function\"!=typeof f[b]||0>(\"\"+f[b]).indexOf(\"s_c_il\"))&&(c[b]=f[b]);if(d.mmq)for(b=0;b<d.mmq.length;b++)f=d.mmq[b],a[f.m]&&(c=a[f.m],c[f.f]&&\"function\"==typeof c[f.f]&&(f.a?c[f.f].apply(c,f.a):c[f.f].apply(c)));if(d.tq)for(b=0;b<d.tq.length;b++)a.track(d.tq[b]);d.s=a;break}};a.Util={urlEncode:a.escape,urlDecode:a.unescape,\r\ncookieRead:a.cookieRead,cookieWrite:a.cookieWrite,getQueryParam:function(c,b,d,f){var e,g=\"\";b||(b=a.pageURL?a.pageURL:k.location);d=d?d:\"&\";if(!c||!b)return g;b=\"\"+b;e=b.indexOf(\"?\");if(0>e)return g;b=d+b.substring(e+1)+d;if(!f||!(0<=b.indexOf(d+c+d)||0<=b.indexOf(d+c+\"=\"+d))){e=b.indexOf(\"#\");0<=e&&(b=b.substr(0,e)+d);e=b.indexOf(d+c+\"=\");if(0>e)return g;b=b.substring(e+d.length+c.length+1);e=b.indexOf(d);0<=e&&(b=b.substring(0,e));0<b.length&&(g=a.unescape(b));return g}},getIeVersion:function(){if(document.documentMode)return document.documentMode;\r\nfor(var a=7;4<a;a--){var b=document.createElement(\"div\");b.innerHTML=\"\\x3c!--[if IE \"+a+\"]><span></span><![endif]--\\x3e\";if(b.getElementsByTagName(\"span\").length)return a}return null}};a.H=\"supplementalDataID timestamp dynamicVariablePrefix visitorID marketingCloudVisitorID analyticsVisitorID audienceManagerLocationHint authState fid vmk visitorMigrationKey visitorMigrationServer visitorMigrationServerSecure charSet visitorNamespace cookieDomainPeriods fpCookieDomainPeriods cookieLifetime pageName pageURL customerPerspective referrer contextData currencyCode lightProfileID lightStoreForSeconds lightIncrementBy retrieveLightProfiles deleteLightProfiles retrieveLightData\".split(\" \");\r\na.g=a.H.concat(\"purchaseID variableProvider channel server pageType transactionID campaign state zip events events2 products audienceManagerBlob tnt\".split(\" \"));a.oa=\"timestamp charSet visitorNamespace cookieDomainPeriods cookieLifetime contextData lightProfileID lightStoreForSeconds lightIncrementBy\".split(\" \");a.P=a.oa.slice(0);a.Ca=\"account allAccounts debugTracking visitor visitorOptedOut trackOffline offlineLimit offlineThrottleDelay offlineFilename usePlugins doPlugins configURL visitorSampling visitorSamplingGroup linkObject clickObject linkURL linkName linkType trackDownloadLinks trackExternalLinks trackClickMap trackInlineStats linkLeaveQueryString linkTrackVars linkTrackEvents linkDownloadFileTypes linkExternalFilters linkInternalFilters useForcedLinkTracking forcedLinkTrackingTimeout trackingServer trackingServerSecure ssl abort mobile dc lightTrackVars maxDelay expectSupplementalData usePostbacks registerPreTrackCallback registerPostTrackCallback AudienceManagement\".split(\" \");\r\nfor(m=0;250>=m;m++)76>m&&(a.g.push(\"prop\"+m),a.P.push(\"prop\"+m)),a.g.push(\"eVar\"+m),a.P.push(\"eVar\"+m),6>m&&a.g.push(\"hier\"+m),4>m&&a.g.push(\"list\"+m);m=\"pe pev1 pev2 pev3 latitude longitude resolution colorDepth javascriptVersion javaEnabled cookiesEnabled browserWidth browserHeight connectionType homepage pageURLRest marketingCloudOrgID\".split(\" \");a.g=a.g.concat(m);a.H=a.H.concat(m);a.ssl=0<=k.location.protocol.toLowerCase().indexOf(\"https\");a.charSet=\"UTF-8\";a.contextData={};a.offlineThrottleDelay=\r\n0;a.offlineFilename=\"AppMeasurement.offline\";a.Ra=0;a.ma=0;a.O=0;a.Qa=0;a.linkDownloadFileTypes=\"exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx\";a.w=k;a.d=k.document;try{if(a.Wa=!1,navigator){var v=navigator.userAgent;if(\"Microsoft Internet Explorer\"==navigator.appName||0<=v.indexOf(\"MSIE \")||0<=v.indexOf(\"Trident/\")&&0<=v.indexOf(\"Windows NT 6\"))a.Wa=!0}}catch(x){}a.ha=function(){a.ia&&(k.clearTimeout(a.ia),a.ia=p);a.l&&a.K&&a.l.dispatchEvent(a.K);a.A&&(\"function\"==typeof a.A?a.A():\r\na.l&&a.l.href&&(a.d.location=a.l.href));a.l=a.K=a.A=0};a.Ua=function(){a.b=a.d.body;a.b?(a.v=function(c){var b,d,f,e,g;if(!(a.d&&a.d.getElementById(\"cppXYctnr\")||c&&c[\"s_fe_\"+a._in])){if(a.Ea)if(a.useForcedLinkTracking)a.b.removeEventListener(\"click\",a.v,!1);else{a.b.removeEventListener(\"click\",a.v,!0);a.Ea=a.useForcedLinkTracking=0;return}else a.useForcedLinkTracking=0;a.clickObject=c.srcElement?c.srcElement:c.target;try{if(!a.clickObject||a.N&&a.N==a.clickObject||!(a.clickObject.tagName||a.clickObject.parentElement||\r\na.clickObject.parentNode))a.clickObject=0;else{var h=a.N=a.clickObject;a.la&&(clearTimeout(a.la),a.la=0);a.la=setTimeout(function(){a.N==h&&(a.N=0)},1E4);f=a.La();a.track();if(f<a.La()&&a.useForcedLinkTracking&&c.target){for(e=c.target;e&&e!=a.b&&\"A\"!=e.tagName.toUpperCase()&&\"AREA\"!=e.tagName.toUpperCase();)e=e.parentNode;if(e&&(g=e.href,a.Na(g)||(g=0),d=e.target,c.target.dispatchEvent&&g&&(!d||\"_self\"==d||\"_top\"==d||\"_parent\"==d||k.name&&d==k.name))){try{b=a.d.createEvent(\"MouseEvents\")}catch(l){b=\r\nnew k.MouseEvent}if(b){try{b.initMouseEvent(\"click\",c.bubbles,c.cancelable,c.view,c.detail,c.screenX,c.screenY,c.clientX,c.clientY,c.ctrlKey,c.altKey,c.shiftKey,c.metaKey,c.button,c.relatedTarget)}catch(m){b=0}b&&(b[\"s_fe_\"+a._in]=b.s_fe=1,c.stopPropagation(),c.stopImmediatePropagation&&c.stopImmediatePropagation(),c.preventDefault(),a.l=c.target,a.K=b)}}}}}catch(n){a.clickObject=0}}},a.b&&a.b.attachEvent?a.b.attachEvent(\"onclick\",a.v):a.b&&a.b.addEventListener&&(navigator&&(0<=navigator.userAgent.indexOf(\"WebKit\")&&\r\na.d.createEvent||0<=navigator.userAgent.indexOf(\"Firefox/2\")&&k.MouseEvent)&&(a.Ea=1,a.useForcedLinkTracking=1,a.b.addEventListener(\"click\",a.v,!0)),a.b.addEventListener(\"click\",a.v,!1))):setTimeout(a.Ua,30)};a.Cb();a.ac||(r?a.setAccount(r):a.F(\"Error, missing Report Suite ID in AppMeasurement initialization\"),a.Ua(),a.loadModule(\"ActivityMap\"))}" ]
[ "0.47174537", "0.4658246", "0.45285463", "0.45032862", "0.44835344", "0.44350168", "0.4382653", "0.43627265", "0.43324777", "0.4301593", "0.42541128", "0.42418656", "0.4221815", "0.42179117", "0.41816333", "0.41801563", "0.41795337", "0.417805", "0.4176735", "0.41745046", "0.4172715", "0.416532", "0.4140857", "0.4140857", "0.4125978", "0.41207212", "0.41181394", "0.41115952", "0.41091898", "0.41079316", "0.41062677", "0.41049024", "0.41027054", "0.41022694", "0.410083", "0.4095065", "0.40917927", "0.40812904", "0.40807405", "0.40791658", "0.40771678", "0.40754294", "0.40733093", "0.407272", "0.40688023", "0.40591353", "0.40538645", "0.40534827", "0.4049118", "0.40481293", "0.40477178", "0.40440556", "0.40431336", "0.4041285", "0.40409878", "0.4040742", "0.4034237", "0.40251347", "0.4021832", "0.401967", "0.40185636", "0.40154555", "0.40134138", "0.40127307", "0.40119314", "0.40104625", "0.40068188", "0.40068188", "0.40059087", "0.4004625", "0.3991457", "0.3990997", "0.39907634", "0.39872354", "0.3983524", "0.39815342", "0.39802438", "0.39802438", "0.39802438", "0.39799574", "0.39766735", "0.39765778", "0.39743623", "0.39739642", "0.39738163", "0.39735964", "0.396918", "0.3966224", "0.39611036", "0.39610842", "0.3960728", "0.3956596", "0.39565182", "0.39551875", "0.3950826", "0.39456856", "0.3944749", "0.39428768", "0.39405105", "0.39404854", "0.39403772" ]
0.0
-1
Consider big data, do not create map until needed.
function getOrCreateMap(ordinalMeta) { return ordinalMeta._map || (ordinalMeta._map = createHashMap(ordinalMeta.categories)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function MapCache(){this.__data__={};}", "function MapCache(){this.__data__={};}", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n\t this.__data__ = {};\n\t }", "function MapCache() {\n this.__data__ = {};\n}", "function generateMapData() {\n map.clearMap();\n database.readCurrentDelays(extractionCallback);\n }", "function MapCache() {\n\t this.__data__ = {};\n\t}", "function MapCache() {\n\t this.__data__ = {};\n\t}", "function Map2(data) {\n this.map = new Map;\n this.size = 0;\n if (data) {\n for (var i = 0; i < data.length; i++) {\n var d = data[i];\n this.set(d[0], d[1], d[2]);\n }\n }\n}", "function create() {\n var ret = Object.create(fastMap);\n ret.data = createMapObject();\n ret.size = 0;\n return ret;\n }", "function MapCache() {\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function MapCache() {\n this.__data__ = {};\n }", "function updateMap(){\n //nullifying tendieMap to rewrite it\n tendieMap = new Map();\n //getting the tendielist file \n var tendieList = fs.readFileSync('./tendie/tendiebox.txt', 'utf8');\n //splitting up the tendie list \n var tendieArray = tendieList.split(\"|\");\n \n //now storing the data in tendieMap\n for(i=0;i<tendieArray.length/2;i+=2){\n tendieMap.set(tendieArray[i],new user.tendieUser(tendieArray[i],tendieArray[i+1]));\n }\n}", "function MapCache() {\n this.__data__ = {};\n }", "function Map() {}", "function createMap() {\n return Object.create(null)\n}", "function MapIterator() {}", "function makeMap() {\r\n\tif (map == \"\") {\r\n\t\tgenNewMap();\r\n\t}\r\n\r\n\tconstructMap();\r\n}", "createMap() {\n // first create the map with an empty buffer\n const map = new Map({\n src: \"tiles\",\n tileWidth: TILE_WIDTH,\n tileHeight: TILE_WIDTH,\n width: TILE_WIDTH * MAP_COLS,\n height: TILE_HEIGHT * MAP_ROWS,\n buffer: new ArrayBuffer(MAP_COLS * MAP_ROWS * 2)\n });\n\n // finally add the tileset\n map.addTileSet(this.generateTileSet());\n\n return map;\n }", "function LazyMap() {\n this.store = {};\n}", "function LazyMap() {\n this.store = {};\n}", "function LazyMap() {\n this.store = {};\n}", "function LazyMap() {\n this.store = {};\n}", "function LazyMap() {\n this.store = {};\n}", "function LazyMap() {\n this.store = {};\n}", "newMap(){\n\t\tthis.idIterator = 1;\n\n\t\tthis.currentFeature = new Feature(this.assignId());\n\n\t\tthis.geo = {};\n\t\tthis.geo.type = \"FeatureCollection\";\n\t\tthis.geo.features = [];\n\t}", "function MapCache(data) {\n this.__data__ = data || {};\n}", "function MapCache(data) {\n this.__data__ = data || {};\n}", "function MapCache(data) {\n this.__data__ = data || {};\n}", "function MapCache(data) {\n this.__data__ = data || {};\n}", "function MapCache(data) {\n this.__data__ = data || {};\n}", "function makeMap(data) {\r\n var mapData = {};\r\n // Link mobile phone dataset with countrycodes and categorize the mobile phone dataset\r\n for (i = 0; i < data.length; i++){\r\n var object = data[i];\r\n\r\n\r\n for (j = 0; j < countryCodes.length; j++){\r\n // [\"...\"] to be able to walk over strings\r\n if (object[\"Mobile cellular subscriptions (per 100 people)\"] == countryCodes[j][2]){\r\n object.countryCodes = countryCodes[j][1]\r\n }\r\n }\r\n\r\n // Within the Countrycode object, create a fillkey and add the countryname and # of cellphones\r\n // No Data (to append to Json, source: http://stackoverflow.com/questions/736590/add-new-attribute-element-to-json-object-using-javascript)\r\n if (object[\"2011\"] == null){\r\n mapData[object.countryCodes] = {fillKey: \"noData\",\r\n name: object[\"Mobile cellular subscriptions (per 100 people)\"],\r\n cellphones: object[\"2011\"]}\r\n }\r\n\r\n // 0-33 phones per 100 people ()\r\n if (0 < object[\"2011\"] && object[\"2011\"] <= 33){\r\n mapData[object.countryCodes] = {fillKey: \"phones0To33\",\r\n name: object[\"Mobile cellular subscriptions (per 100 people)\"],\r\n cellphones: object[\"2011\"]}\r\n } \r\n\r\n // 34-66 Phones per 100 people\r\n if (34 <= object[\"2011\"] && object[\"2011\"] <= 66){\r\n mapData[object.countryCodes] = {fillKey: \"phones34To66\",\r\n name: object[\"Mobile cellular subscriptions (per 100 people)\"],\r\n cellphones: object[\"2011\"]}\r\n }\r\n\r\n // 67-99 phones per 100 people\r\n if (67 <= object[\"2011\"] && object[\"2011\"] <= 100){\r\n mapData[object.countryCodes] = {fillKey: \"phones67To99\",\r\n name: object[\"Mobile cellular subscriptions (per 100 people)\"],\r\n cellphones: object[\"2011\"]}\r\n }\r\n\r\n // 100 - 133 phones per 100 people\r\n if (100 <= object[\"2011\"] && object[\"2011\"] <= 133){\r\n mapData[object.countryCodes] = {fillKey: \"phones100To133\",\r\n name: object[\"Mobile cellular subscriptions (per 100 people)\"],\r\n cellphones: object[\"2011\"]}\r\n }\r\n\r\n // 134+ phones per 100 people\r\n if (134 <= object[\"2011\"]){\r\n mapData[object.countryCodes] = {fillKey: \"phones134AndMore\",\r\n name: object[\"Mobile cellular subscriptions (per 100 people)\"],\r\n cellphones: object[\"2011\"]}\r\n }\r\n }\r\n \r\n // Creating the map\r\n var map = new Datamap ({\r\n element: document.getElementById('container'),\r\n\r\n // Fill the countries with the right colors (https://www.w3schools.com/colors/colors_hexadecimal.asp)\r\n fills: {\r\n 'noData': \"grey\",\r\n 'phones0To33': \"#33f40c\",\r\n 'phones34To66': \"#20a420\",\r\n 'phones67To99': \"#207b20\",\r\n 'phones100To133': \"#205b20\",\r\n 'phones134AndMore': \"#203020\",\r\n defaultFill: \"grey\" \r\n },\r\n // Input data\r\n data: mapData,\r\n // Styling\r\n geographyConfig: {\r\n borderColor: 'black',\r\n highlightBorderColor: 'white',\r\n highlightOnHover: true,\r\n highlightFillColor: false,\r\n popupTemplate: function(geography, mapData) {\r\n return '<div class=\"hoverinfo\">' + 'Number of cellphones: '\r\n + mapData.cellphones + '<br> Country name: ' + mapData.name \r\n }\r\n }\r\n\r\n });\r\n\r\n // Creating a legend \r\n map.legend({\r\n legendTitle: \"# Phones per 100 people\",\r\n labels: {\r\n noData: \"No data in dataset\",\r\n phones0To33: \"0-33\",\r\n phones34To66: \"34-66\",\r\n phones67To99: \"67-99\",\r\n phones100To133: \"100-133\",\r\n phones134AndMore: \"134+\"\r\n }\r\n });\r\n}", "function dataMaps(){\n\td3.queue()\n\t.defer(d3.json, \"QoLI.json\")\n\t.awaitAll(makeMap)\n}", "_pushMap(gen, obj, opts) {\n opts = {\n indefinite: false,\n ...opts\n };\n let entries = [...obj.entries()];\n if(gen.omitUndefinedProperties) {\n entries = entries.filter(([, v]) => v !== undefined);\n }\n if(opts.indefinite) {\n if(!gen._pushUInt8((MT.MAP << 5) | NUMBYTES.INDEFINITE)) {\n return false;\n }\n } else if(!gen._pushInt(entries.length, MT.MAP)) {\n return false;\n }\n // memoizing the cbor only helps in certain cases, and hurts in most\n // others. Just avoid it.\n if(false || gen.canonical) {\n // keep the key/value pairs together, so we don't have to do odd\n // gets with object keys later\n /*const enc = new Encoder({\n genTypes: gen.semanticTypes,\n canonical: gen.canonical,\n detectLoops: !!gen.detectLoops, // give enc its own loop detector\n dateType: gen.dateType,\n disallowUndefinedKeys: gen.disallowUndefinedKeys,\n collapseBigIntegers: gen.collapseBigIntegers\n });\n const bs = new NoFilter({highWaterMark: gen.readableHighWaterMark});\n enc.pipe(bs);\n entries.sort(([a], [b]) => {\n // a, b are the keys\n enc.pushAny(a);\n const a_cbor = this.flush();\n enc.pushAny(b);\n const b_cbor = this.flush();\n return a_cbor.compare(b_cbor);\n });\n for(const [k, v] of entries) {\n if(gen.disallowUndefinedKeys && (typeof k === 'undefined')) {\n throw new Error('Invalid Map key: undefined');\n }\n if(!(gen.pushAny(k) && gen.pushAny(v))) {\n return false;\n }\n }*/\n } else {\n for(const [k, v] of entries) {\n if(gen.disallowUndefinedKeys && (typeof k === 'undefined')) {\n throw new Error('Invalid Map key: undefined');\n }\n if(!(gen.pushAny(k) && gen.pushAny(v))) {\n return false;\n }\n }\n }\n if(opts.indefinite) {\n if(!gen.push(BREAK)) {\n return false;\n }\n }\n return true;\n }", "function mapCacheClear(){\nthis.size=0;\nthis.__data__={\n'hash':new Hash(),\n'map':new(Map||ListCache)(),\n'string':new Hash()};\n\n}", "function mapCacheClear(){this.size=0;this.__data__={hash:new Hash,map:new(Map||ListCache),string:new Hash}}", "function mapCacheClear(){this.size=0;this.__data__={hash:new Hash,map:new(Map||ListCache),string:new Hash}}", "function mapData(map, data) {\n var newData = {};\n $.each(data, function(p, v) {\n if ( typeof map[p]==='undefined' ) {\n newData[p] = data[p];\n } else {\n newData[map[p]] = data[p];\n }\n });\n return newData;\n}", "function getMapData() {\n TIME && console.time(\"createMapData\");\n\n const date = new Date();\n const dateString = date.getFullYear() + \"-\" + (date.getMonth() + 1) + \"-\" + date.getDate();\n const license = \"File can be loaded in azgaar.github.io/Fantasy-Map-Generator\";\n const params = [version, license, dateString, seed, graphWidth, graphHeight, mapId].join(\"|\");\n const settings = [\n distanceUnitInput.value,\n distanceScaleInput.value,\n areaUnit.value,\n heightUnit.value,\n heightExponentInput.value,\n temperatureScale.value,\n barSizeInput.value,\n barLabel.value,\n barBackOpacity.value,\n barBackColor.value,\n barPosX.value,\n barPosY.value,\n populationRate,\n urbanization,\n mapSizeOutput.value,\n latitudeOutput.value,\n temperatureEquatorOutput.value,\n temperaturePoleOutput.value,\n precOutput.value,\n JSON.stringify(options),\n mapName.value,\n +hideLabels.checked,\n stylePreset.value,\n +rescaleLabels.checked,\n urbanDensity\n ].join(\"|\");\n const coords = JSON.stringify(mapCoordinates);\n const biomes = [biomesData.color, biomesData.habitability, biomesData.name].join(\"|\");\n const notesData = JSON.stringify(notes);\n const rulersString = rulers.toString();\n const fonts = JSON.stringify(getUsedFonts(svg.node()));\n\n // save svg\n const cloneEl = document.getElementById(\"map\").cloneNode(true);\n\n // reset transform values to default\n cloneEl.setAttribute(\"width\", graphWidth);\n cloneEl.setAttribute(\"height\", graphHeight);\n cloneEl.querySelector(\"#viewbox\").removeAttribute(\"transform\");\n\n cloneEl.querySelector(\"#ruler\").innerHTML = \"\"; // always remove rulers\n\n const serializedSVG = new XMLSerializer().serializeToString(cloneEl);\n\n const {spacing, cellsX, cellsY, boundary, points, features, cellsDesired} = grid;\n const gridGeneral = JSON.stringify({spacing, cellsX, cellsY, boundary, points, features, cellsDesired});\n const packFeatures = JSON.stringify(pack.features);\n const cultures = JSON.stringify(pack.cultures);\n const states = JSON.stringify(pack.states);\n const burgs = JSON.stringify(pack.burgs);\n const religions = JSON.stringify(pack.religions);\n const provinces = JSON.stringify(pack.provinces);\n const rivers = JSON.stringify(pack.rivers);\n const markers = JSON.stringify(pack.markers);\n\n // store name array only if not the same as default\n const defaultNB = Names.getNameBases();\n const namesData = nameBases\n .map((b, i) => {\n const names = defaultNB[i] && defaultNB[i].b === b.b ? \"\" : b.b;\n return `${b.name}|${b.min}|${b.max}|${b.d}|${b.m}|${names}`;\n })\n .join(\"/\");\n\n // round population to save space\n const pop = Array.from(pack.cells.pop).map(p => rn(p, 4));\n\n // data format as below\n const mapData = [\n params,\n settings,\n coords,\n biomes,\n notesData,\n serializedSVG,\n gridGeneral,\n grid.cells.h,\n grid.cells.prec,\n grid.cells.f,\n grid.cells.t,\n grid.cells.temp,\n packFeatures,\n cultures,\n states,\n burgs,\n pack.cells.biome,\n pack.cells.burg,\n pack.cells.conf,\n pack.cells.culture,\n pack.cells.fl,\n pop,\n pack.cells.r,\n pack.cells.road,\n pack.cells.s,\n pack.cells.state,\n pack.cells.religion,\n pack.cells.province,\n pack.cells.crossroad,\n religions,\n provinces,\n namesData,\n rivers,\n rulersString,\n fonts,\n markers\n ].join(\"\\r\\n\");\n TIME && console.timeEnd(\"createMapData\");\n return mapData;\n}", "for(ref, id) {\n const memo = keyed.get(ref) || keyed.set(ref, new MapSet);\n return memo.get(id) || memo.set(id, fixed(createCache$1()));\n }", "function storeMap() {\n var todo, rtn;\n rtn = {};\n \n todo = {};\n todo.id = \"id\";\n todo.completeFlag = \"completed\";\n todo.title = \"title\";\n rtn.todo = todo;\n \n return rtn;\n}", "function genHeatMapData() {\n\tlistOfLat = filteredData.LAT\n\tlistOfLong = filteredData.LONG\n\t//console.log(listOfLat)\n\tmapData = []\n\tfor ( var key in listOfLat) {\n\t\tif (listOfLat.hasOwnProperty(key) && listOfLong.hasOwnProperty(key)) {\n\t\t\tmapData.push(loc2GoogleLoc(listOfLat[key], listOfLong[key]))\n\t\t} else {\n\t\t\tconsole.log(\"Invalid Data\")\n\t\t}\n\n\t}\n\t//mapData.push({location: myLatLng, weight: 150000})\n\n\treturn mapData\n}", "function main() {\n const lotr = new HashMap();\n\n HashMap.MAX_LOAD_RATIO = 0.5;\n HashMap.SIZE_RATIO = 3; \n\n lotr.set(\"Hobbit\", \"Bilbo\");\n lotr.set(\"Hobbit\", \"Frodo\");\n lotr.set(\"Wizard\", \"Gandalf\");\n lotr.set(\"Human\", \"Aragorn\");\n lotr.set(\"Elf\", \"Legolas\");\n lotr.set(\"Maiar\", \"The Necromancer\");\n lotr.set(\"Maiar\", \"Sauron\");\n lotr.set(\"RingBearer\", \"Gollum\");\n lotr.set(\"LadyOfLight\", \"Galadriel\");\n lotr.set(\"HalfElven\", \"Arwen\");\n lotr.set(\"Ent\", \"Treebeard\");\n\n console.log(\"LOTR\", lotr); //length is 9, there are collisions in the data under \"Hobbit\" and \"Maiar\" \n console.log(lotr.get(\"Maiar\")); // we currently don't have code to resolve collisions\n console.log(lotr.get(\"Hobbit\")); // same reason as above- no code to resolve collisions \n console.log(lotr._capacity); // 24, since we exceed the initial length of 8 we must multiply by size ratio to accomodate, 8 x 3. \n}", "constructor() {\n this.cache = []; // array to allow fast access\n this.entryMap = new Map();\n }", "function mapCacheClear(){this.size=0;this.__data__={'hash':new Hash(),'map':new(Map||ListCache)(),'string':new Hash()};}", "function mapCacheClear(){this.size=0;this.__data__={'hash':new Hash(),'map':new(Map||ListCache)(),'string':new Hash()};}", "function mapCacheClear(){this.size=0;this.__data__={'hash':new Hash(),'map':new(Map||ListCache)(),'string':new Hash()};}", "function mapCacheClear(){this.size=0;this.__data__={'hash':new Hash(),'map':new(Map||ListCache)(),'string':new Hash()};}", "function mapCacheClear(){this.size=0;this.__data__={'hash':new Hash(),'map':new(Map||ListCache)(),'string':new Hash()};}", "function mapCacheClear(){this.size=0;this.__data__={'hash':new Hash(),'map':new(Map||ListCache)(),'string':new Hash()};}", "function mapCacheClear(){this.size=0;this.__data__={'hash':new Hash(),'map':new(Map||ListCache)(),'string':new Hash()};}", "function mapCacheClear(){this.size=0;this.__data__={'hash':new Hash(),'map':new(Map||ListCache)(),'string':new Hash()};}", "function mapCacheClear(){this.size=0;this.__data__={'hash':new Hash(),'map':new(Map||ListCache)(),'string':new Hash()};}", "function getInitialMapData(){\n var now = Date.now();\n return [\n {createdAt:now, lines:[], robotX:0, robotY:0}\n ]\n}", "function RowHashMap() {}", "function RowHashMap() {}", "function map() {\n\n}" ]
[ "0.6768424", "0.6768424", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.62319005", "0.6186008", "0.6175462", "0.6151088", "0.6151088", "0.61466277", "0.61313784", "0.612799", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.61251086", "0.6094361", "0.6081985", "0.6069417", "0.60083276", "0.59908235", "0.5952576", "0.5936629", "0.5925211", "0.59251994", "0.59251994", "0.59251994", "0.59251994", "0.59251994", "0.59251994", "0.5922308", "0.59194", "0.59194", "0.59194", "0.59194", "0.59194", "0.590305", "0.59015673", "0.588333", "0.5843396", "0.5803885", "0.5803885", "0.57578725", "0.57464147", "0.5744627", "0.574092", "0.57260895", "0.5716704", "0.5707375", "0.57002294", "0.57002294", "0.57002294", "0.57002294", "0.57002294", "0.57002294", "0.57002294", "0.57002294", "0.57002294", "0.5698936", "0.56795156", "0.56795156", "0.5674469" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Get axis scale extent before niced. Item of returned array can only be number (including Infinity and NaN).
function getScaleExtent(scale, model) { var scaleType = scale.type; var min = model.getMin(); var max = model.getMax(); var originalExtent = scale.getExtent(); var axisDataLen; var boundaryGap; var span; if (scaleType === 'ordinal') { axisDataLen = model.getCategories().length; } else { boundaryGap = model.get('boundaryGap'); if (!zrUtil.isArray(boundaryGap)) { boundaryGap = [boundaryGap || 0, boundaryGap || 0]; } if (typeof boundaryGap[0] === 'boolean') { boundaryGap = [0, 0]; } boundaryGap[0] = numberUtil.parsePercent(boundaryGap[0], 1); boundaryGap[1] = numberUtil.parsePercent(boundaryGap[1], 1); span = originalExtent[1] - originalExtent[0] || Math.abs(originalExtent[0]); } // Notice: When min/max is not set (that is, when there are null/undefined, // which is the most common case), these cases should be ensured: // (1) For 'ordinal', show all axis.data. // (2) For others: // + `boundaryGap` is applied (if min/max set, boundaryGap is // disabled). // + If `needCrossZero`, min/max should be zero, otherwise, min/max should // be the result that originalExtent enlarged by boundaryGap. // (3) If no data, it should be ensured that `scale.setBlank` is set. // FIXME // (1) When min/max is 'dataMin' or 'dataMax', should boundaryGap be able to used? // (2) When `needCrossZero` and all data is positive/negative, should it be ensured // that the results processed by boundaryGap are positive/negative? if (min === 'dataMin') { min = originalExtent[0]; } else if (typeof min === 'function') { min = min({ min: originalExtent[0], max: originalExtent[1] }); } if (max === 'dataMax') { max = originalExtent[1]; } else if (typeof max === 'function') { max = max({ min: originalExtent[0], max: originalExtent[1] }); } var fixMin = min != null; var fixMax = max != null; if (min == null) { min = scaleType === 'ordinal' ? axisDataLen ? 0 : NaN : originalExtent[0] - boundaryGap[0] * span; } if (max == null) { max = scaleType === 'ordinal' ? axisDataLen ? axisDataLen - 1 : NaN : originalExtent[1] + boundaryGap[1] * span; } (min == null || !isFinite(min)) && (min = NaN); (max == null || !isFinite(max)) && (max = NaN); scale.setBlank(zrUtil.eqNaN(min) || zrUtil.eqNaN(max) || scaleType === 'ordinal' && !scale.getOrdinalMeta().categories.length); // Evaluate if axis needs cross zero if (model.getNeedCrossZero()) { // Axis is over zero and min is not set if (min > 0 && max > 0 && !fixMin) { min = 0; } // Axis is under zero and max is not set if (min < 0 && max < 0 && !fixMax) { max = 0; } } // If bars are placed on a base axis of type time or interval account for axis boundary overflow and current axis // is base axis // FIXME // (1) Consider support value axis, where below zero and axis `onZero` should be handled properly. // (2) Refactor the logic with `barGrid`. Is it not need to `makeBarWidthAndOffsetInfo` twice with different extent? // Should not depend on series type `bar`? // (3) Fix that might overlap when using dataZoom. // (4) Consider other chart types using `barGrid`? // See #6728, #4862, `test/bar-overflow-time-plot.html` var ecModel = model.ecModel; if (ecModel && scaleType === 'time' /*|| scaleType === 'interval' */ ) { var barSeriesModels = prepareLayoutBarSeries('bar', ecModel); var isBaseAxisAndHasBarSeries; zrUtil.each(barSeriesModels, function (seriesModel) { isBaseAxisAndHasBarSeries |= seriesModel.getBaseAxis() === model.axis; }); if (isBaseAxisAndHasBarSeries) { // Calculate placement of bars on axis var barWidthAndOffset = makeColumnLayout(barSeriesModels); // Adjust axis min and max to account for overflow var adjustedScale = adjustScaleForOverflow(min, max, model, barWidthAndOffset); min = adjustedScale.min; max = adjustedScale.max; } } return { extent: [min, max], // "fix" means "fixed", the value should not be // changed in the subsequent steps. fixMin: fixMin, fixMax: fixMax }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getScaleExtent(scale, model) {\n var scaleType = scale.type;\n var min = model.getMin();\n var max = model.getMax();\n var fixMin = min != null;\n var fixMax = max != null;\n var originalExtent = scale.getExtent();\n var axisDataLen;\n var boundaryGap;\n var span;\n\n if (scaleType === 'ordinal') {\n axisDataLen = (model.get('data') || []).length;\n } else {\n boundaryGap = model.get('boundaryGap');\n\n if (!zrUtil.isArray(boundaryGap)) {\n boundaryGap = [boundaryGap || 0, boundaryGap || 0];\n }\n\n if (typeof boundaryGap[0] === 'boolean') {\n boundaryGap = [0, 0];\n }\n\n boundaryGap[0] = numberUtil.parsePercent(boundaryGap[0], 1);\n boundaryGap[1] = numberUtil.parsePercent(boundaryGap[1], 1);\n span = originalExtent[1] - originalExtent[0] || Math.abs(originalExtent[0]);\n } // Notice: When min/max is not set (that is, when there are null/undefined,\n // which is the most common case), these cases should be ensured:\n // (1) For 'ordinal', show all axis.data.\n // (2) For others:\n // + `boundaryGap` is applied (if min/max set, boundaryGap is\n // disabled).\n // + If `needCrossZero`, min/max should be zero, otherwise, min/max should\n // be the result that originalExtent enlarged by boundaryGap.\n // (3) If no data, it should be ensured that `scale.setBlank` is set.\n // FIXME\n // (1) When min/max is 'dataMin' or 'dataMax', should boundaryGap be able to used?\n // (2) When `needCrossZero` and all data is positive/negative, should it be ensured\n // that the results processed by boundaryGap are positive/negative?\n\n\n if (min == null) {\n min = scaleType === 'ordinal' ? axisDataLen ? 0 : NaN : originalExtent[0] - boundaryGap[0] * span;\n }\n\n if (max == null) {\n max = scaleType === 'ordinal' ? axisDataLen ? axisDataLen - 1 : NaN : originalExtent[1] + boundaryGap[1] * span;\n }\n\n if (min === 'dataMin') {\n min = originalExtent[0];\n } else if (typeof min === 'function') {\n min = min({\n min: originalExtent[0],\n max: originalExtent[1]\n });\n }\n\n if (max === 'dataMax') {\n max = originalExtent[1];\n } else if (typeof max === 'function') {\n max = max({\n min: originalExtent[0],\n max: originalExtent[1]\n });\n }\n\n (min == null || !isFinite(min)) && (min = NaN);\n (max == null || !isFinite(max)) && (max = NaN);\n scale.setBlank(zrUtil.eqNaN(min) || zrUtil.eqNaN(max)); // Evaluate if axis needs cross zero\n\n if (model.getNeedCrossZero()) {\n // Axis is over zero and min is not set\n if (min > 0 && max > 0 && !fixMin) {\n min = 0;\n } // Axis is under zero and max is not set\n\n\n if (min < 0 && max < 0 && !fixMax) {\n max = 0;\n }\n }\n\n return [min, max];\n}", "function getScaleExtent(scale, model) {\n var scaleType = scale.type;\n var min = model.getMin();\n var max = model.getMax();\n var fixMin = min != null;\n var fixMax = max != null;\n var originalExtent = scale.getExtent();\n var axisDataLen;\n var boundaryGap;\n var span;\n\n if (scaleType === 'ordinal') {\n axisDataLen = (model.get('data') || []).length;\n } else {\n boundaryGap = model.get('boundaryGap');\n\n if (!zrUtil.isArray(boundaryGap)) {\n boundaryGap = [boundaryGap || 0, boundaryGap || 0];\n }\n\n if (typeof boundaryGap[0] === 'boolean') {\n boundaryGap = [0, 0];\n }\n\n boundaryGap[0] = numberUtil.parsePercent(boundaryGap[0], 1);\n boundaryGap[1] = numberUtil.parsePercent(boundaryGap[1], 1);\n span = originalExtent[1] - originalExtent[0] || Math.abs(originalExtent[0]);\n } // Notice: When min/max is not set (that is, when there are null/undefined,\n // which is the most common case), these cases should be ensured:\n // (1) For 'ordinal', show all axis.data.\n // (2) For others:\n // + `boundaryGap` is applied (if min/max set, boundaryGap is\n // disabled).\n // + If `needCrossZero`, min/max should be zero, otherwise, min/max should\n // be the result that originalExtent enlarged by boundaryGap.\n // (3) If no data, it should be ensured that `scale.setBlank` is set.\n // FIXME\n // (1) When min/max is 'dataMin' or 'dataMax', should boundaryGap be able to used?\n // (2) When `needCrossZero` and all data is positive/negative, should it be ensured\n // that the results processed by boundaryGap are positive/negative?\n\n\n if (min == null) {\n min = scaleType === 'ordinal' ? axisDataLen ? 0 : NaN : originalExtent[0] - boundaryGap[0] * span;\n }\n\n if (max == null) {\n max = scaleType === 'ordinal' ? axisDataLen ? axisDataLen - 1 : NaN : originalExtent[1] + boundaryGap[1] * span;\n }\n\n if (min === 'dataMin') {\n min = originalExtent[0];\n } else if (typeof min === 'function') {\n min = min({\n min: originalExtent[0],\n max: originalExtent[1]\n });\n }\n\n if (max === 'dataMax') {\n max = originalExtent[1];\n } else if (typeof max === 'function') {\n max = max({\n min: originalExtent[0],\n max: originalExtent[1]\n });\n }\n\n (min == null || !isFinite(min)) && (min = NaN);\n (max == null || !isFinite(max)) && (max = NaN);\n scale.setBlank(zrUtil.eqNaN(min) || zrUtil.eqNaN(max)); // Evaluate if axis needs cross zero\n\n if (model.getNeedCrossZero()) {\n // Axis is over zero and min is not set\n if (min > 0 && max > 0 && !fixMin) {\n min = 0;\n } // Axis is under zero and max is not set\n\n\n if (min < 0 && max < 0 && !fixMax) {\n max = 0;\n }\n }\n\n return [min, max];\n}", "function getScaleExtent(scale, model) {\n var scaleType = scale.type;\n var min = model.getMin();\n var max = model.getMax();\n var fixMin = min != null;\n var fixMax = max != null;\n var originalExtent = scale.getExtent();\n var axisDataLen;\n var boundaryGap;\n var span;\n\n if (scaleType === 'ordinal') {\n axisDataLen = (model.get('data') || []).length;\n } else {\n boundaryGap = model.get('boundaryGap');\n\n if (!zrUtil.isArray(boundaryGap)) {\n boundaryGap = [boundaryGap || 0, boundaryGap || 0];\n }\n\n if (typeof boundaryGap[0] === 'boolean') {\n boundaryGap = [0, 0];\n }\n\n boundaryGap[0] = numberUtil.parsePercent(boundaryGap[0], 1);\n boundaryGap[1] = numberUtil.parsePercent(boundaryGap[1], 1);\n span = originalExtent[1] - originalExtent[0] || Math.abs(originalExtent[0]);\n } // Notice: When min/max is not set (that is, when there are null/undefined,\n // which is the most common case), these cases should be ensured:\n // (1) For 'ordinal', show all axis.data.\n // (2) For others:\n // + `boundaryGap` is applied (if min/max set, boundaryGap is\n // disabled).\n // + If `needCrossZero`, min/max should be zero, otherwise, min/max should\n // be the result that originalExtent enlarged by boundaryGap.\n // (3) If no data, it should be ensured that `scale.setBlank` is set.\n // FIXME\n // (1) When min/max is 'dataMin' or 'dataMax', should boundaryGap be able to used?\n // (2) When `needCrossZero` and all data is positive/negative, should it be ensured\n // that the results processed by boundaryGap are positive/negative?\n\n\n if (min == null) {\n min = scaleType === 'ordinal' ? axisDataLen ? 0 : NaN : originalExtent[0] - boundaryGap[0] * span;\n }\n\n if (max == null) {\n max = scaleType === 'ordinal' ? axisDataLen ? axisDataLen - 1 : NaN : originalExtent[1] + boundaryGap[1] * span;\n }\n\n if (min === 'dataMin') {\n min = originalExtent[0];\n } else if (typeof min === 'function') {\n min = min({\n min: originalExtent[0],\n max: originalExtent[1]\n });\n }\n\n if (max === 'dataMax') {\n max = originalExtent[1];\n } else if (typeof max === 'function') {\n max = max({\n min: originalExtent[0],\n max: originalExtent[1]\n });\n }\n\n (min == null || !isFinite(min)) && (min = NaN);\n (max == null || !isFinite(max)) && (max = NaN);\n scale.setBlank(zrUtil.eqNaN(min) || zrUtil.eqNaN(max)); // Evaluate if axis needs cross zero\n\n if (model.getNeedCrossZero()) {\n // Axis is over zero and min is not set\n if (min > 0 && max > 0 && !fixMin) {\n min = 0;\n } // Axis is under zero and max is not set\n\n\n if (min < 0 && max < 0 && !fixMax) {\n max = 0;\n }\n }\n\n return [min, max];\n}", "function getScaleExtent(scale, model) {\n var scaleType = scale.type;\n var min = model.getMin();\n var max = model.getMax();\n var fixMin = min != null;\n var fixMax = max != null;\n var originalExtent = scale.getExtent();\n var axisDataLen;\n var boundaryGap;\n var span;\n\n if (scaleType === 'ordinal') {\n axisDataLen = model.getCategories().length;\n } else {\n boundaryGap = model.get('boundaryGap');\n\n if (!zrUtil.isArray(boundaryGap)) {\n boundaryGap = [boundaryGap || 0, boundaryGap || 0];\n }\n\n if (typeof boundaryGap[0] === 'boolean') {\n boundaryGap = [0, 0];\n }\n\n boundaryGap[0] = numberUtil.parsePercent(boundaryGap[0], 1);\n boundaryGap[1] = numberUtil.parsePercent(boundaryGap[1], 1);\n span = originalExtent[1] - originalExtent[0] || Math.abs(originalExtent[0]);\n } // Notice: When min/max is not set (that is, when there are null/undefined,\n // which is the most common case), these cases should be ensured:\n // (1) For 'ordinal', show all axis.data.\n // (2) For others:\n // + `boundaryGap` is applied (if min/max set, boundaryGap is\n // disabled).\n // + If `needCrossZero`, min/max should be zero, otherwise, min/max should\n // be the result that originalExtent enlarged by boundaryGap.\n // (3) If no data, it should be ensured that `scale.setBlank` is set.\n // FIXME\n // (1) When min/max is 'dataMin' or 'dataMax', should boundaryGap be able to used?\n // (2) When `needCrossZero` and all data is positive/negative, should it be ensured\n // that the results processed by boundaryGap are positive/negative?\n\n\n if (min == null) {\n min = scaleType === 'ordinal' ? axisDataLen ? 0 : NaN : originalExtent[0] - boundaryGap[0] * span;\n }\n\n if (max == null) {\n max = scaleType === 'ordinal' ? axisDataLen ? axisDataLen - 1 : NaN : originalExtent[1] + boundaryGap[1] * span;\n }\n\n if (min === 'dataMin') {\n min = originalExtent[0];\n } else if (typeof min === 'function') {\n min = min({\n min: originalExtent[0],\n max: originalExtent[1]\n });\n }\n\n if (max === 'dataMax') {\n max = originalExtent[1];\n } else if (typeof max === 'function') {\n max = max({\n min: originalExtent[0],\n max: originalExtent[1]\n });\n }\n\n (min == null || !isFinite(min)) && (min = NaN);\n (max == null || !isFinite(max)) && (max = NaN);\n scale.setBlank(zrUtil.eqNaN(min) || zrUtil.eqNaN(max) || scaleType === 'ordinal' && !scale.getOrdinalMeta().categories.length); // Evaluate if axis needs cross zero\n\n if (model.getNeedCrossZero()) {\n // Axis is over zero and min is not set\n if (min > 0 && max > 0 && !fixMin) {\n min = 0;\n } // Axis is under zero and max is not set\n\n\n if (min < 0 && max < 0 && !fixMax) {\n max = 0;\n }\n } // If bars are placed on a base axis of type time or interval account for axis boundary overflow and current axis\n // is base axis\n // FIXME\n // (1) Consider support value axis, where below zero and axis `onZero` should be handled properly.\n // (2) Refactor the logic with `barGrid`. Is it not need to `makeBarWidthAndOffsetInfo` twice with different extent?\n // Should not depend on series type `bar`?\n // (3) Fix that might overlap when using dataZoom.\n // (4) Consider other chart types using `barGrid`?\n // See #6728, #4862, `test/bar-overflow-time-plot.html`\n\n\n var ecModel = model.ecModel;\n\n if (ecModel && scaleType === 'time'\n /*|| scaleType === 'interval' */\n ) {\n var barSeriesModels = prepareLayoutBarSeries('bar', ecModel);\n var isBaseAxisAndHasBarSeries;\n zrUtil.each(barSeriesModels, function (seriesModel) {\n isBaseAxisAndHasBarSeries |= seriesModel.getBaseAxis() === model.axis;\n });\n\n if (isBaseAxisAndHasBarSeries) {\n // Calculate placement of bars on axis\n var barWidthAndOffset = makeColumnLayout(barSeriesModels); // Adjust axis min and max to account for overflow\n\n var adjustedScale = adjustScaleForOverflow(min, max, model, barWidthAndOffset);\n min = adjustedScale.min;\n max = adjustedScale.max;\n }\n }\n\n return [min, max];\n}", "function getScaleExtent(scale, model) {\n var scaleType = scale.type;\n var min = model.getMin();\n var max = model.getMax();\n var fixMin = min != null;\n var fixMax = max != null;\n var originalExtent = scale.getExtent();\n var axisDataLen;\n var boundaryGap;\n var span;\n\n if (scaleType === 'ordinal') {\n axisDataLen = model.getCategories().length;\n } else {\n boundaryGap = model.get('boundaryGap');\n\n if (!zrUtil.isArray(boundaryGap)) {\n boundaryGap = [boundaryGap || 0, boundaryGap || 0];\n }\n\n if (typeof boundaryGap[0] === 'boolean') {\n boundaryGap = [0, 0];\n }\n\n boundaryGap[0] = numberUtil.parsePercent(boundaryGap[0], 1);\n boundaryGap[1] = numberUtil.parsePercent(boundaryGap[1], 1);\n span = originalExtent[1] - originalExtent[0] || Math.abs(originalExtent[0]);\n } // Notice: When min/max is not set (that is, when there are null/undefined,\n // which is the most common case), these cases should be ensured:\n // (1) For 'ordinal', show all axis.data.\n // (2) For others:\n // + `boundaryGap` is applied (if min/max set, boundaryGap is\n // disabled).\n // + If `needCrossZero`, min/max should be zero, otherwise, min/max should\n // be the result that originalExtent enlarged by boundaryGap.\n // (3) If no data, it should be ensured that `scale.setBlank` is set.\n // FIXME\n // (1) When min/max is 'dataMin' or 'dataMax', should boundaryGap be able to used?\n // (2) When `needCrossZero` and all data is positive/negative, should it be ensured\n // that the results processed by boundaryGap are positive/negative?\n\n\n if (min == null) {\n min = scaleType === 'ordinal' ? axisDataLen ? 0 : NaN : originalExtent[0] - boundaryGap[0] * span;\n }\n\n if (max == null) {\n max = scaleType === 'ordinal' ? axisDataLen ? axisDataLen - 1 : NaN : originalExtent[1] + boundaryGap[1] * span;\n }\n\n if (min === 'dataMin') {\n min = originalExtent[0];\n } else if (typeof min === 'function') {\n min = min({\n min: originalExtent[0],\n max: originalExtent[1]\n });\n }\n\n if (max === 'dataMax') {\n max = originalExtent[1];\n } else if (typeof max === 'function') {\n max = max({\n min: originalExtent[0],\n max: originalExtent[1]\n });\n }\n\n (min == null || !isFinite(min)) && (min = NaN);\n (max == null || !isFinite(max)) && (max = NaN);\n scale.setBlank(zrUtil.eqNaN(min) || zrUtil.eqNaN(max) || scaleType === 'ordinal' && !scale.getOrdinalMeta().categories.length); // Evaluate if axis needs cross zero\n\n if (model.getNeedCrossZero()) {\n // Axis is over zero and min is not set\n if (min > 0 && max > 0 && !fixMin) {\n min = 0;\n } // Axis is under zero and max is not set\n\n\n if (min < 0 && max < 0 && !fixMax) {\n max = 0;\n }\n } // If bars are placed on a base axis of type time or interval account for axis boundary overflow and current axis\n // is base axis\n // FIXME\n // (1) Consider support value axis, where below zero and axis `onZero` should be handled properly.\n // (2) Refactor the logic with `barGrid`. Is it not need to `makeBarWidthAndOffsetInfo` twice with different extent?\n // Should not depend on series type `bar`?\n // (3) Fix that might overlap when using dataZoom.\n // (4) Consider other chart types using `barGrid`?\n // See #6728, #4862, `test/bar-overflow-time-plot.html`\n\n\n var ecModel = model.ecModel;\n\n if (ecModel && scaleType === 'time'\n /*|| scaleType === 'interval' */\n ) {\n var barSeriesModels = prepareLayoutBarSeries('bar', ecModel);\n var isBaseAxisAndHasBarSeries;\n zrUtil.each(barSeriesModels, function (seriesModel) {\n isBaseAxisAndHasBarSeries |= seriesModel.getBaseAxis() === model.axis;\n });\n\n if (isBaseAxisAndHasBarSeries) {\n // Calculate placement of bars on axis\n var barWidthAndOffset = makeColumnLayout(barSeriesModels); // Adjust axis min and max to account for overflow\n\n var adjustedScale = adjustScaleForOverflow(min, max, model, barWidthAndOffset);\n min = adjustedScale.min;\n max = adjustedScale.max;\n }\n }\n\n return [min, max];\n}", "function getScaleExtent(scale, model) {\n var scaleType = scale.type;\n var min = model.getMin();\n var max = model.getMax();\n var fixMin = min != null;\n var fixMax = max != null;\n var originalExtent = scale.getExtent();\n var axisDataLen;\n var boundaryGap;\n var span;\n\n if (scaleType === 'ordinal') {\n axisDataLen = model.getCategories().length;\n } else {\n boundaryGap = model.get('boundaryGap');\n\n if (!zrUtil.isArray(boundaryGap)) {\n boundaryGap = [boundaryGap || 0, boundaryGap || 0];\n }\n\n if (typeof boundaryGap[0] === 'boolean') {\n boundaryGap = [0, 0];\n }\n\n boundaryGap[0] = numberUtil.parsePercent(boundaryGap[0], 1);\n boundaryGap[1] = numberUtil.parsePercent(boundaryGap[1], 1);\n span = originalExtent[1] - originalExtent[0] || Math.abs(originalExtent[0]);\n } // Notice: When min/max is not set (that is, when there are null/undefined,\n // which is the most common case), these cases should be ensured:\n // (1) For 'ordinal', show all axis.data.\n // (2) For others:\n // + `boundaryGap` is applied (if min/max set, boundaryGap is\n // disabled).\n // + If `needCrossZero`, min/max should be zero, otherwise, min/max should\n // be the result that originalExtent enlarged by boundaryGap.\n // (3) If no data, it should be ensured that `scale.setBlank` is set.\n // FIXME\n // (1) When min/max is 'dataMin' or 'dataMax', should boundaryGap be able to used?\n // (2) When `needCrossZero` and all data is positive/negative, should it be ensured\n // that the results processed by boundaryGap are positive/negative?\n\n\n if (min == null) {\n min = scaleType === 'ordinal' ? axisDataLen ? 0 : NaN : originalExtent[0] - boundaryGap[0] * span;\n }\n\n if (max == null) {\n max = scaleType === 'ordinal' ? axisDataLen ? axisDataLen - 1 : NaN : originalExtent[1] + boundaryGap[1] * span;\n }\n\n if (min === 'dataMin') {\n min = originalExtent[0];\n } else if (typeof min === 'function') {\n min = min({\n min: originalExtent[0],\n max: originalExtent[1]\n });\n }\n\n if (max === 'dataMax') {\n max = originalExtent[1];\n } else if (typeof max === 'function') {\n max = max({\n min: originalExtent[0],\n max: originalExtent[1]\n });\n }\n\n (min == null || !isFinite(min)) && (min = NaN);\n (max == null || !isFinite(max)) && (max = NaN);\n scale.setBlank(zrUtil.eqNaN(min) || zrUtil.eqNaN(max) || scaleType === 'ordinal' && !scale.getOrdinalMeta().categories.length); // Evaluate if axis needs cross zero\n\n if (model.getNeedCrossZero()) {\n // Axis is over zero and min is not set\n if (min > 0 && max > 0 && !fixMin) {\n min = 0;\n } // Axis is under zero and max is not set\n\n\n if (min < 0 && max < 0 && !fixMax) {\n max = 0;\n }\n } // If bars are placed on a base axis of type time or interval account for axis boundary overflow and current axis\n // is base axis\n // FIXME\n // (1) Consider support value axis, where below zero and axis `onZero` should be handled properly.\n // (2) Refactor the logic with `barGrid`. Is it not need to `makeBarWidthAndOffsetInfo` twice with different extent?\n // Should not depend on series type `bar`?\n // (3) Fix that might overlap when using dataZoom.\n // (4) Consider other chart types using `barGrid`?\n // See #6728, #4862, `test/bar-overflow-time-plot.html`\n\n\n var ecModel = model.ecModel;\n\n if (ecModel && scaleType === 'time'\n /*|| scaleType === 'interval' */\n ) {\n var barSeriesModels = prepareLayoutBarSeries('bar', ecModel);\n var isBaseAxisAndHasBarSeries;\n zrUtil.each(barSeriesModels, function (seriesModel) {\n isBaseAxisAndHasBarSeries |= seriesModel.getBaseAxis() === model.axis;\n });\n\n if (isBaseAxisAndHasBarSeries) {\n // Calculate placement of bars on axis\n var barWidthAndOffset = makeColumnLayout(barSeriesModels); // Adjust axis min and max to account for overflow\n\n var adjustedScale = adjustScaleForOverflow(min, max, model, barWidthAndOffset);\n min = adjustedScale.min;\n max = adjustedScale.max;\n }\n }\n\n return [min, max];\n}", "function d3_scaleExtent(domain) {\n var start = domain[0], stop = domain[domain.length - 1];\n return start < stop ? [start, stop] : [stop, start];\n}", "function getScaleExtent(scale, model) {\n\t var scaleType = scale.type;\n\t var rawExtentResult = ensureScaleRawExtentInfo(scale, model, scale.getExtent()).calculate();\n\t scale.setBlank(rawExtentResult.isBlank);\n\t var min = rawExtentResult.min;\n\t var max = rawExtentResult.max; // If bars are placed on a base axis of type time or interval account for axis boundary overflow and current axis\n\t // is base axis\n\t // FIXME\n\t // (1) Consider support value axis, where below zero and axis `onZero` should be handled properly.\n\t // (2) Refactor the logic with `barGrid`. Is it not need to `makeBarWidthAndOffsetInfo` twice with different extent?\n\t // Should not depend on series type `bar`?\n\t // (3) Fix that might overlap when using dataZoom.\n\t // (4) Consider other chart types using `barGrid`?\n\t // See #6728, #4862, `test/bar-overflow-time-plot.html`\n\t\n\t var ecModel = model.ecModel;\n\t\n\t if (ecModel && scaleType === 'time'\n\t /*|| scaleType === 'interval' */\n\t ) {\n\t var barSeriesModels = prepareLayoutBarSeries('bar', ecModel);\n\t var isBaseAxisAndHasBarSeries_1 = false;\n\t each(barSeriesModels, function (seriesModel) {\n\t isBaseAxisAndHasBarSeries_1 = isBaseAxisAndHasBarSeries_1 || seriesModel.getBaseAxis() === model.axis;\n\t });\n\t\n\t if (isBaseAxisAndHasBarSeries_1) {\n\t // Calculate placement of bars on axis. TODO should be decoupled\n\t // with barLayout\n\t var barWidthAndOffset = makeColumnLayout(barSeriesModels); // Adjust axis min and max to account for overflow\n\t\n\t var adjustedScale = adjustScaleForOverflow(min, max, model, barWidthAndOffset);\n\t min = adjustedScale.min;\n\t max = adjustedScale.max;\n\t }\n\t }\n\t\n\t return {\n\t extent: [min, max],\n\t // \"fix\" means \"fixed\", the value should not be\n\t // changed in the subsequent steps.\n\t fixMin: rawExtentResult.minFixed,\n\t fixMax: rawExtentResult.maxFixed\n\t };\n\t }", "function getScaleExtent(scale, model) {\n var scaleType = scale.type;\n var rawExtentResult = ensureScaleRawExtentInfo(scale, model, scale.getExtent()).calculate();\n scale.setBlank(rawExtentResult.isBlank);\n var min = rawExtentResult.min;\n var max = rawExtentResult.max; // If bars are placed on a base axis of type time or interval account for axis boundary overflow and current axis\n // is base axis\n // FIXME\n // (1) Consider support value axis, where below zero and axis `onZero` should be handled properly.\n // (2) Refactor the logic with `barGrid`. Is it not need to `makeBarWidthAndOffsetInfo` twice with different extent?\n // Should not depend on series type `bar`?\n // (3) Fix that might overlap when using dataZoom.\n // (4) Consider other chart types using `barGrid`?\n // See #6728, #4862, `test/bar-overflow-time-plot.html`\n\n var ecModel = model.ecModel;\n\n if (ecModel && scaleType === 'time'\n /*|| scaleType === 'interval' */\n ) {\n var barSeriesModels = prepareLayoutBarSeries('bar', ecModel);\n var isBaseAxisAndHasBarSeries_1 = false;\n util[\"k\" /* each */](barSeriesModels, function (seriesModel) {\n isBaseAxisAndHasBarSeries_1 = isBaseAxisAndHasBarSeries_1 || seriesModel.getBaseAxis() === model.axis;\n });\n\n if (isBaseAxisAndHasBarSeries_1) {\n // Calculate placement of bars on axis. TODO should be decoupled\n // with barLayout\n var barWidthAndOffset = makeColumnLayout(barSeriesModels); // Adjust axis min and max to account for overflow\n\n var adjustedScale = adjustScaleForOverflow(min, max, model, barWidthAndOffset);\n min = adjustedScale.min;\n max = adjustedScale.max;\n }\n }\n\n return {\n extent: [min, max],\n // \"fix\" means \"fixed\", the value should not be\n // changed in the subsequent steps.\n fixMin: rawExtentResult.minFixed,\n fixMax: rawExtentResult.maxFixed\n };\n}", "function extent(arr){\n return [min(arr), max(arr)];\n }", "function getBarExtent(){\n \t\tvar repExtent = getExtent(\"Representatives\"),\n \t\t\telectoralExtent = getExtent(\"Electoral Votes\");\n \t\treturn [d3.min([repExtent[0],electoralExtent[0]]), d3.max([repExtent[1],electoralExtent[1]])];\n\t\t}", "function d3_scaleRange(scale) {\n return scale.rangeExtent ? scale.rangeExtent() : d3_scaleExtent(scale.range());\n}", "function ensureScaleRawExtentInfo(scale, model, // Usually: data extent from all series on this axis.\noriginalExtent) {\n // Do not permit to recreate.\n var rawExtentInfo = scale.rawExtentInfo;\n\n if (rawExtentInfo) {\n return rawExtentInfo;\n }\n\n rawExtentInfo = new scaleRawExtentInfo_ScaleRawExtentInfo(scale, model, originalExtent); // @ts-ignore\n\n scale.rawExtentInfo = rawExtentInfo;\n return rawExtentInfo;\n}", "function onAxisAfterGetSeriesExtremes() {\n let dataMax, modMax;\n if (this.isXAxis) {\n dataMax = pick(this.dataMax, -Number.MAX_VALUE);\n for (const series of this.series) {\n if (series.x2Data) {\n for (const val of series.x2Data) {\n if (val && val > dataMax) {\n dataMax = val;\n modMax = true;\n }\n }\n }\n }\n if (modMax) {\n this.dataMax = dataMax;\n }\n }\n}", "function getDatasetExtent (dataset) {\n const extent = dataset.attributes.extent;\n return {\n xmin: extent.coordinates[0][0],\n ymin: extent.coordinates[0][1],\n xmax: extent.coordinates[1][0],\n ymax: extent.coordinates[1][1],\n spatialReference: extent.spatialReference\n };\n }", "function ensureScaleRawExtentInfo(scale, model, // Usually: data extent from all series on this axis.\n\t originalExtent) {\n\t // Do not permit to recreate.\n\t var rawExtentInfo = scale.rawExtentInfo;\n\t\n\t if (rawExtentInfo) {\n\t return rawExtentInfo;\n\t }\n\t\n\t rawExtentInfo = new ScaleRawExtentInfo(scale, model, originalExtent); // @ts-ignore\n\t\n\t scale.rawExtentInfo = rawExtentInfo;\n\t return rawExtentInfo;\n\t }", "function getExtent(index) {\n\t\t\tvar values = Object.keys(tooltipData).map(function (key) {\n \t\t\t\treturn tooltipData[key][index];\n \t\t\t});\n \t\t\treturn d3.extent(values, function(d){ return +d.replace(/[^\\d-\\.]/gi,''); });\n\t\t}", "function extent$2 () {\n\n var fields = [],\n extraPoints = [],\n padUnit = 'percent',\n pad = 0,\n symmetricalAbout = null;\n\n /**\n * @param {array} data an array of data points, or an array of arrays of data points\n */\n var extents = function extents(data) {\n\n // we need an array of arrays if we don't have one already\n if (!Array.isArray(data[0])) {\n data = [data];\n }\n\n // the fields can be a mixed array of property names or accessor functions\n var mutatedFields = fields.map(function (field) {\n if (typeof field !== 'string') {\n return field;\n }\n return function (d) {\n return d[field];\n };\n });\n\n var dataMin = d3.min(data, function (d0) {\n return d3.min(d0, function (d1) {\n return d3.min(mutatedFields.map(function (f) {\n return f(d1);\n }));\n });\n });\n\n var dataMax = d3.max(data, function (d0) {\n return d3.max(d0, function (d1) {\n return d3.max(mutatedFields.map(function (f) {\n return f(d1);\n }));\n });\n });\n\n var dateExtent = Object.prototype.toString.call(dataMin) === '[object Date]';\n\n var min = dateExtent ? dataMin.getTime() : dataMin;\n var max = dateExtent ? dataMax.getTime() : dataMax;\n\n // apply symmetry rules\n if (symmetricalAbout != null) {\n var symmetrical = dateExtent ? symmetricalAbout.getTime() : symmetricalAbout;\n var distanceFromMax = Math.abs(max - symmetrical),\n distanceFromMin = Math.abs(min - symmetrical),\n halfRange = Math.max(distanceFromMax, distanceFromMin);\n\n min = symmetrical - halfRange;\n max = symmetrical + halfRange;\n }\n\n if (padUnit === 'domain') {\n // pad absolutely\n if (Array.isArray(pad)) {\n min -= pad[0];\n max += pad[1];\n } else {\n min -= pad;\n max += pad;\n }\n } else if (padUnit === 'percent') {\n // pad percentagely\n if (Array.isArray(pad)) {\n var deltaArray = [pad[0] * (max - min), pad[1] * (max - min)];\n min -= deltaArray[0];\n max += deltaArray[1];\n } else {\n var delta = pad * (max - min) / 2;\n min -= delta;\n max += delta;\n }\n }\n\n if (extraPoints.length) {\n min = Math.min(min, d3.min(extraPoints));\n max = Math.max(max, d3.max(extraPoints));\n }\n\n if (dateExtent) {\n min = new Date(min);\n max = new Date(max);\n }\n\n // Return the smallest and largest\n return [min, max];\n };\n\n /*\n * @param {array} fields the names of object properties that represent field values, or accessor functions.\n */\n extents.fields = function (x) {\n if (!arguments.length) {\n return fields;\n }\n fields = x;\n return extents;\n };\n\n extents.include = function (x) {\n if (!arguments.length) {\n return extraPoints;\n }\n extraPoints = x;\n return extents;\n };\n\n extents.padUnit = function (x) {\n if (!arguments.length) {\n return padUnit;\n }\n padUnit = x;\n return extents;\n };\n\n extents.pad = function (x) {\n if (!arguments.length) {\n return pad;\n }\n pad = x;\n return extents;\n };\n\n extents.symmetricalAbout = function (x) {\n if (!arguments.length) {\n return symmetricalAbout;\n }\n symmetricalAbout = x;\n return extents;\n };\n\n return extents;\n }", "function houseDataExtent(x) {\n\tvar array = [];\n\tif (x != \"yr_renovated\") {\n\t\trawData.forEach(function(d) { array.push(Number(d[x])); });\n\t} else {\n\t\trawData.forEach(function(d) { if (Number(d[x]) != 0) array.push(Number(d[x])); });\n\t}\n\treturn d3.extent(array);\n}", "function getScale(element) {\n var rect = element.getBoundingClientRect(); // Read-only in old browsers.\n\n return {\n x: rect.width / element.offsetWidth || 1,\n y: rect.height / element.offsetHeight || 1,\n boundingClientRect: rect\n };\n }", "function niceScaleExtent(scale, model) {\n\t var extentInfo = getScaleExtent(scale, model);\n\t var extent = extentInfo.extent;\n\t var splitNumber = model.get('splitNumber');\n\t\n\t if (scale instanceof LogScale) {\n\t scale.base = model.get('logBase');\n\t }\n\t\n\t var scaleType = scale.type;\n\t scale.setExtent(extent[0], extent[1]);\n\t scale.niceExtent({\n\t splitNumber: splitNumber,\n\t fixMin: extentInfo.fixMin,\n\t fixMax: extentInfo.fixMax,\n\t minInterval: scaleType === 'interval' || scaleType === 'time' ? model.get('minInterval') : null,\n\t maxInterval: scaleType === 'interval' || scaleType === 'time' ? model.get('maxInterval') : null\n\t }); // If some one specified the min, max. And the default calculated interval\n\t // is not good enough. He can specify the interval. It is often appeared\n\t // in angle axis with angle 0 - 360. Interval calculated in interval scale is hard\n\t // to be 60.\n\t // FIXME\n\t\n\t var interval = model.get('interval');\n\t\n\t if (interval != null) {\n\t scale.setInterval && scale.setInterval(interval);\n\t }\n\t }", "function d3_svg_axisSubdivide(scale, ticks, m) {\n var subticks = [];\n if (m && ticks.length > 1) {\n var extent = d3_scaleExtent(scale.domain()),\n i = -1,\n n = ticks.length,\n d = (ticks[1] - ticks[0]) / ++m,\n j,\n v;\n while (++i < n) {\n for (j = m; --j > 0;) {\n if ((v = +ticks[i] - j * d) >= extent[0]) {\n subticks.push(v);\n }\n }\n }\n for (--i, j = 0; ++j < m && (v = +ticks[i] + j * d) < extent[1];) {\n subticks.push(v);\n }\n }\n return subticks;\n}", "function range(scale) {\n // for non ordinal, simply return the range\n if (!isOrdinal(scale)) {\n return scale.range();\n }\n\n // For ordinal, use the rangeExtent. However, rangeExtent always provides\n // a non inverted range (i.e. extent[0] < extent[1]) regardless of the\n // range set on the scale. The logic below detects the inverted case.\n //\n // The d3 code that tackles the same issue doesn't have to deal with the inverted case.\n var scaleRange = scale.range();\n var extent = scale.rangeExtent();\n if (scaleRange.length <= 1) {\n // we cannot detect the inverted case if the range (and domain) has\n // a single item in it.\n return extent;\n }\n\n var inverted = scaleRange[0] > scaleRange[1];\n return inverted ? [extent[1], extent[0]] : extent;\n }", "get_empirical_scale() {\n // Simple ratio of canvas width to image x-dimension\n return jquery_default()(\"#\" + this.config[\"imwrap_id\"]).width()/this.config[\"image_width\"];\n }", "function getMinScale(inputScale) {\n\treturn Math.min(Math.abs((plot.xmax-plot.xmin)/inputScale),\n\t\t\tMath.abs((plot.ymax-plot.ymin)/inputScale));\n}", "function domain_extender(self, axis, ordinal) {\n var scalename = axis + 'scale',\n zero = axis + '0',\n zero_val = axis + '0_value';\n if (ordinal) return function () {\n var scale_prop = self[scalename],\n scale = scale_prop(),\n domain = self.data().map(self[axis]());\n if (scale_prop._has_domain) {\n var old_domain = scale.domain(),\n add_values = domain.filter(function (val) {\n return old_domain.indexOf(val) < 0;\n });\n scale.domain(old_domain.concat(add_values));\n } else {\n scale.domain(domain);\n scale_prop._has_domain = true;\n }\n return scale;\n };else return function () {\n var scale_prop = self[scalename],\n scale = scale_prop(),\n domain = d3.extent(self.data(), self[axis]());\n\n // Incorporate the zero value\n var z = self[zero]();\n if (typeof z != 'undefined') {\n if (domain[0] > z) domain[0] = z;\n if (domain[1] < z) domain[1] = z;\n } else {\n z = domain[0];\n }\n self[zero_val] = z;\n\n // Extend the domain\n if (scale_prop._has_domain) scale.domain(d3.extent([].concat(_toConsumableArray(scale.domain()), _toConsumableArray(domain))));else {\n scale.domain(domain);\n scale_prop._has_domain = true;\n }\n return scale;\n };\n}", "setExtent() {\n\n var tl = this.props.map.containerPointToLatLng(this.tl);\n var br = this.props.map.containerPointToLatLng(this.br);\n\n tl = this.projection([tl.lng, tl.lat]);\n br = this.projection([br.lng, br.lat]);\n\n this.extent.attr({\n x: tl[0],\n y: tl[1],\n height: br[1]-tl[1],\n width: br[0]-tl[0],\n });\n\n }", "function scaleUnits(val, axis){\n if (axis === 'y') {\n return cells(graphScale.yUnit) * val;\n }\n if (axis === 'x') {\n return cells(graphScale.xUnit) * val;\n }\n return 0; //maybe throw error instead\n}", "function extent() { }", "get Axis() {\n let sampleData = this.chart.data[0];\n let size = sampleData.length;\n\n return d3.svg\n .axis()\n .scale(this.chart.xScale)\n .orient('bottom')\n .tickFormat(getDate().long)\n .tickValues(getBestTickValues(sampleData));\n }", "limity() { return (this.scale - 1) * this.sizey / 2; }", "function numericExtent(values) {\n var _a = extent(values), min = _a[0], max = _a[1];\n if (typeof min === 'number' && isFinite(min) && typeof max === 'number' && isFinite(max)) {\n return [min, max];\n }\n}", "function niceScaleExtent(scale, model) {\n var extentInfo = getScaleExtent(scale, model);\n var extent = extentInfo.extent;\n var splitNumber = model.get('splitNumber');\n\n if (scale instanceof Log) {\n scale.base = model.get('logBase');\n }\n\n var scaleType = scale.type;\n scale.setExtent(extent[0], extent[1]);\n scale.niceExtent({\n splitNumber: splitNumber,\n fixMin: extentInfo.fixMin,\n fixMax: extentInfo.fixMax,\n minInterval: scaleType === 'interval' || scaleType === 'time' ? model.get('minInterval') : null,\n maxInterval: scaleType === 'interval' || scaleType === 'time' ? model.get('maxInterval') : null\n }); // If some one specified the min, max. And the default calculated interval\n // is not good enough. He can specify the interval. It is often appeared\n // in angle axis with angle 0 - 360. Interval calculated in interval scale is hard\n // to be 60.\n // FIXME\n\n var interval = model.get('interval');\n\n if (interval != null) {\n scale.setInterval && scale.setInterval(interval);\n }\n}", "get scaleFactor() {}", "dpi () {\n return this.chart.width / this.interval.width * this.zoom.value;\n }", "function getXPixelAxis(val) {\n\t\treturn (getGraphWidth() / size * val) + ((width - xOffset) / size) / 2 + xOffset;\n\t}", "scale(num) {\n\n var NewValue = (((num - 0) * (this.svgW - 0)) / (this.maxXVal - 0)) + 0;\n return (NewValue);\n }", "function extentToBounds (extent) {\r\n // \"NaN\" coordinates from ArcGIS Server indicate a null geometry\r\n if (extent.xmin !== 'NaN' && extent.ymin !== 'NaN' && extent.xmax !== 'NaN' && extent.ymax !== 'NaN') {\r\n var sw = Object(leaflet__WEBPACK_IMPORTED_MODULE_0__[\"latLng\"])(extent.ymin, extent.xmin);\r\n var ne = Object(leaflet__WEBPACK_IMPORTED_MODULE_0__[\"latLng\"])(extent.ymax, extent.xmax);\r\n return Object(leaflet__WEBPACK_IMPORTED_MODULE_0__[\"latLngBounds\"])(sw, ne);\r\n } else {\r\n return null;\r\n }\r\n}", "getCurrentExtent() {\n var b = OlMap.map.getView().calculateExtent(OlMap.map.getSize());\n var pair1 = [b[0], b[1]]\n var pair2 = [b[2], b[3]];\n var cur_proj = OlMap.map.getView().getProjection().getCode();\n pair1 = transform(pair1, cur_proj, 'EPSG:4326');\n pair2 = transform(pair2, cur_proj, 'EPSG:4326');\n return [pair1[0].toFixed(2), pair1[1].toFixed(2), pair2[0].toFixed(2), pair2[1].toFixed(2)];\n }", "getMainAxisPoints() {\n\t\tconst size = this.getDataSize();\n\t\tconst points = [];\n\t\tconst fullDimension = this.isVertical() ? this.getHeight() : this.getWidth();\n\t\tfor (let i = 0; i <= size; i++) {\n\t\t\tpoints.push(roundPoint((fullDimension * i) / size));\n\t\t}\n\t\treturn points;\n\t}", "static extents(nodes) {\n return {x:d3.extent(nodes, d=>d.fx), y:d3.extent(nodes, d=>d.fy)}\n }", "getScale() {\n return this.scale;\n }", "function calculateRange(axis, axisOptions){\n\t\t\tvar min = axisOptions.min != null ? axisOptions.min : axis.datamin;\n\t\t\tvar max = axisOptions.max != null ? axisOptions.max : axis.datamax;\t\n\t\t\tif(max - min == 0.0){\n\t\t\t\tvar widen = (max == 0.0) ? 1.0 : 0.01;\n\t\t\t\tmin -= widen;\n\t\t\t\tmax += widen;\n\t\t\t}\t\t\t\n\t\t\taxis.tickSize = getTickSize(axisOptions.noTicks, min, max, axisOptions.tickDecimals);\n\t\t\t\t\n\t\t\t/**\n\t\t\t * Autoscaling.\n\t\t\t */\n\t\t\tvar margin;\n\t\t\tif(axisOptions.min == null){\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Add a margin.\n\t\t\t\t */\n\t\t\t\tmargin = axisOptions.autoscaleMargin;\n\t\t\t\tif(margin != 0){\n\t\t\t\t\tmin -= axis.tickSize * margin;\t\t\t\t\n\t\t\t\t\t/**\n\t\t\t\t\t * Make sure we don't go below zero if all values are positive.\n\t\t\t\t\t */\n\t\t\t\t\tif(min < 0 && axis.datamin >= 0) min = 0;\t\t\t\t\n\t\t\t\t\tmin = axis.tickSize * Math.floor(min / axis.tickSize);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(axisOptions.max == null){\n\t\t\t\tmargin = axisOptions.autoscaleMargin;\n\t\t\t\tif(margin != 0){\n\t\t\t\t\tmax += axis.tickSize * margin;\n\t\t\t\t\tif(max > 0 && axis.datamax <= 0) max = 0;\t\t\t\t\n\t\t\t\t\tmax = axis.tickSize * Math.ceil(max / axis.tickSize);\n\t\t\t\t}\n\t\t\t}\n\t\t\taxis.min = min;\n\t\t\taxis.max = max;\n\t\t}", "function scale(data, range, axis) {\n var scale = d3.scale.linear()\n //extent returns min and max values of data\n .domain(d3.extent(data, function(d) {\n return d[axis];\n }))\n .range(range)\n \n //makes scale end at rounded values\n .nice();\n return scale;\n }", "getModuleWidth(){return this.module_base_face_dimensions_axes[0];}", "function calculateBase(groupItem){var extent;var baseAxis=groupItem.axis;var seriesModels=groupItem.seriesModels;var seriesCount=seriesModels.length;var boxWidthList=groupItem.boxWidthList = [];var boxOffsetList=groupItem.boxOffsetList = [];var boundList=[];var bandWidth;if(baseAxis.type === 'category'){bandWidth = baseAxis.getBandWidth();}else {var maxDataCount=0;each(seriesModels,function(seriesModel){maxDataCount = Math.max(maxDataCount,seriesModel.getData().count());});extent = baseAxis.getExtent(),Math.abs(extent[1] - extent[0]) / maxDataCount;}each(seriesModels,function(seriesModel){var boxWidthBound=seriesModel.get('boxWidth');if(!zrUtil.isArray(boxWidthBound)){boxWidthBound = [boxWidthBound,boxWidthBound];}boundList.push([parsePercent(boxWidthBound[0],bandWidth) || 0,parsePercent(boxWidthBound[1],bandWidth) || 0]);});var availableWidth=bandWidth * 0.8 - 2;var boxGap=availableWidth / seriesCount * 0.3;var boxWidth=(availableWidth - boxGap * (seriesCount - 1)) / seriesCount;var base=boxWidth / 2 - availableWidth / 2;each(seriesModels,function(seriesModel,idx){boxOffsetList.push(base);base += boxGap + boxWidth;boxWidthList.push(Math.min(Math.max(boxWidth,boundList[idx][0]),boundList[idx][1]));});}", "function getScale(xs,ys){\r\n var minX = getMin(xs);\r\n var maxX = getMax(xs);\r\n\r\n var minY = getMin(ys);\r\n var maxY = getMax(ys);\r\n\r\n //800 is canvas size - 100 for margin on each side (to center)\r\n var scalex = 600 / (maxX - minX);\r\n var scaley = 600 / (maxY - minY);\r\n\r\n //give smaller of 2 scale so it does not go out of bounds\r\n return Math.min(scalex, scaley);\r\n}", "niceScale (yMin, yMax, ticks = 10) {\n if ((yMin === Number.MIN_VALUE && yMax === 0) || (!Utils.isNumber(yMin) && !Utils.isNumber(yMax))) {\n // when all values are 0\n yMin = 0\n yMax = 1\n ticks = 1\n let justRange = this.justRange(yMin, yMax, ticks)\n return justRange\n }\n\n // Calculate Min amd Max graphical labels and graph\n // increments. The number of ticks defaults to\n // 10 which is the SUGGESTED value. Any tick value\n // entered is used as a suggested value which is\n // adjusted to be a 'pretty' value.\n //\n // Output will be an array of the Y axis values that\n // encompass the Y values.\n let result = []\n // If yMin and yMax are identical, then\n // adjust the yMin and yMax values to actually\n // make a graph. Also avoids division by zero errors.\n if (yMin === yMax) {\n yMin = yMin - 10 // some small value\n yMax = yMax + 10 // some small value\n }\n // Determine Range\n let range = yMax - yMin\n let tiks = ticks + 1\n // Adjust ticks if needed\n if (tiks < 2) {\n tiks = 2\n } else if (tiks > 2) {\n tiks -= 2\n }\n\n // Get raw step value\n let tempStep = range / tiks\n // Calculate pretty step value\n\n let mag = Math.floor(this.log10(tempStep))\n let magPow = Math.pow(10, mag)\n let magMsd = parseInt(tempStep / magPow)\n let stepSize = magMsd * magPow\n\n // build Y label array.\n // Lower and upper bounds calculations\n let lb = stepSize * Math.floor(yMin / stepSize)\n let ub = stepSize * Math.ceil((yMax / stepSize))\n // Build array\n let val = lb\n while (1) {\n result.push(val)\n val += stepSize\n if (val > ub) { break }\n }\n\n // TODO: need to remove this condition below which makes this function tightly coupled with w.\n if (this.w.config.yaxis[0].max === undefined &&\n this.w.config.yaxis[0].min === undefined) {\n return {\n result,\n niceMin: result[0],\n niceMax: result[result.length - 1]\n }\n } else {\n result = []\n let v = yMin\n result.push(v)\n let valuesDivider = Math.abs(yMax - yMin) / ticks\n for (let i = 0; i <= ticks - 1; i++) {\n v = v + valuesDivider\n result.push(v)\n }\n\n return {\n result,\n niceMin: result[0],\n niceMax: result[result.length - 1]\n }\n }\n }", "function xScale(data) {\n\n bound = calculate_minmax(data);\n let x = d3.scaleLinear()\n .domain([bound.min, bound.max])\n .range([25, w - 25])\n .nice();\n return x;\n\n}", "@computed\n get glyphScaleImportance() {\n if (isEmpty(this.annotationConfigPropertiesById)) {\n return undefined;\n }\n const property = this.annotationConfigPropertiesById['importance'];\n return scaleLinear()\n .domain([property.min, property.max])\n .range([5, 0]);\n }", "function extendScale(scale) {\n var extendedScale = function(y) {\n if (y === null) {\n return null;\n }\n return scale(y);\n };\n extendedScale.__proto__ = scale;\n return extendedScale;\n }", "function getChartDimensions() {\r\n var chartWidth = aleph.xMain.range()[1] - aleph.xMain.range()[0];\r\n var chartHeight = aleph.yMain.range()[0] - aleph.yMain.range()[1];\r\n\r\n return;\r\n}", "function zoomInOut(dir){\r\n var w = dg.xAxisRange();\r\n var scale = w[1] - w[0];\r\n //console.log(scale, dg.xAxisRange(), dg.xAxisExtremes());\r\n if (dir == \"out\") {\r\n var wholeW = dg.xAxisExtremes();\r\n var wholeScale = wholeW[1] - wholeW[0];\r\n if (scale == wholeScale) {\r\n alert('Already zoomed to full extent. Range \"Selected date range to see more data\".');\r\n } else if (scale >= (wholeScale/2)) {\r\n reset();\r\n } else {\r\n zoom(scale/1000*2);\r\n }\r\n } else {\r\n zoom(scale/1000/2);\r\n }\r\n}", "function single_prepareCustom_dataToCoordSize(dataSize, dataItem) {\n // dataItem is necessary in log axis.\n var axis = this.getAxis();\n var val = dataItem instanceof Array ? dataItem[0] : dataItem;\n var halfSize = (dataSize instanceof Array ? dataSize[0] : dataSize) / 2;\n return axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\n}", "setPlotScale()\n {\n var barData = new Array();\n var max_value = -99999999.0;\n var min_value = +99999999.0;\n\n if ( this.plotType == this.STACKED ) // Need to sum each X value\n {\n var maxBars = this.calcMaxBars();\n var tmpData = new Array(maxBars);\n for ( var indx=0; indx<maxBars; indx++ )\n tmpData[indx] = 0;\n\n for ( var indx=0; indx<this.plotData.length; indx++ )\n {\n barData = this.plotData[indx];\n for ( var jndx=0; jndx<barData.length; jndx++ )\n {\n tmpData[jndx] += barData[jndx];\n }\n }\n\n // Now calculate against summed bars...\n for ( var indx=0; indx<maxBars; indx++ )\n {\n if ( tmpData[indx] > max_value )\n max_value = tmpData[indx];\n }\n }\n else // Just find min/max value within data set\n {\n for ( var indx=0; indx<this.plotData.length; indx++ )\n {\n barData = this.plotData[indx];\n for ( var jndx=0; jndx<barData.length; jndx++ )\n {\n if ( barData[jndx] > max_value )\n max_value = barData[jndx];\n }\n }\n }\n\n //ZZZ What about supporting negative values?\n min_value = 0;\n\n // Needed? Rounds axes in the 0.0 to 1.0 to 1.0\n // Could check orders of magnitude... 0.001 or 1000\n\n if ( max_value > 0.0 && max_value < 1.0 )\n max_value = 1.0;\n if ( min_value < 1.0 && min_value > 0.0 )\n min_value = 0.0;\n\n this.plotYMin = min_value;\n this.plotYMax = max_value;\n }", "_getScaleX() {\n\t\t\t\treturn this.scale;\n\t\t\t}", "function getScale(bounds) {\n\t return Math.min(\n\t scale0 * geoWidth / (bounds[1][0] - bounds[0][0]),\n\t scale0 * geoHeight / (bounds[1][1] - bounds[0][1])\n\t );\n\t }", "function getScale(bounds) {\n\t return Math.min(\n\t scale0 * geoWidth / (bounds[1][0] - bounds[0][0]),\n\t scale0 * geoHeight / (bounds[1][1] - bounds[0][1])\n\t );\n\t }", "function extentToBounds (extent) {\n // \"NaN\" coordinates from ArcGIS Server indicate a null geometry\n if (extent.xmin !== 'NaN' && extent.ymin !== 'NaN' && extent.xmax !== 'NaN' && extent.ymax !== 'NaN') {\n var sw = leaflet.latLng(extent.ymin, extent.xmin);\n var ne = leaflet.latLng(extent.ymax, extent.xmax);\n return leaflet.latLngBounds(sw, ne);\n } else {\n return null;\n }\n}", "function getNormalizedValue(val, scale) {\n var scaled;\n\n switch (val) {\n case 'start':\n return 0;\n\n case 'end':\n return 1;\n\n case 'median':\n {\n scaled = scale.isCategory ? stat_1.getMedian(scale.values.map(function (_, idx) {\n return idx;\n })) : stat_1.getMedian(scale.values);\n break;\n }\n\n case 'mean':\n {\n scaled = scale.isCategory ? (scale.values.length - 1) / 2 : stat_1.getMean(scale.values);\n break;\n }\n\n case 'min':\n scaled = scale.isCategory ? 0 : scale[val];\n break;\n\n case 'max':\n scaled = scale.isCategory ? scale.values.length - 1 : scale[val];\n break;\n\n default:\n scaled = val;\n break;\n }\n\n return scale.scale(scaled);\n}", "function calcExtents(data, indicator) {\n\n // first find all the data points for a specific indicator across\n // all countries and join them into one array.\n var allValues = data.map(function(country) {\n return country[indicator];\n }).reduce(function(values, current) {\n return values.concat(_.compact(current));\n }, []);\n\n // now go through all the data points and find the extent using d3's\n // `extent` function.\n var extent = d3.extent(allValues, function(d) {\n return d.value;\n });\n\n return extent;\n}", "function dataToCoordSize(dataSize, dataItem) {\n // dataItem is necessary in log axis.\n var axis = this.getAxis();\n var val = dataItem instanceof Array ? dataItem[0] : dataItem;\n var halfSize = (dataSize instanceof Array ? dataSize[0] : dataSize) / 2;\n return axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\n}", "function dataToCoordSize(dataSize, dataItem) {\n // dataItem is necessary in log axis.\n var axis = this.getAxis();\n var val = dataItem instanceof Array ? dataItem[0] : dataItem;\n var halfSize = (dataSize instanceof Array ? dataSize[0] : dataSize) / 2;\n return axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\n}", "function dataToCoordSize(dataSize, dataItem) {\n // dataItem is necessary in log axis.\n var axis = this.getAxis();\n var val = dataItem instanceof Array ? dataItem[0] : dataItem;\n var halfSize = (dataSize instanceof Array ? dataSize[0] : dataSize) / 2;\n return axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\n}", "function getScales(xyMinMaxCurr, xyMinMaxOrigin) {\n\t var sizeCurr = getSize(xyMinMaxCurr);\n\t var sizeOrigin = getSize(xyMinMaxOrigin);\n\t var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];\n\t isNaN(scales[0]) && (scales[0] = 1);\n\t isNaN(scales[1]) && (scales[1] = 1);\n\t return scales;\n\t }", "get globalScale() {}", "function chart_scale(scale)\n {\n if( $(elm).length )\n {\n var width = $(elm).width() * scale;\n chart_resize(width);\n }\n }", "function getNormalizedValue(val, scale) {\n var scaled;\n switch (val) {\n case 'start':\n return 0;\n case 'end':\n return 1;\n case 'median': {\n scaled = scale.isCategory ? getMedian(scale.values.map(function (_, idx) { return idx; })) : getMedian(scale.values);\n break;\n }\n case 'mean': {\n scaled = scale.isCategory ? (scale.values.length - 1) / 2 : getMean(scale.values);\n break;\n }\n case 'min':\n scaled = scale.isCategory ? 0 : scale[val];\n break;\n case 'max':\n scaled = scale.isCategory ? scale.values.length - 1 : scale[val];\n break;\n default:\n scaled = val;\n break;\n }\n return scale.scale(scaled);\n}", "function tickWidthToPixels(scale, d, i) {\n var next = i == scale.ticks().length - 1 ? scale.range()[1] : scale(scale.ticks()[i + 1]);\n return next - scale(d)\n }", "updateDomainByBBox(b) {\n let x = this.xAxis.scale();\n x.domain([b[0], b[1]]);\n }", "function xLength ( nightsIn, xScale )\r\n {\r\n var startDate = new Date ( dateMin );\r\n var endDate = new Date ( dateMin );\r\n endDate.setDate( endDate.getDate() + parseInt(nightsIn));\r\n \r\n \tstartScale = xScale ( startDate );\r\n \tendScale = xScale ( endDate );\r\n \r\n \treturn endScale - startScale; \r\n }", "get timelineDayScale() {\n\t\treturn this.nativeElement ? this.nativeElement.timelineDayScale : undefined;\n\t}", "function getScales(xyMinMaxCurr, xyMinMaxOrigin) {\n\t var sizeCurr = getSize(xyMinMaxCurr);\n\t var sizeOrigin = getSize(xyMinMaxOrigin);\n\t var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];\n\t isNaN(scales[0]) && (scales[0] = 1);\n\t isNaN(scales[1]) && (scales[1] = 1);\n\t return scales;\n\t}", "function getViewportScale() {\r\n\t\treturn getInnerWidth() / document.documentElement.clientWidth;\r\n\t}", "getXScale(width) {\n let domainValues = _.map(this.props.data, (d) => d[this.props.x]);\n let sortedVals = _.sortBy(domainValues, [(d) => {\n let rank = this.props.xRank[d];\n return (rank) ? rank : 8;\n \n }]);\n\n return scaleBand()\n .padding(this.props.padding)\n .domain(sortedVals)\n .range([this.props.margins.left, width - this.props.margins.left]);\n }", "function plot_get_x_max(plot_id) {\n\tif (! plot_is_showed(plot_id)) {\n\t\tconsole.log('Broken plot_get_x_max');\n\t\treturn;\n\t}\n\treturn plots[plot_id]['chart'].scales['x-axis-0'].max;\n}", "function getScaleFactor() { return Math.pow(2, Globals.scale * -1); }", "function niceAxisNumbering(amin, amax, ntick) {\n var nfrac; // number of fractional digits to show\n var d; // tick mark spacing\n var graphmin, graphmax;\n var range, x;\n var axisValues = [];\n\n if (amin>0 && amin/amax < 0.5) amin = 0; // My fudge, to show origin when appropriate.\n\n range = niceNum(amax-amin, false);\n d = niceNum(range/(ntick-1), true);\n graphmin = Math.floor(amin/d)*d;\n graphmax = Math.ceil(amax/d)*d;\n nfrac = Math.max(-Math.floor(log10(d)),0);\n \n \n for (x=graphmin; x<=graphmax+0.5*d; x+=d) {\n axisValues.push(x);\n }\n return axisValues;\n}", "limitx() { return (this.scale - 1) * this.sizex / 2; }", "get timeScale() {\n\t\treturn this.__Internal__Dont__Modify__.timeScale;\n\t}", "function getScales(xyMinMaxCurr, xyMinMaxOrigin) {\n var sizeCurr = getSize(xyMinMaxCurr);\n var sizeOrigin = getSize(xyMinMaxOrigin);\n var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];\n isNaN(scales[0]) && (scales[0] = 1);\n isNaN(scales[1]) && (scales[1] = 1);\n return scales;\n}", "function getScales(xyMinMaxCurr, xyMinMaxOrigin) {\n var sizeCurr = getSize(xyMinMaxCurr);\n var sizeOrigin = getSize(xyMinMaxOrigin);\n var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];\n isNaN(scales[0]) && (scales[0] = 1);\n isNaN(scales[1]) && (scales[1] = 1);\n return scales;\n}", "function getScales(xyMinMaxCurr, xyMinMaxOrigin) {\n var sizeCurr = getSize(xyMinMaxCurr);\n var sizeOrigin = getSize(xyMinMaxOrigin);\n var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];\n isNaN(scales[0]) && (scales[0] = 1);\n isNaN(scales[1]) && (scales[1] = 1);\n return scales;\n}", "function getScales(xyMinMaxCurr, xyMinMaxOrigin) {\n var sizeCurr = getSize(xyMinMaxCurr);\n var sizeOrigin = getSize(xyMinMaxOrigin);\n var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];\n isNaN(scales[0]) && (scales[0] = 1);\n isNaN(scales[1]) && (scales[1] = 1);\n return scales;\n}", "function getScales(xyMinMaxCurr, xyMinMaxOrigin) {\n var sizeCurr = getSize(xyMinMaxCurr);\n var sizeOrigin = getSize(xyMinMaxOrigin);\n var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];\n isNaN(scales[0]) && (scales[0] = 1);\n isNaN(scales[1]) && (scales[1] = 1);\n return scales;\n}", "function getScales(xyMinMaxCurr, xyMinMaxOrigin) {\n var sizeCurr = getSize(xyMinMaxCurr);\n var sizeOrigin = getSize(xyMinMaxOrigin);\n var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];\n isNaN(scales[0]) && (scales[0] = 1);\n isNaN(scales[1]) && (scales[1] = 1);\n return scales;\n}", "function getScales(xyMinMaxCurr, xyMinMaxOrigin) {\n var sizeCurr = getSize(xyMinMaxCurr);\n var sizeOrigin = getSize(xyMinMaxOrigin);\n var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];\n isNaN(scales[0]) && (scales[0] = 1);\n isNaN(scales[1]) && (scales[1] = 1);\n return scales;\n}", "function getScales(xyMinMaxCurr, xyMinMaxOrigin) {\n var sizeCurr = getSize(xyMinMaxCurr);\n var sizeOrigin = getSize(xyMinMaxOrigin);\n var scales = [sizeCurr[0] / sizeOrigin[0], sizeCurr[1] / sizeOrigin[1]];\n isNaN(scales[0]) && (scales[0] = 1);\n isNaN(scales[1]) && (scales[1] = 1);\n return scales;\n}", "function getMaxYAxis(data) {\n var max = 0;\n data.forEach(function(item) {\n max = Math.max(max, d3.max(item.values, function(d) {\n return d.value;\n }));\n\n });\n\n return Math.ceil(max / 500) * 500;\n }", "function getTickSize(noTicks, min, max, decimals){\n\t\tvar delta = (max - min) / noTicks;\n\t\tvar magn = getMagnitude(delta);\n\t\t/**\n\t\t * Norm is between 1.0 and 10.0.\n\t\t */\n\t\tvar norm = delta / magn;\n\n\t\tvar tickSize = 10;\n\t\tif(norm < 1.5) tickSize = 1;\n\t\telse if(norm < 2.25) tickSize = 2;\n\t\telse if(norm < 3) tickSize = 2.5;\n\t\telse if(norm < 7.5) tickSize = 5;\n\n\t\tif(tickSize == 2.5 && decimals == 0)\n\t\t\ttickSize = 2;\n\t\t\n\t\ttickSize *= magn;\n\t\treturn tickSize;\n\t}", "function yScale() {\n var scale,\n // find min/max value of each data series\n domain = [Number.MAX_VALUE, Number.MAX_VALUE * -1];\n _.each(axesDef.y1, function(col) {\n domain[0] = Math.min(domain[0], col.range()[0]);\n domain[1] = Math.max(domain[1], col.range()[1]);\n });\n y1Domain = domain; // store for later, replaces me.__domain\n if (vis.get('baseline-zero', false) || vis.get('fill-below', false)) {\n if (domain[0] > 0) domain[0] = 0;\n if (domain[1] < 0) domain[1] = 0;\n }\n scale = useLogScale ? 'log' : 'linear';\n if (scale == 'log' && domain[0] === 0) domain[0] = 0.03; // log scales don't like zero!\n return d3.scale[scale]().domain(domain);\n }", "ggh() {\n return this.cr.canvas.height / this.cr.options.scaleFactor;\n }", "function extendXRangeIfNeededByBar(){\n\t\t\tif(options.xaxis.max == null){\n\t\t\t\t/**\n\t\t\t\t * Autoscaling.\n\t\t\t\t */\n\t\t\t\tvar newmax = xaxis.max;\n\t\t\t\tfor(var i = 0; i < series.length; ++i){\n\t\t\t\t\tif(series[i].bars.show && series[i].bars.barWidth + xaxis.datamax > newmax){\n\t\t\t\t\t\tnewmax = xaxis.max + series[i].bars.barWidth;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\txaxis.max = newmax;\n\t\t\t}\n\t\t}", "render(g) {\n let xStart = g.axesPadding+g.axesLineWidth;\n let xEnd = g.width - g.axesPadding;//*2 - g.dataMargin;\n let yStart = g.height-g.axesPadding-g.axesLineWidth/2+1;\n let yDist = g.yMax-g.yMin;\n\n let minYPerc = (this.minimum-g.yMin) / yDist;\n let avgYPerc = (this.average-g.yMin) / yDist;\n let maxYPerc = (this.maximum-g.yMin) / yDist;\n\n let minYPos = g.height * minYPerc - (g.axesPadding*2)-g.axesLineWidth/2;\n let avgYPos = g.height * avgYPerc - (g.axesPadding*2)-g.axesLineWidth/2;\n let maxYPos = g.height * maxYPerc - (g.axesPadding*2)-g.axesLineWidth/2;\n\n // max:\n g.drawLine(xStart, yStart-maxYPos-g.axesLineWidth+this.minLineWidth/2, \n xEnd, yStart-maxYPos-g.axesLineWidth+this.minLineWidth/2, this.maxLineColor, this.maxLineWidth);\n g.drawText(this.maximum, xEnd, yStart-maxYPos-g.textOffset, null, g.graphFont, this.maxLineColor);\n // avg:\n g.drawLine(xStart, yStart-avgYPos-g.axesLineWidth+this.avgLineWidth/2, \n xEnd, yStart-avgYPos-g.axesLineWidth+this.avgLineWidth/2, this.avgLineColor, this.avgLineWidth);\n g.drawText(this.average, xEnd, yStart-avgYPos-g.textOffset, null, g.graphFont, this.avgLineColor);\n // min:\n g.drawLine(xStart, yStart-minYPos-g.axesLineWidth+this.maxLineWidth/2, \n xEnd, yStart-minYPos-g.axesLineWidth+this.maxLineWidth/2, this.minLineColor, this.minLineWidth);\n g.drawText(this.minimum, xEnd, yStart-minYPos-g.textOffset, null, g.graphFont, this.minLineColor);\n }", "function axisBox() {\n return { x: { min: 0, max: 1 }, y: { min: 0, max: 1 } };\n}", "function axisBox() {\n return { x: { min: 0, max: 1 }, y: { min: 0, max: 1 } };\n}", "function axisBox() {\n return { x: { min: 0, max: 1 }, y: { min: 0, max: 1 } };\n}", "function axisBox() {\n return { x: { min: 0, max: 1 }, y: { min: 0, max: 1 } };\n}", "function f(val)\n\t {\n\t // Enforce limits\n\t val = Math.min(val, max);\n\t val = Math.max(val, min);\n\t return Math.round((val - min) * scale + axisMargin);\n\t }" ]
[ "0.6635224", "0.6635224", "0.6635224", "0.66095996", "0.66095996", "0.66095996", "0.6483339", "0.6249751", "0.61508304", "0.5989345", "0.58926207", "0.57632697", "0.5706201", "0.56735045", "0.5659753", "0.56560963", "0.562904", "0.5597452", "0.55943", "0.5567527", "0.5566558", "0.55580395", "0.5525913", "0.5521223", "0.5496537", "0.54956895", "0.5412174", "0.5408135", "0.5388106", "0.53870887", "0.53687745", "0.5359167", "0.53317887", "0.533164", "0.53293663", "0.5312787", "0.5296851", "0.52734935", "0.52734923", "0.5258224", "0.5257434", "0.52506447", "0.5210938", "0.52016544", "0.519582", "0.5190666", "0.5180213", "0.516692", "0.5138651", "0.511709", "0.51042974", "0.5092977", "0.507724", "0.50666547", "0.50637394", "0.5059441", "0.5050916", "0.5050916", "0.50442964", "0.5035184", "0.5029559", "0.50294673", "0.50294673", "0.50294673", "0.50161564", "0.50117445", "0.5010312", "0.50028557", "0.49751163", "0.49574265", "0.4950241", "0.4949294", "0.49450922", "0.49447635", "0.4942574", "0.4941823", "0.49322444", "0.49304262", "0.49257174", "0.4920894", "0.491935", "0.491935", "0.491935", "0.491935", "0.491935", "0.491935", "0.491935", "0.491935", "0.4912549", "0.4907861", "0.4900924", "0.4898128", "0.48949414", "0.48919743", "0.48833743", "0.48833743", "0.48833743", "0.48833743", "0.48732272" ]
0.6690351
1
Check if the axis corss 0
function ifAxisCrossZero(axis) { var dataExtent = axis.scale.getExtent(); var min = dataExtent[0]; var max = dataExtent[1]; return !(min > 0 && max > 0 || min < 0 && max < 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ifAxisCrossZero(axis) {\n\t var dataExtent = axis.scale.getExtent();\n\t var min = dataExtent[0];\n\t var max = dataExtent[1];\n\t return !(min > 0 && max > 0 || min < 0 && max < 0);\n\t }", "hasAxisOrientSignalRef() {\n return (this.component.axes.x?.some(a => a.hasOrientSignalRef()) ||\n this.component.axes.y?.some(a => a.hasOrientSignalRef()));\n }", "function checkNotZero(figure) {\n if (figure !== 0){\n return true;\n }else {return false;}\n }", "isZero() {\n return this.high === 0 && this.low === 0;\n }", "function chkAxes (mousePos) {\n\t\t\tif (chkCoord(mousePos, 'x') || chkCoord(mousePos, 'y')) {\n\t\t\t\tprevMousePos = mousePos;\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "masterAxis() {\n\t\tif (Math.abs(this._x) > Math.abs(this._y) && Math.abs(this._x) > Math.abs(this._z)) {\n\t\t\treturn (0);\n\t\t}\n\t\telse if (Math.abs(this._y) > Math.abs(this._x) && Math.abs(this._y) > Math.abs(this._z)) {\n\t\t\treturn (1);\n\t\t}\n\t\telse {\n\t\t\treturn (2);\n\t\t}\n\t}", "hasOrigin() {\n\t\treturn (this.origin.x < 0 && this.origin.x + this.width > 0)\n\t\t&& (this.origin.y < 0 && this.origin.y + this.height > 0);\n\t}", "get is_axis_aligned() {\n return !!(this.flags & PaintVolumeFlags.IS_AXIS_ALIGNED);\n }", "function chkCoord (mousePos, axis) {\n\t\t\tvar mp = mousePos,\n\t\t\t\tpmp = prevMousePos,\n\t\t\t\tinc = (axis === 'x') ? logXEvery : logYEvery;\n\n\t\t\tif (mp[axis] < (pmp[axis] - inc) || mp[axis] > (pmp[axis] + inc))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}", "isZero() {\n return this.value == 0;\n }", "warning () { return this._ignEllipse.backDist() < this.bounds().xSpacing() }", "function sc_isZero(x) {\n return (x === 0);\n}", "function isCanvasBlank(canvas) {\n return !canvas.getContext('2d')\n .getImageData(0, 0, canvas.width, canvas.height).data\n .some(channel => channel !== 0);\n }", "function domainDefinitelyIncludeZero(scale) {\n if (scale.get('zero') !== false) {\n return true;\n }\n var domains = scale.domains;\n if (isArray(domains)) {\n return some(domains, function (d) { return isArray(d) && d.length === 2 && d[0] <= 0 && d[1] >= 0; });\n }\n return false;\n }", "function checkValue(){\n\tif(xCord<0){\n\t\txCord=0;\n\t}\n\tif(xCord>=width){\n\t\txCord = width-1;\n\t}\n\n\tif(yCord<0){\n\t\tyCord=0;\n\t}\n\tif(yCord>=height){\n\t\tyCord=height-1;\n\t}\n}", "function displayAxis(p1, p2) {\n self.tmpVector.subVectors(p1, p2);\n self.tmpVector.normalize();\n\n return !MeasureCommon.isParallel(self.tmpVector, self.xAxis) && !MeasureCommon.isParallel(self.tmpVector, self.yAxis) && !MeasureCommon.isParallel(self.tmpVector, self.zAxis);\n }", "function zero (data) {\n return data === 0;\n }", "function isGridFull() {\n for (var x = 0; x < 4; x++) {\n\t\t\tfor (var y = 0; y < 4; y++) {\n\t\t\t\tif (mat[x][y]===0) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n }", "function isCornerBlock(){\n return ((xCo == 0 || xCo == MAX_X - 1) && (yCo == 0 || yCo == MAX_Y - 1));\n }", "isNonZero(): boolean {\n return this.value !== 0;\n }", "function isCCW() {\n if (area2D(_model.points, _model.points.count) < 0) {\n return false;\n } else {\n return true;\n }\n}", "function axismissing(board, x, axis) {\n var bits = 0\n for (var y = 0; y < lib.N; y++) {\n var e = board[posfor(x, y, axis)];\n if (e !== null) bits |= 1 << e;\n }\n return lib.M ^ bits;\n}", "_hasExactPosition() {\n return !this._hasFlexibleDimensions || this._isPushed;\n }", "function isClear(e) {\n try {\n var x = parseInt(e.clientX / particleSize, 10);\n var y = parseInt(e.clientY / particleSize, 10);\n return particles[x][y].fresh=='empty';\n } catch(e) { return true; }\n }", "isZeroSet () {\n \n return (\n !this.isUniverse() &&\n this.toDisjunction().normalize().isZeroSet()\n );\n \n }", "function isAroundZero(val) {\n\t return val > -EPSILON && val < EPSILON;\n\t}", "hasTop() {return this.Y<=0 ? false : true;}", "isEmpty(x, y) {\n if (0 <= x && x < this.width && 0 <= y && y < this.height) {\n return !this.covered[x][y]\n }\n return false\n }", "function isAroundZero(val) {\n return val > -EPSILON && val < EPSILON;\n }", "function isAroundZero(val) {\n return val > -EPSILON && val < EPSILON;\n }", "function is_out_of_bounds()\n{\n\tif (frog.x < 0 || frog.x > 380) {\n\t\treturn 1;\n\t}\n\treturn 0;\n}", "update(time) {\n\t\tsuper.update(time)\n\t\treturn (\n\t\t\tthis.x < 0 || this.x > ARENA_SIZE || this.y < 0 || this.y > ARENA_SIZE\n\t\t)\n\t}", "function isAroundZero(val){return val > -EPSILON && val < EPSILON;}", "function OutOfCanvas(a) {\n return (a.x< (-jaws.width/3));\n }", "sol() { return this.pos == 0; }", "function isCanvasBlank() {\n const canvas = document.getElementById(\"drawing\");\n const context = canvas.getContext(\"2d\");\n\n const pixelBuffer = new Uint32Array(\n context.getImageData(0, 0, canvas.width, canvas.height).data.buffer\n );\n\n return !pixelBuffer.some((color) => color !== 0);\n}", "function isAxisUsedInTheGrid(axisModel, gridModel) {\n\t return axisModel.getCoordSysModel() === gridModel;\n\t }", "function isAxisUsedInTheGrid(axisModel,gridModel,ecModel){return ecModel.getComponent('grid',axisModel.get('gridIndex')) === gridModel;}", "function zero (x) {\n\t return typeof x === 'number' && x === 0\n\t}", "function axismissing(board, x, axis) {\n var bits = 0\n for (var y = 0; y < 9; y++) {\n var e = board[posfor(x, y, axis)];\n if (e !== null) bits |= 1 << e;\n }\n return 511 ^ bits;\n}", "function axismissing(board, x, axis) {\n var bits = 0\n for (var y = 0; y < 9; y++) {\n var e = board[posfor(x, y, axis)];\n if (e !== null) bits |= 1 << e;\n }\n return 511 ^ bits;\n}", "function isZero(x) {\n var i;\n for (i = 0; i < x.length; i++)\n if (x[i])\n return 0;\n return 1;\n }", "isDependentConnection() {\n return !(this.drawToCenter === EConnectionCentered.NONE);\n }", "get hasValues() {\n return this.arrayWidth > 0 && this.arrayHeight > 0;\n }", "directionIsValide(){\n let max_x = window.innerWidth;\n let max_y = window.innerHeight;\n let new_x= this.dir.x*this.dir.vect+this.pos.x;\n let new_y= this.dir.y*this.dir.vect+this.pos.y;\n return (new_x>0 && new_y>0 && new_x<max_x && new_y<max_y );\n }", "isNonZero() {\r\n const s = new Uint8Array(32);\r\n this.toBytes(s);\r\n let x = 0;\r\n for (let i = 0; i < s.length; i++) {\r\n x |= s[i];\r\n }\r\n x |= x >> 4;\r\n x |= x >> 2;\r\n x |= x >> 1;\r\n return (x & 1);\r\n }", "function isFlipped()\n {\n return this.scale.x == -1;\n }", "podeMoverParaCima() {\n return this.getBird().getPosHeigth() > 0;\n }", "function isQcZero(color) {\n return (LCR_QC_VALID[color] && (LCR_QC_VALUE[color] == 0));\n}", "function isEdgeBlock(){\n return (xCo == 0 || xCo == MAX_X - 1 || yCo == 0 || yCo == MAX_Y - 1);\n }", "function isZero(x) {\n var i;\n for (i=0;i<x.length;i++)\n if (x[i])\n return 0;\n return 1;\n }", "function isInOrientationBox(x,y){\t\n return (x>orientX && y<windowHeight/orientMag && zoomFactor>0.5);\n}", "function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {\n\t return axisModel.getCoordSysModel() === gridModel;\n\t}", "offscreen() {\n if (this.x < -this.width) {\n return true;\n }\n return false;\n }", "function isAxisUsedInTheGrid(axisModel, gridModel) {\n return axisModel.getCoordSysModel() === gridModel;\n}", "function o(e,r){return !e.visible||0!==e.minScale&&r>e.minScale||0!==e.maxScale&&r<e.maxScale}", "borders() {\n if ((this.pos.x < 0) || (this.pos.y < 0) || (this.pos.x > width) || (this.pos.y > height)) {\n return true;\n } else {\n return false;\n }\n }", "function isRotatedNormalProjection(P) {\n return isAxisAligned(P) && P.lam0 !== 0;\n }", "isDisplaced() { return this.displaced === true; }", "function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {\n return axisModel.getCoordSysModel() === gridModel;\n}", "function o(e,r){return!e.visible||0!==e.minScale&&r>e.minScale||0!==e.maxScale&&r<e.maxScale}", "function r(t) {\n if (!t) return !1;\n var e = t.verticalOffset;\n return !!e && !(e.screenLength <= 0 || e.maxWorldLength <= 0);\n }", "function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {\n return axisModel.getCoordSysModel() === gridModel;\n }", "function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {\n return axisModel.getCoordSysModel() === gridModel;\n }", "function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {\n return axisModel.getCoordSysModel() === gridModel;\n}", "function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {\n return axisModel.getCoordSysModel() === gridModel;\n}", "function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {\n return axisModel.getCoordSysModel() === gridModel;\n}", "function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {\n return axisModel.getCoordSysModel() === gridModel;\n}", "function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {\n return axisModel.getCoordSysModel() === gridModel;\n}", "function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {\n return axisModel.getCoordSysModel() === gridModel;\n}", "function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {\n return axisModel.getCoordSysModel() === gridModel;\n}", "function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {\n return axisModel.getCoordSysModel() === gridModel;\n}", "function canvasBoundary(axis, boundary) {\n if (axis >= boundary) {\n axis = boundary;\n }\n if (axis <= 0) {\n axis = 0;\n }\n return axis;\n }", "function isAroundZero(val) {\n return val > -EPSILON && val < EPSILON;\n}", "checkEmpty () {\n if (this.front === 0 && this.rear === 0) {\n return true\n }\n }", "isZero() { return (this.#val === BN_0); }", "isEmpty() {\n return this.vertexCount === 0;\n }", "function clipEnds(d) {\n\t var p = ax.l2p(d.x);\n\t return (p > 1 && p < ax._length - 1);\n\t }", "function clipEnds(d) {\n\t var p = ax.l2p(d.x);\n\t return (p > 1 && p < ax._length - 1);\n\t }", "function clipEnds(d) {\n var p = ax.l2p(d.x);\n return (p > 1 && p < ax._length - 1);\n }", "function clipEnds(d) {\n var p = ax.l2p(d.x);\n return (p > 1 && p < ax._length - 1);\n }", "calcAxis(axis) {\n\t\tlet r = {\n\t\t\tx : getRandomFloat(axis.x[0], axis.x[1], 1),\n\t\t\ty : getRandomFloat(axis.y[0], axis.y[1], 1)\n\t\t}\n\n\t\tlet sign = getRandom(0, 1)\n\t\tif (sign == 0) { r.x = -r.x }\n\n\t\tsign = getRandom(0, 1)\n\t\tif (sign == 0) { r.y = -r.y }\n\n\t\treturn r\n\t}", "offscreen() {\n if (this.xSky < -this.w) {\n return true;\n } else {\n return false;\n }\n }", "function is(x, y) {\n return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;\n }", "function showZeros() {\n\t\tctx.beginPath();\n\t\tctx.fillStyle = \"cornflowerblue\";\n\t\tctx.arc(0, 0, 5, 0, Math.PI * 2); // drawing circle around x/y - upper left corner\n\t\tctx.fill();\n\t\tctx.stroke();\n\t\tctx.closePath();\n\t}", "function isChanged() {\n var x = currentCircle.attr(\"cx\");\n var xBackup = currentCircle.attr(\"cx-backup\");\n return Math.round(parseFloat(x) / minSpace) != Math.round(parseFloat(xBackup) / minSpace);\n}", "function isVisibleAxis(axis) {\n return util_1.some(AXIS_PARTS, function (part) { return hasAxisPart(axis, part); });\n}", "_getCenter(o, dimension, axis) {\n if (o.anchor !== undefined) {\n if (o.anchor[axis] !== 0) {\n return 0;\n }\n else {\n //console.log(o.anchor[axis])\n return dimension / 2;\n }\n }\n else {\n return dimension;\n }\n }", "checkVerticalColision() {\n let absPos;\n\n // comprueba si ha tocado el fondo del tablero \n if (this._checkBottomColision()) return false;\n // \n for (let col = 0; col < 4; col++) {\n for (let row = 3; row >= 0; row--) {\n if (this[row][col] === 0) continue;\n\n absPos = this._getAbsolutePosition(row, col);\n\n if (this.board[absPos.row + 1][absPos.col] !== 0) return false;\n break;\n }\n }\n\n return true;\n }", "function isEmpty(x,y, grid)\n {\n if(math.subset(grid, math.index(x,y)) == 0) {\n return false;\n }\n else{\n return true;\n }\n }", "function isSliceContinous(shape, begin, size) {\n // Index of the first axis that has size > 1.\n var firstNonOneAxis = size.length;\n for (var i = 0; i < size.length; i++) {\n if (size[i] > 1) {\n firstNonOneAxis = i;\n break;\n }\n }\n for (var i = firstNonOneAxis + 1; i < size.length; i++) {\n if (begin[i] > 0 || size[i] !== shape[i]) {\n return false;\n }\n }\n return true;\n}", "isHide() {\n return this.x < 0\n }" ]
[ "0.79084367", "0.6435964", "0.64173824", "0.63664246", "0.6054823", "0.6044323", "0.6015769", "0.59150916", "0.5879838", "0.57272536", "0.5702873", "0.56943345", "0.56880975", "0.5687422", "0.56293803", "0.5625402", "0.56174374", "0.5593879", "0.5576341", "0.55748653", "0.55700034", "0.5559736", "0.55438197", "0.5531838", "0.54742485", "0.54522234", "0.5450835", "0.5444971", "0.5433806", "0.5433806", "0.54045665", "0.53946394", "0.53923935", "0.5375529", "0.53662515", "0.53587645", "0.53586537", "0.5358528", "0.5352516", "0.53480357", "0.53480357", "0.5337864", "0.53298515", "0.5310412", "0.53047776", "0.5299145", "0.52967453", "0.52857614", "0.5284749", "0.527892", "0.52632976", "0.52621156", "0.52541745", "0.5240284", "0.52383727", "0.5223251", "0.52196777", "0.52188694", "0.5190476", "0.51884896", "0.51841795", "0.5178426", "0.51745826", "0.51745826", "0.51515716", "0.51515716", "0.51515716", "0.51515716", "0.51515716", "0.51515716", "0.51515716", "0.51515716", "0.5146788", "0.51463336", "0.5143642", "0.51378214", "0.51357406", "0.5135451", "0.5135451", "0.5135008", "0.5135008", "0.5129058", "0.5111053", "0.51106316", "0.5107878", "0.51057875", "0.50914955", "0.5088019", "0.50854766", "0.5081955", "0.50799435", "0.5079419" ]
0.77958435
9
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. / Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function _default(ecModel) { var paletteScope = {}; ecModel.eachSeriesByType('graph', function (seriesModel) { var categoriesData = seriesModel.getCategoriesData(); var data = seriesModel.getData(); var categoryNameIdxMap = {}; categoriesData.each(function (idx) { var name = categoriesData.getName(idx); // Add prefix to avoid conflict with Object.prototype. categoryNameIdxMap['ec-' + name] = idx; var itemModel = categoriesData.getItemModel(idx); var color = itemModel.get('itemStyle.color') || seriesModel.getColorFromPalette(name, paletteScope); categoriesData.setItemVisual(idx, 'color', color); var itemStyleList = ['opacity', 'symbol', 'symbolSize', 'symbolKeepAspect']; for (var i = 0; i < itemStyleList.length; i++) { var itemStyle = itemModel.getShallow(itemStyleList[i], true); if (itemStyle != null) { categoriesData.setItemVisual(idx, itemStyleList[i], itemStyle); } } }); // Assign category color to visual if (categoriesData.count()) { data.each(function (idx) { var model = data.getItemModel(idx); var category = model.getShallow('category'); if (category != null) { if (typeof category === 'string') { category = categoryNameIdxMap['ec-' + category]; } var itemStyleList = ['color', 'opacity', 'symbol', 'symbolSize', 'symbolKeepAspect']; for (var i = 0; i < itemStyleList.length; i++) { if (data.getItemVisual(idx, itemStyleList[i], true) == null) { data.setItemVisual(idx, itemStyleList[i], categoriesData.getItemVisual(category, itemStyleList[i])); } } } }); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onChildAppStart () {\n\n }", "get Android() {}", "onMessageStart() { }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "createStream () {\n\n }", "onComponentMount() {\n\n }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "didMount() {\n }", "requestContainerInfo() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "function bridgeAndroidAndIOS() {\r\n\r\n //ios\r\n function setupWebViewJavascriptBridge(callback) {\r\n if (window.WebViewJavascriptBridge) {\r\n return callback(WebViewJavascriptBridge);\r\n }\r\n if (window.WVJBCallbacks) {\r\n return window.WVJBCallbacks.push(callback);\r\n }\r\n window.WVJBCallbacks = [callback];\r\n var WVJBIframe = document.createElement('iframe');\r\n WVJBIframe.style.display = 'none';\r\n WVJBIframe.src = 'https://__bridge_loaded__';\r\n document.documentElement.appendChild(WVJBIframe);\r\n setTimeout(function() {\r\n document.documentElement.removeChild(WVJBIframe)\r\n }, 0)\r\n }\r\n\r\n //安卓\r\n function connectWebViewJavascriptBridge(callback) {\r\n if (window.WebViewJavascriptBridge) {\r\n callback(WebViewJavascriptBridge)\r\n } else {\r\n document.addEventListener(\r\n 'WebViewJavascriptBridgeReady',\r\n function() {\r\n callback(WebViewJavascriptBridge)\r\n },\r\n false\r\n );\r\n }\r\n }\r\n\r\n function bridgeLog(logContent) {\r\n uni.showModal({\r\n title: \"原始数据\",\r\n content: logContent,\r\n })\r\n }\r\n\r\n switch (uni.getSystemInfoSync().platform) {\r\n case 'android':\r\n connectWebViewJavascriptBridge(function(bridge) {\r\n bridge.init();\r\n bridge.registerHandler(\"GetUser\", function(data, responseCallback) {\r\n if(JSON.parse(data).guid != \"null\"){\r\n uni.setStorageSync('userInfo', {\r\n guid: JSON.parse(data).guid,\r\n token: JSON.parse(data).token\r\n })\r\n }\r\n uni.setStorageSync('parameter', {\r\n activityID: JSON.parse(data).activityID,\r\n AppCode: JSON.parse(data).AppCode\r\n })\r\n // 初始传入token和guid\r\n Vue.config.configDic = {\r\n Authorization: JSON.parse(data).Authorization,\r\n statusBarHeight: Number.parseInt(JSON.parse(data).statusBarHeight),\r\n };\r\n });\r\n\r\n })\r\n break;\r\n case 'ios':\r\n setupWebViewJavascriptBridge(function(bridge) {\r\n bridge.registerHandler('GetUser', function(data, responseCallback) {\r\n if(data.guid != \"null\"){\r\n uni.setStorageSync('userInfo', {\r\n guid: data.guid,\r\n token: data.token\r\n })\r\n }\r\n uni.setStorageSync('parameter', {\r\n activityID: data.activityID,\r\n AppCode: data.AppCode\r\n })\r\n // 初始传入token和guid\r\n Vue.config.configDic = {\r\n Authorization: data.Authorization,\r\n productID: data.productID,\r\n statusBarHeight: data.statusBarHeight,\r\n };\r\n })\r\n })\r\n break;\r\n default:\r\n console.log('运行在开发者工具上')\r\n break;\r\n }\r\n\r\n}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "constructor(speechCallback, clientId, streamId) {\n console.log(\"in gcloud\");\n const useOpus = false;\n this.clientId = clientId;\n this.streamId = streamId;\n this.isOpen = true;\n\n // Note: \n // 1) The client side detects silence and does a startStream, and endStream\n // The streamId is incremented everytime this happens, \n // so a combination of clientId + streamId can uniquely identify a stream.\n // The server will be transcribing each client's stream in parallel.\n //\n // 2) The streaming API has a limit of 5 minutes. So just before 5 minutes are up\n // there will timer that will close and reopen the stream. Any non final results will\n // we sent again to be re-transcribed,\n // The restartCounter will be incremented every time the stream is restarted. However\n // the streamId will remain the same.\n //\n // 3) Every stream will have set of results. Some results will be final and some won't be\n // After a result is final, that portion of the audio will not be transcribed again by the API\n // each final result will have resultEndTime, - this is time in seconds (and nanoseconds) \n // from the time the stream was started/restarted.\n // Results don'd have a startTime, it is implicit that the startTime is resultEndTime\n // of the last final stream, or 0 if there was no final stream before this\n // We augment the result to add this startTime\n //\n // We also keep a cumulative restartTime, which is the difference betwen the beginning of \n // stream start and begining of the most recent stream restart. And add this to \n // the startTime and endTime. This way the client is completely unaware of the internal restarts\n // \n \n // Have we started/restarted a new stream ?\n this.newStream = true;\n\n // number of times the stream has been restarted\n this.restartCounter = 0;\n\n // audio Input is any array of chunks (buffer)\n this.audioInput = [];\n this.audioInputSize = 0; // total size of all the buffers\n\n // the end time (in seconds) of the last result. \n // the End time is calculated from the beginning of start/restart stream\n this.resultEndTime = 0;\n\n // the end time of the last final result.\n this.finalEndTime = 0;\n\n // the start time (in seconds) of the current result. \n // It is calculated fom beginning of start/restart stream\n this.startTime = 0;\n \n // the time between the of beginning of start stream and the beginning of the most current restart stream.\n this.restartTime = 0;\n\n\n this.lastTranscriptWasFinal = false;\n\n this.restartTimer = null;\n\n this.config = {\n encoding: useOpus ? 'OGG_OPUS' : 'LINEAR16',\n sampleRateHertz: useOpus ? 48000 : 16000,\n languageCode: 'en_us',\n enableAutomaticPunctuation: true,\n speechContexts: [{ phrases: phrases}],\n };\n\n this.request = {\n config : this.config,\n interimResults: true,\n };\n\n this.startStreamInternal();\n }", "constructor() {\n }", "constructor(info) {\n super();\n\n _defineProperty(this, \"_peerConnectionId\", void 0);\n\n _defineProperty(this, \"_reactTag\", void 0);\n\n _defineProperty(this, \"_id\", void 0);\n\n _defineProperty(this, \"_label\", void 0);\n\n _defineProperty(this, \"_maxPacketLifeTime\", void 0);\n\n _defineProperty(this, \"_maxRetransmits\", void 0);\n\n _defineProperty(this, \"_negotiated\", void 0);\n\n _defineProperty(this, \"_ordered\", void 0);\n\n _defineProperty(this, \"_protocol\", void 0);\n\n _defineProperty(this, \"_readyState\", void 0);\n\n _defineProperty(this, \"_subscriptions\", []);\n\n _defineProperty(this, \"binaryType\", 'arraybuffer');\n\n _defineProperty(this, \"bufferedAmount\", 0);\n\n _defineProperty(this, \"bufferedAmountLowThreshold\", 0);\n\n this._peerConnectionId = info.peerConnectionId;\n this._reactTag = info.reactTag;\n this._label = info.label;\n this._id = info.id === -1 ? null : info.id; // null until negotiated.\n\n this._ordered = Boolean(info.ordered);\n this._maxPacketLifeTime = info.maxPacketLifeTime;\n this._maxRetransmits = info.maxRetransmits;\n this._protocol = info.protocol || '';\n this._negotiated = Boolean(info.negotiated);\n this._readyState = info.readyState;\n\n this._registerEvents();\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onChildAppSourceChangeRestart () {\n\n }", "constructor() {\n\n\t}", "async componentDidUpdate() {\n console.log(this.props.directory);\n //this needs to be replaced with environment variable\n const beginingUrl = \"http://10.34.1.30:8080/songs/\";\n const songLoc = this.props.directory + \"/outputlist.m3u8\";\n var hlsUrl = beginingUrl + songLoc;\n var audio = this.player;\n\n //Should this logic be loacated here??This looks hacky,\n const token = await getToken();\n let bearerTokenString = \"Bearer \" + token;\n\n if (Hls.isSupported()) {\n var hls = new Hls({\n // This configuration is required to insure that only the\n // viewer can access the content by sending a session cookie\n // to api.video service\n xhrSetup: function (xhr, url) {\n xhr.setRequestHeader(\"Authorization\", bearerTokenString);\n },\n });\n hls.loadSource(hlsUrl);\n hls.attachMedia(audio);\n hls.on(Hls.Events.MANIFEST_PARSED, function () {\n audio.play();\n });\n } else if (audio.canPlayType(\"application/vnd.apple.mpegurl\")) {\n console.log(\"Nigga we here!!\");\n audio.src = hlsUrl;\n audio.addEventListener(\"loadedmetadata\", function () {\n audio.play();\n });\n }\n }", "onMessageReceive() {}", "constructor() {\n\t}", "constructor() {\n\t}", "componentWillMount() {\n //CodePush.disallowRestart();\n //Alert.alert(\"mounted cool vite OK OK MAINTENANT CA MARCHE !!!!!\");\n/*CodePush.sync(\n{\ndeploymentKey: 'giMb817KrtTFkIuOg4i5ohnEUDyoBJvD1i-VN',\nupdateDialog: true,\ninstallMode: CodePush.InstallMode.IMMEDIATE,\n},\nthis.CodePushStatusDidChange.bind(this),\nthis.CodePushDownloadDidProgress.bind(this)\n);*/\n /* Animated.loop(\n Animated.sequence([\n Animated.timing(this.animatedValue, { toValue: 1, duration: 3000, easing: Easing.ease, useNativeDriver: true }),\n Animated.timing(this.animatedValue, { toValue: 0, duration: 3000, easing: Easing.ease, useNativeDriver: true }),\n ])).start();*/\n //this.toggleLike(); \n //CodePush.notifyApplicationReady();\n this._onLoadStart();\n }", "function version(){ return \"0.13.0\" }", "get supportStreaming() { return exists && has(WA.instantiateStreaming); }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "onChildAppRestart (/* reason */) {\n\n }", "_init(config) {\n this.name = config.name;\n this.appId = config.appid || config.appId;\n this.serverUrl = config.server_url + '/sync_xcx';\n this.autoTrackProperties = {};\n // cache commands.\n this._queue = [];\n\n if (config.isChildInstance) {\n this._state = {};\n } else {\n logger.enabled = config.enableLog;\n this.instances = []; // 子实例名称\n this._state = {\n getSystemInfo: false,\n initComplete: false,\n };\n systemInfo.getSystemInfo(() => {\n this._updateState({\n getSystemInfo: true,\n });\n });\n\n if (config.autoTrack) {\n this.autoTrack = PlatformAPI.initAutoTrackInstance(this, config);\n } else {\n var launchOptions = PlatformAPI.getAppOptions((options) => {\n if (options && options.scene) {\n this._setAutoTrackProperties({\n '#scene': options.scene,\n });\n }\n\n });\n if (launchOptions.scene) {\n this._setAutoTrackProperties({\n '#scene': launchOptions.scene,\n });\n }\n }\n }\n\n this.store = new ThinkingDataPersistence(config, () => {\n if (this.config.asyncPersistence && _.isFunction(this.config.persistenceComplete)) {\n this.config.persistenceComplete(this);\n }\n this._updateState();\n });\n }", "_addHMRClientCode(data) {\n// If we have it, grab supporting code...\n let prependage = fs.readFileSync('./lib/hmr/clientSocket.js'),\n appendage = fs.readFileSync('./lib/hmr/hmr.js')\n\n// Prepend clientSocket.js to bundle.... Append hmr runtime to bundle\n return `${prependage}${data}${appendage}`\n }", "componentDidMount() {\n this.setState({\n configuration: {\n flow: {\n name: \"sample1\",\n id: \"01\",\n components: [\n {\n type: \"http-listener\",\n id: \"http-list-01\",\n properties: {\n method: \"get\",\n port: 8000,\n path: \"http://localhost\"\n }\n },\n {\n type: \"logger\",\n id: \"logger-01\",\n properties: {\n level: \"info\"\n }\n },\n {\n type: \"file-writer\",\n id: \"file-write-01\",\n properties: {\n location: \"xx\",\n username: \"sachith\",\n password: \"\",\n filename: \"hello.txt\"\n }\n }\n ]\n }\n }\n\n });\n }", "componentWillUnmount(){\n Streaming.disconnect();\n }", "pushStart() {\n Cordova.exec(\n () => {},\n () => {},\n 'SparkProxy',\n 'pushStart',\n []);\n }", "async onReady() {\n // Initialize your adapter here\n // Subsribe to all state changes\n this.subscribeStates('*');\n this.axiosInstance = axios_1.default.create({\n baseURL: `http://${this.config.host}/api/v1/`,\n timeout: 1000\n });\n // try to ping volumio\n const connectionSuccess = await this.pingVolumio();\n if (this.config.checkConnection) {\n let interval = this.config.checkConnectionInterval;\n if (!interval || !isNumber(interval)) {\n this.log.error(`Invalid connection check interval setting. Will be set to 30s`);\n interval = 30;\n }\n this.checkConnectionInterval = setInterval(this.checkConnection, interval * 1000, this);\n }\n // get system infos\n if (connectionSuccess) {\n this.apiGet('getSystemInfo').then(sysInfo => {\n this.setStateAsync('info.id', sysInfo.id, true);\n this.setStateAsync('info.host', sysInfo.host, true);\n this.setStateAsync('info.name', sysInfo.name, true);\n this.setStateAsync('info.type', sysInfo.type, true);\n this.setStateAsync('info.serviceName', sysInfo.serviceName, true);\n this.setStateAsync('info.systemversion', sysInfo.systemversion, true);\n this.setStateAsync('info.builddate', sysInfo.builddate, true);\n this.setStateAsync('info.variant', sysInfo.variant, true);\n this.setStateAsync('info.hardware', sysInfo.hardware, true);\n });\n // get inital player state\n this.updatePlayerState();\n }\n if (this.config.subscribeToStateChanges && this.config.subscriptionPort && connectionSuccess) {\n this.log.debug('Subscription mode is activated');\n try {\n this.httpServerInstance = this.httpServer.listen(this.config.subscriptionPort);\n this.log.debug(`Server is listening on ${ip_1.default.address()}:${this.config.subscriptionPort}`);\n this.subscribeToVolumioNotifications();\n }\n catch (error) {\n this.log.error(`Starting server on ${this.config.subscriptionPort} for subscription mode failed: ${error.message}`);\n }\n }\n else if (this.config.subscribeToStateChanges && !this.config.subscriptionPort) {\n this.log.error('Subscription mode is activated, but port is not configured.');\n }\n else if (!this.config.subscribeToStateChanges && connectionSuccess) {\n this.unsubscribeFromVolumioNotifications();\n }\n this.httpServer.post('/volumiostatus', (req, res) => {\n this.onVolumioStateChange(req.body);\n res.sendStatus(200);\n });\n }", "function IbtRealTimeSJ(){/***********************************************************\n\t * @attributes\n\t ***********************************************************/var appKey;// application key\n\tvar authToken;// authentication token\n\tvar clusterUrl;// cluster URL to connect\n\tvar waitingClusterResponse;// indicates whether is waiting for a cluster response\n\tvar connectionTimeout;// connection timeout in milliseconds\n\tvar messageMaxSize;// message maximum size in bytes\n\tvar channelMaxSize;// channel maximum size in bytes\n\tvar channelsMaxSize;// maximum of channels for batchSend\n\tvar messagesBuffer;// buffer to hold the message parts\n\tvar id;// object identifier\n\tvar isConnected;// indicates whether the client object is connected\n\tvar isConnecting;// indicates whether the client object is connecting\n\tvar alreadyConnectedFirstTime;// indicates whether the client already connected for the first time\n\tvar stopReconnecting;// indicates whether the user disconnected (stop the reconnecting proccess)\n\tvar ortc;// represents the object itself\n\tvar sockjs;// socket connected to\n\tvar url;// URL to connect\n\tvar userPerms;// user permissions\n\tvar connectionMetadata;// connection metadata used to identify the client\n\tvar announcementSubChannel;// announcement subchannel\n\tvar subscribedChannels;// subscribed/subscribing channels\n\tvar lastKeepAlive;// holds the time of the last keep alive received\n\tvar invalidConnection;// indicates whether the connection is valid\n\tvar reconnectIntervalId;// id used for the reconnect interval\n\tvar reconnectStartedAt;// the time which the reconnect started\n\tvar validatedTimeoutId;// id used for the validated timeout\n\tvar validatedArrived;// indicates whether the validated message arrived\n\tvar retryingWithSsl;// indicates whether the connection is being retried with SSL\n\tvar protocol;// protocol to use\n\tvar sslSessionCookieName;// the SSL session cookie name\n\tvar sessionCookieName;// the session cookie name\n\tvar sessionId;// the session ID\n\tvar registrationId;// browser device token for push notifications\n\tvar pushPlatform;// push notifications platform\n\t/***********************************************************\n\t * @attributes initialization\n\t ***********************************************************/sslSessionCookieName=\"ortcssl\";sessionCookieName=\"ortcsession-\";connectionTimeout=5000;messageMaxSize=800;channelMaxSize=100;connectionMetadataMaxSize=256;channelsMaxSize=50;// Time in seconds\n\tvar heartbeatDefaultTime=15;// Heartbeat default interval time\n\tvar heartbeatDefaultFails=3;// Heartbeat default max fails\n\tvar heartbeatMaxTime=60;var heartbeatMinTime=10;var heartbeatMaxFails=6;var heartbeatMinFails=1;var heartbeatTime=heartbeatDefaultTime;// Heartbeat interval time\n\tvar heartbeatFails=heartbeatDefaultFails;// Heartbeat max fails\n\tvar heartbeatInterval=null;// Heartbeat interval\n\tvar heartbeatActive=false;messagesBuffer={};subscribedChannels={};isConnected=false;isConnecting=false;alreadyConnectedFirstTime=false;invalidConnection=false;waitingClusterResponse=false;validatedArrived=false;retryingWithSsl=false;ortc=this;lastKeepAlive=null;userPerms=null;reconnectStartedAt=null;protocol=undefined;pushPlatform=\"GCM\";var delegateExceptionCallback=function(ortcArg,event){if(ortcArg!==null&&ortcArg.onException!==null){ortcArg.onException(ortcArg,event);}};/***********************************************************\n\t * @properties\n\t ***********************************************************/this.getId=function(){return id;};this.setId=function(newId){id=newId;};this.getUrl=function(){return url;};this.setUrl=function(newUrl){url=newUrl;clusterUrl=null;};this.getClusterUrl=function(){return clusterUrl;};this.setClusterUrl=function(newUrl){clusterUrl=newUrl;url=null;};this.getConnectionTimeout=function(){return connectionTimeout;};this.setConnectionTimeout=function(newTimeout){connectionTimeout=newTimeout;};this.getIsConnected=function(){return isConnected&&ortc.sockjs!==null;};this.getConnectionMetadata=function(){return connectionMetadata;};this.setConnectionMetadata=function(newConnectionMetadata){connectionMetadata=newConnectionMetadata;};this.getAnnouncementSubChannel=function(){return announcementSubChannel;};this.setAnnouncementSubChannel=function(newAnnouncementSubChannel){announcementSubChannel=newAnnouncementSubChannel;};this.getProtocol=function(){return protocol;};this.setProtocol=function(newProtocol){protocol=newProtocol;};this.getSessionId=function(){return sessionId;};/*\n\t * Get heartbeat interval.\n\t */this.getHeartbeatTime=function(){return heartbeatTime;};/*\n\t * Set heartbeat interval.\n\t */this.setHeartbeatTime=function(newHeartbeatTime){if(newHeartbeatTime&&!isNaN(newHeartbeatTime)){if(newHeartbeatTime>heartbeatMaxTime||newHeartbeatTime<heartbeatMinTime){delegateExceptionCallback(ortc,`Heartbeat time is out of limits - Min: ${heartbeatMinTime} | Max: ${heartbeatMaxTime}`);}else{heartbeatTime=newHeartbeatTime;}}else{delegateExceptionCallback(ortc,`Invalid heartbeat time ${newHeartbeatTime}`);}};/*\n\t * Get how many times can the client fail the heartbeat.\n\t */this.getHeartbeatFails=function(){return heartbeatFails;};/*\n\t * Set heartbeat fails. Defines how many times can the client fail the heartbeat.\n\t */this.setHeartbeatFails=function(newHeartbeatFails){if(newHeartbeatFails&&!isNaN(newHeartbeatFails)){if(newHeartbeatFails>heartbeatMaxFails||newHeartbeatFails<heartbeatMinFails){delegateExceptionCallback(ortc,`Heartbeat fails is out of limits - Min: ${heartbeatMinFails} | Max: ${heartbeatMaxFails}`);}else{heartbeatFails=newHeartbeatFails;}}else{delegateExceptionCallback(ortc,`Invalid heartbeat fails ${newHeartbeatFails}`);}};/*\n\t * Get heart beat active.\n\t */this.getHeartbeatActive=function(){return heartbeatActive;};/*\n\t * Set heart beat active. Heart beat provides better accuracy for presence data.\n\t */this.setHeartbeatActive=function(active){heartbeatActive=active;};/***********************************************************\n\t * @events\n\t ***********************************************************/this.onConnected=null;this.onDisconnected=null;this.onSubscribed=null;this.onUnsubscribed=null;this.onException=null;this.onReconnecting=null;this.onReconnected=null;/***********************************************************\n\t * @public methods\n\t ***********************************************************//*\n\t * Connects to the gateway with the application key and authentication token.\n\t */this.connect=function(appKey,authToken){/*\n\t Sanity Checks\n\t */if(isConnected){delegateExceptionCallback(ortc,\"Already connected\");}else if(!url&&!clusterUrl){delegateExceptionCallback(ortc,\"URL and Cluster URL are null or empty\");}else if(!appKey){delegateExceptionCallback(ortc,\"Application Key is null or empty\");}else if(!authToken){delegateExceptionCallback(ortc,\"Authentication Token is null or empty\");}else if(url&&!ortcIsValidUrl(url)){delegateExceptionCallback(ortc,\"Invalid URL\");}else if(clusterUrl&&!ortcIsValidUrl(clusterUrl)){delegateExceptionCallback(ortc,\"Invalid Cluster URL\");}else if(!ortcIsValidInput(appKey)){delegateExceptionCallback(ortc,\"Application Key has invalid characters\");}else if(!ortcIsValidInput(authToken)){delegateExceptionCallback(ortc,\"Authentication Token has invalid characters\");}else if(!ortcIsValidInput(announcementSubChannel)){delegateExceptionCallback(ortc,\"Announcement Subchannel has invalid characters\");}else if(connectionMetadata&&connectionMetadata.length>connectionMetadataMaxSize){delegateExceptionCallback(ortc,\"Connection metadata size exceeds the limit of \"+connectionMetadataMaxSize+\" characters\");}else{ortc.appKey=appKey;ortc.authToken=authToken;isConnecting=true;stopReconnecting=false;validatedArrived=false;clearValidatedTimeout(self);// Read SSL session cookie\n\t//var sslConn = readCookie(sslSessionCookieName);\n\tvar sslConn=false;if(sslConn){changeUrlSsl();}if(clusterUrl&&clusterUrl!=null){clusterUrl=clusterUrl.ortcTreatUrl();clusterConnection();}else{url=url.ortcTreatUrl();ortc.sockjs=createSocketConnection(url);}//If ssl connection increase connection timeout\n\tif(clusterUrl&&clusterUrl!=null&&clusterUrl.indexOf(\"/ssl\")>=0||url&&url.indexOf(\"https\")>=0){if(!retryingWithSsl){ortc.setConnectionTimeout(30*1000);}else{if(ortc.getConnectionTimeout()<300*1000){if(ortc.getConnectionTimeout()<30*1000){ortc.setConnectionTimeout(30*1000);}else{ortc.setConnectionTimeout((ortc.getConnectionTimeout()+10)*1000);}}else{stopReconnecting=true;clearReconnectInterval();}}}if(!ortc.reconnectIntervalId&&!stopReconnecting){// Interval to reconnect\n\tortc.reconnectIntervalId=setInterval(function(){if(stopReconnecting){clearReconnectInterval();}else{var currentDateTime=new Date();if(ortc.sockjs==null&&!waitingClusterResponse){reconnectSocket();}// 35 seconds\n\tif(lastKeepAlive!=null&&lastKeepAlive+35000<new Date().getTime()){lastKeepAlive=null;// Server went down\n\tif(isConnected){disconnectSocket();}}}},ortc.getConnectionTimeout());}}};this.setNotificationConfig=function(config){config.cmd=\"config\";this.sendMessageToServiceWorker(config);};this.showNotification=function(notification){notification.cmd=\"notification\";this.sendMessageToServiceWorker(notification);};this.sendMessageToServiceWorker=function(message){return new Promise(function(resolve,reject){var messageChannel=new MessageChannel();messageChannel.port1.onmessage=function(event){if(event.data.error){reject(event.data.error);}else{resolve(event.data);}};navigator.serviceWorker.controller.postMessage(message,[messageChannel.port2]);});};/*\n\t * Subscribes to the channel so the client object can receive all messages sent to it by other clients with Notifications.\n\t */this.subscribeWithNotifications=function(channel,subscribeOnReconnected,regId,onMessageCallback){ortc.registrationId=regId;this._subscribe(channel,subscribeOnReconnected,regId,null,onMessageCallback);};/*\n\t * Subscribes to the channel so the client object can receive all messages sent that are valid according to the given filter\n\t */this.subscribeWithFilter=function(channel,subscribeOnReconnected,filter,onMessageCallback){this._subscribe(channel,subscribeOnReconnected,null,filter,onMessageCallback);};/*\n\t * Subscribes to the channel so the client object can receive all messages sent to it by other clients.\n\t */this.subscribe=function(channel,subscribeOnReconnected,onMessageCallback){this._subscribe(channel,subscribeOnReconnected,null,null,onMessageCallback);};this._subscribe=function(channel,subscribeOnReconnected,regId,filter,onMessageCallback){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribing){delegateExceptionCallback(ortc,\"Already subscribing to the channel \\\"\"+channel+\"\\\"\");}else if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed){delegateExceptionCallback(ortc,\"Already subscribed to the channel \\\"\"+channel+\"\\\"\");}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else if(!ortcIsValidBoolean(subscribeOnReconnected)){delegateExceptionCallback(ortc,\"The argument \\\"subscribeOnReconnected\\\" must be a boolean\");}else if(!ortcIsFunction(onMessageCallback)){delegateExceptionCallback(ortc,\"The argument \\\"onMessageCallback\\\" must be a function\");}else{if(ortc.sockjs!=null){var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){delegateExceptionCallback(ortc,\"No permission found to subscribe to the channel \\\"\"+channel+\"\\\"\");}else{if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=true;subscribedChannels[channel].isSubscribed=false;subscribedChannels[channel].subscribeOnReconnected=subscribeOnReconnected;subscribedChannels[channel].onMessageCallback=onMessageCallback;subscribedChannels[channel].filter=filter;}else{subscribedChannels[channel]={\"isSubscribing\":true,\"isSubscribed\":false,\"subscribeOnReconnected\":subscribeOnReconnected,\"onMessageCallback\":onMessageCallback,\"filter\":filter};}if(regId){subscribedChannels[channel].withNotifications=true;ortc.sockjs.send(\"subscribe;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+regId+\";\"+pushPlatform);}else{subscribedChannels[channel].withNotifications=false;if(filter){ortc.sockjs.send(\"subscribefilter;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+filter);}else{ortc.sockjs.send(\"subscribe;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm);}}}}}};/*\n\t * Unsubscribes from the channel so the client object stops receiving messages sent to it.\n\t */this.unsubscribe=function(channel){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(!subscribedChannels[channel]||subscribedChannels[channel]&&!subscribedChannels[channel].isSubscribed){delegateExceptionCallback(ortc,\"Not subscribed to the channel \"+channel);}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else{if(ortc.sockjs!=null){if(subscribedChannels[channel].withNotifications==true){ortc.sockjs.send(\"unsubscribe;\"+ortc.appKey+\";\"+channel+\";\"+ortc.registrationId+\";\"+pushPlatform);}else{ortc.sockjs.send(\"unsubscribe;\"+ortc.appKey+\";\"+channel);}}}};/*\n\t * Sends the message to the channel.\n\t */this.send=function(channel,message){/*\n\t Sanity Checks\n\t */if(!isConnected||ortc.sockjs==null){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(!message){delegateExceptionCallback(ortc,\"Message is null or empty\");}else if(!ortcIsString(message)){delegateExceptionCallback(ortc,\"Message must be a string\");}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else{var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){delegateExceptionCallback(ortc,\"No permission found to send to the channel \\\"\"+channel+\"\\\"\");}else{// Multi part\n\tvar messageParts=[];var messageId=generateId(8);var i;var allowedMaxSize=messageMaxSize-channel.length;for(i=0;i<message.length;i=i+allowedMaxSize){// Just one part\n\tif(message.length<=allowedMaxSize){messageParts.push(message);break;}if(message.substring(i,i+allowedMaxSize)){messageParts.push(message.substring(i,i+allowedMaxSize));}}for(var j=1;j<=messageParts.length;j++){ortc.sockjs.send(\"send;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+messageId+\"_\"+j+\"-\"+messageParts.length+\"_\"+messageParts[j-1]);}}}};/*\n\t * Sends the message to multiple channels.\n\t */this.batchSend=function(channels,message){/*\n\t Sanity Checks\n\t */channels=ortcStrToArray(channels);if(!isConnected||ortc.sockjs==null){delegateExceptionCallback(ortc,\"Not connected\");}else if(!ortcIsArray(channels)){delegateExceptionCallback(ortc,\"Channels must be a array\");}else if(!message){delegateExceptionCallback(ortc,\"Message is null or empty\");}else if(!ortcIsString(message)){delegateExceptionCallback(ortc,\"Message must be a string\");}else if(channels.length<=0){delegateExceptionCallback(ortc,\"Channels must be an array at least with one channel\");}else if(channels.length>channelsMaxSize){channels=[];delegateExceptionCallback(ortc,\"The channel maximum was reached (>\"+channelsMaxSize+\")\");}for(i=0;i<channels.length;i++){var channel=channels[i];if(channel.length>channelMaxSize){channels.splice(i,1);delegateExceptionCallback(ortc,\"Channel \"+channel+\" size exceeds the limit of \"+channelMaxSize+\" characters\");}}if(channels.length>0){var arrayHashPerm=[];for(i=0;i<channels.length;i++){var channel=channels[i];var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){channels.splice(i,1);delegateExceptionCallback(ortc,\"No permission found to send to the channel \\\"\"+channel+\"\\\"\");}else{arrayHashPerm.push(hashPerm);}}if(channels.length>0){var messageParts=[];var messageId=generateId(8);var allowedMaxSize=messageMaxSize-channels.toString().length;for(i=0;i<message.length;i=i+allowedMaxSize){// Just one part\n\tif(message.length<=allowedMaxSize){messageParts.push(message);break;}if(message.substring(i,i+allowedMaxSize)){messageParts.push(message.substring(i,i+allowedMaxSize));}}for(j=1;j<=messageParts.length;j++){ortc.sockjs.send(\"batchSend;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+JSON.stringify(channels)+\";\"+JSON.stringify(arrayHashPerm)+\";\"+messageId+\"_\"+j+\"-\"+messageParts.length+\"_\"+messageParts[j-1]);}}}};/*\n\t * Disconnects from the gateway.\n\t */this.disconnect=function(){clearReconnectInterval();stopReconnectProcess();// Clear subscribed channels\n\tsubscribedChannels={};/*\n\t Sanity Checks\n\t */if(!isConnected&&!invalidConnection){delegateExceptionCallback(ortc,\"Not connected\");}else{disconnectSocket();}};/*\n\t * Gets a value indicating whether this client object is subscribed to the channel.\n\t */this.isSubscribed=function(channel){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else{if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed){return subscribedChannels[channel].isSubscribed;}else{return false;}}};/*\n\t * Gets a json indicating the subscriptions in a channel.\n\t */this.presence=function(parameters,callback){try{var requestUrl=null,isCluster=false,appKey=ortc.appKey,authToken=ortc.authToken;if(parameters.url){requestUrl=parameters.url.ortcTreatUrl();isCluster=parameters.isCluster;appKey=parameters.applicationKey;authToken=parameters.authenticationToken;}else{if(clusterUrl&&clusterUrl!=null){requestUrl=clusterUrl;isCluster=true;}else{requestUrl=url.ortcTreatUrl();;}}getServerUrl({requestUrl:requestUrl,isCluster:isCluster,appKey:appKey},function(error,serverUrl){if(error){callback(error,null);}else{jsonp(serverUrl+\"/presence/\"+appKey+\"/\"+authToken+\"/\"+parameters.channel,callback);}});}catch(e){callback(\"Unable to get presence data\",null);}};var getServerUrl=function(parameters,callback){if(parameters.requestUrl&&parameters.isCluster){var guid=generateGuid();var queryString=\"guid=\"+generateGuid();queryString=parameters.appKey?queryString+\"&appkey=\"+parameters.appKey:queryString;loadClusterServerScript(parameters.requestUrl+\"/?\"+queryString,guid,function(clusterServerResolved,scriptGuid){if(clusterServerResolved){var resultUrl=SOCKET_SERVER;callback(null,resultUrl);}else{callback(null,\"Unable to get server from cluster\");}try{clearScripts(scriptGuid);}catch(loadError){}});}else{var resultUrl=parameters.requestUrl.ortcTreatUrl();callback(null,resultUrl);}};/*\n\t * Adds the Webspectator bootstrap script for the outmost frame on the same domain.\n\t */this.setMonetizerId=function(publicId){var tempWin;var win=tempWin=window;while(tempWin!=window.top){try{if(tempWin.frameElement){win=tempWin.parent;}}catch(e){}tempWin=tempWin.parent;}if(!win._WS_BOOT){var s=document.createElement(\"SCRIPT\");s.src=\"//wfpscripts.webspectator.com/bootstrap/ws-\"+publicId+\".js\";document.getElementsByTagName(\"head\")[0].appendChild(s);}};/***********************************************************\n\t * @private methods\n\t ***********************************************************//*\n\t * Change the current URL to use SSL\n\t */var changeUrlSsl=function(){if(!(\"ActiveXObject\"in window)){if(clusterUrl&&clusterUrl!=null){//clusterUrl = clusterUrl.replace(\"http://\", \"https://\");\n\tif(clusterUrl.indexOf(\"ssl/\")<0){var slashAtTheEnd=clusterUrl.search(/\\/([\\d.]*)\\/$/);if(slashAtTheEnd>-1){clusterUrl=clusterUrl.substring(0,slashAtTheEnd+1)+\"ssl/\"+clusterUrl.substring(slashAtTheEnd+1,clusterUrl.length);}else{clusterUrl=clusterUrl.substring(0,clusterUrl.lastIndexOf(\"/\")+1)+\"ssl/\"+clusterUrl.substring(clusterUrl.lastIndexOf(\"/\")+1);}}}else{url=url.replace(\"http://\",\"https://\");}}// Create session cookie\n\t//createSessionCookie(sslSessionCookieName, 1);\n\t};/*\n\t * Clear the reconnecting interval\n\t */var clearReconnectInterval=function(){if(ortc.reconnectIntervalId){clearInterval(ortc.reconnectIntervalId);ortc.reconnectIntervalId=null;}};/*\n\t * Clear the validated timeout\n\t */var clearValidatedTimeout=function(self){if(self.validatedTimeoutId){clearTimeout(self.validatedTimeoutId);self.validatedTimeoutId=null;}};/*\n\t * Stop the reconnecting process\n\t */var stopReconnectProcess=function(){stopReconnecting=true;alreadyConnectedFirstTime=false;};var startHeartBeatInterval=function(self){if(!self.heartbeatInterval&&heartbeatActive){self.sockjs.send(\"b\");self.heartbeatInterval=setInterval(function(){if(!heartbeatActive){stopHeartBeatInterval(self);}else{self.sockjs.send(\"b\");}},heartbeatTime*1000);}};var stopHeartBeatInterval=function(self){if(self.heartbeatInterval){clearInterval(self.heartbeatInterval);self.heartbeatInterval=null;}};/*\n\t * Creates a cookie with expiration time.\n\t */var createExpireCookie=function(name,value,minutes){var expires=\"\";if(minutes){var date=new Date();date.setTime(date.getTime()+minutes*60*1000);expires=\"; expires=\"+date.toGMTString();}document.cookie=name+\"=\"+value+expires+\"; path=/\";};/*\n\t * Creates a session cookie.\n\t */var createSessionCookie=function(name,value){document.cookie=name+\"=\"+value+\"; path=/\";};/*\n\t * Reads a cookie.\n\t */var readCookie=function(name){var nameEQ=name+\"=\";var ca=document.cookie.split(\";\");var result=null;for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==\" \"){c=c.substring(1,c.length);}if(c.indexOf(nameEQ)==0){result=c.substring(nameEQ.length,c.length);break;}}return result;};/*\n\t * Generates an ID.\n\t */var generateId=function(size){var result=\"\";var S4=function(){return((1+Math.random())*0x10000|0).toString(16).substring(1);};for(var i=0;i<size/4;i++){result+=S4();}return result;};/*\n\t * Disconnects the socket.\n\t */var disconnectSocket=function(){stopHeartBeatInterval(ortc);reconnectStartedAt=null;isConnected=false;isConnecting=false;validatedArrived=false;retryingWithSsl=false;clearValidatedTimeout(self);if(ortc.sockjs!=null){ortc.sockjs.close();ortc.sockjs=null;}};/*\n\t * Reconnects the socket.\n\t */var reconnectSocket=function(){stopHeartBeatInterval(ortc);if(isConnecting){delegateExceptionCallback(ortc,\"Unable to connect\");}isConnecting=true;delegateReconnectingCallback(ortc);reconnectStartedAt=new Date().getTime();if(clusterUrl&&clusterUrl!=null){clusterConnection();}else{ortc.sockjs=createSocketConnection(url);}};/*\n\t * Tries a connection through the cluster gateway with the application key and authentication token.\n\t */var clusterConnection=function(){var guid=generateGuid();var queryString=\"guid=\"+generateGuid();queryString=ortc.appKey?queryString+\"&appkey=\"+ortc.appKey:queryString;loadClusterServerScript(clusterUrl+\"/?\"+queryString,guid,function(clusterServerResolved,scriptGuid){if(clusterServerResolved){url=SOCKET_SERVER;sockjs=createSocketConnection(ortc.getUrl());}try{clearScripts(scriptGuid);}catch(loadError){}});};/*\n\t * Clears the javascript scripts previously loaded into the page.\n\t */var clearScripts=function(guid){var headChildren=document.getElementsByTagName(\"head\")[0].children;var childrenToRemove=[];for(var i=0;i<headChildren.length;i++){if(headChildren[i].attributes!=null&&headChildren[i].attributes[\"ortcScriptId\"]&&headChildren[i].attributes[\"ortcScriptId\"].value==guid){childrenToRemove.push(i);}}for(var child in childrenToRemove){document.getElementsByTagName(\"head\")[0].removeChild(headChildren[childrenToRemove[child]]);}};/*\n\t * Loads the cluster server javascript script into the page.\n\t */var loadClusterServerScript=function(scriptUrl,guid,callback){var script=document.createElement(\"script\");script.type=\"text/javascript\";script.setAttribute(\"ortcScriptId\",guid);waitingClusterResponse=true;if(script.readyState){// IE\n\tscript.onreadystatechange=function(){if(script.readyState==\"loaded\"||script.readyState==\"complete\"){waitingClusterResponse=false;script.onreadystatechange=null;if(typeof SOCKET_SERVER!=\"undefined\"&&SOCKET_SERVER.indexOf(\"undefined\")<0&&SOCKET_SERVER.indexOf(\"unknown_server\")<0){callback(true,guid);}else{callback(false,guid);}}};}else{// Others\n\tscript.onload=function(){waitingClusterResponse=false;if(typeof SOCKET_SERVER!=\"undefined\"&&SOCKET_SERVER.indexOf(\"undefined\")<0&&SOCKET_SERVER.indexOf(\"unknown_server\")<0){callback(true,guid);}else{callback(false,guid);}};}script.onerror=function(){waitingClusterResponse=false;};script.src=scriptUrl;document.getElementsByTagName(\"head\")[0].appendChild(script);};/*\n\t * Generates a GUID.\n\t */var generateGuid=function(){var S4=function(){return((1+Math.random())*0x10000|0).toString(16).substring(1);};return S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4();};/*\n\t * Count the dictionary keys.\n\t */var countKeys=function(dic){var count=0;for(var i in dic){count++;}return count;};/*\n\t * Creates a socket connection.\n\t */var createSocketConnection=function(connectionUrl){var self=ortc;if(self.sockjs==null){if(navigator&&navigator.userAgent&&navigator.userAgent.indexOf(\"PlayStation Vita\")>=0){protocol=\"jsonp-polling\";}self.sockjs=new SockJS(connectionUrl+\"/broadcast\",protocol);// Timeout to receive the validated message\n\tif(!self.sslFallback){var validateTimeoutTime=5000;self.validatedTimeoutId=setTimeout(function(){self.sslFallback=true;stopReconnectProcess();disconnectSocket();invalidConnection=true;retryingWithSsl=true;if(connectionUrl.indexOf(\"https://\")>=0){// We are already using SSL, try streaming\n\tprotocol=\"xhr-streaming\";}else{protocol=undefined;}changeUrlSsl();},validateTimeoutTime);}else if(!self.xhrStreamingFallback){// The SSL fallback failed. Try xhr-streaming\n\tvar validateSslTimeoutTime=5000;self.validatedTimeoutId=setTimeout(function(){self.xhrStreamingFallback=true;stopReconnectProcess();disconnectSocket();invalidConnection=true;retryingWithSsl=true;protocol=\"xhr-streaming\";},validateSslTimeoutTime);}// Connect handler\n\tself.sockjs.onopen=function(){protocol=self.sockjs.protocol;// Update last keep alive time\n\tlastKeepAlive=new Date().getTime();// If is a reconnect do not count session\n\tif(alreadyConnectedFirstTime){sessionId=\"\";}else{// Read session cookie\n\tsessionId=readCookie(sessionCookieName+self.appKey+\"-s\");if(!sessionId){// Read expiration cookie\n\tsessionId=readCookie(sessionCookieName+self.appKey);if(!sessionId){sessionId=generateId(16);}// Create session cookie\n\tcreateSessionCookie(sessionCookieName+self.appKey+\"-s\",sessionId);// Check if session cookie was created\n\tif(!readCookie(sessionCookieName+self.appKey+\"-s\")){sessionId=\"\";}}}var heartbeatDetails=heartbeatActive?\";\"+self.getHeartbeatTime()+\";\"+self.getHeartbeatFails()+\";\":\"\";self.sockjs.send(\"validate;\"+self.appKey+\";\"+self.authToken+\";\"+(announcementSubChannel?announcementSubChannel:\"\")+\";\"+sessionId+\";\"+connectionMetadata+heartbeatDetails);};// Disconnect handler\n\tself.sockjs.onclose=function(e){// e.code=1000 - e.reason=Normal closure\n\t// e.code=1006 - e.reason=WebSocket connection broken\n\t// e.code=2000 - e.reason=All transports failed\n\tstopHeartBeatInterval(ortc);if(ortc.sockjs!=null){ortc.sockjs.close();ortc.sockjs=null;}// Clear user permissions\n\tuserPerms=null;if(e.code!=1000){if(isConnected){isConnected=false;isConnecting=false;protocol=undefined;delegateDisconnectedCallback(self);}if(!stopReconnecting){if(!reconnectStartedAt||reconnectStartedAt+connectionTimeout<new Date().getTime()){reconnectSocket();}}}else{if(!invalidConnection){isConnected=false;isConnecting=false;protocol=undefined;delegateDisconnectedCallback(self);}}if(retryingWithSsl){self.connect(self.appKey,self.authToken);retryingWithSsl=false;}invalidConnection=false;};// Receive handler\n\tself.sockjs.onmessage=function(e){// Update last keep alive time\n\tlastKeepAlive=new Date().getTime();var data=e.data;var channel=data.ch;var message=data.m;var filtered=data.f;// Multi part\n\tvar regexPattern=/^(\\w[^_]*)_{1}(\\d*)-{1}(\\d*)_{1}([\\s\\S.]*)$/;var match=regexPattern.exec(message);var messageId=null;var messageCurrentPart=1;var messageTotalPart=1;var lastPart=false;if(match&&match.length>0){if(match[1]){messageId=match[1];}if(match[2]){messageCurrentPart=match[2];}if(match[3]){messageTotalPart=match[3];}if(match[4]){message=match[4];}}if(messageId){if(!messagesBuffer[messageId]){messagesBuffer[messageId]={};}messagesBuffer[messageId][messageCurrentPart]=message;if(countKeys(messagesBuffer[messageId])==messageTotalPart){lastPart=true;}}else{lastPart=true;}if(lastPart){if(messageId){message=\"\";for(var i=1;i<=messageTotalPart;i++){message+=messagesBuffer[messageId][i];delete messagesBuffer[messageId][i];}delete messagesBuffer[messageId];}delegateMessagesCallback(self,channel,filtered,message);}};self.sockjs.onortcsubscribed=function(e){lastKeepAlive=new Date().getTime();var channel=e.data;if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;subscribedChannels[channel].isSubscribed=true;}delegateSubscribedCallback(self,channel);};self.sockjs.onortcunsubscribed=function(e){lastKeepAlive=new Date().getTime();var channel=e.data;if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribed=false;}delegateUnsubscribedCallback(self,channel);};self.sockjs.onheartbeat=function(){lastKeepAlive=new Date().getTime();};self.sockjs.onortcvalidated=function(e){var sessionExpirationTime=30;if(e.data){userPerms=e.data;}if(e.set){sessionExpirationTime=e.set;}clearValidatedTimeout(self);validatedArrived=true;retryingWithSsl=false;isConnecting=false;isConnected=true;reconnectStartedAt=null;if(sessionId){if(!readCookie(sessionCookieName+self.appKey+\"-s\")){createSessionCookie(sessionCookieName+self.appKey+\"-s\",sessionId);}if(!readCookie(sessionCookieName+self.appKey)){createExpireCookie(sessionCookieName+self.appKey,sessionId,sessionExpirationTime);}}if(alreadyConnectedFirstTime){var channelsToRemove={};// Subscribe to the previously subscribed channels\n\tfor(var key in subscribedChannels){// Subscribe again\n\tif(subscribedChannels[key].subscribeOnReconnected==true&&(subscribedChannels[key].isSubscribing||subscribedChannels[key].isSubscribed)){subscribedChannels[key].isSubscribing=true;subscribedChannels[key].isSubscribed=false;var domainChannelCharacterIndex=key.indexOf(\":\");var channelToValidate=key;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=key.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[key];}if(subscribedChannels[key].filter){self.sockjs.send(\"subscribefilter;\"+self.appKey+\";\"+self.authToken+\";\"+key+\";\"+hashPerm+\";\"+subscribedChannels[key].filter);}else{self.sockjs.send(\"subscribe;\"+self.appKey+\";\"+self.authToken+\";\"+key+\";\"+hashPerm);}}else{channelsToRemove[key]=key;}}for(var keyToRemove in channelsToRemove){delete subscribedChannels[keyToRemove];}messagesBuffer={};delegateReconnectedCallback(self);}else{alreadyConnectedFirstTime=true;delegateConnectedCallback(self);}};self.sockjs.onortcerror=function(e){lastKeepAlive=new Date().getTime();var data=e.data;var operation=data.op;var channel=data.ch;var error=data.ex?data.ex:data;delegateExceptionCallback(self,error);switch(operation){case\"validate\":if(error.indexOf(\"busy\")<0){invalidConnection=true;clearValidatedTimeout(self);retryingWithSsl=false;stopReconnectProcess();}else{clearValidatedTimeout(self);retryingWithSsl=false;}break;case\"subscribe\":if(channel&&subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;}break;case\"subscribe_maxsize\":case\"unsubscribe_maxsize\":case\"shutdown\":clearValidatedTimeout(self);retryingWithSsl=false;break;case\"send_maxsize\":if(channel&&subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;}stopReconnectProcess();break;default:break;}};}return self.sockjs;};var jsonp=function(url,callback){var head=document.head?document.head:document.getElementsByTagName(\"head\")[0];var script=document.createElement(\"script\");var guid=\"ortcJsonp\"+ +new Date();var jsonpCallTimeout=setTimeout(function(){try{callback(\"Unable to get data\",null);window[guid]=undefined;delete window[guid];head.removeChild(script);}catch(e){}},15*1000);window[guid]=function(data){clearTimeout(jsonpCallTimeout);if(data.error){callback(data.error,null);}else{callback(null,data.content);}try{window[guid]=undefined;delete window[guid];head.removeChild(script);}catch(e){}};script.setAttribute(\"src\",url+\"?callback=\"+guid);head.appendChild(script);};var delegateConnectedCallback=function(ortc){if(ortc!=null&&ortc.onConnected!=null){startHeartBeatInterval(ortc);ortc.onConnected(ortc);}};var delegateDisconnectedCallback=function(ortc){if(ortc!=null&&ortc.onDisconnected!=null){ortc.onDisconnected(ortc);}};var delegateSubscribedCallback=function(ortc,channel){if(ortc!=null&&ortc.onSubscribed!=null&&channel!=null){ortc.onSubscribed(ortc,channel);}};var delegateUnsubscribedCallback=function(ortc,channel){if(ortc!=null&&ortc.onUnsubscribed!=null&&channel!=null){ortc.onUnsubscribed(ortc,channel);}};var delegateMessagesCallback=function(ortc,channel,filtered,message){if(ortc!=null&&subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed&&subscribedChannels[channel].onMessageCallback!=null){if(filtered==null){// regular subscription\n\tsubscribedChannels[channel].onMessageCallback(ortc,channel,message);}else{// filtered subscription\n\tsubscribedChannels[channel].onMessageCallback(ortc,channel,filtered,message);}}};var delegateExceptionCallback=function(ortc,event){if(ortc!=null&&ortc.onException!=null){ortc.onException(ortc,event);}};var delegateReconnectingCallback=function(ortc){if(ortc!=null&&ortc.onReconnecting!=null){ortc.onReconnecting(ortc);}};var delegateReconnectedCallback=function(ortc){if(ortc!=null&&ortc.onReconnected!=null){startHeartBeatInterval(ortc);ortc.onReconnected(ortc);}};}", "componentDidMount() {\n //setLocalNotification();\n }", "function AppMeasurement_Module_Media(s){var m=this;m.s=s;s=window;if(!s.s_c_in)s.s_c_il=[],s.s_c_in=0;m._il=s.s_c_il;m._in=s.s_c_in;m._il[m._in]=m;s.s_c_in++;m._c=\"s_m\";m.list=[];m.open=function(w,b,c,h){var d={},a=new Date,g=\"\",e;b||(b=-1);if(w&&c){if(!m.list)m.list={};m.list[w]&&m.close(w);if(h&&h.id)g=h.id;if(g)for(e in m.list)!Object.prototype[e]&&m.list[e]&&m.list[e].S==g&&m.close(m.list[e].name);d.name=w;d.length=b;d.u=0;d.c=0;d.playerName=m.playerName?m.playerName:c;d.S=g;d.L=0;d.f=0;d.timestamp=\r\n\t\tMath.floor(a.getTime()/1E3);d.j=0;d.r=d.timestamp;d.a=-1;d.B=\"\";d.k=-1;d.C=0;d.H={};d.F=0;d.m=0;d.e=\"\";d.A=0;d.K=0;d.z=0;d.D=0;d.l=!1;d.v=\"\";d.I=\"\";d.J=0;d.q=!1;d.G=\"\";d.complete=0;d.Q=0;d.o=0;d.p=0;m.list[w]=d}};m.openAd=function(w,b,c,h,d,a,g,e){var f={};m.open(w,b,c,e);if(f=m.list[w])f.l=!0,f.v=h,f.I=d,f.J=a,f.G=g};m.M=function(w){var b=m.list[w];m.list[w]=0;b&&b.monitor&&clearTimeout(b.monitor.R)};m.close=function(w){m.g(w,0,-1)};m.play=function(w,b,c,h){var d=m.g(w,1,b,c,h);if(d&&!d.monitor)d.monitor=\r\n\t\t{},d.monitor.update=function(){d.j==1&&m.g(d.name,3,-1);d.monitor.R=setTimeout(d.monitor.update,1E3)},d.monitor.update()};m.click=function(w,b){m.g(w,7,b)};m.complete=function(w,b){m.g(w,5,b)};m.stop=function(w,b){m.g(w,2,b)};m.track=function(w){m.g(w,4,-1)};m.P=function(w,b){var c=\"a.media.\",h=w.linkTrackVars,d=w.linkTrackEvents,a=\"m_i\",g,e=w.contextData,f;if(b.l){c+=\"ad.\";if(b.v)e[\"a.media.name\"]=b.v,e[c+\"pod\"]=b.I,e[c+\"podPosition\"]=b.J;if(!b.F)e[c+\"CPM\"]=b.G}if(b.q)e[c+\"clicked\"]=!0,b.q=!1;e[\"a.contentType\"]=\r\n\t\t\"video\"+(b.l?\"Ad\":\"\");e[\"a.media.channel\"]=m.channel;e[c+\"name\"]=b.name;e[c+\"playerName\"]=b.playerName;if(b.length>0)e[c+\"length\"]=b.length;e[c+\"timePlayed\"]=Math.floor(b.f);Math.floor(b.f)>0&&(e[c+\"timePlayed\"]=Math.floor(b.f));if(!b.F)e[c+\"view\"]=!0,a=\"m_s\",b.F=1;if(b.e){e[c+\"segmentNum\"]=b.m;e[c+\"segment\"]=b.e;if(b.A>0)e[c+\"segmentLength\"]=b.A;b.z&&b.f>0&&(e[c+\"segmentView\"]=!0)}if(!b.Q&&b.complete)e[c+\"complete\"]=!0,b.T=1;if(b.o>0)e[c+\"milestone\"]=b.o;if(b.p>0)e[c+\"offsetMilestone\"]=b.p;if(h)for(f in e)Object.prototype[f]||\r\n\t\t(h+=\",contextData.\"+f);g=e[\"a.contentType\"];w.pe=a;w.pev3=g;var s,n;if(m.contextDataMapping){if(!w.events2)w.events2=\"\";h&&(h+=\",events\");for(f in m.contextDataMapping)if(!Object.prototype[f]){a=f.length>c.length&&f.substring(0,c.length)==c?f.substring(c.length):\"\";g=m.contextDataMapping[f];if(typeof g==\"string\"){s=g.split(\",\");for(n=0;n<s.length;n++)g=s[n],f==\"a.contentType\"?(h&&(h+=\",\"+g),w[g]=e[f]):a==\"view\"||a==\"segmentView\"||a==\"clicked\"||a==\"complete\"||a==\"timePlayed\"||a==\"CPM\"?(d&&(d+=\",\"+\r\n\t\tg),a==\"timePlayed\"||a==\"CPM\"?e[f]&&(w.events2+=(w.events2?\",\":\"\")+g+\"=\"+e[f]):e[f]&&(w.events2+=(w.events2?\",\":\"\")+g)):a==\"segment\"&&e[f+\"Num\"]?(h&&(h+=\",\"+g),w[g]=e[f+\"Num\"]+\":\"+e[f]):(h&&(h+=\",\"+g),w[g]=e[f])}else if(a==\"milestones\"||a==\"offsetMilestones\")f=f.substring(0,f.length-1),e[f]&&m.contextDataMapping[f+\"s\"][e[f]]&&(d&&(d+=\",\"+m.contextDataMapping[f+\"s\"][e[f]]),w.events2+=(w.events2?\",\":\"\")+m.contextDataMapping[f+\"s\"][e[f]]);e[f]&&(e[f]=0);a==\"segment\"&&e[f+\"Num\"]&&(e[f+\"Num\"]=0)}}w.linkTrackVars=\r\n\t\th;w.linkTrackEvents=d};m.g=function(w,b,c,h,d){var a={},g=(new Date).getTime()/1E3,e,f,s=m.trackVars,n=m.trackEvents,o=m.trackSeconds,p=m.trackMilestones,q=m.trackOffsetMilestones,r=m.segmentByMilestones,t=m.segmentByOffsetMilestones,k,j,l=1,i={},u;if(!m.channel)m.channel=m.s.w.location.hostname;if(a=w&&m.list&&m.list[w]?m.list[w]:0){if(a.l)o=m.adTrackSeconds,p=m.adTrackMilestones,q=m.adTrackOffsetMilestones,r=m.adSegmentByMilestones,t=m.adSegmentByOffsetMilestones;c<0&&(c=a.j==1&&a.r>0?g-a.r+a.a:\r\n\t\ta.a);a.length>0&&(c=c<a.length?c:a.length);c<0&&(c=0);a.u=c;if(a.length>0)a.c=a.u/a.length*100,a.c=a.c>100?100:a.c;if(a.a<0)a.a=c;u=a.C;i.name=w;i.ad=a.l;i.length=a.length;i.openTime=new Date;i.openTime.setTime(a.timestamp*1E3);i.offset=a.u;i.percent=a.c;i.playerName=a.playerName;i.mediaEvent=a.k<0?\"OPEN\":b==1?\"PLAY\":b==2?\"STOP\":b==3?\"MONITOR\":b==4?\"TRACK\":b==5?\"COMPLETE\":b==7?\"CLICK\":\"CLOSE\";if(b>2||b!=a.j&&(b!=2||a.j==1)){if(!d)h=a.m,d=a.e;if(b){if(b==1)a.a=c;if((b<=3||b>=5)&&a.k>=0)if(l=!1,s=n=\r\n\t\t\"None\",a.k!=c){f=a.k;if(f>c)f=a.a,f>c&&(f=c);k=p?p.split(\",\"):0;if(a.length>0&&k&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f/a.length*100<e&&a.c>=e)l=!0,j=k.length,i.mediaEvent=\"MILESTONE\",a.o=i.milestone=e;if((k=q?q.split(\",\"):0)&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f<e&&c>=e)l=!0,j=k.length,i.mediaEvent=\"OFFSET_MILESTONE\",a.p=i.offsetMilestone=e}if(a.K||!d){if(r&&p&&a.length>0){if(k=p.split(\",\")){k.push(\"100\");for(j=f=0;j<k.length;j++)if(e=k[j]?parseFloat(\"\"+\r\n\t\tk[j]):0){if(a.c<e)h=j+1,d=\"M:\"+f+\"-\"+e,j=k.length;f=e}}}else if(t&&q&&(k=q.split(\",\"))){k.push(\"\"+(a.length>0?a.length:\"E\"));for(j=f=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)||k[j]==\"E\"){if(c<e||k[j]==\"E\")h=j+1,d=\"O:\"+f+\"-\"+e,j=k.length;f=e}}if(d)a.K=!0}if((d||a.e)&&d!=a.e){a.D=!0;if(!a.e)a.m=h,a.e=d;a.k>=0&&(l=!0)}if((b>=2||a.c>=100)&&a.a<c)a.L+=c-a.a,a.f+=c-a.a;if(b<=2||b==3&&!a.j)a.B+=(b==1||b==3?\"S\":\"E\")+Math.floor(c),a.j=b==3?1:b;if(!l&&a.k>=0&&b<=3&&(o=o?o:0)&&a.f>=o)l=!0,i.mediaEvent=\r\n\t\t\"SECONDS\";a.r=g;a.a=c}if(!b||b<=3&&a.c>=100)a.j!=2&&(a.B+=\"E\"+Math.floor(c)),b=0,s=n=\"None\",i.mediaEvent=\"CLOSE\";if(b==7)l=i.clicked=a.q=!0;if(b==5||m.completeByCloseOffset&&(!b||a.c>=100)&&a.length>0&&c>=a.length-m.completeCloseOffsetThreshold)l=i.complete=a.complete=!0;g=i.mediaEvent;g==\"MILESTONE\"?g+=\"_\"+i.milestone:g==\"OFFSET_MILESTONE\"&&(g+=\"_\"+i.offsetMilestone);a.H[g]?i.eventFirstTime=!1:(i.eventFirstTime=!0,a.H[g]=1);i.event=i.mediaEvent;i.timePlayed=a.L;i.segmentNum=a.m;i.segment=a.e;i.segmentLength=\r\n\t\ta.A;m.monitor&&b!=4&&m.monitor(m.s,i);b==0&&m.M(w);if(l&&a.C==u){w={};w.contextData={};w.linkTrackVars=s;w.linkTrackEvents=n;if(!w.linkTrackVars)w.linkTrackVars=\"\";if(!w.linkTrackEvents)w.linkTrackEvents=\"\";m.P(w,a);w.linkTrackVars||(w[\"!linkTrackVars\"]=1);w.linkTrackEvents||(w[\"!linkTrackEvents\"]=1);m.s.track(w);if(a.D)a.m=h,a.e=d,a.z=!0,a.D=!1;else if(a.f>0)a.z=!1;a.B=\"\";a.o=a.p=0;a.f-=Math.floor(a.f);a.k=c;a.C++}}}return a};m.O=function(w,b,c,h,d){var a=0;if(w&&(!m.autoTrackMediaLengthRequired||\r\n\t\tb&&b>0)){if(!m.list||!m.list[w]){if(c==1||c==3)m.open(w,b,\"HTML5 Video\",d),a=1}else a=1;a&&m.g(w,c,h,-1,0)}};m.attach=function(w){var b,c,h;if(w&&w.tagName&&w.tagName.toUpperCase()==\"VIDEO\"){if(!m.n)m.n=function(b,a,w){var c,f;if(m.autoTrack){c=b.currentSrc;(f=b.duration)||(f=-1);if(w<0)w=b.currentTime;m.O(c,f,a,w,b)}};b=function(){m.n(w,1,-1)};c=function(){m.n(w,1,-1)};m.i(w,\"play\",b);m.i(w,\"pause\",c);m.i(w,\"seeking\",c);m.i(w,\"seeked\",b);m.i(w,\"ended\",function(){m.n(w,0,-1)});m.i(w,\"timeupdate\",\r\n\t\tb);h=function(){!w.paused&&!w.ended&&!w.seeking&&m.n(w,3,-1);setTimeout(h,1E3)};h()}};m.i=function(m,b,c){m.attachEvent?m.attachEvent(\"on\"+b,c):m.addEventListener&&m.addEventListener(b,c,!1)};if(m.completeByCloseOffset==void 0)m.completeByCloseOffset=1;if(m.completeCloseOffsetThreshold==void 0)m.completeCloseOffsetThreshold=1;m.N=function(){var w,b;if(m.autoTrack&&(w=m.s.d.getElementsByTagName(\"VIDEO\")))for(b=0;b<w.length;b++)m.attach(w[b])};m.i(s,\"load\",m.N)}", "constructor(httpClient) {\n this.httpClient = httpClient;\n //public url_base = \"http://localhost:8080\";\n this.url_base = \"https://yaoyuan333.wm.r.appspot.com\";\n }", "function AppMeasurement_Module_Media(s){var m=this;m.s=s;s=window;if(!s.s_c_in)s.s_c_il=[],s.s_c_in=0;m._il=s.s_c_il;m._in=s.s_c_in;m._il[m._in]=m;s.s_c_in++;m._c=\"s_m\";m.list=[];m.open=function(w,b,c,h){var d={},a=new Date,g=\"\",e;b||(b=-1);if(w&&c){if(!m.list)m.list={};m.list[w]&&m.close(w);if(h&&h.id)g=h.id;if(g)for(e in m.list)!Object.prototype[e]&&m.list[e]&&m.list[e].S==g&&m.close(m.list[e].name);d.name=w;d.length=b;d.u=0;d.c=0;d.playerName=m.playerName?m.playerName:c;d.S=g;d.L=0;d.f=0;d.timestamp=\r\nMath.floor(a.getTime()/1E3);d.j=0;d.r=d.timestamp;d.a=-1;d.B=\"\";d.k=-1;d.C=0;d.H={};d.F=0;d.m=0;d.e=\"\";d.A=0;d.K=0;d.z=0;d.D=0;d.l=!1;d.v=\"\";d.I=\"\";d.J=0;d.q=!1;d.G=\"\";d.complete=0;d.Q=0;d.o=0;d.p=0;m.list[w]=d}};m.openAd=function(w,b,c,h,d,a,g,e){var f={};m.open(w,b,c,e);if(f=m.list[w])f.l=!0,f.v=h,f.I=d,f.J=a,f.G=g};m.M=function(w){var b=m.list[w];m.list[w]=0;b&&b.monitor&&clearTimeout(b.monitor.R)};m.close=function(w){m.g(w,0,-1)};m.play=function(w,b,c,h){var d=m.g(w,1,b,c,h);if(d&&!d.monitor)d.monitor=\r\n{},d.monitor.update=function(){d.j==1&&m.g(d.name,3,-1);d.monitor.R=setTimeout(d.monitor.update,1E3)},d.monitor.update()};m.click=function(w,b){m.g(w,7,b)};m.complete=function(w,b){m.g(w,5,b)};m.stop=function(w,b){m.g(w,2,b)};m.track=function(w){m.g(w,4,-1)};m.P=function(w,b){var c=\"a.media.\",h=w.linkTrackVars,d=w.linkTrackEvents,a=\"m_i\",g,e=w.contextData,f;if(b.l){c+=\"ad.\";if(b.v)e[\"a.media.name\"]=b.v,e[c+\"pod\"]=b.I,e[c+\"podPosition\"]=b.J;if(!b.F)e[c+\"CPM\"]=b.G}if(b.q)e[c+\"clicked\"]=!0,b.q=!1;e[\"a.contentType\"]=\r\n\"video\"+(b.l?\"Ad\":\"\");e[\"a.media.channel\"]=m.channel;e[c+\"name\"]=b.name;e[c+\"playerName\"]=b.playerName;if(b.length>0)e[c+\"length\"]=b.length;e[c+\"timePlayed\"]=Math.floor(b.f);Math.floor(b.f)>0&&(e[c+\"timePlayed\"]=Math.floor(b.f));if(!b.F)e[c+\"view\"]=!0,a=\"m_s\",b.F=1;if(b.e){e[c+\"segmentNum\"]=b.m;e[c+\"segment\"]=b.e;if(b.A>0)e[c+\"segmentLength\"]=b.A;b.z&&b.f>0&&(e[c+\"segmentView\"]=!0)}if(!b.Q&&b.complete)e[c+\"complete\"]=!0,b.T=1;if(b.o>0)e[c+\"milestone\"]=b.o;if(b.p>0)e[c+\"offsetMilestone\"]=b.p;if(h)for(f in e)Object.prototype[f]||\r\n(h+=\",contextData.\"+f);g=e[\"a.contentType\"];w.pe=a;w.pev3=g;var s,n;if(m.contextDataMapping){if(!w.events2)w.events2=\"\";h&&(h+=\",events\");for(f in m.contextDataMapping)if(!Object.prototype[f]){a=f.length>c.length&&f.substring(0,c.length)==c?f.substring(c.length):\"\";g=m.contextDataMapping[f];if(typeof g==\"string\"){s=g.split(\",\");for(n=0;n<s.length;n++)g=s[n],f==\"a.contentType\"?(h&&(h+=\",\"+g),w[g]=e[f]):a==\"view\"||a==\"segmentView\"||a==\"clicked\"||a==\"complete\"||a==\"timePlayed\"||a==\"CPM\"?(d&&(d+=\",\"+\r\ng),a==\"timePlayed\"||a==\"CPM\"?e[f]&&(w.events2+=(w.events2?\",\":\"\")+g+\"=\"+e[f]):e[f]&&(w.events2+=(w.events2?\",\":\"\")+g)):a==\"segment\"&&e[f+\"Num\"]?(h&&(h+=\",\"+g),w[g]=e[f+\"Num\"]+\":\"+e[f]):(h&&(h+=\",\"+g),w[g]=e[f])}else if(a==\"milestones\"||a==\"offsetMilestones\")f=f.substring(0,f.length-1),e[f]&&m.contextDataMapping[f+\"s\"][e[f]]&&(d&&(d+=\",\"+m.contextDataMapping[f+\"s\"][e[f]]),w.events2+=(w.events2?\",\":\"\")+m.contextDataMapping[f+\"s\"][e[f]]);e[f]&&(e[f]=0);a==\"segment\"&&e[f+\"Num\"]&&(e[f+\"Num\"]=0)}}w.linkTrackVars=\r\nh;w.linkTrackEvents=d};m.g=function(w,b,c,h,d){var a={},g=(new Date).getTime()/1E3,e,f,s=m.trackVars,n=m.trackEvents,o=m.trackSeconds,p=m.trackMilestones,q=m.trackOffsetMilestones,r=m.segmentByMilestones,t=m.segmentByOffsetMilestones,k,j,l=1,i={},u;if(!m.channel)m.channel=m.s.w.location.hostname;if(a=w&&m.list&&m.list[w]?m.list[w]:0){if(a.l)o=m.adTrackSeconds,p=m.adTrackMilestones,q=m.adTrackOffsetMilestones,r=m.adSegmentByMilestones,t=m.adSegmentByOffsetMilestones;c<0&&(c=a.j==1&&a.r>0?g-a.r+a.a:\r\na.a);a.length>0&&(c=c<a.length?c:a.length);c<0&&(c=0);a.u=c;if(a.length>0)a.c=a.u/a.length*100,a.c=a.c>100?100:a.c;if(a.a<0)a.a=c;u=a.C;i.name=w;i.ad=a.l;i.length=a.length;i.openTime=new Date;i.openTime.setTime(a.timestamp*1E3);i.offset=a.u;i.percent=a.c;i.playerName=a.playerName;i.mediaEvent=a.k<0?\"OPEN\":b==1?\"PLAY\":b==2?\"STOP\":b==3?\"MONITOR\":b==4?\"TRACK\":b==5?\"COMPLETE\":b==7?\"CLICK\":\"CLOSE\";if(b>2||b!=a.j&&(b!=2||a.j==1)){if(!d)h=a.m,d=a.e;if(b){if(b==1)a.a=c;if((b<=3||b>=5)&&a.k>=0)if(l=!1,s=n=\r\n\"None\",a.k!=c){f=a.k;if(f>c)f=a.a,f>c&&(f=c);k=p?p.split(\",\"):0;if(a.length>0&&k&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f/a.length*100<e&&a.c>=e)l=!0,j=k.length,i.mediaEvent=\"MILESTONE\",a.o=i.milestone=e;if((k=q?q.split(\",\"):0)&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f<e&&c>=e)l=!0,j=k.length,i.mediaEvent=\"OFFSET_MILESTONE\",a.p=i.offsetMilestone=e}if(a.K||!d){if(r&&p&&a.length>0){if(k=p.split(\",\")){k.push(\"100\");for(j=f=0;j<k.length;j++)if(e=k[j]?parseFloat(\"\"+\r\nk[j]):0){if(a.c<e)h=j+1,d=\"M:\"+f+\"-\"+e,j=k.length;f=e}}}else if(t&&q&&(k=q.split(\",\"))){k.push(\"\"+(a.length>0?a.length:\"E\"));for(j=f=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)||k[j]==\"E\"){if(c<e||k[j]==\"E\")h=j+1,d=\"O:\"+f+\"-\"+e,j=k.length;f=e}}if(d)a.K=!0}if((d||a.e)&&d!=a.e){a.D=!0;if(!a.e)a.m=h,a.e=d;a.k>=0&&(l=!0)}if((b>=2||a.c>=100)&&a.a<c)a.L+=c-a.a,a.f+=c-a.a;if(b<=2||b==3&&!a.j)a.B+=(b==1||b==3?\"S\":\"E\")+Math.floor(c),a.j=b==3?1:b;if(!l&&a.k>=0&&b<=3&&(o=o?o:0)&&a.f>=o)l=!0,i.mediaEvent=\r\n\"SECONDS\";a.r=g;a.a=c}if(!b||b<=3&&a.c>=100)a.j!=2&&(a.B+=\"E\"+Math.floor(c)),b=0,s=n=\"None\",i.mediaEvent=\"CLOSE\";if(b==7)l=i.clicked=a.q=!0;if(b==5||m.completeByCloseOffset&&(!b||a.c>=100)&&a.length>0&&c>=a.length-m.completeCloseOffsetThreshold)l=i.complete=a.complete=!0;g=i.mediaEvent;g==\"MILESTONE\"?g+=\"_\"+i.milestone:g==\"OFFSET_MILESTONE\"&&(g+=\"_\"+i.offsetMilestone);a.H[g]?i.eventFirstTime=!1:(i.eventFirstTime=!0,a.H[g]=1);i.event=i.mediaEvent;i.timePlayed=a.L;i.segmentNum=a.m;i.segment=a.e;i.segmentLength=\r\na.A;m.monitor&&b!=4&&m.monitor(m.s,i);b==0&&m.M(w);if(l&&a.C==u){w={};w.contextData={};w.linkTrackVars=s;w.linkTrackEvents=n;if(!w.linkTrackVars)w.linkTrackVars=\"\";if(!w.linkTrackEvents)w.linkTrackEvents=\"\";m.P(w,a);w.linkTrackVars||(w[\"!linkTrackVars\"]=1);w.linkTrackEvents||(w[\"!linkTrackEvents\"]=1);m.s.track(w);if(a.D)a.m=h,a.e=d,a.z=!0,a.D=!1;else if(a.f>0)a.z=!1;a.B=\"\";a.o=a.p=0;a.f-=Math.floor(a.f);a.k=c;a.C++}}}return a};m.O=function(w,b,c,h,d){var a=0;if(w&&(!m.autoTrackMediaLengthRequired||\r\nb&&b>0)){if(!m.list||!m.list[w]){if(c==1||c==3)m.open(w,b,\"HTML5 Video\",d),a=1}else a=1;a&&m.g(w,c,h,-1,0)}};m.attach=function(w){var b,c,h;if(w&&w.tagName&&w.tagName.toUpperCase()==\"VIDEO\"){if(!m.n)m.n=function(b,a,w){var c,f;if(m.autoTrack){c=b.currentSrc;(f=b.duration)||(f=-1);if(w<0)w=b.currentTime;m.O(c,f,a,w,b)}};b=function(){m.n(w,1,-1)};c=function(){m.n(w,1,-1)};m.i(w,\"play\",b);m.i(w,\"pause\",c);m.i(w,\"seeking\",c);m.i(w,\"seeked\",b);m.i(w,\"ended\",function(){m.n(w,0,-1)});m.i(w,\"timeupdate\",\r\nb);h=function(){!w.paused&&!w.ended&&!w.seeking&&m.n(w,3,-1);setTimeout(h,1E3)};h()}};m.i=function(m,b,c){m.attachEvent?m.attachEvent(\"on\"+b,c):m.addEventListener&&m.addEventListener(b,c,!1)};if(m.completeByCloseOffset==void 0)m.completeByCloseOffset=1;if(m.completeCloseOffsetThreshold==void 0)m.completeCloseOffsetThreshold=1;m.N=function(){var w,b;if(m.autoTrack&&(w=m.s.d.getElementsByTagName(\"VIDEO\")))for(b=0;b<w.length;b++)m.attach(w[b])};m.i(s,\"load\",m.N)}", "create () {\r\n // Send a create-job message to the native-app.\r\n openPort();\r\n return browser.storage.local.get({ props: {} }).then(result => {\r\n // Get a cookie jar for the job.\r\n return getCookieJarForVideo(this.props.videoUrl).then(cookieJar => {\r\n state.port.postMessage({\r\n topic: 'create-job',\r\n data: {\r\n jobId: this.id,\r\n // Merge the default props and the job props.\r\n props: Object.assign({ cookieJar }, result.props, this.props)\r\n }\r\n });\r\n \r\n // Flag this job as active.\r\n this.state = 'active';\r\n \r\n // Make the icon blue because a job is running.\r\n browser.browserAction.setIcon({\r\n path: 'icons/film-blue.svg'\r\n });\r\n });\r\n });\r\n }", "supportsPlatform() {\n return true;\n }", "function FileSystemService($http, $q, $log) {\n var _directory = LocalFileSystem.PERSISTENT;\n var _fs = null;\n var _that = this;\n\n this.isInitalized = false;\n\n function errorHandler(e) {\n var msg = '';\n\n switch (e.code) {\n case FileError.QUOTA_EXCEEDED_ERR:\n msg = 'QUOTA_EXCEEDED_ERR';\n break;\n case FileError.NOT_FOUND_ERR:\n msg = 'NOT_FOUND_ERR';\n break;\n case FileError.SECURITY_ERR:\n msg = 'SECURITY_ERR';\n break;\n case FileError.INVALID_MODIFICATION_ERR:\n msg = 'INVALID_MODIFICATION_ERR';\n break;\n case FileError.INVALID_STATE_ERR:\n msg = 'INVALID_STATE_ERR';\n break;\n default:\n msg = 'Unknown Error';\n break;\n };\n\n $log.error('FileSystemService: ' + msg);\n }\n\n // startup\n window.requestFileSystem(_directory, 0, function(fs){\n _fs = fs;\n _that.isInitalized = true;\n }, errorHandler);\n\n\n /**\n * Checks if file is in persistent storage\n */\n this.fileExists = function(filename) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n //var uri = _directory + \"/\" + filename;\n //return $http.get(uri);\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {}, function(fileEntry) {\n // Get a File object representing the file,\n // then use FileReader to read its contents.\n fileEntry.file(function(file) {\n var reader = new FileReader();\n\n reader.onloadend = function(e) {\n deferred.resolve(e.target.result);\n };\n\n reader.readAsDataURL(file);\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n\n /**\n * Get File from perstistent storage\n */\n this.getFile = function(filename) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n //var uri = _directory + \"/\" + filename;\n //return $http.get(uri);\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {}, function(fileEntry) {\n // Get a File object representing the file,\n // then use FileReader to read its contents.\n fileEntry.file(function(file) {\n var reader = new FileReader();\n\n reader.onloadend = function(e) {\n deferred.resolve(e.target.result);\n };\n\n reader.readAsDataURL(file);\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n\n /**\n * Save data into file (and create that if necessary).\n */\n this.saveFile = function(filename, data) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {create: true}, function(fileEntry) {\n // Create a FileWriter object for our FileEntry (log.txt).\n fileEntry.createWriter(function(fileWriter) {\n\n fileWriter.onwriteend = function(e) {\n $log.log('Write completed.');\n deferred.resolve();\n };\n\n fileWriter.onerror = function(e) {\n deferred.reject(e);\n $log.error('FileSystemService: write failed, ' + e.toString());\n };\n\n // Create a new Blob and write it to log.txt.\n var blob = new Blob([data], {type: 'text/plain'});\n\n fileWriter.write(blob);\n\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n}", "static initialize(app, changeLogService, deviceService, deviceFileService, deviceFileUploadService, file, httpService, localDBManagementService, localDbService, networkService, securityService) {\n if (this.initialized) {\n return;\n }\n deviceService.addStartUpService({\n serviceName: 'OfflineStartupService',\n start: () => {\n if (window['SQLitePlugin']) {\n localDBManagementService.setLogSQl((sessionStorage.getItem('wm.logSql') === 'true') || (sessionStorage.getItem('debugMode') === 'true'));\n window.logSql = (flag = true) => {\n localDBManagementService.setLogSQl(flag);\n sessionStorage.setItem('wm.logSql', flag ? 'true' : 'false');\n };\n window.executeLocalSql = (dbName, query, params) => {\n localDBManagementService.executeSQLQuery(dbName, query, params, true);\n };\n return localDBManagementService.loadDatabases().then(() => {\n changeLogService.addWorker(new IdResolver(localDBManagementService));\n changeLogService.addWorker(new ErrorBlocker(localDBManagementService));\n changeLogService.addWorker(new FileHandler());\n changeLogService.addWorker(new MultiPartParamTransformer(deviceFileService, localDBManagementService));\n new LiveVariableOfflineBehaviour(changeLogService, httpService, localDBManagementService, networkService, localDbService).add();\n new FileUploadOfflineBehaviour(changeLogService, deviceFileService, deviceFileUploadService, file, networkService, deviceFileService.getUploadDirectory()).add();\n new NamedQueryExecutionOfflineBehaviour(changeLogService, httpService, localDBManagementService, networkService).add();\n localDBManagementService.registerCallback(new UploadedFilesImportAndExportService(changeLogService, deviceFileService, localDBManagementService, file));\n changeLogService.addWorker({\n onAddCall: () => {\n if (!networkService.isConnected()) {\n networkService.disableAutoConnect();\n }\n },\n postFlush: stats => {\n if (stats.totalTaskCount > 0) {\n localDBManagementService.close()\n .catch(noop)\n .then(() => {\n location.assign(window.location.origin + window.location.pathname);\n });\n }\n }\n });\n });\n }\n return Promise.resolve();\n }\n });\n new SecurityOfflineBehaviour(app, file, deviceService, networkService, securityService).add();\n }", "constructor(){\n\t\t//console.log('API START');\n\t}", "get deviceServiceUUID() { return this._deviceServiceUUID ? this._deviceServiceUUID : 'FFE0'; }", "constructor () {\r\n\t\t\r\n\t}", "_sdkCompatibility() {\n // WebSocket\n // http://caniuse.com/#feat=websockets\n var canCreateWebSocket = 'WebSocket' in window;\n console.log('Native WebSocket capability: ' +\n canCreateWebSocket);\n\n if (!canCreateWebSocket) {\n throw new Error('No WebSocket capabilities');\n }\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x330b4067;\n this.SUBCLASS_OF_ID = 0xd3262a4a;\n\n this.phonecallsEnabled = args.phonecallsEnabled || null;\n this.defaultP2pContacts = args.defaultP2pContacts || null;\n this.preloadFeaturedStickers = args.preloadFeaturedStickers || null;\n this.ignorePhoneEntities = args.ignorePhoneEntities || null;\n this.revokePmInbox = args.revokePmInbox || null;\n this.blockedMode = args.blockedMode || null;\n this.pfsEnabled = args.pfsEnabled || null;\n this.date = args.date;\n this.expires = args.expires;\n this.testMode = args.testMode;\n this.thisDc = args.thisDc;\n this.dcOptions = args.dcOptions;\n this.dcTxtDomainName = args.dcTxtDomainName;\n this.chatSizeMax = args.chatSizeMax;\n this.megagroupSizeMax = args.megagroupSizeMax;\n this.forwardedCountMax = args.forwardedCountMax;\n this.onlineUpdatePeriodMs = args.onlineUpdatePeriodMs;\n this.offlineBlurTimeoutMs = args.offlineBlurTimeoutMs;\n this.offlineIdleTimeoutMs = args.offlineIdleTimeoutMs;\n this.onlineCloudTimeoutMs = args.onlineCloudTimeoutMs;\n this.notifyCloudDelayMs = args.notifyCloudDelayMs;\n this.notifyDefaultDelayMs = args.notifyDefaultDelayMs;\n this.pushChatPeriodMs = args.pushChatPeriodMs;\n this.pushChatLimit = args.pushChatLimit;\n this.savedGifsLimit = args.savedGifsLimit;\n this.editTimeLimit = args.editTimeLimit;\n this.revokeTimeLimit = args.revokeTimeLimit;\n this.revokePmTimeLimit = args.revokePmTimeLimit;\n this.ratingEDecay = args.ratingEDecay;\n this.stickersRecentLimit = args.stickersRecentLimit;\n this.stickersFavedLimit = args.stickersFavedLimit;\n this.channelsReadMediaPeriod = args.channelsReadMediaPeriod;\n this.tmpSessions = args.tmpSessions || null;\n this.pinnedDialogsCountMax = args.pinnedDialogsCountMax;\n this.pinnedInfolderCountMax = args.pinnedInfolderCountMax;\n this.callReceiveTimeoutMs = args.callReceiveTimeoutMs;\n this.callRingTimeoutMs = args.callRingTimeoutMs;\n this.callConnectTimeoutMs = args.callConnectTimeoutMs;\n this.callPacketTimeoutMs = args.callPacketTimeoutMs;\n this.meUrlPrefix = args.meUrlPrefix;\n this.autoupdateUrlPrefix = args.autoupdateUrlPrefix || null;\n this.gifSearchUsername = args.gifSearchUsername || null;\n this.venueSearchUsername = args.venueSearchUsername || null;\n this.imgSearchUsername = args.imgSearchUsername || null;\n this.staticMapsProvider = args.staticMapsProvider || null;\n this.captionLengthMax = args.captionLengthMax;\n this.messageLengthMax = args.messageLengthMax;\n this.webfileDcId = args.webfileDcId;\n this.suggestedLangCode = args.suggestedLangCode || null;\n this.langPackVersion = args.langPackVersion || null;\n this.baseLangPackVersion = args.baseLangPackVersion || null;\n }", "static _getName() {\n return 'ContentPlayback';\n }", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "start(callback){\n \n }", "onStartHeaders() {}", "async componentWillMount() {\n var _this = this\n _this.setUpUserDataFromFB()\n\n //ASK FOR CAMERA ONLT IF IS PREVIEW TRUE AND SHOWBARCODE TRUE\n if (Config.isPreview && Config.showBCScanner) {\n const { status } = await Permissions.askAsync(Permissions.CAMERA);\n this.setState({ hasCameraPermission: status === 'granted' });\n }\n\n\n\n AppEventEmitter.addListener('user.state.changes', this.alterUserState);\n if (Config.isTesterApp) {\n this.listenForUserAuth();\n } else if (Config.isPreview && !Config.isTesterApp) {\n //Load list of apps\n _this.retreiveAppDemos(\"apps\");\n }\n\n if (!Config.isPreview && !Config.isTesterApp) {\n\n //Load the data automatically, this is normal app and refister for Push notification\n this.registerForPushNotificationsAsync();\n Notifications.addListener(this._handleNotification);\n this.retreiveMeta();\n }\n\n\n await Font.loadAsync({\n //\"Material Icons\": require(\"@expo/vector-icons/fonts/MaterialIcons.ttf\"),\n //\"Ionicons\": require(\"@expo/vector-icons/fonts/Ionicons.ttf\"),\n // \"Feather\": require(\"@expo/vector-icons/fonts/Feather.ttf\"),\n 'open-sans': require('./assets/fonts/OpenSans-Regular.ttf'),\n 'lato-light': require('./assets/fonts/Lato-Light.ttf'),\n 'lato-regular': require('./assets/fonts/Lato-Regular.ttf'),\n 'lato-bold': require('./assets/fonts/Lato-Bold.ttf'),\n 'lato-black': require('./assets/fonts/Lato-Black.ttf'),\n 'roboto-medium': require('./assets/fonts/Roboto-Medium.ttf'),\n 'roboto-bold': require('./assets/fonts/Roboto-Bold.ttf'),\n 'roboto-light': require('./assets/fonts/Roboto-Light.ttf'),\n 'roboto-thin': require('./assets/fonts/Roboto-Thin.ttf'),\n\n });\n\n this.setState({ isReady: true, fontLoaded: true });\n }", "function writeHeader() {\n seekHead = createSeekHead();\n \n let\n ebmlHeader = {\n \"id\": 0x1a45dfa3, // EBML\n \"data\": [\n {\n \"id\": 0x4286, // EBMLVersion\n \"data\": 1\n },\n {\n \"id\": 0x42f7, // EBMLReadVersion\n \"data\": 1\n },\n {\n \"id\": 0x42f2, // EBMLMaxIDLength\n \"data\": 4\n },\n {\n \"id\": 0x42f3, // EBMLMaxSizeLength\n \"data\": 8\n },\n {\n \"id\": 0x4282, // DocType\n \"data\": \"webm\"\n },\n {\n \"id\": 0x4287, // DocTypeVersion\n \"data\": 2\n },\n {\n \"id\": 0x4285, // DocTypeReadVersion\n \"data\": 2\n }\n ]\n },\n \n segmentInfo = {\n \"id\": 0x1549a966, // Info\n \"data\": [\n {\n \"id\": 0x2ad7b1, // TimecodeScale\n \"data\": 1e6 // Times will be in miliseconds (1e6 nanoseconds per step = 1ms)\n },\n {\n \"id\": 0x4d80, // MuxingApp\n \"data\": \"webm-writer-js\",\n },\n {\n \"id\": 0x5741, // WritingApp\n \"data\": \"webm-writer-js\"\n },\n segmentDuration // To be filled in later\n ]\n },\n \n videoProperties = [\n {\n \"id\": 0xb0, // PixelWidth\n \"data\": videoWidth\n },\n {\n \"id\": 0xba, // PixelHeight\n \"data\": videoHeight\n }\n ];\n \n if (options.transparent) {\n videoProperties.push(\n {\n \"id\": 0x53C0, // AlphaMode\n \"data\": 1\n }\n );\n }\n \n let\n tracks = {\n \"id\": 0x1654ae6b, // Tracks\n \"data\": [\n {\n \"id\": 0xae, // TrackEntry\n \"data\": [\n {\n \"id\": 0xd7, // TrackNumber\n \"data\": DEFAULT_TRACK_NUMBER\n },\n {\n \"id\": 0x73c5, // TrackUID\n \"data\": DEFAULT_TRACK_NUMBER\n },\n {\n \"id\": 0x9c, // FlagLacing\n \"data\": 0\n },\n {\n \"id\": 0x22b59c, // Language\n \"data\": \"und\"\n },\n {\n \"id\": 0x86, // CodecID\n \"data\": \"V_VP8\"\n },\n {\n \"id\": 0x258688, // CodecName\n \"data\": \"VP8\"\n },\n {\n \"id\": 0x83, // TrackType\n \"data\": 1\n },\n {\n \"id\": 0xe0, // Video\n \"data\": videoProperties\n }\n ]\n }\n ]\n };\n \n ebmlSegment = {\n \"id\": 0x18538067, // Segment\n \"size\": -1, // Unbounded size\n \"data\": [\n seekHead,\n segmentInfo,\n tracks,\n ]\n };\n \n let\n bufferStream = new ArrayBufferDataStream(256);\n \n writeEBML(bufferStream, blobBuffer.pos, [ebmlHeader, ebmlSegment]);\n blobBuffer.write(bufferStream.getAsDataArray());\n \n // Now we know where these top-level elements lie in the file:\n seekPoints.SegmentInfo.positionEBML.data = fileOffsetToSegmentRelative(segmentInfo.offset);\n seekPoints.Tracks.positionEBML.data = fileOffsetToSegmentRelative(tracks.offset);\n \n\t writtenHeader = true;\n }", "function AppMeasurement(){var s=this;s.version=\"1.0.3\";var w=window;if(!w.s_c_in)w.s_c_il=[],w.s_c_in=0;s._il=w.s_c_il;s._in=w.s_c_in;s._il[s._in]=s;w.s_c_in++;s._c=\"s_c\";var n=w,g,k;try{g=n.parent;for(k=n.location;g&&g.location&&k&&\"\"+g.location!=\"\"+k&&n.location&&\"\"+g.location!=\"\"+n.location&&g.location.host==k.host;)n=g,g=n.parent}catch(o){}s.za=function(s){try{console.log(s)}catch(a){}};s.ba=function(s){return\"\"+parseInt(s)==\"\"+s};s.replace=function(s,a,c){if(!s||s.indexOf(a)<0)return s;return s.split(a).join(c)};\r\ns.escape=function(b){var a,c;if(!b)return b;b=encodeURIComponent(b);for(a=0;a<7;a++)c=\"+~!*()'\".substring(a,a+1),b.indexOf(c)>=0&&(b=s.replace(b,c,\"%\"+c.charCodeAt(0).toString(16).toUpperCase()));return b};s.unescape=function(b){if(!b)return b;b=b.indexOf(\"+\")>=0?s.replace(b,\"+\",\" \"):b;try{return decodeURIComponent(b)}catch(a){}return unescape(b)};s.pa=function(){var b=w.location.hostname,a=s.fpCookieDomainPeriods,c;if(!a)a=s.cookieDomainPeriods;if(b&&!s.U&&!/^[0-9.]+$/.test(b)&&(a=a?parseInt(a):\r\n2,a=a>2?a:2,c=b.lastIndexOf(\".\"),c>=0)){for(;c>=0&&a>1;)c=b.lastIndexOf(\".\",c-1),a--;s.U=c>0?b.substring(c):b}return s.U};s.c_r=s.cookieRead=function(b){b=s.escape(b);var a=\" \"+s.d.cookie,c=a.indexOf(\" \"+b+\"=\"),e=c<0?c:a.indexOf(\";\",c);b=c<0?\"\":s.unescape(a.substring(c+2+b.length,e<0?a.length:e));return b!=\"[[B]]\"?b:\"\"};s.c_w=s.cookieWrite=function(b,a,c){var e=s.pa(),d=s.cookieLifetime,f;a=\"\"+a;d=d?(\"\"+d).toUpperCase():\"\";c&&d!=\"SESSION\"&&d!=\"NONE\"&&((f=a!=\"\"?parseInt(d?d:0):-60)?(c=new Date,c.setTime(c.getTime()+\r\nf*1E3)):c==1&&(c=new Date,f=c.getYear(),c.setYear(f+5+(f<1900?1900:0))));if(b&&d!=\"NONE\")return s.d.cookie=b+\"=\"+s.escape(a!=\"\"?a:\"[[B]]\")+\"; path=/;\"+(c&&d!=\"SESSION\"?\" expires=\"+c.toGMTString()+\";\":\"\")+(e?\" domain=\"+e+\";\":\"\"),s.cookieRead(b)==a;return 0};s.v=[];s.V=function(b,a){if(s.W)return 0;if(!s.maxDelay)s.maxDelay=250;var c=0,e=(new Date).getTime()+s.maxDelay,d=s.d.Ma,f=[\"webkitvisibilitychange\",\"visibilitychange\"];if(!d)d=s.d.Na;if(d&&d==\"prerender\"){if(!s.G){s.G=1;for(c=0;c<f.length;c++)s.d.addEventListener(f[c],\r\nfunction(){var b=s.d.Ma;if(!b)b=s.d.Na;if(b==\"visible\")s.G=0,s.delayReady()})}c=1;e=0}else s.u(\"_d\")&&(c=1);c&&(s.v.push({m:b,a:a,t:e}),s.G||setTimeout(s.delayReady,s.maxDelay));return c};s.delayReady=function(){var b=(new Date).getTime(),a=0,c;for(s.u(\"_d\")&&(a=1);s.v.length>0;){c=s.v.shift();if(a&&!c.t&&c.t>b){s.v.unshift(c);setTimeout(s.delayReady,parseInt(s.maxDelay/2));break}s.W=1;s[c.m].apply(s,c.a);s.W=0}};s.setAccount=s.sa=function(b){var a,c;if(!s.V(\"setAccount\",arguments))if(s.account=b,\r\ns.allAccounts){a=s.allAccounts.concat(b.split(\",\"));s.allAccounts=[];a.sort();for(c=0;c<a.length;c++)(c==0||a[c-1]!=a[c])&&s.allAccounts.push(a[c])}else s.allAccounts=b.split(\",\")};s.P=function(b,a,c,e,d){var f=\"\",i,j,w,q,g=0;b==\"contextData\"&&(b=\"c\");if(a){for(i in a)if(!Object.prototype[i]&&(!d||i.substring(0,d.length)==d)&&a[i]&&(!c||c.indexOf(\",\"+(e?e+\".\":\"\")+i+\",\")>=0)){w=!1;if(g)for(j=0;j<g.length;j++)i.substring(0,g[j].length)==g[j]&&(w=!0);if(!w&&(f==\"\"&&(f+=\"&\"+b+\".\"),j=a[i],d&&(i=i.substring(d.length)),\r\ni.length>0))if(w=i.indexOf(\".\"),w>0)j=i.substring(0,w),w=(d?d:\"\")+j+\".\",g||(g=[]),g.push(w),f+=s.P(j,a,c,e,w);else if(typeof j==\"boolean\"&&(j=j?\"true\":\"false\"),j){if(e==\"retrieveLightData\"&&d.indexOf(\".contextData.\")<0)switch(w=i.substring(0,4),q=i.substring(4),i){case \"transactionID\":i=\"xact\";break;case \"channel\":i=\"ch\";break;case \"campaign\":i=\"v0\";break;default:s.ba(q)&&(w==\"prop\"?i=\"c\"+q:w==\"eVar\"?i=\"v\"+q:w==\"list\"?i=\"l\"+q:w==\"hier\"&&(i=\"h\"+q,j=j.substring(0,255)))}f+=\"&\"+s.escape(i)+\"=\"+s.escape(j)}}f!=\r\n\"\"&&(f+=\"&.\"+b)}return f};s.ra=function(){var b=\"\",a,c,e,d,f,i,j,w,g=\"\",n=\"\",k=c=\"\";if(s.lightProfileID)a=s.J,(g=s.lightTrackVars)&&(g=\",\"+g+\",\"+s.ea.join(\",\")+\",\");else{a=s.e;if(s.pe||s.linkType)if(g=s.linkTrackVars,n=s.linkTrackEvents,s.pe&&(c=s.pe.substring(0,1).toUpperCase()+s.pe.substring(1),s[c]))g=s[c].Va,n=s[c].Ua;g&&(g=\",\"+g+\",\"+s.C.join(\",\")+\",\");n&&(n=\",\"+n+\",\",g&&(g+=\",events,\"));s.events2&&(k+=(k!=\"\"?\",\":\"\")+s.events2)}for(c=0;c<a.length;c++){d=a[c];f=s[d];e=d.substring(0,4);i=d.substring(4);\r\n!f&&d==\"events\"&&k&&(f=k,k=\"\");if(f&&(!g||g.indexOf(\",\"+d+\",\")>=0)){switch(d){case \"timestamp\":d=\"ts\";break;case \"dynamicVariablePrefix\":d=\"D\";break;case \"visitorID\":d=\"vid\";break;case \"pageURL\":d=\"g\";if(f.length>255)s.pageURLRest=f.substring(255),f=f.substring(0,255);break;case \"pageURLRest\":d=\"-g\";break;case \"referrer\":d=\"r\";break;case \"vmk\":case \"visitorMigrationKey\":d=\"vmt\";break;case \"visitorMigrationServer\":d=\"vmf\";s.ssl&&s.visitorMigrationServerSecure&&(f=\"\");break;case \"visitorMigrationServerSecure\":d=\r\n\"vmf\";!s.ssl&&s.visitorMigrationServer&&(f=\"\");break;case \"charSet\":d=\"ce\";break;case \"visitorNamespace\":d=\"ns\";break;case \"cookieDomainPeriods\":d=\"cdp\";break;case \"cookieLifetime\":d=\"cl\";break;case \"variableProvider\":d=\"vvp\";break;case \"currencyCode\":d=\"cc\";break;case \"channel\":d=\"ch\";break;case \"transactionID\":d=\"xact\";break;case \"campaign\":d=\"v0\";break;case \"resolution\":d=\"s\";break;case \"colorDepth\":d=\"c\";break;case \"javascriptVersion\":d=\"j\";break;case \"javaEnabled\":d=\"v\";break;case \"cookiesEnabled\":d=\r\n\"k\";break;case \"browserWidth\":d=\"bw\";break;case \"browserHeight\":d=\"bh\";break;case \"connectionType\":d=\"ct\";break;case \"homepage\":d=\"hp\";break;case \"plugins\":d=\"p\";break;case \"events\":k&&(f+=(f!=\"\"?\",\":\"\")+k);if(n){i=f.split(\",\");f=\"\";for(e=0;e<i.length;e++)j=i[e],w=j.indexOf(\"=\"),w>=0&&(j=j.substring(0,w)),w=j.indexOf(\":\"),w>=0&&(j=j.substring(0,w)),n.indexOf(\",\"+j+\",\")>=0&&(f+=(f?\",\":\"\")+i[e])}break;case \"events2\":f=\"\";break;case \"contextData\":b+=s.P(\"c\",s[d],g,d);f=\"\";break;case \"lightProfileID\":d=\r\n\"mtp\";break;case \"lightStoreForSeconds\":d=\"mtss\";s.lightProfileID||(f=\"\");break;case \"lightIncrementBy\":d=\"mti\";s.lightProfileID||(f=\"\");break;case \"retrieveLightProfiles\":d=\"mtsr\";break;case \"deleteLightProfiles\":d=\"mtsd\";break;case \"retrieveLightData\":s.retrieveLightProfiles&&(b+=s.P(\"mts\",s[d],g,d));f=\"\";break;default:s.ba(i)&&(e==\"prop\"?d=\"c\"+i:e==\"eVar\"?d=\"v\"+i:e==\"list\"?d=\"l\"+i:e==\"hier\"&&(d=\"h\"+i,f=f.substring(0,255)))}f&&(b+=\"&\"+d+\"=\"+(d.substring(0,3)!=\"pev\"?s.escape(f):f))}d==\"pev3\"&&s.g&&\r\n(b+=s.g)}return b};s.p=function(s){var a=s.tagName;if(\"\"+s.Ta!=\"undefined\"||\"\"+s.Ea!=\"undefined\"&&(\"\"+s.Ea).toUpperCase()!=\"HTML\")return\"\";a=a&&a.toUpperCase?a.toUpperCase():\"\";a==\"SHAPE\"&&(a=\"\");a&&((a==\"INPUT\"||a==\"BUTTON\")&&s.type&&s.type.toUpperCase?a=s.type.toUpperCase():!a&&s.href&&(a=\"A\"));return a};s.Y=function(s){var a=s.href?s.href:\"\",c,e,d;c=a.indexOf(\":\");e=a.indexOf(\"?\");d=a.indexOf(\"/\");if(a&&(c<0||e>=0&&c>e||d>=0&&c>d))e=s.protocol&&s.protocol.length>1?s.protocol:l.protocol?l.protocol:\r\n\"\",c=l.pathname.lastIndexOf(\"/\"),a=(e?e+\"//\":\"\")+(s.host?s.host:l.host?l.host:\"\")+(h.substring(0,1)!=\"/\"?l.pathname.substring(0,c<0?0:c)+\"/\":\"\")+a;return a};s.z=function(b){var a=s.p(b),c,e,d=\"\",f=0;if(a){c=b.protocol;e=b.onclick;if(b.href&&(a==\"A\"||a==\"AREA\")&&(!e||!c||c.toLowerCase().indexOf(\"javascript\")<0))d=s.Y(b);else if(e)d=s.replace(s.replace(s.replace(s.replace(\"\"+e,\"\\r\",\"\"),\"\\n\",\"\"),\"\\t\",\"\"),\" \",\"\"),f=2;else if(a==\"INPUT\"||a==\"SUBMIT\"){if(b.value)d=b.value;else if(b.innerText)d=b.innerText;\r\nelse if(b.textContent)d=b.textContent;f=3}else if(b.src&&a==\"IMAGE\")d=b.src;if(d)return{id:d.substring(0,100),type:f}}return 0};s.Qa=function(b){for(var a=s.p(b),c=s.z(b);b&&!c&&a!=\"BODY\";)if(b=b.parentElement?b.parentElement:b.parentNode)a=s.p(b),c=s.z(b);if(!c||a==\"BODY\")b=0;if(b&&(a=b.onclick?\"\"+b.onclick:\"\",a.indexOf(\".tl(\")>=0||a.indexOf(\".trackLink(\")>=0))b=0;return b};s.Ca=function(){var b,a,c=s.linkObject,e=s.linkType,d=s.linkURL,f,i;s.K=1;if(!c)s.K=0,c=s.j;if(c){b=s.p(c);for(a=s.z(c);c&&\r\n!a&&b!=\"BODY\";)if(c=c.parentElement?c.parentElement:c.parentNode)b=s.p(c),a=s.z(c);if(!a||b==\"BODY\")c=0;if(c){var j=c.onclick?\"\"+c.onclick:\"\";if(j.indexOf(\".tl(\")>=0||j.indexOf(\".trackLink(\")>=0)c=0}}else s.K=1;!d&&c&&(d=s.Y(c));d&&!s.linkLeaveQueryString&&(f=d.indexOf(\"?\"),f>=0&&(d=d.substring(0,f)));if(!e&&d){var g=0,n=0,k;if(s.trackDownloadLinks&&s.linkDownloadFileTypes){j=d.toLowerCase();f=j.indexOf(\"?\");i=j.indexOf(\"#\");f>=0?i>=0&&i<f&&(f=i):f=i;f>=0&&(j=j.substring(0,f));f=s.linkDownloadFileTypes.toLowerCase().split(\",\");\r\nfor(i=0;i<f.length;i++)(k=f[i])&&j.substring(j.length-(k.length+1))==\".\"+k&&(e=\"d\")}if(s.trackExternalLinks&&!e&&(j=d.toLowerCase(),s.aa(j))){if(!s.linkInternalFilters)s.linkInternalFilters=w.location.hostname;f=0;s.linkExternalFilters?(f=s.linkExternalFilters.toLowerCase().split(\",\"),g=1):s.linkInternalFilters&&(f=s.linkInternalFilters.toLowerCase().split(\",\"));if(f){for(i=0;i<f.length;i++)k=f[i],j.indexOf(k)>=0&&(n=1);n?g&&(e=\"e\"):g||(e=\"e\")}}}s.linkObject=c;s.linkURL=d;s.linkType=e;if(s.trackClickMap||\r\ns.trackInlineStats)if(s.g=\"\",c){e=s.pageName;d=1;c=c.sourceIndex;if(!e)e=s.pageURL,d=0;if(w.s_objectID)a.id=w.s_objectID,c=a.type=1;if(e&&a&&a.id&&b)s.g=\"&pid=\"+s.escape(e.substring(0,255))+(d?\"&pidt=\"+d:\"\")+\"&oid=\"+s.escape(a.id.substring(0,100))+(a.type?\"&oidt=\"+a.type:\"\")+\"&ot=\"+b+(c?\"&oi=\"+c:\"\")}};s.ta=function(){var b=s.K,a=s.linkType,c=s.linkURL,e=s.linkName;if(a&&(c||e))a=a.toLowerCase(),a!=\"d\"&&a!=\"e\"&&(a=\"o\"),s.pe=\"lnk_\"+a,s.pev1=c?s.escape(c):\"\",s.pev2=e?s.escape(e):\"\",b=1;s.abort&&(b=0);\r\nif(s.trackClickMap||s.trackInlineStats){a={};c=0;var d=s.cookieRead(\"s_sq\"),f=d?d.split(\"&\"):0,i,j,w;d=0;if(f)for(i=0;i<f.length;i++)j=f[i].split(\"=\"),e=s.unescape(j[0]).split(\",\"),j=s.unescape(j[1]),a[j]=e;e=s.account.split(\",\");if(b||s.g){b&&!s.g&&(d=1);for(j in a)if(!Object.prototype[j])for(i=0;i<e.length;i++){d&&(w=a[j].join(\",\"),w==s.account&&(s.g+=(j.charAt(0)!=\"&\"?\"&\":\"\")+j,a[j]=[],c=1));for(f=0;f<a[j].length;f++)w=a[j][f],w==e[i]&&(d&&(s.g+=\"&u=\"+s.escape(w)+(j.charAt(0)!=\"&\"?\"&\":\"\")+j+\"&u=0\"),\r\na[j].splice(f,1),c=1)}b||(c=1);if(c){d=\"\";i=2;!b&&s.g&&(d=s.escape(e.join(\",\"))+\"=\"+s.escape(s.g),i=1);for(j in a)!Object.prototype[j]&&i>0&&a[j].length>0&&(d+=(d?\"&\":\"\")+s.escape(a[j].join(\",\"))+\"=\"+s.escape(j),i--);s.cookieWrite(\"s_sq\",d)}}}return b};s.ua=function(){if(!s.Ka){var b=new Date,a=n.location,c,e,d,f=d=e=c=\"\",i=\"\",w=\"\",g=\"1.2\",k=s.cookieWrite(\"s_cc\",\"true\",0)?\"Y\":\"N\",o=\"\",p=\"\",r=0;if(b.setUTCDate&&(g=\"1.3\",r.toPrecision&&(g=\"1.5\",c=[],c.forEach))){g=\"1.6\";d=0;e={};try{d=new Iterator(e),\r\nd.next&&(g=\"1.7\",c.reduce&&(g=\"1.8\",g.trim&&(g=\"1.8.1\",Date.parse&&(g=\"1.8.2\",Object.create&&(g=\"1.8.5\")))))}catch(t){}}c=screen.width+\"x\"+screen.height;d=navigator.javaEnabled()?\"Y\":\"N\";e=screen.pixelDepth?screen.pixelDepth:screen.colorDepth;i=s.w.innerWidth?s.w.innerWidth:s.d.documentElement.offsetWidth;w=s.w.innerHeight?s.w.innerHeight:s.d.documentElement.offsetHeight;b=navigator.plugins;try{s.b.addBehavior(\"#default#homePage\"),o=s.b.Ra(a)?\"Y\":\"N\"}catch(u){}try{s.b.addBehavior(\"#default#clientCaps\"),\r\np=s.b.connectionType}catch(x){}if(b)for(;r<b.length&&r<30;){if(a=b[r].name)a=a.substring(0,100)+\";\",f.indexOf(a)<0&&(f+=a);r++}s.resolution=c;s.colorDepth=e;s.javascriptVersion=g;s.javaEnabled=d;s.cookiesEnabled=k;s.browserWidth=i;s.browserHeight=w;s.connectionType=p;s.homepage=o;s.plugins=f;s.Ka=1}};s.B={};s.loadModule=function(b,a){s.B[b]||(s[b]=w[\"AppMeasurement_Module_\"+b]?new w[\"AppMeasurement_Module_\"+b](s):{},s.B[b]=s[b]);a&&(s[b+\"_onLoad\"]=a,delayCall(b+\"_onLoad\",[s,m],1)||a(s,m))};s.u=function(b){var a,\r\nc;for(a in s.B)if(!Object.prototype[a]&&(c=s.B[a])&&c[b]&&c[b]())return 1;return 0};s.xa=function(){var b=Math.floor(Math.random()*1E13),a=s.visitorSampling,c=s.visitorSamplingGroup;c=\"s_vsn_\"+(s.visitorNamespace?s.visitorNamespace:s.account)+(c?\"_\"+c:\"\");var e=s.cookieRead(c);if(a){e&&(e=parseInt(e));if(!e){if(!s.cookieWrite(c,b))return 0;e=b}if(e%1E4>v)return 0}return 1};s.Q=function(b,a){var c,e,d,f,i,w;for(c=0;c<2;c++){e=c>0?s.R:s.e;for(d=0;d<e.length;d++)if(f=e[d],(i=b[f])||b[\"!\"+f]){if(!a&&\r\n(f==\"contextData\"||f==\"retrieveLightData\")&&s[f])for(w in s[f])i[w]||(i[w]=s[f][w]);s[f]=i}}};s.La=function(b){var a,c,e,d;for(a=0;a<2;a++){c=a>0?s.R:s.e;for(e=0;e<c.length;e++)d=c[e],b[d]=s[d],b[d]||(b[\"!\"+d]=1)}};s.oa=function(s){var a,c,e,d,f,w=0,g,n=\"\",k=\"\";if(s&&s.length>255&&(a=\"\"+s,c=a.indexOf(\"?\"),c>0&&(g=a.substring(c+1),a=a.substring(0,c),d=a.toLowerCase(),e=0,d.substring(0,7)==\"http://\"?e+=7:d.substring(0,8)==\"https://\"&&(e+=8),c=d.indexOf(\"/\",e),c>0&&(d=d.substring(e,c),f=a.substring(c),\r\na=a.substring(0,c),d.indexOf(\"google\")>=0?w=\",q,ie,start,search_key,word,kw,cd,\":d.indexOf(\"yahoo.co\")>=0&&(w=\",p,ei,\"),w&&g)))){if((s=g.split(\"&\"))&&s.length>1){for(e=0;e<s.length;e++)d=s[e],c=d.indexOf(\"=\"),c>0&&w.indexOf(\",\"+d.substring(0,c)+\",\")>=0?n+=(n?\"&\":\"\")+d:k+=(k?\"&\":\"\")+d;n&&k?g=n+\"&\"+k:k=\"\"}c=253-(g.length-k.length)-a.length;s=a+(c>0?f.substring(0,c):\"\")+\"?\"+g}return s};s.qa=function(){var b=s.cookieRead(\"s_fid\"),a=\"\",c=\"\",e;e=8;var d=4;if(!b||b.indexOf(\"-\")<0){for(b=0;b<16;b++)e=Math.floor(Math.random()*\r\ne),a+=\"0123456789ABCDEF\".substring(e,e+1),e=Math.floor(Math.random()*d),c+=\"0123456789ABCDEF\".substring(e,e+1),e=d=16;b=a+\"-\"+c}s.cookieWrite(\"s_fid\",b,1)||(b=0);return b};s.t=s.track=function(b){var a,c=new Date,e=\"s\"+Math.floor(c.getTime()/108E5)%10+Math.floor(Math.random()*1E13),d=c.getYear();d=\"t=\"+s.escape(c.getDate()+\"/\"+c.getMonth()+\"/\"+(d<1900?d+1900:d)+\" \"+c.getHours()+\":\"+c.getMinutes()+\":\"+c.getSeconds()+\" \"+c.getDay()+\" \"+c.getTimezoneOffset());if(!s.V(\"track\",arguments)){b&&(a={},s.La(a),\r\ns.Q(b));if(s.xa()&&(s.fid=s.qa(),s.Ca(),s.usePlugins&&s.doPlugins&&s.doPlugins(s),s.account)){if(!s.abort){if(s.trackOffline&&!s.timestamp)s.timestamp=Math.floor(c.getTime()/1E3);c=w.location;if(!s.pageURL)s.pageURL=c.href?c.href:c;if(!s.referrer&&!s.ia)s.referrer=n.document.referrer,s.ia=1;s.referrer=s.oa(s.referrer);s.u(\"_g\")}s.ta()&&!s.abort&&(s.ua(),d+=s.ra(),s.Ba(e,d));s.abort||s.u(\"_t\")}b&&s.Q(a,1);s.timestamp=s.linkObject=s.j=s.linkURL=s.linkName=s.linkType=w.Sa=s.pe=s.pev1=s.pev2=s.pev3=s.g=\r\n0}};s.tl=s.trackLink=function(b,a,c,e,d){s.linkObject=b;s.linkType=a;s.linkName=c;if(d)s.i=b,s.l=d;return s.track(e)};s.trackLight=function(b,a,c,e){s.lightProfileID=b;s.lightStoreForSeconds=a;s.lightIncrementBy=c;return s.track(e)};s.clearVars=function(){var b,a;for(b=0;b<s.e.length;b++)if(a=s.e[b],a.substring(0,4)==\"prop\"||a.substring(0,4)==\"eVar\"||a.substring(0,4)==\"hier\"||a.substring(0,4)==\"list\"||a==\"channel\"||a==\"events\"||a==\"eventList\"||a==\"products\"||a==\"productList\"||a==\"purchaseID\"||a==\r\n\"transactionID\"||a==\"state\"||a==\"zip\"||a==\"campaign\")s[a]=void 0};s.Ba=function(b,a){var c,e=s.trackingServer;c=\"\";var d=s.dc,f=\"sc.\",w=s.visitorNamespace;if(e){if(s.trackingServerSecure&&s.ssl)e=s.trackingServerSecure}else{if(!w)w=s.account,e=w.indexOf(\",\"),e>=0&&(w=w.Oa(0,e)),w=w.replace(/[^A-Za-z0-9]/g,\"\");c||(c=\"2o7.net\");d=d?(\"\"+d).toLowerCase():\"d1\";c==\"2o7.net\"&&(d==\"d1\"?d=\"112\":d==\"d2\"&&(d=\"122\"),f=\"\");e=w+\".\"+d+\".\"+f+c}c=s.ssl?\"https://\":\"http://\";c+=e+\"/b/ss/\"+s.account+\"/\"+(s.mobile?\"5.\":\r\n\"\")+\"1/JS-\"+s.version+(s.Ja?\"T\":\"\")+\"/\"+b+\"?AQB=1&ndh=1&\"+a+\"&AQE=1\";s.wa&&(c=c.substring(0,2047));s.ma(c);s.H()};s.ma=function(b){s.c||s.va();s.c.push(b);s.I=s.o();s.ha()};s.va=function(){s.c=s.ya();if(!s.c)s.c=[]};s.ya=function(){var b,a;if(s.M()){try{(a=w.localStorage.getItem(s.L()))&&(b=w.JSON.parse(a))}catch(c){}return b}};s.M=function(){var b=!0;if(!s.trackOffline||!s.offlineFilename||!w.localStorage||!w.JSON)b=!1;return b};s.Z=function(){var b=0;if(s.c)b=s.c.length;s.q&&b++;return b};s.H=function(){if(!s.q)if(s.$=\r\nnull,s.fa)s.I>s.A&&s.ga(s.c),s.O(500);else{var b=s.ja();if(b>0)s.O(b);else if(b=s.X())s.q=1,s.Aa(b),s.Fa(b)}};s.O=function(b){if(!s.$)b||(b=0),s.$=setTimeout(s.H,b)};s.ja=function(){var b;if(!s.trackOffline||s.offlineThrottleDelay<=0)return 0;b=s.o()-s.da;if(s.offlineThrottleDelay<b)return 0;return s.offlineThrottleDelay-b};s.X=function(){if(s.c.length>0)return s.c.shift()};s.Aa=function(b){if(s.debugTracking){var a=\"AppMeasurement Debug: \"+b;b=b.split(\"&\");var c;for(c=0;c<b.length;c++)a+=\"\\n\\t\"+\r\ns.unescape(b[c]);s.za(a)}};s.Fa=function(b){var a;a||(a=new Image);a.T=function(){try{if(s.N)clearTimeout(s.N),s.N=0;if(a.timeout)clearTimeout(a.timeout),a.timeout=0}catch(b){}};a.onload=a.Ia=function(){a.T();s.la();s.D();s.q=0;s.H()};a.onabort=a.onerror=a.na=function(){a.T();s.q&&s.c.unshift(s.ka);s.q=0;s.I>s.A&&s.ga(s.c);s.D();s.O(500)};a.onreadystatechange=function(){a.readyState==4&&(a.status==200?a.Ia():a.na())};s.da=s.o();a.src=b;if(a.abort)s.N=setTimeout(a.abort,5E3);s.ka=b;s.Pa=w[\"s_i_\"+s.replace(s.account,\r\n\",\",\"_\")]=a;if(s.useForcedLinkTracking&&s.r||s.l){if(!s.forcedLinkTrackingTimeout)s.forcedLinkTrackingTimeout=250;s.F=setTimeout(s.D,s.forcedLinkTrackingTimeout)}};s.la=function(){if(s.M()&&!(s.ca>s.A))try{w.localStorage.removeItem(s.L()),s.ca=s.o()}catch(b){}};s.ga=function(b){if(s.M()){s.ha();try{w.localStorage.setItem(s.L(),w.JSON.stringify(b)),s.A=s.o()}catch(a){}}};s.ha=function(){if(s.trackOffline){if(!s.offlineLimit||s.offlineLimit<=0)s.offlineLimit=10;for(;s.c.length>s.offlineLimit;)s.X()}};\r\ns.forceOffline=function(){s.fa=!0};s.forceOnline=function(){s.fa=!1};s.L=function(){return s.offlineFilename+\"-\"+s.visitorNamespace+s.account};s.o=function(){return(new Date).getTime()};s.aa=function(s){s=s.toLowerCase();if(s.indexOf(\"#\")!=0&&s.indexOf(\"about:\")!=0&&s.indexOf(\"javascript:\")!=0)return!0;return!1};s.setTagContainer=function(b){var a,c,e;s.Ja=b;for(a=0;a<s._il.length;a++)if((c=s._il[a])&&c._c==\"s_l\"&&c.tagContainerName==b){s.Q(c);if(c.lmq)for(a=0;a<c.lmq.length;a++)e=c.lmq[a],s.loadModule(e.n);\r\nif(c.ml)for(e in c.ml)if(s[e])for(a in b=s[e],e=c.ml[e],e)if(!Object.prototype[a]&&(typeof e[a]!=\"function\"||(\"\"+e[a]).indexOf(\"s_c_il\")<0))b[a]=e[a];if(c.mmq)for(a=0;a<c.mmq.length;a++)e=c.mmq[a],s[e.m]&&(b=s[e.m],b[e.f]&&typeof b[e.f]==\"function\"&&(e.a?b[e.f].apply(b,e.a):b[e.f].apply(b)));if(c.tq)for(a=0;a<c.tq.length;a++)s.track(c.tq[a]);c.s=s;break}};s.Util={urlEncode:s.escape,urlDecode:s.unescape,cookieRead:s.cookieRead,cookieWrite:s.cookieWrite,getQueryParam:function(b,a,c){var e;a||(a=s.pageURL?\r\ns.pageURL:w.location);c||(c=\"&\");if(b&&a&&(a=\"\"+a,e=a.indexOf(\"?\"),e>=0&&(a=c+a.substring(e+1)+c,e=a.indexOf(c+b+\"=\"),e>=0&&(a=a.substring(e+c.length+b.length+1),e=a.indexOf(c),e>=0&&(a=a.substring(0,e)),a.length>0))))return s.unescape(a);return\"\"}};s.C=[\"timestamp\",\"dynamicVariablePrefix\",\"visitorID\",\"anonymousVisitorID\",\"globalVisitorID\",\"globalLocationHint\",\"fid\",\"vmk\",\"visitorMigrationKey\",\"visitorMigrationServer\",\"visitorMigrationServerSecure\",\"charSet\",\"visitorNamespace\",\"cookieDomainPeriods\",\r\n\"fpCookieDomainPeriods\",\"cookieLifetime\",\"pageName\",\"pageURL\",\"referrer\",\"contextData\",\"currencyCode\",\"lightProfileID\",\"lightStoreForSeconds\",\"lightIncrementBy\",\"retrieveLightProfiles\",\"deleteLightProfiles\",\"retrieveLightData\",\"pe\",\"pev1\",\"pev2\",\"pev3\",\"pageURLRest\"];s.e=s.C.concat([\"purchaseID\",\"variableProvider\",\"channel\",\"server\",\"pageType\",\"transactionID\",\"campaign\",\"state\",\"zip\",\"events\",\"events2\",\"products\",\"tnt\"]);s.ea=[\"timestamp\",\"charSet\",\"visitorNamespace\",\"cookieDomainPeriods\",\"cookieLifetime\",\r\n\"contextData\",\"lightProfileID\",\"lightStoreForSeconds\",\"lightIncrementBy\"];s.J=s.ea.slice(0);s.R=[\"account\",\"allAccounts\",\"debugTracking\",\"visitor\",\"trackOffline\",\"offlineLimit\",\"offlineThrottleDelay\",\"offlineFilename\",\"usePlugins\",\"doPlugins\",\"configURL\",\"visitorSampling\",\"s.visitorSamplingGroup\",\"linkObject\",\"linkURL\",\"linkName\",\"linkType\",\"trackDownloadLinks\",\"trackExternalLinks\",\"trackClickMap\",\"trackInlineStats\",\"linkLeaveQueryString\",\"linkTrackVars\",\"linkTrackEvents\",\"linkDownloadFileTypes\",\r\n\"linkExternalFilters\",\"linkInternalFilters\",\"useForcedLinkTracking\",\"forcedLinkTrackingTimeout\",\"trackingServer\",\"trackingServerSecure\",\"ssl\",\"abort\",\"mobile\",\"dc\",\"lightTrackVars\",\"maxDelay\"];for(g=0;g<=75;g++)s.e.push(\"prop\"+g),s.J.push(\"prop\"+g),s.e.push(\"eVar\"+g),s.J.push(\"eVar\"+g),g<6&&s.e.push(\"hier\"+g),g<4&&s.e.push(\"list\"+g);g=[\"resolution\",\"colorDepth\",\"javascriptVersion\",\"javaEnabled\",\"cookiesEnabled\",\"browserWidth\",\"browserHeight\",\"connectionType\",\"homepage\",\"plugins\"];s.e=s.e.concat(g);\r\ns.C=s.C.concat(g);s.ssl=w.location.protocol.toLowerCase().indexOf(\"https\")>=0;s.charSet=\"UTF-8\";s.contextData={};s.offlineThrottleDelay=0;s.offlineFilename=\"AppMeasurement.offline\";s.da=0;s.I=0;s.A=0;s.ca=0;s.linkDownloadFileTypes=\"exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx\";s.w=w;s.d=w.document;try{s.wa=navigator.appName==\"Microsoft Internet Explorer\"}catch(p){}s.D=function(){if(s.F)w.clearTimeout(s.F),s.F=null;s.i&&s.r&&s.i.dispatchEvent(s.r);if(s.l)if(typeof s.l==\"function\")s.l();\r\nelse if(s.i&&s.i.href)s.d.location=s.i.href;s.i=s.r=s.l=0};s.Ga=function(){s.b=s.d.body;if(s.b)if(s.k=function(b){var a,c,e,d,f;if(!(s.d&&s.d.getElementById(\"cppXYctnr\")||b&&b.Da)){if(s.S)if(s.useForcedLinkTracking)s.b.removeEventListener(\"click\",s.k,!1);else{s.b.removeEventListener(\"click\",s.k,!0);s.S=s.useForcedLinkTracking=0;return}else s.useForcedLinkTracking=0;s.j=b.srcElement?b.srcElement:b.target;try{if(s.j&&(s.j.tagName||s.j.parentElement||s.j.parentNode))if(e=s.Z(),s.track(),e<s.Z()&&s.useForcedLinkTracking&&\r\nb.target){for(d=b.target;d&&d!=s.b&&d.tagName.toUpperCase()!=\"A\"&&d.tagName.toUpperCase()!=\"AREA\";)d=d.parentNode;if(d&&(f=d.href,s.aa(f)||(f=0),c=d.target,b.target.dispatchEvent&&f&&(!c||c==\"_self\"||c==\"_top\"||c==\"_parent\"||w.name&&c==w.name))){try{a=s.d.createEvent(\"MouseEvents\")}catch(g){a=new w.MouseEvent}if(a){try{a.initMouseEvent(\"click\",b.bubbles,b.cancelable,b.view,b.detail,b.screenX,b.screenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget)}catch(j){a=\r\n0}if(a)a.Da=1,b.stopPropagation(),b.Ha&&b.Ha(),b.preventDefault(),s.i=b.target,s.r=a}}}}catch(k){}s.j=0}},s.b&&s.b.attachEvent)s.b.attachEvent(\"onclick\",s.k);else{if(s.b&&s.b.addEventListener){if(navigator&&(navigator.userAgent.indexOf(\"WebKit\")>=0&&s.d.createEvent||navigator.userAgent.indexOf(\"Firefox/2\")>=0&&w.MouseEvent))s.S=1,s.useForcedLinkTracking=1,s.b.addEventListener(\"click\",s.k,!0);s.b.addEventListener(\"click\",s.k,!1)}}else setTimeout(setupBody,30)};s.Ga()}", "function getVersion(){return _VERSION}", "InitVsaEngine() {\n\n }", "constructor() {\n this.systemLog = false\n this.appName = '@codedungeon/messenger'\n this.logToFile = false\n this.methods = [\n 'write',\n 'critical',\n 'lblCritical',\n 'danger',\n 'lblDanger',\n 'debug',\n 'error',\n 'lblError',\n 'important',\n 'lblImportant',\n 'info',\n 'lblInfo',\n 'log',\n 'note',\n 'notice',\n 'lblNotice',\n 'status',\n 'success',\n 'lblSuccess',\n 'warn',\n 'lblWarn',\n 'warning',\n 'lblWarning'\n ]\n }", "private internal function m248() {}", "function WebSocketRpcConnection()\n{\nvar self = this;\n\nvar isNodeJs = (typeof window === \"undefined\" ? true : false);\n\nvar lib = null;\nvar SpaceifyError = null;\nvar SpaceifyUtility = null;\nvar RpcCommunicator = null;\n//var SpaceifyLogger = null;\nvar WebSocketConnection = null;\n\nif (isNodeJs)\n\t{\n\tlib = \"/var/lib/spaceify/code/\";\n\n\tSpaceifyError = require(lib + \"spaceifyerror\");\n\t//SpaceifyLogger = require(lib + \"spaceifylogger\");\n\tSpaceifyUtility = require(lib + \"spaceifyutility\");\n\tRpcCommunicator = require(lib + \"rpccommunicator\");\n\tWebSocketConnection = require(lib + \"websocketconnection\");\n\t}\nelse\n\t{\n\tlib = (window.WEBPACK_MAIN_LIBRARY ? window.WEBPACK_MAIN_LIBRARY : window);\n\n\t//SpaceifyLogger = lib.SpaceifyLogger;\n\tSpaceifyError = lib.SpaceifyError;\n\tSpaceifyUtility = lib.SpaceifyUtility;\n\tRpcCommunicator = lib.RpcCommunicator;\n\tWebSocketConnection = lib.WebSocketConnection;\n\t}\n\nvar errorc = new SpaceifyError();\nvar utility = new SpaceifyUtility();\nvar communicator = new RpcCommunicator();\nvar connection = new WebSocketConnection();\n//var logger = new SpaceifyLogger(\"WebSocketRpcConnection\");\n\nself.connect = function(options, callback)\n\t{\n\tconnection.connect(options, function(err, data)\n\t\t{\n\t\tif(!err)\n\t\t\t{\n\t\t\tcommunicator.addConnection(connection);\n\n\t\t\tif(callback)\n\t\t\t\tcallback(null, true);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tif(callback)\n\t\t\t\tcallback(errorc.makeErrorObject(\"wsrpcc\", \"Failed to open WebsocketRpcConnection.\", \"WebSocketRpcConnection::connect\"), null);\n\t\t\t}\n\t\t});\n\t};\n\nself.close = function()\n\t{\n\t};\n\nself.getCommunicator = function()\n\t{\n\treturn communicator;\n\t};\n\nself.getConnection = function()\n\t{\n\treturn connection;\n\t};\n\n// Inherited methods\nself.getIsOpen = function()\n\t{\n\treturn connection.getIsOpen();\n\t}\n\nself.getIsSecure = function()\n\t{\n\treturn connection.getIsSecure();\n\t}\n\nself.getPort = function()\n\t{\n\treturn connection.getPort();\n\t}\n\nself.getId = function()\n\t{\n\treturn connection.getId();\n\t}\n\nself.connectionExists = function(connectionId)\n\t{\n\treturn communicator.connectionExists(connectionId);\n\t}\n\nself.exposeRpcMethod = function(name, object, method)\n\t{\n\tcommunicator.exposeRpcMethod(name, object, method);\n\t}\n\nself.exposeRpcMethodSync = function(name, object, method)\n\t{\n\tcommunicator.exposeRpcMethodSync(name, object, method);\n\t}\n\nself.callRpc = function(method, params, object, listener)\n\t{\n\treturn communicator.callRpc(method, params, object, listener, connection.getId());\n\t}\n\n// External event listeners\nself.setConnectionListener = function(listener)\n\t{\n\tcommunicator.setConnectionListener(listener);\n\t};\n\nself.setDisconnectionListener = function(listener)\n\t{\n\tcommunicator.setDisconnectionListener(listener);\n\t};\n\n}", "heartbeat () {\n }", "function _____SHARED_functions_____(){}", "onShareAppMessage() {\n\n }", "function getString(key, params) {\n var result = WEB_PLATFORM.getString(\"org_opensds_storage_devices\", key, params);\n if(result == null){\n return key;\n }else{\n return result;\n }\n }", "componentDidMount(){\n console.info(this.constructor.name+ 'Component mount process finished');\n }", "onMessage() {}", "onMessage() {}", "requestThumbnails() {\n let position = this.state.position;\n let ed = this.state.ed;\n let ts = position == 'start' ? ed.start : ed.end;\n\n this.props.socket.emit('frameSelect',{ ts: ts } );\n }", "static get tag(){return\"hal-9000\"}", "constructor(t){const e={...t};this.connectionState=new h,this.server=\"https://hub-server-2.heatgenius.co.uk\",this.username=\"\",this.signature=\"\",this.auth={header:{}},this.lastQueryTime=null,this._axios=i.a.create({}),this.logger=e.logger?e.logger:console,this.debug=!!e.debug&&e.debug}", "started() {\r\n\r\n\t}", "get EXTERNAL_API() {\n return ['setUsageMode',\n 'setBackupMode',\n 'setLocationMode',\n 'setUsageOptinHidden',\n ];\n }", "getVideoDataBuffer() {\n return this.videoDataBuffer;\n }", "addTPKLayer(){\n //<editor-fold desc=\"old code to eliminate\">\n /* if (typeof local == 'undefined') {\n\n //todo: maybe based on this url we could decide if taking the tpk from File API or form URL\n var xhrRequest = new XMLHttpRequest();\n var _this = this;\n xhrRequest.open(\"GET\", url, true);\n xhrRequest.responseType = \"blob\";\n xhrRequest.onprogress = function(evt){\n var percent = 0;\n if(/!*evt.hasOwnProperty(\"total\")*!/typeof evt[\"total\"] !== 'undefined'){\n percent = (parseFloat(evt.loaded / evt.total) * 100).toFixed(0);\n }\n else{\n percent = (parseFloat(evt.loaded / evt.totalSize) * 100).toFixed(0);\n }\n\n console.log(\"Get file via url \" + percent + \"%\");\n console.log(\"Begin downloading remote tpk file...\");\n };\n\n xhrRequest.error = function(err){\n console.log(\"ERROR retrieving TPK file: \" + err.toString());\n alert(\"There was a problem retrieve the file.\");\n };\n var __this = _this;\n xhrRequest.onload = function(oEvent) {\n if(this.status === 200) {\n console.log(\"Remote tpk download finished.\" + oEvent);\n __this.zipParser(this.response);\n }\n else{\n alert(\"There was a problem loading the file. \" + this.status + \": \" + this.statusText );\n }\n };\n xhrRequest.send();\n }\n*/\n //</editor-fold>\n if (this.get('ermesCordova').isNative()){\n\n var basemapName = this.get('parcels').get('basemapName');\n var store = cordova.file.dataDirectory;\n var fileName = basemapName;\n this.set(\"loading\", true);\n this.getBaseMapZip (store, fileName).then((binary)=>{\n if (binary!== null) {\n this.zipParser(binary);\n }\n else {\n Ember.debug(\"getBaseMapZip: error loading the zip file\");\n }\n });\n }\n\n }", "private public function m246() {}", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "async onReady() {\n try {\n // Initialize your adapter here\n //Logging of adapter start\n this.log.info('start fb-checkpresence: ip-address: \"' + this.config.ipaddress + '\" - interval devices: ' + this.config.interval + ' Min.' + ' - interval members: ' + this.config.intervalFamily + ' s');\n this.log.debug('configuration user: <' + this.config.username + '>');\n this.log.debug('configuration history: <' + this.config.history + '>');\n this.log.debug('configuration dateformat: <' + this.config.dateformat + '>');\n this.log.debug('configuration familymembers: ' + JSON.stringify(this.config.familymembers));\n this.log.debug('configuration fb-devices ' + this.config.fbdevices);\n this.log.debug('configuratuion mesh info: ' + this.config.meshinfo); \n\n //decrypt fritzbox password\n const sysObj = await this.getForeignObjectAsync('system.config');\n if (sysObj && sysObj.native && sysObj.native.secret) {\n this.config.password = this.decrypt(sysObj.native.secret, this.config.password);\n } else {\n this.config.password = this.decrypt('SdoeQ85NTrg1B0FtEyzf', this.config.password);\n }\n\n //Configuration changes if needed\n let adapterObj = (await this.getForeignObjectAsync(`system.adapter.${this.namespace}`));\n let adapterObjChanged = false; //for changes\n \n //if interval <= 0 than set to 1\n if (this.config.interval <= 0) {\n adapterObj.native.interval = 1;\n adapterObjChanged = true;\n this.config.interval = 1;\n this.log.warn('interval is less than 1. Set to 1 Min.');\n }\n\n //if interval <= 0 than set to 1\n if (this.config.intervalFamily <= 9) {\n adapterObj.native.intervalFamily = 10;\n adapterObjChanged = true;\n this.config.intervalFamily = 10;\n this.log.warn('interval is less than 10. Set to 10s.');\n }\n\n //create new configuration items -> workaround for older versions\n for(let i=0;i<this.config.familymembers.length;i++){\n if (this.config.familymembers[i].useip == undefined) {\n adapterObj.native.familymembers[i].useip = false;\n adapterObj.native.familymembers[i].ipaddress = '';\n adapterObjChanged = true;\n }\n }\n\n if (adapterObjChanged === true){ //Save changes\n await this.setForeignObjectAsync(`system.adapter.${this.namespace}`, adapterObj);\n }\n\n const cfg = {\n ip: this.config.ipaddress,\n port: '49000',\n iv: this.config.interval,\n history: this.config.history,\n dateFormat: this.config.dateformat,\n uid: this.config.username,\n pwd: this.config.password,\n members: this.config.familymembers,\n wl: this.config.whitelist\n };\n \n const cron = cfg.iv * 60;\n const cronFamily = this.config.intervalFamily;\n \n const devInfo = {\n host: this.config.ipaddress,\n port: '49000',\n sslPort: null,\n uid: this.config.username,\n pwd: this.config.password\n };\n\n this.Fb = await fb.Fb.init(devInfo, this);\n if(this.Fb.services === null) {\n this.log.error('Can not get services! Adapter stops');\n this.stopAdapter();\n }\n\n //Check if services/actions are supported\n this.GETPATH = await this.Fb.chkService('X_AVM-DE_GetHostListPath', 'Hosts1', 'X_AVM-DE_GetHostListPath');\n this.GETMESHPATH = await this.Fb.chkService('X_AVM-DE_GetMeshListPath', 'Hosts1', 'X_AVM-DE_GetMeshListPath');\n this.GETBYMAC = await this.Fb.chkService('GetSpecificHostEntry', 'Hosts1', 'GetSpecificHostEntry');\n this.GETBYIP = await this.Fb.chkService('X_AVM-DE_GetSpecificHostEntryByIP', 'Hosts1', 'X_AVM-DE_GetSpecificHostEntryByIP');\n this.GETPORT = await this.Fb.chkService('GetSecurityPort', 'DeviceInfo1', 'GetSecurityPort');\n this.GETEXTIP = await this.Fb.chkService('GetInfo', 'WANPPPConnection1', 'GetInfo');\n if ( this.GETEXTIP == false) this.GETEXTIP = await this.Fb.chkService('GetInfo', 'WANIPConnection1', 'GetInfo');\n this.SETENABLE = await this.Fb.chkService('SetEnable', 'WLANConfiguration3', 'SetEnable');\n this.WLAN3INFO = await this.Fb.chkService('GetInfo', 'WLANConfiguration3', 'WLANConfiguration3-GetInfo');\n this.DEVINFO = await this.Fb.chkService('GetInfo', 'DeviceInfo1', 'DeviceInfo1-GetInfo');\n this.DISALLOWWANACCESSBYIP = await this.Fb.chkService('DisallowWANAccessByIP', 'X_AVM-DE_HostFilter', 'DisallowWANAccessByIP');\n this.GETWANACCESSBYIP = await this.Fb.chkService('GetWANAccessByIP', 'X_AVM-DE_HostFilter', 'GetWANAccessByIP');\n this.REBOOT = await this.Fb.chkService('Reboot', 'DeviceConfig1', 'Reboot');\n \n //const test = await Fb.soapAction(Fb, '/upnp/control/deviceconfig', 'urn:dslforum-org:service:DeviceConfig:1', 'X_AVM-DE_CreateUrlSID', null);\n\n //Create global objects\n await obj.createGlobalObjects(this, this.HTML+this.HTML_END, this.HTML_GUEST+this.HTML_END, this.enabled);\n await obj.createMemberObjects(this, cfg, this.HTML_HISTORY + this.HTML_END, this.enabled);\n\n //create Fb devices\n if (this.GETPATH != null && this.GETPATH == true && this.config.fbdevices == true){\n const items = await this.Fb.getDeviceList(this, cfg, this.Fb);\n if (items != null){\n let res = await obj.createFbDeviceObjects(this, items, this.enabled);\n if (res === true) this.log.info('createFbDeviceObjects finished successfully');\n res = await obj.createMeshObjects(this, items, 0, this.enabled); //create channel 0 as default interface\n if (res === true) this.log.info('createMeshObjects finished successfully');\n }else{\n this.log.error('createFbDeviceObjects -> ' + \"can't read devices from fritzbox! Adapter stops\");\n adapterObj = await this.getForeignObjectAsync(`system.adapter.${this.namespace}`);\n adapterObj.common.enabled = false; // Adapter ausschalten\n await this.setForeignObjectAsync(`system.adapter.${this.namespace}`, adapterObj);\n }\n await this.resyncFbObjects(items);\n }\n\n // states changes inside the adapters namespace are subscribed\n if (this.SETENABLE === true && this.WLAN3INFO === true) this.subscribeStates(`${this.namespace}` + '.guest.wlan');\n if (this.DISALLOWWANACCESSBYIP === true && this.GETWANACCESSBYIP === true) this.subscribeStates(`${this.namespace}` + '.fb-devices.*.disabled'); \n if (this.REBOOT === true) this.subscribeStates(`${this.namespace}` + '.reboot'); \n\n //get uuid for transaction\n //const sSid = await Fb.soapAction(Fb, '/upnp/control/deviceconfig', urn + 'DeviceConfig:1', 'X_GenerateUUID', null);\n //const uuid = sSid['NewUUID'].replace('uuid:', '');\n this.loop(10, 55, cronFamily, cron, cfg);\n } catch (error) {\n this.showError('onReady: ' + error);\n }\n }", "async onReady() {\n // Initialize your adapter here\n\n this.setState(\"info.connection\", false, true);\n // Reset the connection indicator during startup\n this.type = \"VW\";\n this.country = \"DE\";\n this.clientId = \"9496332b-ea03-4091-a224-8c746b885068%40apps_vw-dilab_com\";\n this.xclientId = \"38761134-34d0-41f3-9a73-c4be88d7d337\";\n this.scope = \"openid%20profile%20mbb%20email%20cars%20birthdate%20badge%20address%20vin\";\n this.redirect = \"carnet%3A%2F%2Fidentity-kit%2Flogin\";\n this.xrequest = \"de.volkswagen.carnet.eu.eremote\";\n this.responseType = \"id_token%20token%20code\";\n this.xappversion = \"5.1.2\";\n this.xappname = \"eRemote\";\n if (this.config.type === \"id\") {\n this.type = \"Id\";\n this.country = \"DE\";\n this.clientId = \"a24fba63-34b3-4d43-b181-942111e6bda8@apps_vw-dilab_com\";\n this.xclientId = \"\";\n this.scope = \"openid profile badge cars dealers birthdate vin\";\n this.redirect = \"weconnect://authenticated\";\n this.xrequest = \"com.volkswagen.weconnect\";\n this.responseType = \"code id_token token\";\n this.xappversion = \"\";\n this.xappname = \"\";\n }\n if (this.config.type === \"skoda\") {\n this.type = \"Skoda\";\n this.country = \"CZ\";\n this.clientId = \"7f045eee-7003-4379-9968-9355ed2adb06%40apps_vw-dilab_com\";\n this.xclientId = \"28cd30c6-dee7-4529-a0e6-b1e07ff90b79\";\n this.scope = \"openid%20profile%20phone%20address%20cars%20email%20birthdate%20badge%20dealers%20driversLicense%20mbb\";\n this.redirect = \"skodaconnect%3A%2F%2Foidc.login%2F\";\n this.xrequest = \"cz.skodaauto.connect\";\n this.responseType = \"code%20id_token\";\n this.xappversion = \"3.2.6\";\n this.xappname = \"cz.skodaauto.connect\";\n }\n if (this.config.type === \"seat\") {\n this.type = \"Seat\";\n this.country = \"ES\";\n this.clientId = \"50f215ac-4444-4230-9fb1-fe15cd1a9bcc@apps_vw-dilab_com\";\n this.xclientId = \"9dcc70f0-8e79-423a-a3fa-4065d99088b4\";\n this.scope = \"openid profile mbb cars birthdate nickname address phone\";\n this.redirect = \"seatconnect://identity-kit/login\";\n this.xrequest = \"cz.skodaauto.connect\";\n this.responseType = \"code%20id_token\";\n this.xappversion = \"1.1.29\";\n this.xappname = \"SEATConnect\";\n }\n if (this.config.type === \"audi\") {\n this.type = \"Audi\";\n this.country = \"DE\";\n this.clientId = \"09b6cbec-cd19-4589-82fd-363dfa8c24da@apps_vw-dilab_com\";\n this.xclientId = \"77869e21-e30a-4a92-b016-48ab7d3db1d8\";\n this.scope = \"address profile badge birthdate birthplace nationalIdentifier nationality profession email vin phone nickname name picture mbb gallery openid\";\n this.redirect = \"myaudi:///\";\n this.xrequest = \"de.myaudi.mobile.assistant\";\n this.responseType = \"token%20id_token\";\n // this.responseType = \"code\";\n this.xappversion = \"3.22.0\";\n this.xappname = \"myAudi\";\n }\n if (this.config.type === \"go\") {\n this.type = \"\";\n this.country = \"\";\n this.clientId = \"ac42b0fa-3b11-48a0-a941-43a399e7ef84@apps_vw-dilab_com\";\n this.xclientId = \"\";\n this.scope = \"openid%20profile%20address%20email%20phone\";\n this.redirect = \"vwconnect%3A%2F%2Fde.volkswagen.vwconnect%2Foauth2redirect%2Fidentitykit\";\n this.xrequest = \"\";\n this.responseType = \"code\";\n this.xappversion = \"\";\n this.xappname = \"\";\n }\n if (this.config.interval === 0) {\n this.log.info(\"Interval of 0 is not allowed reset to 1\");\n this.config.interval = 1;\n }\n this.login()\n .then(() => {\n this.log.debug(\"Login successful\");\n this.setState(\"info.connection\", true, true);\n this.getPersonalData()\n .then(() => {\n this.getVehicles()\n .then(() => {\n if (this.config.type !== \"go\") {\n this.vinArray.forEach((vin) => {\n if (this.config.type === \"id\") {\n this.getIdStatus(vin).catch(() => {\n this.log.error(\"get id status Failed\");\n });\n } else {\n this.getHomeRegion(vin)\n .catch(() => {\n this.log.debug(\"get home region Failed\");\n })\n .finally(() => {\n this.getVehicleData(vin).catch(() => {\n this.log.error(\"get vehicle data Failed\");\n });\n this.getVehicleRights(vin).catch(() => {\n this.log.error(\"get vehicle rights Failed\");\n });\n this.requestStatusUpdate(vin)\n .finally(() => {\n this.statesArray.forEach((state) => {\n this.getVehicleStatus(vin, state.url, state.path, state.element, state.element2, state.element3, state.element4).catch(() => {\n this.log.debug(\"error while getting \" + state.url);\n });\n });\n })\n .catch(() => {\n this.log.error(\"status update Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"Error getting home region\");\n });\n }\n });\n }\n\n this.updateInterval = setInterval(() => {\n if (this.config.type === \"go\") {\n this.getVehicles();\n return;\n } else if (this.config.type === \"id\") {\n this.vinArray.forEach((vin) => {\n this.getIdStatus(vin).catch(() => {\n this.log.error(\"get id status Failed\");\n this.refreshIDToken().catch(() => {});\n });\n this.getWcData();\n });\n return;\n } else {\n this.vinArray.forEach((vin) => {\n this.statesArray.forEach((state) => {\n this.getVehicleStatus(vin, state.url, state.path, state.element, state.element2).catch(() => {\n this.log.debug(\"error while getting \" + state.url);\n });\n });\n });\n }\n }, this.config.interval * 60 * 1000);\n\n if (this.config.forceinterval > 0) {\n this.fupdateInterval = setInterval(() => {\n if (this.config.type === \"go\") {\n this.getVehicles();\n return;\n }\n this.vinArray.forEach((vin) => {\n this.requestStatusUpdate(vin).catch(() => {\n this.log.error(\"force status update Failed\");\n });\n });\n }, this.config.forceinterval * 60 * 1000);\n }\n })\n .catch(() => {\n this.log.error(\"Get Vehicles Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"get personal data Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"Login Failed\");\n });\n this.subscribeStates(\"*\");\n }", "started () {}", "_specializedInitialisation()\r\n\t{\r\n\t\tLogger.log(\"Specialisation for service AVTransport\", LogType.Info);\r\n\t\tvar relativeTime = this.getVariableByName(\"RelativeTimePosition\");\r\n\t\t//Implémentation pour OpenHome\r\n\t\tif (!relativeTime)\r\n\t\t\trelativeTime = this.getVariableByName(\"A_ARG_TYPE_GetPositionInfo_RelTime\");\r\n\t\tvar transportState = this.getVariableByName(\"TransportState\");\r\n\t\t//Implémentation pour OpenHome\r\n\t\tif (!transportState)\r\n\t\t\ttransportState = this.getVariableByName(\"A_ARG_TYPE_GetTransportInfo_CurrentTransportState\");\r\n\r\n\t\tif (transportState)\r\n\t\t{\r\n\t\t\ttransportState.on('updated', (variable, newVal) =>\r\n\t\t\t{\r\n\t\t\t\tLogger.log(\"On transportStateUpdate : \" + newVal, LogType.DEBUG);\r\n\t\t\t\tvar actPosInfo = this.getActionByName(\"GetPositionInfo\");\r\n\t\t\t\tvar actMediaInfo = this.getActionByName(\"GetMediaInfo\");\r\n\t\t\t\t/*\r\n\t\t\t\t“STOPPED” R\r\n\t\t\t\t“PLAYING” R\r\n\t\t\t\t“TRANSITIONING” O\r\n\t\t\t\t”PAUSED_PLAYBACK” O\r\n\t\t\t\t“PAUSED_RECORDING” O\r\n\t\t\t\t“RECORDING” O\r\n\t\t\t\t“NO_MEDIA_PRESENT”\r\n\t\t\t\t */\r\n\t\t\t\tif (relativeTime && !relativeTime.SendEvent && actPosInfo)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (this._intervalUpdateRelativeTime)\r\n\t\t\t\t\t\tclearInterval(this._intervalUpdateRelativeTime);\r\n\t\t\t\t\tif (newVal == \"PLAYING\" || newVal == \"RECORDING\")\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t} );\r\n\t\t\t\t\t\t//Déclenche la maj toutes les 4 secondes\r\n\t\t\t\t\t\tthis._intervalUpdateRelativeTime = setInterval(() =>{\r\n\t\t\t\t\t\t\t\t//Logger.log(\"On autoUpdate\", LogType.DEBUG);\r\n\t\t\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t}\t);\r\n\t\t\t\t\t\t\t}, 4000);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//else if (newVal == \"STOPPED\" || newVal == \"PAUSED_PLAYBACK\" || newVal == \"PAUSED_RECORDING\" || newVal == \"NO_MEDIA_PRESENT\")\r\n\t\t\t\t//{\r\n\t\t\t\t//\r\n\t\t\t\t//}\r\n\t\t\t\t//On met a jour les media info et position info pour etre sur de mettre a jour les Metadata(par defaut la freebox ne le fait pas ou plutot le fait mal)\r\n\t\t\t\tif (newVal == \"TRANSITIONING\")\r\n\t\t\t\t{\r\n\t\t\t\t\tif (actPosInfo)\r\n\t\t\t\t\t\tactPosInfo.execute(\t{InstanceID: 0}\t);\r\n\t\t\t\t\tif (actMediaInfo)\r\n\t\t\t\t\t\tactMediaInfo.execute(\t{InstanceID: 0} );\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (newVal == \"STOPPED\")\r\n\t\t\t\t{\r\n\t\t\t\t\tif (actPosInfo)\r\n\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t});\r\n\t\t\t\t\tif (actMediaInfo)\r\n\t\t\t\t\t\tactMediaInfo.execute(\t{\tInstanceID: 0 });\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}", "loadComponent(nodeURI, baseURI, callback_async /* nodeDescriptor */, errback_async /* errorMessage */) { // TODO: turn this into a generic xhr loader exposed as a kernel function?\n\n let self = this;\n\n if (nodeURI == self.kutility.protoNodeURI) {\n\n callback_async(self.kutility.protoNodeDescriptor);\n\n } else if (nodeURI.match(RegExp(\"^data:application/json;base64,\"))) {\n\n // Primarly for testing, parse one specific form of data URIs. We need to parse\n // these ourselves since Chrome can't load data URIs due to cross origin\n // restrictions.\n\n callback_async(JSON.parse(atob(nodeURI.substring(29)))); // TODO: support all data URIs\n\n } else {\n\n self.virtualTime.suspend(\"while loading \" + nodeURI); // suspend the queue\n\n let fetchUrl = self.remappedURI(nodeURI, baseURI);\n let dbName = fetchUrl.split(\".\").join(\"_\");\n\n const parseComp = function (f) {\n\n let result = JSON.parse(f);\n\n let nativeObject = result;\n // console.log(nativeObject);\n\n if (nativeObject) {\n callback_async(nativeObject);\n self.virtualTime.resume(\"after loading \" + nodeURI); // resume the queue; may invoke dispatch(), so call last before returning to the host\n\n } else {\n\n self.logger.warnx(\"loadComponent\", \"error loading\", nodeURI + \":\", error);\n errback_async(error);\n self.virtualTime.resume(\"after loading \" + nodeURI); // resume the queue; may invoke dispatch(), so call last before returning to the host\n }\n\n }\n\n\n //var fileName = \"\";\n // let userDB = _LCSDB.user(_LCS_WORLD_USER.pub); \n if (dbName.includes(\"proxy\")) {\n //userDB = await window._LCS_SYS_USER.get('proxy').then();\n let proxyDB = self.proxy ? _LCSDB.user(self.proxy) : _LCSDB.user(_LCS_WORLD_USER.pub);\n let fileName = dbName + '_json';\n let dbNode = proxyDB.get('proxy').get(fileName);\n let nodeProm = new Promise(res => dbNode.once(res));\n\n nodeProm.then(comp => {\n parseComp(comp);\n })\n\n // (function(r){\n // //console.log(r);\n // parseComp(r);\n\n // });\n\n } else {\n var worldName = dbName.split('/')[1];\n var fileName = dbName.split('/')[2];\n //+ '_json';\n\n if (!fileName) {\n worldName = self.helpers.appPath\n fileName = dbName + '_json';\n } else {\n fileName = fileName + '_json';\n }\n\n let dbNode = _LCSDB.user(_LCS_WORLD_USER.pub).get('worlds').path(worldName).get(fileName);\n\n let nodeProm = new Promise(res => dbNode.once(res))\n nodeProm.then(comp => {\n parseComp(comp);\n })\n\n // (function(r){\n // //console.log(r);\n // parseComp(r);\n\n // });\n }\n\n //console.log(source);\n\n //userDB.get(fileName).once(async function(res) {\n\n\n\n\n // }, {wait: 1000})\n }\n\n }", "async onReady() {\n // Initialize your adapter here\n await this.setObjectNotExistsAsync('speed', {\n type: 'channel',\n common: {\n name: 'speed'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.download', {\n type: 'state',\n common: {\n name: 'download',\n role: 'info.status',\n type: 'number',\n desc: 'Download speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.upload', {\n type: 'state',\n common: {\n name: 'upload',\n role: 'info.status',\n type: 'number',\n desc: 'Upload speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.ping', {\n type: 'state',\n common: {\n name: 'ping',\n role: 'info.status',\n type: 'number',\n desc: 'Ping Latency',\n def: 0,\n read: true,\n write: false,\n unit: 'ms',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.progress', {\n type: 'state',\n common: {\n name: 'progress',\n role: 'info.status',\n type: 'number',\n desc: 'Progress',\n def: 0,\n read: true,\n write: false,\n unit: '%',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.speedcheck', {\n type: 'state',\n common: {\n name: 'Run speed test',\n type: 'boolean',\n read: true,\n role: 'button',\n write: true,\n def: false\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress', {\n type: 'channel',\n common: {\n name: 'speed'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.download', {\n type: 'state',\n common: {\n name: 'download',\n role: 'info.status',\n type: 'number',\n desc: 'Download speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.upload', {\n type: 'state',\n common: {\n name: 'upload',\n role: 'info.status',\n type: 'number',\n desc: 'Upload speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.ping', {\n type: 'state',\n common: {\n name: 'ping',\n role: 'info.status',\n type: 'number',\n desc: 'Ping Latency',\n def: 0,\n read: true,\n write: false,\n unit: 'ms',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.progress', {\n type: 'state',\n common: {\n name: 'progress',\n role: 'info.status',\n type: 'number',\n desc: 'Progress',\n def: 0,\n read: true,\n write: false,\n unit: '%',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.speedcheck', {\n type: 'state',\n common: {\n name: 'Run speed test',\n type: 'boolean',\n read: true,\n role: 'button',\n write: true,\n def: false\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info', {\n type: 'channel',\n common: {\n name: 'Information'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info.externalip', {\n type: 'state',\n common: {\n name: 'External IP',\n role: 'info.status',\n type: 'string',\n desc: 'External IP',\n read: true,\n write: false,\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info.internalip', {\n type: 'state',\n common: {\n name: 'Internal IP',\n role: 'info.status',\n type: 'string',\n desc: 'Internal IP',\n read: true,\n write: false,\n },\n native: {},\n });\n this.subscribeStates('*');\n await this.setStateAsync('info.connection', { val: true, ack: true });\n // let result = await this.checkPasswordAsync('admin', 'iobroker');\n // this.log.info('check user admin pw iobroker: ' + result);\n // result = await this.checkGroupAsync('admin', 'admin');\n // this.log.info('check group user admin group admin: ' + result);\n if (this.config.polltime > 1) {\n this.log.info('Checking internet speed every ' + this.config.polltime + ' minutes');\n } else {\n this.log.info('Checking internet speed every ' + this.config.polltime + ' minute');\n }\n await this.start(this.config.polltime);\n }", "enqueue() {\n\n }", "started() { }", "onBrowserStart(browser) {\n\n }", "getPort2() {\n return 0;\n }", "requestReceived(request,response){\n if(this.config.log){\n const logData={\n method : request.method,\n url : request.url,\n headers : request.headers\n };\n\n this.config.logFunction(\n logData\n );\n }\n\n let uri = url.parse(request.url);\n uri.protocol='http';\n uri.host=uri.hostname=request.headers.host;\n uri.port=80;\n uri.query=querystring.parse(uri.query);\n\n if(request.connection.encrypted){\n uri.protocol='https';\n uri.port=443;\n }\n\n (\n function(){\n if(!uri.host){\n return;\n }\n const host=uri.host.split(':');\n\n if(!host[1]){\n return;\n }\n uri.host=uri.hostname=host[0];\n uri.port=host[1];\n }\n )();\n\n for(let key in uri){\n if(uri[key]!==null){\n continue;\n }\n uri[key]='';\n }\n\n request.uri=uri;\n\n if(\n this.onRawRequest(\n request,\n response,\n completeServing.bind(this)\n )\n ){\n return;\n };\n\n uri=uri.pathname;\n\n if (uri=='/'){\n uri=`/${this.config.server.index}`;\n }\n\n let hostname= [];\n\n if (request.headers.host !== undefined){\n hostname = request.headers.host.split(':');\n }\n\n let root = this.config.root;\n\n if(this.config.verbose){\n console.log(`${this.config.logID} REQUEST ###\\n\\n`,\n request.headers,'\\n',\n uri,'\\n\\n',\n hostname,'\\n\\n'\n );\n }\n\n if(this.config.domain!='0.0.0.0' && hostname.length > 0 && hostname[0]!=this.config.domain){\n if(!this.config.domains[hostname[0]]){\n if(this.config.verbose){\n console.log(`${this.config.logID} INVALID HOST ###\\n\\n`);\n }\n this.serveFile(hostname[0],false,response);\n return;\n }\n root=this.config.domains[hostname[0]];\n }\n\n\n if(this.config.verbose){\n console.log(`${this.config.logID} USING ROOT : ${root}###\\n\\n`);\n }\n\n if(uri.slice(-1)=='/'){\n uri+=this.config.server.index;\n }\n\n request.url=uri;\n request.serverRoot=root;\n\n request.body='';\n\n request.on(\n 'data',\n function(chunk){\n request.body+=chunk;\n }.bind(this)\n ).on(\n 'end',\n function(){\n if(this.config.verbose){\n console.log(`###REQUEST BODY :\n ${request.body}\n ###\n `);\n }\n\n requestBodyComplete.bind(this,request,response)();\n }.bind(this)\n );\n }", "function OnChannelOpen()\n{\n}", "connect() {\n throw new Error(\n 'The Message Bus is not currently supported in browser environments'\n );\n }", "constructor() {\n throw new Error('Not implemented');\n }", "constructor() {\n this._connectionResolver = new pip_services3_components_node_1.ConnectionResolver();\n this._maxKeySize = 250;\n this._maxExpiration = 2592000;\n this._maxValue = 1048576;\n this._poolSize = 5;\n this._reconnect = 10000;\n this._timeout = 5000;\n this._retries = 5;\n this._failures = 5;\n this._retry = 30000;\n this._remove = false;\n this._idle = 5000;\n this._client = null;\n }", "componentDidMount()\n {\n\n }", "function OfflineStreamProcessor(config) {\n config = config || {};\n var context = this.context;\n var eventBus = config.eventBus;\n var events = config.events;\n var errors = config.errors;\n var debug = config.debug;\n var constants = config.constants;\n var settings = config.settings;\n var dashConstants = config.dashConstants;\n var manifestId = config.id;\n var type = config.type;\n var streamInfo = config.streamInfo;\n var errHandler = config.errHandler;\n var mediaPlayerModel = config.mediaPlayerModel;\n var abrController = config.abrController;\n var playbackController = config.playbackController;\n var adapter = config.adapter;\n var dashMetrics = config.dashMetrics;\n var baseURLController = config.baseURLController;\n var timelineConverter = config.timelineConverter;\n var bitrate = config.bitrate;\n var offlineStoreController = config.offlineStoreController;\n var completedCb = config.callbacks && config.callbacks.completed;\n var progressCb = config.callbacks && config.callbacks.progression;\n var instance, logger, mediaInfo, indexHandler, representationController, fragmentModel, updating, downloadedSegments, isInitialized, segmentsController, isStopped;\n\n function setup() {\n resetInitialSettings();\n logger = debug.getLogger(instance);\n segmentsController = Object(_dash_controllers_SegmentsController__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(context).create({\n events: events,\n eventBus: eventBus,\n streamInfo: streamInfo,\n timelineConverter: timelineConverter,\n dashConstants: dashConstants,\n segmentBaseController: config.segmentBaseController,\n type: type\n });\n indexHandler = Object(_dash_DashHandler__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(context).create({\n streamInfo: streamInfo,\n type: type,\n timelineConverter: timelineConverter,\n dashMetrics: dashMetrics,\n mediaPlayerModel: mediaPlayerModel,\n baseURLController: baseURLController,\n errHandler: errHandler,\n settings: settings,\n // boxParser: boxParser,\n eventBus: eventBus,\n events: events,\n debug: debug,\n requestModifier: Object(_streaming_utils_RequestModifier__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(context).getInstance(),\n dashConstants: dashConstants,\n constants: constants,\n segmentsController: segmentsController,\n urlUtils: Object(_streaming_utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(context).getInstance()\n });\n representationController = Object(_dash_controllers_RepresentationController__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(context).create({\n streamInfo: streamInfo,\n type: type,\n abrController: abrController,\n dashMetrics: dashMetrics,\n playbackController: playbackController,\n timelineConverter: timelineConverter,\n dashConstants: dashConstants,\n events: events,\n eventBus: eventBus,\n errors: errors,\n segmentsController: segmentsController\n });\n fragmentModel = Object(_streaming_models_FragmentModel__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(context).create({\n streamInfo: streamInfo,\n dashMetrics: dashMetrics,\n fragmentLoader: Object(_streaming_FragmentLoader__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(context).create({\n dashMetrics: dashMetrics,\n mediaPlayerModel: mediaPlayerModel,\n errHandler: errHandler,\n requestModifier: Object(_streaming_utils_RequestModifier__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(context).getInstance(),\n settings: settings,\n eventBus: eventBus,\n events: events,\n errors: errors,\n constants: constants,\n dashConstants: dashConstants,\n urlUtils: Object(_streaming_utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(context).getInstance()\n }),\n debug: debug,\n eventBus: eventBus,\n events: events\n });\n eventBus.on(events.STREAM_REQUESTING_COMPLETED, onStreamRequestingCompleted, instance);\n eventBus.on(events.FRAGMENT_LOADING_COMPLETED, onFragmentLoadingCompleted, instance);\n }\n\n function initialize(_mediaInfo) {\n mediaInfo = _mediaInfo;\n indexHandler.initialize(false);\n updateRepresentation(mediaInfo);\n }\n\n function isInitRequest(request) {\n return request.type === 'InitializationSegment';\n }\n\n function onFragmentLoadingCompleted(e) {\n if (e.sender !== fragmentModel) {\n return;\n }\n\n if (e.request !== null) {\n var isInit = isInitRequest(e.request);\n var suffix = isInit ? 'init' : e.request.index;\n var fragmentName = e.request.representationId + '_' + suffix;\n offlineStoreController.storeFragment(manifestId, fragmentName, e.response).then(function () {\n if (!isInit) {\n // store current index and downloadedSegments number\n offlineStoreController.setRepresentationCurrentState(manifestId, e.request.representationId, {\n index: e.request.index,\n downloaded: downloadedSegments\n });\n }\n });\n }\n\n if (e.error && e.request.serviceLocation && !isStopped) {\n fragmentModel.executeRequest(e.request);\n } else {\n downloadedSegments++;\n download();\n }\n }\n\n function onStreamRequestingCompleted(e) {\n if (e.fragmentModel !== fragmentModel) {\n return;\n }\n\n logger.info(\"[\".concat(manifestId, \"] Stream is complete\"));\n stop();\n completedCb();\n }\n\n function getRepresentationController() {\n return representationController;\n }\n\n function getRepresentationId() {\n return representationController.getCurrentRepresentation().id;\n }\n /**\n * Stops download of fragments\n * @memberof OfflineStreamProcessor#\n */\n\n\n function stop() {\n if (isStopped) {\n return;\n }\n\n isStopped = true;\n }\n\n function removeExecutedRequestsBeforeTime(time) {\n if (fragmentModel) {\n fragmentModel.removeExecutedRequestsBeforeTime(time);\n }\n }\n /**\n * Execute init request for the represenation\n * @memberof OfflineStreamProcessor#\n */\n\n\n function getInitRequest() {\n if (!representationController.getCurrentRepresentation()) {\n return null;\n }\n\n return indexHandler.getInitRequest(getMediaInfo(), representationController.getCurrentRepresentation());\n }\n /**\n * Get next request\n * @memberof OfflineStreamProcessor#\n */\n\n\n function getNextRequest() {\n return indexHandler.getNextSegmentRequest(getMediaInfo(), representationController.getCurrentRepresentation());\n }\n /**\n * Start download\n * @memberof OfflineStreamProcessor#\n */\n\n\n function start() {\n if (representationController) {\n if (!representationController.getCurrentRepresentation()) {\n throw new Error('Start denied to OfflineStreamProcessor');\n }\n\n isStopped = false;\n offlineStoreController.getRepresentationCurrentState(manifestId, representationController.getCurrentRepresentation().id).then(function (state) {\n if (state) {\n indexHandler.setCurrentIndex(state.index);\n downloadedSegments = state.downloaded;\n }\n\n download();\n })[\"catch\"](function () {\n // start from beginining\n download();\n });\n }\n }\n /**\n * Performs download of fragment according to type\n * @memberof OfflineStreamProcessor#\n */\n\n\n function download() {\n if (isStopped) {\n return;\n }\n\n if (isNaN(representationController.getCurrentRepresentation())) {\n var request = null;\n\n if (!isInitialized) {\n request = getInitRequest();\n isInitialized = true;\n } else {\n request = getNextRequest(); // update progression : done here because availableSegmentsNumber is done in getNextRequest from dash handler\n\n updateProgression();\n }\n\n if (request) {\n logger.info(\"[\".concat(manifestId, \"] download request : \").concat(request.url));\n fragmentModel.executeRequest(request);\n } else {\n logger.info(\"[\".concat(manifestId, \"] no request to be downloaded\"));\n }\n }\n }\n /**\n * Update representation\n * @param {Object} mediaInfo - mediaInfo\n * @memberof OfflineStreamProcessor#\n */\n\n\n function updateRepresentation(mediaInfo) {\n updating = true;\n var voRepresentations = adapter.getVoRepresentations(mediaInfo); // get representation VO according to id.\n\n var quality = voRepresentations.findIndex(function (representation) {\n return representation.id === bitrate.id;\n });\n\n if (type !== constants.VIDEO && type !== constants.AUDIO && type !== constants.TEXT) {\n updating = false;\n return;\n }\n\n representationController.updateData(null, voRepresentations, type, mediaInfo.isFragmented, quality);\n }\n\n function isUpdating() {\n return updating;\n }\n\n function getType() {\n return type;\n }\n\n function getMediaInfo() {\n return mediaInfo;\n }\n\n function getAvailableSegmentsNumber() {\n return representationController.getCurrentRepresentation().availableSegmentsNumber + 1; // do not forget init segment\n }\n\n function updateProgression() {\n if (progressCb) {\n progressCb(instance, downloadedSegments, getAvailableSegmentsNumber());\n }\n }\n\n function resetInitialSettings() {\n isInitialized = false;\n downloadedSegments = 0;\n updating = false;\n }\n /**\n * Reset\n * @memberof OfflineStreamProcessor#\n */\n\n\n function reset() {\n resetInitialSettings();\n indexHandler.reset();\n eventBus.off(events.STREAM_REQUESTING_COMPLETED, onStreamRequestingCompleted, instance);\n eventBus.off(events.FRAGMENT_LOADING_COMPLETED, onFragmentLoadingCompleted, instance);\n }\n\n instance = {\n initialize: initialize,\n getMediaInfo: getMediaInfo,\n getRepresentationController: getRepresentationController,\n removeExecutedRequestsBeforeTime: removeExecutedRequestsBeforeTime,\n getType: getType,\n getRepresentationId: getRepresentationId,\n isUpdating: isUpdating,\n start: start,\n stop: stop,\n getAvailableSegmentsNumber: getAvailableSegmentsNumber,\n reset: reset\n };\n setup();\n return instance;\n}", "constructor() {\r\n }", "constructor() {\n\t\t// ...\n\t}", "static get STATUS() {\n return 0;\n }", "onReady() {\n return __awaiter(this, void 0, void 0, function* () {\n this.logger = new log_1.ioBrokerLogger(this.log);\n yield this.setObjectNotExistsAsync(\"verify_code\", {\n type: \"state\",\n common: {\n name: \"2FA verification code\",\n type: \"number\",\n role: \"state\",\n read: true,\n write: true,\n },\n native: {},\n });\n yield this.setObjectNotExistsAsync(\"info\", {\n type: \"channel\",\n common: {\n name: \"info\"\n },\n native: {},\n });\n yield this.setObjectNotExistsAsync(\"info.connection\", {\n type: \"state\",\n common: {\n name: \"Global connection\",\n type: \"boolean\",\n role: \"indicator.connection\",\n read: true,\n write: false,\n },\n native: {},\n });\n yield this.setStateAsync(\"info.connection\", { val: false, ack: true });\n yield this.setObjectNotExistsAsync(\"info.push_connection\", {\n type: \"state\",\n common: {\n name: \"Push notification connection\",\n type: \"boolean\",\n role: \"indicator.connection\",\n read: true,\n write: false,\n },\n native: {},\n });\n // Remove old states of previous adapter versions\n try {\n const schedule_modes = yield this.getStatesAsync(\"*.schedule_mode\");\n Object.keys(schedule_modes).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const push_notifications = yield this.getStatesAsync(\"push_notification.*\");\n Object.keys(push_notifications).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n yield this.delObjectAsync(\"push_notification\");\n }\n catch (error) {\n }\n try {\n const last_camera_url = yield this.getStatesAsync(\"*.last_camera_url\");\n Object.keys(last_camera_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const captured_pic_url = yield this.getStatesAsync(\"*.captured_pic_url\");\n Object.keys(captured_pic_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const person_identified = yield this.getStatesAsync(\"*.person_identified\");\n Object.keys(person_identified).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const last_captured_pic_url = yield this.getStatesAsync(\"*.last_captured_pic_url\");\n Object.keys(last_captured_pic_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const last_captured_pic_html = yield this.getStatesAsync(\"*.last_captured_pic_html\");\n Object.keys(last_captured_pic_html).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n // End\n // Reset event states if necessary (for example because of an unclean exit)\n yield this.initializeEvents(types_1.CameraStateID.PERSON_DETECTED);\n yield this.initializeEvents(types_1.CameraStateID.MOTION_DETECTED);\n yield this.initializeEvents(types_1.DoorbellStateID.RINGING);\n yield this.initializeEvents(types_1.IndoorCameraStateID.CRYING_DETECTED);\n yield this.initializeEvents(types_1.IndoorCameraStateID.SOUND_DETECTED);\n yield this.initializeEvents(types_1.IndoorCameraStateID.PET_DETECTED);\n try {\n if (fs.statSync(this.persistentFile).isFile()) {\n const fileContent = fs.readFileSync(this.persistentFile, \"utf8\");\n this.persistentData = JSON.parse(fileContent);\n }\n }\n catch (err) {\n this.logger.debug(\"No stored data from last exit found.\");\n }\n //TODO: Temporary Test to be removed!\n /*await this.setObjectNotExistsAsync(\"test_button\", {\n type: \"state\",\n common: {\n name: \"Test button\",\n type: \"boolean\",\n role: \"button\",\n read: false,\n write: true,\n },\n native: {},\n });\n this.subscribeStates(\"test_button\");\n await this.setObjectNotExistsAsync(\"test_button2\", {\n type: \"state\",\n common: {\n name: \"Test button2\",\n type: \"boolean\",\n role: \"button\",\n read: false,\n write: true,\n },\n native: {},\n });\n this.subscribeStates(\"test_button2\");*/\n // END\n this.subscribeStates(\"verify_code\");\n const systemConfig = yield this.getForeignObjectAsync(\"system.config\");\n let countryCode = undefined;\n let languageCode = undefined;\n if (systemConfig) {\n countryCode = i18n_iso_countries_1.getAlpha2Code(systemConfig.common.country, \"en\");\n if (i18n_iso_languages_1.isValid(systemConfig.common.language))\n languageCode = systemConfig.common.language;\n }\n try {\n const adapter_info = yield this.getForeignObjectAsync(`system.adapter.${this.namespace}`);\n if (adapter_info && adapter_info.common && adapter_info.common.version) {\n if (this.persistentData.version !== adapter_info.common.version) {\n const currentVersion = Number.parseFloat(utils_1.removeLastChar(adapter_info.common.version, \".\"));\n const previousVersion = this.persistentData.version !== \"\" && this.persistentData.version !== undefined ? Number.parseFloat(utils_1.removeLastChar(this.persistentData.version, \".\")) : 0;\n this.logger.debug(`Handling of adapter update - currentVersion: ${currentVersion} previousVersion: ${previousVersion}`);\n if (previousVersion < currentVersion) {\n yield utils_1.handleUpdate(this, this.logger, previousVersion);\n this.persistentData.version = adapter_info.common.version;\n this.writePersistentData();\n }\n }\n }\n }\n catch (error) {\n this.logger.error(`Handling of adapter update - Error:`, error);\n }\n this.eufy = new EufySecurityAPI.EufySecurity(this, this.logger, countryCode, languageCode);\n this.eufy.on(\"stations\", (stations) => this.handleStations(stations));\n this.eufy.on(\"devices\", (devices) => this.handleDevices(devices));\n this.eufy.on(\"push message\", (messages) => this.handlePushNotification(messages));\n this.eufy.on(\"connect\", () => this.onConnect());\n this.eufy.on(\"close\", () => this.onClose());\n this.eufy.on(\"livestream start\", (station, device, url) => this.onStartLivestream(station, device, url));\n this.eufy.on(\"livestream stop\", (station, device) => this.onStopLivestream(station, device));\n this.eufy.on(\"push connect\", () => this.onPushConnect());\n this.eufy.on(\"push close\", () => this.onPushClose());\n const api = this.eufy.getApi();\n if (this.persistentData.api_base && this.persistentData.api_base != \"\") {\n this.logger.debug(`Load previous api_base: ${this.persistentData.api_base}`);\n api.setAPIBase(this.persistentData.api_base);\n }\n if (this.persistentData.login_hash && this.persistentData.login_hash != \"\") {\n this.logger.debug(`Load previous login_hash: ${this.persistentData.login_hash}`);\n if (utils_1.md5(`${this.config.username}:${this.config.password}`) != this.persistentData.login_hash) {\n this.logger.info(`Authentication properties changed, invalidate saved cloud token.`);\n this.persistentData.cloud_token = \"\";\n this.persistentData.cloud_token_expiration = 0;\n this.persistentData.api_base = \"\";\n }\n }\n else {\n this.persistentData.cloud_token = \"\";\n this.persistentData.cloud_token_expiration = 0;\n }\n if (this.persistentData.cloud_token && this.persistentData.cloud_token != \"\") {\n this.logger.debug(`Load previous token: ${this.persistentData.cloud_token} token_expiration: ${this.persistentData.cloud_token_expiration}`);\n api.setToken(this.persistentData.cloud_token);\n api.setTokenExpiration(new Date(this.persistentData.cloud_token_expiration));\n }\n if (!this.persistentData.openudid || this.persistentData.openudid == \"\") {\n this.persistentData.openudid = utils_1.generateUDID();\n this.logger.debug(`Generated new openudid: ${this.persistentData.openudid}`);\n }\n api.setOpenUDID(this.persistentData.openudid);\n if (!this.persistentData.serial_number || this.persistentData.serial_number == \"\") {\n this.persistentData.serial_number = utils_1.generateSerialnumber(12);\n this.logger.debug(`Generated new serial_number: ${this.persistentData.serial_number}`);\n }\n api.setSerialNumber(this.persistentData.serial_number);\n yield this.eufy.logon();\n });\n }", "function AppMeasurement(r){var a=this;a.version=\"2.8.2\";var k=window;k.s_c_in||(k.s_c_il=[],k.s_c_in=0);a._il=k.s_c_il;a._in=k.s_c_in;a._il[a._in]=a;k.s_c_in++;a._c=\"s_c\";var p=k.AppMeasurement.Xb;p||(p=null);var n=k,m,s;try{for(m=n.parent,s=n.location;m&&m.location&&s&&\"\"+m.location!=\"\"+s&&n.location&&\"\"+m.location!=\"\"+n.location&&m.location.host==s.host;)n=m,m=n.parent}catch(u){}a.F=function(a){try{console.log(a)}catch(b){}};a.Oa=function(a){return\"\"+parseInt(a)==\"\"+a};a.replace=function(a,b,d){return!a||\r\n0>a.indexOf(b)?a:a.split(b).join(d)};a.escape=function(c){var b,d;if(!c)return c;c=encodeURIComponent(c);for(b=0;7>b;b++)d=\"+~!*()'\".substring(b,b+1),0<=c.indexOf(d)&&(c=a.replace(c,d,\"%\"+d.charCodeAt(0).toString(16).toUpperCase()));return c};a.unescape=function(c){if(!c)return c;c=0<=c.indexOf(\"+\")?a.replace(c,\"+\",\" \"):c;try{return decodeURIComponent(c)}catch(b){}return unescape(c)};a.Fb=function(){var c=k.location.hostname,b=a.fpCookieDomainPeriods,d;b||(b=a.cookieDomainPeriods);if(c&&!a.Ga&&!/^[0-9.]+$/.test(c)&&\r\n(b=b?parseInt(b):2,b=2<b?b:2,d=c.lastIndexOf(\".\"),0<=d)){for(;0<=d&&1<b;)d=c.lastIndexOf(\".\",d-1),b--;a.Ga=0<d?c.substring(d):c}return a.Ga};a.c_r=a.cookieRead=function(c){c=a.escape(c);var b=\" \"+a.d.cookie,d=b.indexOf(\" \"+c+\"=\"),f=0>d?d:b.indexOf(\";\",d);c=0>d?\"\":a.unescape(b.substring(d+2+c.length,0>f?b.length:f));return\"[[B]]\"!=c?c:\"\"};a.c_w=a.cookieWrite=function(c,b,d){var f=a.Fb(),e=a.cookieLifetime,g;b=\"\"+b;e=e?(\"\"+e).toUpperCase():\"\";d&&\"SESSION\"!=e&&\"NONE\"!=e&&((g=\"\"!=b?parseInt(e?e:0):-60)?\r\n(d=new Date,d.setTime(d.getTime()+1E3*g)):1==d&&(d=new Date,g=d.getYear(),d.setYear(g+5+(1900>g?1900:0))));return c&&\"NONE\"!=e?(a.d.cookie=a.escape(c)+\"=\"+a.escape(\"\"!=b?b:\"[[B]]\")+\"; path=/;\"+(d&&\"SESSION\"!=e?\" expires=\"+d.toUTCString()+\";\":\"\")+(f?\" domain=\"+f+\";\":\"\"),a.cookieRead(c)==b):0};a.Cb=function(){var c=a.Util.getIeVersion();\"number\"===typeof c&&10>c&&(a.unsupportedBrowser=!0,a.rb(a,function(){}))};a.rb=function(a,b){for(var d in a)a.hasOwnProperty(d)&&\"function\"===typeof a[d]&&(a[d]=b)};\r\na.L=[];a.ja=function(c,b,d){if(a.Ha)return 0;a.maxDelay||(a.maxDelay=250);var f=0,e=(new Date).getTime()+a.maxDelay,g=a.d.visibilityState,h=[\"webkitvisibilitychange\",\"visibilitychange\"];g||(g=a.d.webkitVisibilityState);if(g&&\"prerender\"==g){if(!a.ka)for(a.ka=1,d=0;d<h.length;d++)a.d.addEventListener(h[d],function(){var c=a.d.visibilityState;c||(c=a.d.webkitVisibilityState);\"visible\"==c&&(a.ka=0,a.delayReady())});f=1;e=0}else d||a.p(\"_d\")&&(f=1);f&&(a.L.push({m:c,a:b,t:e}),a.ka||setTimeout(a.delayReady,\r\na.maxDelay));return f};a.delayReady=function(){var c=(new Date).getTime(),b=0,d;for(a.p(\"_d\")?b=1:a.za();0<a.L.length;){d=a.L.shift();if(b&&!d.t&&d.t>c){a.L.unshift(d);setTimeout(a.delayReady,parseInt(a.maxDelay/2));break}a.Ha=1;a[d.m].apply(a,d.a);a.Ha=0}};a.setAccount=a.sa=function(c){var b,d;if(!a.ja(\"setAccount\",arguments))if(a.account=c,a.allAccounts)for(b=a.allAccounts.concat(c.split(\",\")),a.allAccounts=[],b.sort(),d=0;d<b.length;d++)0!=d&&b[d-1]==b[d]||a.allAccounts.push(b[d]);else a.allAccounts=\r\nc.split(\",\")};a.foreachVar=function(c,b){var d,f,e,g,h=\"\";e=f=\"\";if(a.lightProfileID)d=a.P,(h=a.lightTrackVars)&&(h=\",\"+h+\",\"+a.oa.join(\",\")+\",\");else{d=a.g;if(a.pe||a.linkType)h=a.linkTrackVars,f=a.linkTrackEvents,a.pe&&(e=a.pe.substring(0,1).toUpperCase()+a.pe.substring(1),a[e]&&(h=a[e].Vb,f=a[e].Ub));h&&(h=\",\"+h+\",\"+a.H.join(\",\")+\",\");f&&h&&(h+=\",events,\")}b&&(b=\",\"+b+\",\");for(f=0;f<d.length;f++)e=d[f],(g=a[e])&&(!h||0<=h.indexOf(\",\"+e+\",\"))&&(!b||0<=b.indexOf(\",\"+e+\",\"))&&c(e,g)};a.r=function(c,\r\nb,d,f,e){var g=\"\",h,l,k,q,m=0;\"contextData\"==c&&(c=\"c\");if(b){for(h in b)if(!(Object.prototype[h]||e&&h.substring(0,e.length)!=e)&&b[h]&&(!d||0<=d.indexOf(\",\"+(f?f+\".\":\"\")+h+\",\"))){k=!1;if(m)for(l=0;l<m.length;l++)h.substring(0,m[l].length)==m[l]&&(k=!0);if(!k&&(\"\"==g&&(g+=\"&\"+c+\".\"),l=b[h],e&&(h=h.substring(e.length)),0<h.length))if(k=h.indexOf(\".\"),0<k)l=h.substring(0,k),k=(e?e:\"\")+l+\".\",m||(m=[]),m.push(k),g+=a.r(l,b,d,f,k);else if(\"boolean\"==typeof l&&(l=l?\"true\":\"false\"),l){if(\"retrieveLightData\"==\r\nf&&0>e.indexOf(\".contextData.\"))switch(k=h.substring(0,4),q=h.substring(4),h){case \"transactionID\":h=\"xact\";break;case \"channel\":h=\"ch\";break;case \"campaign\":h=\"v0\";break;default:a.Oa(q)&&(\"prop\"==k?h=\"c\"+q:\"eVar\"==k?h=\"v\"+q:\"list\"==k?h=\"l\"+q:\"hier\"==k&&(h=\"h\"+q,l=l.substring(0,255)))}g+=\"&\"+a.escape(h)+\"=\"+a.escape(l)}}\"\"!=g&&(g+=\"&.\"+c)}return g};a.usePostbacks=0;a.Ib=function(){var c=\"\",b,d,f,e,g,h,l,k,q=\"\",m=\"\",n=e=\"\";if(a.lightProfileID)b=a.P,(q=a.lightTrackVars)&&(q=\",\"+q+\",\"+a.oa.join(\",\")+\r\n\",\");else{b=a.g;if(a.pe||a.linkType)q=a.linkTrackVars,m=a.linkTrackEvents,a.pe&&(e=a.pe.substring(0,1).toUpperCase()+a.pe.substring(1),a[e]&&(q=a[e].Vb,m=a[e].Ub));q&&(q=\",\"+q+\",\"+a.H.join(\",\")+\",\");m&&(m=\",\"+m+\",\",q&&(q+=\",events,\"));a.events2&&(n+=(\"\"!=n?\",\":\"\")+a.events2)}if(a.visitor&&a.visitor.getCustomerIDs){e=p;if(g=a.visitor.getCustomerIDs())for(d in g)Object.prototype[d]||(f=g[d],\"object\"==typeof f&&(e||(e={}),f.id&&(e[d+\".id\"]=f.id),f.authState&&(e[d+\".as\"]=f.authState)));e&&(c+=a.r(\"cid\",\r\ne))}a.AudienceManagement&&a.AudienceManagement.isReady()&&(c+=a.r(\"d\",a.AudienceManagement.getEventCallConfigParams()));for(d=0;d<b.length;d++){e=b[d];g=a[e];f=e.substring(0,4);h=e.substring(4);g||(\"events\"==e&&n?(g=n,n=\"\"):\"marketingCloudOrgID\"==e&&a.visitor&&(g=a.visitor.marketingCloudOrgID));if(g&&(!q||0<=q.indexOf(\",\"+e+\",\"))){switch(e){case \"customerPerspective\":e=\"cp\";break;case \"marketingCloudOrgID\":e=\"mcorgid\";break;case \"supplementalDataID\":e=\"sdid\";break;case \"timestamp\":e=\"ts\";break;case \"dynamicVariablePrefix\":e=\r\n\"D\";break;case \"visitorID\":e=\"vid\";break;case \"marketingCloudVisitorID\":e=\"mid\";break;case \"analyticsVisitorID\":e=\"aid\";break;case \"audienceManagerLocationHint\":e=\"aamlh\";break;case \"audienceManagerBlob\":e=\"aamb\";break;case \"authState\":e=\"as\";break;case \"pageURL\":e=\"g\";255<g.length&&(a.pageURLRest=g.substring(255),g=g.substring(0,255));break;case \"pageURLRest\":e=\"-g\";break;case \"referrer\":e=\"r\";break;case \"vmk\":case \"visitorMigrationKey\":e=\"vmt\";break;case \"visitorMigrationServer\":e=\"vmf\";a.ssl&&\r\na.visitorMigrationServerSecure&&(g=\"\");break;case \"visitorMigrationServerSecure\":e=\"vmf\";!a.ssl&&a.visitorMigrationServer&&(g=\"\");break;case \"charSet\":e=\"ce\";break;case \"visitorNamespace\":e=\"ns\";break;case \"cookieDomainPeriods\":e=\"cdp\";break;case \"cookieLifetime\":e=\"cl\";break;case \"variableProvider\":e=\"vvp\";break;case \"currencyCode\":e=\"cc\";break;case \"channel\":e=\"ch\";break;case \"transactionID\":e=\"xact\";break;case \"campaign\":e=\"v0\";break;case \"latitude\":e=\"lat\";break;case \"longitude\":e=\"lon\";break;\r\ncase \"resolution\":e=\"s\";break;case \"colorDepth\":e=\"c\";break;case \"javascriptVersion\":e=\"j\";break;case \"javaEnabled\":e=\"v\";break;case \"cookiesEnabled\":e=\"k\";break;case \"browserWidth\":e=\"bw\";break;case \"browserHeight\":e=\"bh\";break;case \"connectionType\":e=\"ct\";break;case \"homepage\":e=\"hp\";break;case \"events\":n&&(g+=(\"\"!=g?\",\":\"\")+n);if(m)for(h=g.split(\",\"),g=\"\",f=0;f<h.length;f++)l=h[f],k=l.indexOf(\"=\"),0<=k&&(l=l.substring(0,k)),k=l.indexOf(\":\"),0<=k&&(l=l.substring(0,k)),0<=m.indexOf(\",\"+l+\",\")&&(g+=\r\n(g?\",\":\"\")+h[f]);break;case \"events2\":g=\"\";break;case \"contextData\":c+=a.r(\"c\",a[e],q,e);g=\"\";break;case \"lightProfileID\":e=\"mtp\";break;case \"lightStoreForSeconds\":e=\"mtss\";a.lightProfileID||(g=\"\");break;case \"lightIncrementBy\":e=\"mti\";a.lightProfileID||(g=\"\");break;case \"retrieveLightProfiles\":e=\"mtsr\";break;case \"deleteLightProfiles\":e=\"mtsd\";break;case \"retrieveLightData\":a.retrieveLightProfiles&&(c+=a.r(\"mts\",a[e],q,e));g=\"\";break;default:a.Oa(h)&&(\"prop\"==f?e=\"c\"+h:\"eVar\"==f?e=\"v\"+h:\"list\"==\r\nf?e=\"l\"+h:\"hier\"==f&&(e=\"h\"+h,g=g.substring(0,255)))}g&&(c+=\"&\"+e+\"=\"+(\"pev\"!=e.substring(0,3)?a.escape(g):g))}\"pev3\"==e&&a.e&&(c+=a.e)}a.na&&(c+=\"&lrt=\"+a.na,a.na=null);return c};a.D=function(a){var b=a.tagName;if(\"undefined\"!=\"\"+a.$b||\"undefined\"!=\"\"+a.Qb&&\"HTML\"!=(\"\"+a.Qb).toUpperCase())return\"\";b=b&&b.toUpperCase?b.toUpperCase():\"\";\"SHAPE\"==b&&(b=\"\");b&&((\"INPUT\"==b||\"BUTTON\"==b)&&a.type&&a.type.toUpperCase?b=a.type.toUpperCase():!b&&a.href&&(b=\"A\"));return b};a.Ka=function(a){var b=k.location,\r\nd=a.href?a.href:\"\",f,e,g;f=d.indexOf(\":\");e=d.indexOf(\"?\");g=d.indexOf(\"/\");d&&(0>f||0<=e&&f>e||0<=g&&f>g)&&(e=a.protocol&&1<a.protocol.length?a.protocol:b.protocol?b.protocol:\"\",f=b.pathname.lastIndexOf(\"/\"),d=(e?e+\"//\":\"\")+(a.host?a.host:b.host?b.host:\"\")+(\"/\"!=d.substring(0,1)?b.pathname.substring(0,0>f?0:f)+\"/\":\"\")+d);return d};a.M=function(c){var b=a.D(c),d,f,e=\"\",g=0;return b&&(d=c.protocol,f=c.onclick,!c.href||\"A\"!=b&&\"AREA\"!=b||f&&d&&!(0>d.toLowerCase().indexOf(\"javascript\"))?f?(e=a.replace(a.replace(a.replace(a.replace(\"\"+\r\nf,\"\\r\",\"\"),\"\\n\",\"\"),\"\\t\",\"\"),\" \",\"\"),g=2):\"INPUT\"==b||\"SUBMIT\"==b?(c.value?e=c.value:c.innerText?e=c.innerText:c.textContent&&(e=c.textContent),g=3):\"IMAGE\"==b&&c.src&&(e=c.src):e=a.Ka(c),e)?{id:e.substring(0,100),type:g}:0};a.Yb=function(c){for(var b=a.D(c),d=a.M(c);c&&!d&&\"BODY\"!=b;)if(c=c.parentElement?c.parentElement:c.parentNode)b=a.D(c),d=a.M(c);d&&\"BODY\"!=b||(c=0);c&&(b=c.onclick?\"\"+c.onclick:\"\",0<=b.indexOf(\".tl(\")||0<=b.indexOf(\".trackLink(\"))&&(c=0);return c};a.Pb=function(){var c,b,d=a.linkObject,\r\nf=a.linkType,e=a.linkURL,g,h;a.pa=1;d||(a.pa=0,d=a.clickObject);if(d){c=a.D(d);for(b=a.M(d);d&&!b&&\"BODY\"!=c;)if(d=d.parentElement?d.parentElement:d.parentNode)c=a.D(d),b=a.M(d);b&&\"BODY\"!=c||(d=0);if(d&&!a.linkObject){var l=d.onclick?\"\"+d.onclick:\"\";if(0<=l.indexOf(\".tl(\")||0<=l.indexOf(\".trackLink(\"))d=0}}else a.pa=1;!e&&d&&(e=a.Ka(d));e&&!a.linkLeaveQueryString&&(g=e.indexOf(\"?\"),0<=g&&(e=e.substring(0,g)));if(!f&&e){var m=0,q=0,n;if(a.trackDownloadLinks&&a.linkDownloadFileTypes)for(l=e.toLowerCase(),\r\ng=l.indexOf(\"?\"),h=l.indexOf(\"#\"),0<=g?0<=h&&h<g&&(g=h):g=h,0<=g&&(l=l.substring(0,g)),g=a.linkDownloadFileTypes.toLowerCase().split(\",\"),h=0;h<g.length;h++)(n=g[h])&&l.substring(l.length-(n.length+1))==\".\"+n&&(f=\"d\");if(a.trackExternalLinks&&!f&&(l=e.toLowerCase(),a.Na(l)&&(a.linkInternalFilters||(a.linkInternalFilters=k.location.hostname),g=0,a.linkExternalFilters?(g=a.linkExternalFilters.toLowerCase().split(\",\"),m=1):a.linkInternalFilters&&(g=a.linkInternalFilters.toLowerCase().split(\",\")),g))){for(h=\r\n0;h<g.length;h++)n=g[h],0<=l.indexOf(n)&&(q=1);q?m&&(f=\"e\"):m||(f=\"e\")}}a.linkObject=d;a.linkURL=e;a.linkType=f;if(a.trackClickMap||a.trackInlineStats)a.e=\"\",d&&(f=a.pageName,e=1,d=d.sourceIndex,f||(f=a.pageURL,e=0),k.s_objectID&&(b.id=k.s_objectID,d=b.type=1),f&&b&&b.id&&c&&(a.e=\"&pid=\"+a.escape(f.substring(0,255))+(e?\"&pidt=\"+e:\"\")+\"&oid=\"+a.escape(b.id.substring(0,100))+(b.type?\"&oidt=\"+b.type:\"\")+\"&ot=\"+c+(d?\"&oi=\"+d:\"\")))};a.Jb=function(){var c=a.pa,b=a.linkType,d=a.linkURL,f=a.linkName;b&&(d||\r\nf)&&(b=b.toLowerCase(),\"d\"!=b&&\"e\"!=b&&(b=\"o\"),a.pe=\"lnk_\"+b,a.pev1=d?a.escape(d):\"\",a.pev2=f?a.escape(f):\"\",c=1);a.abort&&(c=0);if(a.trackClickMap||a.trackInlineStats||a.ActivityMap){var b={},d=0,e=a.cookieRead(\"s_sq\"),g=e?e.split(\"&\"):0,h,l,k,e=0;if(g)for(h=0;h<g.length;h++)l=g[h].split(\"=\"),f=a.unescape(l[0]).split(\",\"),l=a.unescape(l[1]),b[l]=f;f=a.account.split(\",\");h={};for(k in a.contextData)k&&!Object.prototype[k]&&\"a.activitymap.\"==k.substring(0,14)&&(h[k]=a.contextData[k],a.contextData[k]=\r\n\"\");a.e=a.r(\"c\",h)+(a.e?a.e:\"\");if(c||a.e){c&&!a.e&&(e=1);for(l in b)if(!Object.prototype[l])for(k=0;k<f.length;k++)for(e&&(g=b[l].join(\",\"),g==a.account&&(a.e+=(\"&\"!=l.charAt(0)?\"&\":\"\")+l,b[l]=[],d=1)),h=0;h<b[l].length;h++)g=b[l][h],g==f[k]&&(e&&(a.e+=\"&u=\"+a.escape(g)+(\"&\"!=l.charAt(0)?\"&\":\"\")+l+\"&u=0\"),b[l].splice(h,1),d=1);c||(d=1);if(d){e=\"\";h=2;!c&&a.e&&(e=a.escape(f.join(\",\"))+\"=\"+a.escape(a.e),h=1);for(l in b)!Object.prototype[l]&&0<h&&0<b[l].length&&(e+=(e?\"&\":\"\")+a.escape(b[l].join(\",\"))+\r\n\"=\"+a.escape(l),h--);a.cookieWrite(\"s_sq\",e)}}}return c};a.Kb=function(){if(!a.Tb){var c=new Date,b=n.location,d,f,e=f=d=\"\",g=\"\",h=\"\",l=\"1.2\",k=a.cookieWrite(\"s_cc\",\"true\",0)?\"Y\":\"N\",m=\"\",p=\"\";if(c.setUTCDate&&(l=\"1.3\",(0).toPrecision&&(l=\"1.5\",c=[],c.forEach))){l=\"1.6\";f=0;d={};try{f=new Iterator(d),f.next&&(l=\"1.7\",c.reduce&&(l=\"1.8\",l.trim&&(l=\"1.8.1\",Date.parse&&(l=\"1.8.2\",Object.create&&(l=\"1.8.5\")))))}catch(r){}}d=screen.width+\"x\"+screen.height;e=navigator.javaEnabled()?\"Y\":\"N\";f=screen.pixelDepth?\r\nscreen.pixelDepth:screen.colorDepth;g=a.w.innerWidth?a.w.innerWidth:a.d.documentElement.offsetWidth;h=a.w.innerHeight?a.w.innerHeight:a.d.documentElement.offsetHeight;try{a.b.addBehavior(\"#default#homePage\"),m=a.b.Zb(b)?\"Y\":\"N\"}catch(s){}try{a.b.addBehavior(\"#default#clientCaps\"),p=a.b.connectionType}catch(t){}a.resolution=d;a.colorDepth=f;a.javascriptVersion=l;a.javaEnabled=e;a.cookiesEnabled=k;a.browserWidth=g;a.browserHeight=h;a.connectionType=p;a.homepage=m;a.Tb=1}};a.Q={};a.loadModule=function(c,\r\nb){var d=a.Q[c];if(!d){d=k[\"AppMeasurement_Module_\"+c]?new k[\"AppMeasurement_Module_\"+c](a):{};a.Q[c]=a[c]=d;d.kb=function(){return d.qb};d.sb=function(b){if(d.qb=b)a[c+\"_onLoad\"]=b,a.ja(c+\"_onLoad\",[a,d],1)||b(a,d)};try{Object.defineProperty?Object.defineProperty(d,\"onLoad\",{get:d.kb,set:d.sb}):d._olc=1}catch(f){d._olc=1}}b&&(a[c+\"_onLoad\"]=b,a.ja(c+\"_onLoad\",[a,d],1)||b(a,d))};a.p=function(c){var b,d;for(b in a.Q)if(!Object.prototype[b]&&(d=a.Q[b])&&(d._olc&&d.onLoad&&(d._olc=0,d.onLoad(a,d)),d[c]&&\r\nd[c]()))return 1;return 0};a.Mb=function(){var c=Math.floor(1E13*Math.random()),b=a.visitorSampling,d=a.visitorSamplingGroup,d=\"s_vsn_\"+(a.visitorNamespace?a.visitorNamespace:a.account)+(d?\"_\"+d:\"\"),f=a.cookieRead(d);if(b){b*=100;f&&(f=parseInt(f));if(!f){if(!a.cookieWrite(d,c))return 0;f=c}if(f%1E4>b)return 0}return 1};a.R=function(c,b){var d,f,e,g,h,l;for(d=0;2>d;d++)for(f=0<d?a.Ca:a.g,e=0;e<f.length;e++)if(g=f[e],(h=c[g])||c[\"!\"+g]){if(!b&&(\"contextData\"==g||\"retrieveLightData\"==g)&&a[g])for(l in a[g])h[l]||\r\n(h[l]=a[g][l]);a[g]=h}};a.Ya=function(c,b){var d,f,e,g;for(d=0;2>d;d++)for(f=0<d?a.Ca:a.g,e=0;e<f.length;e++)g=f[e],c[g]=a[g],b||c[g]||(c[\"!\"+g]=1)};a.Eb=function(a){var b,d,f,e,g,h=0,l,k=\"\",m=\"\";if(a&&255<a.length&&(b=\"\"+a,d=b.indexOf(\"?\"),0<d&&(l=b.substring(d+1),b=b.substring(0,d),e=b.toLowerCase(),f=0,\"http://\"==e.substring(0,7)?f+=7:\"https://\"==e.substring(0,8)&&(f+=8),d=e.indexOf(\"/\",f),0<d&&(e=e.substring(f,d),g=b.substring(d),b=b.substring(0,d),0<=e.indexOf(\"google\")?h=\",q,ie,start,search_key,word,kw,cd,\":\r\n0<=e.indexOf(\"yahoo.co\")&&(h=\",p,ei,\"),h&&l)))){if((a=l.split(\"&\"))&&1<a.length){for(f=0;f<a.length;f++)e=a[f],d=e.indexOf(\"=\"),0<d&&0<=h.indexOf(\",\"+e.substring(0,d)+\",\")?k+=(k?\"&\":\"\")+e:m+=(m?\"&\":\"\")+e;k&&m?l=k+\"&\"+m:m=\"\"}d=253-(l.length-m.length)-b.length;a=b+(0<d?g.substring(0,d):\"\")+\"?\"+l}return a};a.eb=function(c){var b=a.d.visibilityState,d=[\"webkitvisibilitychange\",\"visibilitychange\"];b||(b=a.d.webkitVisibilityState);if(b&&\"prerender\"==b){if(c)for(b=0;b<d.length;b++)a.d.addEventListener(d[b],\r\nfunction(){var b=a.d.visibilityState;b||(b=a.d.webkitVisibilityState);\"visible\"==b&&c()});return!1}return!0};a.fa=!1;a.J=!1;a.ub=function(){a.J=!0;a.j()};a.da=!1;a.V=!1;a.pb=function(c){a.marketingCloudVisitorID=c;a.V=!0;a.j()};a.ga=!1;a.W=!1;a.vb=function(c){a.visitorOptedOut=c;a.W=!0;a.j()};a.aa=!1;a.S=!1;a.$a=function(c){a.analyticsVisitorID=c;a.S=!0;a.j()};a.ca=!1;a.U=!1;a.bb=function(c){a.audienceManagerLocationHint=c;a.U=!0;a.j()};a.ba=!1;a.T=!1;a.ab=function(c){a.audienceManagerBlob=c;a.T=\r\n!0;a.j()};a.cb=function(c){a.maxDelay||(a.maxDelay=250);return a.p(\"_d\")?(c&&setTimeout(function(){c()},a.maxDelay),!1):!0};a.ea=!1;a.I=!1;a.za=function(){a.I=!0;a.j()};a.isReadyToTrack=function(){var c=!0,b=a.visitor,d,f,e;a.fa||a.J||(a.eb(a.ub)?a.J=!0:a.fa=!0);if(a.fa&&!a.J)return!1;b&&b.isAllowed()&&(a.da||a.marketingCloudVisitorID||!b.getMarketingCloudVisitorID||(a.da=!0,a.marketingCloudVisitorID=b.getMarketingCloudVisitorID([a,a.pb]),a.marketingCloudVisitorID&&(a.V=!0)),a.ga||a.visitorOptedOut||\r\n!b.isOptedOut||(a.ga=!0,a.visitorOptedOut=b.isOptedOut([a,a.vb]),a.visitorOptedOut!=p&&(a.W=!0)),a.aa||a.analyticsVisitorID||!b.getAnalyticsVisitorID||(a.aa=!0,a.analyticsVisitorID=b.getAnalyticsVisitorID([a,a.$a]),a.analyticsVisitorID&&(a.S=!0)),a.ca||a.audienceManagerLocationHint||!b.getAudienceManagerLocationHint||(a.ca=!0,a.audienceManagerLocationHint=b.getAudienceManagerLocationHint([a,a.bb]),a.audienceManagerLocationHint&&(a.U=!0)),a.ba||a.audienceManagerBlob||!b.getAudienceManagerBlob||(a.ba=\r\n!0,a.audienceManagerBlob=b.getAudienceManagerBlob([a,a.ab]),a.audienceManagerBlob&&(a.T=!0)),c=a.da&&!a.V&&!a.marketingCloudVisitorID,b=a.aa&&!a.S&&!a.analyticsVisitorID,d=a.ca&&!a.U&&!a.audienceManagerLocationHint,f=a.ba&&!a.T&&!a.audienceManagerBlob,e=a.ga&&!a.W,c=c||b||d||f||e?!1:!0);a.ea||a.I||(a.cb(a.za)?a.I=!0:a.ea=!0);a.ea&&!a.I&&(c=!1);return c};a.o=p;a.u=0;a.callbackWhenReadyToTrack=function(c,b,d){var f;f={};f.zb=c;f.yb=b;f.wb=d;a.o==p&&(a.o=[]);a.o.push(f);0==a.u&&(a.u=setInterval(a.j,\r\n100))};a.j=function(){var c;if(a.isReadyToTrack()&&(a.tb(),a.o!=p))for(;0<a.o.length;)c=a.o.shift(),c.yb.apply(c.zb,c.wb)};a.tb=function(){a.u&&(clearInterval(a.u),a.u=0)};a.mb=function(c){var b,d,f=p,e=p;if(!a.isReadyToTrack()){b=[];if(c!=p)for(d in f={},c)f[d]=c[d];e={};a.Ya(e,!0);b.push(f);b.push(e);a.callbackWhenReadyToTrack(a,a.track,b);return!0}return!1};a.Gb=function(){var c=a.cookieRead(\"s_fid\"),b=\"\",d=\"\",f;f=8;var e=4;if(!c||0>c.indexOf(\"-\")){for(c=0;16>c;c++)f=Math.floor(Math.random()*f),\r\nb+=\"0123456789ABCDEF\".substring(f,f+1),f=Math.floor(Math.random()*e),d+=\"0123456789ABCDEF\".substring(f,f+1),f=e=16;c=b+\"-\"+d}a.cookieWrite(\"s_fid\",c,1)||(c=0);return c};a.t=a.track=function(c,b){var d,f=new Date,e=\"s\"+Math.floor(f.getTime()/108E5)%10+Math.floor(1E13*Math.random()),g=f.getYear(),g=\"t=\"+a.escape(f.getDate()+\"/\"+f.getMonth()+\"/\"+(1900>g?g+1900:g)+\" \"+f.getHours()+\":\"+f.getMinutes()+\":\"+f.getSeconds()+\" \"+f.getDay()+\" \"+f.getTimezoneOffset());a.visitor&&a.visitor.getAuthState&&(a.authState=\r\na.visitor.getAuthState());a.p(\"_s\");a.mb(c)||(b&&a.R(b),c&&(d={},a.Ya(d,0),a.R(c)),a.Mb()&&!a.visitorOptedOut&&(a.analyticsVisitorID||a.marketingCloudVisitorID||(a.fid=a.Gb()),a.Pb(),a.usePlugins&&a.doPlugins&&a.doPlugins(a),a.account&&(a.abort||(a.trackOffline&&!a.timestamp&&(a.timestamp=Math.floor(f.getTime()/1E3)),f=k.location,a.pageURL||(a.pageURL=f.href?f.href:f),a.referrer||a.Za||(f=a.Util.getQueryParam(\"adobe_mc_ref\",null,null,!0),a.referrer=f||void 0===f?void 0===f?\"\":f:n.document.referrer),\r\na.Za=1,a.referrer=a.Eb(a.referrer),a.p(\"_g\")),a.Jb()&&!a.abort&&(a.visitor&&!a.supplementalDataID&&a.visitor.getSupplementalDataID&&(a.supplementalDataID=a.visitor.getSupplementalDataID(\"AppMeasurement:\"+a._in,a.expectSupplementalData?!1:!0)),a.Kb(),g+=a.Ib(),a.ob(e,g),a.p(\"_t\"),a.referrer=\"\"))),c&&a.R(d,1));a.abort=a.supplementalDataID=a.timestamp=a.pageURLRest=a.linkObject=a.clickObject=a.linkURL=a.linkName=a.linkType=k.s_objectID=a.pe=a.pev1=a.pev2=a.pev3=a.e=a.lightProfileID=0};a.Ba=[];a.registerPreTrackCallback=\r\nfunction(c){for(var b=[],d=1;d<arguments.length;d++)b.push(arguments[d]);\"function\"==typeof c?a.Ba.push([c,b]):a.debugTracking&&a.F(\"DEBUG: Non function type passed to registerPreTrackCallback\")};a.hb=function(c){a.xa(a.Ba,c)};a.Aa=[];a.registerPostTrackCallback=function(c){for(var b=[],d=1;d<arguments.length;d++)b.push(arguments[d]);\"function\"==typeof c?a.Aa.push([c,b]):a.debugTracking&&a.F(\"DEBUG: Non function type passed to registerPostTrackCallback\")};a.gb=function(c){a.xa(a.Aa,c)};a.xa=function(c,\r\nb){if(\"object\"==typeof c)for(var d=0;d<c.length;d++){var f=c[d][0],e=c[d][1];e.unshift(b);if(\"function\"==typeof f)try{f.apply(null,e)}catch(g){a.debugTracking&&a.F(g.message)}}};a.tl=a.trackLink=function(c,b,d,f,e){a.linkObject=c;a.linkType=b;a.linkName=d;e&&(a.l=c,a.A=e);return a.track(f)};a.trackLight=function(c,b,d,f){a.lightProfileID=c;a.lightStoreForSeconds=b;a.lightIncrementBy=d;return a.track(f)};a.clearVars=function(){var c,b;for(c=0;c<a.g.length;c++)if(b=a.g[c],\"prop\"==b.substring(0,4)||\r\n\"eVar\"==b.substring(0,4)||\"hier\"==b.substring(0,4)||\"list\"==b.substring(0,4)||\"channel\"==b||\"events\"==b||\"eventList\"==b||\"products\"==b||\"productList\"==b||\"purchaseID\"==b||\"transactionID\"==b||\"state\"==b||\"zip\"==b||\"campaign\"==b)a[b]=void 0};a.tagContainerMarker=\"\";a.ob=function(c,b){var d=a.ib()+\"/\"+c+\"?AQB=1&ndh=1&pf=1&\"+(a.ya()?\"callback=s_c_il[\"+a._in+\"].doPostbacks&et=1&\":\"\")+b+\"&AQE=1\";a.hb(d);a.fb(d);a.X()};a.ib=function(){var c=a.jb();return\"http\"+(a.ssl?\"s\":\"\")+\"://\"+c+\"/b/ss/\"+a.account+\"/\"+\r\n(a.mobile?\"5.\":\"\")+(a.ya()?\"10\":\"1\")+\"/JS-\"+a.version+(a.Sb?\"T\":\"\")+(a.tagContainerMarker?\"-\"+a.tagContainerMarker:\"\")};a.ya=function(){return a.AudienceManagement&&a.AudienceManagement.isReady()||0!=a.usePostbacks};a.jb=function(){var c=a.dc,b=a.trackingServer;b?a.trackingServerSecure&&a.ssl&&(b=a.trackingServerSecure):(c=c?(\"\"+c).toLowerCase():\"d1\",\"d1\"==c?c=\"112\":\"d2\"==c&&(c=\"122\"),b=a.lb()+\".\"+c+\".2o7.net\");return b};a.lb=function(){var c=a.visitorNamespace;c||(c=a.account.split(\",\")[0],c=c.replace(/[^0-9a-z]/gi,\r\n\"\"));return c};a.Xa=/{(%?)(.*?)(%?)}/;a.Wb=RegExp(a.Xa.source,\"g\");a.Db=function(c){if(\"object\"==typeof c.dests)for(var b=0;b<c.dests.length;++b){var d=c.dests[b];if(\"string\"==typeof d.c&&\"aa.\"==d.id.substr(0,3))for(var f=d.c.match(a.Wb),e=0;e<f.length;++e){var g=f[e],h=g.match(a.Xa),k=\"\";\"%\"==h[1]&&\"timezone_offset\"==h[2]?k=(new Date).getTimezoneOffset():\"%\"==h[1]&&\"timestampz\"==h[2]&&(k=a.Hb());d.c=d.c.replace(g,a.escape(k))}}};a.Hb=function(){var c=new Date,b=new Date(6E4*Math.abs(c.getTimezoneOffset()));\r\nreturn a.k(4,c.getFullYear())+\"-\"+a.k(2,c.getMonth()+1)+\"-\"+a.k(2,c.getDate())+\"T\"+a.k(2,c.getHours())+\":\"+a.k(2,c.getMinutes())+\":\"+a.k(2,c.getSeconds())+(0<c.getTimezoneOffset()?\"-\":\"+\")+a.k(2,b.getUTCHours())+\":\"+a.k(2,b.getUTCMinutes())};a.k=function(a,b){return(Array(a+1).join(0)+b).slice(-a)};a.ua={};a.doPostbacks=function(c){if(\"object\"==typeof c)if(a.Db(c),\"object\"==typeof a.AudienceManagement&&\"function\"==typeof a.AudienceManagement.isReady&&a.AudienceManagement.isReady()&&\"function\"==typeof a.AudienceManagement.passData)a.AudienceManagement.passData(c);\r\nelse if(\"object\"==typeof c&&\"object\"==typeof c.dests)for(var b=0;b<c.dests.length;++b){var d=c.dests[b];\"object\"==typeof d&&\"string\"==typeof d.c&&\"string\"==typeof d.id&&\"aa.\"==d.id.substr(0,3)&&(a.ua[d.id]=new Image,a.ua[d.id].alt=\"\",a.ua[d.id].src=d.c)}};a.fb=function(c){a.i||a.Lb();a.i.push(c);a.ma=a.C();a.Va()};a.Lb=function(){a.i=a.Nb();a.i||(a.i=[])};a.Nb=function(){var c,b;if(a.ta()){try{(b=k.localStorage.getItem(a.qa()))&&(c=k.JSON.parse(b))}catch(d){}return c}};a.ta=function(){var c=!0;a.trackOffline&&\r\na.offlineFilename&&k.localStorage&&k.JSON||(c=!1);return c};a.La=function(){var c=0;a.i&&(c=a.i.length);a.q&&c++;return c};a.X=function(){if(a.q&&(a.B&&a.B.complete&&a.B.G&&a.B.wa(),a.q))return;a.Ma=p;if(a.ra)a.ma>a.O&&a.Ta(a.i),a.va(500);else{var c=a.xb();if(0<c)a.va(c);else if(c=a.Ia())a.q=1,a.Ob(c),a.Rb(c)}};a.va=function(c){a.Ma||(c||(c=0),a.Ma=setTimeout(a.X,c))};a.xb=function(){var c;if(!a.trackOffline||0>=a.offlineThrottleDelay)return 0;c=a.C()-a.Ra;return a.offlineThrottleDelay<c?0:a.offlineThrottleDelay-\r\nc};a.Ia=function(){if(0<a.i.length)return a.i.shift()};a.Ob=function(c){if(a.debugTracking){var b=\"AppMeasurement Debug: \"+c;c=c.split(\"&\");var d;for(d=0;d<c.length;d++)b+=\"\\n\\t\"+a.unescape(c[d]);a.F(b)}};a.nb=function(){return a.marketingCloudVisitorID||a.analyticsVisitorID};a.Z=!1;var t;try{t=JSON.parse('{\"x\":\"y\"}')}catch(w){t=null}t&&\"y\"==t.x?(a.Z=!0,a.Y=function(a){return JSON.parse(a)}):k.$&&k.$.parseJSON?(a.Y=function(a){return k.$.parseJSON(a)},a.Z=!0):a.Y=function(){return null};a.Rb=function(c){var b,\r\nd,f;a.nb()&&2047<c.length&&(\"undefined\"!=typeof XMLHttpRequest&&(b=new XMLHttpRequest,\"withCredentials\"in b?d=1:b=0),b||\"undefined\"==typeof XDomainRequest||(b=new XDomainRequest,d=2),b&&(a.AudienceManagement&&a.AudienceManagement.isReady()||0!=a.usePostbacks)&&(a.Z?b.Da=!0:b=0));!b&&a.Wa&&(c=c.substring(0,2047));!b&&a.d.createElement&&(0!=a.usePostbacks||a.AudienceManagement&&a.AudienceManagement.isReady())&&(b=a.d.createElement(\"SCRIPT\"))&&\"async\"in b&&((f=(f=a.d.getElementsByTagName(\"HEAD\"))&&f[0]?\r\nf[0]:a.d.body)?(b.type=\"text/javascript\",b.setAttribute(\"async\",\"async\"),d=3):b=0);b||(b=new Image,b.alt=\"\",b.abort||\"undefined\"===typeof k.InstallTrigger||(b.abort=function(){b.src=p}));b.Sa=Date.now();b.Fa=function(){try{b.G&&(clearTimeout(b.G),b.G=0)}catch(a){}};b.onload=b.wa=function(){b.Sa&&(a.na=Date.now()-b.Sa);a.gb(c);b.Fa();a.Bb();a.ha();a.q=0;a.X();if(b.Da){b.Da=!1;try{a.doPostbacks(a.Y(b.responseText))}catch(d){}}};b.onabort=b.onerror=b.Ja=function(){b.Fa();(a.trackOffline||a.ra)&&a.q&&\r\na.i.unshift(a.Ab);a.q=0;a.ma>a.O&&a.Ta(a.i);a.ha();a.va(500)};b.onreadystatechange=function(){4==b.readyState&&(200==b.status?b.wa():b.Ja())};a.Ra=a.C();if(1==d||2==d){var e=c.indexOf(\"?\");f=c.substring(0,e);e=c.substring(e+1);e=e.replace(/&callback=[a-zA-Z0-9_.\\[\\]]+/,\"\");1==d?(b.open(\"POST\",f,!0),b.send(e)):2==d&&(b.open(\"POST\",f),b.send(e))}else if(b.src=c,3==d){if(a.Pa)try{f.removeChild(a.Pa)}catch(g){}f.firstChild?f.insertBefore(b,f.firstChild):f.appendChild(b);a.Pa=a.B}b.G=setTimeout(function(){b.G&&\r\n(b.complete?b.wa():(a.trackOffline&&b.abort&&b.abort(),b.Ja()))},5E3);a.Ab=c;a.B=k[\"s_i_\"+a.replace(a.account,\",\",\"_\")]=b;if(a.useForcedLinkTracking&&a.K||a.A)a.forcedLinkTrackingTimeout||(a.forcedLinkTrackingTimeout=250),a.ia=setTimeout(a.ha,a.forcedLinkTrackingTimeout)};a.Bb=function(){if(a.ta()&&!(a.Qa>a.O))try{k.localStorage.removeItem(a.qa()),a.Qa=a.C()}catch(c){}};a.Ta=function(c){if(a.ta()){a.Va();try{k.localStorage.setItem(a.qa(),k.JSON.stringify(c)),a.O=a.C()}catch(b){}}};a.Va=function(){if(a.trackOffline){if(!a.offlineLimit||\r\n0>=a.offlineLimit)a.offlineLimit=10;for(;a.i.length>a.offlineLimit;)a.Ia()}};a.forceOffline=function(){a.ra=!0};a.forceOnline=function(){a.ra=!1};a.qa=function(){return a.offlineFilename+\"-\"+a.visitorNamespace+a.account};a.C=function(){return(new Date).getTime()};a.Na=function(a){a=a.toLowerCase();return 0!=a.indexOf(\"#\")&&0!=a.indexOf(\"about:\")&&0!=a.indexOf(\"opera:\")&&0!=a.indexOf(\"javascript:\")?!0:!1};a.setTagContainer=function(c){var b,d,f;a.Sb=c;for(b=0;b<a._il.length;b++)if((d=a._il[b])&&\"s_l\"==\r\nd._c&&d.tagContainerName==c){a.R(d);if(d.lmq)for(b=0;b<d.lmq.length;b++)f=d.lmq[b],a.loadModule(f.n);if(d.ml)for(f in d.ml)if(a[f])for(b in c=a[f],f=d.ml[f],f)!Object.prototype[b]&&(\"function\"!=typeof f[b]||0>(\"\"+f[b]).indexOf(\"s_c_il\"))&&(c[b]=f[b]);if(d.mmq)for(b=0;b<d.mmq.length;b++)f=d.mmq[b],a[f.m]&&(c=a[f.m],c[f.f]&&\"function\"==typeof c[f.f]&&(f.a?c[f.f].apply(c,f.a):c[f.f].apply(c)));if(d.tq)for(b=0;b<d.tq.length;b++)a.track(d.tq[b]);d.s=a;break}};a.Util={urlEncode:a.escape,urlDecode:a.unescape,\r\ncookieRead:a.cookieRead,cookieWrite:a.cookieWrite,getQueryParam:function(c,b,d,f){var e,g=\"\";b||(b=a.pageURL?a.pageURL:k.location);d=d?d:\"&\";if(!c||!b)return g;b=\"\"+b;e=b.indexOf(\"?\");if(0>e)return g;b=d+b.substring(e+1)+d;if(!f||!(0<=b.indexOf(d+c+d)||0<=b.indexOf(d+c+\"=\"+d))){e=b.indexOf(\"#\");0<=e&&(b=b.substr(0,e)+d);e=b.indexOf(d+c+\"=\");if(0>e)return g;b=b.substring(e+d.length+c.length+1);e=b.indexOf(d);0<=e&&(b=b.substring(0,e));0<b.length&&(g=a.unescape(b));return g}},getIeVersion:function(){if(document.documentMode)return document.documentMode;\r\nfor(var a=7;4<a;a--){var b=document.createElement(\"div\");b.innerHTML=\"\\x3c!--[if IE \"+a+\"]><span></span><![endif]--\\x3e\";if(b.getElementsByTagName(\"span\").length)return a}return null}};a.H=\"supplementalDataID timestamp dynamicVariablePrefix visitorID marketingCloudVisitorID analyticsVisitorID audienceManagerLocationHint authState fid vmk visitorMigrationKey visitorMigrationServer visitorMigrationServerSecure charSet visitorNamespace cookieDomainPeriods fpCookieDomainPeriods cookieLifetime pageName pageURL customerPerspective referrer contextData currencyCode lightProfileID lightStoreForSeconds lightIncrementBy retrieveLightProfiles deleteLightProfiles retrieveLightData\".split(\" \");\r\na.g=a.H.concat(\"purchaseID variableProvider channel server pageType transactionID campaign state zip events events2 products audienceManagerBlob tnt\".split(\" \"));a.oa=\"timestamp charSet visitorNamespace cookieDomainPeriods cookieLifetime contextData lightProfileID lightStoreForSeconds lightIncrementBy\".split(\" \");a.P=a.oa.slice(0);a.Ca=\"account allAccounts debugTracking visitor visitorOptedOut trackOffline offlineLimit offlineThrottleDelay offlineFilename usePlugins doPlugins configURL visitorSampling visitorSamplingGroup linkObject clickObject linkURL linkName linkType trackDownloadLinks trackExternalLinks trackClickMap trackInlineStats linkLeaveQueryString linkTrackVars linkTrackEvents linkDownloadFileTypes linkExternalFilters linkInternalFilters useForcedLinkTracking forcedLinkTrackingTimeout trackingServer trackingServerSecure ssl abort mobile dc lightTrackVars maxDelay expectSupplementalData usePostbacks registerPreTrackCallback registerPostTrackCallback AudienceManagement\".split(\" \");\r\nfor(m=0;250>=m;m++)76>m&&(a.g.push(\"prop\"+m),a.P.push(\"prop\"+m)),a.g.push(\"eVar\"+m),a.P.push(\"eVar\"+m),6>m&&a.g.push(\"hier\"+m),4>m&&a.g.push(\"list\"+m);m=\"pe pev1 pev2 pev3 latitude longitude resolution colorDepth javascriptVersion javaEnabled cookiesEnabled browserWidth browserHeight connectionType homepage pageURLRest marketingCloudOrgID\".split(\" \");a.g=a.g.concat(m);a.H=a.H.concat(m);a.ssl=0<=k.location.protocol.toLowerCase().indexOf(\"https\");a.charSet=\"UTF-8\";a.contextData={};a.offlineThrottleDelay=\r\n0;a.offlineFilename=\"AppMeasurement.offline\";a.Ra=0;a.ma=0;a.O=0;a.Qa=0;a.linkDownloadFileTypes=\"exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx\";a.w=k;a.d=k.document;try{if(a.Wa=!1,navigator){var v=navigator.userAgent;if(\"Microsoft Internet Explorer\"==navigator.appName||0<=v.indexOf(\"MSIE \")||0<=v.indexOf(\"Trident/\")&&0<=v.indexOf(\"Windows NT 6\"))a.Wa=!0}}catch(x){}a.ha=function(){a.ia&&(k.clearTimeout(a.ia),a.ia=p);a.l&&a.K&&a.l.dispatchEvent(a.K);a.A&&(\"function\"==typeof a.A?a.A():\r\na.l&&a.l.href&&(a.d.location=a.l.href));a.l=a.K=a.A=0};a.Ua=function(){a.b=a.d.body;a.b?(a.v=function(c){var b,d,f,e,g;if(!(a.d&&a.d.getElementById(\"cppXYctnr\")||c&&c[\"s_fe_\"+a._in])){if(a.Ea)if(a.useForcedLinkTracking)a.b.removeEventListener(\"click\",a.v,!1);else{a.b.removeEventListener(\"click\",a.v,!0);a.Ea=a.useForcedLinkTracking=0;return}else a.useForcedLinkTracking=0;a.clickObject=c.srcElement?c.srcElement:c.target;try{if(!a.clickObject||a.N&&a.N==a.clickObject||!(a.clickObject.tagName||a.clickObject.parentElement||\r\na.clickObject.parentNode))a.clickObject=0;else{var h=a.N=a.clickObject;a.la&&(clearTimeout(a.la),a.la=0);a.la=setTimeout(function(){a.N==h&&(a.N=0)},1E4);f=a.La();a.track();if(f<a.La()&&a.useForcedLinkTracking&&c.target){for(e=c.target;e&&e!=a.b&&\"A\"!=e.tagName.toUpperCase()&&\"AREA\"!=e.tagName.toUpperCase();)e=e.parentNode;if(e&&(g=e.href,a.Na(g)||(g=0),d=e.target,c.target.dispatchEvent&&g&&(!d||\"_self\"==d||\"_top\"==d||\"_parent\"==d||k.name&&d==k.name))){try{b=a.d.createEvent(\"MouseEvents\")}catch(l){b=\r\nnew k.MouseEvent}if(b){try{b.initMouseEvent(\"click\",c.bubbles,c.cancelable,c.view,c.detail,c.screenX,c.screenY,c.clientX,c.clientY,c.ctrlKey,c.altKey,c.shiftKey,c.metaKey,c.button,c.relatedTarget)}catch(m){b=0}b&&(b[\"s_fe_\"+a._in]=b.s_fe=1,c.stopPropagation(),c.stopImmediatePropagation&&c.stopImmediatePropagation(),c.preventDefault(),a.l=c.target,a.K=b)}}}}}catch(n){a.clickObject=0}}},a.b&&a.b.attachEvent?a.b.attachEvent(\"onclick\",a.v):a.b&&a.b.addEventListener&&(navigator&&(0<=navigator.userAgent.indexOf(\"WebKit\")&&\r\na.d.createEvent||0<=navigator.userAgent.indexOf(\"Firefox/2\")&&k.MouseEvent)&&(a.Ea=1,a.useForcedLinkTracking=1,a.b.addEventListener(\"click\",a.v,!0)),a.b.addEventListener(\"click\",a.v,!1))):setTimeout(a.Ua,30)};a.Cb();a.ac||(r?a.setAccount(r):a.F(\"Error, missing Report Suite ID in AppMeasurement initialization\"),a.Ua(),a.loadModule(\"ActivityMap\"))}" ]
[ "0.47174537", "0.4658246", "0.45285463", "0.45032862", "0.44835344", "0.44350168", "0.4382653", "0.43627265", "0.43324777", "0.4301593", "0.42541128", "0.42418656", "0.4221815", "0.42179117", "0.41816333", "0.41801563", "0.41795337", "0.417805", "0.4176735", "0.41745046", "0.4172715", "0.416532", "0.4140857", "0.4140857", "0.4125978", "0.41207212", "0.41181394", "0.41115952", "0.41091898", "0.41079316", "0.41062677", "0.41049024", "0.41027054", "0.41022694", "0.410083", "0.4095065", "0.40917927", "0.40812904", "0.40807405", "0.40791658", "0.40771678", "0.40754294", "0.40733093", "0.407272", "0.40688023", "0.40591353", "0.40538645", "0.40534827", "0.4049118", "0.40481293", "0.40477178", "0.40440556", "0.40431336", "0.4041285", "0.40409878", "0.4040742", "0.4034237", "0.40251347", "0.4021832", "0.401967", "0.40185636", "0.40154555", "0.40134138", "0.40127307", "0.40119314", "0.40104625", "0.40068188", "0.40068188", "0.40059087", "0.4004625", "0.3991457", "0.3990997", "0.39907634", "0.39872354", "0.3983524", "0.39815342", "0.39802438", "0.39802438", "0.39802438", "0.39799574", "0.39766735", "0.39765778", "0.39743623", "0.39739642", "0.39738163", "0.39735964", "0.396918", "0.3966224", "0.39611036", "0.39610842", "0.3960728", "0.3956596", "0.39565182", "0.39551875", "0.3950826", "0.39456856", "0.3944749", "0.39428768", "0.39405105", "0.39404854", "0.39403772" ]
0.0
-1
Draw smoothed line in nonmonotone, in may cause undesired curve in extreme situations. This should be used when points are nonmonotone neither in x or y dimension.
function drawNonMono(ctx, points, start, segLen, allLen, dir, smoothMin, smoothMax, smooth, smoothMonotone, connectNulls) { var prevIdx = 0; var idx = start; for (var k = 0; k < segLen; k++) { var p = points[idx]; if (idx >= allLen || idx < 0) { break; } if (isPointNull(p)) { if (connectNulls) { idx += dir; continue; } break; } if (idx === start) { ctx[dir > 0 ? 'moveTo' : 'lineTo'](p[0], p[1]); v2Copy(cp0, p); } else { if (smooth > 0) { var nextIdx = idx + dir; var nextP = points[nextIdx]; if (connectNulls) { // Find next point not null while (nextP && isPointNull(points[nextIdx])) { nextIdx += dir; nextP = points[nextIdx]; } } var ratioNextSeg = 0.5; var prevP = points[prevIdx]; var nextP = points[nextIdx]; // Last point if (!nextP || isPointNull(nextP)) { v2Copy(cp1, p); } else { // If next data is null in not connect case if (isPointNull(nextP) && !connectNulls) { nextP = p; } vec2.sub(v, nextP, prevP); var lenPrevSeg; var lenNextSeg; if (smoothMonotone === 'x' || smoothMonotone === 'y') { var dim = smoothMonotone === 'x' ? 0 : 1; lenPrevSeg = Math.abs(p[dim] - prevP[dim]); lenNextSeg = Math.abs(p[dim] - nextP[dim]); } else { lenPrevSeg = vec2.dist(p, prevP); lenNextSeg = vec2.dist(p, nextP); } // Use ratio of seg length ratioNextSeg = lenNextSeg / (lenNextSeg + lenPrevSeg); scaleAndAdd(cp1, p, v, -smooth * (1 - ratioNextSeg)); } // Smooth constraint vec2Min(cp0, cp0, smoothMax); vec2Max(cp0, cp0, smoothMin); vec2Min(cp1, cp1, smoothMax); vec2Max(cp1, cp1, smoothMin); ctx.bezierCurveTo(cp0[0], cp0[1], cp1[0], cp1[1], p[0], p[1]); // cp0 of next segment scaleAndAdd(cp0, p, v, smooth * ratioNextSeg); } else { ctx.lineTo(p[0], p[1]); } } prevIdx = idx; idx += dir; } return k; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function drawSeriesLines(series){\n\t\t\tfunction plotLine(data, offset){\n\t\t\t\tif(data.length < 2) return;\n\t\n\t\t\t\tvar prevx = tHoz(data[0][0]),\n\t\t\t\t\tprevy = tVert(data[0][1]) + offset;\n\t\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.moveTo(prevx, prevy);\n\t\t\t\tfor(var i = 0; i < data.length - 1; ++i){\n\t\t\t\t\tvar x1 = data[i][0], y1 = data[i][1],\n\t\t\t\t\t\tx2 = data[i+1][0], y2 = data[i+1][1];\n\t\n\t\t\t\t\t/**\n\t\t\t\t\t * Clip with ymin.\n\t\t\t\t\t */\n\t\t\t\t\tif(y1 <= y2 && y1 < yaxis.min){\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Line segment is outside the drawing area.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tif(y2 < yaxis.min) continue;\n\t\t\t\t\t\t\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Compute new intersection point.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tx1 = (yaxis.min - y1) / (y2 - y1) * (x2 - x1) + x1;\n\t\t\t\t\t\ty1 = yaxis.min;\n\t\t\t\t\t}else if(y2 <= y1 && y2 < yaxis.min){\n\t\t\t\t\t\tif(y1 < yaxis.min) continue;\n\t\t\t\t\t\tx2 = (yaxis.min - y1) / (y2 - y1) * (x2 - x1) + x1;\n\t\t\t\t\t\ty2 = yaxis.min;\n\t\t\t\t\t}\n\t\n\t\t\t\t\t/**\n\t\t\t\t\t * Clip with ymax.\n\t\t\t\t\t */ \n\t\t\t\t\tif(y1 >= y2 && y1 > yaxis.max) {\n\t\t\t\t\t\tif(y2 > yaxis.max) continue;\n\t\t\t\t\t\tx1 = (yaxis.max - y1) / (y2 - y1) * (x2 - x1) + x1;\n\t\t\t\t\t\ty1 = yaxis.max;\n\t\t\t\t\t}\n\t\t\t\t\telse if(y2 >= y1 && y2 > yaxis.max){\n\t\t\t\t\t\tif(y1 > yaxis.max) continue;\n\t\t\t\t\t\tx2 = (yaxis.max - y1) / (y2 - y1) * (x2 - x1) + x1;\n\t\t\t\t\t\ty2 = yaxis.max;\n\t\t\t\t\t}\n\t\n\t\t\t\t\t/**\n\t\t\t\t\t * Clip with xmin.\n\t\t\t\t\t */\n\t\t\t\t\tif(x1 <= x2 && x1 < xaxis.min){\n\t\t\t\t\t\tif(x2 < xaxis.min) continue;\n\t\t\t\t\t\ty1 = (xaxis.min - x1) / (x2 - x1) * (y2 - y1) + y1;\n\t\t\t\t\t\tx1 = xaxis.min;\n\t\t\t\t\t}else if(x2 <= x1 && x2 < xaxis.min){\n\t\t\t\t\t\tif(x1 < xaxis.min) continue;\n\t\t\t\t\t\ty2 = (xaxis.min - x1) / (x2 - x1) * (y2 - y1) + y1;\n\t\t\t\t\t\tx2 = xaxis.min;\n\t\t\t\t\t}\n\t\n\t\t\t\t\t/**\n\t\t\t\t\t * Clip with xmax.\n\t\t\t\t\t */\n\t\t\t\t\tif(x1 >= x2 && x1 > xaxis.max){\n\t\t\t\t\t\tif (x2 > xaxis.max) continue;\n\t\t\t\t\t\ty1 = (xaxis.max - x1) / (x2 - x1) * (y2 - y1) + y1;\n\t\t\t\t\t\tx1 = xaxis.max;\n\t\t\t\t\t}else if(x2 >= x1 && x2 > xaxis.max){\n\t\t\t\t\t\tif(x1 > xaxis.max) continue;\n\t\t\t\t\t\ty2 = (xaxis.max - x1) / (x2 - x1) * (y2 - y1) + y1;\n\t\t\t\t\t\tx2 = xaxis.max;\n\t\t\t\t\t}\n\t\n\t\t\t\t\tif(prevx != tHoz(x1) || prevy != tVert(y1) + offset)\n\t\t\t\t\t\tctx.moveTo(tHoz(x1), tVert(y1) + offset);\n\t\t\t\t\t\n\t\t\t\t\tprevx = tHoz(x2);\n\t\t\t\t\tprevy = tVert(y2) + offset;\n\t\t\t\t\tctx.lineTo(prevx, prevy);\n\t\t\t\t}\n\t\t\t\tctx.stroke();\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Function used to fill\n\t\t\t * @param {Object} data\n\t\t\t */\n\t\t\tfunction plotLineArea(data){\n\t\t\t\tif(data.length < 2) return;\n\t\n\t\t\t\tvar bottom = Math.min(Math.max(0, yaxis.min), yaxis.max);\n\t\t\t\tvar top, lastX = 0;\n\t\t\t\tvar first = true;\n\t\t\t\t\n\t\t\t\tctx.beginPath();\n\t\t\t\tfor(var i = 0; i < data.length - 1; ++i){\n\t\t\t\t\t\n\t\t\t\t\tvar x1 = data[i][0], y1 = data[i][1],\n\t\t\t\t\t\tx2 = data[i+1][0], y2 = data[i+1][1];\n\t\t\t\t\t\n\t\t\t\t\tif(x1 <= x2 && x1 < xaxis.min){\n\t\t\t\t\t\tif(x2 < xaxis.min) continue;\n\t\t\t\t\t\ty1 = (xaxis.min - x1) / (x2 - x1) * (y2 - y1) + y1;\n\t\t\t\t\t\tx1 = xaxis.min;\n\t\t\t\t\t}else if(x2 <= x1 && x2 < xaxis.min){\n\t\t\t\t\t\tif(x1 < xaxis.min) continue;\n\t\t\t\t\t\ty2 = (xaxis.min - x1) / (x2 - x1) * (y2 - y1) + y1;\n\t\t\t\t\t\tx2 = xaxis.min;\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tif(x1 >= x2 && x1 > xaxis.max){\n\t\t\t\t\t\tif(x2 > xaxis.max) continue;\n\t\t\t\t\t\ty1 = (xaxis.max - x1) / (x2 - x1) * (y2 - y1) + y1;\n\t\t\t\t\t\tx1 = xaxis.max;\n\t\t\t\t\t}else if(x2 >= x1 && x2 > xaxis.max){\n\t\t\t\t\t\tif (x1 > xaxis.max) continue;\n\t\t\t\t\t\ty2 = (xaxis.max - x1) / (x2 - x1) * (y2 - y1) + y1;\n\t\t\t\t\t\tx2 = xaxis.max;\n\t\t\t\t\t}\n\n\t\t\t\t\tif(first){\n\t\t\t\t\t\tctx.moveTo(tHoz(x1), tVert(bottom));\n\t\t\t\t\t\tfirst = false;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t/**\n\t\t\t\t\t * Now check the case where both is outside.\n\t\t\t\t\t */\n\t\t\t\t\tif(y1 >= yaxis.max && y2 >= yaxis.max){\n\t\t\t\t\t\tctx.lineTo(tHoz(x1), tVert(yaxis.max));\n\t\t\t\t\t\tctx.lineTo(tHoz(x2), tVert(yaxis.max));\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else if(y1 <= yaxis.min && y2 <= yaxis.min){\n\t\t\t\t\t\tctx.lineTo(tHoz(x1), tVert(yaxis.min));\n\t\t\t\t\t\tctx.lineTo(tHoz(x2), tVert(yaxis.min));\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t/**\n\t\t\t\t\t * Else it's a bit more complicated, there might\n\t\t\t\t\t * be two rectangles and two triangles we need to fill\n\t\t\t\t\t * in; to find these keep track of the current x values.\n\t\t\t\t\t */\n\t\t\t\t\tvar x1old = x1, x2old = x2;\n\t\t\t\t\t\n\t\t\t\t\t/**\n\t\t\t\t\t * And clip the y values, without shortcutting.\n\t\t\t\t\t * Clip with ymin.\n\t\t\t\t\t */\n\t\t\t\t\tif(y1 <= y2 && y1 < yaxis.min && y2 >= yaxis.min){\n\t\t\t\t\t\tx1 = (yaxis.min - y1) / (y2 - y1) * (x2 - x1) + x1;\n\t\t\t\t\t\ty1 = yaxis.min;\n\t\t\t\t\t}else if(y2 <= y1 && y2 < yaxis.min && y1 >= yaxis.min){\n\t\t\t\t\t\tx2 = (yaxis.min - y1) / (y2 - y1) * (x2 - x1) + x1;\n\t\t\t\t\t\ty2 = yaxis.min;\n\t\t\t\t\t}\n\t\n\t\t\t\t\t/**\n\t\t\t\t\t * Clip with ymax.\n\t\t\t\t\t */\n\t\t\t\t\tif(y1 >= y2 && y1 > yaxis.max && y2 <= yaxis.max){\n\t\t\t\t\t\tx1 = (yaxis.max - y1) / (y2 - y1) * (x2 - x1) + x1;\n\t\t\t\t\t\ty1 = yaxis.max;\n\t\t\t\t\t}else if(y2 >= y1 && y2 > yaxis.max && y1 <= yaxis.max){\n\t\t\t\t\t\tx2 = (yaxis.max - y1) / (y2 - y1) * (x2 - x1) + x1;\n\t\t\t\t\t\ty2 = yaxis.max;\n\t\t\t\t\t}\n\t\n\t\t\t\t\t/**\n\t\t\t\t\t * If the x value was changed we got a rectangle to fill.\n\t\t\t\t\t */\n\t\t\t\t\tif(x1 != x1old){\n\t\t\t\t\t\ttop = (y1 <= yaxis.min) ? top = yaxis.min : yaxis.max;\t\t\t\t\t\t\n\t\t\t\t\t\tctx.lineTo(tHoz(x1old), tVert(top));\n\t\t\t\t\t\tctx.lineTo(tHoz(x1), tVert(top));\n\t\t\t\t\t}\n\t\t\t\t \t\n\t\t\t\t\t/**\n\t\t\t\t\t * Fill the triangles.\n\t\t\t\t\t */\n\t\t\t\t\tctx.lineTo(tHoz(x1), tVert(y1));\n\t\t\t\t\tctx.lineTo(tHoz(x2), tVert(y2));\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Fill the other rectangle if it's there.\n\t\t\t\t\t */\n\t\t\t\t\tif(x2 != x2old){\n\t\t\t\t\t\ttop = (y2 <= yaxis.min) ? yaxis.min : yaxis.max;\n\t\t\t\t\t\tctx.lineTo(tHoz(x2old), tVert(top));\n\t\t\t\t\t\tctx.lineTo(tHoz(x2), tVert(top));\n\t\t\t\t\t}\n\t\n\t\t\t\t\tlastX = Math.max(x2, x2old);\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.moveTo(tHoz(data[0][0]), tVert(0));\n\t\t\t\tfor (var i = 0; i < data.length; i++) {\n\t\t\t\t\tctx.lineTo(tHoz(data[i][0]), tVert(data[i][1]));\n\t\t\t\t}\n\t\t\t\tctx.lineTo(tHoz(data[data.length - 1][0]), tVert(0));*/\n\t\t\t\tctx.lineTo(tHoz(lastX), tVert(bottom));\n\t\t\t\tctx.closePath();\n\t\t\t\tctx.fill();\n\t\t\t}\n\t\t\t\n\t\t\tctx.save();\n\t\t\tctx.translate(plotOffset.left, plotOffset.top);\n\t\t\tctx.lineJoin = 'round';\n\t\n\t\t\tvar lw = series.lines.lineWidth;\n\t\t\tvar sw = series.shadowSize;\n\t\t\t/**\n\t\t\t * @todo: consider another form of shadow when filling is turned on\n\t\t\t */\n\t\t\tif(sw > 0){\n\t\t\t\tctx.lineWidth = sw / 2;\n\t\t\t\tctx.strokeStyle = \"rgba(0,0,0,0.1)\";\n\t\t\t\tplotLine(series.data, lw/2 + sw/2 + ctx.lineWidth/2);\n\t\n\t\t\t\tctx.lineWidth = sw / 2;\n\t\t\t\tctx.strokeStyle = \"rgba(0,0,0,0.2)\";\n\t\t\t\tplotLine(series.data, lw/2 + ctx.lineWidth/2);\n\t\t\t}\n\t\n\t\t\tctx.lineWidth = lw;\n\t\t\tctx.strokeStyle = series.color;\n\t\t\tif(series.lines.fill){\n\t\t\t\tctx.fillStyle = series.lines.fillColor != null ? series.lines.fillColor : parseColor(series.color).scale(null, null, null, 0.4).toString();\n\t\t\t\tplotLineArea(series.data, 0);\n\t\t\t}\n\t\n\t\t\tplotLine(series.data, 0);\n\t\t\tctx.restore();\n\t\t}", "function drawLine() {\n // if one point isn't on the plane, do not draw a line\n if (pt1.pinned && plane.getContext) {\n let ctx = plane.getContext('2d');\n ctx.beginPath();\n ctx.strokeStyle = 'rgb(45, 166, 87)';\n // when pt2 is not pinned, line is dotted\n if (!pt2.pinned) {\n ctx.setLineDash([5, 5]);\n // moving dotted line animation\n ctx.lineDashOffset -= .25;\n }\n ctx.lineWidth = 3;\n // we want the line to extend past the points up to the edges of the plane\n // therefore we need the canvas boundary intercepts\n let boundInt = getPlaneBoundaryIntercepts();\n ctx.moveTo(boundInt.xBoundary1, boundInt.yBoundary1);\n ctx.lineTo(boundInt.xBoundary2, boundInt.yBoundary2);\n ctx.stroke();\n // reset line dash to be solid\n ctx.setLineDash([]);\n }\n}", "function drawLines(point) {\n for(var i in point.closest) {\n var lineAlpha = 0.1;\n ctx.beginPath();\n ctx.moveTo(point.x, point.y);\n ctx.lineTo(point.closest[i].x, point.closest[i].y);\n ctx.strokeStyle = 'rgba(70, 160, 190, ' + lineAlpha + ')';\n ctx.stroke();\n }\n}", "function draw() {\n line(lineX, lineY, lineXEnd, lineY);\n lineX+=5;\n lineXEnd +=5;\n if(lineX==width && lineXEnd==width){\n noLoop();\n }\n}", "function draw() {\n\tbackground(241);\n\tstroke(210);\n\tvar t = 1.0*(frameCount - 1)/numFrames;\n\tnoiseDetail(1, 0.5);\n\tfor(var i = 0; i < m; i++){\n\t\tvar p = 1.0*i/m;\n\t\t//squiggly line 1\n\t\tvar dx1 = 100*noise(13.3 + rad*cos(TWO_PI*(nperiod*p - t)), rad*sin(TWO_PI*(nperiod*p - t)), 50.0*p);\n\t\tvar dy1 = 100*noise(2*13.3 + rad*cos(TWO_PI*(nperiod*p - t)), rad*sin(TWO_PI*(nperiod*p - t)), 50.0*p);\n\t\tpoint(p*width + dx1, dy1);\n\t\t//squiggly line 2\n\t\tvar dx2 = 100*noise(23.3 + rad*cos(TWO_PI*(nperiod*p - t)), rad*sin(TWO_PI*(nperiod*p - t)), 50.0*p);\n\t\tvar dy2 = 100*noise(2*23.3 + rad*cos(TWO_PI*(nperiod*p - t)), rad*sin(TWO_PI*(nperiod*p - t)), 50.0*p);\n\t\tpoint(p*width + dx2, height/6 + dy2);\n\t\t//squiggly line 3\n\t\tvar dx3 = 100*noise(33.3 + rad*cos(TWO_PI*(nperiod*p - t)), rad*sin(TWO_PI*(nperiod*p - t)), 50.0*p);\n\t\tvar dy3 = 100*noise(2*33.3 + rad*cos(TWO_PI*(nperiod*p - t)), rad*sin(TWO_PI*(nperiod*p - t)), 50.0*p);\n\t\tpoint(p*width + dx3, 2*height/6 + dy3);\n\t\t//squiggly line 4\n\t\tvar dx4 = 100*noise(43.3 + rad*cos(TWO_PI*(nperiod*p - t)), rad*sin(TWO_PI*(nperiod*p - t)), 50.0*p);\n\t\tvar dy4 = 100*noise(2*43.3 + rad*cos(TWO_PI*(nperiod*p - t)), rad*sin(TWO_PI*(nperiod*p - t)), 50.0*p);\n\t\tpoint(p*width + dx4, 3*height/6 + dy4);\n\t\t//squiggly line 5\n\t\tvar dx5 = 100*noise(53.3 + rad*cos(TWO_PI*(nperiod*p - t)), rad*sin(TWO_PI*(nperiod*p - t)), 50.0*p);\n\t\tvar dy5 = 100*noise(2*53.3 + rad*cos(TWO_PI*(nperiod*p - t)), rad*sin(TWO_PI*(nperiod*p - t)), 50.0*p);\n\t\tpoint(p*width + dx5, 4*height/6 + dy5);\n\t\t//squiggly line 6\n\t\tvar dx6 = 100*noise(63.3 + rad*cos(TWO_PI*(nperiod*p - t)), rad*sin(TWO_PI*(nperiod*p - t)), 50.0*p);\n\t\tvar dy6 = 100*noise(2*63.3 + rad*cos(TWO_PI*(nperiod*p - t)), rad*sin(TWO_PI*(nperiod*p - t)), 50.0*p);\n\t\tpoint(p*width + dx6, 5*height/6 + dy6);\n\t}\n}", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon;\n point1[1] += epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function drawLines() {\n ctx.lineWidth = 0.5;\n\n for (var i = 0; i < numOfDots; i++) {\n for (var j = i + 1; j < numOfDots; j++) {\n\n var dot1 = dots[i];\n var dot2 = dots[j];\n var distance = Math.hypot(Math.abs(dot1.x - dot2.x),\n Math.abs(dot1.y - dot2.y));\n\n if (distance <= 200) {\n\n var saturation = 1 - distance / 200;\n saturation = Math.floor(saturation * 100) / 100;\n ctx.strokeStyle = `rgba(255, 255, 255, ${saturation})`;\n\n ctx.beginPath();\n ctx.moveTo(dot1.x, dot1.y);\n ctx.lineTo(dot2.x, dot2.y);\n ctx.stroke();\n }\n }\n }\n}", "function drawSVGLine(points, svg) {\n if (points.length < 3) return;\n\n let smoothRange = getSmoothRange(points, smoothSteps);\n points = smoothRange.points;\n\n svg.beginPath();\n svg.strokeStyle = lineStroke;\n svg.lineWidth = lineWidth;\n let wasVisible = false;\n for (let i = 0; i < points.length; i += 2) {\n let x = points[i];\n let y = points[i + 1];\n\n let lastRenderedColumnHeight = columnHeights[x];\n let isVisible = y <= lastRenderedColumnHeight && y >= 0 && y < trueWindowHeight;\n if (isVisible) {\n // This is important bit. We mark the entire area below as \"rendered\"\n // so that next `isVisible` check will return false, and we will break the line\n columnHeights[x] = Math.min(y, lastRenderedColumnHeight)\n // the path is visible:\n if (wasVisible) {\n svg.lineTo(x, y);\n } else {\n svg.moveTo(x, y);\n }\n } else {\n // The path is no longer visible\n if (wasVisible) {\n // But it was visible before\n svg.lineTo(x, y < 0 ? 0 : lastRenderedColumnHeight);\n } else {\n svg.moveTo(x, y < 0? 0 : lastRenderedColumnHeight);\n }\n }\n wasVisible = isVisible;\n }\n svg.stroke();\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi$3 : -pi$3), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon$2;\n point1[1] += epsilon$2;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi$3 : -pi$3), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon$4;\n point1[1] += epsilon$4;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi$1 : -pi$1), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2))\n point1[2] = 1;\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1], 2);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1], 3);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean;\n // no intersections\n return {\n lineStart: function () {\n v00 = v0 = false;\n clean = 1;\n },\n point: function (lambda, phi) {\n var point1 = [lambda, phi], point2, v = visible(lambda, phi), c = smallRadius ? v ? 0 : code(lambda, phi) : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) point1[2] = 1;\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1], 2);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1], 3);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n (point0 = point1, v0 = v, c0 = c);\n },\n lineEnd: function () {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function () {\n return clean | (v00 && v0) << 1;\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n\n return {\n lineStart: function () {\n v00 = v0 = false;\n clean = 1;\n },\n point: function (lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius ? v ? 0 : code(lambda, phi) : v ? code(lambda + (lambda < 0 ? _math.pi : -_math.pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart(); // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n\n if (v !== v0) {\n point2 = intersect(point0, point1);\n\n if (!point2 || (0, _pointEqual.default)(point0, point2) || (0, _pointEqual.default)(point1, point2)) {\n point1[0] += _math.epsilon;\n point1[1] += _math.epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n\n if (v !== v0) {\n clean = 0;\n\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t; // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n\n if (v && (!point0 || !(0, _pointEqual.default)(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function () {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function () {\n return clean | (v00 && v0) << 1;\n }\n };\n } // Intersects the great circle between a and b with the clip circle.", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n\n return {\n lineStart: function () {\n v00 = v0 = false;\n clean = 1;\n },\n point: function (lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius ? v ? 0 : code(lambda, phi) : v ? code(lambda + (lambda < 0 ? _math.pi : -_math.pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart(); // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n\n if (v !== v0) {\n point2 = intersect(point0, point1);\n\n if (!point2 || (0, _pointEqual.default)(point0, point2) || (0, _pointEqual.default)(point1, point2)) {\n point1[0] += _math.epsilon;\n point1[1] += _math.epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n\n if (v !== v0) {\n clean = 0;\n\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t; // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n\n if (v && (!point0 || !(0, _pointEqual.default)(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function () {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function () {\n return clean | (v00 && v0) << 1;\n }\n };\n } // Intersects the great circle between a and b with the clip circle.", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n\n return {\n lineStart: function () {\n v00 = v0 = false;\n clean = 1;\n },\n point: function (lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius ? v ? 0 : code(lambda, phi) : v ? code(lambda + (lambda < 0 ? _math.pi : -_math.pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart(); // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n\n if (v !== v0) {\n point2 = intersect(point0, point1);\n\n if (!point2 || (0, _pointEqual.default)(point0, point2) || (0, _pointEqual.default)(point1, point2)) {\n point1[0] += _math.epsilon;\n point1[1] += _math.epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n\n if (v !== v0) {\n clean = 0;\n\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t; // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n\n if (v && (!point0 || !(0, _pointEqual.default)(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function () {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function () {\n return clean | (v00 && v0) << 1;\n }\n };\n } // Intersects the great circle between a and b with the clip circle.", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon;\n point1[1] += epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon;\n point1[1] += epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon;\n point1[1] += epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon;\n point1[1] += epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon;\n point1[1] += epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon;\n point1[1] += epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function drawLine(pointsArray, scene, isClosed, color) {\n\n\tlet material;\n\tlet line;\n\tlet geometry = new THREE.BufferGeometry().setFromPoints(pointsArray);\n\n\tif (color == undefined) {\n\t\tmaterial = new THREE.LineBasicMaterial({color: 0x000000});\n\t} else {\n\t\tmaterial = new THREE.LineBasicMaterial({color: color});\n\t};\n\n\tif (isClosed == undefined) {isClosed = false};\n\n\n\tif (isClosed == false) {\n\n\t\tline = new THREE.Line(geometry, material);\n\t\tscene.add(line);\n\t};\n\n\n\tif (isClosed == true) {\n\n\t\tline = new THREE.LineLoop(geometry, material);\n\t\tscene.add(line);\n\t};\n\t\n\treturn line;\n\n}", "function smooth() {\n let change = 0.5;\n let changedPoints = 1;\n while (change / changedPoints >= 0.01) {\n change = 0;\n changedPoints = 0;\n\n let newPoints = [...points];\n\n for (let i = 1; i < points.length - 1; i++) {\n let point = points[i];\n\n let middle = new Vector(points[i + 1].subtract(points[i - 1]));\n\n middle = new Vector(points[i - 1].add(middle.normalize().scale(middle.magnitude / 2)));\n\n let delta = new Vector(middle.subtract(point));\n\n let newPoint = point.add(delta.normalize().scale(delta.magnitude * fSmoothing));\n\n if (!isNaN(newPoint.x) && !isNaN(newPoint.y)) {\n newPoints[i] = newPoint;\n change += point.distance(newPoint);\n changedPoints++;\n }\n }\n\n points = newPoints;\n }\n}", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi$3 : -pi$3), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon$2;\n point1[1] += epsilon$2;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi$3 : -pi$3), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon$2;\n point1[1] += epsilon$2;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi$3 : -pi$3), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon$2;\n point1[1] += epsilon$2;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi$3 : -pi$3), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon$2;\n point1[1] += epsilon$2;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream){var point0,// previous point\nc0,// code for previous point\nv0,// visibility of previous point\nv00,// visibility of first point\nclean;// no intersections\nreturn{lineStart:function(){v00=v0=false;clean=1},point:function(lambda,phi){var point1=[lambda,phi],point2,v=visible(lambda,phi),c=smallRadius?v?0:code(lambda,phi):v?code(lambda+(lambda<0?pi:-pi),phi):0;if(!point0&&(v00=v0=v))stream.lineStart();\n// Handle degeneracies.\n// TODO ignore if not clipping polygons.\nif(v!==v0){point2=intersect(point0,point1);if(!point2||pointEqual(point0,point2)||pointEqual(point1,point2)){point1[0]+=epsilon;point1[1]+=epsilon;v=visible(point1[0],point1[1])}}if(v!==v0){clean=0;if(v){\n// outside going in\nstream.lineStart();point2=intersect(point1,point0);stream.point(point2[0],point2[1])}else{\n// inside going out\npoint2=intersect(point0,point1);stream.point(point2[0],point2[1]);stream.lineEnd()}point0=point2}else if(notHemisphere&&point0&&smallRadius^v){var t;\n// If the codes for two points are different, or are both zero,\n// and there this segment intersects with the small circle.\nif(!(c&c0)&&(t=intersect(point1,point0,true))){clean=0;if(smallRadius){stream.lineStart();stream.point(t[0][0],t[0][1]);stream.point(t[1][0],t[1][1]);stream.lineEnd()}else{stream.point(t[1][0],t[1][1]);stream.lineEnd();stream.lineStart();stream.point(t[0][0],t[0][1])}}}if(v&&(!point0||!pointEqual(point0,point1))){stream.point(point1[0],point1[1])}point0=point1,v0=v,c0=c},lineEnd:function(){if(v0)stream.lineEnd();point0=null},\n// Rejoin first and last segments if there were intersections and the first\n// and last points were visible.\nclean:function(){return clean|(v00&&v0)<<1}}}", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n\n return {\n lineStart: function () {\n v00 = v0 = false;\n clean = 1;\n },\n point: function (lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius ? v ? 0 : code(lambda, phi) : v ? code(lambda + (lambda < 0 ? _math__WEBPACK_IMPORTED_MODULE_2__[\"pi\"] : -_math__WEBPACK_IMPORTED_MODULE_2__[\"pi\"]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart(); // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n\n if (v !== v0) {\n point2 = intersect(point0, point1);\n\n if (!point2 || Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point2) || Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point1, point2)) {\n point1[0] += _math__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n point1[1] += _math__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n v = visible(point1[0], point1[1]);\n }\n }\n\n if (v !== v0) {\n clean = 0;\n\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t; // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n\n if (v && (!point0 || !Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function () {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function () {\n return clean | (v00 && v0) << 1;\n }\n };\n } // Intersects the great circle between a and b with the clip circle.", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n\n return {\n lineStart: function () {\n v00 = v0 = false;\n clean = 1;\n },\n point: function (lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius ? v ? 0 : code(lambda, phi) : v ? code(lambda + (lambda < 0 ? _math.pi : -_math.pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || (0, _pointEqual.default)(point0, point2) || (0, _pointEqual.default)(point1, point2)) point1[2] = 1;\n }\n\n if (v !== v0) {\n clean = 0;\n\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1], 2);\n stream.lineEnd();\n }\n\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t; // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1], 3);\n }\n }\n }\n\n if (v && (!point0 || !(0, _pointEqual.default)(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function () {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function () {\n return clean | (v00 && v0) << 1;\n }\n };\n } // Intersects the great circle between a and b with the clip circle.", "function drawSnowf(obj) {\n for (i = 0; i < obj.xArray.length; i++) {\n if (i !== obj.xArray.length - 1) {\n drawLine(contextSnowf, [obj.xArray[i],\n obj.yArray[i]],\n [obj.xArray[i+1],\n obj.yArray[i+1]]);\n }\n else {\n drawLine(contextSnowf, [obj.xArray[i] + OFFSET[0],\n obj.yArray[i] + OFFSET[1]],\n [obj.xArray[0] + OFFSET[0],\n obj.yArray[0] + OFFSET[1]]);\n }\n }\n}", "function clipLine(stream) {\n\t var point0, // previous point\n\t c0, // code for previous point\n\t v0, // visibility of previous point\n\t v00, // visibility of first point\n\t _clean2; // no intersections\n\t return {\n\t lineStart: function lineStart() {\n\t v00 = v0 = false;\n\t _clean2 = 1;\n\t },\n\t point: function point(lambda, phi) {\n\t var point1 = [lambda, phi],\n\t point2,\n\t v = visible(lambda, phi),\n\t c = smallRadius ? v ? 0 : code(lambda, phi) : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n\t if (!point0 && (v00 = v0 = v)) stream.lineStart();\n\t // Handle degeneracies.\n\t // TODO ignore if not clipping polygons.\n\t if (v !== v0) {\n\t point2 = intersect(point0, point1);\n\t if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n\t point1[0] += epsilon;\n\t point1[1] += epsilon;\n\t v = visible(point1[0], point1[1]);\n\t }\n\t }\n\t if (v !== v0) {\n\t _clean2 = 0;\n\t if (v) {\n\t // outside going in\n\t stream.lineStart();\n\t point2 = intersect(point1, point0);\n\t stream.point(point2[0], point2[1]);\n\t } else {\n\t // inside going out\n\t point2 = intersect(point0, point1);\n\t stream.point(point2[0], point2[1]);\n\t stream.lineEnd();\n\t }\n\t point0 = point2;\n\t } else if (notHemisphere && point0 && smallRadius ^ v) {\n\t var t;\n\t // If the codes for two points are different, or are both zero,\n\t // and there this segment intersects with the small circle.\n\t if (!(c & c0) && (t = intersect(point1, point0, true))) {\n\t _clean2 = 0;\n\t if (smallRadius) {\n\t stream.lineStart();\n\t stream.point(t[0][0], t[0][1]);\n\t stream.point(t[1][0], t[1][1]);\n\t stream.lineEnd();\n\t } else {\n\t stream.point(t[1][0], t[1][1]);\n\t stream.lineEnd();\n\t stream.lineStart();\n\t stream.point(t[0][0], t[0][1]);\n\t }\n\t }\n\t }\n\t if (v && (!point0 || !pointEqual(point0, point1))) {\n\t stream.point(point1[0], point1[1]);\n\t }\n\t point0 = point1, v0 = v, c0 = c;\n\t },\n\t lineEnd: function lineEnd() {\n\t if (v0) stream.lineEnd();\n\t point0 = null;\n\t },\n\t // Rejoin first and last segments if there were intersections and the first\n\t // and last points were visible.\n\t clean: function clean() {\n\t return _clean2 | (v00 && v0) << 1;\n\t }\n\t };\n\t }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? math_pi : -math_pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2))\n point1[2] = 1;\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1], 2);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1], 3);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n\t var point0, // previous point\n\t c0, // code for previous point\n\t v0, // visibility of previous point\n\t v00, // visibility of first point\n\t clean; // no intersections\n\t return {\n\t lineStart: function() {\n\t v00 = v0 = false;\n\t clean = 1;\n\t },\n\t point: function(lambda, phi) {\n\t var point1 = [lambda, phi],\n\t point2,\n\t v = visible(lambda, phi),\n\t c = smallRadius\n\t ? v ? 0 : code(lambda, phi)\n\t : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n\t if (!point0 && (v00 = v0 = v)) stream.lineStart();\n\t // Handle degeneracies.\n\t // TODO ignore if not clipping polygons.\n\t if (v !== v0) {\n\t point2 = intersect(point0, point1);\n\t if (pointEqual(point0, point2) || pointEqual(point1, point2)) {\n\t point1[0] += epsilon;\n\t point1[1] += epsilon;\n\t v = visible(point1[0], point1[1]);\n\t }\n\t }\n\t if (v !== v0) {\n\t clean = 0;\n\t if (v) {\n\t // outside going in\n\t stream.lineStart();\n\t point2 = intersect(point1, point0);\n\t stream.point(point2[0], point2[1]);\n\t } else {\n\t // inside going out\n\t point2 = intersect(point0, point1);\n\t stream.point(point2[0], point2[1]);\n\t stream.lineEnd();\n\t }\n\t point0 = point2;\n\t } else if (notHemisphere && point0 && smallRadius ^ v) {\n\t var t;\n\t // If the codes for two points are different, or are both zero,\n\t // and there this segment intersects with the small circle.\n\t if (!(c & c0) && (t = intersect(point1, point0, true))) {\n\t clean = 0;\n\t if (smallRadius) {\n\t stream.lineStart();\n\t stream.point(t[0][0], t[0][1]);\n\t stream.point(t[1][0], t[1][1]);\n\t stream.lineEnd();\n\t } else {\n\t stream.point(t[1][0], t[1][1]);\n\t stream.lineEnd();\n\t stream.lineStart();\n\t stream.point(t[0][0], t[0][1]);\n\t }\n\t }\n\t }\n\t if (v && (!point0 || !pointEqual(point0, point1))) {\n\t stream.point(point1[0], point1[1]);\n\t }\n\t point0 = point1, v0 = v, c0 = c;\n\t },\n\t lineEnd: function() {\n\t if (v0) stream.lineEnd();\n\t point0 = null;\n\t },\n\t // Rejoin first and last segments if there were intersections and the first\n\t // and last points were visible.\n\t clean: function() {\n\t return clean | ((v00 && v0) << 1);\n\t }\n\t };\n\t }", "function clipLine(stream) {\n\t var point0, // previous point\n\t c0, // code for previous point\n\t v0, // visibility of previous point\n\t v00, // visibility of first point\n\t clean; // no intersections\n\t return {\n\t lineStart: function() {\n\t v00 = v0 = false;\n\t clean = 1;\n\t },\n\t point: function(lambda, phi) {\n\t var point1 = [lambda, phi],\n\t point2,\n\t v = visible(lambda, phi),\n\t c = smallRadius\n\t ? v ? 0 : code(lambda, phi)\n\t : v ? code(lambda + (lambda < 0 ? pi$4 : -pi$4), phi) : 0;\n\t if (!point0 && (v00 = v0 = v)) stream.lineStart();\n\t // Handle degeneracies.\n\t // TODO ignore if not clipping polygons.\n\t if (v !== v0) {\n\t point2 = intersect(point0, point1);\n\t if (pointEqual(point0, point2) || pointEqual(point1, point2)) {\n\t point1[0] += epsilon$4;\n\t point1[1] += epsilon$4;\n\t v = visible(point1[0], point1[1]);\n\t }\n\t }\n\t if (v !== v0) {\n\t clean = 0;\n\t if (v) {\n\t // outside going in\n\t stream.lineStart();\n\t point2 = intersect(point1, point0);\n\t stream.point(point2[0], point2[1]);\n\t } else {\n\t // inside going out\n\t point2 = intersect(point0, point1);\n\t stream.point(point2[0], point2[1]);\n\t stream.lineEnd();\n\t }\n\t point0 = point2;\n\t } else if (notHemisphere && point0 && smallRadius ^ v) {\n\t var t;\n\t // If the codes for two points are different, or are both zero,\n\t // and there this segment intersects with the small circle.\n\t if (!(c & c0) && (t = intersect(point1, point0, true))) {\n\t clean = 0;\n\t if (smallRadius) {\n\t stream.lineStart();\n\t stream.point(t[0][0], t[0][1]);\n\t stream.point(t[1][0], t[1][1]);\n\t stream.lineEnd();\n\t } else {\n\t stream.point(t[1][0], t[1][1]);\n\t stream.lineEnd();\n\t stream.lineStart();\n\t stream.point(t[0][0], t[0][1]);\n\t }\n\t }\n\t }\n\t if (v && (!point0 || !pointEqual(point0, point1))) {\n\t stream.point(point1[0], point1[1]);\n\t }\n\t point0 = point1, v0 = v, c0 = c;\n\t },\n\t lineEnd: function() {\n\t if (v0) stream.lineEnd();\n\t point0 = null;\n\t },\n\t // Rejoin first and last segments if there were intersections and the first\n\t // and last points were visible.\n\t clean: function() {\n\t return clean | ((v00 && v0) << 1);\n\t }\n\t };\n\t }", "function clipLine(stream) {\n\t var point0, // previous point\n\t c0, // code for previous point\n\t v0, // visibility of previous point\n\t v00, // visibility of first point\n\t clean; // no intersections\n\t return {\n\t lineStart: function() {\n\t v00 = v0 = false;\n\t clean = 1;\n\t },\n\t point: function(lambda, phi) {\n\t var point1 = [lambda, phi],\n\t point2,\n\t v = visible(lambda, phi),\n\t c = smallRadius\n\t ? v ? 0 : code(lambda, phi)\n\t : v ? code(lambda + (lambda < 0 ? pi$4 : -pi$4), phi) : 0;\n\t if (!point0 && (v00 = v0 = v)) stream.lineStart();\n\t // Handle degeneracies.\n\t // TODO ignore if not clipping polygons.\n\t if (v !== v0) {\n\t point2 = intersect(point0, point1);\n\t if (pointEqual(point0, point2) || pointEqual(point1, point2)) {\n\t point1[0] += epsilon$4;\n\t point1[1] += epsilon$4;\n\t v = visible(point1[0], point1[1]);\n\t }\n\t }\n\t if (v !== v0) {\n\t clean = 0;\n\t if (v) {\n\t // outside going in\n\t stream.lineStart();\n\t point2 = intersect(point1, point0);\n\t stream.point(point2[0], point2[1]);\n\t } else {\n\t // inside going out\n\t point2 = intersect(point0, point1);\n\t stream.point(point2[0], point2[1]);\n\t stream.lineEnd();\n\t }\n\t point0 = point2;\n\t } else if (notHemisphere && point0 && smallRadius ^ v) {\n\t var t;\n\t // If the codes for two points are different, or are both zero,\n\t // and there this segment intersects with the small circle.\n\t if (!(c & c0) && (t = intersect(point1, point0, true))) {\n\t clean = 0;\n\t if (smallRadius) {\n\t stream.lineStart();\n\t stream.point(t[0][0], t[0][1]);\n\t stream.point(t[1][0], t[1][1]);\n\t stream.lineEnd();\n\t } else {\n\t stream.point(t[1][0], t[1][1]);\n\t stream.lineEnd();\n\t stream.lineStart();\n\t stream.point(t[0][0], t[0][1]);\n\t }\n\t }\n\t }\n\t if (v && (!point0 || !pointEqual(point0, point1))) {\n\t stream.point(point1[0], point1[1]);\n\t }\n\t point0 = point1, v0 = v, c0 = c;\n\t },\n\t lineEnd: function() {\n\t if (v0) stream.lineEnd();\n\t point0 = null;\n\t },\n\t // Rejoin first and last segments if there were intersections and the first\n\t // and last points were visible.\n\t clean: function() {\n\t return clean | ((v00 && v0) << 1);\n\t }\n\t };\n\t }", "scratchLine(x, y, fresh) {\n const drawctx = this.canvas[0].draw.getContext('2d');\n const strokectx = this.strokeCanvas.getContext('2d');\n\n drawctx.lineWidth = strokectx.lineWidth = this.brushSize;\n drawctx.lineCap = drawctx.lineJoin = strokectx.lineCap = strokectx.lineJoin = 'round';\n\n drawctx.strokeStyle = '#fff'; // can be any opaque color\n strokectx.strokeStyle = '#000';\n\n if (fresh) {\n drawctx.beginPath();\n strokectx.beginPath();\n\n // this +0.01 hackishly causes Linux Chrome to draw a\n // \"zero\"-length line (a single point), otherwise it doesn't\n // draw when the mouse is clicked but not moved\n // Plus 1 for the border\n\n drawctx.moveTo(x+0.01+1, y);\n strokectx.moveTo(x+0.01+1, y);\n }\n\n drawctx.lineTo(x+1, y);\n strokectx.lineTo(x+1, y);\n\n drawctx.stroke();\n strokectx.stroke();\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? _math__WEBPACK_IMPORTED_MODULE_2__[\"pi\"] : -_math__WEBPACK_IMPORTED_MODULE_2__[\"pi\"]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point2) || Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point1, point2)) {\n point1[0] += _math__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n point1[1] += _math__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? _math__WEBPACK_IMPORTED_MODULE_2__[\"pi\"] : -_math__WEBPACK_IMPORTED_MODULE_2__[\"pi\"]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point2) || Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point1, point2)) {\n point1[0] += _math__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n point1[1] += _math__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? _math__WEBPACK_IMPORTED_MODULE_2__[\"pi\"] : -_math__WEBPACK_IMPORTED_MODULE_2__[\"pi\"]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point2) || Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point1, point2)) {\n point1[0] += _math__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n point1[1] += _math__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? _math__WEBPACK_IMPORTED_MODULE_2__[\"pi\"] : -_math__WEBPACK_IMPORTED_MODULE_2__[\"pi\"]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point2) || Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point1, point2)) {\n point1[0] += _math__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n point1[1] += _math__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? _math__WEBPACK_IMPORTED_MODULE_2__[\"pi\"] : -_math__WEBPACK_IMPORTED_MODULE_2__[\"pi\"]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point2) || Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point1, point2)) {\n point1[0] += _math__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n point1[1] += _math__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? _math__WEBPACK_IMPORTED_MODULE_2__[\"pi\"] : -_math__WEBPACK_IMPORTED_MODULE_2__[\"pi\"]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point2) || Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point1, point2)) {\n point1[0] += _math__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n point1[1] += _math__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(_pointEqual__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n\t var point0, // previous point\n\t c0, // code for previous point\n\t v0, // visibility of previous point\n\t v00, // visibility of first point\n\t clean; // no intersections\n\t return {\n\t lineStart: function() {\n\t v00 = v0 = false;\n\t clean = 1;\n\t },\n\t point: function(lambda, phi) {\n\t var point1 = [lambda, phi],\n\t point2,\n\t v = visible(lambda, phi),\n\t c = smallRadius\n\t ? v ? 0 : code(lambda, phi)\n\t : v ? code(lambda + (lambda < 0 ? pi$3 : -pi$3), phi) : 0;\n\t if (!point0 && (v00 = v0 = v)) stream.lineStart();\n\t // Handle degeneracies.\n\t // TODO ignore if not clipping polygons.\n\t if (v !== v0) {\n\t point2 = intersect(point0, point1);\n\t if (pointEqual(point0, point2) || pointEqual(point1, point2)) {\n\t point1[0] += epsilon$2;\n\t point1[1] += epsilon$2;\n\t v = visible(point1[0], point1[1]);\n\t }\n\t }\n\t if (v !== v0) {\n\t clean = 0;\n\t if (v) {\n\t // outside going in\n\t stream.lineStart();\n\t point2 = intersect(point1, point0);\n\t stream.point(point2[0], point2[1]);\n\t } else {\n\t // inside going out\n\t point2 = intersect(point0, point1);\n\t stream.point(point2[0], point2[1]);\n\t stream.lineEnd();\n\t }\n\t point0 = point2;\n\t } else if (notHemisphere && point0 && smallRadius ^ v) {\n\t var t;\n\t // If the codes for two points are different, or are both zero,\n\t // and there this segment intersects with the small circle.\n\t if (!(c & c0) && (t = intersect(point1, point0, true))) {\n\t clean = 0;\n\t if (smallRadius) {\n\t stream.lineStart();\n\t stream.point(t[0][0], t[0][1]);\n\t stream.point(t[1][0], t[1][1]);\n\t stream.lineEnd();\n\t } else {\n\t stream.point(t[1][0], t[1][1]);\n\t stream.lineEnd();\n\t stream.lineStart();\n\t stream.point(t[0][0], t[0][1]);\n\t }\n\t }\n\t }\n\t if (v && (!point0 || !pointEqual(point0, point1))) {\n\t stream.point(point1[0], point1[1]);\n\t }\n\t point0 = point1, v0 = v, c0 = c;\n\t },\n\t lineEnd: function() {\n\t if (v0) stream.lineEnd();\n\t point0 = null;\n\t },\n\t // Rejoin first and last segments if there were intersections and the first\n\t // and last points were visible.\n\t clean: function() {\n\t return clean | ((v00 && v0) << 1);\n\t }\n\t };\n\t }", "function clipLine(stream) {\n\t var point0, // previous point\n\t c0, // code for previous point\n\t v0, // visibility of previous point\n\t v00, // visibility of first point\n\t clean; // no intersections\n\t return {\n\t lineStart: function() {\n\t v00 = v0 = false;\n\t clean = 1;\n\t },\n\t point: function(lambda, phi) {\n\t var point1 = [lambda, phi],\n\t point2,\n\t v = visible(lambda, phi),\n\t c = smallRadius\n\t ? v ? 0 : code(lambda, phi)\n\t : v ? code(lambda + (lambda < 0 ? pi$3 : -pi$3), phi) : 0;\n\t if (!point0 && (v00 = v0 = v)) stream.lineStart();\n\t // Handle degeneracies.\n\t // TODO ignore if not clipping polygons.\n\t if (v !== v0) {\n\t point2 = intersect(point0, point1);\n\t if (pointEqual(point0, point2) || pointEqual(point1, point2)) {\n\t point1[0] += epsilon$2;\n\t point1[1] += epsilon$2;\n\t v = visible(point1[0], point1[1]);\n\t }\n\t }\n\t if (v !== v0) {\n\t clean = 0;\n\t if (v) {\n\t // outside going in\n\t stream.lineStart();\n\t point2 = intersect(point1, point0);\n\t stream.point(point2[0], point2[1]);\n\t } else {\n\t // inside going out\n\t point2 = intersect(point0, point1);\n\t stream.point(point2[0], point2[1]);\n\t stream.lineEnd();\n\t }\n\t point0 = point2;\n\t } else if (notHemisphere && point0 && smallRadius ^ v) {\n\t var t;\n\t // If the codes for two points are different, or are both zero,\n\t // and there this segment intersects with the small circle.\n\t if (!(c & c0) && (t = intersect(point1, point0, true))) {\n\t clean = 0;\n\t if (smallRadius) {\n\t stream.lineStart();\n\t stream.point(t[0][0], t[0][1]);\n\t stream.point(t[1][0], t[1][1]);\n\t stream.lineEnd();\n\t } else {\n\t stream.point(t[1][0], t[1][1]);\n\t stream.lineEnd();\n\t stream.lineStart();\n\t stream.point(t[0][0], t[0][1]);\n\t }\n\t }\n\t }\n\t if (v && (!point0 || !pointEqual(point0, point1))) {\n\t stream.point(point1[0], point1[1]);\n\t }\n\t point0 = point1, v0 = v, c0 = c;\n\t },\n\t lineEnd: function() {\n\t if (v0) stream.lineEnd();\n\t point0 = null;\n\t },\n\t // Rejoin first and last segments if there were intersections and the first\n\t // and last points were visible.\n\t clean: function() {\n\t return clean | ((v00 && v0) << 1);\n\t }\n\t };\n\t }", "function clipLine(stream) {\n\t var point0, // previous point\n\t c0, // code for previous point\n\t v0, // visibility of previous point\n\t v00, // visibility of first point\n\t clean; // no intersections\n\t return {\n\t lineStart: function() {\n\t v00 = v0 = false;\n\t clean = 1;\n\t },\n\t point: function(lambda, phi) {\n\t var point1 = [lambda, phi],\n\t point2,\n\t v = visible(lambda, phi),\n\t c = smallRadius\n\t ? v ? 0 : code(lambda, phi)\n\t : v ? code(lambda + (lambda < 0 ? pi$3 : -pi$3), phi) : 0;\n\t if (!point0 && (v00 = v0 = v)) stream.lineStart();\n\t // Handle degeneracies.\n\t // TODO ignore if not clipping polygons.\n\t if (v !== v0) {\n\t point2 = intersect(point0, point1);\n\t if (pointEqual(point0, point2) || pointEqual(point1, point2)) {\n\t point1[0] += epsilon$2;\n\t point1[1] += epsilon$2;\n\t v = visible(point1[0], point1[1]);\n\t }\n\t }\n\t if (v !== v0) {\n\t clean = 0;\n\t if (v) {\n\t // outside going in\n\t stream.lineStart();\n\t point2 = intersect(point1, point0);\n\t stream.point(point2[0], point2[1]);\n\t } else {\n\t // inside going out\n\t point2 = intersect(point0, point1);\n\t stream.point(point2[0], point2[1]);\n\t stream.lineEnd();\n\t }\n\t point0 = point2;\n\t } else if (notHemisphere && point0 && smallRadius ^ v) {\n\t var t;\n\t // If the codes for two points are different, or are both zero,\n\t // and there this segment intersects with the small circle.\n\t if (!(c & c0) && (t = intersect(point1, point0, true))) {\n\t clean = 0;\n\t if (smallRadius) {\n\t stream.lineStart();\n\t stream.point(t[0][0], t[0][1]);\n\t stream.point(t[1][0], t[1][1]);\n\t stream.lineEnd();\n\t } else {\n\t stream.point(t[1][0], t[1][1]);\n\t stream.lineEnd();\n\t stream.lineStart();\n\t stream.point(t[0][0], t[0][1]);\n\t }\n\t }\n\t }\n\t if (v && (!point0 || !pointEqual(point0, point1))) {\n\t stream.point(point1[0], point1[1]);\n\t }\n\t point0 = point1, v0 = v, c0 = c;\n\t },\n\t lineEnd: function() {\n\t if (v0) stream.lineEnd();\n\t point0 = null;\n\t },\n\t // Rejoin first and last segments if there were intersections and the first\n\t // and last points were visible.\n\t clean: function() {\n\t return clean | ((v00 && v0) << 1);\n\t }\n\t };\n\t }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? _math_js__WEBPACK_IMPORTED_MODULE_2__[\"pi\"] : -_math_js__WEBPACK_IMPORTED_MODULE_2__[\"pi\"]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point2) || Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point1, point2)) {\n point1[0] += _math_js__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n point1[1] += _math_js__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? _math_js__WEBPACK_IMPORTED_MODULE_2__[\"pi\"] : -_math_js__WEBPACK_IMPORTED_MODULE_2__[\"pi\"]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point2) || Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point1, point2)) {\n point1[0] += _math_js__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n point1[1] += _math_js__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? _math_js__WEBPACK_IMPORTED_MODULE_2__[\"pi\"] : -_math_js__WEBPACK_IMPORTED_MODULE_2__[\"pi\"]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point2) || Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point1, point2)) {\n point1[0] += _math_js__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n point1[1] += _math_js__WEBPACK_IMPORTED_MODULE_2__[\"epsilon\"];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n\t var point0, // previous point\n\t c0, // code for previous point\n\t v0, // visibility of previous point\n\t v00, // visibility of first point\n\t clean; // no intersections\n\t return {\n\t lineStart: function() {\n\t v00 = v0 = false;\n\t clean = 1;\n\t },\n\t point: function(lambda, phi) {\n\t var point1 = [lambda, phi],\n\t point2,\n\t v = visible(lambda, phi),\n\t c = smallRadius\n\t ? v ? 0 : code(lambda, phi)\n\t : v ? code(lambda + (lambda < 0 ? pi$4 : -pi$4), phi) : 0;\n\t if (!point0 && (v00 = v0 = v)) stream.lineStart();\n\t // Handle degeneracies.\n\t // TODO ignore if not clipping polygons.\n\t if (v !== v0) {\n\t point2 = intersect(point0, point1);\n\t if (pointEqual(point0, point2) || pointEqual(point1, point2)) {\n\t point1[0] += epsilon$4;\n\t point1[1] += epsilon$4;\n\t v = visible(point1[0], point1[1]);\n\t }\n\t }\n\t if (v !== v0) {\n\t clean = 0;\n\t if (v) {\n\t // outside going in\n\t stream.lineStart();\n\t point2 = intersect(point1, point0);\n\t stream.point(point2[0], point2[1]);\n\t } else {\n\t // inside going out\n\t point2 = intersect(point0, point1);\n\t stream.point(point2[0], point2[1]);\n\t stream.lineEnd();\n\t }\n\t point0 = point2;\n\t } else if (notHemisphere && point0 && smallRadius ^ v) {\n\t var t;\n\t // If the codes for two points are different, or are both zero,\n\t // and there this segment intersects with the small circle.\n\t if (!(c & c0) && (t = intersect(point1, point0, true))) {\n\t clean = 0;\n\t if (smallRadius) {\n\t stream.lineStart();\n\t stream.point(t[0][0], t[0][1]);\n\t stream.point(t[1][0], t[1][1]);\n\t stream.lineEnd();\n\t } else {\n\t stream.point(t[1][0], t[1][1]);\n\t stream.lineEnd();\n\t stream.lineStart();\n\t stream.point(t[0][0], t[0][1]);\n\t }\n\t }\n\t }\n\t if (v && (!point0 || !pointEqual(point0, point1))) {\n\t stream.point(point1[0], point1[1]);\n\t }\n\t point0 = point1, v0 = v, c0 = c;\n\t },\n\t lineEnd: function() {\n\t if (v0) stream.lineEnd();\n\t point0 = null;\n\t },\n\t // Rejoin first and last segments if there were intersections and the first\n\t // and last points were visible.\n\t clean: function() {\n\t return clean | ((v00 && v0) << 1);\n\t }\n\t };\n\t }", "function render_lineNegatief() {\n var plotLine = hgiLine().mapping(['meetmoment', 'somberheid', 'onrust']).yDomain([0, 100]).legend(['Somberheid', 'Onrust']).yTicks(5).xLabel('Meetmoment').yLabel(\"Negatieve gevoelens\");\n d3.select('#lineNegatief').datum(data).call(plotLine);\n}", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? _math_js__WEBPACK_IMPORTED_MODULE_2__[\"pi\"] : -_math_js__WEBPACK_IMPORTED_MODULE_2__[\"pi\"]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point2) || Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point1, point2))\n point1[2] = 1;\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1], 2);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1], 3);\n }\n }\n }\n if (v && (!point0 || !Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? _math_js__WEBPACK_IMPORTED_MODULE_2__[\"pi\"] : -_math_js__WEBPACK_IMPORTED_MODULE_2__[\"pi\"]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point2) || Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point1, point2))\n point1[2] = 1;\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1], 2);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1], 3);\n }\n }\n }\n if (v && (!point0 || !Object(_pointEqual_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? _math_js__WEBPACK_IMPORTED_MODULE_0__.pi : -_math_js__WEBPACK_IMPORTED_MODULE_0__.pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || (0,_pointEqual_js__WEBPACK_IMPORTED_MODULE_2__.default)(point0, point2) || (0,_pointEqual_js__WEBPACK_IMPORTED_MODULE_2__.default)(point1, point2)) {\n point1[0] += _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon;\n point1[1] += _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !(0,_pointEqual_js__WEBPACK_IMPORTED_MODULE_2__.default)(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? _math_js__WEBPACK_IMPORTED_MODULE_0__.pi : -_math_js__WEBPACK_IMPORTED_MODULE_0__.pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || (0,_pointEqual_js__WEBPACK_IMPORTED_MODULE_2__.default)(point0, point2) || (0,_pointEqual_js__WEBPACK_IMPORTED_MODULE_2__.default)(point1, point2))\n point1[2] = 1;\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1], 2);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1], 3);\n }\n }\n }\n if (v && (!point0 || !(0,_pointEqual_js__WEBPACK_IMPORTED_MODULE_2__.default)(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? _math_js__WEBPACK_IMPORTED_MODULE_0__.pi : -_math_js__WEBPACK_IMPORTED_MODULE_0__.pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || (0,_pointEqual_js__WEBPACK_IMPORTED_MODULE_2__.default)(point0, point2) || (0,_pointEqual_js__WEBPACK_IMPORTED_MODULE_2__.default)(point1, point2))\n point1[2] = 1;\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1], 2);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1], 3);\n }\n }\n }\n if (v && (!point0 || !(0,_pointEqual_js__WEBPACK_IMPORTED_MODULE_2__.default)(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function _drawLineStrip(points, color) {\n if (points.length < 2) {\n console.error('Line strips must have at least 2 points.');\n return;\n }\n\n var p = new Primitive();\n\n p.vertices = points;\n p.color = toColor(color);\n\n renderer.addPrimitive(p);\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math_js__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math_js__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual_js__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual_js__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math_js__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math_js__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual_js__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }", "function draw_first_line(){\n points.push(start);\n points.push(end);\n}", "function drawLineBressenhamSimple(buffer, x1, y1, x2, y2, colour) {\n var dx = Math.abs(x2 - x1);\n var dy = Math.abs(y2 - y1);\n var sx, sy;\n if (x1 < x2) {\n sx = 1;\n } else {\n sx = -1;\n }\n if (y1 < y2) {\n sy = 1;\n } else {\n sy = -1;\n }\n var err = dx - dy;\n while (x1 !== x2 && y1 !== y2) {\n setPixel(buffer, x1, y1, colour);\n var e2 = 2 * err;\n if (e2 > -dy) {\n err = err - dy;\n x1 = x1 + sx;\n }\n if (e2 < dx) {\n err = err + dx;\n y1 = y1 + sy;\n }\n }\n}", "function smoothLine(id) {\n let index = indexArray.indexOf(id);\n let config = configArray[index];\n if (config.options.elements.line.tension == '0.4') {\n config.options.elements.line.tension = 0.000001;\n } else {\n config.options.elements.line.tension = 0.4;\n }\n chartsArray[indexArray.indexOf(id)].update();\n}", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n _clean; // no intersections\n return {\n lineStart: function lineStart() {\n v00 = v0 = false;\n _clean = 1;\n },\n point: function point(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius ? v ? 0 : code(lambda, phi) : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n _clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n _clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function lineEnd() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function clean() {\n return _clean | (v00 && v0) << 1;\n }\n };\n }", "function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n _clean; // no intersections\n return {\n lineStart: function lineStart() {\n v00 = v0 = false;\n _clean = 1;\n },\n point: function point(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius ? v ? 0 : code(lambda, phi) : v ? code(lambda + (lambda < 0 ? __WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */] : -__WEBPACK_IMPORTED_MODULE_2__math__[\"o\" /* pi */]), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point2) || Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point1, point2)) {\n point1[0] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n point1[1] += __WEBPACK_IMPORTED_MODULE_2__math__[\"i\" /* epsilon */];\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n _clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n _clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !Object(__WEBPACK_IMPORTED_MODULE_3__pointEqual__[\"a\" /* default */])(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function lineEnd() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function clean() {\n return _clean | (v00 && v0) << 1;\n }\n };\n }", "function clipLine(listener) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(λ, φ) {\n var point1 = [λ, φ],\n point2,\n v = visible(λ, φ),\n c = smallRadius\n ? v ? 0 : code(λ, φ)\n : v ? code(λ + (λ < 0 ? π : -π), φ) : 0;\n if (!point0 && (v00 = v0 = v)) listener.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (d3f_geo_sphericalEqual(point0, point2) || d3f_geo_sphericalEqual(point1, point2)) {\n point1[0] += ε;\n point1[1] += ε;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n listener.lineStart();\n point2 = intersect(point1, point0);\n listener.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n listener.point(point2[0], point2[1]);\n listener.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n listener.lineStart();\n listener.point(t[0][0], t[0][1]);\n listener.point(t[1][0], t[1][1]);\n listener.lineEnd();\n } else {\n listener.point(t[1][0], t[1][1]);\n listener.lineEnd();\n listener.lineStart();\n listener.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !d3f_geo_sphericalEqual(point0, point1))) {\n listener.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) listener.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() { return clean | ((v00 && v0) << 1); }\n };\n }", "function d3_svg_lineCardinal(points, tension, closed) {\n return points.length < 3\n ? d3_svg_lineLinear(points)\n : points[0] + d3_svg_lineHermite(points,\n d3_svg_lineCardinalTangents(points, tension));\n}", "function d3_svg_lineCardinal(points, tension, closed) {\n return points.length < 3\n ? d3_svg_lineLinear(points)\n : points[0] + d3_svg_lineHermite(points,\n d3_svg_lineCardinalTangents(points, tension));\n}", "visitLinePixels(visitor, line) {\n const vec = { dx: line.x1 - line.x0, dy: line.y1 - line.y0 }\n // If line is a point we're lazy (and eliminate some special cases)\n if (vec.dx === 0 && vec.dy === 0) {\n const x = Math.floor(line.x0);\n const y = Math.floor(line.y0);\n const idx = x + this.width * y;\n visitor(x, y, idx);\n return;\n }\n const len = Math.sqrt(Math.pow(vec.dx, 2) + Math.pow(vec.dy, 2));\n const unit = { dx: vec.dx / len, dy: vec.dy / len };\n const ortho = { dx: unit.dy, dy: -unit.dx };\n // Using a Set makes it easy to comply with the pixel uniqueness\n // requirement\n const indices = new Set();\n const addPixel = (x, y) => {\n x = Math.floor(x);\n y = Math.floor(y);\n if (x < 0 || x >= this.width)\n return\n if (y < 0 || y >= this.height)\n return;\n const idx = x + this.width * y;\n if (idx !== idx)\n throw new Error('Trying to add NaN as a line pixel index');\n indices.add(idx);\n };\n const pos = { x: line.x0, y: line.y0 };\n const sigX = line.x1 - line.x0;\n const sigY = line.y1 - line.y0;\n do {\n addPixel(pos.x, pos.y);\n for (let i = 0; i < this.strokeWidth; i++) {\n const xt = pos.x + .5 * ortho.dx;\n const yt = pos.y + .5 * ortho.dy;\n addPixel(xt, yt);\n const xb = pos.x - .5 * ortho.dx;\n const yb = pos.y - .5 * ortho.dy;\n addPixel(xb, yb);\n }\n pos.x += unit.dx;\n pos.y += unit.dy;\n } while((line.x1 - pos.x) * sigX > 0 || (line.y1 - pos.y) * sigY > 0);\n const iterator = indices.values();\n for (let i = 0; i < indices.size; i++) {\n const idx = iterator.next().value;\n const x = idx % this.width;\n const y = Math.floor(idx / this.width);\n if (x !== x || y !== y)\n throw new Error('Encountered line coordinates which are NaN');\n const res = visitor(x, y, idx);\n // Bailing mechanism\n if (res === false)\n break;\n }\n }", "function d3_v3_svg_lineCardinal(points, tension, closed) {\n return points.length < 3\n ? d3_v3_svg_lineLinear(points)\n : points[0] + d3_v3_svg_lineHermite(points,\n d3_v3_svg_lineCardinalTangents(points, tension));\n}", "function clipLine(stream) {\n var point0, c0, v0, v00, clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [\n lambda,\n phi\n ], point2, v = visible(lambda, phi), c = smallRadius ? v ? 0 : code1(lambda, phi) : v ? code1(lambda + (lambda < 0 ? _mathJs.pi : -_mathJs.pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || _pointEqualJsDefault.default(point0, point2) || _pointEqualJsDefault.default(point1, point2)) point1[2] = 1;\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1], 2);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1], 3);\n }\n }\n }\n if (v && (!point0 || !_pointEqualJsDefault.default(point0, point1))) stream.point(point1[0], point1[1]);\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | (v00 && v0) << 1;\n }\n };\n }", "function line(x0, y0, x1, y1){\n var dx = Math.abs(x1-x0);\n var dy = Math.abs(y1-y0);\n var sx = (x0 < x1) ? 1 : -1;\n var sy = (y0 < y1) ? 1 : -1;\n var err = dx-dy;\n var terminationConst = 1.1;\n\n while(true){\n // putPixel\n ctx.fillStyle = 'black';\n ctx.fillRect(x0, y0, 1, 1);\n\n if ((Math.abs(x0-x1) < terminationConst) && (Math.abs(y0-y1) < terminationConst)) break;\n var e2 = 2*err;\n if (e2 >-dy){ err -= dy; x0 += sx; }\n if (e2 < dx){ err += dx; y0 += sy; }\n }\n }", "function line(x1, y1, x2, y2, lW, sS) {\n window.ctx.save();\n window.ctx.lineWidth = lW + 2;\n window.ctx.beginPath();\n window.ctx.moveTo(x1, y1);\n window.ctx.lineTo(x2, y2);\n window.ctx.strokeStyle = \"rgba(0, 0, 0, 0.25)\";\n window.ctx.stroke();\n window.ctx.lineWidth = lW;\n window.ctx.strokeStyle = sS;\n window.ctx.stroke();\n window.ctx.restore();\n}", "function drawOnePixelLine(line, context, color) {\n var imageData;\n if (line.x1 == line.x2) {\n imageData = context.getImageData(line.x1, line.y1, 1, Math.abs(line.y2-line.y1));\n } else if (line.y1 == line.y2) {\n imageData = context.getImageData(line.x1, line.y1, Math.abs(line.x2-line.x1), 1);\n } else {\n alert('error');\n }\n var linedata = imageData.data;\n for (var i = 0; i < linedata.length; ++i) {\n linedata[i++] = color.R;\n linedata[i++] = color.G;\n linedata[i++] = color.B;\n linedata[i] = color.A;\n }\n context.putImageData(imageData, line.x1, line.y1);\n}", "function drawline() {\n\n if (isDrawing) {\n linePoint2 = d3.mouse(this);\n gContainer.select('line').remove();\n gContainer.append('line')\n .attr(\"x1\", linePoint1.x)\n .attr(\"y1\", linePoint1.y)\n .attr(\"x2\", linePoint2[0] - 2) //arbitary value must be substracted due to circle cursor hover not working\n .attr(\"y2\", linePoint2[1] - 2); // arbitary values must be tested\n\n }\n }", "function pinselada() {\n ctx.lineWidth = tamLinea;\n ctx.lineJoin = \"round\";\n ctx.lineCap = \"round\";\n ctx.lineTo(mouse.x, mouse.y);\n ctx.stroke();\n }", "function d3_svg_lineCardinal(points, tension) {\n return points.length < 3\n ? d3_svg_lineLinear(points)\n : points[0] + d3_svg_lineHermite(points,\n d3_svg_lineCardinalTangents(points, tension));\n}", "function drawLine(pointA, pointB, pointC, forPower) {\n\n var pointStatus = false;\n\n // equation of line \"mx-y-(mx1-y1)\" so m = y-y1/x-x1\n var m = (pointB[1] - pointA[1]) / (pointB[0] - pointA[0]);\n var c = pointA[1] - m * pointA[0];\n var b = -1;\n\n var valueAtPointC = m * pointC[0] - pointC[1] + c;\n if ((valueAtPointC == 0) || (valueAtPointC > 0 && b < 0) || (valueAtPointC < 0 && b > 0)) {\n pointStatus = true;\n } else {\n pointStatus = false;\n }\n\n if (!forPower) {\n // calculation for Torque and Speed utilization.\n var peakTorqueUtilization = (pointC[1] * 100) / (m * pointC[0] + c);\n var peakSpeedUtilization = (pointC[0] * 100) / motorData.maxSpeed;\n torqueUtilizationArray.push(peakTorqueUtilization);\n speedUtilizationArray.push(peakSpeedUtilization);\n } else {\n // calculation for average power utilization. formula: power = speed * torque.\n var powerOfApp = pointC[0] * pointC[1];\n var powerOfMotor = pointC[0] * (m * pointC[0] + c);\n var avgPower = (powerOfApp * 100) / powerOfMotor;\n averagePowerArray.push(avgPower);\n }\n\n return pointStatus;\n }", "function drawLine(m, b) {\n m *= -1; // flip\n let x1 = 0;\n let y1 = (x1 * m) + b;\n\n let x2 = W;\n let y2 = (x2 * m) + b;\n\n line(x1, y1,\n x2, y2);\n}", "function drawLine(){\n //loop through the array of coordinates and connect them with a line if they are not directly next to each other\n for (let i = 0; i < savedCoords.length-1; i++){\n if (savedCoords.length > 1) {\n // if x is not directly next to x, or y not next to y\n if ((savedCoords[i][0] != savedCoords[i+1][0]+1) || (savedCoords[i][1] != savedCoords[i+1][1]+1)){\n // set start and end, draw line between them\n draw(savedCoords , i);\n }\n }\n }\n}", "_drawLineLow( x1, y1, x2, y2, id ) {\n const dx = x2 - x1;\n let dy = y2 - y1;\n let yIncrement = 1;\n if ( dy < 0 ) {\n yIncrement = -1;\n dy = -dy;\n }\n\n let decision = 2 * dy - dx;\n let y = y1;\n\n for ( let x = x1; x <= x2; x += 1 ) {\n this.setPixel( x, y, id );\n\n if ( decision > 0 ) {\n y += yIncrement;\n decision = decision - ( 2 * dx );\n }\n\n decision = decision + ( 2 * dy );\n }\n }" ]
[ "0.6029256", "0.6015774", "0.59806824", "0.5928093", "0.5922997", "0.5870417", "0.5858161", "0.5855403", "0.5854368", "0.5852314", "0.5850531", "0.5846535", "0.58302444", "0.58302444", "0.58302444", "0.58270085", "0.58270085", "0.58270085", "0.58270085", "0.58270085", "0.58270085", "0.5821405", "0.5816759", "0.58096874", "0.58096874", "0.58096874", "0.58096874", "0.58023083", "0.5798356", "0.57840395", "0.5780169", "0.5776549", "0.57725114", "0.5759245", "0.5759034", "0.5759034", "0.5757009", "0.5756783", "0.5756783", "0.5756783", "0.5756783", "0.5756783", "0.5756783", "0.5744646", "0.5744646", "0.5744646", "0.5742087", "0.5742087", "0.5742087", "0.5741842", "0.57308364", "0.5727509", "0.5727509", "0.5719825", "0.5716807", "0.5716807", "0.571664", "0.57102346", "0.57102346", "0.57102346", "0.57102346", "0.57102346", "0.57102346", "0.57102346", "0.57102346", "0.57102346", "0.57102346", "0.57102346", "0.57102346", "0.57102346", "0.57102346", "0.57102346", "0.5705958", "0.570289", "0.5693138", "0.56910366", "0.5683148", "0.5681051", "0.5676406", "0.56644225", "0.5656681", "0.5656681", "0.5640827", "0.5618938", "0.56158906", "0.56124175", "0.56064516", "0.55893636", "0.55850494", "0.557742", "0.5571576", "0.5566272", "0.55465454", "0.55252004", "0.5518613" ]
0.6422131
3
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function _default(option) { if (!option || !zrUtil.isArray(option.series)) { return; } // Translate 'k' to 'candlestick'. zrUtil.each(option.series, function (seriesItem) { if (zrUtil.isObject(seriesItem) && seriesItem.type === 'k') { seriesItem.type = 'candlestick'; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "started () {}", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "started() {\r\n\r\n\t}", "function SigV4Utils() { }", "static get NOT_READY () {return 0}", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "initialize() {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "function getImplementation( cb ){\n\n }", "heartbeat () {\n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "static final private internal function m106() {}", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "get WSAPlayerX64() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }" ]
[ "0.53492224", "0.48935446", "0.48514137", "0.48082927", "0.47720826", "0.4744996", "0.47347993", "0.47019523", "0.46926585", "0.46926585", "0.46730793", "0.46452278", "0.46379203", "0.46256977", "0.4618543", "0.45818752", "0.45806864", "0.45742333", "0.4568166", "0.45616665", "0.45558366", "0.4549164", "0.45481402", "0.45447382", "0.4537214", "0.4522665", "0.451785", "0.4497493", "0.44942656", "0.4484697", "0.4472648", "0.44683102", "0.4465637", "0.44581723", "0.44557354", "0.4454013", "0.44524705", "0.44436827", "0.44380364", "0.4427005", "0.44242096", "0.44237852", "0.44070554", "0.44050547", "0.44050547", "0.44050547", "0.4404598", "0.4393088", "0.43767613", "0.43684104", "0.43635124", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.4353219", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43515262", "0.43511948", "0.43502447", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43487865", "0.43443355", "0.43417493", "0.43380377", "0.43350744", "0.43350744", "0.4332956", "0.43327877" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. FIXME step not support polar
function isPointsSame(points1, points2) { if (points1.length !== points2.length) { return; } for (var i = 0; i < points1.length; i++) { var p1 = points1[i]; var p2 = points2[i]; if (p1[0] !== p2[0] || p1[1] !== p2[1]) { return; } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "_radialCoordinates(angles, radius){\n\n return angles.map((angle) => {\n return Coordinate.polar({\n coords: [radius, angle - 90],\n isDegree: true\n });\n })\n\n }", "static polar (len, angle) {\n return new Point (Math.cos(angle)*len, Math.sin(angle)*len);\n }", "function cartesian2Polar(point){\n var x = point[0];\n var y = point[1];\n var theta = rad2deg(Math.atan(y/x));\n \n // Q1: Use theta\n // Q2, Q3: Use theta + 180\n // Q4: Use theta + 360\n if(x < 0) theta += 180; // Handles Q2, Q3\n if(x > 0 && y < 0) theta += 360; // Handles Q4 \n \n if(x == 0){\n if(y > 0) theta = 90;\n else if(y < 0) theta = 270;\n else theta = 0;\n }\n \n return [magnitude(x,y), theta];\n}", "function polarAdd(origin, angle, length) {\n\t var x = origin[0];\n\t var y = origin[1];\n\t return [x + Math.cos(angle * 2 * Math.PI / 360) * length, y + -1.0 * Math.sin(angle * 2 * Math.PI / 360) * length];\n\t}", "static fromRot(axis, angle) {\nvar q;\n//-------\nq = new RQ();\nq.setFromAxisAngle(axis, angle);\nreturn q;\n}", "rotate(azimuthAngle, polarAngle, enableTransition) {\n \n this.rotateTo(\n this._sphericalEnd.theta + azimuthAngle,\n this._sphericalEnd.phi + polarAngle,\n enableTransition\n )\n \n }", "function polarAdd(origin, angle, length) {\n var x = origin[0];\n var y = origin[1];\n return [x + Math.cos(angle * 2 * Math.PI / 360) * length, y + -1.0 * Math.sin(angle * 2 * Math.PI / 360) * length];\n}", "function init() {\n\n // array of: r_maj,r_min,lat1,lat2,c_lon,c_lat,false_east,false_north\n //double c_lat; /* center latitude */\n //double c_lon; /* center longitude */\n //double lat1; /* first standard parallel */\n //double lat2; /* second standard parallel */\n //double r_maj; /* major axis */\n //double r_min; /* minor axis */\n //double false_east; /* x offset in meters */\n //double false_north; /* y offset in meters */\n\n if (!this.lat2) {\n this.lat2 = this.lat1;\n } //if lat2 is not defined\n if (!this.k0) {\n this.k0 = 1;\n }\n this.x0 = this.x0 || 0;\n this.y0 = this.y0 || 0;\n // Standard Parallels cannot be equal and on opposite sides of the equator\n if (Math.abs(this.lat1 + this.lat2) < __WEBPACK_IMPORTED_MODULE_5__constants_values__[\"a\" /* EPSLN */]) {\n return;\n }\n\n var temp = this.b / this.a;\n this.e = Math.sqrt(1 - temp * temp);\n\n var sin1 = Math.sin(this.lat1);\n var cos1 = Math.cos(this.lat1);\n var ms1 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__common_msfnz__[\"a\" /* default */])(this.e, sin1, cos1);\n var ts1 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_tsfnz__[\"a\" /* default */])(this.e, this.lat1, sin1);\n\n var sin2 = Math.sin(this.lat2);\n var cos2 = Math.cos(this.lat2);\n var ms2 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__common_msfnz__[\"a\" /* default */])(this.e, sin2, cos2);\n var ts2 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_tsfnz__[\"a\" /* default */])(this.e, this.lat2, sin2);\n\n var ts0 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_tsfnz__[\"a\" /* default */])(this.e, this.lat0, Math.sin(this.lat0));\n\n if (Math.abs(this.lat1 - this.lat2) > __WEBPACK_IMPORTED_MODULE_5__constants_values__[\"a\" /* EPSLN */]) {\n this.ns = Math.log(ms1 / ms2) / Math.log(ts1 / ts2);\n }\n else {\n this.ns = sin1;\n }\n if (isNaN(this.ns)) {\n this.ns = sin1;\n }\n this.f0 = ms1 / (this.ns * Math.pow(ts1, this.ns));\n this.rh = this.a * this.f0 * Math.pow(ts0, this.ns);\n if (!this.title) {\n this.title = \"Lambert Conformal Conic\";\n }\n}", "updateAngleStep() {\n\n\t\tthis.defines.set(\"ANGLE_STEP\", (Math.PI * 2.0 * this.rings / this.samples).toFixed(11));\n\n\t}", "function getTheta(){\n return theta * Math.PI / 180;\n}", "function polar(rFunctionOfTheta){\n return function(parameter){\n var theta = parameter;\n var radius = rFunctionOfTheta(theta);\n return [radius * Math.cos(theta), radius * Math.sin(theta)];\n }\n}", "static fromRPY(roll, pitch, yaw) {\nvar q;\n//-------\nq = new RQ();\nq.setFromAxisRotations(roll, pitch, yaw);\nreturn q;\n}", "function init() {\n var t = Math.abs(this.lat0);\n if (Math.abs(t - __WEBPACK_IMPORTED_MODULE_0__constants_values__[\"b\" /* HALF_PI */]) < __WEBPACK_IMPORTED_MODULE_0__constants_values__[\"a\" /* EPSLN */]) {\n this.mode = this.lat0 < 0 ? this.S_POLE : this.N_POLE;\n }\n else if (Math.abs(t) < __WEBPACK_IMPORTED_MODULE_0__constants_values__[\"a\" /* EPSLN */]) {\n this.mode = this.EQUIT;\n }\n else {\n this.mode = this.OBLIQ;\n }\n if (this.es > 0) {\n var sinphi;\n\n this.qp = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_qsfnz__[\"a\" /* default */])(this.e, 1);\n this.mmf = 0.5 / (1 - this.es);\n this.apa = authset(this.es);\n switch (this.mode) {\n case this.N_POLE:\n this.dd = 1;\n break;\n case this.S_POLE:\n this.dd = 1;\n break;\n case this.EQUIT:\n this.rq = Math.sqrt(0.5 * this.qp);\n this.dd = 1 / this.rq;\n this.xmf = 1;\n this.ymf = 0.5 * this.qp;\n break;\n case this.OBLIQ:\n this.rq = Math.sqrt(0.5 * this.qp);\n sinphi = Math.sin(this.lat0);\n this.sinb1 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_qsfnz__[\"a\" /* default */])(this.e, sinphi) / this.qp;\n this.cosb1 = Math.sqrt(1 - this.sinb1 * this.sinb1);\n this.dd = Math.cos(this.lat0) / (Math.sqrt(1 - this.es * sinphi * sinphi) * this.rq * this.cosb1);\n this.ymf = (this.xmf = this.rq) / this.dd;\n this.xmf *= this.dd;\n break;\n }\n }\n else {\n if (this.mode === this.OBLIQ) {\n this.sinph0 = Math.sin(this.lat0);\n this.cosph0 = Math.cos(this.lat0);\n }\n }\n}", "angle() {\n // Use simulated time.\n const clocksPerRevolution = Math.round(this.machine.clockHz / (RPM / 60));\n return (this.machine.tStateCount % clocksPerRevolution) / clocksPerRevolution;\n }", "summerPolarNightHandler() {\n let diff = this.summerOrFall(this.prevDay) ? -POLAR_NIGHT_ANIM_SPEED : POLAR_NIGHT_ANIM_SPEED;\n let newDay = (this.seasonsState.day + diff + 365) % 365;\n this.targetAngle = Math.min(180, this.sunrayAngle(newDay));\n this.setSeasonsState({day: newDay});\n }", "function componentPolarArea () {\n\n /* Default Properties */\n var width = 300;\n var height = 300;\n var radius = 150;\n var startAngle = 0;\n var endAngle = 360;\n var transition = { ease: d3.easeBounce, duration: 500 };\n var colors = palette.categorical(3);\n var colorScale = void 0;\n var xScale = void 0;\n var yScale = void 0;\n var dispatch = d3.dispatch(\"customValueMouseOver\", \"customValueMouseOut\", \"customValueClick\", \"customSeriesMouseOver\", \"customSeriesMouseOut\", \"customSeriesClick\");\n var classed = \"polarArea\";\n\n /**\n * Initialise Data and Scales\n *\n * @private\n * @param {Array} data - Chart data.\n */\n function init(data) {\n var _dataTransform$summar = dataTransform(data).summary(),\n columnKeys = _dataTransform$summar.columnKeys,\n valueMax = _dataTransform$summar.valueMax;\n\n var valueExtent = [0, valueMax];\n\n if (typeof radius === \"undefined\") {\n radius = Math.min(width, height) / 2;\n }\n\n if (typeof colorScale === \"undefined\") {\n colorScale = d3.scaleOrdinal().domain(columnKeys).range(colors);\n }\n\n if (typeof xScale === \"undefined\") {\n xScale = d3.scaleBand().domain(columnKeys).rangeRound([startAngle, endAngle]).padding(0.15);\n }\n\n if (typeof yScale === \"undefined\") {\n yScale = d3.scaleLinear().domain(valueExtent).range([0, radius]).nice();\n }\n }\n\n /**\n * Constructor\n *\n * @constructor\n * @alias polarArea\n * @param {d3.selection} selection - The chart holder D3 selection.\n */\n function my(selection) {\n init(selection.data());\n selection.each(function () {\n\n // Pie Generator\n startAngle = d3.min(xScale.range());\n endAngle = d3.max(xScale.range());\n var pie = d3.pie().value(1).sort(null).startAngle(startAngle * (Math.PI / 180)).endAngle(endAngle * (Math.PI / 180)).padAngle(0);\n\n // Arc Generator\n var arc = d3.arc().outerRadius(function (d) {\n return yScale(d.data.value);\n }).innerRadius(0).cornerRadius(2);\n\n // Update series group\n var seriesGroup = d3.select(this);\n seriesGroup.classed(classed, true).attr(\"id\", function (d) {\n return d.key;\n }).on(\"mouseover\", function (d) {\n dispatch.call(\"customSeriesMouseOver\", this, d);\n }).on(\"click\", function (d) {\n dispatch.call(\"customSeriesClick\", this, d);\n });\n\n // Add segments to series\n var segments = seriesGroup.selectAll(\".segment\").data(function (d) {\n return pie(d.values);\n });\n\n segments.enter().append(\"path\").classed(\"segment\", true).style(\"fill\", function (d) {\n return colorScale(d.data.key);\n }).on(\"mouseover\", function (d) {\n dispatch.call(\"customValueMouseOver\", this, d.data);\n }).on(\"click\", function (d) {\n dispatch.call(\"customValueClick\", this, d.data);\n }).merge(segments).transition().ease(transition.ease).duration(transition.duration).attr(\"d\", arc);\n\n segments.exit().transition().style(\"opacity\", 0).remove();\n });\n }\n\n /**\n * Width Getter / Setter\n *\n * @param {number} _v - Width in px.\n * @returns {*}\n */\n my.width = function (_v) {\n if (!arguments.length) return width;\n width = _v;\n return this;\n };\n\n /**\n * Height Getter / Setter\n *\n * @param {number} _v - Height in px.\n * @returns {*}\n */\n my.height = function (_v) {\n if (!arguments.length) return height;\n height = _v;\n return this;\n };\n\n /**\n * Radius Getter / Setter\n *\n * @param {number} _v - Radius in px.\n * @returns {*}\n */\n my.radius = function (_v) {\n if (!arguments.length) return radius;\n radius = _v;\n return this;\n };\n\n /**\n * Color Scale Getter / Setter\n *\n * @param {d3.scale} _v - D3 color scale.\n * @returns {*}\n */\n my.colorScale = function (_v) {\n if (!arguments.length) return colorScale;\n colorScale = _v;\n return my;\n };\n\n /**\n * Colors Getter / Setter\n *\n * @param {Array} _v - Array of colours used by color scale.\n * @returns {*}\n */\n my.colors = function (_v) {\n if (!arguments.length) return colors;\n colors = _v;\n return my;\n };\n\n /**\n * X Scale Getter / Setter\n *\n * @param {d3.scale} _v - D3 scale.\n * @returns {*}\n */\n my.xScale = function (_v) {\n if (!arguments.length) return xScale;\n xScale = _v;\n return my;\n };\n\n /**\n * Y Scale Getter / Setter\n *\n * @param {d3.scale} _v - D3 scale.\n * @returns {*}\n */\n my.yScale = function (_v) {\n if (!arguments.length) return yScale;\n yScale = _v;\n return my;\n };\n\n /**\n * Dispatch Getter / Setter\n *\n * @param {d3.dispatch} _v - Dispatch event handler.\n * @returns {*}\n */\n my.dispatch = function (_v) {\n if (!arguments.length) return dispatch();\n dispatch = _v;\n return this;\n };\n\n /**\n * Dispatch On Getter\n *\n * @returns {*}\n */\n my.on = function () {\n var value = dispatch.on.apply(dispatch, arguments);\n return value === dispatch ? my : value;\n };\n\n return my;\n }", "setFromAxisRotations(roll, pitch, yaw) {\nvar D2R_BY2, RPY_by2, cp, cr, cy, cycp, cysp, rpy, rpyb2, sp, sr, sy, sycp, sysp;\n//-------------------\n// The Euler-angle-to-axis bindings,and the order in which\n// the Euler angle rotations are applied are:\n// X-roll ; Y-pitch ; Z-yaw .\n// [See note below on the orientation of the notional craft.]\n// Hence to get the required quaternion components, we\n// compute the quaternion product:\n// Q-yaw x Q-pitch x Q-roll .\n// NB\n// These axis bindings assume a notional craft lying in\n// the XY-plane, with its body lying along the X-axis\n// (facing +X), with +Y on its right/starboard side, and\n// with +Z _below_ it.\n// For a craft with this orientation, an increase in ROLL\n// (from 0) dips the right/starboard wing, an increase in\n// PITCH raises the nose, and an increase in YAW turns the\n// nose to the right/starboard.\nD2R_BY2 = RQ.DEGS_TO_RADS / 2;\n// Angles of rotation by 2 (i.e quaternion angles) in radians, and\n// the cosines and sines of these half-angles.\nRPY_by2 = (function() {\nvar j, len, ref, results;\nref = [roll, pitch, yaw];\nresults = [];\nfor (j = 0, len = ref.length; j < len; j++) {\nrpy = ref[j];\nresults.push(rpy * D2R_BY2);\n}\nreturn results;\n})();\n[cr, cp, cy] = (function() {\nvar j, len, results;\nresults = [];\nfor (j = 0, len = RPY_by2.length; j < len; j++) {\nrpyb2 = RPY_by2[j];\nresults.push(Math.cos(rpyb2));\n}\nreturn results;\n})();\n[sr, sp, sy] = (function() {\nvar j, len, results;\nresults = [];\nfor (j = 0, len = RPY_by2.length; j < len; j++) {\nrpyb2 = RPY_by2[j];\nresults.push(Math.sin(rpyb2));\n}\nreturn results;\n})();\n// Compute components of Q-yaw (Z) x Q-pitch (Y)\n[cycp, sysp, sycp, cysp] = [cy * cp, sy * sp, sy * cp, cy * sp];\n// Finally, compute the product of the three axis-rotation quaternions:\n// (cy; 0 0 sy) * (cp; 0 sp 0) * (cr; sr 0 0)\nreturn this.set_xyzw(cycp * sr - sysp * cr, cysp * cr + sycp * sr, sycp * cr - cysp * sr, cycp * cr + sysp * sr);\n}", "function PolarCoordinates() {\r\n}", "function rosettePeriodicMirrorPhi(position,n){\n\tvar angle=position.angle();\n\tangle*=n*0.159154; // n/2pi\n\tangle=0.5*imageFastFunction.periodicMapping(angle);\n\tangle*=6.28318/n;\n\tposition.setPolar(position.radius(),angle);\n}", "static createRotation(axis, angle) {\n//--------------\nreturn RQ.setAxisAngleQV(RQ.makeQV(0, 0, 0, 0), axis, angle);\n}", "updateAngle () {\n this.angleRadians = (this.data.angle / 180) * Math.PI\n }", "function init() {\n var t = Math.abs(this.lat0);\n if (Math.abs(t - _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"]) < _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"EPSLN\"]) {\n this.mode = this.lat0 < 0 ? this.S_POLE : this.N_POLE;\n }\n else if (Math.abs(t) < _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"EPSLN\"]) {\n this.mode = this.EQUIT;\n }\n else {\n this.mode = this.OBLIQ;\n }\n if (this.es > 0) {\n var sinphi;\n\n this.qp = Object(_common_qsfnz__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(this.e, 1);\n this.mmf = 0.5 / (1 - this.es);\n this.apa = authset(this.es);\n switch (this.mode) {\n case this.N_POLE:\n this.dd = 1;\n break;\n case this.S_POLE:\n this.dd = 1;\n break;\n case this.EQUIT:\n this.rq = Math.sqrt(0.5 * this.qp);\n this.dd = 1 / this.rq;\n this.xmf = 1;\n this.ymf = 0.5 * this.qp;\n break;\n case this.OBLIQ:\n this.rq = Math.sqrt(0.5 * this.qp);\n sinphi = Math.sin(this.lat0);\n this.sinb1 = Object(_common_qsfnz__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(this.e, sinphi) / this.qp;\n this.cosb1 = Math.sqrt(1 - this.sinb1 * this.sinb1);\n this.dd = Math.cos(this.lat0) / (Math.sqrt(1 - this.es * sinphi * sinphi) * this.rq * this.cosb1);\n this.ymf = (this.xmf = this.rq) / this.dd;\n this.xmf *= this.dd;\n break;\n }\n }\n else {\n if (this.mode === this.OBLIQ) {\n this.sinph0 = Math.sin(this.lat0);\n this.cosph0 = Math.cos(this.lat0);\n }\n }\n}", "rotation() {\n return this.rotationInRadians().map(VrMath.radToDeg);\n }", "get secondaryUVHardAngle() {}", "function solar_radius_vector(t) {\n var d2r = Math.PI / 180.0;\n var e = Math.exp(0);\n return (1.000001018 * (1.0 - e)) /\n (1.0 + e * Math.cos(d2r * solar_true_anomaly(t)));\n}", "rotateTo(azimuthAngle, polarAngle, enableTransition) {\n \n const theta = Math.max(this.minAzimuthAngle, Math.min(this.maxAzimuthAngle, azimuthAngle))\n const phi = Math.max(this.minPolarAngle, Math.min(this.maxPolarAngle, polarAngle))\n \n this._sphericalEnd.theta = theta\n this._sphericalEnd.phi = phi\n this._sphericalEnd.makeSafe()\n \n if (!enableTransition) {\n \n this._spherical.theta = this._sphericalEnd.theta\n this._spherical.phi = this._sphericalEnd.phi\n \n }\n \n this._hasUpdated = true\n \n }", "theta(p = new Point()) {\n const ref = Point.create(p);\n const y = -(ref.y - this.y); // invert the y-axis.\n const x = ref.x - this.x;\n let rad = Math.atan2(y, x);\n // Correction for III. and IV. quadrant.\n if (rad < 0) {\n rad = 2 * Math.PI + rad;\n }\n return (180 * rad) / Math.PI;\n }", "spinTo(angle) {\n const {hubContext} = this;\n const r = maxCusps - this.cusps;\n hubContext.transform({\n pos: [-maxCusps + r * Math.cos(angle), r * Math.sin(angle)],\n rot: -(maxCusps / this.cusps - 1) * angle,\n });\n }", "lerpAngle (a, b, t) {\n\n let difference = Math.abs(b - a);\n\n if (difference > Math.PI) {\n // We need to add on to one of the values.\n if (b > a) {\n // We'll add it on to start...\n a += 2*Math.PI;\n } else {\n // Add it on to end.\n b += 2*Math.PI;\n }\n }\n\n // Interpolate it.\n let value = this.lerp(a, b, t);\n\n // Wrap it..\n let rangeZero = 2*Math.PI;\n\n if (value >= 0 && value <= 2*Math.PI)\n return value;\n\n return (value % rangeZero);\n\n }", "function setServoDegrees(value) {\n local scaledValue = (value + 81) / 161.0 * (SERVO_MAX - SERVO_MIN) + SERVO_MIN;\n Servo.write(scaledValue);\n imp.sleep(0.5);\n Servo.write(0);\n devicelog(false,\"servo angle \" + value + \" scaled valut \" + scaledValue);\n}", "GetAngle(First, Next) {\n let dRotateAngle = Math.atan2(Math.abs(First.Latitude - Next.Latitude), Math.abs(First.Longitude - Next.Longitude));\n if (Next.Latitude >= First.Latitude) {\n if (Next.Longitude >= First.Longitude) {\n } else {\n dRotateAngle = Math.PI - dRotateAngle;\n }\n } else {\n if (Next.Longitude >= First.Longitude) {\n dRotateAngle = 2 * Math.PI - dRotateAngle;\n } else {\n dRotateAngle = Math.PI + dRotateAngle;\n }\n }\n dRotateAngle = dRotateAngle * 180 / Math.PI;\n return dRotateAngle;\n\n}", "function init() {\n\n /* Place parameters in static storage for common use\n -------------------------------------------------*/\n // Standard Parallels cannot be equal and on opposite sides of the equator\n if (Math.abs(this.lat1 + this.lat2) < __WEBPACK_IMPORTED_MODULE_9__constants_values__[\"a\" /* EPSLN */]) {\n return;\n }\n this.lat2 = this.lat2 || this.lat1;\n this.temp = this.b / this.a;\n this.es = 1 - Math.pow(this.temp, 2);\n this.e = Math.sqrt(this.es);\n this.e0 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__common_e0fn__[\"a\" /* default */])(this.es);\n this.e1 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_e1fn__[\"a\" /* default */])(this.es);\n this.e2 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__common_e2fn__[\"a\" /* default */])(this.es);\n this.e3 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__common_e3fn__[\"a\" /* default */])(this.es);\n\n this.sinphi = Math.sin(this.lat1);\n this.cosphi = Math.cos(this.lat1);\n\n this.ms1 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__common_msfnz__[\"a\" /* default */])(this.e, this.sinphi, this.cosphi);\n this.ml1 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__common_mlfn__[\"a\" /* default */])(this.e0, this.e1, this.e2, this.e3, this.lat1);\n\n if (Math.abs(this.lat1 - this.lat2) < __WEBPACK_IMPORTED_MODULE_9__constants_values__[\"a\" /* EPSLN */]) {\n this.ns = this.sinphi;\n }\n else {\n this.sinphi = Math.sin(this.lat2);\n this.cosphi = Math.cos(this.lat2);\n this.ms2 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__common_msfnz__[\"a\" /* default */])(this.e, this.sinphi, this.cosphi);\n this.ml2 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__common_mlfn__[\"a\" /* default */])(this.e0, this.e1, this.e2, this.e3, this.lat2);\n this.ns = (this.ms1 - this.ms2) / (this.ml2 - this.ml1);\n }\n this.g = this.ml1 + this.ms1 / this.ns;\n this.ml0 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__common_mlfn__[\"a\" /* default */])(this.e0, this.e1, this.e2, this.e3, this.lat0);\n this.rh = this.a * (this.g - this.ml0);\n}", "ensureClockwise() {\n let vectorsRelativeToCenter = [];\n let headingValues = [];\n for (let v of this.pixelVectorPositions) {\n vectorsRelativeToCenter.push(p5.Vector.sub(v, this.center));\n }\n\n\n for (let v of vectorsRelativeToCenter) {\n let temp = v.heading();\n if (temp < 0) {\n temp += 2 * PI;\n }\n\n headingValues.push(temp);\n }\n //print(headingValues);\n\n let rotationalDifferenceTotal = 0;\n for (let i = 0; i < headingValues.length; i++) {\n let difference = 0;\n if (i === headingValues.length - 1) {\n difference = headingValues[0] - headingValues[i];\n } else {\n difference = headingValues[i + 1] - headingValues[i];\n }\n if (difference > 0) {\n rotationalDifferenceTotal += 1;\n } else {\n rotationalDifferenceTotal -= 1;\n }\n }\n\n if (rotationalDifferenceTotal < 0) {\n this.pixelVectorPositions.reverse();\n }\n }", "_degreeToRadian(angle) {\n return angle * Math.PI / 180;\n }", "_updateInitialRotation() {\n this.arNodeRef.getTransformAsync().then((retDict)=>{\n let rotation = retDict.rotation;\n let absX = Math.abs(rotation[0]);\n let absZ = Math.abs(rotation[2]);\n\n let yRotation = (rotation[1]);\n\n // If the X and Z aren't 0, then adjust the y rotation.\n if (absX > 1 && absZ > 1) {\n yRotation = 180 - (yRotation);\n }\n\n this.setState({\n markerRotation: [0,yRotation,0],\n shouldBillboard : false,\n });\n });\n }", "toPolar(origin) {\n this.update(Point.toPolar(this, origin));\n return this;\n }", "function rad(deg) {return deg * pi/180;}", "function startOrbitalControls(){\n var controls = new THREE.OrbitControls(PIEcamera, PIErenderer.domElement);\n controls.maxPolarAngle = Math.PI * 0.5;\n controls.minDistance = 35;\n controls.maxDistance = 75;\n\n}", "function forward(p) {\n var xy = {x: 0, y: 0};\n var lat, lon;\n var theta, phi;\n var t, mu;\n /* nu; */\n var area = {value: 0};\n\n // move lon according to projection's lon\n p.x -= this.long0;\n\n /* Convert the geodetic latitude to a geocentric latitude.\n * This corresponds to the shift from the ellipsoid to the sphere\n * described in [LK12]. */\n if (this.es !== 0) {//if (P->es != 0) {\n lat = Math.atan(this.one_minus_f_squared * Math.tan(p.y));\n } else {\n lat = p.y;\n }\n\n /* Convert the input lat, lon into theta, phi as used by QSC.\n * This depends on the cube face and the area on it.\n * For the top and bottom face, we can compute theta and phi\n * directly from phi, lam. For the other faces, we must use\n * unit sphere cartesian coordinates as an intermediate step. */\n lon = p.x; //lon = lp.lam;\n if (this.face === FACE_ENUM.TOP) {\n phi = _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"] - lat;\n if (lon >= _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"] && lon <= _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"] + _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"]) {\n area.value = AREA_ENUM.AREA_0;\n theta = lon - _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"];\n } else if (lon > _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"] + _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"] || lon <= -(_constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"] + _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"])) {\n area.value = AREA_ENUM.AREA_1;\n theta = (lon > 0.0 ? lon - _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"SPI\"] : lon + _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"SPI\"]);\n } else if (lon > -(_constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"] + _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"]) && lon <= -_constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"]) {\n area.value = AREA_ENUM.AREA_2;\n theta = lon + _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"];\n } else {\n area.value = AREA_ENUM.AREA_3;\n theta = lon;\n }\n } else if (this.face === FACE_ENUM.BOTTOM) {\n phi = _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"] + lat;\n if (lon >= _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"] && lon <= _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"] + _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"]) {\n area.value = AREA_ENUM.AREA_0;\n theta = -lon + _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"];\n } else if (lon < _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"] && lon >= -_constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"]) {\n area.value = AREA_ENUM.AREA_1;\n theta = -lon;\n } else if (lon < -_constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"] && lon >= -(_constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"] + _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"])) {\n area.value = AREA_ENUM.AREA_2;\n theta = -lon - _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"];\n } else {\n area.value = AREA_ENUM.AREA_3;\n theta = (lon > 0.0 ? -lon + _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"SPI\"] : -lon - _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"SPI\"]);\n }\n } else {\n var q, r, s;\n var sinlat, coslat;\n var sinlon, coslon;\n\n if (this.face === FACE_ENUM.RIGHT) {\n lon = qsc_shift_lon_origin(lon, +_constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"]);\n } else if (this.face === FACE_ENUM.BACK) {\n lon = qsc_shift_lon_origin(lon, +_constants_values__WEBPACK_IMPORTED_MODULE_0__[\"SPI\"]);\n } else if (this.face === FACE_ENUM.LEFT) {\n lon = qsc_shift_lon_origin(lon, -_constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"]);\n }\n sinlat = Math.sin(lat);\n coslat = Math.cos(lat);\n sinlon = Math.sin(lon);\n coslon = Math.cos(lon);\n q = coslat * coslon;\n r = coslat * sinlon;\n s = sinlat;\n\n if (this.face === FACE_ENUM.FRONT) {\n phi = Math.acos(q);\n theta = qsc_fwd_equat_face_theta(phi, s, r, area);\n } else if (this.face === FACE_ENUM.RIGHT) {\n phi = Math.acos(r);\n theta = qsc_fwd_equat_face_theta(phi, s, -q, area);\n } else if (this.face === FACE_ENUM.BACK) {\n phi = Math.acos(-q);\n theta = qsc_fwd_equat_face_theta(phi, s, -r, area);\n } else if (this.face === FACE_ENUM.LEFT) {\n phi = Math.acos(-r);\n theta = qsc_fwd_equat_face_theta(phi, s, q, area);\n } else {\n /* Impossible */\n phi = theta = 0;\n area.value = AREA_ENUM.AREA_0;\n }\n }\n\n /* Compute mu and nu for the area of definition.\n * For mu, see Eq. (3-21) in [OL76], but note the typos:\n * compare with Eq. (3-14). For nu, see Eq. (3-38). */\n mu = Math.atan((12 / _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"SPI\"]) * (theta + Math.acos(Math.sin(theta) * Math.cos(_constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"])) - _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"]));\n t = Math.sqrt((1 - Math.cos(phi)) / (Math.cos(mu) * Math.cos(mu)) / (1 - Math.cos(Math.atan(1 / Math.cos(theta)))));\n\n /* Apply the result to the real area. */\n if (area.value === AREA_ENUM.AREA_1) {\n mu += _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"];\n } else if (area.value === AREA_ENUM.AREA_2) {\n mu += _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"SPI\"];\n } else if (area.value === AREA_ENUM.AREA_3) {\n mu += 1.5 * _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"SPI\"];\n }\n\n /* Now compute x, y from mu and nu */\n xy.x = t * Math.cos(mu);\n xy.y = t * Math.sin(mu);\n xy.x = xy.x * this.a + this.x0;\n xy.y = xy.y * this.a + this.y0;\n\n p.x = xy.x;\n p.y = xy.y;\n return p;\n}", "function radians(degrees) {\n return map(degrees, function (degrees) {\n return degrees / 180 * Math.PI;\n });\n} // GLSL equivalent: Works on single values and vectors", "degreeToRad(angle){\n return Math.PI*angle/180;\n }", "function polarTriangleArea(tan1, lng1, tan2, lng2) {\n\n var deltaLng = lng1 - lng2;\n var t = tan1 * tan2;\n return 2 * Math.atan2(t * Math.sin(deltaLng), 1 + t * Math.cos(deltaLng));\n}", "function polar2x(r, θ) {\r\n return Math.cos(θ) * r;\r\n}", "static lathe(base, out, steps = 2, repeatStart = false, angleRng = Maths.PI_2, rotAxis = \"y\") {\n const inc = angleRng / steps;\n const v = new Vec3();\n const len = base.length;\n let i, j, angle, cos, sin;\n let rx = 0, ry = 0, rz = 0;\n for (i = 0; i < steps; i++) {\n angle = i * inc;\n cos = Math.cos(angle);\n sin = Math.sin(angle);\n for (j = 0; j < len; j += 3) {\n v.fromBuf(base, j);\n switch (rotAxis) { // https://www.siggraph.org/education/materials/HyperGraph/modeling/mod_tran/3drota.htm#Y-Axis%20Rotation\n case \"y\":\n ry = v.y;\n rx = v.z * sin + v.x * cos;\n rz = v.z * cos - v.x * sin;\n break;\n case \"x\":\n rx = v.x;\n ry = v.y * cos - v.z * sin;\n rz = v.y * sin + v.z * cos;\n break;\n case \"z\":\n rz = v.z;\n rx = v.x * cos - v.y * sin;\n ry = v.x * sin + v.y * cos;\n break;\n }\n out.push(rx, ry, rz);\n }\n }\n if (repeatStart)\n out.push(...base);\n }", "constructor(startRadians = 0, endRadians = 0) { this._radians0 = startRadians; this._radians1 = endRadians; }", "function drawPolar(ptsArr, yoff) {\n let center = getArrayCenter(ptsArr); // returns array [x,y]\n push();\n translate(center[0], center[1]);\n\n beginShape();\n for (let i=0; i<ptsArr.length; i++) {\n let pt = [ptsArr[i][0], ptsArr[i][1]];\n let angle = getAngle(center, pt);\n\n // offset is generated using perlin noise, which is always output between 0 and 1\n // first parameter of noise() changes the wobble as we rotate around the center (parameterized on angle)\n // second parameter of noise() changes the wobble over time\n // to reduce wobble, we can change the noise parameters (move less along the noise curve each step in space/time)\n // or we can map to smaller -/+ values\n // let magnitude = 10;\n \n let magnitude = 10 + 500*vol;\n // let offset = map(sin(angle*100 + frameCount*.01), -1, 1, -magnitude, magnitude); // distort w sin curve on edge\n let offset = map(sin(angle*100 + yoff*2), -1, 1, -magnitude, magnitude); // distort w sin curve on edge\n \n // let magnitude = 20;\n // let offset = map(noise(angle*.5, yoff), 0, 1, -magnitude, magnitude);\n\n let r = getDistance(center, pt) + offset;\n curveVertex(r * cos(angle), r * sin(angle));\n }\n\n endShape();\n pop();\n\n return yoff + .005;\n}", "function polarize(value, threshold) {\n return (value > threshold) ? 0xFF0033 : 0XFF;\n}", "function getRotaryRadii(startTool, endTool, startABC, endABC) {\r\n var radii = new Vector(0, 0, 0);\r\n var startRadius;\r\n var endRadius;\r\n var axis = new Array(machineConfiguration.getAxisU(), machineConfiguration.getAxisV(), machineConfiguration.getAxisW());\r\n for (var i = 0; i < 3; ++i) {\r\n if (axis[i].isEnabled()) {\r\n var startRadius = getRotaryRadius(axis[i], startTool, startABC);\r\n var endRadius = getRotaryRadius(axis[i], endTool, endABC);\r\n radii.setCoordinate(axis[i].getCoordinate(), Math.max(startRadius, endRadius));\r\n }\r\n }\r\n return radii;\r\n}", "toRad(Value) {\n return Value * Math.PI / 180;\n }", "function hammerRetroazimuthalRotation(phi0) {\n var sinPhi0 = Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"y\" /* sin */])(phi0),\n cosPhi0 = Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"h\" /* cos */])(phi0);\n\n return function(lambda, phi) {\n var cosPhi = Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"h\" /* cos */])(phi),\n x = Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"h\" /* cos */])(lambda) * cosPhi,\n y = Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"y\" /* sin */])(lambda) * cosPhi,\n z = Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"y\" /* sin */])(phi);\n return [\n Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"g\" /* atan2 */])(y, x * cosPhi0 - z * sinPhi0),\n Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"e\" /* asin */])(z * cosPhi0 + x * sinPhi0)\n ];\n };\n}", "isRotateSupported() {\n return true;\n }", "function forward(p) {\n var lon = p.x;\n var lat = p.y;\n // convert to radians\n if (lat * __WEBPACK_IMPORTED_MODULE_4__constants_values__[\"j\" /* R2D */] > 90 && lat * __WEBPACK_IMPORTED_MODULE_4__constants_values__[\"j\" /* R2D */] < -90 && lon * __WEBPACK_IMPORTED_MODULE_4__constants_values__[\"j\" /* R2D */] > 180 && lon * __WEBPACK_IMPORTED_MODULE_4__constants_values__[\"j\" /* R2D */] < -180) {\n return null;\n }\n\n var x, y;\n if (Math.abs(Math.abs(lat) - __WEBPACK_IMPORTED_MODULE_4__constants_values__[\"b\" /* HALF_PI */]) <= __WEBPACK_IMPORTED_MODULE_4__constants_values__[\"a\" /* EPSLN */]) {\n return null;\n }\n else {\n if (this.sphere) {\n x = this.x0 + this.a * this.k0 * __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_adjust_lon__[\"a\" /* default */])(lon - this.long0);\n y = this.y0 + this.a * this.k0 * Math.log(Math.tan(__WEBPACK_IMPORTED_MODULE_4__constants_values__[\"f\" /* FORTPI */] + 0.5 * lat));\n }\n else {\n var sinphi = Math.sin(lat);\n var ts = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__common_tsfnz__[\"a\" /* default */])(this.e, lat, sinphi);\n x = this.x0 + this.a * this.k0 * __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_adjust_lon__[\"a\" /* default */])(lon - this.long0);\n y = this.y0 - this.a * this.k0 * Math.log(ts);\n }\n p.x = x;\n p.y = y;\n return p;\n }\n}", "function qsc_fwd_equat_face_theta(phi, y, x, area) {\n var theta;\n if (phi < _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"EPSLN\"]) {\n area.value = AREA_ENUM.AREA_0;\n theta = 0.0;\n } else {\n theta = Math.atan2(y, x);\n if (Math.abs(theta) <= _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"]) {\n area.value = AREA_ENUM.AREA_0;\n } else if (theta > _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"] && theta <= _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"] + _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"]) {\n area.value = AREA_ENUM.AREA_1;\n theta -= _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"];\n } else if (theta > _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"] + _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"] || theta <= -(_constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"] + _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"FORTPI\"])) {\n area.value = AREA_ENUM.AREA_2;\n theta = (theta >= 0.0 ? theta - _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"SPI\"] : theta + _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"SPI\"]);\n } else {\n area.value = AREA_ENUM.AREA_3;\n theta += _constants_values__WEBPACK_IMPORTED_MODULE_0__[\"HALF_PI\"];\n }\n }\n return theta;\n}", "function onMotionRawValueChanged(event) {\r\n var v = event.target.value;\r\n\r\n // accel: 6Q10\r\n var _ax = cnvtEndian16(v, 0).getInt16(0);\r\n var ax = toFixedPoint(_ax, 10);\r\n var _ay = cnvtEndian16(v, 2).getInt16(2);\r\n var ay = toFixedPoint(_ay, 10);\r\n var _az = cnvtEndian16(v, 4).getInt16(4);\r\n var az = toFixedPoint(_az, 10);\r\n document.querySelector('#ax').value = ax;\r\n document.querySelector('#ay').value = ay;\r\n document.querySelector('#az').value = az;\r\n\r\n // gyro: 11Q5\r\n var _gx = cnvtEndian16(v, 6).getInt16(6);\r\n var gx = toFixedPoint(_gx, 5);\r\n var _gy = cnvtEndian16(v, 8).getInt16(8);\r\n var gy = toFixedPoint(_gy, 5);\r\n var _gz = cnvtEndian16(v, 10).getInt16(10);\r\n var gz = toFixedPoint(_gz, 5);\r\n document.querySelector('#gx').value = gx;\r\n document.querySelector('#gy').value = gy;\r\n document.querySelector('#gz').value = gz;\r\n\r\n // compass: 12Q4\r\n var _cx = cnvtEndian16(v, 12).getInt16(12);\r\n var cx = toFixedPoint(_cx, 4);\r\n var _cy = cnvtEndian16(v, 14).getInt16(14);\r\n var cy = toFixedPoint(_cy, 4);\r\n var _cz = cnvtEndian16(v, 16).getInt16(16);\r\n var cz = toFixedPoint(_cz, 4);\r\n\r\n document.querySelector('#cx').value = cx;\r\n document.querySelector('#cy').value = cy;\r\n document.querySelector('#cz').value = cz;\r\n\r\n var accel = { x: ax, y: ay, z: az };\r\n appendAccelData(accel);\r\n var gyro = { x: gx, y: gy, z: gz };\r\n appendGyroData(gyro);\r\n var compass = { x: cx, y: cy, z: cz };\r\n appendCompassData(compass);\r\n frames.a += 1;\r\n frames.g += 1;\r\n frames.c += 1;\r\n\r\n save(accel.x.toString() + ',' + accel.y.toString() + ',' + accel.z.toString() +\r\n gyro.x.toString() + ',' + gyro.y.toString() + ',' + gyro.z.toString() +\r\n compass.x.toString() + ',' + compass.y.toString() + ',' + compass.z.toString());\r\n}", "get startRadians() { return this._radians0; }", "setFromAxisAngle(xyz, angle) {\n//---------------\nRQ.setAxisAngleQV(this.xyzw, xyz, angle);\nreturn this;\n}", "function calculatePeriphery(r) {\n var result = 2 * r * Math.PI;\n return result;\n console.log(result);\n}", "function psi2thetaRo(psi){\n //var shift = Math.PI*2*0.3;\n var shift = 0;\n\tx = (R-r)*sin(psi+shift) \n + r2 * sin( (R-r)*psi/r - shift - pi );\n\ty = -(R-r)*cos(psi+shift)\n\t\t + r2 * cos( (R-r)*psi/r - shift - pi );\n var theta = Math.atan2(x,y);\n theta = pi - theta;\n if (theta<0){\n theta = theta + 2*pi;\n }\n var ro = Math.sqrt(x*x+y*y);\n return [theta, ro];\n}", "function hammerRetroazimuthalRotation(phi0) {\n var sinPhi0 = Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"y\" /* sin */])(phi0),\n cosPhi0 = Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"h\" /* cos */])(phi0);\n\n return function (lambda, phi) {\n var cosPhi = Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"h\" /* cos */])(phi),\n x = Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"h\" /* cos */])(lambda) * cosPhi,\n y = Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"y\" /* sin */])(lambda) * cosPhi,\n z = Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"y\" /* sin */])(phi);\n return [Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"g\" /* atan2 */])(y, x * cosPhi0 - z * sinPhi0), Object(__WEBPACK_IMPORTED_MODULE_1__math__[\"e\" /* asin */])(z * cosPhi0 + x * sinPhi0)];\n };\n}", "function computeCirclularFlight(lon, lat, height, radius) {\n console.log(lon, lat, height, radius)\n var property = new Cesium.SampledPositionProperty();\n for (var i = 0; i <= 360; i += 45) {\n console.log(start, i)\n var radians = Cesium.Math.toRadians(i);\n var time = Cesium.JulianDate.addSeconds(\n start,\n i,\n new Cesium.JulianDate()\n );\n var position = Cesium.Cartesian3.fromDegrees(\n lon + radius * 1.5 * Math.cos(radians),\n lat + radius * Math.sin(radians),\n height\n );\n // console.log(position)\n property.addSample(time, position);\n\n }\n return property;\n }", "function fnc_azimuth(values, context) {\n return false;\n}", "function fnc_azimuth(values, context) {\n return false;\n}", "function draw(){\n console.log(spiro.radius1, spiro.radius2, spiro.scalar)\n console.log('\\nangle', spiro.angle * 180 / (2*Math.PI))\n let deg = spiro.angle * 180 / (2 * Math.PI)\n\n console.log('steps', steps)\n if(deg < steps){\n spiro.update()\n spiro.draw()\n\n frameRequest = window.requestAnimationFrame(draw);\n } else {\n window.cancelAnimationFrame(frameRequest)\n }\n}", "get angle() {\n let leftAngle = FLIPPER_RESTING_ANGLE + (FLIPPER_ACTIVE_ANGLE - FLIPPER_RESTING_ANGLE) * this.angleRatio;\n return this.isLeft ? leftAngle : Math.PI - leftAngle;\n }", "function toPolar(point, origin = new Point()) {\n const p = clone(point);\n const o = clone(origin);\n const dx = p.x - o.x;\n const dy = p.y - o.y;\n return new Point(Math.sqrt(dx * dx + dy * dy), // r\n Angle.toRad(o.theta(p)));\n }", "function polar2x(r, θ) {\n return Math.cos(θ) * r;\n }", "function tan_solar_right_ascension(t) {\n var d2r = Math.PI / 180.0;\n var eps = obliquity_of_ecliptic(t);\n var lon = solar_true_longitude(t);\n return Math.cos(d2r * eps) * Math.sin(d2r * lon) / Math.cos(d2r * lon);\n}", "function toCompass(angle){\n return -1*angle;\n }", "function toCompass(angle){\n return -1*angle;\n }", "function radians(xx) {return (Math.PI * xx / 180.0);}", "oscillate() {\n this.angle += 0.02;\n }", "function inverse(p) {\n p.x -= this.x0;\n p.y -= this.y0;\n var lon, lat, ts, ce, Chi;\n var rh = Math.sqrt(p.x * p.x + p.y * p.y);\n if (this.sphere) {\n var c = 2 * Math.atan(rh / (0.5 * this.a * this.k0));\n lon = this.long0;\n lat = this.lat0;\n if (rh <= __WEBPACK_IMPORTED_MODULE_0__constants_values__[\"a\" /* EPSLN */]) {\n p.x = lon;\n p.y = lat;\n return p;\n }\n lat = Math.asin(Math.cos(c) * this.sinlat0 + p.y * Math.sin(c) * this.coslat0 / rh);\n if (Math.abs(this.coslat0) < __WEBPACK_IMPORTED_MODULE_0__constants_values__[\"a\" /* EPSLN */]) {\n if (this.lat0 > 0) {\n lon = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__common_adjust_lon__[\"a\" /* default */])(this.long0 + Math.atan2(p.x, - 1 * p.y));\n }\n else {\n lon = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__common_adjust_lon__[\"a\" /* default */])(this.long0 + Math.atan2(p.x, p.y));\n }\n }\n else {\n lon = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__common_adjust_lon__[\"a\" /* default */])(this.long0 + Math.atan2(p.x * Math.sin(c), rh * this.coslat0 * Math.cos(c) - p.y * this.sinlat0 * Math.sin(c)));\n }\n p.x = lon;\n p.y = lat;\n return p;\n }\n else {\n if (Math.abs(this.coslat0) <= __WEBPACK_IMPORTED_MODULE_0__constants_values__[\"a\" /* EPSLN */]) {\n if (rh <= __WEBPACK_IMPORTED_MODULE_0__constants_values__[\"a\" /* EPSLN */]) {\n lat = this.lat0;\n lon = this.long0;\n p.x = lon;\n p.y = lat;\n //trace(p.toString());\n return p;\n }\n p.x *= this.con;\n p.y *= this.con;\n ts = rh * this.cons / (2 * this.a * this.k0);\n lat = this.con * __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__common_phi2z__[\"a\" /* default */])(this.e, ts);\n lon = this.con * __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__common_adjust_lon__[\"a\" /* default */])(this.con * this.long0 + Math.atan2(p.x, - 1 * p.y));\n }\n else {\n ce = 2 * Math.atan(rh * this.cosX0 / (2 * this.a * this.k0 * this.ms1));\n lon = this.long0;\n if (rh <= __WEBPACK_IMPORTED_MODULE_0__constants_values__[\"a\" /* EPSLN */]) {\n Chi = this.X0;\n }\n else {\n Chi = Math.asin(Math.cos(ce) * this.sinX0 + p.y * Math.sin(ce) * this.cosX0 / rh);\n lon = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__common_adjust_lon__[\"a\" /* default */])(this.long0 + Math.atan2(p.x * Math.sin(ce), rh * this.cosX0 * Math.cos(ce) - p.y * this.sinX0 * Math.sin(ce)));\n }\n lat = -1 * __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__common_phi2z__[\"a\" /* default */])(this.e, Math.tan(0.5 * (__WEBPACK_IMPORTED_MODULE_0__constants_values__[\"b\" /* HALF_PI */] + Chi)));\n }\n }\n p.x = lon;\n p.y = lat;\n\n //trace(p.toString());\n return p;\n\n}", "function __WEBPACK_DEFAULT_EXPORT__(p0, p1) {\n var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],\n ux1 = p1[0], uy1 = p1[1], w1 = p1[2],\n dx = ux1 - ux0,\n dy = uy1 - uy0,\n d2 = dx * dx + dy * dy,\n i,\n S;\n\n // Special case for u0 ≅ u1.\n if (d2 < epsilon2) {\n S = Math.log(w1 / w0) / rho;\n i = function(t) {\n return [\n ux0 + t * dx,\n uy0 + t * dy,\n w0 * Math.exp(rho * t * S)\n ];\n }\n }\n\n // General case.\n else {\n var d1 = Math.sqrt(d2),\n b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),\n b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),\n r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),\n r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);\n S = (r1 - r0) / rho;\n i = function(t) {\n var s = t * S,\n coshr0 = cosh(r0),\n u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));\n return [\n ux0 + u * dx,\n uy0 + u * dy,\n w0 * coshr0 / cosh(rho * s + r0)\n ];\n }\n }\n\n i.duration = S * 1000;\n\n return i;\n}", "function __WEBPACK_DEFAULT_EXPORT__(p0, p1) {\n var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],\n ux1 = p1[0], uy1 = p1[1], w1 = p1[2],\n dx = ux1 - ux0,\n dy = uy1 - uy0,\n d2 = dx * dx + dy * dy,\n i,\n S;\n\n // Special case for u0 ≅ u1.\n if (d2 < epsilon2) {\n S = Math.log(w1 / w0) / rho;\n i = function(t) {\n return [\n ux0 + t * dx,\n uy0 + t * dy,\n w0 * Math.exp(rho * t * S)\n ];\n }\n }\n\n // General case.\n else {\n var d1 = Math.sqrt(d2),\n b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),\n b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),\n r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),\n r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);\n S = (r1 - r0) / rho;\n i = function(t) {\n var s = t * S,\n coshr0 = cosh(r0),\n u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));\n return [\n ux0 + u * dx,\n uy0 + u * dy,\n w0 * coshr0 / cosh(rho * s + r0)\n ];\n }\n }\n\n i.duration = S * 1000;\n\n return i;\n}", "function init() {\n this.no_off = this.no_off || false;\n this.no_rot = this.no_rot || false;\n\n if (isNaN(this.k0)) {\n this.k0 = 1;\n }\n var sinlat = Math.sin(this.lat0);\n var coslat = Math.cos(this.lat0);\n var con = this.e * sinlat;\n\n this.bl = Math.sqrt(1 + this.es / (1 - this.es) * Math.pow(coslat, 4));\n this.al = this.a * this.bl * this.k0 * Math.sqrt(1 - this.es) / (1 - con * con);\n var t0 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__common_tsfnz__[\"a\" /* default */])(this.e, this.lat0, sinlat);\n var dl = this.bl / coslat * Math.sqrt((1 - this.es) / (1 - con * con));\n if (dl * dl < 1) {\n dl = 1;\n }\n var fl;\n var gl;\n if (!isNaN(this.longc)) {\n //Central point and azimuth method\n\n if (this.lat0 >= 0) {\n fl = dl + Math.sqrt(dl * dl - 1);\n }\n else {\n fl = dl - Math.sqrt(dl * dl - 1);\n }\n this.el = fl * Math.pow(t0, this.bl);\n gl = 0.5 * (fl - 1 / fl);\n this.gamma0 = Math.asin(Math.sin(this.alpha) / dl);\n this.long0 = this.longc - Math.asin(gl * Math.tan(this.gamma0)) / this.bl;\n\n }\n else {\n //2 points method\n var t1 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__common_tsfnz__[\"a\" /* default */])(this.e, this.lat1, Math.sin(this.lat1));\n var t2 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__common_tsfnz__[\"a\" /* default */])(this.e, this.lat2, Math.sin(this.lat2));\n if (this.lat0 >= 0) {\n this.el = (dl + Math.sqrt(dl * dl - 1)) * Math.pow(t0, this.bl);\n }\n else {\n this.el = (dl - Math.sqrt(dl * dl - 1)) * Math.pow(t0, this.bl);\n }\n var hl = Math.pow(t1, this.bl);\n var ll = Math.pow(t2, this.bl);\n fl = this.el / hl;\n gl = 0.5 * (fl - 1 / fl);\n var jl = (this.el * this.el - ll * hl) / (this.el * this.el + ll * hl);\n var pl = (ll - hl) / (ll + hl);\n var dlon12 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_adjust_lon__[\"a\" /* default */])(this.long1 - this.long2);\n this.long0 = 0.5 * (this.long1 + this.long2) - Math.atan(jl * Math.tan(0.5 * this.bl * (dlon12)) / pl) / this.bl;\n this.long0 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_adjust_lon__[\"a\" /* default */])(this.long0);\n var dlon10 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_adjust_lon__[\"a\" /* default */])(this.long1 - this.long0);\n this.gamma0 = Math.atan(Math.sin(this.bl * (dlon10)) / gl);\n this.alpha = Math.asin(dl * Math.sin(this.gamma0));\n }\n\n if (this.no_off) {\n this.uc = 0;\n }\n else {\n if (this.lat0 >= 0) {\n this.uc = this.al / this.bl * Math.atan2(Math.sqrt(dl * dl - 1), Math.cos(this.alpha));\n }\n else {\n this.uc = -1 * this.al / this.bl * Math.atan2(Math.sqrt(dl * dl - 1), Math.cos(this.alpha));\n }\n }\n\n}", "get endRadians() { return this._radians1; }", "function toradians(deg)\n{\n return deg * Math.PI / 180.0;\n}", "get baseRotationDegree() { return this._baseRotation * 180.0 / Math.PI; }", "yawPitchRoll() {\n return this.yawPitchRollInRadians().map(VrMath.radToDeg);\n }", "angle() {\n return this.get(Math.PI * 2, true)\n }", "function getRotaryRadius(axis, toolPosition, abc) {\r\n if (!axis.isEnabled()) {\r\n return 0;\r\n }\r\n\r\n var direction = axis.getEffectiveAxis();\r\n var normal = direction.getNormalized();\r\n // calculate the rotary center based on head/table\r\n var center;\r\n var radius;\r\n if (axis.isHead()) {\r\n var pivot;\r\n if (typeof headOffset === \"number\") {\r\n pivot = headOffset;\r\n } else {\r\n pivot = tool.getBodyLength();\r\n }\r\n if (axis.getCoordinate() == machineConfiguration.getAxisU().getCoordinate()) { // rider\r\n center = Vector.sum(toolPosition, Vector.product(machineConfiguration.getDirection(abc), pivot));\r\n center = Vector.sum(center, axis.getOffset());\r\n radius = Vector.diff(toolPosition, center).length;\r\n } else { // carrier\r\n var angle = abc.getCoordinate(machineConfiguration.getAxisU().getCoordinate());\r\n radius = Math.abs(pivot * Math.sin(angle));\r\n radius += axis.getOffset().length;\r\n }\r\n } else {\r\n center = axis.getOffset();\r\n var d1 = toolPosition.x - center.x;\r\n var d2 = toolPosition.y - center.y;\r\n var d3 = toolPosition.z - center.z;\r\n var radius = Math.sqrt(\r\n Math.pow((d1 * normal.y) - (d2 * normal.x), 2.0) +\r\n Math.pow((d2 * normal.z) - (d3 * normal.y), 2.0) +\r\n Math.pow((d3 * normal.x) - (d1 * normal.z), 2.0)\r\n );\r\n }\r\n return radius;\r\n}", "toRadians(degrees) {\n return degrees * Math.PI / 180;\n }", "set baseRotationDegree(value) { this._baseRotation = (value / 180.0 * Math.PI); }", "function angleCalculation(){\n\n var newDate = new Date();\n\n var seconds = newDate.getSeconds(),\n minutesL = newDate.getMinutes(),\n hours = newDate.getHours(),\n days = newDate.getDate(),\n month = newDate.getMonth()+1;\n console.log('minL',minutesL,'minutes',minutes);\n\n if(minutesL !== minutes){random = parseInt(Math.random() * 360); minutes = minutesL;}\n\n masterClock[0].seconds = minSec(seconds);\n masterClock[0].minutes = minSec(minutesL);\n masterClock[0].hours = hourScale(hours);\n masterClock[0].days = daysScale(days);\n masterClock[0].months = monthScale(month);\n\n watchS.transition().duration(500).style('fill','hsl('+random+','+colorSec(seconds)+'%,'+colorSec(seconds)+'%)').text(seconds+' -');\n watchM.text(minutesL+':');\n watchH.text(hours+':');\n watchD.text(days+' / ');\n watchMt.text(' '+month);\n\n return seconds;\n }", "test_MARelplot_render_r_equals_cos_theta() {\n let formulaStr = \"r = cos(theta)\"\n let result = []\n let formulaFn = MAUtils.convertJSToFn(MAUtils.convertFormulaToJS(formulaStr))\n let xInterval = new MAInterval(-12, 12)\n let yInterval = new MAInterval(-9, 9)\n let res = (xInterval.ub-xInterval.lb)/800\n MARelplot.render(formulaFn, xInterval, yInterval, 0, res, result)\n\n // On the curve\n assertListVisuallyContainsPoint(result, new MAPoint(0, 0), res, true)\n assertListVisuallyContainsPoint(result, new MAPoint(0.5, 0.5), res, true)\n assertListVisuallyContainsPoint(result, new MAPoint(0.78, 0.39), res, true)\n assertListVisuallyContainsPoint(result, new MAPoint(1, 0), res, true)\n assertListVisuallyContainsPoint(result, new MAPoint(0.87, -0.34), res, true)\n assertListVisuallyContainsPoint(result, new MAPoint(0.5, -0.5), res, true)\n assertListVisuallyContainsPoint(result, new MAPoint(0.19, -0.39), res, true)\n\n // Not on the curve\n assertListVisuallyContainsPoint(result, new MAPoint(0, 1), res, false)\n assertListVisuallyContainsPoint(result, new MAPoint(0, 2), res, false)\n assertListVisuallyContainsPoint(result, new MAPoint(0, 4), res, false)\n assertListVisuallyContainsPoint(result, new MAPoint(-5, 0), res, false)\n assertListVisuallyContainsPoint(result, new MAPoint(-5, 1), res, false)\n assertListVisuallyContainsPoint(result, new MAPoint(-5, -4), res, false)\n }", "setAngle (angle, raw) {\n // console.log(angle, raw);\n if (!this.isDeviceConnected()) return;\n if (isNaN(angle)) angle = this.__angle;\n this.__angle = angle;\n switch (this.data.protocolVersion) {\n case 3: // Protocol V3\n if (angle == undefined) {\n this.rest()\n } else {\n angle = Math.round(angle + 90)\n if (angle < 0) angle += 0x10000\n let hi = (angle>>8)\n let low = angle - (hi<<8)\n this.write(0, 0, raw? TModuleServo.COMMAND_SET_RAW_ANGLE: TModuleServo.COMMAND_SET_ANGLE, [hi, low], true) // Must assign a non-zero bufferID to avoid conflict with battery check response\n }\n break\n default: // Protocol V2\n if (angle == undefined) angle = 0\n angle = Math.max(-90, Math.min(90, raw? angle: angle + this.data.calibration[1]))\n this.write(0, 0, TModuleServo.COMMAND_SET_ANGLE, [Math.round(angle + 90)], true) // 8-bit uint as the angle\n break\n }\n }", "static newPolarPoint(rho, theta) {\n return new PointFM(\n rho * Math.cos(theta),\n rho * Math.sin(theta)\n )\n }", "static newPolarPoint(rho, theta) {\n return new PointFM(\n rho * Math.cos(theta),\n rho * Math.sin(theta)\n )\n }", "function toPolarCoordinates(inpt) {\n\t//Find origin point.\n\tvar xorig=(inpt[0].xpos+inpt[1].xpos)/2;\n\tvar yorig=(inpt[0].ypos+inpt[1].ypos)/2;\n\t\t\n\t//First reset the original point. We have done all of the reference spiral calculations at this point, so safe. \n\tinpt[0].r=Math.sqrt(Math.pow(inpt[0].xpos-xorig,2)+Math.pow(inpt[0].ypos-yorig,2));\n\t//Compute theta, but adjust for the preceding point so that theta is always positively increasing. \n\tinpt[0].theta=atanRotate(inpt[0].ypos-yorig,inpt[0].xpos-xorig);\n\t\n\t//Now do this for all spiral points.\n\tvar pre=inpt[0].theta; \n\tvar zeroCrossing = 0; \n\tfor (var i=1; i<inpt.length;i++) {\n\t\tinpt[i].r=Math.sqrt(Math.pow(inpt[i].xpos-xorig,2)+Math.pow(inpt[i].ypos-yorig,2));\n\t\t\n\t\tvar tmp=atanRotate(inpt[i].xpos-xorig,inpt[i].ypos-yorig)+360*(zeroCrossing-1);\n\t\tif (tmp<pre) {\n\t\t\t//Hit a point where we cross back over x=1,y=0. Need to add 360 degrees.\n\t\t\tzeroCrossing++;\n\t\t}\n\t\tinpt[i].theta = tmp; \n\t\tpre=tmp; \n\t}\n\t\n\t//Now convert back to radians.\n\tfor (var i=0; i<inpt.length; i++) {\n\t\tinpt[i].theta=toRadian(inpt[i].theta);\n\t}\n}", "animateToAngle(angle_, time_) {\n let time = time_ || 1000;\n let relativeAngle = angle_ - this.position.angle || 0;\n if(relativeAngle !== 0){\n this.position.angle = angle_;\n let rotateTransform = {\n rotation: relativeAngle,\n cx:0,\n cy:0,\n relative:true\n };\n\n this.torso.animate(time, \">\", 0)\n .transform(rotateTransform, true);\n\n }\n }", "function interpolate(from,to,direction,stream){circleStream(stream,radius,delta,direction,from,to)}", "function polar_x(radius, angle) {return(radius * Math.cos(Math.PI/180*angle + Math.PI/180*270));}", "getCorrectiveRotation() {\n const slope = (this.initialPosition.top - 50) / (this.initialPosition.left - 50);\n return Math.atan(slope);\n }", "getCarAngle() {\n let deltaX = this.vehicle.carLocation[0] - this.craneX;\n let deltaY = this.vehicle.carLocation[1] - this.craneZ;\n let angle = Math.atan(deltaX / deltaY);\n let finalAngle = angle - this.arm1HorizontalAngle;\n\n this.carInitialAngle = this.arm1HorizontalAngle - finalAngle;\n }", "function rtd(r)\n{\n return (r * 180.0) / Math.PI;\n}", "function forward(p) {\n var lon = p.x;\n var lat = p.y;\n var dlon = Object(_common_adjust_lon__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(lon - this.long0);\n var us, vs;\n var con;\n if (Math.abs(Math.abs(lat) - _constants_values__WEBPACK_IMPORTED_MODULE_3__[\"HALF_PI\"]) <= _constants_values__WEBPACK_IMPORTED_MODULE_3__[\"EPSLN\"]) {\n if (lat > 0) {\n con = -1;\n }\n else {\n con = 1;\n }\n vs = this.al / this.bl * Math.log(Math.tan(_constants_values__WEBPACK_IMPORTED_MODULE_3__[\"FORTPI\"] + con * this.gamma0 * 0.5));\n us = -1 * con * _constants_values__WEBPACK_IMPORTED_MODULE_3__[\"HALF_PI\"] * this.al / this.bl;\n }\n else {\n var t = Object(_common_tsfnz__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(this.e, lat, Math.sin(lat));\n var ql = this.el / Math.pow(t, this.bl);\n var sl = 0.5 * (ql - 1 / ql);\n var tl = 0.5 * (ql + 1 / ql);\n var vl = Math.sin(this.bl * (dlon));\n var ul = (sl * Math.sin(this.gamma0) - vl * Math.cos(this.gamma0)) / tl;\n if (Math.abs(Math.abs(ul) - 1) <= _constants_values__WEBPACK_IMPORTED_MODULE_3__[\"EPSLN\"]) {\n vs = Number.POSITIVE_INFINITY;\n }\n else {\n vs = 0.5 * this.al * Math.log((1 - ul) / (1 + ul)) / this.bl;\n }\n if (Math.abs(Math.cos(this.bl * (dlon))) <= _constants_values__WEBPACK_IMPORTED_MODULE_3__[\"EPSLN\"]) {\n us = this.al * this.bl * (dlon);\n }\n else {\n us = this.al * Math.atan2(sl * Math.cos(this.gamma0) + vl * Math.sin(this.gamma0), Math.cos(this.bl * dlon)) / this.bl;\n }\n }\n\n if (this.no_rot) {\n p.x = this.x0 + us;\n p.y = this.y0 + vs;\n }\n else {\n\n us -= this.uc;\n p.x = this.x0 + vs * Math.cos(this.alpha) + us * Math.sin(this.alpha);\n p.y = this.y0 + us * Math.cos(this.alpha) - vs * Math.sin(this.alpha);\n }\n return p;\n}", "function forward(p) {\n var lon = p.x;\n var lat = p.y;\n\n var delta_lon = Object(_common_adjust_lon__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(lon - this.long0);\n var con;\n var x, y;\n var sin_phi = Math.sin(lat);\n var cos_phi = Math.cos(lat);\n\n if (!this.es) {\n var b = cos_phi * Math.sin(delta_lon);\n\n if ((Math.abs(Math.abs(b) - 1)) < _constants_values__WEBPACK_IMPORTED_MODULE_4__[\"EPSLN\"]) {\n return (93);\n }\n else {\n x = 0.5 * this.a * this.k0 * Math.log((1 + b) / (1 - b)) + this.x0;\n y = cos_phi * Math.cos(delta_lon) / Math.sqrt(1 - Math.pow(b, 2));\n b = Math.abs(y);\n\n if (b >= 1) {\n if ((b - 1) > _constants_values__WEBPACK_IMPORTED_MODULE_4__[\"EPSLN\"]) {\n return (93);\n }\n else {\n y = 0;\n }\n }\n else {\n y = Math.acos(y);\n }\n\n if (lat < 0) {\n y = -y;\n }\n\n y = this.a * this.k0 * (y - this.lat0) + this.y0;\n }\n }\n else {\n var al = cos_phi * delta_lon;\n var als = Math.pow(al, 2);\n var c = this.ep2 * Math.pow(cos_phi, 2);\n var cs = Math.pow(c, 2);\n var tq = Math.abs(cos_phi) > _constants_values__WEBPACK_IMPORTED_MODULE_4__[\"EPSLN\"] ? Math.tan(lat) : 0;\n var t = Math.pow(tq, 2);\n var ts = Math.pow(t, 2);\n con = 1 - this.es * Math.pow(sin_phi, 2);\n al = al / Math.sqrt(con);\n var ml = Object(_common_pj_mlfn__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(lat, sin_phi, cos_phi, this.en);\n\n x = this.a * (this.k0 * al * (1 +\n als / 6 * (1 - t + c +\n als / 20 * (5 - 18 * t + ts + 14 * c - 58 * t * c +\n als / 42 * (61 + 179 * ts - ts * t - 479 * t))))) +\n this.x0;\n\n y = this.a * (this.k0 * (ml - this.ml0 +\n sin_phi * delta_lon * al / 2 * (1 +\n als / 12 * (5 - t + 9 * c + 4 * cs +\n als / 30 * (61 + ts - 58 * t + 270 * c - 330 * t * c +\n als / 56 * (1385 + 543 * ts - ts * t - 3111 * t)))))) +\n this.y0;\n }\n\n p.x = x;\n p.y = y;\n\n return p;\n}", "function rad(angle) {\n return Math.PI * angle / 180;\n}", "function init() {\n\n if (Math.abs(this.lat1 + this.lat2) < __WEBPACK_IMPORTED_MODULE_4__constants_values__[\"a\" /* EPSLN */]) {\n return;\n }\n this.temp = this.b / this.a;\n this.es = 1 - Math.pow(this.temp, 2);\n this.e3 = Math.sqrt(this.es);\n\n this.sin_po = Math.sin(this.lat1);\n this.cos_po = Math.cos(this.lat1);\n this.t1 = this.sin_po;\n this.con = this.sin_po;\n this.ms1 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__common_msfnz__[\"a\" /* default */])(this.e3, this.sin_po, this.cos_po);\n this.qs1 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_qsfnz__[\"a\" /* default */])(this.e3, this.sin_po, this.cos_po);\n\n this.sin_po = Math.sin(this.lat2);\n this.cos_po = Math.cos(this.lat2);\n this.t2 = this.sin_po;\n this.ms2 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__common_msfnz__[\"a\" /* default */])(this.e3, this.sin_po, this.cos_po);\n this.qs2 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_qsfnz__[\"a\" /* default */])(this.e3, this.sin_po, this.cos_po);\n\n this.sin_po = Math.sin(this.lat0);\n this.cos_po = Math.cos(this.lat0);\n this.t3 = this.sin_po;\n this.qs0 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__common_qsfnz__[\"a\" /* default */])(this.e3, this.sin_po, this.cos_po);\n\n if (Math.abs(this.lat1 - this.lat2) > __WEBPACK_IMPORTED_MODULE_4__constants_values__[\"a\" /* EPSLN */]) {\n this.ns0 = (this.ms1 * this.ms1 - this.ms2 * this.ms2) / (this.qs2 - this.qs1);\n }\n else {\n this.ns0 = this.con;\n }\n this.c = this.ms1 * this.ms1 + this.ns0 * this.qs1;\n this.rh = this.a * Math.sqrt(this.c - this.ns0 * this.qs0) / this.ns0;\n}", "function lerpRotation(start, end, t) {\n var difference = Math.abs(end - start);\n if (difference > PI) {\n // We need to add on to one of the values.\n if (end > start) {\n // We'll add it on to start...\n start += TWO_PI;\n } else {\n // Add it on to end.\n end += PI + TWO_PI;\n }\n }\n\n // Interpolate it.\n var value = start + (end - start) * t;\n\n // wrap to 0-2PI\n /*if (value >= 0 && value <= TWO_PI)\n return value;\n return value % TWO_PI;*/\n\n //just return, as it's faster\n return value;\n}", "set secondaryUVHardAngle(value) {}" ]
[ "0.5401263", "0.52766746", "0.52660877", "0.520424", "0.5201473", "0.51762426", "0.5160272", "0.50617266", "0.5049639", "0.5038044", "0.5035436", "0.49931473", "0.49789587", "0.49776223", "0.49741748", "0.4967716", "0.49524423", "0.4948356", "0.49479464", "0.4944791", "0.49262258", "0.49224895", "0.49110878", "0.4906878", "0.48945826", "0.48930612", "0.4890669", "0.48796195", "0.48795903", "0.4871691", "0.48654836", "0.4835136", "0.48301333", "0.48197588", "0.48184147", "0.48177433", "0.4795456", "0.4790239", "0.47900543", "0.47896692", "0.47769105", "0.4768431", "0.47646204", "0.47644532", "0.475426", "0.47503716", "0.47408703", "0.47333363", "0.47326", "0.47309113", "0.47234488", "0.47209173", "0.47084796", "0.47078094", "0.47051662", "0.46924838", "0.4687381", "0.46864605", "0.4682587", "0.46813977", "0.4655513", "0.4655513", "0.46534497", "0.46503732", "0.4647557", "0.4647201", "0.46426678", "0.4640951", "0.4640951", "0.46355367", "0.4634569", "0.463448", "0.46336293", "0.46336293", "0.46295825", "0.4628354", "0.4627913", "0.46253327", "0.46240264", "0.46213695", "0.4619793", "0.46184406", "0.4616871", "0.46098167", "0.4606306", "0.4604647", "0.45839307", "0.45839307", "0.4583665", "0.45819092", "0.4581841", "0.45790815", "0.4578742", "0.45769146", "0.45737356", "0.45714933", "0.4563497", "0.45634916", "0.45580137", "0.4557449", "0.45517862" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. / Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function _default(coordSys) { var rect = coordSys.getRect(); var rangeInfo = coordSys.getRangeInfo(); return { coordSys: { type: 'calendar', x: rect.x, y: rect.y, width: rect.width, height: rect.height, cellWidth: coordSys.getCellWidth(), cellHeight: coordSys.getCellHeight(), rangeInfo: { start: rangeInfo.start, end: rangeInfo.end, weeks: rangeInfo.weeks, dayCount: rangeInfo.allDay } }, api: { coord: function (data, clamp) { return coordSys.dataToPoint(data, clamp); } } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onChildAppStart () {\n\n }", "get Android() {}", "onMessageStart() { }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "createStream () {\n\n }", "onComponentMount() {\n\n }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "didMount() {\n }", "requestContainerInfo() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "function bridgeAndroidAndIOS() {\r\n\r\n //ios\r\n function setupWebViewJavascriptBridge(callback) {\r\n if (window.WebViewJavascriptBridge) {\r\n return callback(WebViewJavascriptBridge);\r\n }\r\n if (window.WVJBCallbacks) {\r\n return window.WVJBCallbacks.push(callback);\r\n }\r\n window.WVJBCallbacks = [callback];\r\n var WVJBIframe = document.createElement('iframe');\r\n WVJBIframe.style.display = 'none';\r\n WVJBIframe.src = 'https://__bridge_loaded__';\r\n document.documentElement.appendChild(WVJBIframe);\r\n setTimeout(function() {\r\n document.documentElement.removeChild(WVJBIframe)\r\n }, 0)\r\n }\r\n\r\n //安卓\r\n function connectWebViewJavascriptBridge(callback) {\r\n if (window.WebViewJavascriptBridge) {\r\n callback(WebViewJavascriptBridge)\r\n } else {\r\n document.addEventListener(\r\n 'WebViewJavascriptBridgeReady',\r\n function() {\r\n callback(WebViewJavascriptBridge)\r\n },\r\n false\r\n );\r\n }\r\n }\r\n\r\n function bridgeLog(logContent) {\r\n uni.showModal({\r\n title: \"原始数据\",\r\n content: logContent,\r\n })\r\n }\r\n\r\n switch (uni.getSystemInfoSync().platform) {\r\n case 'android':\r\n connectWebViewJavascriptBridge(function(bridge) {\r\n bridge.init();\r\n bridge.registerHandler(\"GetUser\", function(data, responseCallback) {\r\n if(JSON.parse(data).guid != \"null\"){\r\n uni.setStorageSync('userInfo', {\r\n guid: JSON.parse(data).guid,\r\n token: JSON.parse(data).token\r\n })\r\n }\r\n uni.setStorageSync('parameter', {\r\n activityID: JSON.parse(data).activityID,\r\n AppCode: JSON.parse(data).AppCode\r\n })\r\n // 初始传入token和guid\r\n Vue.config.configDic = {\r\n Authorization: JSON.parse(data).Authorization,\r\n statusBarHeight: Number.parseInt(JSON.parse(data).statusBarHeight),\r\n };\r\n });\r\n\r\n })\r\n break;\r\n case 'ios':\r\n setupWebViewJavascriptBridge(function(bridge) {\r\n bridge.registerHandler('GetUser', function(data, responseCallback) {\r\n if(data.guid != \"null\"){\r\n uni.setStorageSync('userInfo', {\r\n guid: data.guid,\r\n token: data.token\r\n })\r\n }\r\n uni.setStorageSync('parameter', {\r\n activityID: data.activityID,\r\n AppCode: data.AppCode\r\n })\r\n // 初始传入token和guid\r\n Vue.config.configDic = {\r\n Authorization: data.Authorization,\r\n productID: data.productID,\r\n statusBarHeight: data.statusBarHeight,\r\n };\r\n })\r\n })\r\n break;\r\n default:\r\n console.log('运行在开发者工具上')\r\n break;\r\n }\r\n\r\n}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "constructor(speechCallback, clientId, streamId) {\n console.log(\"in gcloud\");\n const useOpus = false;\n this.clientId = clientId;\n this.streamId = streamId;\n this.isOpen = true;\n\n // Note: \n // 1) The client side detects silence and does a startStream, and endStream\n // The streamId is incremented everytime this happens, \n // so a combination of clientId + streamId can uniquely identify a stream.\n // The server will be transcribing each client's stream in parallel.\n //\n // 2) The streaming API has a limit of 5 minutes. So just before 5 minutes are up\n // there will timer that will close and reopen the stream. Any non final results will\n // we sent again to be re-transcribed,\n // The restartCounter will be incremented every time the stream is restarted. However\n // the streamId will remain the same.\n //\n // 3) Every stream will have set of results. Some results will be final and some won't be\n // After a result is final, that portion of the audio will not be transcribed again by the API\n // each final result will have resultEndTime, - this is time in seconds (and nanoseconds) \n // from the time the stream was started/restarted.\n // Results don'd have a startTime, it is implicit that the startTime is resultEndTime\n // of the last final stream, or 0 if there was no final stream before this\n // We augment the result to add this startTime\n //\n // We also keep a cumulative restartTime, which is the difference betwen the beginning of \n // stream start and begining of the most recent stream restart. And add this to \n // the startTime and endTime. This way the client is completely unaware of the internal restarts\n // \n \n // Have we started/restarted a new stream ?\n this.newStream = true;\n\n // number of times the stream has been restarted\n this.restartCounter = 0;\n\n // audio Input is any array of chunks (buffer)\n this.audioInput = [];\n this.audioInputSize = 0; // total size of all the buffers\n\n // the end time (in seconds) of the last result. \n // the End time is calculated from the beginning of start/restart stream\n this.resultEndTime = 0;\n\n // the end time of the last final result.\n this.finalEndTime = 0;\n\n // the start time (in seconds) of the current result. \n // It is calculated fom beginning of start/restart stream\n this.startTime = 0;\n \n // the time between the of beginning of start stream and the beginning of the most current restart stream.\n this.restartTime = 0;\n\n\n this.lastTranscriptWasFinal = false;\n\n this.restartTimer = null;\n\n this.config = {\n encoding: useOpus ? 'OGG_OPUS' : 'LINEAR16',\n sampleRateHertz: useOpus ? 48000 : 16000,\n languageCode: 'en_us',\n enableAutomaticPunctuation: true,\n speechContexts: [{ phrases: phrases}],\n };\n\n this.request = {\n config : this.config,\n interimResults: true,\n };\n\n this.startStreamInternal();\n }", "constructor() {\n }", "constructor(info) {\n super();\n\n _defineProperty(this, \"_peerConnectionId\", void 0);\n\n _defineProperty(this, \"_reactTag\", void 0);\n\n _defineProperty(this, \"_id\", void 0);\n\n _defineProperty(this, \"_label\", void 0);\n\n _defineProperty(this, \"_maxPacketLifeTime\", void 0);\n\n _defineProperty(this, \"_maxRetransmits\", void 0);\n\n _defineProperty(this, \"_negotiated\", void 0);\n\n _defineProperty(this, \"_ordered\", void 0);\n\n _defineProperty(this, \"_protocol\", void 0);\n\n _defineProperty(this, \"_readyState\", void 0);\n\n _defineProperty(this, \"_subscriptions\", []);\n\n _defineProperty(this, \"binaryType\", 'arraybuffer');\n\n _defineProperty(this, \"bufferedAmount\", 0);\n\n _defineProperty(this, \"bufferedAmountLowThreshold\", 0);\n\n this._peerConnectionId = info.peerConnectionId;\n this._reactTag = info.reactTag;\n this._label = info.label;\n this._id = info.id === -1 ? null : info.id; // null until negotiated.\n\n this._ordered = Boolean(info.ordered);\n this._maxPacketLifeTime = info.maxPacketLifeTime;\n this._maxRetransmits = info.maxRetransmits;\n this._protocol = info.protocol || '';\n this._negotiated = Boolean(info.negotiated);\n this._readyState = info.readyState;\n\n this._registerEvents();\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onChildAppSourceChangeRestart () {\n\n }", "constructor() {\n\n\t}", "async componentDidUpdate() {\n console.log(this.props.directory);\n //this needs to be replaced with environment variable\n const beginingUrl = \"http://10.34.1.30:8080/songs/\";\n const songLoc = this.props.directory + \"/outputlist.m3u8\";\n var hlsUrl = beginingUrl + songLoc;\n var audio = this.player;\n\n //Should this logic be loacated here??This looks hacky,\n const token = await getToken();\n let bearerTokenString = \"Bearer \" + token;\n\n if (Hls.isSupported()) {\n var hls = new Hls({\n // This configuration is required to insure that only the\n // viewer can access the content by sending a session cookie\n // to api.video service\n xhrSetup: function (xhr, url) {\n xhr.setRequestHeader(\"Authorization\", bearerTokenString);\n },\n });\n hls.loadSource(hlsUrl);\n hls.attachMedia(audio);\n hls.on(Hls.Events.MANIFEST_PARSED, function () {\n audio.play();\n });\n } else if (audio.canPlayType(\"application/vnd.apple.mpegurl\")) {\n console.log(\"Nigga we here!!\");\n audio.src = hlsUrl;\n audio.addEventListener(\"loadedmetadata\", function () {\n audio.play();\n });\n }\n }", "onMessageReceive() {}", "constructor() {\n\t}", "constructor() {\n\t}", "componentWillMount() {\n //CodePush.disallowRestart();\n //Alert.alert(\"mounted cool vite OK OK MAINTENANT CA MARCHE !!!!!\");\n/*CodePush.sync(\n{\ndeploymentKey: 'giMb817KrtTFkIuOg4i5ohnEUDyoBJvD1i-VN',\nupdateDialog: true,\ninstallMode: CodePush.InstallMode.IMMEDIATE,\n},\nthis.CodePushStatusDidChange.bind(this),\nthis.CodePushDownloadDidProgress.bind(this)\n);*/\n /* Animated.loop(\n Animated.sequence([\n Animated.timing(this.animatedValue, { toValue: 1, duration: 3000, easing: Easing.ease, useNativeDriver: true }),\n Animated.timing(this.animatedValue, { toValue: 0, duration: 3000, easing: Easing.ease, useNativeDriver: true }),\n ])).start();*/\n //this.toggleLike(); \n //CodePush.notifyApplicationReady();\n this._onLoadStart();\n }", "function version(){ return \"0.13.0\" }", "get supportStreaming() { return exists && has(WA.instantiateStreaming); }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "onChildAppRestart (/* reason */) {\n\n }", "_init(config) {\n this.name = config.name;\n this.appId = config.appid || config.appId;\n this.serverUrl = config.server_url + '/sync_xcx';\n this.autoTrackProperties = {};\n // cache commands.\n this._queue = [];\n\n if (config.isChildInstance) {\n this._state = {};\n } else {\n logger.enabled = config.enableLog;\n this.instances = []; // 子实例名称\n this._state = {\n getSystemInfo: false,\n initComplete: false,\n };\n systemInfo.getSystemInfo(() => {\n this._updateState({\n getSystemInfo: true,\n });\n });\n\n if (config.autoTrack) {\n this.autoTrack = PlatformAPI.initAutoTrackInstance(this, config);\n } else {\n var launchOptions = PlatformAPI.getAppOptions((options) => {\n if (options && options.scene) {\n this._setAutoTrackProperties({\n '#scene': options.scene,\n });\n }\n\n });\n if (launchOptions.scene) {\n this._setAutoTrackProperties({\n '#scene': launchOptions.scene,\n });\n }\n }\n }\n\n this.store = new ThinkingDataPersistence(config, () => {\n if (this.config.asyncPersistence && _.isFunction(this.config.persistenceComplete)) {\n this.config.persistenceComplete(this);\n }\n this._updateState();\n });\n }", "_addHMRClientCode(data) {\n// If we have it, grab supporting code...\n let prependage = fs.readFileSync('./lib/hmr/clientSocket.js'),\n appendage = fs.readFileSync('./lib/hmr/hmr.js')\n\n// Prepend clientSocket.js to bundle.... Append hmr runtime to bundle\n return `${prependage}${data}${appendage}`\n }", "componentDidMount() {\n this.setState({\n configuration: {\n flow: {\n name: \"sample1\",\n id: \"01\",\n components: [\n {\n type: \"http-listener\",\n id: \"http-list-01\",\n properties: {\n method: \"get\",\n port: 8000,\n path: \"http://localhost\"\n }\n },\n {\n type: \"logger\",\n id: \"logger-01\",\n properties: {\n level: \"info\"\n }\n },\n {\n type: \"file-writer\",\n id: \"file-write-01\",\n properties: {\n location: \"xx\",\n username: \"sachith\",\n password: \"\",\n filename: \"hello.txt\"\n }\n }\n ]\n }\n }\n\n });\n }", "componentWillUnmount(){\n Streaming.disconnect();\n }", "pushStart() {\n Cordova.exec(\n () => {},\n () => {},\n 'SparkProxy',\n 'pushStart',\n []);\n }", "async onReady() {\n // Initialize your adapter here\n // Subsribe to all state changes\n this.subscribeStates('*');\n this.axiosInstance = axios_1.default.create({\n baseURL: `http://${this.config.host}/api/v1/`,\n timeout: 1000\n });\n // try to ping volumio\n const connectionSuccess = await this.pingVolumio();\n if (this.config.checkConnection) {\n let interval = this.config.checkConnectionInterval;\n if (!interval || !isNumber(interval)) {\n this.log.error(`Invalid connection check interval setting. Will be set to 30s`);\n interval = 30;\n }\n this.checkConnectionInterval = setInterval(this.checkConnection, interval * 1000, this);\n }\n // get system infos\n if (connectionSuccess) {\n this.apiGet('getSystemInfo').then(sysInfo => {\n this.setStateAsync('info.id', sysInfo.id, true);\n this.setStateAsync('info.host', sysInfo.host, true);\n this.setStateAsync('info.name', sysInfo.name, true);\n this.setStateAsync('info.type', sysInfo.type, true);\n this.setStateAsync('info.serviceName', sysInfo.serviceName, true);\n this.setStateAsync('info.systemversion', sysInfo.systemversion, true);\n this.setStateAsync('info.builddate', sysInfo.builddate, true);\n this.setStateAsync('info.variant', sysInfo.variant, true);\n this.setStateAsync('info.hardware', sysInfo.hardware, true);\n });\n // get inital player state\n this.updatePlayerState();\n }\n if (this.config.subscribeToStateChanges && this.config.subscriptionPort && connectionSuccess) {\n this.log.debug('Subscription mode is activated');\n try {\n this.httpServerInstance = this.httpServer.listen(this.config.subscriptionPort);\n this.log.debug(`Server is listening on ${ip_1.default.address()}:${this.config.subscriptionPort}`);\n this.subscribeToVolumioNotifications();\n }\n catch (error) {\n this.log.error(`Starting server on ${this.config.subscriptionPort} for subscription mode failed: ${error.message}`);\n }\n }\n else if (this.config.subscribeToStateChanges && !this.config.subscriptionPort) {\n this.log.error('Subscription mode is activated, but port is not configured.');\n }\n else if (!this.config.subscribeToStateChanges && connectionSuccess) {\n this.unsubscribeFromVolumioNotifications();\n }\n this.httpServer.post('/volumiostatus', (req, res) => {\n this.onVolumioStateChange(req.body);\n res.sendStatus(200);\n });\n }", "function IbtRealTimeSJ(){/***********************************************************\n\t * @attributes\n\t ***********************************************************/var appKey;// application key\n\tvar authToken;// authentication token\n\tvar clusterUrl;// cluster URL to connect\n\tvar waitingClusterResponse;// indicates whether is waiting for a cluster response\n\tvar connectionTimeout;// connection timeout in milliseconds\n\tvar messageMaxSize;// message maximum size in bytes\n\tvar channelMaxSize;// channel maximum size in bytes\n\tvar channelsMaxSize;// maximum of channels for batchSend\n\tvar messagesBuffer;// buffer to hold the message parts\n\tvar id;// object identifier\n\tvar isConnected;// indicates whether the client object is connected\n\tvar isConnecting;// indicates whether the client object is connecting\n\tvar alreadyConnectedFirstTime;// indicates whether the client already connected for the first time\n\tvar stopReconnecting;// indicates whether the user disconnected (stop the reconnecting proccess)\n\tvar ortc;// represents the object itself\n\tvar sockjs;// socket connected to\n\tvar url;// URL to connect\n\tvar userPerms;// user permissions\n\tvar connectionMetadata;// connection metadata used to identify the client\n\tvar announcementSubChannel;// announcement subchannel\n\tvar subscribedChannels;// subscribed/subscribing channels\n\tvar lastKeepAlive;// holds the time of the last keep alive received\n\tvar invalidConnection;// indicates whether the connection is valid\n\tvar reconnectIntervalId;// id used for the reconnect interval\n\tvar reconnectStartedAt;// the time which the reconnect started\n\tvar validatedTimeoutId;// id used for the validated timeout\n\tvar validatedArrived;// indicates whether the validated message arrived\n\tvar retryingWithSsl;// indicates whether the connection is being retried with SSL\n\tvar protocol;// protocol to use\n\tvar sslSessionCookieName;// the SSL session cookie name\n\tvar sessionCookieName;// the session cookie name\n\tvar sessionId;// the session ID\n\tvar registrationId;// browser device token for push notifications\n\tvar pushPlatform;// push notifications platform\n\t/***********************************************************\n\t * @attributes initialization\n\t ***********************************************************/sslSessionCookieName=\"ortcssl\";sessionCookieName=\"ortcsession-\";connectionTimeout=5000;messageMaxSize=800;channelMaxSize=100;connectionMetadataMaxSize=256;channelsMaxSize=50;// Time in seconds\n\tvar heartbeatDefaultTime=15;// Heartbeat default interval time\n\tvar heartbeatDefaultFails=3;// Heartbeat default max fails\n\tvar heartbeatMaxTime=60;var heartbeatMinTime=10;var heartbeatMaxFails=6;var heartbeatMinFails=1;var heartbeatTime=heartbeatDefaultTime;// Heartbeat interval time\n\tvar heartbeatFails=heartbeatDefaultFails;// Heartbeat max fails\n\tvar heartbeatInterval=null;// Heartbeat interval\n\tvar heartbeatActive=false;messagesBuffer={};subscribedChannels={};isConnected=false;isConnecting=false;alreadyConnectedFirstTime=false;invalidConnection=false;waitingClusterResponse=false;validatedArrived=false;retryingWithSsl=false;ortc=this;lastKeepAlive=null;userPerms=null;reconnectStartedAt=null;protocol=undefined;pushPlatform=\"GCM\";var delegateExceptionCallback=function(ortcArg,event){if(ortcArg!==null&&ortcArg.onException!==null){ortcArg.onException(ortcArg,event);}};/***********************************************************\n\t * @properties\n\t ***********************************************************/this.getId=function(){return id;};this.setId=function(newId){id=newId;};this.getUrl=function(){return url;};this.setUrl=function(newUrl){url=newUrl;clusterUrl=null;};this.getClusterUrl=function(){return clusterUrl;};this.setClusterUrl=function(newUrl){clusterUrl=newUrl;url=null;};this.getConnectionTimeout=function(){return connectionTimeout;};this.setConnectionTimeout=function(newTimeout){connectionTimeout=newTimeout;};this.getIsConnected=function(){return isConnected&&ortc.sockjs!==null;};this.getConnectionMetadata=function(){return connectionMetadata;};this.setConnectionMetadata=function(newConnectionMetadata){connectionMetadata=newConnectionMetadata;};this.getAnnouncementSubChannel=function(){return announcementSubChannel;};this.setAnnouncementSubChannel=function(newAnnouncementSubChannel){announcementSubChannel=newAnnouncementSubChannel;};this.getProtocol=function(){return protocol;};this.setProtocol=function(newProtocol){protocol=newProtocol;};this.getSessionId=function(){return sessionId;};/*\n\t * Get heartbeat interval.\n\t */this.getHeartbeatTime=function(){return heartbeatTime;};/*\n\t * Set heartbeat interval.\n\t */this.setHeartbeatTime=function(newHeartbeatTime){if(newHeartbeatTime&&!isNaN(newHeartbeatTime)){if(newHeartbeatTime>heartbeatMaxTime||newHeartbeatTime<heartbeatMinTime){delegateExceptionCallback(ortc,`Heartbeat time is out of limits - Min: ${heartbeatMinTime} | Max: ${heartbeatMaxTime}`);}else{heartbeatTime=newHeartbeatTime;}}else{delegateExceptionCallback(ortc,`Invalid heartbeat time ${newHeartbeatTime}`);}};/*\n\t * Get how many times can the client fail the heartbeat.\n\t */this.getHeartbeatFails=function(){return heartbeatFails;};/*\n\t * Set heartbeat fails. Defines how many times can the client fail the heartbeat.\n\t */this.setHeartbeatFails=function(newHeartbeatFails){if(newHeartbeatFails&&!isNaN(newHeartbeatFails)){if(newHeartbeatFails>heartbeatMaxFails||newHeartbeatFails<heartbeatMinFails){delegateExceptionCallback(ortc,`Heartbeat fails is out of limits - Min: ${heartbeatMinFails} | Max: ${heartbeatMaxFails}`);}else{heartbeatFails=newHeartbeatFails;}}else{delegateExceptionCallback(ortc,`Invalid heartbeat fails ${newHeartbeatFails}`);}};/*\n\t * Get heart beat active.\n\t */this.getHeartbeatActive=function(){return heartbeatActive;};/*\n\t * Set heart beat active. Heart beat provides better accuracy for presence data.\n\t */this.setHeartbeatActive=function(active){heartbeatActive=active;};/***********************************************************\n\t * @events\n\t ***********************************************************/this.onConnected=null;this.onDisconnected=null;this.onSubscribed=null;this.onUnsubscribed=null;this.onException=null;this.onReconnecting=null;this.onReconnected=null;/***********************************************************\n\t * @public methods\n\t ***********************************************************//*\n\t * Connects to the gateway with the application key and authentication token.\n\t */this.connect=function(appKey,authToken){/*\n\t Sanity Checks\n\t */if(isConnected){delegateExceptionCallback(ortc,\"Already connected\");}else if(!url&&!clusterUrl){delegateExceptionCallback(ortc,\"URL and Cluster URL are null or empty\");}else if(!appKey){delegateExceptionCallback(ortc,\"Application Key is null or empty\");}else if(!authToken){delegateExceptionCallback(ortc,\"Authentication Token is null or empty\");}else if(url&&!ortcIsValidUrl(url)){delegateExceptionCallback(ortc,\"Invalid URL\");}else if(clusterUrl&&!ortcIsValidUrl(clusterUrl)){delegateExceptionCallback(ortc,\"Invalid Cluster URL\");}else if(!ortcIsValidInput(appKey)){delegateExceptionCallback(ortc,\"Application Key has invalid characters\");}else if(!ortcIsValidInput(authToken)){delegateExceptionCallback(ortc,\"Authentication Token has invalid characters\");}else if(!ortcIsValidInput(announcementSubChannel)){delegateExceptionCallback(ortc,\"Announcement Subchannel has invalid characters\");}else if(connectionMetadata&&connectionMetadata.length>connectionMetadataMaxSize){delegateExceptionCallback(ortc,\"Connection metadata size exceeds the limit of \"+connectionMetadataMaxSize+\" characters\");}else{ortc.appKey=appKey;ortc.authToken=authToken;isConnecting=true;stopReconnecting=false;validatedArrived=false;clearValidatedTimeout(self);// Read SSL session cookie\n\t//var sslConn = readCookie(sslSessionCookieName);\n\tvar sslConn=false;if(sslConn){changeUrlSsl();}if(clusterUrl&&clusterUrl!=null){clusterUrl=clusterUrl.ortcTreatUrl();clusterConnection();}else{url=url.ortcTreatUrl();ortc.sockjs=createSocketConnection(url);}//If ssl connection increase connection timeout\n\tif(clusterUrl&&clusterUrl!=null&&clusterUrl.indexOf(\"/ssl\")>=0||url&&url.indexOf(\"https\")>=0){if(!retryingWithSsl){ortc.setConnectionTimeout(30*1000);}else{if(ortc.getConnectionTimeout()<300*1000){if(ortc.getConnectionTimeout()<30*1000){ortc.setConnectionTimeout(30*1000);}else{ortc.setConnectionTimeout((ortc.getConnectionTimeout()+10)*1000);}}else{stopReconnecting=true;clearReconnectInterval();}}}if(!ortc.reconnectIntervalId&&!stopReconnecting){// Interval to reconnect\n\tortc.reconnectIntervalId=setInterval(function(){if(stopReconnecting){clearReconnectInterval();}else{var currentDateTime=new Date();if(ortc.sockjs==null&&!waitingClusterResponse){reconnectSocket();}// 35 seconds\n\tif(lastKeepAlive!=null&&lastKeepAlive+35000<new Date().getTime()){lastKeepAlive=null;// Server went down\n\tif(isConnected){disconnectSocket();}}}},ortc.getConnectionTimeout());}}};this.setNotificationConfig=function(config){config.cmd=\"config\";this.sendMessageToServiceWorker(config);};this.showNotification=function(notification){notification.cmd=\"notification\";this.sendMessageToServiceWorker(notification);};this.sendMessageToServiceWorker=function(message){return new Promise(function(resolve,reject){var messageChannel=new MessageChannel();messageChannel.port1.onmessage=function(event){if(event.data.error){reject(event.data.error);}else{resolve(event.data);}};navigator.serviceWorker.controller.postMessage(message,[messageChannel.port2]);});};/*\n\t * Subscribes to the channel so the client object can receive all messages sent to it by other clients with Notifications.\n\t */this.subscribeWithNotifications=function(channel,subscribeOnReconnected,regId,onMessageCallback){ortc.registrationId=regId;this._subscribe(channel,subscribeOnReconnected,regId,null,onMessageCallback);};/*\n\t * Subscribes to the channel so the client object can receive all messages sent that are valid according to the given filter\n\t */this.subscribeWithFilter=function(channel,subscribeOnReconnected,filter,onMessageCallback){this._subscribe(channel,subscribeOnReconnected,null,filter,onMessageCallback);};/*\n\t * Subscribes to the channel so the client object can receive all messages sent to it by other clients.\n\t */this.subscribe=function(channel,subscribeOnReconnected,onMessageCallback){this._subscribe(channel,subscribeOnReconnected,null,null,onMessageCallback);};this._subscribe=function(channel,subscribeOnReconnected,regId,filter,onMessageCallback){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribing){delegateExceptionCallback(ortc,\"Already subscribing to the channel \\\"\"+channel+\"\\\"\");}else if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed){delegateExceptionCallback(ortc,\"Already subscribed to the channel \\\"\"+channel+\"\\\"\");}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else if(!ortcIsValidBoolean(subscribeOnReconnected)){delegateExceptionCallback(ortc,\"The argument \\\"subscribeOnReconnected\\\" must be a boolean\");}else if(!ortcIsFunction(onMessageCallback)){delegateExceptionCallback(ortc,\"The argument \\\"onMessageCallback\\\" must be a function\");}else{if(ortc.sockjs!=null){var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){delegateExceptionCallback(ortc,\"No permission found to subscribe to the channel \\\"\"+channel+\"\\\"\");}else{if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=true;subscribedChannels[channel].isSubscribed=false;subscribedChannels[channel].subscribeOnReconnected=subscribeOnReconnected;subscribedChannels[channel].onMessageCallback=onMessageCallback;subscribedChannels[channel].filter=filter;}else{subscribedChannels[channel]={\"isSubscribing\":true,\"isSubscribed\":false,\"subscribeOnReconnected\":subscribeOnReconnected,\"onMessageCallback\":onMessageCallback,\"filter\":filter};}if(regId){subscribedChannels[channel].withNotifications=true;ortc.sockjs.send(\"subscribe;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+regId+\";\"+pushPlatform);}else{subscribedChannels[channel].withNotifications=false;if(filter){ortc.sockjs.send(\"subscribefilter;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+filter);}else{ortc.sockjs.send(\"subscribe;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm);}}}}}};/*\n\t * Unsubscribes from the channel so the client object stops receiving messages sent to it.\n\t */this.unsubscribe=function(channel){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(!subscribedChannels[channel]||subscribedChannels[channel]&&!subscribedChannels[channel].isSubscribed){delegateExceptionCallback(ortc,\"Not subscribed to the channel \"+channel);}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else{if(ortc.sockjs!=null){if(subscribedChannels[channel].withNotifications==true){ortc.sockjs.send(\"unsubscribe;\"+ortc.appKey+\";\"+channel+\";\"+ortc.registrationId+\";\"+pushPlatform);}else{ortc.sockjs.send(\"unsubscribe;\"+ortc.appKey+\";\"+channel);}}}};/*\n\t * Sends the message to the channel.\n\t */this.send=function(channel,message){/*\n\t Sanity Checks\n\t */if(!isConnected||ortc.sockjs==null){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(!message){delegateExceptionCallback(ortc,\"Message is null or empty\");}else if(!ortcIsString(message)){delegateExceptionCallback(ortc,\"Message must be a string\");}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else{var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){delegateExceptionCallback(ortc,\"No permission found to send to the channel \\\"\"+channel+\"\\\"\");}else{// Multi part\n\tvar messageParts=[];var messageId=generateId(8);var i;var allowedMaxSize=messageMaxSize-channel.length;for(i=0;i<message.length;i=i+allowedMaxSize){// Just one part\n\tif(message.length<=allowedMaxSize){messageParts.push(message);break;}if(message.substring(i,i+allowedMaxSize)){messageParts.push(message.substring(i,i+allowedMaxSize));}}for(var j=1;j<=messageParts.length;j++){ortc.sockjs.send(\"send;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+messageId+\"_\"+j+\"-\"+messageParts.length+\"_\"+messageParts[j-1]);}}}};/*\n\t * Sends the message to multiple channels.\n\t */this.batchSend=function(channels,message){/*\n\t Sanity Checks\n\t */channels=ortcStrToArray(channels);if(!isConnected||ortc.sockjs==null){delegateExceptionCallback(ortc,\"Not connected\");}else if(!ortcIsArray(channels)){delegateExceptionCallback(ortc,\"Channels must be a array\");}else if(!message){delegateExceptionCallback(ortc,\"Message is null or empty\");}else if(!ortcIsString(message)){delegateExceptionCallback(ortc,\"Message must be a string\");}else if(channels.length<=0){delegateExceptionCallback(ortc,\"Channels must be an array at least with one channel\");}else if(channels.length>channelsMaxSize){channels=[];delegateExceptionCallback(ortc,\"The channel maximum was reached (>\"+channelsMaxSize+\")\");}for(i=0;i<channels.length;i++){var channel=channels[i];if(channel.length>channelMaxSize){channels.splice(i,1);delegateExceptionCallback(ortc,\"Channel \"+channel+\" size exceeds the limit of \"+channelMaxSize+\" characters\");}}if(channels.length>0){var arrayHashPerm=[];for(i=0;i<channels.length;i++){var channel=channels[i];var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){channels.splice(i,1);delegateExceptionCallback(ortc,\"No permission found to send to the channel \\\"\"+channel+\"\\\"\");}else{arrayHashPerm.push(hashPerm);}}if(channels.length>0){var messageParts=[];var messageId=generateId(8);var allowedMaxSize=messageMaxSize-channels.toString().length;for(i=0;i<message.length;i=i+allowedMaxSize){// Just one part\n\tif(message.length<=allowedMaxSize){messageParts.push(message);break;}if(message.substring(i,i+allowedMaxSize)){messageParts.push(message.substring(i,i+allowedMaxSize));}}for(j=1;j<=messageParts.length;j++){ortc.sockjs.send(\"batchSend;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+JSON.stringify(channels)+\";\"+JSON.stringify(arrayHashPerm)+\";\"+messageId+\"_\"+j+\"-\"+messageParts.length+\"_\"+messageParts[j-1]);}}}};/*\n\t * Disconnects from the gateway.\n\t */this.disconnect=function(){clearReconnectInterval();stopReconnectProcess();// Clear subscribed channels\n\tsubscribedChannels={};/*\n\t Sanity Checks\n\t */if(!isConnected&&!invalidConnection){delegateExceptionCallback(ortc,\"Not connected\");}else{disconnectSocket();}};/*\n\t * Gets a value indicating whether this client object is subscribed to the channel.\n\t */this.isSubscribed=function(channel){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else{if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed){return subscribedChannels[channel].isSubscribed;}else{return false;}}};/*\n\t * Gets a json indicating the subscriptions in a channel.\n\t */this.presence=function(parameters,callback){try{var requestUrl=null,isCluster=false,appKey=ortc.appKey,authToken=ortc.authToken;if(parameters.url){requestUrl=parameters.url.ortcTreatUrl();isCluster=parameters.isCluster;appKey=parameters.applicationKey;authToken=parameters.authenticationToken;}else{if(clusterUrl&&clusterUrl!=null){requestUrl=clusterUrl;isCluster=true;}else{requestUrl=url.ortcTreatUrl();;}}getServerUrl({requestUrl:requestUrl,isCluster:isCluster,appKey:appKey},function(error,serverUrl){if(error){callback(error,null);}else{jsonp(serverUrl+\"/presence/\"+appKey+\"/\"+authToken+\"/\"+parameters.channel,callback);}});}catch(e){callback(\"Unable to get presence data\",null);}};var getServerUrl=function(parameters,callback){if(parameters.requestUrl&&parameters.isCluster){var guid=generateGuid();var queryString=\"guid=\"+generateGuid();queryString=parameters.appKey?queryString+\"&appkey=\"+parameters.appKey:queryString;loadClusterServerScript(parameters.requestUrl+\"/?\"+queryString,guid,function(clusterServerResolved,scriptGuid){if(clusterServerResolved){var resultUrl=SOCKET_SERVER;callback(null,resultUrl);}else{callback(null,\"Unable to get server from cluster\");}try{clearScripts(scriptGuid);}catch(loadError){}});}else{var resultUrl=parameters.requestUrl.ortcTreatUrl();callback(null,resultUrl);}};/*\n\t * Adds the Webspectator bootstrap script for the outmost frame on the same domain.\n\t */this.setMonetizerId=function(publicId){var tempWin;var win=tempWin=window;while(tempWin!=window.top){try{if(tempWin.frameElement){win=tempWin.parent;}}catch(e){}tempWin=tempWin.parent;}if(!win._WS_BOOT){var s=document.createElement(\"SCRIPT\");s.src=\"//wfpscripts.webspectator.com/bootstrap/ws-\"+publicId+\".js\";document.getElementsByTagName(\"head\")[0].appendChild(s);}};/***********************************************************\n\t * @private methods\n\t ***********************************************************//*\n\t * Change the current URL to use SSL\n\t */var changeUrlSsl=function(){if(!(\"ActiveXObject\"in window)){if(clusterUrl&&clusterUrl!=null){//clusterUrl = clusterUrl.replace(\"http://\", \"https://\");\n\tif(clusterUrl.indexOf(\"ssl/\")<0){var slashAtTheEnd=clusterUrl.search(/\\/([\\d.]*)\\/$/);if(slashAtTheEnd>-1){clusterUrl=clusterUrl.substring(0,slashAtTheEnd+1)+\"ssl/\"+clusterUrl.substring(slashAtTheEnd+1,clusterUrl.length);}else{clusterUrl=clusterUrl.substring(0,clusterUrl.lastIndexOf(\"/\")+1)+\"ssl/\"+clusterUrl.substring(clusterUrl.lastIndexOf(\"/\")+1);}}}else{url=url.replace(\"http://\",\"https://\");}}// Create session cookie\n\t//createSessionCookie(sslSessionCookieName, 1);\n\t};/*\n\t * Clear the reconnecting interval\n\t */var clearReconnectInterval=function(){if(ortc.reconnectIntervalId){clearInterval(ortc.reconnectIntervalId);ortc.reconnectIntervalId=null;}};/*\n\t * Clear the validated timeout\n\t */var clearValidatedTimeout=function(self){if(self.validatedTimeoutId){clearTimeout(self.validatedTimeoutId);self.validatedTimeoutId=null;}};/*\n\t * Stop the reconnecting process\n\t */var stopReconnectProcess=function(){stopReconnecting=true;alreadyConnectedFirstTime=false;};var startHeartBeatInterval=function(self){if(!self.heartbeatInterval&&heartbeatActive){self.sockjs.send(\"b\");self.heartbeatInterval=setInterval(function(){if(!heartbeatActive){stopHeartBeatInterval(self);}else{self.sockjs.send(\"b\");}},heartbeatTime*1000);}};var stopHeartBeatInterval=function(self){if(self.heartbeatInterval){clearInterval(self.heartbeatInterval);self.heartbeatInterval=null;}};/*\n\t * Creates a cookie with expiration time.\n\t */var createExpireCookie=function(name,value,minutes){var expires=\"\";if(minutes){var date=new Date();date.setTime(date.getTime()+minutes*60*1000);expires=\"; expires=\"+date.toGMTString();}document.cookie=name+\"=\"+value+expires+\"; path=/\";};/*\n\t * Creates a session cookie.\n\t */var createSessionCookie=function(name,value){document.cookie=name+\"=\"+value+\"; path=/\";};/*\n\t * Reads a cookie.\n\t */var readCookie=function(name){var nameEQ=name+\"=\";var ca=document.cookie.split(\";\");var result=null;for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==\" \"){c=c.substring(1,c.length);}if(c.indexOf(nameEQ)==0){result=c.substring(nameEQ.length,c.length);break;}}return result;};/*\n\t * Generates an ID.\n\t */var generateId=function(size){var result=\"\";var S4=function(){return((1+Math.random())*0x10000|0).toString(16).substring(1);};for(var i=0;i<size/4;i++){result+=S4();}return result;};/*\n\t * Disconnects the socket.\n\t */var disconnectSocket=function(){stopHeartBeatInterval(ortc);reconnectStartedAt=null;isConnected=false;isConnecting=false;validatedArrived=false;retryingWithSsl=false;clearValidatedTimeout(self);if(ortc.sockjs!=null){ortc.sockjs.close();ortc.sockjs=null;}};/*\n\t * Reconnects the socket.\n\t */var reconnectSocket=function(){stopHeartBeatInterval(ortc);if(isConnecting){delegateExceptionCallback(ortc,\"Unable to connect\");}isConnecting=true;delegateReconnectingCallback(ortc);reconnectStartedAt=new Date().getTime();if(clusterUrl&&clusterUrl!=null){clusterConnection();}else{ortc.sockjs=createSocketConnection(url);}};/*\n\t * Tries a connection through the cluster gateway with the application key and authentication token.\n\t */var clusterConnection=function(){var guid=generateGuid();var queryString=\"guid=\"+generateGuid();queryString=ortc.appKey?queryString+\"&appkey=\"+ortc.appKey:queryString;loadClusterServerScript(clusterUrl+\"/?\"+queryString,guid,function(clusterServerResolved,scriptGuid){if(clusterServerResolved){url=SOCKET_SERVER;sockjs=createSocketConnection(ortc.getUrl());}try{clearScripts(scriptGuid);}catch(loadError){}});};/*\n\t * Clears the javascript scripts previously loaded into the page.\n\t */var clearScripts=function(guid){var headChildren=document.getElementsByTagName(\"head\")[0].children;var childrenToRemove=[];for(var i=0;i<headChildren.length;i++){if(headChildren[i].attributes!=null&&headChildren[i].attributes[\"ortcScriptId\"]&&headChildren[i].attributes[\"ortcScriptId\"].value==guid){childrenToRemove.push(i);}}for(var child in childrenToRemove){document.getElementsByTagName(\"head\")[0].removeChild(headChildren[childrenToRemove[child]]);}};/*\n\t * Loads the cluster server javascript script into the page.\n\t */var loadClusterServerScript=function(scriptUrl,guid,callback){var script=document.createElement(\"script\");script.type=\"text/javascript\";script.setAttribute(\"ortcScriptId\",guid);waitingClusterResponse=true;if(script.readyState){// IE\n\tscript.onreadystatechange=function(){if(script.readyState==\"loaded\"||script.readyState==\"complete\"){waitingClusterResponse=false;script.onreadystatechange=null;if(typeof SOCKET_SERVER!=\"undefined\"&&SOCKET_SERVER.indexOf(\"undefined\")<0&&SOCKET_SERVER.indexOf(\"unknown_server\")<0){callback(true,guid);}else{callback(false,guid);}}};}else{// Others\n\tscript.onload=function(){waitingClusterResponse=false;if(typeof SOCKET_SERVER!=\"undefined\"&&SOCKET_SERVER.indexOf(\"undefined\")<0&&SOCKET_SERVER.indexOf(\"unknown_server\")<0){callback(true,guid);}else{callback(false,guid);}};}script.onerror=function(){waitingClusterResponse=false;};script.src=scriptUrl;document.getElementsByTagName(\"head\")[0].appendChild(script);};/*\n\t * Generates a GUID.\n\t */var generateGuid=function(){var S4=function(){return((1+Math.random())*0x10000|0).toString(16).substring(1);};return S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4();};/*\n\t * Count the dictionary keys.\n\t */var countKeys=function(dic){var count=0;for(var i in dic){count++;}return count;};/*\n\t * Creates a socket connection.\n\t */var createSocketConnection=function(connectionUrl){var self=ortc;if(self.sockjs==null){if(navigator&&navigator.userAgent&&navigator.userAgent.indexOf(\"PlayStation Vita\")>=0){protocol=\"jsonp-polling\";}self.sockjs=new SockJS(connectionUrl+\"/broadcast\",protocol);// Timeout to receive the validated message\n\tif(!self.sslFallback){var validateTimeoutTime=5000;self.validatedTimeoutId=setTimeout(function(){self.sslFallback=true;stopReconnectProcess();disconnectSocket();invalidConnection=true;retryingWithSsl=true;if(connectionUrl.indexOf(\"https://\")>=0){// We are already using SSL, try streaming\n\tprotocol=\"xhr-streaming\";}else{protocol=undefined;}changeUrlSsl();},validateTimeoutTime);}else if(!self.xhrStreamingFallback){// The SSL fallback failed. Try xhr-streaming\n\tvar validateSslTimeoutTime=5000;self.validatedTimeoutId=setTimeout(function(){self.xhrStreamingFallback=true;stopReconnectProcess();disconnectSocket();invalidConnection=true;retryingWithSsl=true;protocol=\"xhr-streaming\";},validateSslTimeoutTime);}// Connect handler\n\tself.sockjs.onopen=function(){protocol=self.sockjs.protocol;// Update last keep alive time\n\tlastKeepAlive=new Date().getTime();// If is a reconnect do not count session\n\tif(alreadyConnectedFirstTime){sessionId=\"\";}else{// Read session cookie\n\tsessionId=readCookie(sessionCookieName+self.appKey+\"-s\");if(!sessionId){// Read expiration cookie\n\tsessionId=readCookie(sessionCookieName+self.appKey);if(!sessionId){sessionId=generateId(16);}// Create session cookie\n\tcreateSessionCookie(sessionCookieName+self.appKey+\"-s\",sessionId);// Check if session cookie was created\n\tif(!readCookie(sessionCookieName+self.appKey+\"-s\")){sessionId=\"\";}}}var heartbeatDetails=heartbeatActive?\";\"+self.getHeartbeatTime()+\";\"+self.getHeartbeatFails()+\";\":\"\";self.sockjs.send(\"validate;\"+self.appKey+\";\"+self.authToken+\";\"+(announcementSubChannel?announcementSubChannel:\"\")+\";\"+sessionId+\";\"+connectionMetadata+heartbeatDetails);};// Disconnect handler\n\tself.sockjs.onclose=function(e){// e.code=1000 - e.reason=Normal closure\n\t// e.code=1006 - e.reason=WebSocket connection broken\n\t// e.code=2000 - e.reason=All transports failed\n\tstopHeartBeatInterval(ortc);if(ortc.sockjs!=null){ortc.sockjs.close();ortc.sockjs=null;}// Clear user permissions\n\tuserPerms=null;if(e.code!=1000){if(isConnected){isConnected=false;isConnecting=false;protocol=undefined;delegateDisconnectedCallback(self);}if(!stopReconnecting){if(!reconnectStartedAt||reconnectStartedAt+connectionTimeout<new Date().getTime()){reconnectSocket();}}}else{if(!invalidConnection){isConnected=false;isConnecting=false;protocol=undefined;delegateDisconnectedCallback(self);}}if(retryingWithSsl){self.connect(self.appKey,self.authToken);retryingWithSsl=false;}invalidConnection=false;};// Receive handler\n\tself.sockjs.onmessage=function(e){// Update last keep alive time\n\tlastKeepAlive=new Date().getTime();var data=e.data;var channel=data.ch;var message=data.m;var filtered=data.f;// Multi part\n\tvar regexPattern=/^(\\w[^_]*)_{1}(\\d*)-{1}(\\d*)_{1}([\\s\\S.]*)$/;var match=regexPattern.exec(message);var messageId=null;var messageCurrentPart=1;var messageTotalPart=1;var lastPart=false;if(match&&match.length>0){if(match[1]){messageId=match[1];}if(match[2]){messageCurrentPart=match[2];}if(match[3]){messageTotalPart=match[3];}if(match[4]){message=match[4];}}if(messageId){if(!messagesBuffer[messageId]){messagesBuffer[messageId]={};}messagesBuffer[messageId][messageCurrentPart]=message;if(countKeys(messagesBuffer[messageId])==messageTotalPart){lastPart=true;}}else{lastPart=true;}if(lastPart){if(messageId){message=\"\";for(var i=1;i<=messageTotalPart;i++){message+=messagesBuffer[messageId][i];delete messagesBuffer[messageId][i];}delete messagesBuffer[messageId];}delegateMessagesCallback(self,channel,filtered,message);}};self.sockjs.onortcsubscribed=function(e){lastKeepAlive=new Date().getTime();var channel=e.data;if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;subscribedChannels[channel].isSubscribed=true;}delegateSubscribedCallback(self,channel);};self.sockjs.onortcunsubscribed=function(e){lastKeepAlive=new Date().getTime();var channel=e.data;if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribed=false;}delegateUnsubscribedCallback(self,channel);};self.sockjs.onheartbeat=function(){lastKeepAlive=new Date().getTime();};self.sockjs.onortcvalidated=function(e){var sessionExpirationTime=30;if(e.data){userPerms=e.data;}if(e.set){sessionExpirationTime=e.set;}clearValidatedTimeout(self);validatedArrived=true;retryingWithSsl=false;isConnecting=false;isConnected=true;reconnectStartedAt=null;if(sessionId){if(!readCookie(sessionCookieName+self.appKey+\"-s\")){createSessionCookie(sessionCookieName+self.appKey+\"-s\",sessionId);}if(!readCookie(sessionCookieName+self.appKey)){createExpireCookie(sessionCookieName+self.appKey,sessionId,sessionExpirationTime);}}if(alreadyConnectedFirstTime){var channelsToRemove={};// Subscribe to the previously subscribed channels\n\tfor(var key in subscribedChannels){// Subscribe again\n\tif(subscribedChannels[key].subscribeOnReconnected==true&&(subscribedChannels[key].isSubscribing||subscribedChannels[key].isSubscribed)){subscribedChannels[key].isSubscribing=true;subscribedChannels[key].isSubscribed=false;var domainChannelCharacterIndex=key.indexOf(\":\");var channelToValidate=key;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=key.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[key];}if(subscribedChannels[key].filter){self.sockjs.send(\"subscribefilter;\"+self.appKey+\";\"+self.authToken+\";\"+key+\";\"+hashPerm+\";\"+subscribedChannels[key].filter);}else{self.sockjs.send(\"subscribe;\"+self.appKey+\";\"+self.authToken+\";\"+key+\";\"+hashPerm);}}else{channelsToRemove[key]=key;}}for(var keyToRemove in channelsToRemove){delete subscribedChannels[keyToRemove];}messagesBuffer={};delegateReconnectedCallback(self);}else{alreadyConnectedFirstTime=true;delegateConnectedCallback(self);}};self.sockjs.onortcerror=function(e){lastKeepAlive=new Date().getTime();var data=e.data;var operation=data.op;var channel=data.ch;var error=data.ex?data.ex:data;delegateExceptionCallback(self,error);switch(operation){case\"validate\":if(error.indexOf(\"busy\")<0){invalidConnection=true;clearValidatedTimeout(self);retryingWithSsl=false;stopReconnectProcess();}else{clearValidatedTimeout(self);retryingWithSsl=false;}break;case\"subscribe\":if(channel&&subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;}break;case\"subscribe_maxsize\":case\"unsubscribe_maxsize\":case\"shutdown\":clearValidatedTimeout(self);retryingWithSsl=false;break;case\"send_maxsize\":if(channel&&subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;}stopReconnectProcess();break;default:break;}};}return self.sockjs;};var jsonp=function(url,callback){var head=document.head?document.head:document.getElementsByTagName(\"head\")[0];var script=document.createElement(\"script\");var guid=\"ortcJsonp\"+ +new Date();var jsonpCallTimeout=setTimeout(function(){try{callback(\"Unable to get data\",null);window[guid]=undefined;delete window[guid];head.removeChild(script);}catch(e){}},15*1000);window[guid]=function(data){clearTimeout(jsonpCallTimeout);if(data.error){callback(data.error,null);}else{callback(null,data.content);}try{window[guid]=undefined;delete window[guid];head.removeChild(script);}catch(e){}};script.setAttribute(\"src\",url+\"?callback=\"+guid);head.appendChild(script);};var delegateConnectedCallback=function(ortc){if(ortc!=null&&ortc.onConnected!=null){startHeartBeatInterval(ortc);ortc.onConnected(ortc);}};var delegateDisconnectedCallback=function(ortc){if(ortc!=null&&ortc.onDisconnected!=null){ortc.onDisconnected(ortc);}};var delegateSubscribedCallback=function(ortc,channel){if(ortc!=null&&ortc.onSubscribed!=null&&channel!=null){ortc.onSubscribed(ortc,channel);}};var delegateUnsubscribedCallback=function(ortc,channel){if(ortc!=null&&ortc.onUnsubscribed!=null&&channel!=null){ortc.onUnsubscribed(ortc,channel);}};var delegateMessagesCallback=function(ortc,channel,filtered,message){if(ortc!=null&&subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed&&subscribedChannels[channel].onMessageCallback!=null){if(filtered==null){// regular subscription\n\tsubscribedChannels[channel].onMessageCallback(ortc,channel,message);}else{// filtered subscription\n\tsubscribedChannels[channel].onMessageCallback(ortc,channel,filtered,message);}}};var delegateExceptionCallback=function(ortc,event){if(ortc!=null&&ortc.onException!=null){ortc.onException(ortc,event);}};var delegateReconnectingCallback=function(ortc){if(ortc!=null&&ortc.onReconnecting!=null){ortc.onReconnecting(ortc);}};var delegateReconnectedCallback=function(ortc){if(ortc!=null&&ortc.onReconnected!=null){startHeartBeatInterval(ortc);ortc.onReconnected(ortc);}};}", "componentDidMount() {\n //setLocalNotification();\n }", "function AppMeasurement_Module_Media(s){var m=this;m.s=s;s=window;if(!s.s_c_in)s.s_c_il=[],s.s_c_in=0;m._il=s.s_c_il;m._in=s.s_c_in;m._il[m._in]=m;s.s_c_in++;m._c=\"s_m\";m.list=[];m.open=function(w,b,c,h){var d={},a=new Date,g=\"\",e;b||(b=-1);if(w&&c){if(!m.list)m.list={};m.list[w]&&m.close(w);if(h&&h.id)g=h.id;if(g)for(e in m.list)!Object.prototype[e]&&m.list[e]&&m.list[e].S==g&&m.close(m.list[e].name);d.name=w;d.length=b;d.u=0;d.c=0;d.playerName=m.playerName?m.playerName:c;d.S=g;d.L=0;d.f=0;d.timestamp=\r\n\t\tMath.floor(a.getTime()/1E3);d.j=0;d.r=d.timestamp;d.a=-1;d.B=\"\";d.k=-1;d.C=0;d.H={};d.F=0;d.m=0;d.e=\"\";d.A=0;d.K=0;d.z=0;d.D=0;d.l=!1;d.v=\"\";d.I=\"\";d.J=0;d.q=!1;d.G=\"\";d.complete=0;d.Q=0;d.o=0;d.p=0;m.list[w]=d}};m.openAd=function(w,b,c,h,d,a,g,e){var f={};m.open(w,b,c,e);if(f=m.list[w])f.l=!0,f.v=h,f.I=d,f.J=a,f.G=g};m.M=function(w){var b=m.list[w];m.list[w]=0;b&&b.monitor&&clearTimeout(b.monitor.R)};m.close=function(w){m.g(w,0,-1)};m.play=function(w,b,c,h){var d=m.g(w,1,b,c,h);if(d&&!d.monitor)d.monitor=\r\n\t\t{},d.monitor.update=function(){d.j==1&&m.g(d.name,3,-1);d.monitor.R=setTimeout(d.monitor.update,1E3)},d.monitor.update()};m.click=function(w,b){m.g(w,7,b)};m.complete=function(w,b){m.g(w,5,b)};m.stop=function(w,b){m.g(w,2,b)};m.track=function(w){m.g(w,4,-1)};m.P=function(w,b){var c=\"a.media.\",h=w.linkTrackVars,d=w.linkTrackEvents,a=\"m_i\",g,e=w.contextData,f;if(b.l){c+=\"ad.\";if(b.v)e[\"a.media.name\"]=b.v,e[c+\"pod\"]=b.I,e[c+\"podPosition\"]=b.J;if(!b.F)e[c+\"CPM\"]=b.G}if(b.q)e[c+\"clicked\"]=!0,b.q=!1;e[\"a.contentType\"]=\r\n\t\t\"video\"+(b.l?\"Ad\":\"\");e[\"a.media.channel\"]=m.channel;e[c+\"name\"]=b.name;e[c+\"playerName\"]=b.playerName;if(b.length>0)e[c+\"length\"]=b.length;e[c+\"timePlayed\"]=Math.floor(b.f);Math.floor(b.f)>0&&(e[c+\"timePlayed\"]=Math.floor(b.f));if(!b.F)e[c+\"view\"]=!0,a=\"m_s\",b.F=1;if(b.e){e[c+\"segmentNum\"]=b.m;e[c+\"segment\"]=b.e;if(b.A>0)e[c+\"segmentLength\"]=b.A;b.z&&b.f>0&&(e[c+\"segmentView\"]=!0)}if(!b.Q&&b.complete)e[c+\"complete\"]=!0,b.T=1;if(b.o>0)e[c+\"milestone\"]=b.o;if(b.p>0)e[c+\"offsetMilestone\"]=b.p;if(h)for(f in e)Object.prototype[f]||\r\n\t\t(h+=\",contextData.\"+f);g=e[\"a.contentType\"];w.pe=a;w.pev3=g;var s,n;if(m.contextDataMapping){if(!w.events2)w.events2=\"\";h&&(h+=\",events\");for(f in m.contextDataMapping)if(!Object.prototype[f]){a=f.length>c.length&&f.substring(0,c.length)==c?f.substring(c.length):\"\";g=m.contextDataMapping[f];if(typeof g==\"string\"){s=g.split(\",\");for(n=0;n<s.length;n++)g=s[n],f==\"a.contentType\"?(h&&(h+=\",\"+g),w[g]=e[f]):a==\"view\"||a==\"segmentView\"||a==\"clicked\"||a==\"complete\"||a==\"timePlayed\"||a==\"CPM\"?(d&&(d+=\",\"+\r\n\t\tg),a==\"timePlayed\"||a==\"CPM\"?e[f]&&(w.events2+=(w.events2?\",\":\"\")+g+\"=\"+e[f]):e[f]&&(w.events2+=(w.events2?\",\":\"\")+g)):a==\"segment\"&&e[f+\"Num\"]?(h&&(h+=\",\"+g),w[g]=e[f+\"Num\"]+\":\"+e[f]):(h&&(h+=\",\"+g),w[g]=e[f])}else if(a==\"milestones\"||a==\"offsetMilestones\")f=f.substring(0,f.length-1),e[f]&&m.contextDataMapping[f+\"s\"][e[f]]&&(d&&(d+=\",\"+m.contextDataMapping[f+\"s\"][e[f]]),w.events2+=(w.events2?\",\":\"\")+m.contextDataMapping[f+\"s\"][e[f]]);e[f]&&(e[f]=0);a==\"segment\"&&e[f+\"Num\"]&&(e[f+\"Num\"]=0)}}w.linkTrackVars=\r\n\t\th;w.linkTrackEvents=d};m.g=function(w,b,c,h,d){var a={},g=(new Date).getTime()/1E3,e,f,s=m.trackVars,n=m.trackEvents,o=m.trackSeconds,p=m.trackMilestones,q=m.trackOffsetMilestones,r=m.segmentByMilestones,t=m.segmentByOffsetMilestones,k,j,l=1,i={},u;if(!m.channel)m.channel=m.s.w.location.hostname;if(a=w&&m.list&&m.list[w]?m.list[w]:0){if(a.l)o=m.adTrackSeconds,p=m.adTrackMilestones,q=m.adTrackOffsetMilestones,r=m.adSegmentByMilestones,t=m.adSegmentByOffsetMilestones;c<0&&(c=a.j==1&&a.r>0?g-a.r+a.a:\r\n\t\ta.a);a.length>0&&(c=c<a.length?c:a.length);c<0&&(c=0);a.u=c;if(a.length>0)a.c=a.u/a.length*100,a.c=a.c>100?100:a.c;if(a.a<0)a.a=c;u=a.C;i.name=w;i.ad=a.l;i.length=a.length;i.openTime=new Date;i.openTime.setTime(a.timestamp*1E3);i.offset=a.u;i.percent=a.c;i.playerName=a.playerName;i.mediaEvent=a.k<0?\"OPEN\":b==1?\"PLAY\":b==2?\"STOP\":b==3?\"MONITOR\":b==4?\"TRACK\":b==5?\"COMPLETE\":b==7?\"CLICK\":\"CLOSE\";if(b>2||b!=a.j&&(b!=2||a.j==1)){if(!d)h=a.m,d=a.e;if(b){if(b==1)a.a=c;if((b<=3||b>=5)&&a.k>=0)if(l=!1,s=n=\r\n\t\t\"None\",a.k!=c){f=a.k;if(f>c)f=a.a,f>c&&(f=c);k=p?p.split(\",\"):0;if(a.length>0&&k&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f/a.length*100<e&&a.c>=e)l=!0,j=k.length,i.mediaEvent=\"MILESTONE\",a.o=i.milestone=e;if((k=q?q.split(\",\"):0)&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f<e&&c>=e)l=!0,j=k.length,i.mediaEvent=\"OFFSET_MILESTONE\",a.p=i.offsetMilestone=e}if(a.K||!d){if(r&&p&&a.length>0){if(k=p.split(\",\")){k.push(\"100\");for(j=f=0;j<k.length;j++)if(e=k[j]?parseFloat(\"\"+\r\n\t\tk[j]):0){if(a.c<e)h=j+1,d=\"M:\"+f+\"-\"+e,j=k.length;f=e}}}else if(t&&q&&(k=q.split(\",\"))){k.push(\"\"+(a.length>0?a.length:\"E\"));for(j=f=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)||k[j]==\"E\"){if(c<e||k[j]==\"E\")h=j+1,d=\"O:\"+f+\"-\"+e,j=k.length;f=e}}if(d)a.K=!0}if((d||a.e)&&d!=a.e){a.D=!0;if(!a.e)a.m=h,a.e=d;a.k>=0&&(l=!0)}if((b>=2||a.c>=100)&&a.a<c)a.L+=c-a.a,a.f+=c-a.a;if(b<=2||b==3&&!a.j)a.B+=(b==1||b==3?\"S\":\"E\")+Math.floor(c),a.j=b==3?1:b;if(!l&&a.k>=0&&b<=3&&(o=o?o:0)&&a.f>=o)l=!0,i.mediaEvent=\r\n\t\t\"SECONDS\";a.r=g;a.a=c}if(!b||b<=3&&a.c>=100)a.j!=2&&(a.B+=\"E\"+Math.floor(c)),b=0,s=n=\"None\",i.mediaEvent=\"CLOSE\";if(b==7)l=i.clicked=a.q=!0;if(b==5||m.completeByCloseOffset&&(!b||a.c>=100)&&a.length>0&&c>=a.length-m.completeCloseOffsetThreshold)l=i.complete=a.complete=!0;g=i.mediaEvent;g==\"MILESTONE\"?g+=\"_\"+i.milestone:g==\"OFFSET_MILESTONE\"&&(g+=\"_\"+i.offsetMilestone);a.H[g]?i.eventFirstTime=!1:(i.eventFirstTime=!0,a.H[g]=1);i.event=i.mediaEvent;i.timePlayed=a.L;i.segmentNum=a.m;i.segment=a.e;i.segmentLength=\r\n\t\ta.A;m.monitor&&b!=4&&m.monitor(m.s,i);b==0&&m.M(w);if(l&&a.C==u){w={};w.contextData={};w.linkTrackVars=s;w.linkTrackEvents=n;if(!w.linkTrackVars)w.linkTrackVars=\"\";if(!w.linkTrackEvents)w.linkTrackEvents=\"\";m.P(w,a);w.linkTrackVars||(w[\"!linkTrackVars\"]=1);w.linkTrackEvents||(w[\"!linkTrackEvents\"]=1);m.s.track(w);if(a.D)a.m=h,a.e=d,a.z=!0,a.D=!1;else if(a.f>0)a.z=!1;a.B=\"\";a.o=a.p=0;a.f-=Math.floor(a.f);a.k=c;a.C++}}}return a};m.O=function(w,b,c,h,d){var a=0;if(w&&(!m.autoTrackMediaLengthRequired||\r\n\t\tb&&b>0)){if(!m.list||!m.list[w]){if(c==1||c==3)m.open(w,b,\"HTML5 Video\",d),a=1}else a=1;a&&m.g(w,c,h,-1,0)}};m.attach=function(w){var b,c,h;if(w&&w.tagName&&w.tagName.toUpperCase()==\"VIDEO\"){if(!m.n)m.n=function(b,a,w){var c,f;if(m.autoTrack){c=b.currentSrc;(f=b.duration)||(f=-1);if(w<0)w=b.currentTime;m.O(c,f,a,w,b)}};b=function(){m.n(w,1,-1)};c=function(){m.n(w,1,-1)};m.i(w,\"play\",b);m.i(w,\"pause\",c);m.i(w,\"seeking\",c);m.i(w,\"seeked\",b);m.i(w,\"ended\",function(){m.n(w,0,-1)});m.i(w,\"timeupdate\",\r\n\t\tb);h=function(){!w.paused&&!w.ended&&!w.seeking&&m.n(w,3,-1);setTimeout(h,1E3)};h()}};m.i=function(m,b,c){m.attachEvent?m.attachEvent(\"on\"+b,c):m.addEventListener&&m.addEventListener(b,c,!1)};if(m.completeByCloseOffset==void 0)m.completeByCloseOffset=1;if(m.completeCloseOffsetThreshold==void 0)m.completeCloseOffsetThreshold=1;m.N=function(){var w,b;if(m.autoTrack&&(w=m.s.d.getElementsByTagName(\"VIDEO\")))for(b=0;b<w.length;b++)m.attach(w[b])};m.i(s,\"load\",m.N)}", "constructor(httpClient) {\n this.httpClient = httpClient;\n //public url_base = \"http://localhost:8080\";\n this.url_base = \"https://yaoyuan333.wm.r.appspot.com\";\n }", "function AppMeasurement_Module_Media(s){var m=this;m.s=s;s=window;if(!s.s_c_in)s.s_c_il=[],s.s_c_in=0;m._il=s.s_c_il;m._in=s.s_c_in;m._il[m._in]=m;s.s_c_in++;m._c=\"s_m\";m.list=[];m.open=function(w,b,c,h){var d={},a=new Date,g=\"\",e;b||(b=-1);if(w&&c){if(!m.list)m.list={};m.list[w]&&m.close(w);if(h&&h.id)g=h.id;if(g)for(e in m.list)!Object.prototype[e]&&m.list[e]&&m.list[e].S==g&&m.close(m.list[e].name);d.name=w;d.length=b;d.u=0;d.c=0;d.playerName=m.playerName?m.playerName:c;d.S=g;d.L=0;d.f=0;d.timestamp=\r\nMath.floor(a.getTime()/1E3);d.j=0;d.r=d.timestamp;d.a=-1;d.B=\"\";d.k=-1;d.C=0;d.H={};d.F=0;d.m=0;d.e=\"\";d.A=0;d.K=0;d.z=0;d.D=0;d.l=!1;d.v=\"\";d.I=\"\";d.J=0;d.q=!1;d.G=\"\";d.complete=0;d.Q=0;d.o=0;d.p=0;m.list[w]=d}};m.openAd=function(w,b,c,h,d,a,g,e){var f={};m.open(w,b,c,e);if(f=m.list[w])f.l=!0,f.v=h,f.I=d,f.J=a,f.G=g};m.M=function(w){var b=m.list[w];m.list[w]=0;b&&b.monitor&&clearTimeout(b.monitor.R)};m.close=function(w){m.g(w,0,-1)};m.play=function(w,b,c,h){var d=m.g(w,1,b,c,h);if(d&&!d.monitor)d.monitor=\r\n{},d.monitor.update=function(){d.j==1&&m.g(d.name,3,-1);d.monitor.R=setTimeout(d.monitor.update,1E3)},d.monitor.update()};m.click=function(w,b){m.g(w,7,b)};m.complete=function(w,b){m.g(w,5,b)};m.stop=function(w,b){m.g(w,2,b)};m.track=function(w){m.g(w,4,-1)};m.P=function(w,b){var c=\"a.media.\",h=w.linkTrackVars,d=w.linkTrackEvents,a=\"m_i\",g,e=w.contextData,f;if(b.l){c+=\"ad.\";if(b.v)e[\"a.media.name\"]=b.v,e[c+\"pod\"]=b.I,e[c+\"podPosition\"]=b.J;if(!b.F)e[c+\"CPM\"]=b.G}if(b.q)e[c+\"clicked\"]=!0,b.q=!1;e[\"a.contentType\"]=\r\n\"video\"+(b.l?\"Ad\":\"\");e[\"a.media.channel\"]=m.channel;e[c+\"name\"]=b.name;e[c+\"playerName\"]=b.playerName;if(b.length>0)e[c+\"length\"]=b.length;e[c+\"timePlayed\"]=Math.floor(b.f);Math.floor(b.f)>0&&(e[c+\"timePlayed\"]=Math.floor(b.f));if(!b.F)e[c+\"view\"]=!0,a=\"m_s\",b.F=1;if(b.e){e[c+\"segmentNum\"]=b.m;e[c+\"segment\"]=b.e;if(b.A>0)e[c+\"segmentLength\"]=b.A;b.z&&b.f>0&&(e[c+\"segmentView\"]=!0)}if(!b.Q&&b.complete)e[c+\"complete\"]=!0,b.T=1;if(b.o>0)e[c+\"milestone\"]=b.o;if(b.p>0)e[c+\"offsetMilestone\"]=b.p;if(h)for(f in e)Object.prototype[f]||\r\n(h+=\",contextData.\"+f);g=e[\"a.contentType\"];w.pe=a;w.pev3=g;var s,n;if(m.contextDataMapping){if(!w.events2)w.events2=\"\";h&&(h+=\",events\");for(f in m.contextDataMapping)if(!Object.prototype[f]){a=f.length>c.length&&f.substring(0,c.length)==c?f.substring(c.length):\"\";g=m.contextDataMapping[f];if(typeof g==\"string\"){s=g.split(\",\");for(n=0;n<s.length;n++)g=s[n],f==\"a.contentType\"?(h&&(h+=\",\"+g),w[g]=e[f]):a==\"view\"||a==\"segmentView\"||a==\"clicked\"||a==\"complete\"||a==\"timePlayed\"||a==\"CPM\"?(d&&(d+=\",\"+\r\ng),a==\"timePlayed\"||a==\"CPM\"?e[f]&&(w.events2+=(w.events2?\",\":\"\")+g+\"=\"+e[f]):e[f]&&(w.events2+=(w.events2?\",\":\"\")+g)):a==\"segment\"&&e[f+\"Num\"]?(h&&(h+=\",\"+g),w[g]=e[f+\"Num\"]+\":\"+e[f]):(h&&(h+=\",\"+g),w[g]=e[f])}else if(a==\"milestones\"||a==\"offsetMilestones\")f=f.substring(0,f.length-1),e[f]&&m.contextDataMapping[f+\"s\"][e[f]]&&(d&&(d+=\",\"+m.contextDataMapping[f+\"s\"][e[f]]),w.events2+=(w.events2?\",\":\"\")+m.contextDataMapping[f+\"s\"][e[f]]);e[f]&&(e[f]=0);a==\"segment\"&&e[f+\"Num\"]&&(e[f+\"Num\"]=0)}}w.linkTrackVars=\r\nh;w.linkTrackEvents=d};m.g=function(w,b,c,h,d){var a={},g=(new Date).getTime()/1E3,e,f,s=m.trackVars,n=m.trackEvents,o=m.trackSeconds,p=m.trackMilestones,q=m.trackOffsetMilestones,r=m.segmentByMilestones,t=m.segmentByOffsetMilestones,k,j,l=1,i={},u;if(!m.channel)m.channel=m.s.w.location.hostname;if(a=w&&m.list&&m.list[w]?m.list[w]:0){if(a.l)o=m.adTrackSeconds,p=m.adTrackMilestones,q=m.adTrackOffsetMilestones,r=m.adSegmentByMilestones,t=m.adSegmentByOffsetMilestones;c<0&&(c=a.j==1&&a.r>0?g-a.r+a.a:\r\na.a);a.length>0&&(c=c<a.length?c:a.length);c<0&&(c=0);a.u=c;if(a.length>0)a.c=a.u/a.length*100,a.c=a.c>100?100:a.c;if(a.a<0)a.a=c;u=a.C;i.name=w;i.ad=a.l;i.length=a.length;i.openTime=new Date;i.openTime.setTime(a.timestamp*1E3);i.offset=a.u;i.percent=a.c;i.playerName=a.playerName;i.mediaEvent=a.k<0?\"OPEN\":b==1?\"PLAY\":b==2?\"STOP\":b==3?\"MONITOR\":b==4?\"TRACK\":b==5?\"COMPLETE\":b==7?\"CLICK\":\"CLOSE\";if(b>2||b!=a.j&&(b!=2||a.j==1)){if(!d)h=a.m,d=a.e;if(b){if(b==1)a.a=c;if((b<=3||b>=5)&&a.k>=0)if(l=!1,s=n=\r\n\"None\",a.k!=c){f=a.k;if(f>c)f=a.a,f>c&&(f=c);k=p?p.split(\",\"):0;if(a.length>0&&k&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f/a.length*100<e&&a.c>=e)l=!0,j=k.length,i.mediaEvent=\"MILESTONE\",a.o=i.milestone=e;if((k=q?q.split(\",\"):0)&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f<e&&c>=e)l=!0,j=k.length,i.mediaEvent=\"OFFSET_MILESTONE\",a.p=i.offsetMilestone=e}if(a.K||!d){if(r&&p&&a.length>0){if(k=p.split(\",\")){k.push(\"100\");for(j=f=0;j<k.length;j++)if(e=k[j]?parseFloat(\"\"+\r\nk[j]):0){if(a.c<e)h=j+1,d=\"M:\"+f+\"-\"+e,j=k.length;f=e}}}else if(t&&q&&(k=q.split(\",\"))){k.push(\"\"+(a.length>0?a.length:\"E\"));for(j=f=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)||k[j]==\"E\"){if(c<e||k[j]==\"E\")h=j+1,d=\"O:\"+f+\"-\"+e,j=k.length;f=e}}if(d)a.K=!0}if((d||a.e)&&d!=a.e){a.D=!0;if(!a.e)a.m=h,a.e=d;a.k>=0&&(l=!0)}if((b>=2||a.c>=100)&&a.a<c)a.L+=c-a.a,a.f+=c-a.a;if(b<=2||b==3&&!a.j)a.B+=(b==1||b==3?\"S\":\"E\")+Math.floor(c),a.j=b==3?1:b;if(!l&&a.k>=0&&b<=3&&(o=o?o:0)&&a.f>=o)l=!0,i.mediaEvent=\r\n\"SECONDS\";a.r=g;a.a=c}if(!b||b<=3&&a.c>=100)a.j!=2&&(a.B+=\"E\"+Math.floor(c)),b=0,s=n=\"None\",i.mediaEvent=\"CLOSE\";if(b==7)l=i.clicked=a.q=!0;if(b==5||m.completeByCloseOffset&&(!b||a.c>=100)&&a.length>0&&c>=a.length-m.completeCloseOffsetThreshold)l=i.complete=a.complete=!0;g=i.mediaEvent;g==\"MILESTONE\"?g+=\"_\"+i.milestone:g==\"OFFSET_MILESTONE\"&&(g+=\"_\"+i.offsetMilestone);a.H[g]?i.eventFirstTime=!1:(i.eventFirstTime=!0,a.H[g]=1);i.event=i.mediaEvent;i.timePlayed=a.L;i.segmentNum=a.m;i.segment=a.e;i.segmentLength=\r\na.A;m.monitor&&b!=4&&m.monitor(m.s,i);b==0&&m.M(w);if(l&&a.C==u){w={};w.contextData={};w.linkTrackVars=s;w.linkTrackEvents=n;if(!w.linkTrackVars)w.linkTrackVars=\"\";if(!w.linkTrackEvents)w.linkTrackEvents=\"\";m.P(w,a);w.linkTrackVars||(w[\"!linkTrackVars\"]=1);w.linkTrackEvents||(w[\"!linkTrackEvents\"]=1);m.s.track(w);if(a.D)a.m=h,a.e=d,a.z=!0,a.D=!1;else if(a.f>0)a.z=!1;a.B=\"\";a.o=a.p=0;a.f-=Math.floor(a.f);a.k=c;a.C++}}}return a};m.O=function(w,b,c,h,d){var a=0;if(w&&(!m.autoTrackMediaLengthRequired||\r\nb&&b>0)){if(!m.list||!m.list[w]){if(c==1||c==3)m.open(w,b,\"HTML5 Video\",d),a=1}else a=1;a&&m.g(w,c,h,-1,0)}};m.attach=function(w){var b,c,h;if(w&&w.tagName&&w.tagName.toUpperCase()==\"VIDEO\"){if(!m.n)m.n=function(b,a,w){var c,f;if(m.autoTrack){c=b.currentSrc;(f=b.duration)||(f=-1);if(w<0)w=b.currentTime;m.O(c,f,a,w,b)}};b=function(){m.n(w,1,-1)};c=function(){m.n(w,1,-1)};m.i(w,\"play\",b);m.i(w,\"pause\",c);m.i(w,\"seeking\",c);m.i(w,\"seeked\",b);m.i(w,\"ended\",function(){m.n(w,0,-1)});m.i(w,\"timeupdate\",\r\nb);h=function(){!w.paused&&!w.ended&&!w.seeking&&m.n(w,3,-1);setTimeout(h,1E3)};h()}};m.i=function(m,b,c){m.attachEvent?m.attachEvent(\"on\"+b,c):m.addEventListener&&m.addEventListener(b,c,!1)};if(m.completeByCloseOffset==void 0)m.completeByCloseOffset=1;if(m.completeCloseOffsetThreshold==void 0)m.completeCloseOffsetThreshold=1;m.N=function(){var w,b;if(m.autoTrack&&(w=m.s.d.getElementsByTagName(\"VIDEO\")))for(b=0;b<w.length;b++)m.attach(w[b])};m.i(s,\"load\",m.N)}", "create () {\r\n // Send a create-job message to the native-app.\r\n openPort();\r\n return browser.storage.local.get({ props: {} }).then(result => {\r\n // Get a cookie jar for the job.\r\n return getCookieJarForVideo(this.props.videoUrl).then(cookieJar => {\r\n state.port.postMessage({\r\n topic: 'create-job',\r\n data: {\r\n jobId: this.id,\r\n // Merge the default props and the job props.\r\n props: Object.assign({ cookieJar }, result.props, this.props)\r\n }\r\n });\r\n \r\n // Flag this job as active.\r\n this.state = 'active';\r\n \r\n // Make the icon blue because a job is running.\r\n browser.browserAction.setIcon({\r\n path: 'icons/film-blue.svg'\r\n });\r\n });\r\n });\r\n }", "supportsPlatform() {\n return true;\n }", "function FileSystemService($http, $q, $log) {\n var _directory = LocalFileSystem.PERSISTENT;\n var _fs = null;\n var _that = this;\n\n this.isInitalized = false;\n\n function errorHandler(e) {\n var msg = '';\n\n switch (e.code) {\n case FileError.QUOTA_EXCEEDED_ERR:\n msg = 'QUOTA_EXCEEDED_ERR';\n break;\n case FileError.NOT_FOUND_ERR:\n msg = 'NOT_FOUND_ERR';\n break;\n case FileError.SECURITY_ERR:\n msg = 'SECURITY_ERR';\n break;\n case FileError.INVALID_MODIFICATION_ERR:\n msg = 'INVALID_MODIFICATION_ERR';\n break;\n case FileError.INVALID_STATE_ERR:\n msg = 'INVALID_STATE_ERR';\n break;\n default:\n msg = 'Unknown Error';\n break;\n };\n\n $log.error('FileSystemService: ' + msg);\n }\n\n // startup\n window.requestFileSystem(_directory, 0, function(fs){\n _fs = fs;\n _that.isInitalized = true;\n }, errorHandler);\n\n\n /**\n * Checks if file is in persistent storage\n */\n this.fileExists = function(filename) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n //var uri = _directory + \"/\" + filename;\n //return $http.get(uri);\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {}, function(fileEntry) {\n // Get a File object representing the file,\n // then use FileReader to read its contents.\n fileEntry.file(function(file) {\n var reader = new FileReader();\n\n reader.onloadend = function(e) {\n deferred.resolve(e.target.result);\n };\n\n reader.readAsDataURL(file);\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n\n /**\n * Get File from perstistent storage\n */\n this.getFile = function(filename) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n //var uri = _directory + \"/\" + filename;\n //return $http.get(uri);\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {}, function(fileEntry) {\n // Get a File object representing the file,\n // then use FileReader to read its contents.\n fileEntry.file(function(file) {\n var reader = new FileReader();\n\n reader.onloadend = function(e) {\n deferred.resolve(e.target.result);\n };\n\n reader.readAsDataURL(file);\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n\n /**\n * Save data into file (and create that if necessary).\n */\n this.saveFile = function(filename, data) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {create: true}, function(fileEntry) {\n // Create a FileWriter object for our FileEntry (log.txt).\n fileEntry.createWriter(function(fileWriter) {\n\n fileWriter.onwriteend = function(e) {\n $log.log('Write completed.');\n deferred.resolve();\n };\n\n fileWriter.onerror = function(e) {\n deferred.reject(e);\n $log.error('FileSystemService: write failed, ' + e.toString());\n };\n\n // Create a new Blob and write it to log.txt.\n var blob = new Blob([data], {type: 'text/plain'});\n\n fileWriter.write(blob);\n\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n}", "static initialize(app, changeLogService, deviceService, deviceFileService, deviceFileUploadService, file, httpService, localDBManagementService, localDbService, networkService, securityService) {\n if (this.initialized) {\n return;\n }\n deviceService.addStartUpService({\n serviceName: 'OfflineStartupService',\n start: () => {\n if (window['SQLitePlugin']) {\n localDBManagementService.setLogSQl((sessionStorage.getItem('wm.logSql') === 'true') || (sessionStorage.getItem('debugMode') === 'true'));\n window.logSql = (flag = true) => {\n localDBManagementService.setLogSQl(flag);\n sessionStorage.setItem('wm.logSql', flag ? 'true' : 'false');\n };\n window.executeLocalSql = (dbName, query, params) => {\n localDBManagementService.executeSQLQuery(dbName, query, params, true);\n };\n return localDBManagementService.loadDatabases().then(() => {\n changeLogService.addWorker(new IdResolver(localDBManagementService));\n changeLogService.addWorker(new ErrorBlocker(localDBManagementService));\n changeLogService.addWorker(new FileHandler());\n changeLogService.addWorker(new MultiPartParamTransformer(deviceFileService, localDBManagementService));\n new LiveVariableOfflineBehaviour(changeLogService, httpService, localDBManagementService, networkService, localDbService).add();\n new FileUploadOfflineBehaviour(changeLogService, deviceFileService, deviceFileUploadService, file, networkService, deviceFileService.getUploadDirectory()).add();\n new NamedQueryExecutionOfflineBehaviour(changeLogService, httpService, localDBManagementService, networkService).add();\n localDBManagementService.registerCallback(new UploadedFilesImportAndExportService(changeLogService, deviceFileService, localDBManagementService, file));\n changeLogService.addWorker({\n onAddCall: () => {\n if (!networkService.isConnected()) {\n networkService.disableAutoConnect();\n }\n },\n postFlush: stats => {\n if (stats.totalTaskCount > 0) {\n localDBManagementService.close()\n .catch(noop)\n .then(() => {\n location.assign(window.location.origin + window.location.pathname);\n });\n }\n }\n });\n });\n }\n return Promise.resolve();\n }\n });\n new SecurityOfflineBehaviour(app, file, deviceService, networkService, securityService).add();\n }", "constructor(){\n\t\t//console.log('API START');\n\t}", "get deviceServiceUUID() { return this._deviceServiceUUID ? this._deviceServiceUUID : 'FFE0'; }", "constructor () {\r\n\t\t\r\n\t}", "_sdkCompatibility() {\n // WebSocket\n // http://caniuse.com/#feat=websockets\n var canCreateWebSocket = 'WebSocket' in window;\n console.log('Native WebSocket capability: ' +\n canCreateWebSocket);\n\n if (!canCreateWebSocket) {\n throw new Error('No WebSocket capabilities');\n }\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x330b4067;\n this.SUBCLASS_OF_ID = 0xd3262a4a;\n\n this.phonecallsEnabled = args.phonecallsEnabled || null;\n this.defaultP2pContacts = args.defaultP2pContacts || null;\n this.preloadFeaturedStickers = args.preloadFeaturedStickers || null;\n this.ignorePhoneEntities = args.ignorePhoneEntities || null;\n this.revokePmInbox = args.revokePmInbox || null;\n this.blockedMode = args.blockedMode || null;\n this.pfsEnabled = args.pfsEnabled || null;\n this.date = args.date;\n this.expires = args.expires;\n this.testMode = args.testMode;\n this.thisDc = args.thisDc;\n this.dcOptions = args.dcOptions;\n this.dcTxtDomainName = args.dcTxtDomainName;\n this.chatSizeMax = args.chatSizeMax;\n this.megagroupSizeMax = args.megagroupSizeMax;\n this.forwardedCountMax = args.forwardedCountMax;\n this.onlineUpdatePeriodMs = args.onlineUpdatePeriodMs;\n this.offlineBlurTimeoutMs = args.offlineBlurTimeoutMs;\n this.offlineIdleTimeoutMs = args.offlineIdleTimeoutMs;\n this.onlineCloudTimeoutMs = args.onlineCloudTimeoutMs;\n this.notifyCloudDelayMs = args.notifyCloudDelayMs;\n this.notifyDefaultDelayMs = args.notifyDefaultDelayMs;\n this.pushChatPeriodMs = args.pushChatPeriodMs;\n this.pushChatLimit = args.pushChatLimit;\n this.savedGifsLimit = args.savedGifsLimit;\n this.editTimeLimit = args.editTimeLimit;\n this.revokeTimeLimit = args.revokeTimeLimit;\n this.revokePmTimeLimit = args.revokePmTimeLimit;\n this.ratingEDecay = args.ratingEDecay;\n this.stickersRecentLimit = args.stickersRecentLimit;\n this.stickersFavedLimit = args.stickersFavedLimit;\n this.channelsReadMediaPeriod = args.channelsReadMediaPeriod;\n this.tmpSessions = args.tmpSessions || null;\n this.pinnedDialogsCountMax = args.pinnedDialogsCountMax;\n this.pinnedInfolderCountMax = args.pinnedInfolderCountMax;\n this.callReceiveTimeoutMs = args.callReceiveTimeoutMs;\n this.callRingTimeoutMs = args.callRingTimeoutMs;\n this.callConnectTimeoutMs = args.callConnectTimeoutMs;\n this.callPacketTimeoutMs = args.callPacketTimeoutMs;\n this.meUrlPrefix = args.meUrlPrefix;\n this.autoupdateUrlPrefix = args.autoupdateUrlPrefix || null;\n this.gifSearchUsername = args.gifSearchUsername || null;\n this.venueSearchUsername = args.venueSearchUsername || null;\n this.imgSearchUsername = args.imgSearchUsername || null;\n this.staticMapsProvider = args.staticMapsProvider || null;\n this.captionLengthMax = args.captionLengthMax;\n this.messageLengthMax = args.messageLengthMax;\n this.webfileDcId = args.webfileDcId;\n this.suggestedLangCode = args.suggestedLangCode || null;\n this.langPackVersion = args.langPackVersion || null;\n this.baseLangPackVersion = args.baseLangPackVersion || null;\n }", "static _getName() {\n return 'ContentPlayback';\n }", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "start(callback){\n \n }", "onStartHeaders() {}", "async componentWillMount() {\n var _this = this\n _this.setUpUserDataFromFB()\n\n //ASK FOR CAMERA ONLT IF IS PREVIEW TRUE AND SHOWBARCODE TRUE\n if (Config.isPreview && Config.showBCScanner) {\n const { status } = await Permissions.askAsync(Permissions.CAMERA);\n this.setState({ hasCameraPermission: status === 'granted' });\n }\n\n\n\n AppEventEmitter.addListener('user.state.changes', this.alterUserState);\n if (Config.isTesterApp) {\n this.listenForUserAuth();\n } else if (Config.isPreview && !Config.isTesterApp) {\n //Load list of apps\n _this.retreiveAppDemos(\"apps\");\n }\n\n if (!Config.isPreview && !Config.isTesterApp) {\n\n //Load the data automatically, this is normal app and refister for Push notification\n this.registerForPushNotificationsAsync();\n Notifications.addListener(this._handleNotification);\n this.retreiveMeta();\n }\n\n\n await Font.loadAsync({\n //\"Material Icons\": require(\"@expo/vector-icons/fonts/MaterialIcons.ttf\"),\n //\"Ionicons\": require(\"@expo/vector-icons/fonts/Ionicons.ttf\"),\n // \"Feather\": require(\"@expo/vector-icons/fonts/Feather.ttf\"),\n 'open-sans': require('./assets/fonts/OpenSans-Regular.ttf'),\n 'lato-light': require('./assets/fonts/Lato-Light.ttf'),\n 'lato-regular': require('./assets/fonts/Lato-Regular.ttf'),\n 'lato-bold': require('./assets/fonts/Lato-Bold.ttf'),\n 'lato-black': require('./assets/fonts/Lato-Black.ttf'),\n 'roboto-medium': require('./assets/fonts/Roboto-Medium.ttf'),\n 'roboto-bold': require('./assets/fonts/Roboto-Bold.ttf'),\n 'roboto-light': require('./assets/fonts/Roboto-Light.ttf'),\n 'roboto-thin': require('./assets/fonts/Roboto-Thin.ttf'),\n\n });\n\n this.setState({ isReady: true, fontLoaded: true });\n }", "function writeHeader() {\n seekHead = createSeekHead();\n \n let\n ebmlHeader = {\n \"id\": 0x1a45dfa3, // EBML\n \"data\": [\n {\n \"id\": 0x4286, // EBMLVersion\n \"data\": 1\n },\n {\n \"id\": 0x42f7, // EBMLReadVersion\n \"data\": 1\n },\n {\n \"id\": 0x42f2, // EBMLMaxIDLength\n \"data\": 4\n },\n {\n \"id\": 0x42f3, // EBMLMaxSizeLength\n \"data\": 8\n },\n {\n \"id\": 0x4282, // DocType\n \"data\": \"webm\"\n },\n {\n \"id\": 0x4287, // DocTypeVersion\n \"data\": 2\n },\n {\n \"id\": 0x4285, // DocTypeReadVersion\n \"data\": 2\n }\n ]\n },\n \n segmentInfo = {\n \"id\": 0x1549a966, // Info\n \"data\": [\n {\n \"id\": 0x2ad7b1, // TimecodeScale\n \"data\": 1e6 // Times will be in miliseconds (1e6 nanoseconds per step = 1ms)\n },\n {\n \"id\": 0x4d80, // MuxingApp\n \"data\": \"webm-writer-js\",\n },\n {\n \"id\": 0x5741, // WritingApp\n \"data\": \"webm-writer-js\"\n },\n segmentDuration // To be filled in later\n ]\n },\n \n videoProperties = [\n {\n \"id\": 0xb0, // PixelWidth\n \"data\": videoWidth\n },\n {\n \"id\": 0xba, // PixelHeight\n \"data\": videoHeight\n }\n ];\n \n if (options.transparent) {\n videoProperties.push(\n {\n \"id\": 0x53C0, // AlphaMode\n \"data\": 1\n }\n );\n }\n \n let\n tracks = {\n \"id\": 0x1654ae6b, // Tracks\n \"data\": [\n {\n \"id\": 0xae, // TrackEntry\n \"data\": [\n {\n \"id\": 0xd7, // TrackNumber\n \"data\": DEFAULT_TRACK_NUMBER\n },\n {\n \"id\": 0x73c5, // TrackUID\n \"data\": DEFAULT_TRACK_NUMBER\n },\n {\n \"id\": 0x9c, // FlagLacing\n \"data\": 0\n },\n {\n \"id\": 0x22b59c, // Language\n \"data\": \"und\"\n },\n {\n \"id\": 0x86, // CodecID\n \"data\": \"V_VP8\"\n },\n {\n \"id\": 0x258688, // CodecName\n \"data\": \"VP8\"\n },\n {\n \"id\": 0x83, // TrackType\n \"data\": 1\n },\n {\n \"id\": 0xe0, // Video\n \"data\": videoProperties\n }\n ]\n }\n ]\n };\n \n ebmlSegment = {\n \"id\": 0x18538067, // Segment\n \"size\": -1, // Unbounded size\n \"data\": [\n seekHead,\n segmentInfo,\n tracks,\n ]\n };\n \n let\n bufferStream = new ArrayBufferDataStream(256);\n \n writeEBML(bufferStream, blobBuffer.pos, [ebmlHeader, ebmlSegment]);\n blobBuffer.write(bufferStream.getAsDataArray());\n \n // Now we know where these top-level elements lie in the file:\n seekPoints.SegmentInfo.positionEBML.data = fileOffsetToSegmentRelative(segmentInfo.offset);\n seekPoints.Tracks.positionEBML.data = fileOffsetToSegmentRelative(tracks.offset);\n \n\t writtenHeader = true;\n }", "function AppMeasurement(){var s=this;s.version=\"1.0.3\";var w=window;if(!w.s_c_in)w.s_c_il=[],w.s_c_in=0;s._il=w.s_c_il;s._in=w.s_c_in;s._il[s._in]=s;w.s_c_in++;s._c=\"s_c\";var n=w,g,k;try{g=n.parent;for(k=n.location;g&&g.location&&k&&\"\"+g.location!=\"\"+k&&n.location&&\"\"+g.location!=\"\"+n.location&&g.location.host==k.host;)n=g,g=n.parent}catch(o){}s.za=function(s){try{console.log(s)}catch(a){}};s.ba=function(s){return\"\"+parseInt(s)==\"\"+s};s.replace=function(s,a,c){if(!s||s.indexOf(a)<0)return s;return s.split(a).join(c)};\r\ns.escape=function(b){var a,c;if(!b)return b;b=encodeURIComponent(b);for(a=0;a<7;a++)c=\"+~!*()'\".substring(a,a+1),b.indexOf(c)>=0&&(b=s.replace(b,c,\"%\"+c.charCodeAt(0).toString(16).toUpperCase()));return b};s.unescape=function(b){if(!b)return b;b=b.indexOf(\"+\")>=0?s.replace(b,\"+\",\" \"):b;try{return decodeURIComponent(b)}catch(a){}return unescape(b)};s.pa=function(){var b=w.location.hostname,a=s.fpCookieDomainPeriods,c;if(!a)a=s.cookieDomainPeriods;if(b&&!s.U&&!/^[0-9.]+$/.test(b)&&(a=a?parseInt(a):\r\n2,a=a>2?a:2,c=b.lastIndexOf(\".\"),c>=0)){for(;c>=0&&a>1;)c=b.lastIndexOf(\".\",c-1),a--;s.U=c>0?b.substring(c):b}return s.U};s.c_r=s.cookieRead=function(b){b=s.escape(b);var a=\" \"+s.d.cookie,c=a.indexOf(\" \"+b+\"=\"),e=c<0?c:a.indexOf(\";\",c);b=c<0?\"\":s.unescape(a.substring(c+2+b.length,e<0?a.length:e));return b!=\"[[B]]\"?b:\"\"};s.c_w=s.cookieWrite=function(b,a,c){var e=s.pa(),d=s.cookieLifetime,f;a=\"\"+a;d=d?(\"\"+d).toUpperCase():\"\";c&&d!=\"SESSION\"&&d!=\"NONE\"&&((f=a!=\"\"?parseInt(d?d:0):-60)?(c=new Date,c.setTime(c.getTime()+\r\nf*1E3)):c==1&&(c=new Date,f=c.getYear(),c.setYear(f+5+(f<1900?1900:0))));if(b&&d!=\"NONE\")return s.d.cookie=b+\"=\"+s.escape(a!=\"\"?a:\"[[B]]\")+\"; path=/;\"+(c&&d!=\"SESSION\"?\" expires=\"+c.toGMTString()+\";\":\"\")+(e?\" domain=\"+e+\";\":\"\"),s.cookieRead(b)==a;return 0};s.v=[];s.V=function(b,a){if(s.W)return 0;if(!s.maxDelay)s.maxDelay=250;var c=0,e=(new Date).getTime()+s.maxDelay,d=s.d.Ma,f=[\"webkitvisibilitychange\",\"visibilitychange\"];if(!d)d=s.d.Na;if(d&&d==\"prerender\"){if(!s.G){s.G=1;for(c=0;c<f.length;c++)s.d.addEventListener(f[c],\r\nfunction(){var b=s.d.Ma;if(!b)b=s.d.Na;if(b==\"visible\")s.G=0,s.delayReady()})}c=1;e=0}else s.u(\"_d\")&&(c=1);c&&(s.v.push({m:b,a:a,t:e}),s.G||setTimeout(s.delayReady,s.maxDelay));return c};s.delayReady=function(){var b=(new Date).getTime(),a=0,c;for(s.u(\"_d\")&&(a=1);s.v.length>0;){c=s.v.shift();if(a&&!c.t&&c.t>b){s.v.unshift(c);setTimeout(s.delayReady,parseInt(s.maxDelay/2));break}s.W=1;s[c.m].apply(s,c.a);s.W=0}};s.setAccount=s.sa=function(b){var a,c;if(!s.V(\"setAccount\",arguments))if(s.account=b,\r\ns.allAccounts){a=s.allAccounts.concat(b.split(\",\"));s.allAccounts=[];a.sort();for(c=0;c<a.length;c++)(c==0||a[c-1]!=a[c])&&s.allAccounts.push(a[c])}else s.allAccounts=b.split(\",\")};s.P=function(b,a,c,e,d){var f=\"\",i,j,w,q,g=0;b==\"contextData\"&&(b=\"c\");if(a){for(i in a)if(!Object.prototype[i]&&(!d||i.substring(0,d.length)==d)&&a[i]&&(!c||c.indexOf(\",\"+(e?e+\".\":\"\")+i+\",\")>=0)){w=!1;if(g)for(j=0;j<g.length;j++)i.substring(0,g[j].length)==g[j]&&(w=!0);if(!w&&(f==\"\"&&(f+=\"&\"+b+\".\"),j=a[i],d&&(i=i.substring(d.length)),\r\ni.length>0))if(w=i.indexOf(\".\"),w>0)j=i.substring(0,w),w=(d?d:\"\")+j+\".\",g||(g=[]),g.push(w),f+=s.P(j,a,c,e,w);else if(typeof j==\"boolean\"&&(j=j?\"true\":\"false\"),j){if(e==\"retrieveLightData\"&&d.indexOf(\".contextData.\")<0)switch(w=i.substring(0,4),q=i.substring(4),i){case \"transactionID\":i=\"xact\";break;case \"channel\":i=\"ch\";break;case \"campaign\":i=\"v0\";break;default:s.ba(q)&&(w==\"prop\"?i=\"c\"+q:w==\"eVar\"?i=\"v\"+q:w==\"list\"?i=\"l\"+q:w==\"hier\"&&(i=\"h\"+q,j=j.substring(0,255)))}f+=\"&\"+s.escape(i)+\"=\"+s.escape(j)}}f!=\r\n\"\"&&(f+=\"&.\"+b)}return f};s.ra=function(){var b=\"\",a,c,e,d,f,i,j,w,g=\"\",n=\"\",k=c=\"\";if(s.lightProfileID)a=s.J,(g=s.lightTrackVars)&&(g=\",\"+g+\",\"+s.ea.join(\",\")+\",\");else{a=s.e;if(s.pe||s.linkType)if(g=s.linkTrackVars,n=s.linkTrackEvents,s.pe&&(c=s.pe.substring(0,1).toUpperCase()+s.pe.substring(1),s[c]))g=s[c].Va,n=s[c].Ua;g&&(g=\",\"+g+\",\"+s.C.join(\",\")+\",\");n&&(n=\",\"+n+\",\",g&&(g+=\",events,\"));s.events2&&(k+=(k!=\"\"?\",\":\"\")+s.events2)}for(c=0;c<a.length;c++){d=a[c];f=s[d];e=d.substring(0,4);i=d.substring(4);\r\n!f&&d==\"events\"&&k&&(f=k,k=\"\");if(f&&(!g||g.indexOf(\",\"+d+\",\")>=0)){switch(d){case \"timestamp\":d=\"ts\";break;case \"dynamicVariablePrefix\":d=\"D\";break;case \"visitorID\":d=\"vid\";break;case \"pageURL\":d=\"g\";if(f.length>255)s.pageURLRest=f.substring(255),f=f.substring(0,255);break;case \"pageURLRest\":d=\"-g\";break;case \"referrer\":d=\"r\";break;case \"vmk\":case \"visitorMigrationKey\":d=\"vmt\";break;case \"visitorMigrationServer\":d=\"vmf\";s.ssl&&s.visitorMigrationServerSecure&&(f=\"\");break;case \"visitorMigrationServerSecure\":d=\r\n\"vmf\";!s.ssl&&s.visitorMigrationServer&&(f=\"\");break;case \"charSet\":d=\"ce\";break;case \"visitorNamespace\":d=\"ns\";break;case \"cookieDomainPeriods\":d=\"cdp\";break;case \"cookieLifetime\":d=\"cl\";break;case \"variableProvider\":d=\"vvp\";break;case \"currencyCode\":d=\"cc\";break;case \"channel\":d=\"ch\";break;case \"transactionID\":d=\"xact\";break;case \"campaign\":d=\"v0\";break;case \"resolution\":d=\"s\";break;case \"colorDepth\":d=\"c\";break;case \"javascriptVersion\":d=\"j\";break;case \"javaEnabled\":d=\"v\";break;case \"cookiesEnabled\":d=\r\n\"k\";break;case \"browserWidth\":d=\"bw\";break;case \"browserHeight\":d=\"bh\";break;case \"connectionType\":d=\"ct\";break;case \"homepage\":d=\"hp\";break;case \"plugins\":d=\"p\";break;case \"events\":k&&(f+=(f!=\"\"?\",\":\"\")+k);if(n){i=f.split(\",\");f=\"\";for(e=0;e<i.length;e++)j=i[e],w=j.indexOf(\"=\"),w>=0&&(j=j.substring(0,w)),w=j.indexOf(\":\"),w>=0&&(j=j.substring(0,w)),n.indexOf(\",\"+j+\",\")>=0&&(f+=(f?\",\":\"\")+i[e])}break;case \"events2\":f=\"\";break;case \"contextData\":b+=s.P(\"c\",s[d],g,d);f=\"\";break;case \"lightProfileID\":d=\r\n\"mtp\";break;case \"lightStoreForSeconds\":d=\"mtss\";s.lightProfileID||(f=\"\");break;case \"lightIncrementBy\":d=\"mti\";s.lightProfileID||(f=\"\");break;case \"retrieveLightProfiles\":d=\"mtsr\";break;case \"deleteLightProfiles\":d=\"mtsd\";break;case \"retrieveLightData\":s.retrieveLightProfiles&&(b+=s.P(\"mts\",s[d],g,d));f=\"\";break;default:s.ba(i)&&(e==\"prop\"?d=\"c\"+i:e==\"eVar\"?d=\"v\"+i:e==\"list\"?d=\"l\"+i:e==\"hier\"&&(d=\"h\"+i,f=f.substring(0,255)))}f&&(b+=\"&\"+d+\"=\"+(d.substring(0,3)!=\"pev\"?s.escape(f):f))}d==\"pev3\"&&s.g&&\r\n(b+=s.g)}return b};s.p=function(s){var a=s.tagName;if(\"\"+s.Ta!=\"undefined\"||\"\"+s.Ea!=\"undefined\"&&(\"\"+s.Ea).toUpperCase()!=\"HTML\")return\"\";a=a&&a.toUpperCase?a.toUpperCase():\"\";a==\"SHAPE\"&&(a=\"\");a&&((a==\"INPUT\"||a==\"BUTTON\")&&s.type&&s.type.toUpperCase?a=s.type.toUpperCase():!a&&s.href&&(a=\"A\"));return a};s.Y=function(s){var a=s.href?s.href:\"\",c,e,d;c=a.indexOf(\":\");e=a.indexOf(\"?\");d=a.indexOf(\"/\");if(a&&(c<0||e>=0&&c>e||d>=0&&c>d))e=s.protocol&&s.protocol.length>1?s.protocol:l.protocol?l.protocol:\r\n\"\",c=l.pathname.lastIndexOf(\"/\"),a=(e?e+\"//\":\"\")+(s.host?s.host:l.host?l.host:\"\")+(h.substring(0,1)!=\"/\"?l.pathname.substring(0,c<0?0:c)+\"/\":\"\")+a;return a};s.z=function(b){var a=s.p(b),c,e,d=\"\",f=0;if(a){c=b.protocol;e=b.onclick;if(b.href&&(a==\"A\"||a==\"AREA\")&&(!e||!c||c.toLowerCase().indexOf(\"javascript\")<0))d=s.Y(b);else if(e)d=s.replace(s.replace(s.replace(s.replace(\"\"+e,\"\\r\",\"\"),\"\\n\",\"\"),\"\\t\",\"\"),\" \",\"\"),f=2;else if(a==\"INPUT\"||a==\"SUBMIT\"){if(b.value)d=b.value;else if(b.innerText)d=b.innerText;\r\nelse if(b.textContent)d=b.textContent;f=3}else if(b.src&&a==\"IMAGE\")d=b.src;if(d)return{id:d.substring(0,100),type:f}}return 0};s.Qa=function(b){for(var a=s.p(b),c=s.z(b);b&&!c&&a!=\"BODY\";)if(b=b.parentElement?b.parentElement:b.parentNode)a=s.p(b),c=s.z(b);if(!c||a==\"BODY\")b=0;if(b&&(a=b.onclick?\"\"+b.onclick:\"\",a.indexOf(\".tl(\")>=0||a.indexOf(\".trackLink(\")>=0))b=0;return b};s.Ca=function(){var b,a,c=s.linkObject,e=s.linkType,d=s.linkURL,f,i;s.K=1;if(!c)s.K=0,c=s.j;if(c){b=s.p(c);for(a=s.z(c);c&&\r\n!a&&b!=\"BODY\";)if(c=c.parentElement?c.parentElement:c.parentNode)b=s.p(c),a=s.z(c);if(!a||b==\"BODY\")c=0;if(c){var j=c.onclick?\"\"+c.onclick:\"\";if(j.indexOf(\".tl(\")>=0||j.indexOf(\".trackLink(\")>=0)c=0}}else s.K=1;!d&&c&&(d=s.Y(c));d&&!s.linkLeaveQueryString&&(f=d.indexOf(\"?\"),f>=0&&(d=d.substring(0,f)));if(!e&&d){var g=0,n=0,k;if(s.trackDownloadLinks&&s.linkDownloadFileTypes){j=d.toLowerCase();f=j.indexOf(\"?\");i=j.indexOf(\"#\");f>=0?i>=0&&i<f&&(f=i):f=i;f>=0&&(j=j.substring(0,f));f=s.linkDownloadFileTypes.toLowerCase().split(\",\");\r\nfor(i=0;i<f.length;i++)(k=f[i])&&j.substring(j.length-(k.length+1))==\".\"+k&&(e=\"d\")}if(s.trackExternalLinks&&!e&&(j=d.toLowerCase(),s.aa(j))){if(!s.linkInternalFilters)s.linkInternalFilters=w.location.hostname;f=0;s.linkExternalFilters?(f=s.linkExternalFilters.toLowerCase().split(\",\"),g=1):s.linkInternalFilters&&(f=s.linkInternalFilters.toLowerCase().split(\",\"));if(f){for(i=0;i<f.length;i++)k=f[i],j.indexOf(k)>=0&&(n=1);n?g&&(e=\"e\"):g||(e=\"e\")}}}s.linkObject=c;s.linkURL=d;s.linkType=e;if(s.trackClickMap||\r\ns.trackInlineStats)if(s.g=\"\",c){e=s.pageName;d=1;c=c.sourceIndex;if(!e)e=s.pageURL,d=0;if(w.s_objectID)a.id=w.s_objectID,c=a.type=1;if(e&&a&&a.id&&b)s.g=\"&pid=\"+s.escape(e.substring(0,255))+(d?\"&pidt=\"+d:\"\")+\"&oid=\"+s.escape(a.id.substring(0,100))+(a.type?\"&oidt=\"+a.type:\"\")+\"&ot=\"+b+(c?\"&oi=\"+c:\"\")}};s.ta=function(){var b=s.K,a=s.linkType,c=s.linkURL,e=s.linkName;if(a&&(c||e))a=a.toLowerCase(),a!=\"d\"&&a!=\"e\"&&(a=\"o\"),s.pe=\"lnk_\"+a,s.pev1=c?s.escape(c):\"\",s.pev2=e?s.escape(e):\"\",b=1;s.abort&&(b=0);\r\nif(s.trackClickMap||s.trackInlineStats){a={};c=0;var d=s.cookieRead(\"s_sq\"),f=d?d.split(\"&\"):0,i,j,w;d=0;if(f)for(i=0;i<f.length;i++)j=f[i].split(\"=\"),e=s.unescape(j[0]).split(\",\"),j=s.unescape(j[1]),a[j]=e;e=s.account.split(\",\");if(b||s.g){b&&!s.g&&(d=1);for(j in a)if(!Object.prototype[j])for(i=0;i<e.length;i++){d&&(w=a[j].join(\",\"),w==s.account&&(s.g+=(j.charAt(0)!=\"&\"?\"&\":\"\")+j,a[j]=[],c=1));for(f=0;f<a[j].length;f++)w=a[j][f],w==e[i]&&(d&&(s.g+=\"&u=\"+s.escape(w)+(j.charAt(0)!=\"&\"?\"&\":\"\")+j+\"&u=0\"),\r\na[j].splice(f,1),c=1)}b||(c=1);if(c){d=\"\";i=2;!b&&s.g&&(d=s.escape(e.join(\",\"))+\"=\"+s.escape(s.g),i=1);for(j in a)!Object.prototype[j]&&i>0&&a[j].length>0&&(d+=(d?\"&\":\"\")+s.escape(a[j].join(\",\"))+\"=\"+s.escape(j),i--);s.cookieWrite(\"s_sq\",d)}}}return b};s.ua=function(){if(!s.Ka){var b=new Date,a=n.location,c,e,d,f=d=e=c=\"\",i=\"\",w=\"\",g=\"1.2\",k=s.cookieWrite(\"s_cc\",\"true\",0)?\"Y\":\"N\",o=\"\",p=\"\",r=0;if(b.setUTCDate&&(g=\"1.3\",r.toPrecision&&(g=\"1.5\",c=[],c.forEach))){g=\"1.6\";d=0;e={};try{d=new Iterator(e),\r\nd.next&&(g=\"1.7\",c.reduce&&(g=\"1.8\",g.trim&&(g=\"1.8.1\",Date.parse&&(g=\"1.8.2\",Object.create&&(g=\"1.8.5\")))))}catch(t){}}c=screen.width+\"x\"+screen.height;d=navigator.javaEnabled()?\"Y\":\"N\";e=screen.pixelDepth?screen.pixelDepth:screen.colorDepth;i=s.w.innerWidth?s.w.innerWidth:s.d.documentElement.offsetWidth;w=s.w.innerHeight?s.w.innerHeight:s.d.documentElement.offsetHeight;b=navigator.plugins;try{s.b.addBehavior(\"#default#homePage\"),o=s.b.Ra(a)?\"Y\":\"N\"}catch(u){}try{s.b.addBehavior(\"#default#clientCaps\"),\r\np=s.b.connectionType}catch(x){}if(b)for(;r<b.length&&r<30;){if(a=b[r].name)a=a.substring(0,100)+\";\",f.indexOf(a)<0&&(f+=a);r++}s.resolution=c;s.colorDepth=e;s.javascriptVersion=g;s.javaEnabled=d;s.cookiesEnabled=k;s.browserWidth=i;s.browserHeight=w;s.connectionType=p;s.homepage=o;s.plugins=f;s.Ka=1}};s.B={};s.loadModule=function(b,a){s.B[b]||(s[b]=w[\"AppMeasurement_Module_\"+b]?new w[\"AppMeasurement_Module_\"+b](s):{},s.B[b]=s[b]);a&&(s[b+\"_onLoad\"]=a,delayCall(b+\"_onLoad\",[s,m],1)||a(s,m))};s.u=function(b){var a,\r\nc;for(a in s.B)if(!Object.prototype[a]&&(c=s.B[a])&&c[b]&&c[b]())return 1;return 0};s.xa=function(){var b=Math.floor(Math.random()*1E13),a=s.visitorSampling,c=s.visitorSamplingGroup;c=\"s_vsn_\"+(s.visitorNamespace?s.visitorNamespace:s.account)+(c?\"_\"+c:\"\");var e=s.cookieRead(c);if(a){e&&(e=parseInt(e));if(!e){if(!s.cookieWrite(c,b))return 0;e=b}if(e%1E4>v)return 0}return 1};s.Q=function(b,a){var c,e,d,f,i,w;for(c=0;c<2;c++){e=c>0?s.R:s.e;for(d=0;d<e.length;d++)if(f=e[d],(i=b[f])||b[\"!\"+f]){if(!a&&\r\n(f==\"contextData\"||f==\"retrieveLightData\")&&s[f])for(w in s[f])i[w]||(i[w]=s[f][w]);s[f]=i}}};s.La=function(b){var a,c,e,d;for(a=0;a<2;a++){c=a>0?s.R:s.e;for(e=0;e<c.length;e++)d=c[e],b[d]=s[d],b[d]||(b[\"!\"+d]=1)}};s.oa=function(s){var a,c,e,d,f,w=0,g,n=\"\",k=\"\";if(s&&s.length>255&&(a=\"\"+s,c=a.indexOf(\"?\"),c>0&&(g=a.substring(c+1),a=a.substring(0,c),d=a.toLowerCase(),e=0,d.substring(0,7)==\"http://\"?e+=7:d.substring(0,8)==\"https://\"&&(e+=8),c=d.indexOf(\"/\",e),c>0&&(d=d.substring(e,c),f=a.substring(c),\r\na=a.substring(0,c),d.indexOf(\"google\")>=0?w=\",q,ie,start,search_key,word,kw,cd,\":d.indexOf(\"yahoo.co\")>=0&&(w=\",p,ei,\"),w&&g)))){if((s=g.split(\"&\"))&&s.length>1){for(e=0;e<s.length;e++)d=s[e],c=d.indexOf(\"=\"),c>0&&w.indexOf(\",\"+d.substring(0,c)+\",\")>=0?n+=(n?\"&\":\"\")+d:k+=(k?\"&\":\"\")+d;n&&k?g=n+\"&\"+k:k=\"\"}c=253-(g.length-k.length)-a.length;s=a+(c>0?f.substring(0,c):\"\")+\"?\"+g}return s};s.qa=function(){var b=s.cookieRead(\"s_fid\"),a=\"\",c=\"\",e;e=8;var d=4;if(!b||b.indexOf(\"-\")<0){for(b=0;b<16;b++)e=Math.floor(Math.random()*\r\ne),a+=\"0123456789ABCDEF\".substring(e,e+1),e=Math.floor(Math.random()*d),c+=\"0123456789ABCDEF\".substring(e,e+1),e=d=16;b=a+\"-\"+c}s.cookieWrite(\"s_fid\",b,1)||(b=0);return b};s.t=s.track=function(b){var a,c=new Date,e=\"s\"+Math.floor(c.getTime()/108E5)%10+Math.floor(Math.random()*1E13),d=c.getYear();d=\"t=\"+s.escape(c.getDate()+\"/\"+c.getMonth()+\"/\"+(d<1900?d+1900:d)+\" \"+c.getHours()+\":\"+c.getMinutes()+\":\"+c.getSeconds()+\" \"+c.getDay()+\" \"+c.getTimezoneOffset());if(!s.V(\"track\",arguments)){b&&(a={},s.La(a),\r\ns.Q(b));if(s.xa()&&(s.fid=s.qa(),s.Ca(),s.usePlugins&&s.doPlugins&&s.doPlugins(s),s.account)){if(!s.abort){if(s.trackOffline&&!s.timestamp)s.timestamp=Math.floor(c.getTime()/1E3);c=w.location;if(!s.pageURL)s.pageURL=c.href?c.href:c;if(!s.referrer&&!s.ia)s.referrer=n.document.referrer,s.ia=1;s.referrer=s.oa(s.referrer);s.u(\"_g\")}s.ta()&&!s.abort&&(s.ua(),d+=s.ra(),s.Ba(e,d));s.abort||s.u(\"_t\")}b&&s.Q(a,1);s.timestamp=s.linkObject=s.j=s.linkURL=s.linkName=s.linkType=w.Sa=s.pe=s.pev1=s.pev2=s.pev3=s.g=\r\n0}};s.tl=s.trackLink=function(b,a,c,e,d){s.linkObject=b;s.linkType=a;s.linkName=c;if(d)s.i=b,s.l=d;return s.track(e)};s.trackLight=function(b,a,c,e){s.lightProfileID=b;s.lightStoreForSeconds=a;s.lightIncrementBy=c;return s.track(e)};s.clearVars=function(){var b,a;for(b=0;b<s.e.length;b++)if(a=s.e[b],a.substring(0,4)==\"prop\"||a.substring(0,4)==\"eVar\"||a.substring(0,4)==\"hier\"||a.substring(0,4)==\"list\"||a==\"channel\"||a==\"events\"||a==\"eventList\"||a==\"products\"||a==\"productList\"||a==\"purchaseID\"||a==\r\n\"transactionID\"||a==\"state\"||a==\"zip\"||a==\"campaign\")s[a]=void 0};s.Ba=function(b,a){var c,e=s.trackingServer;c=\"\";var d=s.dc,f=\"sc.\",w=s.visitorNamespace;if(e){if(s.trackingServerSecure&&s.ssl)e=s.trackingServerSecure}else{if(!w)w=s.account,e=w.indexOf(\",\"),e>=0&&(w=w.Oa(0,e)),w=w.replace(/[^A-Za-z0-9]/g,\"\");c||(c=\"2o7.net\");d=d?(\"\"+d).toLowerCase():\"d1\";c==\"2o7.net\"&&(d==\"d1\"?d=\"112\":d==\"d2\"&&(d=\"122\"),f=\"\");e=w+\".\"+d+\".\"+f+c}c=s.ssl?\"https://\":\"http://\";c+=e+\"/b/ss/\"+s.account+\"/\"+(s.mobile?\"5.\":\r\n\"\")+\"1/JS-\"+s.version+(s.Ja?\"T\":\"\")+\"/\"+b+\"?AQB=1&ndh=1&\"+a+\"&AQE=1\";s.wa&&(c=c.substring(0,2047));s.ma(c);s.H()};s.ma=function(b){s.c||s.va();s.c.push(b);s.I=s.o();s.ha()};s.va=function(){s.c=s.ya();if(!s.c)s.c=[]};s.ya=function(){var b,a;if(s.M()){try{(a=w.localStorage.getItem(s.L()))&&(b=w.JSON.parse(a))}catch(c){}return b}};s.M=function(){var b=!0;if(!s.trackOffline||!s.offlineFilename||!w.localStorage||!w.JSON)b=!1;return b};s.Z=function(){var b=0;if(s.c)b=s.c.length;s.q&&b++;return b};s.H=function(){if(!s.q)if(s.$=\r\nnull,s.fa)s.I>s.A&&s.ga(s.c),s.O(500);else{var b=s.ja();if(b>0)s.O(b);else if(b=s.X())s.q=1,s.Aa(b),s.Fa(b)}};s.O=function(b){if(!s.$)b||(b=0),s.$=setTimeout(s.H,b)};s.ja=function(){var b;if(!s.trackOffline||s.offlineThrottleDelay<=0)return 0;b=s.o()-s.da;if(s.offlineThrottleDelay<b)return 0;return s.offlineThrottleDelay-b};s.X=function(){if(s.c.length>0)return s.c.shift()};s.Aa=function(b){if(s.debugTracking){var a=\"AppMeasurement Debug: \"+b;b=b.split(\"&\");var c;for(c=0;c<b.length;c++)a+=\"\\n\\t\"+\r\ns.unescape(b[c]);s.za(a)}};s.Fa=function(b){var a;a||(a=new Image);a.T=function(){try{if(s.N)clearTimeout(s.N),s.N=0;if(a.timeout)clearTimeout(a.timeout),a.timeout=0}catch(b){}};a.onload=a.Ia=function(){a.T();s.la();s.D();s.q=0;s.H()};a.onabort=a.onerror=a.na=function(){a.T();s.q&&s.c.unshift(s.ka);s.q=0;s.I>s.A&&s.ga(s.c);s.D();s.O(500)};a.onreadystatechange=function(){a.readyState==4&&(a.status==200?a.Ia():a.na())};s.da=s.o();a.src=b;if(a.abort)s.N=setTimeout(a.abort,5E3);s.ka=b;s.Pa=w[\"s_i_\"+s.replace(s.account,\r\n\",\",\"_\")]=a;if(s.useForcedLinkTracking&&s.r||s.l){if(!s.forcedLinkTrackingTimeout)s.forcedLinkTrackingTimeout=250;s.F=setTimeout(s.D,s.forcedLinkTrackingTimeout)}};s.la=function(){if(s.M()&&!(s.ca>s.A))try{w.localStorage.removeItem(s.L()),s.ca=s.o()}catch(b){}};s.ga=function(b){if(s.M()){s.ha();try{w.localStorage.setItem(s.L(),w.JSON.stringify(b)),s.A=s.o()}catch(a){}}};s.ha=function(){if(s.trackOffline){if(!s.offlineLimit||s.offlineLimit<=0)s.offlineLimit=10;for(;s.c.length>s.offlineLimit;)s.X()}};\r\ns.forceOffline=function(){s.fa=!0};s.forceOnline=function(){s.fa=!1};s.L=function(){return s.offlineFilename+\"-\"+s.visitorNamespace+s.account};s.o=function(){return(new Date).getTime()};s.aa=function(s){s=s.toLowerCase();if(s.indexOf(\"#\")!=0&&s.indexOf(\"about:\")!=0&&s.indexOf(\"javascript:\")!=0)return!0;return!1};s.setTagContainer=function(b){var a,c,e;s.Ja=b;for(a=0;a<s._il.length;a++)if((c=s._il[a])&&c._c==\"s_l\"&&c.tagContainerName==b){s.Q(c);if(c.lmq)for(a=0;a<c.lmq.length;a++)e=c.lmq[a],s.loadModule(e.n);\r\nif(c.ml)for(e in c.ml)if(s[e])for(a in b=s[e],e=c.ml[e],e)if(!Object.prototype[a]&&(typeof e[a]!=\"function\"||(\"\"+e[a]).indexOf(\"s_c_il\")<0))b[a]=e[a];if(c.mmq)for(a=0;a<c.mmq.length;a++)e=c.mmq[a],s[e.m]&&(b=s[e.m],b[e.f]&&typeof b[e.f]==\"function\"&&(e.a?b[e.f].apply(b,e.a):b[e.f].apply(b)));if(c.tq)for(a=0;a<c.tq.length;a++)s.track(c.tq[a]);c.s=s;break}};s.Util={urlEncode:s.escape,urlDecode:s.unescape,cookieRead:s.cookieRead,cookieWrite:s.cookieWrite,getQueryParam:function(b,a,c){var e;a||(a=s.pageURL?\r\ns.pageURL:w.location);c||(c=\"&\");if(b&&a&&(a=\"\"+a,e=a.indexOf(\"?\"),e>=0&&(a=c+a.substring(e+1)+c,e=a.indexOf(c+b+\"=\"),e>=0&&(a=a.substring(e+c.length+b.length+1),e=a.indexOf(c),e>=0&&(a=a.substring(0,e)),a.length>0))))return s.unescape(a);return\"\"}};s.C=[\"timestamp\",\"dynamicVariablePrefix\",\"visitorID\",\"anonymousVisitorID\",\"globalVisitorID\",\"globalLocationHint\",\"fid\",\"vmk\",\"visitorMigrationKey\",\"visitorMigrationServer\",\"visitorMigrationServerSecure\",\"charSet\",\"visitorNamespace\",\"cookieDomainPeriods\",\r\n\"fpCookieDomainPeriods\",\"cookieLifetime\",\"pageName\",\"pageURL\",\"referrer\",\"contextData\",\"currencyCode\",\"lightProfileID\",\"lightStoreForSeconds\",\"lightIncrementBy\",\"retrieveLightProfiles\",\"deleteLightProfiles\",\"retrieveLightData\",\"pe\",\"pev1\",\"pev2\",\"pev3\",\"pageURLRest\"];s.e=s.C.concat([\"purchaseID\",\"variableProvider\",\"channel\",\"server\",\"pageType\",\"transactionID\",\"campaign\",\"state\",\"zip\",\"events\",\"events2\",\"products\",\"tnt\"]);s.ea=[\"timestamp\",\"charSet\",\"visitorNamespace\",\"cookieDomainPeriods\",\"cookieLifetime\",\r\n\"contextData\",\"lightProfileID\",\"lightStoreForSeconds\",\"lightIncrementBy\"];s.J=s.ea.slice(0);s.R=[\"account\",\"allAccounts\",\"debugTracking\",\"visitor\",\"trackOffline\",\"offlineLimit\",\"offlineThrottleDelay\",\"offlineFilename\",\"usePlugins\",\"doPlugins\",\"configURL\",\"visitorSampling\",\"s.visitorSamplingGroup\",\"linkObject\",\"linkURL\",\"linkName\",\"linkType\",\"trackDownloadLinks\",\"trackExternalLinks\",\"trackClickMap\",\"trackInlineStats\",\"linkLeaveQueryString\",\"linkTrackVars\",\"linkTrackEvents\",\"linkDownloadFileTypes\",\r\n\"linkExternalFilters\",\"linkInternalFilters\",\"useForcedLinkTracking\",\"forcedLinkTrackingTimeout\",\"trackingServer\",\"trackingServerSecure\",\"ssl\",\"abort\",\"mobile\",\"dc\",\"lightTrackVars\",\"maxDelay\"];for(g=0;g<=75;g++)s.e.push(\"prop\"+g),s.J.push(\"prop\"+g),s.e.push(\"eVar\"+g),s.J.push(\"eVar\"+g),g<6&&s.e.push(\"hier\"+g),g<4&&s.e.push(\"list\"+g);g=[\"resolution\",\"colorDepth\",\"javascriptVersion\",\"javaEnabled\",\"cookiesEnabled\",\"browserWidth\",\"browserHeight\",\"connectionType\",\"homepage\",\"plugins\"];s.e=s.e.concat(g);\r\ns.C=s.C.concat(g);s.ssl=w.location.protocol.toLowerCase().indexOf(\"https\")>=0;s.charSet=\"UTF-8\";s.contextData={};s.offlineThrottleDelay=0;s.offlineFilename=\"AppMeasurement.offline\";s.da=0;s.I=0;s.A=0;s.ca=0;s.linkDownloadFileTypes=\"exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx\";s.w=w;s.d=w.document;try{s.wa=navigator.appName==\"Microsoft Internet Explorer\"}catch(p){}s.D=function(){if(s.F)w.clearTimeout(s.F),s.F=null;s.i&&s.r&&s.i.dispatchEvent(s.r);if(s.l)if(typeof s.l==\"function\")s.l();\r\nelse if(s.i&&s.i.href)s.d.location=s.i.href;s.i=s.r=s.l=0};s.Ga=function(){s.b=s.d.body;if(s.b)if(s.k=function(b){var a,c,e,d,f;if(!(s.d&&s.d.getElementById(\"cppXYctnr\")||b&&b.Da)){if(s.S)if(s.useForcedLinkTracking)s.b.removeEventListener(\"click\",s.k,!1);else{s.b.removeEventListener(\"click\",s.k,!0);s.S=s.useForcedLinkTracking=0;return}else s.useForcedLinkTracking=0;s.j=b.srcElement?b.srcElement:b.target;try{if(s.j&&(s.j.tagName||s.j.parentElement||s.j.parentNode))if(e=s.Z(),s.track(),e<s.Z()&&s.useForcedLinkTracking&&\r\nb.target){for(d=b.target;d&&d!=s.b&&d.tagName.toUpperCase()!=\"A\"&&d.tagName.toUpperCase()!=\"AREA\";)d=d.parentNode;if(d&&(f=d.href,s.aa(f)||(f=0),c=d.target,b.target.dispatchEvent&&f&&(!c||c==\"_self\"||c==\"_top\"||c==\"_parent\"||w.name&&c==w.name))){try{a=s.d.createEvent(\"MouseEvents\")}catch(g){a=new w.MouseEvent}if(a){try{a.initMouseEvent(\"click\",b.bubbles,b.cancelable,b.view,b.detail,b.screenX,b.screenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget)}catch(j){a=\r\n0}if(a)a.Da=1,b.stopPropagation(),b.Ha&&b.Ha(),b.preventDefault(),s.i=b.target,s.r=a}}}}catch(k){}s.j=0}},s.b&&s.b.attachEvent)s.b.attachEvent(\"onclick\",s.k);else{if(s.b&&s.b.addEventListener){if(navigator&&(navigator.userAgent.indexOf(\"WebKit\")>=0&&s.d.createEvent||navigator.userAgent.indexOf(\"Firefox/2\")>=0&&w.MouseEvent))s.S=1,s.useForcedLinkTracking=1,s.b.addEventListener(\"click\",s.k,!0);s.b.addEventListener(\"click\",s.k,!1)}}else setTimeout(setupBody,30)};s.Ga()}", "function getVersion(){return _VERSION}", "InitVsaEngine() {\n\n }", "constructor() {\n this.systemLog = false\n this.appName = '@codedungeon/messenger'\n this.logToFile = false\n this.methods = [\n 'write',\n 'critical',\n 'lblCritical',\n 'danger',\n 'lblDanger',\n 'debug',\n 'error',\n 'lblError',\n 'important',\n 'lblImportant',\n 'info',\n 'lblInfo',\n 'log',\n 'note',\n 'notice',\n 'lblNotice',\n 'status',\n 'success',\n 'lblSuccess',\n 'warn',\n 'lblWarn',\n 'warning',\n 'lblWarning'\n ]\n }", "private internal function m248() {}", "function WebSocketRpcConnection()\n{\nvar self = this;\n\nvar isNodeJs = (typeof window === \"undefined\" ? true : false);\n\nvar lib = null;\nvar SpaceifyError = null;\nvar SpaceifyUtility = null;\nvar RpcCommunicator = null;\n//var SpaceifyLogger = null;\nvar WebSocketConnection = null;\n\nif (isNodeJs)\n\t{\n\tlib = \"/var/lib/spaceify/code/\";\n\n\tSpaceifyError = require(lib + \"spaceifyerror\");\n\t//SpaceifyLogger = require(lib + \"spaceifylogger\");\n\tSpaceifyUtility = require(lib + \"spaceifyutility\");\n\tRpcCommunicator = require(lib + \"rpccommunicator\");\n\tWebSocketConnection = require(lib + \"websocketconnection\");\n\t}\nelse\n\t{\n\tlib = (window.WEBPACK_MAIN_LIBRARY ? window.WEBPACK_MAIN_LIBRARY : window);\n\n\t//SpaceifyLogger = lib.SpaceifyLogger;\n\tSpaceifyError = lib.SpaceifyError;\n\tSpaceifyUtility = lib.SpaceifyUtility;\n\tRpcCommunicator = lib.RpcCommunicator;\n\tWebSocketConnection = lib.WebSocketConnection;\n\t}\n\nvar errorc = new SpaceifyError();\nvar utility = new SpaceifyUtility();\nvar communicator = new RpcCommunicator();\nvar connection = new WebSocketConnection();\n//var logger = new SpaceifyLogger(\"WebSocketRpcConnection\");\n\nself.connect = function(options, callback)\n\t{\n\tconnection.connect(options, function(err, data)\n\t\t{\n\t\tif(!err)\n\t\t\t{\n\t\t\tcommunicator.addConnection(connection);\n\n\t\t\tif(callback)\n\t\t\t\tcallback(null, true);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tif(callback)\n\t\t\t\tcallback(errorc.makeErrorObject(\"wsrpcc\", \"Failed to open WebsocketRpcConnection.\", \"WebSocketRpcConnection::connect\"), null);\n\t\t\t}\n\t\t});\n\t};\n\nself.close = function()\n\t{\n\t};\n\nself.getCommunicator = function()\n\t{\n\treturn communicator;\n\t};\n\nself.getConnection = function()\n\t{\n\treturn connection;\n\t};\n\n// Inherited methods\nself.getIsOpen = function()\n\t{\n\treturn connection.getIsOpen();\n\t}\n\nself.getIsSecure = function()\n\t{\n\treturn connection.getIsSecure();\n\t}\n\nself.getPort = function()\n\t{\n\treturn connection.getPort();\n\t}\n\nself.getId = function()\n\t{\n\treturn connection.getId();\n\t}\n\nself.connectionExists = function(connectionId)\n\t{\n\treturn communicator.connectionExists(connectionId);\n\t}\n\nself.exposeRpcMethod = function(name, object, method)\n\t{\n\tcommunicator.exposeRpcMethod(name, object, method);\n\t}\n\nself.exposeRpcMethodSync = function(name, object, method)\n\t{\n\tcommunicator.exposeRpcMethodSync(name, object, method);\n\t}\n\nself.callRpc = function(method, params, object, listener)\n\t{\n\treturn communicator.callRpc(method, params, object, listener, connection.getId());\n\t}\n\n// External event listeners\nself.setConnectionListener = function(listener)\n\t{\n\tcommunicator.setConnectionListener(listener);\n\t};\n\nself.setDisconnectionListener = function(listener)\n\t{\n\tcommunicator.setDisconnectionListener(listener);\n\t};\n\n}", "heartbeat () {\n }", "function _____SHARED_functions_____(){}", "onShareAppMessage() {\n\n }", "function getString(key, params) {\n var result = WEB_PLATFORM.getString(\"org_opensds_storage_devices\", key, params);\n if(result == null){\n return key;\n }else{\n return result;\n }\n }", "componentDidMount(){\n console.info(this.constructor.name+ 'Component mount process finished');\n }", "onMessage() {}", "onMessage() {}", "requestThumbnails() {\n let position = this.state.position;\n let ed = this.state.ed;\n let ts = position == 'start' ? ed.start : ed.end;\n\n this.props.socket.emit('frameSelect',{ ts: ts } );\n }", "static get tag(){return\"hal-9000\"}", "constructor(t){const e={...t};this.connectionState=new h,this.server=\"https://hub-server-2.heatgenius.co.uk\",this.username=\"\",this.signature=\"\",this.auth={header:{}},this.lastQueryTime=null,this._axios=i.a.create({}),this.logger=e.logger?e.logger:console,this.debug=!!e.debug&&e.debug}", "started() {\r\n\r\n\t}", "get EXTERNAL_API() {\n return ['setUsageMode',\n 'setBackupMode',\n 'setLocationMode',\n 'setUsageOptinHidden',\n ];\n }", "getVideoDataBuffer() {\n return this.videoDataBuffer;\n }", "addTPKLayer(){\n //<editor-fold desc=\"old code to eliminate\">\n /* if (typeof local == 'undefined') {\n\n //todo: maybe based on this url we could decide if taking the tpk from File API or form URL\n var xhrRequest = new XMLHttpRequest();\n var _this = this;\n xhrRequest.open(\"GET\", url, true);\n xhrRequest.responseType = \"blob\";\n xhrRequest.onprogress = function(evt){\n var percent = 0;\n if(/!*evt.hasOwnProperty(\"total\")*!/typeof evt[\"total\"] !== 'undefined'){\n percent = (parseFloat(evt.loaded / evt.total) * 100).toFixed(0);\n }\n else{\n percent = (parseFloat(evt.loaded / evt.totalSize) * 100).toFixed(0);\n }\n\n console.log(\"Get file via url \" + percent + \"%\");\n console.log(\"Begin downloading remote tpk file...\");\n };\n\n xhrRequest.error = function(err){\n console.log(\"ERROR retrieving TPK file: \" + err.toString());\n alert(\"There was a problem retrieve the file.\");\n };\n var __this = _this;\n xhrRequest.onload = function(oEvent) {\n if(this.status === 200) {\n console.log(\"Remote tpk download finished.\" + oEvent);\n __this.zipParser(this.response);\n }\n else{\n alert(\"There was a problem loading the file. \" + this.status + \": \" + this.statusText );\n }\n };\n xhrRequest.send();\n }\n*/\n //</editor-fold>\n if (this.get('ermesCordova').isNative()){\n\n var basemapName = this.get('parcels').get('basemapName');\n var store = cordova.file.dataDirectory;\n var fileName = basemapName;\n this.set(\"loading\", true);\n this.getBaseMapZip (store, fileName).then((binary)=>{\n if (binary!== null) {\n this.zipParser(binary);\n }\n else {\n Ember.debug(\"getBaseMapZip: error loading the zip file\");\n }\n });\n }\n\n }", "private public function m246() {}", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "async onReady() {\n try {\n // Initialize your adapter here\n //Logging of adapter start\n this.log.info('start fb-checkpresence: ip-address: \"' + this.config.ipaddress + '\" - interval devices: ' + this.config.interval + ' Min.' + ' - interval members: ' + this.config.intervalFamily + ' s');\n this.log.debug('configuration user: <' + this.config.username + '>');\n this.log.debug('configuration history: <' + this.config.history + '>');\n this.log.debug('configuration dateformat: <' + this.config.dateformat + '>');\n this.log.debug('configuration familymembers: ' + JSON.stringify(this.config.familymembers));\n this.log.debug('configuration fb-devices ' + this.config.fbdevices);\n this.log.debug('configuratuion mesh info: ' + this.config.meshinfo); \n\n //decrypt fritzbox password\n const sysObj = await this.getForeignObjectAsync('system.config');\n if (sysObj && sysObj.native && sysObj.native.secret) {\n this.config.password = this.decrypt(sysObj.native.secret, this.config.password);\n } else {\n this.config.password = this.decrypt('SdoeQ85NTrg1B0FtEyzf', this.config.password);\n }\n\n //Configuration changes if needed\n let adapterObj = (await this.getForeignObjectAsync(`system.adapter.${this.namespace}`));\n let adapterObjChanged = false; //for changes\n \n //if interval <= 0 than set to 1\n if (this.config.interval <= 0) {\n adapterObj.native.interval = 1;\n adapterObjChanged = true;\n this.config.interval = 1;\n this.log.warn('interval is less than 1. Set to 1 Min.');\n }\n\n //if interval <= 0 than set to 1\n if (this.config.intervalFamily <= 9) {\n adapterObj.native.intervalFamily = 10;\n adapterObjChanged = true;\n this.config.intervalFamily = 10;\n this.log.warn('interval is less than 10. Set to 10s.');\n }\n\n //create new configuration items -> workaround for older versions\n for(let i=0;i<this.config.familymembers.length;i++){\n if (this.config.familymembers[i].useip == undefined) {\n adapterObj.native.familymembers[i].useip = false;\n adapterObj.native.familymembers[i].ipaddress = '';\n adapterObjChanged = true;\n }\n }\n\n if (adapterObjChanged === true){ //Save changes\n await this.setForeignObjectAsync(`system.adapter.${this.namespace}`, adapterObj);\n }\n\n const cfg = {\n ip: this.config.ipaddress,\n port: '49000',\n iv: this.config.interval,\n history: this.config.history,\n dateFormat: this.config.dateformat,\n uid: this.config.username,\n pwd: this.config.password,\n members: this.config.familymembers,\n wl: this.config.whitelist\n };\n \n const cron = cfg.iv * 60;\n const cronFamily = this.config.intervalFamily;\n \n const devInfo = {\n host: this.config.ipaddress,\n port: '49000',\n sslPort: null,\n uid: this.config.username,\n pwd: this.config.password\n };\n\n this.Fb = await fb.Fb.init(devInfo, this);\n if(this.Fb.services === null) {\n this.log.error('Can not get services! Adapter stops');\n this.stopAdapter();\n }\n\n //Check if services/actions are supported\n this.GETPATH = await this.Fb.chkService('X_AVM-DE_GetHostListPath', 'Hosts1', 'X_AVM-DE_GetHostListPath');\n this.GETMESHPATH = await this.Fb.chkService('X_AVM-DE_GetMeshListPath', 'Hosts1', 'X_AVM-DE_GetMeshListPath');\n this.GETBYMAC = await this.Fb.chkService('GetSpecificHostEntry', 'Hosts1', 'GetSpecificHostEntry');\n this.GETBYIP = await this.Fb.chkService('X_AVM-DE_GetSpecificHostEntryByIP', 'Hosts1', 'X_AVM-DE_GetSpecificHostEntryByIP');\n this.GETPORT = await this.Fb.chkService('GetSecurityPort', 'DeviceInfo1', 'GetSecurityPort');\n this.GETEXTIP = await this.Fb.chkService('GetInfo', 'WANPPPConnection1', 'GetInfo');\n if ( this.GETEXTIP == false) this.GETEXTIP = await this.Fb.chkService('GetInfo', 'WANIPConnection1', 'GetInfo');\n this.SETENABLE = await this.Fb.chkService('SetEnable', 'WLANConfiguration3', 'SetEnable');\n this.WLAN3INFO = await this.Fb.chkService('GetInfo', 'WLANConfiguration3', 'WLANConfiguration3-GetInfo');\n this.DEVINFO = await this.Fb.chkService('GetInfo', 'DeviceInfo1', 'DeviceInfo1-GetInfo');\n this.DISALLOWWANACCESSBYIP = await this.Fb.chkService('DisallowWANAccessByIP', 'X_AVM-DE_HostFilter', 'DisallowWANAccessByIP');\n this.GETWANACCESSBYIP = await this.Fb.chkService('GetWANAccessByIP', 'X_AVM-DE_HostFilter', 'GetWANAccessByIP');\n this.REBOOT = await this.Fb.chkService('Reboot', 'DeviceConfig1', 'Reboot');\n \n //const test = await Fb.soapAction(Fb, '/upnp/control/deviceconfig', 'urn:dslforum-org:service:DeviceConfig:1', 'X_AVM-DE_CreateUrlSID', null);\n\n //Create global objects\n await obj.createGlobalObjects(this, this.HTML+this.HTML_END, this.HTML_GUEST+this.HTML_END, this.enabled);\n await obj.createMemberObjects(this, cfg, this.HTML_HISTORY + this.HTML_END, this.enabled);\n\n //create Fb devices\n if (this.GETPATH != null && this.GETPATH == true && this.config.fbdevices == true){\n const items = await this.Fb.getDeviceList(this, cfg, this.Fb);\n if (items != null){\n let res = await obj.createFbDeviceObjects(this, items, this.enabled);\n if (res === true) this.log.info('createFbDeviceObjects finished successfully');\n res = await obj.createMeshObjects(this, items, 0, this.enabled); //create channel 0 as default interface\n if (res === true) this.log.info('createMeshObjects finished successfully');\n }else{\n this.log.error('createFbDeviceObjects -> ' + \"can't read devices from fritzbox! Adapter stops\");\n adapterObj = await this.getForeignObjectAsync(`system.adapter.${this.namespace}`);\n adapterObj.common.enabled = false; // Adapter ausschalten\n await this.setForeignObjectAsync(`system.adapter.${this.namespace}`, adapterObj);\n }\n await this.resyncFbObjects(items);\n }\n\n // states changes inside the adapters namespace are subscribed\n if (this.SETENABLE === true && this.WLAN3INFO === true) this.subscribeStates(`${this.namespace}` + '.guest.wlan');\n if (this.DISALLOWWANACCESSBYIP === true && this.GETWANACCESSBYIP === true) this.subscribeStates(`${this.namespace}` + '.fb-devices.*.disabled'); \n if (this.REBOOT === true) this.subscribeStates(`${this.namespace}` + '.reboot'); \n\n //get uuid for transaction\n //const sSid = await Fb.soapAction(Fb, '/upnp/control/deviceconfig', urn + 'DeviceConfig:1', 'X_GenerateUUID', null);\n //const uuid = sSid['NewUUID'].replace('uuid:', '');\n this.loop(10, 55, cronFamily, cron, cfg);\n } catch (error) {\n this.showError('onReady: ' + error);\n }\n }", "async onReady() {\n // Initialize your adapter here\n\n this.setState(\"info.connection\", false, true);\n // Reset the connection indicator during startup\n this.type = \"VW\";\n this.country = \"DE\";\n this.clientId = \"9496332b-ea03-4091-a224-8c746b885068%40apps_vw-dilab_com\";\n this.xclientId = \"38761134-34d0-41f3-9a73-c4be88d7d337\";\n this.scope = \"openid%20profile%20mbb%20email%20cars%20birthdate%20badge%20address%20vin\";\n this.redirect = \"carnet%3A%2F%2Fidentity-kit%2Flogin\";\n this.xrequest = \"de.volkswagen.carnet.eu.eremote\";\n this.responseType = \"id_token%20token%20code\";\n this.xappversion = \"5.1.2\";\n this.xappname = \"eRemote\";\n if (this.config.type === \"id\") {\n this.type = \"Id\";\n this.country = \"DE\";\n this.clientId = \"a24fba63-34b3-4d43-b181-942111e6bda8@apps_vw-dilab_com\";\n this.xclientId = \"\";\n this.scope = \"openid profile badge cars dealers birthdate vin\";\n this.redirect = \"weconnect://authenticated\";\n this.xrequest = \"com.volkswagen.weconnect\";\n this.responseType = \"code id_token token\";\n this.xappversion = \"\";\n this.xappname = \"\";\n }\n if (this.config.type === \"skoda\") {\n this.type = \"Skoda\";\n this.country = \"CZ\";\n this.clientId = \"7f045eee-7003-4379-9968-9355ed2adb06%40apps_vw-dilab_com\";\n this.xclientId = \"28cd30c6-dee7-4529-a0e6-b1e07ff90b79\";\n this.scope = \"openid%20profile%20phone%20address%20cars%20email%20birthdate%20badge%20dealers%20driversLicense%20mbb\";\n this.redirect = \"skodaconnect%3A%2F%2Foidc.login%2F\";\n this.xrequest = \"cz.skodaauto.connect\";\n this.responseType = \"code%20id_token\";\n this.xappversion = \"3.2.6\";\n this.xappname = \"cz.skodaauto.connect\";\n }\n if (this.config.type === \"seat\") {\n this.type = \"Seat\";\n this.country = \"ES\";\n this.clientId = \"50f215ac-4444-4230-9fb1-fe15cd1a9bcc@apps_vw-dilab_com\";\n this.xclientId = \"9dcc70f0-8e79-423a-a3fa-4065d99088b4\";\n this.scope = \"openid profile mbb cars birthdate nickname address phone\";\n this.redirect = \"seatconnect://identity-kit/login\";\n this.xrequest = \"cz.skodaauto.connect\";\n this.responseType = \"code%20id_token\";\n this.xappversion = \"1.1.29\";\n this.xappname = \"SEATConnect\";\n }\n if (this.config.type === \"audi\") {\n this.type = \"Audi\";\n this.country = \"DE\";\n this.clientId = \"09b6cbec-cd19-4589-82fd-363dfa8c24da@apps_vw-dilab_com\";\n this.xclientId = \"77869e21-e30a-4a92-b016-48ab7d3db1d8\";\n this.scope = \"address profile badge birthdate birthplace nationalIdentifier nationality profession email vin phone nickname name picture mbb gallery openid\";\n this.redirect = \"myaudi:///\";\n this.xrequest = \"de.myaudi.mobile.assistant\";\n this.responseType = \"token%20id_token\";\n // this.responseType = \"code\";\n this.xappversion = \"3.22.0\";\n this.xappname = \"myAudi\";\n }\n if (this.config.type === \"go\") {\n this.type = \"\";\n this.country = \"\";\n this.clientId = \"ac42b0fa-3b11-48a0-a941-43a399e7ef84@apps_vw-dilab_com\";\n this.xclientId = \"\";\n this.scope = \"openid%20profile%20address%20email%20phone\";\n this.redirect = \"vwconnect%3A%2F%2Fde.volkswagen.vwconnect%2Foauth2redirect%2Fidentitykit\";\n this.xrequest = \"\";\n this.responseType = \"code\";\n this.xappversion = \"\";\n this.xappname = \"\";\n }\n if (this.config.interval === 0) {\n this.log.info(\"Interval of 0 is not allowed reset to 1\");\n this.config.interval = 1;\n }\n this.login()\n .then(() => {\n this.log.debug(\"Login successful\");\n this.setState(\"info.connection\", true, true);\n this.getPersonalData()\n .then(() => {\n this.getVehicles()\n .then(() => {\n if (this.config.type !== \"go\") {\n this.vinArray.forEach((vin) => {\n if (this.config.type === \"id\") {\n this.getIdStatus(vin).catch(() => {\n this.log.error(\"get id status Failed\");\n });\n } else {\n this.getHomeRegion(vin)\n .catch(() => {\n this.log.debug(\"get home region Failed\");\n })\n .finally(() => {\n this.getVehicleData(vin).catch(() => {\n this.log.error(\"get vehicle data Failed\");\n });\n this.getVehicleRights(vin).catch(() => {\n this.log.error(\"get vehicle rights Failed\");\n });\n this.requestStatusUpdate(vin)\n .finally(() => {\n this.statesArray.forEach((state) => {\n this.getVehicleStatus(vin, state.url, state.path, state.element, state.element2, state.element3, state.element4).catch(() => {\n this.log.debug(\"error while getting \" + state.url);\n });\n });\n })\n .catch(() => {\n this.log.error(\"status update Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"Error getting home region\");\n });\n }\n });\n }\n\n this.updateInterval = setInterval(() => {\n if (this.config.type === \"go\") {\n this.getVehicles();\n return;\n } else if (this.config.type === \"id\") {\n this.vinArray.forEach((vin) => {\n this.getIdStatus(vin).catch(() => {\n this.log.error(\"get id status Failed\");\n this.refreshIDToken().catch(() => {});\n });\n this.getWcData();\n });\n return;\n } else {\n this.vinArray.forEach((vin) => {\n this.statesArray.forEach((state) => {\n this.getVehicleStatus(vin, state.url, state.path, state.element, state.element2).catch(() => {\n this.log.debug(\"error while getting \" + state.url);\n });\n });\n });\n }\n }, this.config.interval * 60 * 1000);\n\n if (this.config.forceinterval > 0) {\n this.fupdateInterval = setInterval(() => {\n if (this.config.type === \"go\") {\n this.getVehicles();\n return;\n }\n this.vinArray.forEach((vin) => {\n this.requestStatusUpdate(vin).catch(() => {\n this.log.error(\"force status update Failed\");\n });\n });\n }, this.config.forceinterval * 60 * 1000);\n }\n })\n .catch(() => {\n this.log.error(\"Get Vehicles Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"get personal data Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"Login Failed\");\n });\n this.subscribeStates(\"*\");\n }", "started () {}", "_specializedInitialisation()\r\n\t{\r\n\t\tLogger.log(\"Specialisation for service AVTransport\", LogType.Info);\r\n\t\tvar relativeTime = this.getVariableByName(\"RelativeTimePosition\");\r\n\t\t//Implémentation pour OpenHome\r\n\t\tif (!relativeTime)\r\n\t\t\trelativeTime = this.getVariableByName(\"A_ARG_TYPE_GetPositionInfo_RelTime\");\r\n\t\tvar transportState = this.getVariableByName(\"TransportState\");\r\n\t\t//Implémentation pour OpenHome\r\n\t\tif (!transportState)\r\n\t\t\ttransportState = this.getVariableByName(\"A_ARG_TYPE_GetTransportInfo_CurrentTransportState\");\r\n\r\n\t\tif (transportState)\r\n\t\t{\r\n\t\t\ttransportState.on('updated', (variable, newVal) =>\r\n\t\t\t{\r\n\t\t\t\tLogger.log(\"On transportStateUpdate : \" + newVal, LogType.DEBUG);\r\n\t\t\t\tvar actPosInfo = this.getActionByName(\"GetPositionInfo\");\r\n\t\t\t\tvar actMediaInfo = this.getActionByName(\"GetMediaInfo\");\r\n\t\t\t\t/*\r\n\t\t\t\t“STOPPED” R\r\n\t\t\t\t“PLAYING” R\r\n\t\t\t\t“TRANSITIONING” O\r\n\t\t\t\t”PAUSED_PLAYBACK” O\r\n\t\t\t\t“PAUSED_RECORDING” O\r\n\t\t\t\t“RECORDING” O\r\n\t\t\t\t“NO_MEDIA_PRESENT”\r\n\t\t\t\t */\r\n\t\t\t\tif (relativeTime && !relativeTime.SendEvent && actPosInfo)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (this._intervalUpdateRelativeTime)\r\n\t\t\t\t\t\tclearInterval(this._intervalUpdateRelativeTime);\r\n\t\t\t\t\tif (newVal == \"PLAYING\" || newVal == \"RECORDING\")\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t} );\r\n\t\t\t\t\t\t//Déclenche la maj toutes les 4 secondes\r\n\t\t\t\t\t\tthis._intervalUpdateRelativeTime = setInterval(() =>{\r\n\t\t\t\t\t\t\t\t//Logger.log(\"On autoUpdate\", LogType.DEBUG);\r\n\t\t\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t}\t);\r\n\t\t\t\t\t\t\t}, 4000);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//else if (newVal == \"STOPPED\" || newVal == \"PAUSED_PLAYBACK\" || newVal == \"PAUSED_RECORDING\" || newVal == \"NO_MEDIA_PRESENT\")\r\n\t\t\t\t//{\r\n\t\t\t\t//\r\n\t\t\t\t//}\r\n\t\t\t\t//On met a jour les media info et position info pour etre sur de mettre a jour les Metadata(par defaut la freebox ne le fait pas ou plutot le fait mal)\r\n\t\t\t\tif (newVal == \"TRANSITIONING\")\r\n\t\t\t\t{\r\n\t\t\t\t\tif (actPosInfo)\r\n\t\t\t\t\t\tactPosInfo.execute(\t{InstanceID: 0}\t);\r\n\t\t\t\t\tif (actMediaInfo)\r\n\t\t\t\t\t\tactMediaInfo.execute(\t{InstanceID: 0} );\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (newVal == \"STOPPED\")\r\n\t\t\t\t{\r\n\t\t\t\t\tif (actPosInfo)\r\n\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t});\r\n\t\t\t\t\tif (actMediaInfo)\r\n\t\t\t\t\t\tactMediaInfo.execute(\t{\tInstanceID: 0 });\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}", "loadComponent(nodeURI, baseURI, callback_async /* nodeDescriptor */, errback_async /* errorMessage */) { // TODO: turn this into a generic xhr loader exposed as a kernel function?\n\n let self = this;\n\n if (nodeURI == self.kutility.protoNodeURI) {\n\n callback_async(self.kutility.protoNodeDescriptor);\n\n } else if (nodeURI.match(RegExp(\"^data:application/json;base64,\"))) {\n\n // Primarly for testing, parse one specific form of data URIs. We need to parse\n // these ourselves since Chrome can't load data URIs due to cross origin\n // restrictions.\n\n callback_async(JSON.parse(atob(nodeURI.substring(29)))); // TODO: support all data URIs\n\n } else {\n\n self.virtualTime.suspend(\"while loading \" + nodeURI); // suspend the queue\n\n let fetchUrl = self.remappedURI(nodeURI, baseURI);\n let dbName = fetchUrl.split(\".\").join(\"_\");\n\n const parseComp = function (f) {\n\n let result = JSON.parse(f);\n\n let nativeObject = result;\n // console.log(nativeObject);\n\n if (nativeObject) {\n callback_async(nativeObject);\n self.virtualTime.resume(\"after loading \" + nodeURI); // resume the queue; may invoke dispatch(), so call last before returning to the host\n\n } else {\n\n self.logger.warnx(\"loadComponent\", \"error loading\", nodeURI + \":\", error);\n errback_async(error);\n self.virtualTime.resume(\"after loading \" + nodeURI); // resume the queue; may invoke dispatch(), so call last before returning to the host\n }\n\n }\n\n\n //var fileName = \"\";\n // let userDB = _LCSDB.user(_LCS_WORLD_USER.pub); \n if (dbName.includes(\"proxy\")) {\n //userDB = await window._LCS_SYS_USER.get('proxy').then();\n let proxyDB = self.proxy ? _LCSDB.user(self.proxy) : _LCSDB.user(_LCS_WORLD_USER.pub);\n let fileName = dbName + '_json';\n let dbNode = proxyDB.get('proxy').get(fileName);\n let nodeProm = new Promise(res => dbNode.once(res));\n\n nodeProm.then(comp => {\n parseComp(comp);\n })\n\n // (function(r){\n // //console.log(r);\n // parseComp(r);\n\n // });\n\n } else {\n var worldName = dbName.split('/')[1];\n var fileName = dbName.split('/')[2];\n //+ '_json';\n\n if (!fileName) {\n worldName = self.helpers.appPath\n fileName = dbName + '_json';\n } else {\n fileName = fileName + '_json';\n }\n\n let dbNode = _LCSDB.user(_LCS_WORLD_USER.pub).get('worlds').path(worldName).get(fileName);\n\n let nodeProm = new Promise(res => dbNode.once(res))\n nodeProm.then(comp => {\n parseComp(comp);\n })\n\n // (function(r){\n // //console.log(r);\n // parseComp(r);\n\n // });\n }\n\n //console.log(source);\n\n //userDB.get(fileName).once(async function(res) {\n\n\n\n\n // }, {wait: 1000})\n }\n\n }", "async onReady() {\n // Initialize your adapter here\n await this.setObjectNotExistsAsync('speed', {\n type: 'channel',\n common: {\n name: 'speed'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.download', {\n type: 'state',\n common: {\n name: 'download',\n role: 'info.status',\n type: 'number',\n desc: 'Download speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.upload', {\n type: 'state',\n common: {\n name: 'upload',\n role: 'info.status',\n type: 'number',\n desc: 'Upload speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.ping', {\n type: 'state',\n common: {\n name: 'ping',\n role: 'info.status',\n type: 'number',\n desc: 'Ping Latency',\n def: 0,\n read: true,\n write: false,\n unit: 'ms',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.progress', {\n type: 'state',\n common: {\n name: 'progress',\n role: 'info.status',\n type: 'number',\n desc: 'Progress',\n def: 0,\n read: true,\n write: false,\n unit: '%',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.speedcheck', {\n type: 'state',\n common: {\n name: 'Run speed test',\n type: 'boolean',\n read: true,\n role: 'button',\n write: true,\n def: false\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress', {\n type: 'channel',\n common: {\n name: 'speed'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.download', {\n type: 'state',\n common: {\n name: 'download',\n role: 'info.status',\n type: 'number',\n desc: 'Download speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.upload', {\n type: 'state',\n common: {\n name: 'upload',\n role: 'info.status',\n type: 'number',\n desc: 'Upload speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.ping', {\n type: 'state',\n common: {\n name: 'ping',\n role: 'info.status',\n type: 'number',\n desc: 'Ping Latency',\n def: 0,\n read: true,\n write: false,\n unit: 'ms',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.progress', {\n type: 'state',\n common: {\n name: 'progress',\n role: 'info.status',\n type: 'number',\n desc: 'Progress',\n def: 0,\n read: true,\n write: false,\n unit: '%',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.speedcheck', {\n type: 'state',\n common: {\n name: 'Run speed test',\n type: 'boolean',\n read: true,\n role: 'button',\n write: true,\n def: false\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info', {\n type: 'channel',\n common: {\n name: 'Information'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info.externalip', {\n type: 'state',\n common: {\n name: 'External IP',\n role: 'info.status',\n type: 'string',\n desc: 'External IP',\n read: true,\n write: false,\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info.internalip', {\n type: 'state',\n common: {\n name: 'Internal IP',\n role: 'info.status',\n type: 'string',\n desc: 'Internal IP',\n read: true,\n write: false,\n },\n native: {},\n });\n this.subscribeStates('*');\n await this.setStateAsync('info.connection', { val: true, ack: true });\n // let result = await this.checkPasswordAsync('admin', 'iobroker');\n // this.log.info('check user admin pw iobroker: ' + result);\n // result = await this.checkGroupAsync('admin', 'admin');\n // this.log.info('check group user admin group admin: ' + result);\n if (this.config.polltime > 1) {\n this.log.info('Checking internet speed every ' + this.config.polltime + ' minutes');\n } else {\n this.log.info('Checking internet speed every ' + this.config.polltime + ' minute');\n }\n await this.start(this.config.polltime);\n }", "enqueue() {\n\n }", "started() { }", "onBrowserStart(browser) {\n\n }", "getPort2() {\n return 0;\n }", "requestReceived(request,response){\n if(this.config.log){\n const logData={\n method : request.method,\n url : request.url,\n headers : request.headers\n };\n\n this.config.logFunction(\n logData\n );\n }\n\n let uri = url.parse(request.url);\n uri.protocol='http';\n uri.host=uri.hostname=request.headers.host;\n uri.port=80;\n uri.query=querystring.parse(uri.query);\n\n if(request.connection.encrypted){\n uri.protocol='https';\n uri.port=443;\n }\n\n (\n function(){\n if(!uri.host){\n return;\n }\n const host=uri.host.split(':');\n\n if(!host[1]){\n return;\n }\n uri.host=uri.hostname=host[0];\n uri.port=host[1];\n }\n )();\n\n for(let key in uri){\n if(uri[key]!==null){\n continue;\n }\n uri[key]='';\n }\n\n request.uri=uri;\n\n if(\n this.onRawRequest(\n request,\n response,\n completeServing.bind(this)\n )\n ){\n return;\n };\n\n uri=uri.pathname;\n\n if (uri=='/'){\n uri=`/${this.config.server.index}`;\n }\n\n let hostname= [];\n\n if (request.headers.host !== undefined){\n hostname = request.headers.host.split(':');\n }\n\n let root = this.config.root;\n\n if(this.config.verbose){\n console.log(`${this.config.logID} REQUEST ###\\n\\n`,\n request.headers,'\\n',\n uri,'\\n\\n',\n hostname,'\\n\\n'\n );\n }\n\n if(this.config.domain!='0.0.0.0' && hostname.length > 0 && hostname[0]!=this.config.domain){\n if(!this.config.domains[hostname[0]]){\n if(this.config.verbose){\n console.log(`${this.config.logID} INVALID HOST ###\\n\\n`);\n }\n this.serveFile(hostname[0],false,response);\n return;\n }\n root=this.config.domains[hostname[0]];\n }\n\n\n if(this.config.verbose){\n console.log(`${this.config.logID} USING ROOT : ${root}###\\n\\n`);\n }\n\n if(uri.slice(-1)=='/'){\n uri+=this.config.server.index;\n }\n\n request.url=uri;\n request.serverRoot=root;\n\n request.body='';\n\n request.on(\n 'data',\n function(chunk){\n request.body+=chunk;\n }.bind(this)\n ).on(\n 'end',\n function(){\n if(this.config.verbose){\n console.log(`###REQUEST BODY :\n ${request.body}\n ###\n `);\n }\n\n requestBodyComplete.bind(this,request,response)();\n }.bind(this)\n );\n }", "function OnChannelOpen()\n{\n}", "connect() {\n throw new Error(\n 'The Message Bus is not currently supported in browser environments'\n );\n }", "constructor() {\n throw new Error('Not implemented');\n }", "constructor() {\n this._connectionResolver = new pip_services3_components_node_1.ConnectionResolver();\n this._maxKeySize = 250;\n this._maxExpiration = 2592000;\n this._maxValue = 1048576;\n this._poolSize = 5;\n this._reconnect = 10000;\n this._timeout = 5000;\n this._retries = 5;\n this._failures = 5;\n this._retry = 30000;\n this._remove = false;\n this._idle = 5000;\n this._client = null;\n }", "componentDidMount()\n {\n\n }", "function OfflineStreamProcessor(config) {\n config = config || {};\n var context = this.context;\n var eventBus = config.eventBus;\n var events = config.events;\n var errors = config.errors;\n var debug = config.debug;\n var constants = config.constants;\n var settings = config.settings;\n var dashConstants = config.dashConstants;\n var manifestId = config.id;\n var type = config.type;\n var streamInfo = config.streamInfo;\n var errHandler = config.errHandler;\n var mediaPlayerModel = config.mediaPlayerModel;\n var abrController = config.abrController;\n var playbackController = config.playbackController;\n var adapter = config.adapter;\n var dashMetrics = config.dashMetrics;\n var baseURLController = config.baseURLController;\n var timelineConverter = config.timelineConverter;\n var bitrate = config.bitrate;\n var offlineStoreController = config.offlineStoreController;\n var completedCb = config.callbacks && config.callbacks.completed;\n var progressCb = config.callbacks && config.callbacks.progression;\n var instance, logger, mediaInfo, indexHandler, representationController, fragmentModel, updating, downloadedSegments, isInitialized, segmentsController, isStopped;\n\n function setup() {\n resetInitialSettings();\n logger = debug.getLogger(instance);\n segmentsController = Object(_dash_controllers_SegmentsController__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(context).create({\n events: events,\n eventBus: eventBus,\n streamInfo: streamInfo,\n timelineConverter: timelineConverter,\n dashConstants: dashConstants,\n segmentBaseController: config.segmentBaseController,\n type: type\n });\n indexHandler = Object(_dash_DashHandler__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(context).create({\n streamInfo: streamInfo,\n type: type,\n timelineConverter: timelineConverter,\n dashMetrics: dashMetrics,\n mediaPlayerModel: mediaPlayerModel,\n baseURLController: baseURLController,\n errHandler: errHandler,\n settings: settings,\n // boxParser: boxParser,\n eventBus: eventBus,\n events: events,\n debug: debug,\n requestModifier: Object(_streaming_utils_RequestModifier__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(context).getInstance(),\n dashConstants: dashConstants,\n constants: constants,\n segmentsController: segmentsController,\n urlUtils: Object(_streaming_utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(context).getInstance()\n });\n representationController = Object(_dash_controllers_RepresentationController__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(context).create({\n streamInfo: streamInfo,\n type: type,\n abrController: abrController,\n dashMetrics: dashMetrics,\n playbackController: playbackController,\n timelineConverter: timelineConverter,\n dashConstants: dashConstants,\n events: events,\n eventBus: eventBus,\n errors: errors,\n segmentsController: segmentsController\n });\n fragmentModel = Object(_streaming_models_FragmentModel__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(context).create({\n streamInfo: streamInfo,\n dashMetrics: dashMetrics,\n fragmentLoader: Object(_streaming_FragmentLoader__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(context).create({\n dashMetrics: dashMetrics,\n mediaPlayerModel: mediaPlayerModel,\n errHandler: errHandler,\n requestModifier: Object(_streaming_utils_RequestModifier__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(context).getInstance(),\n settings: settings,\n eventBus: eventBus,\n events: events,\n errors: errors,\n constants: constants,\n dashConstants: dashConstants,\n urlUtils: Object(_streaming_utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(context).getInstance()\n }),\n debug: debug,\n eventBus: eventBus,\n events: events\n });\n eventBus.on(events.STREAM_REQUESTING_COMPLETED, onStreamRequestingCompleted, instance);\n eventBus.on(events.FRAGMENT_LOADING_COMPLETED, onFragmentLoadingCompleted, instance);\n }\n\n function initialize(_mediaInfo) {\n mediaInfo = _mediaInfo;\n indexHandler.initialize(false);\n updateRepresentation(mediaInfo);\n }\n\n function isInitRequest(request) {\n return request.type === 'InitializationSegment';\n }\n\n function onFragmentLoadingCompleted(e) {\n if (e.sender !== fragmentModel) {\n return;\n }\n\n if (e.request !== null) {\n var isInit = isInitRequest(e.request);\n var suffix = isInit ? 'init' : e.request.index;\n var fragmentName = e.request.representationId + '_' + suffix;\n offlineStoreController.storeFragment(manifestId, fragmentName, e.response).then(function () {\n if (!isInit) {\n // store current index and downloadedSegments number\n offlineStoreController.setRepresentationCurrentState(manifestId, e.request.representationId, {\n index: e.request.index,\n downloaded: downloadedSegments\n });\n }\n });\n }\n\n if (e.error && e.request.serviceLocation && !isStopped) {\n fragmentModel.executeRequest(e.request);\n } else {\n downloadedSegments++;\n download();\n }\n }\n\n function onStreamRequestingCompleted(e) {\n if (e.fragmentModel !== fragmentModel) {\n return;\n }\n\n logger.info(\"[\".concat(manifestId, \"] Stream is complete\"));\n stop();\n completedCb();\n }\n\n function getRepresentationController() {\n return representationController;\n }\n\n function getRepresentationId() {\n return representationController.getCurrentRepresentation().id;\n }\n /**\n * Stops download of fragments\n * @memberof OfflineStreamProcessor#\n */\n\n\n function stop() {\n if (isStopped) {\n return;\n }\n\n isStopped = true;\n }\n\n function removeExecutedRequestsBeforeTime(time) {\n if (fragmentModel) {\n fragmentModel.removeExecutedRequestsBeforeTime(time);\n }\n }\n /**\n * Execute init request for the represenation\n * @memberof OfflineStreamProcessor#\n */\n\n\n function getInitRequest() {\n if (!representationController.getCurrentRepresentation()) {\n return null;\n }\n\n return indexHandler.getInitRequest(getMediaInfo(), representationController.getCurrentRepresentation());\n }\n /**\n * Get next request\n * @memberof OfflineStreamProcessor#\n */\n\n\n function getNextRequest() {\n return indexHandler.getNextSegmentRequest(getMediaInfo(), representationController.getCurrentRepresentation());\n }\n /**\n * Start download\n * @memberof OfflineStreamProcessor#\n */\n\n\n function start() {\n if (representationController) {\n if (!representationController.getCurrentRepresentation()) {\n throw new Error('Start denied to OfflineStreamProcessor');\n }\n\n isStopped = false;\n offlineStoreController.getRepresentationCurrentState(manifestId, representationController.getCurrentRepresentation().id).then(function (state) {\n if (state) {\n indexHandler.setCurrentIndex(state.index);\n downloadedSegments = state.downloaded;\n }\n\n download();\n })[\"catch\"](function () {\n // start from beginining\n download();\n });\n }\n }\n /**\n * Performs download of fragment according to type\n * @memberof OfflineStreamProcessor#\n */\n\n\n function download() {\n if (isStopped) {\n return;\n }\n\n if (isNaN(representationController.getCurrentRepresentation())) {\n var request = null;\n\n if (!isInitialized) {\n request = getInitRequest();\n isInitialized = true;\n } else {\n request = getNextRequest(); // update progression : done here because availableSegmentsNumber is done in getNextRequest from dash handler\n\n updateProgression();\n }\n\n if (request) {\n logger.info(\"[\".concat(manifestId, \"] download request : \").concat(request.url));\n fragmentModel.executeRequest(request);\n } else {\n logger.info(\"[\".concat(manifestId, \"] no request to be downloaded\"));\n }\n }\n }\n /**\n * Update representation\n * @param {Object} mediaInfo - mediaInfo\n * @memberof OfflineStreamProcessor#\n */\n\n\n function updateRepresentation(mediaInfo) {\n updating = true;\n var voRepresentations = adapter.getVoRepresentations(mediaInfo); // get representation VO according to id.\n\n var quality = voRepresentations.findIndex(function (representation) {\n return representation.id === bitrate.id;\n });\n\n if (type !== constants.VIDEO && type !== constants.AUDIO && type !== constants.TEXT) {\n updating = false;\n return;\n }\n\n representationController.updateData(null, voRepresentations, type, mediaInfo.isFragmented, quality);\n }\n\n function isUpdating() {\n return updating;\n }\n\n function getType() {\n return type;\n }\n\n function getMediaInfo() {\n return mediaInfo;\n }\n\n function getAvailableSegmentsNumber() {\n return representationController.getCurrentRepresentation().availableSegmentsNumber + 1; // do not forget init segment\n }\n\n function updateProgression() {\n if (progressCb) {\n progressCb(instance, downloadedSegments, getAvailableSegmentsNumber());\n }\n }\n\n function resetInitialSettings() {\n isInitialized = false;\n downloadedSegments = 0;\n updating = false;\n }\n /**\n * Reset\n * @memberof OfflineStreamProcessor#\n */\n\n\n function reset() {\n resetInitialSettings();\n indexHandler.reset();\n eventBus.off(events.STREAM_REQUESTING_COMPLETED, onStreamRequestingCompleted, instance);\n eventBus.off(events.FRAGMENT_LOADING_COMPLETED, onFragmentLoadingCompleted, instance);\n }\n\n instance = {\n initialize: initialize,\n getMediaInfo: getMediaInfo,\n getRepresentationController: getRepresentationController,\n removeExecutedRequestsBeforeTime: removeExecutedRequestsBeforeTime,\n getType: getType,\n getRepresentationId: getRepresentationId,\n isUpdating: isUpdating,\n start: start,\n stop: stop,\n getAvailableSegmentsNumber: getAvailableSegmentsNumber,\n reset: reset\n };\n setup();\n return instance;\n}", "constructor() {\r\n }", "constructor() {\n\t\t// ...\n\t}", "static get STATUS() {\n return 0;\n }", "onReady() {\n return __awaiter(this, void 0, void 0, function* () {\n this.logger = new log_1.ioBrokerLogger(this.log);\n yield this.setObjectNotExistsAsync(\"verify_code\", {\n type: \"state\",\n common: {\n name: \"2FA verification code\",\n type: \"number\",\n role: \"state\",\n read: true,\n write: true,\n },\n native: {},\n });\n yield this.setObjectNotExistsAsync(\"info\", {\n type: \"channel\",\n common: {\n name: \"info\"\n },\n native: {},\n });\n yield this.setObjectNotExistsAsync(\"info.connection\", {\n type: \"state\",\n common: {\n name: \"Global connection\",\n type: \"boolean\",\n role: \"indicator.connection\",\n read: true,\n write: false,\n },\n native: {},\n });\n yield this.setStateAsync(\"info.connection\", { val: false, ack: true });\n yield this.setObjectNotExistsAsync(\"info.push_connection\", {\n type: \"state\",\n common: {\n name: \"Push notification connection\",\n type: \"boolean\",\n role: \"indicator.connection\",\n read: true,\n write: false,\n },\n native: {},\n });\n // Remove old states of previous adapter versions\n try {\n const schedule_modes = yield this.getStatesAsync(\"*.schedule_mode\");\n Object.keys(schedule_modes).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const push_notifications = yield this.getStatesAsync(\"push_notification.*\");\n Object.keys(push_notifications).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n yield this.delObjectAsync(\"push_notification\");\n }\n catch (error) {\n }\n try {\n const last_camera_url = yield this.getStatesAsync(\"*.last_camera_url\");\n Object.keys(last_camera_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const captured_pic_url = yield this.getStatesAsync(\"*.captured_pic_url\");\n Object.keys(captured_pic_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const person_identified = yield this.getStatesAsync(\"*.person_identified\");\n Object.keys(person_identified).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const last_captured_pic_url = yield this.getStatesAsync(\"*.last_captured_pic_url\");\n Object.keys(last_captured_pic_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const last_captured_pic_html = yield this.getStatesAsync(\"*.last_captured_pic_html\");\n Object.keys(last_captured_pic_html).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n // End\n // Reset event states if necessary (for example because of an unclean exit)\n yield this.initializeEvents(types_1.CameraStateID.PERSON_DETECTED);\n yield this.initializeEvents(types_1.CameraStateID.MOTION_DETECTED);\n yield this.initializeEvents(types_1.DoorbellStateID.RINGING);\n yield this.initializeEvents(types_1.IndoorCameraStateID.CRYING_DETECTED);\n yield this.initializeEvents(types_1.IndoorCameraStateID.SOUND_DETECTED);\n yield this.initializeEvents(types_1.IndoorCameraStateID.PET_DETECTED);\n try {\n if (fs.statSync(this.persistentFile).isFile()) {\n const fileContent = fs.readFileSync(this.persistentFile, \"utf8\");\n this.persistentData = JSON.parse(fileContent);\n }\n }\n catch (err) {\n this.logger.debug(\"No stored data from last exit found.\");\n }\n //TODO: Temporary Test to be removed!\n /*await this.setObjectNotExistsAsync(\"test_button\", {\n type: \"state\",\n common: {\n name: \"Test button\",\n type: \"boolean\",\n role: \"button\",\n read: false,\n write: true,\n },\n native: {},\n });\n this.subscribeStates(\"test_button\");\n await this.setObjectNotExistsAsync(\"test_button2\", {\n type: \"state\",\n common: {\n name: \"Test button2\",\n type: \"boolean\",\n role: \"button\",\n read: false,\n write: true,\n },\n native: {},\n });\n this.subscribeStates(\"test_button2\");*/\n // END\n this.subscribeStates(\"verify_code\");\n const systemConfig = yield this.getForeignObjectAsync(\"system.config\");\n let countryCode = undefined;\n let languageCode = undefined;\n if (systemConfig) {\n countryCode = i18n_iso_countries_1.getAlpha2Code(systemConfig.common.country, \"en\");\n if (i18n_iso_languages_1.isValid(systemConfig.common.language))\n languageCode = systemConfig.common.language;\n }\n try {\n const adapter_info = yield this.getForeignObjectAsync(`system.adapter.${this.namespace}`);\n if (adapter_info && adapter_info.common && adapter_info.common.version) {\n if (this.persistentData.version !== adapter_info.common.version) {\n const currentVersion = Number.parseFloat(utils_1.removeLastChar(adapter_info.common.version, \".\"));\n const previousVersion = this.persistentData.version !== \"\" && this.persistentData.version !== undefined ? Number.parseFloat(utils_1.removeLastChar(this.persistentData.version, \".\")) : 0;\n this.logger.debug(`Handling of adapter update - currentVersion: ${currentVersion} previousVersion: ${previousVersion}`);\n if (previousVersion < currentVersion) {\n yield utils_1.handleUpdate(this, this.logger, previousVersion);\n this.persistentData.version = adapter_info.common.version;\n this.writePersistentData();\n }\n }\n }\n }\n catch (error) {\n this.logger.error(`Handling of adapter update - Error:`, error);\n }\n this.eufy = new EufySecurityAPI.EufySecurity(this, this.logger, countryCode, languageCode);\n this.eufy.on(\"stations\", (stations) => this.handleStations(stations));\n this.eufy.on(\"devices\", (devices) => this.handleDevices(devices));\n this.eufy.on(\"push message\", (messages) => this.handlePushNotification(messages));\n this.eufy.on(\"connect\", () => this.onConnect());\n this.eufy.on(\"close\", () => this.onClose());\n this.eufy.on(\"livestream start\", (station, device, url) => this.onStartLivestream(station, device, url));\n this.eufy.on(\"livestream stop\", (station, device) => this.onStopLivestream(station, device));\n this.eufy.on(\"push connect\", () => this.onPushConnect());\n this.eufy.on(\"push close\", () => this.onPushClose());\n const api = this.eufy.getApi();\n if (this.persistentData.api_base && this.persistentData.api_base != \"\") {\n this.logger.debug(`Load previous api_base: ${this.persistentData.api_base}`);\n api.setAPIBase(this.persistentData.api_base);\n }\n if (this.persistentData.login_hash && this.persistentData.login_hash != \"\") {\n this.logger.debug(`Load previous login_hash: ${this.persistentData.login_hash}`);\n if (utils_1.md5(`${this.config.username}:${this.config.password}`) != this.persistentData.login_hash) {\n this.logger.info(`Authentication properties changed, invalidate saved cloud token.`);\n this.persistentData.cloud_token = \"\";\n this.persistentData.cloud_token_expiration = 0;\n this.persistentData.api_base = \"\";\n }\n }\n else {\n this.persistentData.cloud_token = \"\";\n this.persistentData.cloud_token_expiration = 0;\n }\n if (this.persistentData.cloud_token && this.persistentData.cloud_token != \"\") {\n this.logger.debug(`Load previous token: ${this.persistentData.cloud_token} token_expiration: ${this.persistentData.cloud_token_expiration}`);\n api.setToken(this.persistentData.cloud_token);\n api.setTokenExpiration(new Date(this.persistentData.cloud_token_expiration));\n }\n if (!this.persistentData.openudid || this.persistentData.openudid == \"\") {\n this.persistentData.openudid = utils_1.generateUDID();\n this.logger.debug(`Generated new openudid: ${this.persistentData.openudid}`);\n }\n api.setOpenUDID(this.persistentData.openudid);\n if (!this.persistentData.serial_number || this.persistentData.serial_number == \"\") {\n this.persistentData.serial_number = utils_1.generateSerialnumber(12);\n this.logger.debug(`Generated new serial_number: ${this.persistentData.serial_number}`);\n }\n api.setSerialNumber(this.persistentData.serial_number);\n yield this.eufy.logon();\n });\n }", "function AppMeasurement(r){var a=this;a.version=\"2.8.2\";var k=window;k.s_c_in||(k.s_c_il=[],k.s_c_in=0);a._il=k.s_c_il;a._in=k.s_c_in;a._il[a._in]=a;k.s_c_in++;a._c=\"s_c\";var p=k.AppMeasurement.Xb;p||(p=null);var n=k,m,s;try{for(m=n.parent,s=n.location;m&&m.location&&s&&\"\"+m.location!=\"\"+s&&n.location&&\"\"+m.location!=\"\"+n.location&&m.location.host==s.host;)n=m,m=n.parent}catch(u){}a.F=function(a){try{console.log(a)}catch(b){}};a.Oa=function(a){return\"\"+parseInt(a)==\"\"+a};a.replace=function(a,b,d){return!a||\r\n0>a.indexOf(b)?a:a.split(b).join(d)};a.escape=function(c){var b,d;if(!c)return c;c=encodeURIComponent(c);for(b=0;7>b;b++)d=\"+~!*()'\".substring(b,b+1),0<=c.indexOf(d)&&(c=a.replace(c,d,\"%\"+d.charCodeAt(0).toString(16).toUpperCase()));return c};a.unescape=function(c){if(!c)return c;c=0<=c.indexOf(\"+\")?a.replace(c,\"+\",\" \"):c;try{return decodeURIComponent(c)}catch(b){}return unescape(c)};a.Fb=function(){var c=k.location.hostname,b=a.fpCookieDomainPeriods,d;b||(b=a.cookieDomainPeriods);if(c&&!a.Ga&&!/^[0-9.]+$/.test(c)&&\r\n(b=b?parseInt(b):2,b=2<b?b:2,d=c.lastIndexOf(\".\"),0<=d)){for(;0<=d&&1<b;)d=c.lastIndexOf(\".\",d-1),b--;a.Ga=0<d?c.substring(d):c}return a.Ga};a.c_r=a.cookieRead=function(c){c=a.escape(c);var b=\" \"+a.d.cookie,d=b.indexOf(\" \"+c+\"=\"),f=0>d?d:b.indexOf(\";\",d);c=0>d?\"\":a.unescape(b.substring(d+2+c.length,0>f?b.length:f));return\"[[B]]\"!=c?c:\"\"};a.c_w=a.cookieWrite=function(c,b,d){var f=a.Fb(),e=a.cookieLifetime,g;b=\"\"+b;e=e?(\"\"+e).toUpperCase():\"\";d&&\"SESSION\"!=e&&\"NONE\"!=e&&((g=\"\"!=b?parseInt(e?e:0):-60)?\r\n(d=new Date,d.setTime(d.getTime()+1E3*g)):1==d&&(d=new Date,g=d.getYear(),d.setYear(g+5+(1900>g?1900:0))));return c&&\"NONE\"!=e?(a.d.cookie=a.escape(c)+\"=\"+a.escape(\"\"!=b?b:\"[[B]]\")+\"; path=/;\"+(d&&\"SESSION\"!=e?\" expires=\"+d.toUTCString()+\";\":\"\")+(f?\" domain=\"+f+\";\":\"\"),a.cookieRead(c)==b):0};a.Cb=function(){var c=a.Util.getIeVersion();\"number\"===typeof c&&10>c&&(a.unsupportedBrowser=!0,a.rb(a,function(){}))};a.rb=function(a,b){for(var d in a)a.hasOwnProperty(d)&&\"function\"===typeof a[d]&&(a[d]=b)};\r\na.L=[];a.ja=function(c,b,d){if(a.Ha)return 0;a.maxDelay||(a.maxDelay=250);var f=0,e=(new Date).getTime()+a.maxDelay,g=a.d.visibilityState,h=[\"webkitvisibilitychange\",\"visibilitychange\"];g||(g=a.d.webkitVisibilityState);if(g&&\"prerender\"==g){if(!a.ka)for(a.ka=1,d=0;d<h.length;d++)a.d.addEventListener(h[d],function(){var c=a.d.visibilityState;c||(c=a.d.webkitVisibilityState);\"visible\"==c&&(a.ka=0,a.delayReady())});f=1;e=0}else d||a.p(\"_d\")&&(f=1);f&&(a.L.push({m:c,a:b,t:e}),a.ka||setTimeout(a.delayReady,\r\na.maxDelay));return f};a.delayReady=function(){var c=(new Date).getTime(),b=0,d;for(a.p(\"_d\")?b=1:a.za();0<a.L.length;){d=a.L.shift();if(b&&!d.t&&d.t>c){a.L.unshift(d);setTimeout(a.delayReady,parseInt(a.maxDelay/2));break}a.Ha=1;a[d.m].apply(a,d.a);a.Ha=0}};a.setAccount=a.sa=function(c){var b,d;if(!a.ja(\"setAccount\",arguments))if(a.account=c,a.allAccounts)for(b=a.allAccounts.concat(c.split(\",\")),a.allAccounts=[],b.sort(),d=0;d<b.length;d++)0!=d&&b[d-1]==b[d]||a.allAccounts.push(b[d]);else a.allAccounts=\r\nc.split(\",\")};a.foreachVar=function(c,b){var d,f,e,g,h=\"\";e=f=\"\";if(a.lightProfileID)d=a.P,(h=a.lightTrackVars)&&(h=\",\"+h+\",\"+a.oa.join(\",\")+\",\");else{d=a.g;if(a.pe||a.linkType)h=a.linkTrackVars,f=a.linkTrackEvents,a.pe&&(e=a.pe.substring(0,1).toUpperCase()+a.pe.substring(1),a[e]&&(h=a[e].Vb,f=a[e].Ub));h&&(h=\",\"+h+\",\"+a.H.join(\",\")+\",\");f&&h&&(h+=\",events,\")}b&&(b=\",\"+b+\",\");for(f=0;f<d.length;f++)e=d[f],(g=a[e])&&(!h||0<=h.indexOf(\",\"+e+\",\"))&&(!b||0<=b.indexOf(\",\"+e+\",\"))&&c(e,g)};a.r=function(c,\r\nb,d,f,e){var g=\"\",h,l,k,q,m=0;\"contextData\"==c&&(c=\"c\");if(b){for(h in b)if(!(Object.prototype[h]||e&&h.substring(0,e.length)!=e)&&b[h]&&(!d||0<=d.indexOf(\",\"+(f?f+\".\":\"\")+h+\",\"))){k=!1;if(m)for(l=0;l<m.length;l++)h.substring(0,m[l].length)==m[l]&&(k=!0);if(!k&&(\"\"==g&&(g+=\"&\"+c+\".\"),l=b[h],e&&(h=h.substring(e.length)),0<h.length))if(k=h.indexOf(\".\"),0<k)l=h.substring(0,k),k=(e?e:\"\")+l+\".\",m||(m=[]),m.push(k),g+=a.r(l,b,d,f,k);else if(\"boolean\"==typeof l&&(l=l?\"true\":\"false\"),l){if(\"retrieveLightData\"==\r\nf&&0>e.indexOf(\".contextData.\"))switch(k=h.substring(0,4),q=h.substring(4),h){case \"transactionID\":h=\"xact\";break;case \"channel\":h=\"ch\";break;case \"campaign\":h=\"v0\";break;default:a.Oa(q)&&(\"prop\"==k?h=\"c\"+q:\"eVar\"==k?h=\"v\"+q:\"list\"==k?h=\"l\"+q:\"hier\"==k&&(h=\"h\"+q,l=l.substring(0,255)))}g+=\"&\"+a.escape(h)+\"=\"+a.escape(l)}}\"\"!=g&&(g+=\"&.\"+c)}return g};a.usePostbacks=0;a.Ib=function(){var c=\"\",b,d,f,e,g,h,l,k,q=\"\",m=\"\",n=e=\"\";if(a.lightProfileID)b=a.P,(q=a.lightTrackVars)&&(q=\",\"+q+\",\"+a.oa.join(\",\")+\r\n\",\");else{b=a.g;if(a.pe||a.linkType)q=a.linkTrackVars,m=a.linkTrackEvents,a.pe&&(e=a.pe.substring(0,1).toUpperCase()+a.pe.substring(1),a[e]&&(q=a[e].Vb,m=a[e].Ub));q&&(q=\",\"+q+\",\"+a.H.join(\",\")+\",\");m&&(m=\",\"+m+\",\",q&&(q+=\",events,\"));a.events2&&(n+=(\"\"!=n?\",\":\"\")+a.events2)}if(a.visitor&&a.visitor.getCustomerIDs){e=p;if(g=a.visitor.getCustomerIDs())for(d in g)Object.prototype[d]||(f=g[d],\"object\"==typeof f&&(e||(e={}),f.id&&(e[d+\".id\"]=f.id),f.authState&&(e[d+\".as\"]=f.authState)));e&&(c+=a.r(\"cid\",\r\ne))}a.AudienceManagement&&a.AudienceManagement.isReady()&&(c+=a.r(\"d\",a.AudienceManagement.getEventCallConfigParams()));for(d=0;d<b.length;d++){e=b[d];g=a[e];f=e.substring(0,4);h=e.substring(4);g||(\"events\"==e&&n?(g=n,n=\"\"):\"marketingCloudOrgID\"==e&&a.visitor&&(g=a.visitor.marketingCloudOrgID));if(g&&(!q||0<=q.indexOf(\",\"+e+\",\"))){switch(e){case \"customerPerspective\":e=\"cp\";break;case \"marketingCloudOrgID\":e=\"mcorgid\";break;case \"supplementalDataID\":e=\"sdid\";break;case \"timestamp\":e=\"ts\";break;case \"dynamicVariablePrefix\":e=\r\n\"D\";break;case \"visitorID\":e=\"vid\";break;case \"marketingCloudVisitorID\":e=\"mid\";break;case \"analyticsVisitorID\":e=\"aid\";break;case \"audienceManagerLocationHint\":e=\"aamlh\";break;case \"audienceManagerBlob\":e=\"aamb\";break;case \"authState\":e=\"as\";break;case \"pageURL\":e=\"g\";255<g.length&&(a.pageURLRest=g.substring(255),g=g.substring(0,255));break;case \"pageURLRest\":e=\"-g\";break;case \"referrer\":e=\"r\";break;case \"vmk\":case \"visitorMigrationKey\":e=\"vmt\";break;case \"visitorMigrationServer\":e=\"vmf\";a.ssl&&\r\na.visitorMigrationServerSecure&&(g=\"\");break;case \"visitorMigrationServerSecure\":e=\"vmf\";!a.ssl&&a.visitorMigrationServer&&(g=\"\");break;case \"charSet\":e=\"ce\";break;case \"visitorNamespace\":e=\"ns\";break;case \"cookieDomainPeriods\":e=\"cdp\";break;case \"cookieLifetime\":e=\"cl\";break;case \"variableProvider\":e=\"vvp\";break;case \"currencyCode\":e=\"cc\";break;case \"channel\":e=\"ch\";break;case \"transactionID\":e=\"xact\";break;case \"campaign\":e=\"v0\";break;case \"latitude\":e=\"lat\";break;case \"longitude\":e=\"lon\";break;\r\ncase \"resolution\":e=\"s\";break;case \"colorDepth\":e=\"c\";break;case \"javascriptVersion\":e=\"j\";break;case \"javaEnabled\":e=\"v\";break;case \"cookiesEnabled\":e=\"k\";break;case \"browserWidth\":e=\"bw\";break;case \"browserHeight\":e=\"bh\";break;case \"connectionType\":e=\"ct\";break;case \"homepage\":e=\"hp\";break;case \"events\":n&&(g+=(\"\"!=g?\",\":\"\")+n);if(m)for(h=g.split(\",\"),g=\"\",f=0;f<h.length;f++)l=h[f],k=l.indexOf(\"=\"),0<=k&&(l=l.substring(0,k)),k=l.indexOf(\":\"),0<=k&&(l=l.substring(0,k)),0<=m.indexOf(\",\"+l+\",\")&&(g+=\r\n(g?\",\":\"\")+h[f]);break;case \"events2\":g=\"\";break;case \"contextData\":c+=a.r(\"c\",a[e],q,e);g=\"\";break;case \"lightProfileID\":e=\"mtp\";break;case \"lightStoreForSeconds\":e=\"mtss\";a.lightProfileID||(g=\"\");break;case \"lightIncrementBy\":e=\"mti\";a.lightProfileID||(g=\"\");break;case \"retrieveLightProfiles\":e=\"mtsr\";break;case \"deleteLightProfiles\":e=\"mtsd\";break;case \"retrieveLightData\":a.retrieveLightProfiles&&(c+=a.r(\"mts\",a[e],q,e));g=\"\";break;default:a.Oa(h)&&(\"prop\"==f?e=\"c\"+h:\"eVar\"==f?e=\"v\"+h:\"list\"==\r\nf?e=\"l\"+h:\"hier\"==f&&(e=\"h\"+h,g=g.substring(0,255)))}g&&(c+=\"&\"+e+\"=\"+(\"pev\"!=e.substring(0,3)?a.escape(g):g))}\"pev3\"==e&&a.e&&(c+=a.e)}a.na&&(c+=\"&lrt=\"+a.na,a.na=null);return c};a.D=function(a){var b=a.tagName;if(\"undefined\"!=\"\"+a.$b||\"undefined\"!=\"\"+a.Qb&&\"HTML\"!=(\"\"+a.Qb).toUpperCase())return\"\";b=b&&b.toUpperCase?b.toUpperCase():\"\";\"SHAPE\"==b&&(b=\"\");b&&((\"INPUT\"==b||\"BUTTON\"==b)&&a.type&&a.type.toUpperCase?b=a.type.toUpperCase():!b&&a.href&&(b=\"A\"));return b};a.Ka=function(a){var b=k.location,\r\nd=a.href?a.href:\"\",f,e,g;f=d.indexOf(\":\");e=d.indexOf(\"?\");g=d.indexOf(\"/\");d&&(0>f||0<=e&&f>e||0<=g&&f>g)&&(e=a.protocol&&1<a.protocol.length?a.protocol:b.protocol?b.protocol:\"\",f=b.pathname.lastIndexOf(\"/\"),d=(e?e+\"//\":\"\")+(a.host?a.host:b.host?b.host:\"\")+(\"/\"!=d.substring(0,1)?b.pathname.substring(0,0>f?0:f)+\"/\":\"\")+d);return d};a.M=function(c){var b=a.D(c),d,f,e=\"\",g=0;return b&&(d=c.protocol,f=c.onclick,!c.href||\"A\"!=b&&\"AREA\"!=b||f&&d&&!(0>d.toLowerCase().indexOf(\"javascript\"))?f?(e=a.replace(a.replace(a.replace(a.replace(\"\"+\r\nf,\"\\r\",\"\"),\"\\n\",\"\"),\"\\t\",\"\"),\" \",\"\"),g=2):\"INPUT\"==b||\"SUBMIT\"==b?(c.value?e=c.value:c.innerText?e=c.innerText:c.textContent&&(e=c.textContent),g=3):\"IMAGE\"==b&&c.src&&(e=c.src):e=a.Ka(c),e)?{id:e.substring(0,100),type:g}:0};a.Yb=function(c){for(var b=a.D(c),d=a.M(c);c&&!d&&\"BODY\"!=b;)if(c=c.parentElement?c.parentElement:c.parentNode)b=a.D(c),d=a.M(c);d&&\"BODY\"!=b||(c=0);c&&(b=c.onclick?\"\"+c.onclick:\"\",0<=b.indexOf(\".tl(\")||0<=b.indexOf(\".trackLink(\"))&&(c=0);return c};a.Pb=function(){var c,b,d=a.linkObject,\r\nf=a.linkType,e=a.linkURL,g,h;a.pa=1;d||(a.pa=0,d=a.clickObject);if(d){c=a.D(d);for(b=a.M(d);d&&!b&&\"BODY\"!=c;)if(d=d.parentElement?d.parentElement:d.parentNode)c=a.D(d),b=a.M(d);b&&\"BODY\"!=c||(d=0);if(d&&!a.linkObject){var l=d.onclick?\"\"+d.onclick:\"\";if(0<=l.indexOf(\".tl(\")||0<=l.indexOf(\".trackLink(\"))d=0}}else a.pa=1;!e&&d&&(e=a.Ka(d));e&&!a.linkLeaveQueryString&&(g=e.indexOf(\"?\"),0<=g&&(e=e.substring(0,g)));if(!f&&e){var m=0,q=0,n;if(a.trackDownloadLinks&&a.linkDownloadFileTypes)for(l=e.toLowerCase(),\r\ng=l.indexOf(\"?\"),h=l.indexOf(\"#\"),0<=g?0<=h&&h<g&&(g=h):g=h,0<=g&&(l=l.substring(0,g)),g=a.linkDownloadFileTypes.toLowerCase().split(\",\"),h=0;h<g.length;h++)(n=g[h])&&l.substring(l.length-(n.length+1))==\".\"+n&&(f=\"d\");if(a.trackExternalLinks&&!f&&(l=e.toLowerCase(),a.Na(l)&&(a.linkInternalFilters||(a.linkInternalFilters=k.location.hostname),g=0,a.linkExternalFilters?(g=a.linkExternalFilters.toLowerCase().split(\",\"),m=1):a.linkInternalFilters&&(g=a.linkInternalFilters.toLowerCase().split(\",\")),g))){for(h=\r\n0;h<g.length;h++)n=g[h],0<=l.indexOf(n)&&(q=1);q?m&&(f=\"e\"):m||(f=\"e\")}}a.linkObject=d;a.linkURL=e;a.linkType=f;if(a.trackClickMap||a.trackInlineStats)a.e=\"\",d&&(f=a.pageName,e=1,d=d.sourceIndex,f||(f=a.pageURL,e=0),k.s_objectID&&(b.id=k.s_objectID,d=b.type=1),f&&b&&b.id&&c&&(a.e=\"&pid=\"+a.escape(f.substring(0,255))+(e?\"&pidt=\"+e:\"\")+\"&oid=\"+a.escape(b.id.substring(0,100))+(b.type?\"&oidt=\"+b.type:\"\")+\"&ot=\"+c+(d?\"&oi=\"+d:\"\")))};a.Jb=function(){var c=a.pa,b=a.linkType,d=a.linkURL,f=a.linkName;b&&(d||\r\nf)&&(b=b.toLowerCase(),\"d\"!=b&&\"e\"!=b&&(b=\"o\"),a.pe=\"lnk_\"+b,a.pev1=d?a.escape(d):\"\",a.pev2=f?a.escape(f):\"\",c=1);a.abort&&(c=0);if(a.trackClickMap||a.trackInlineStats||a.ActivityMap){var b={},d=0,e=a.cookieRead(\"s_sq\"),g=e?e.split(\"&\"):0,h,l,k,e=0;if(g)for(h=0;h<g.length;h++)l=g[h].split(\"=\"),f=a.unescape(l[0]).split(\",\"),l=a.unescape(l[1]),b[l]=f;f=a.account.split(\",\");h={};for(k in a.contextData)k&&!Object.prototype[k]&&\"a.activitymap.\"==k.substring(0,14)&&(h[k]=a.contextData[k],a.contextData[k]=\r\n\"\");a.e=a.r(\"c\",h)+(a.e?a.e:\"\");if(c||a.e){c&&!a.e&&(e=1);for(l in b)if(!Object.prototype[l])for(k=0;k<f.length;k++)for(e&&(g=b[l].join(\",\"),g==a.account&&(a.e+=(\"&\"!=l.charAt(0)?\"&\":\"\")+l,b[l]=[],d=1)),h=0;h<b[l].length;h++)g=b[l][h],g==f[k]&&(e&&(a.e+=\"&u=\"+a.escape(g)+(\"&\"!=l.charAt(0)?\"&\":\"\")+l+\"&u=0\"),b[l].splice(h,1),d=1);c||(d=1);if(d){e=\"\";h=2;!c&&a.e&&(e=a.escape(f.join(\",\"))+\"=\"+a.escape(a.e),h=1);for(l in b)!Object.prototype[l]&&0<h&&0<b[l].length&&(e+=(e?\"&\":\"\")+a.escape(b[l].join(\",\"))+\r\n\"=\"+a.escape(l),h--);a.cookieWrite(\"s_sq\",e)}}}return c};a.Kb=function(){if(!a.Tb){var c=new Date,b=n.location,d,f,e=f=d=\"\",g=\"\",h=\"\",l=\"1.2\",k=a.cookieWrite(\"s_cc\",\"true\",0)?\"Y\":\"N\",m=\"\",p=\"\";if(c.setUTCDate&&(l=\"1.3\",(0).toPrecision&&(l=\"1.5\",c=[],c.forEach))){l=\"1.6\";f=0;d={};try{f=new Iterator(d),f.next&&(l=\"1.7\",c.reduce&&(l=\"1.8\",l.trim&&(l=\"1.8.1\",Date.parse&&(l=\"1.8.2\",Object.create&&(l=\"1.8.5\")))))}catch(r){}}d=screen.width+\"x\"+screen.height;e=navigator.javaEnabled()?\"Y\":\"N\";f=screen.pixelDepth?\r\nscreen.pixelDepth:screen.colorDepth;g=a.w.innerWidth?a.w.innerWidth:a.d.documentElement.offsetWidth;h=a.w.innerHeight?a.w.innerHeight:a.d.documentElement.offsetHeight;try{a.b.addBehavior(\"#default#homePage\"),m=a.b.Zb(b)?\"Y\":\"N\"}catch(s){}try{a.b.addBehavior(\"#default#clientCaps\"),p=a.b.connectionType}catch(t){}a.resolution=d;a.colorDepth=f;a.javascriptVersion=l;a.javaEnabled=e;a.cookiesEnabled=k;a.browserWidth=g;a.browserHeight=h;a.connectionType=p;a.homepage=m;a.Tb=1}};a.Q={};a.loadModule=function(c,\r\nb){var d=a.Q[c];if(!d){d=k[\"AppMeasurement_Module_\"+c]?new k[\"AppMeasurement_Module_\"+c](a):{};a.Q[c]=a[c]=d;d.kb=function(){return d.qb};d.sb=function(b){if(d.qb=b)a[c+\"_onLoad\"]=b,a.ja(c+\"_onLoad\",[a,d],1)||b(a,d)};try{Object.defineProperty?Object.defineProperty(d,\"onLoad\",{get:d.kb,set:d.sb}):d._olc=1}catch(f){d._olc=1}}b&&(a[c+\"_onLoad\"]=b,a.ja(c+\"_onLoad\",[a,d],1)||b(a,d))};a.p=function(c){var b,d;for(b in a.Q)if(!Object.prototype[b]&&(d=a.Q[b])&&(d._olc&&d.onLoad&&(d._olc=0,d.onLoad(a,d)),d[c]&&\r\nd[c]()))return 1;return 0};a.Mb=function(){var c=Math.floor(1E13*Math.random()),b=a.visitorSampling,d=a.visitorSamplingGroup,d=\"s_vsn_\"+(a.visitorNamespace?a.visitorNamespace:a.account)+(d?\"_\"+d:\"\"),f=a.cookieRead(d);if(b){b*=100;f&&(f=parseInt(f));if(!f){if(!a.cookieWrite(d,c))return 0;f=c}if(f%1E4>b)return 0}return 1};a.R=function(c,b){var d,f,e,g,h,l;for(d=0;2>d;d++)for(f=0<d?a.Ca:a.g,e=0;e<f.length;e++)if(g=f[e],(h=c[g])||c[\"!\"+g]){if(!b&&(\"contextData\"==g||\"retrieveLightData\"==g)&&a[g])for(l in a[g])h[l]||\r\n(h[l]=a[g][l]);a[g]=h}};a.Ya=function(c,b){var d,f,e,g;for(d=0;2>d;d++)for(f=0<d?a.Ca:a.g,e=0;e<f.length;e++)g=f[e],c[g]=a[g],b||c[g]||(c[\"!\"+g]=1)};a.Eb=function(a){var b,d,f,e,g,h=0,l,k=\"\",m=\"\";if(a&&255<a.length&&(b=\"\"+a,d=b.indexOf(\"?\"),0<d&&(l=b.substring(d+1),b=b.substring(0,d),e=b.toLowerCase(),f=0,\"http://\"==e.substring(0,7)?f+=7:\"https://\"==e.substring(0,8)&&(f+=8),d=e.indexOf(\"/\",f),0<d&&(e=e.substring(f,d),g=b.substring(d),b=b.substring(0,d),0<=e.indexOf(\"google\")?h=\",q,ie,start,search_key,word,kw,cd,\":\r\n0<=e.indexOf(\"yahoo.co\")&&(h=\",p,ei,\"),h&&l)))){if((a=l.split(\"&\"))&&1<a.length){for(f=0;f<a.length;f++)e=a[f],d=e.indexOf(\"=\"),0<d&&0<=h.indexOf(\",\"+e.substring(0,d)+\",\")?k+=(k?\"&\":\"\")+e:m+=(m?\"&\":\"\")+e;k&&m?l=k+\"&\"+m:m=\"\"}d=253-(l.length-m.length)-b.length;a=b+(0<d?g.substring(0,d):\"\")+\"?\"+l}return a};a.eb=function(c){var b=a.d.visibilityState,d=[\"webkitvisibilitychange\",\"visibilitychange\"];b||(b=a.d.webkitVisibilityState);if(b&&\"prerender\"==b){if(c)for(b=0;b<d.length;b++)a.d.addEventListener(d[b],\r\nfunction(){var b=a.d.visibilityState;b||(b=a.d.webkitVisibilityState);\"visible\"==b&&c()});return!1}return!0};a.fa=!1;a.J=!1;a.ub=function(){a.J=!0;a.j()};a.da=!1;a.V=!1;a.pb=function(c){a.marketingCloudVisitorID=c;a.V=!0;a.j()};a.ga=!1;a.W=!1;a.vb=function(c){a.visitorOptedOut=c;a.W=!0;a.j()};a.aa=!1;a.S=!1;a.$a=function(c){a.analyticsVisitorID=c;a.S=!0;a.j()};a.ca=!1;a.U=!1;a.bb=function(c){a.audienceManagerLocationHint=c;a.U=!0;a.j()};a.ba=!1;a.T=!1;a.ab=function(c){a.audienceManagerBlob=c;a.T=\r\n!0;a.j()};a.cb=function(c){a.maxDelay||(a.maxDelay=250);return a.p(\"_d\")?(c&&setTimeout(function(){c()},a.maxDelay),!1):!0};a.ea=!1;a.I=!1;a.za=function(){a.I=!0;a.j()};a.isReadyToTrack=function(){var c=!0,b=a.visitor,d,f,e;a.fa||a.J||(a.eb(a.ub)?a.J=!0:a.fa=!0);if(a.fa&&!a.J)return!1;b&&b.isAllowed()&&(a.da||a.marketingCloudVisitorID||!b.getMarketingCloudVisitorID||(a.da=!0,a.marketingCloudVisitorID=b.getMarketingCloudVisitorID([a,a.pb]),a.marketingCloudVisitorID&&(a.V=!0)),a.ga||a.visitorOptedOut||\r\n!b.isOptedOut||(a.ga=!0,a.visitorOptedOut=b.isOptedOut([a,a.vb]),a.visitorOptedOut!=p&&(a.W=!0)),a.aa||a.analyticsVisitorID||!b.getAnalyticsVisitorID||(a.aa=!0,a.analyticsVisitorID=b.getAnalyticsVisitorID([a,a.$a]),a.analyticsVisitorID&&(a.S=!0)),a.ca||a.audienceManagerLocationHint||!b.getAudienceManagerLocationHint||(a.ca=!0,a.audienceManagerLocationHint=b.getAudienceManagerLocationHint([a,a.bb]),a.audienceManagerLocationHint&&(a.U=!0)),a.ba||a.audienceManagerBlob||!b.getAudienceManagerBlob||(a.ba=\r\n!0,a.audienceManagerBlob=b.getAudienceManagerBlob([a,a.ab]),a.audienceManagerBlob&&(a.T=!0)),c=a.da&&!a.V&&!a.marketingCloudVisitorID,b=a.aa&&!a.S&&!a.analyticsVisitorID,d=a.ca&&!a.U&&!a.audienceManagerLocationHint,f=a.ba&&!a.T&&!a.audienceManagerBlob,e=a.ga&&!a.W,c=c||b||d||f||e?!1:!0);a.ea||a.I||(a.cb(a.za)?a.I=!0:a.ea=!0);a.ea&&!a.I&&(c=!1);return c};a.o=p;a.u=0;a.callbackWhenReadyToTrack=function(c,b,d){var f;f={};f.zb=c;f.yb=b;f.wb=d;a.o==p&&(a.o=[]);a.o.push(f);0==a.u&&(a.u=setInterval(a.j,\r\n100))};a.j=function(){var c;if(a.isReadyToTrack()&&(a.tb(),a.o!=p))for(;0<a.o.length;)c=a.o.shift(),c.yb.apply(c.zb,c.wb)};a.tb=function(){a.u&&(clearInterval(a.u),a.u=0)};a.mb=function(c){var b,d,f=p,e=p;if(!a.isReadyToTrack()){b=[];if(c!=p)for(d in f={},c)f[d]=c[d];e={};a.Ya(e,!0);b.push(f);b.push(e);a.callbackWhenReadyToTrack(a,a.track,b);return!0}return!1};a.Gb=function(){var c=a.cookieRead(\"s_fid\"),b=\"\",d=\"\",f;f=8;var e=4;if(!c||0>c.indexOf(\"-\")){for(c=0;16>c;c++)f=Math.floor(Math.random()*f),\r\nb+=\"0123456789ABCDEF\".substring(f,f+1),f=Math.floor(Math.random()*e),d+=\"0123456789ABCDEF\".substring(f,f+1),f=e=16;c=b+\"-\"+d}a.cookieWrite(\"s_fid\",c,1)||(c=0);return c};a.t=a.track=function(c,b){var d,f=new Date,e=\"s\"+Math.floor(f.getTime()/108E5)%10+Math.floor(1E13*Math.random()),g=f.getYear(),g=\"t=\"+a.escape(f.getDate()+\"/\"+f.getMonth()+\"/\"+(1900>g?g+1900:g)+\" \"+f.getHours()+\":\"+f.getMinutes()+\":\"+f.getSeconds()+\" \"+f.getDay()+\" \"+f.getTimezoneOffset());a.visitor&&a.visitor.getAuthState&&(a.authState=\r\na.visitor.getAuthState());a.p(\"_s\");a.mb(c)||(b&&a.R(b),c&&(d={},a.Ya(d,0),a.R(c)),a.Mb()&&!a.visitorOptedOut&&(a.analyticsVisitorID||a.marketingCloudVisitorID||(a.fid=a.Gb()),a.Pb(),a.usePlugins&&a.doPlugins&&a.doPlugins(a),a.account&&(a.abort||(a.trackOffline&&!a.timestamp&&(a.timestamp=Math.floor(f.getTime()/1E3)),f=k.location,a.pageURL||(a.pageURL=f.href?f.href:f),a.referrer||a.Za||(f=a.Util.getQueryParam(\"adobe_mc_ref\",null,null,!0),a.referrer=f||void 0===f?void 0===f?\"\":f:n.document.referrer),\r\na.Za=1,a.referrer=a.Eb(a.referrer),a.p(\"_g\")),a.Jb()&&!a.abort&&(a.visitor&&!a.supplementalDataID&&a.visitor.getSupplementalDataID&&(a.supplementalDataID=a.visitor.getSupplementalDataID(\"AppMeasurement:\"+a._in,a.expectSupplementalData?!1:!0)),a.Kb(),g+=a.Ib(),a.ob(e,g),a.p(\"_t\"),a.referrer=\"\"))),c&&a.R(d,1));a.abort=a.supplementalDataID=a.timestamp=a.pageURLRest=a.linkObject=a.clickObject=a.linkURL=a.linkName=a.linkType=k.s_objectID=a.pe=a.pev1=a.pev2=a.pev3=a.e=a.lightProfileID=0};a.Ba=[];a.registerPreTrackCallback=\r\nfunction(c){for(var b=[],d=1;d<arguments.length;d++)b.push(arguments[d]);\"function\"==typeof c?a.Ba.push([c,b]):a.debugTracking&&a.F(\"DEBUG: Non function type passed to registerPreTrackCallback\")};a.hb=function(c){a.xa(a.Ba,c)};a.Aa=[];a.registerPostTrackCallback=function(c){for(var b=[],d=1;d<arguments.length;d++)b.push(arguments[d]);\"function\"==typeof c?a.Aa.push([c,b]):a.debugTracking&&a.F(\"DEBUG: Non function type passed to registerPostTrackCallback\")};a.gb=function(c){a.xa(a.Aa,c)};a.xa=function(c,\r\nb){if(\"object\"==typeof c)for(var d=0;d<c.length;d++){var f=c[d][0],e=c[d][1];e.unshift(b);if(\"function\"==typeof f)try{f.apply(null,e)}catch(g){a.debugTracking&&a.F(g.message)}}};a.tl=a.trackLink=function(c,b,d,f,e){a.linkObject=c;a.linkType=b;a.linkName=d;e&&(a.l=c,a.A=e);return a.track(f)};a.trackLight=function(c,b,d,f){a.lightProfileID=c;a.lightStoreForSeconds=b;a.lightIncrementBy=d;return a.track(f)};a.clearVars=function(){var c,b;for(c=0;c<a.g.length;c++)if(b=a.g[c],\"prop\"==b.substring(0,4)||\r\n\"eVar\"==b.substring(0,4)||\"hier\"==b.substring(0,4)||\"list\"==b.substring(0,4)||\"channel\"==b||\"events\"==b||\"eventList\"==b||\"products\"==b||\"productList\"==b||\"purchaseID\"==b||\"transactionID\"==b||\"state\"==b||\"zip\"==b||\"campaign\"==b)a[b]=void 0};a.tagContainerMarker=\"\";a.ob=function(c,b){var d=a.ib()+\"/\"+c+\"?AQB=1&ndh=1&pf=1&\"+(a.ya()?\"callback=s_c_il[\"+a._in+\"].doPostbacks&et=1&\":\"\")+b+\"&AQE=1\";a.hb(d);a.fb(d);a.X()};a.ib=function(){var c=a.jb();return\"http\"+(a.ssl?\"s\":\"\")+\"://\"+c+\"/b/ss/\"+a.account+\"/\"+\r\n(a.mobile?\"5.\":\"\")+(a.ya()?\"10\":\"1\")+\"/JS-\"+a.version+(a.Sb?\"T\":\"\")+(a.tagContainerMarker?\"-\"+a.tagContainerMarker:\"\")};a.ya=function(){return a.AudienceManagement&&a.AudienceManagement.isReady()||0!=a.usePostbacks};a.jb=function(){var c=a.dc,b=a.trackingServer;b?a.trackingServerSecure&&a.ssl&&(b=a.trackingServerSecure):(c=c?(\"\"+c).toLowerCase():\"d1\",\"d1\"==c?c=\"112\":\"d2\"==c&&(c=\"122\"),b=a.lb()+\".\"+c+\".2o7.net\");return b};a.lb=function(){var c=a.visitorNamespace;c||(c=a.account.split(\",\")[0],c=c.replace(/[^0-9a-z]/gi,\r\n\"\"));return c};a.Xa=/{(%?)(.*?)(%?)}/;a.Wb=RegExp(a.Xa.source,\"g\");a.Db=function(c){if(\"object\"==typeof c.dests)for(var b=0;b<c.dests.length;++b){var d=c.dests[b];if(\"string\"==typeof d.c&&\"aa.\"==d.id.substr(0,3))for(var f=d.c.match(a.Wb),e=0;e<f.length;++e){var g=f[e],h=g.match(a.Xa),k=\"\";\"%\"==h[1]&&\"timezone_offset\"==h[2]?k=(new Date).getTimezoneOffset():\"%\"==h[1]&&\"timestampz\"==h[2]&&(k=a.Hb());d.c=d.c.replace(g,a.escape(k))}}};a.Hb=function(){var c=new Date,b=new Date(6E4*Math.abs(c.getTimezoneOffset()));\r\nreturn a.k(4,c.getFullYear())+\"-\"+a.k(2,c.getMonth()+1)+\"-\"+a.k(2,c.getDate())+\"T\"+a.k(2,c.getHours())+\":\"+a.k(2,c.getMinutes())+\":\"+a.k(2,c.getSeconds())+(0<c.getTimezoneOffset()?\"-\":\"+\")+a.k(2,b.getUTCHours())+\":\"+a.k(2,b.getUTCMinutes())};a.k=function(a,b){return(Array(a+1).join(0)+b).slice(-a)};a.ua={};a.doPostbacks=function(c){if(\"object\"==typeof c)if(a.Db(c),\"object\"==typeof a.AudienceManagement&&\"function\"==typeof a.AudienceManagement.isReady&&a.AudienceManagement.isReady()&&\"function\"==typeof a.AudienceManagement.passData)a.AudienceManagement.passData(c);\r\nelse if(\"object\"==typeof c&&\"object\"==typeof c.dests)for(var b=0;b<c.dests.length;++b){var d=c.dests[b];\"object\"==typeof d&&\"string\"==typeof d.c&&\"string\"==typeof d.id&&\"aa.\"==d.id.substr(0,3)&&(a.ua[d.id]=new Image,a.ua[d.id].alt=\"\",a.ua[d.id].src=d.c)}};a.fb=function(c){a.i||a.Lb();a.i.push(c);a.ma=a.C();a.Va()};a.Lb=function(){a.i=a.Nb();a.i||(a.i=[])};a.Nb=function(){var c,b;if(a.ta()){try{(b=k.localStorage.getItem(a.qa()))&&(c=k.JSON.parse(b))}catch(d){}return c}};a.ta=function(){var c=!0;a.trackOffline&&\r\na.offlineFilename&&k.localStorage&&k.JSON||(c=!1);return c};a.La=function(){var c=0;a.i&&(c=a.i.length);a.q&&c++;return c};a.X=function(){if(a.q&&(a.B&&a.B.complete&&a.B.G&&a.B.wa(),a.q))return;a.Ma=p;if(a.ra)a.ma>a.O&&a.Ta(a.i),a.va(500);else{var c=a.xb();if(0<c)a.va(c);else if(c=a.Ia())a.q=1,a.Ob(c),a.Rb(c)}};a.va=function(c){a.Ma||(c||(c=0),a.Ma=setTimeout(a.X,c))};a.xb=function(){var c;if(!a.trackOffline||0>=a.offlineThrottleDelay)return 0;c=a.C()-a.Ra;return a.offlineThrottleDelay<c?0:a.offlineThrottleDelay-\r\nc};a.Ia=function(){if(0<a.i.length)return a.i.shift()};a.Ob=function(c){if(a.debugTracking){var b=\"AppMeasurement Debug: \"+c;c=c.split(\"&\");var d;for(d=0;d<c.length;d++)b+=\"\\n\\t\"+a.unescape(c[d]);a.F(b)}};a.nb=function(){return a.marketingCloudVisitorID||a.analyticsVisitorID};a.Z=!1;var t;try{t=JSON.parse('{\"x\":\"y\"}')}catch(w){t=null}t&&\"y\"==t.x?(a.Z=!0,a.Y=function(a){return JSON.parse(a)}):k.$&&k.$.parseJSON?(a.Y=function(a){return k.$.parseJSON(a)},a.Z=!0):a.Y=function(){return null};a.Rb=function(c){var b,\r\nd,f;a.nb()&&2047<c.length&&(\"undefined\"!=typeof XMLHttpRequest&&(b=new XMLHttpRequest,\"withCredentials\"in b?d=1:b=0),b||\"undefined\"==typeof XDomainRequest||(b=new XDomainRequest,d=2),b&&(a.AudienceManagement&&a.AudienceManagement.isReady()||0!=a.usePostbacks)&&(a.Z?b.Da=!0:b=0));!b&&a.Wa&&(c=c.substring(0,2047));!b&&a.d.createElement&&(0!=a.usePostbacks||a.AudienceManagement&&a.AudienceManagement.isReady())&&(b=a.d.createElement(\"SCRIPT\"))&&\"async\"in b&&((f=(f=a.d.getElementsByTagName(\"HEAD\"))&&f[0]?\r\nf[0]:a.d.body)?(b.type=\"text/javascript\",b.setAttribute(\"async\",\"async\"),d=3):b=0);b||(b=new Image,b.alt=\"\",b.abort||\"undefined\"===typeof k.InstallTrigger||(b.abort=function(){b.src=p}));b.Sa=Date.now();b.Fa=function(){try{b.G&&(clearTimeout(b.G),b.G=0)}catch(a){}};b.onload=b.wa=function(){b.Sa&&(a.na=Date.now()-b.Sa);a.gb(c);b.Fa();a.Bb();a.ha();a.q=0;a.X();if(b.Da){b.Da=!1;try{a.doPostbacks(a.Y(b.responseText))}catch(d){}}};b.onabort=b.onerror=b.Ja=function(){b.Fa();(a.trackOffline||a.ra)&&a.q&&\r\na.i.unshift(a.Ab);a.q=0;a.ma>a.O&&a.Ta(a.i);a.ha();a.va(500)};b.onreadystatechange=function(){4==b.readyState&&(200==b.status?b.wa():b.Ja())};a.Ra=a.C();if(1==d||2==d){var e=c.indexOf(\"?\");f=c.substring(0,e);e=c.substring(e+1);e=e.replace(/&callback=[a-zA-Z0-9_.\\[\\]]+/,\"\");1==d?(b.open(\"POST\",f,!0),b.send(e)):2==d&&(b.open(\"POST\",f),b.send(e))}else if(b.src=c,3==d){if(a.Pa)try{f.removeChild(a.Pa)}catch(g){}f.firstChild?f.insertBefore(b,f.firstChild):f.appendChild(b);a.Pa=a.B}b.G=setTimeout(function(){b.G&&\r\n(b.complete?b.wa():(a.trackOffline&&b.abort&&b.abort(),b.Ja()))},5E3);a.Ab=c;a.B=k[\"s_i_\"+a.replace(a.account,\",\",\"_\")]=b;if(a.useForcedLinkTracking&&a.K||a.A)a.forcedLinkTrackingTimeout||(a.forcedLinkTrackingTimeout=250),a.ia=setTimeout(a.ha,a.forcedLinkTrackingTimeout)};a.Bb=function(){if(a.ta()&&!(a.Qa>a.O))try{k.localStorage.removeItem(a.qa()),a.Qa=a.C()}catch(c){}};a.Ta=function(c){if(a.ta()){a.Va();try{k.localStorage.setItem(a.qa(),k.JSON.stringify(c)),a.O=a.C()}catch(b){}}};a.Va=function(){if(a.trackOffline){if(!a.offlineLimit||\r\n0>=a.offlineLimit)a.offlineLimit=10;for(;a.i.length>a.offlineLimit;)a.Ia()}};a.forceOffline=function(){a.ra=!0};a.forceOnline=function(){a.ra=!1};a.qa=function(){return a.offlineFilename+\"-\"+a.visitorNamespace+a.account};a.C=function(){return(new Date).getTime()};a.Na=function(a){a=a.toLowerCase();return 0!=a.indexOf(\"#\")&&0!=a.indexOf(\"about:\")&&0!=a.indexOf(\"opera:\")&&0!=a.indexOf(\"javascript:\")?!0:!1};a.setTagContainer=function(c){var b,d,f;a.Sb=c;for(b=0;b<a._il.length;b++)if((d=a._il[b])&&\"s_l\"==\r\nd._c&&d.tagContainerName==c){a.R(d);if(d.lmq)for(b=0;b<d.lmq.length;b++)f=d.lmq[b],a.loadModule(f.n);if(d.ml)for(f in d.ml)if(a[f])for(b in c=a[f],f=d.ml[f],f)!Object.prototype[b]&&(\"function\"!=typeof f[b]||0>(\"\"+f[b]).indexOf(\"s_c_il\"))&&(c[b]=f[b]);if(d.mmq)for(b=0;b<d.mmq.length;b++)f=d.mmq[b],a[f.m]&&(c=a[f.m],c[f.f]&&\"function\"==typeof c[f.f]&&(f.a?c[f.f].apply(c,f.a):c[f.f].apply(c)));if(d.tq)for(b=0;b<d.tq.length;b++)a.track(d.tq[b]);d.s=a;break}};a.Util={urlEncode:a.escape,urlDecode:a.unescape,\r\ncookieRead:a.cookieRead,cookieWrite:a.cookieWrite,getQueryParam:function(c,b,d,f){var e,g=\"\";b||(b=a.pageURL?a.pageURL:k.location);d=d?d:\"&\";if(!c||!b)return g;b=\"\"+b;e=b.indexOf(\"?\");if(0>e)return g;b=d+b.substring(e+1)+d;if(!f||!(0<=b.indexOf(d+c+d)||0<=b.indexOf(d+c+\"=\"+d))){e=b.indexOf(\"#\");0<=e&&(b=b.substr(0,e)+d);e=b.indexOf(d+c+\"=\");if(0>e)return g;b=b.substring(e+d.length+c.length+1);e=b.indexOf(d);0<=e&&(b=b.substring(0,e));0<b.length&&(g=a.unescape(b));return g}},getIeVersion:function(){if(document.documentMode)return document.documentMode;\r\nfor(var a=7;4<a;a--){var b=document.createElement(\"div\");b.innerHTML=\"\\x3c!--[if IE \"+a+\"]><span></span><![endif]--\\x3e\";if(b.getElementsByTagName(\"span\").length)return a}return null}};a.H=\"supplementalDataID timestamp dynamicVariablePrefix visitorID marketingCloudVisitorID analyticsVisitorID audienceManagerLocationHint authState fid vmk visitorMigrationKey visitorMigrationServer visitorMigrationServerSecure charSet visitorNamespace cookieDomainPeriods fpCookieDomainPeriods cookieLifetime pageName pageURL customerPerspective referrer contextData currencyCode lightProfileID lightStoreForSeconds lightIncrementBy retrieveLightProfiles deleteLightProfiles retrieveLightData\".split(\" \");\r\na.g=a.H.concat(\"purchaseID variableProvider channel server pageType transactionID campaign state zip events events2 products audienceManagerBlob tnt\".split(\" \"));a.oa=\"timestamp charSet visitorNamespace cookieDomainPeriods cookieLifetime contextData lightProfileID lightStoreForSeconds lightIncrementBy\".split(\" \");a.P=a.oa.slice(0);a.Ca=\"account allAccounts debugTracking visitor visitorOptedOut trackOffline offlineLimit offlineThrottleDelay offlineFilename usePlugins doPlugins configURL visitorSampling visitorSamplingGroup linkObject clickObject linkURL linkName linkType trackDownloadLinks trackExternalLinks trackClickMap trackInlineStats linkLeaveQueryString linkTrackVars linkTrackEvents linkDownloadFileTypes linkExternalFilters linkInternalFilters useForcedLinkTracking forcedLinkTrackingTimeout trackingServer trackingServerSecure ssl abort mobile dc lightTrackVars maxDelay expectSupplementalData usePostbacks registerPreTrackCallback registerPostTrackCallback AudienceManagement\".split(\" \");\r\nfor(m=0;250>=m;m++)76>m&&(a.g.push(\"prop\"+m),a.P.push(\"prop\"+m)),a.g.push(\"eVar\"+m),a.P.push(\"eVar\"+m),6>m&&a.g.push(\"hier\"+m),4>m&&a.g.push(\"list\"+m);m=\"pe pev1 pev2 pev3 latitude longitude resolution colorDepth javascriptVersion javaEnabled cookiesEnabled browserWidth browserHeight connectionType homepage pageURLRest marketingCloudOrgID\".split(\" \");a.g=a.g.concat(m);a.H=a.H.concat(m);a.ssl=0<=k.location.protocol.toLowerCase().indexOf(\"https\");a.charSet=\"UTF-8\";a.contextData={};a.offlineThrottleDelay=\r\n0;a.offlineFilename=\"AppMeasurement.offline\";a.Ra=0;a.ma=0;a.O=0;a.Qa=0;a.linkDownloadFileTypes=\"exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx\";a.w=k;a.d=k.document;try{if(a.Wa=!1,navigator){var v=navigator.userAgent;if(\"Microsoft Internet Explorer\"==navigator.appName||0<=v.indexOf(\"MSIE \")||0<=v.indexOf(\"Trident/\")&&0<=v.indexOf(\"Windows NT 6\"))a.Wa=!0}}catch(x){}a.ha=function(){a.ia&&(k.clearTimeout(a.ia),a.ia=p);a.l&&a.K&&a.l.dispatchEvent(a.K);a.A&&(\"function\"==typeof a.A?a.A():\r\na.l&&a.l.href&&(a.d.location=a.l.href));a.l=a.K=a.A=0};a.Ua=function(){a.b=a.d.body;a.b?(a.v=function(c){var b,d,f,e,g;if(!(a.d&&a.d.getElementById(\"cppXYctnr\")||c&&c[\"s_fe_\"+a._in])){if(a.Ea)if(a.useForcedLinkTracking)a.b.removeEventListener(\"click\",a.v,!1);else{a.b.removeEventListener(\"click\",a.v,!0);a.Ea=a.useForcedLinkTracking=0;return}else a.useForcedLinkTracking=0;a.clickObject=c.srcElement?c.srcElement:c.target;try{if(!a.clickObject||a.N&&a.N==a.clickObject||!(a.clickObject.tagName||a.clickObject.parentElement||\r\na.clickObject.parentNode))a.clickObject=0;else{var h=a.N=a.clickObject;a.la&&(clearTimeout(a.la),a.la=0);a.la=setTimeout(function(){a.N==h&&(a.N=0)},1E4);f=a.La();a.track();if(f<a.La()&&a.useForcedLinkTracking&&c.target){for(e=c.target;e&&e!=a.b&&\"A\"!=e.tagName.toUpperCase()&&\"AREA\"!=e.tagName.toUpperCase();)e=e.parentNode;if(e&&(g=e.href,a.Na(g)||(g=0),d=e.target,c.target.dispatchEvent&&g&&(!d||\"_self\"==d||\"_top\"==d||\"_parent\"==d||k.name&&d==k.name))){try{b=a.d.createEvent(\"MouseEvents\")}catch(l){b=\r\nnew k.MouseEvent}if(b){try{b.initMouseEvent(\"click\",c.bubbles,c.cancelable,c.view,c.detail,c.screenX,c.screenY,c.clientX,c.clientY,c.ctrlKey,c.altKey,c.shiftKey,c.metaKey,c.button,c.relatedTarget)}catch(m){b=0}b&&(b[\"s_fe_\"+a._in]=b.s_fe=1,c.stopPropagation(),c.stopImmediatePropagation&&c.stopImmediatePropagation(),c.preventDefault(),a.l=c.target,a.K=b)}}}}}catch(n){a.clickObject=0}}},a.b&&a.b.attachEvent?a.b.attachEvent(\"onclick\",a.v):a.b&&a.b.addEventListener&&(navigator&&(0<=navigator.userAgent.indexOf(\"WebKit\")&&\r\na.d.createEvent||0<=navigator.userAgent.indexOf(\"Firefox/2\")&&k.MouseEvent)&&(a.Ea=1,a.useForcedLinkTracking=1,a.b.addEventListener(\"click\",a.v,!0)),a.b.addEventListener(\"click\",a.v,!1))):setTimeout(a.Ua,30)};a.Cb();a.ac||(r?a.setAccount(r):a.F(\"Error, missing Report Suite ID in AppMeasurement initialization\"),a.Ua(),a.loadModule(\"ActivityMap\"))}" ]
[ "0.47174537", "0.4658246", "0.45285463", "0.45032862", "0.44835344", "0.44350168", "0.4382653", "0.43627265", "0.43324777", "0.4301593", "0.42541128", "0.42418656", "0.4221815", "0.42179117", "0.41816333", "0.41801563", "0.41795337", "0.417805", "0.4176735", "0.41745046", "0.4172715", "0.416532", "0.4140857", "0.4140857", "0.4125978", "0.41207212", "0.41181394", "0.41115952", "0.41091898", "0.41079316", "0.41062677", "0.41049024", "0.41027054", "0.41022694", "0.410083", "0.4095065", "0.40917927", "0.40812904", "0.40807405", "0.40791658", "0.40771678", "0.40754294", "0.40733093", "0.407272", "0.40688023", "0.40591353", "0.40538645", "0.40534827", "0.4049118", "0.40481293", "0.40477178", "0.40440556", "0.40431336", "0.4041285", "0.40409878", "0.4040742", "0.4034237", "0.40251347", "0.4021832", "0.401967", "0.40185636", "0.40154555", "0.40134138", "0.40127307", "0.40119314", "0.40104625", "0.40068188", "0.40068188", "0.40059087", "0.4004625", "0.3991457", "0.3990997", "0.39907634", "0.39872354", "0.3983524", "0.39815342", "0.39802438", "0.39802438", "0.39802438", "0.39799574", "0.39766735", "0.39765778", "0.39743623", "0.39739642", "0.39738163", "0.39735964", "0.396918", "0.3966224", "0.39611036", "0.39610842", "0.3960728", "0.3956596", "0.39565182", "0.39551875", "0.3950826", "0.39456856", "0.3944749", "0.39428768", "0.39405105", "0.39404854", "0.39403772" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function setLabel(normalStyle, hoverStyle, itemModel, color, seriesModel, dataIndex, labelPositionOutside) { var labelModel = itemModel.getModel('label'); var hoverLabelModel = itemModel.getModel('emphasis.label'); graphic.setLabelStyle(normalStyle, hoverStyle, labelModel, hoverLabelModel, { labelFetcher: seriesModel, labelDataIndex: dataIndex, defaultText: getDefaultLabel(seriesModel.getData(), dataIndex), isRectText: true, autoColor: color }); fixPosition(normalStyle); fixPosition(hoverStyle); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "started () {}", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "started() {\r\n\r\n\t}", "function SigV4Utils() { }", "static get NOT_READY () {return 0}", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "initialize() {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "function getImplementation( cb ){\n\n }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "heartbeat () {\n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "static final private internal function m106() {}", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }", "get WSAPlayerX64() {}" ]
[ "0.5349978", "0.48933455", "0.48501366", "0.48083982", "0.4772584", "0.474481", "0.47349635", "0.47027457", "0.46929818", "0.46929818", "0.4673667", "0.4644517", "0.46389893", "0.46253318", "0.4618249", "0.4582536", "0.45813942", "0.45742747", "0.45687214", "0.45623618", "0.45563498", "0.45493752", "0.45489514", "0.45457798", "0.4538844", "0.45218396", "0.45187637", "0.4498104", "0.44946006", "0.44832855", "0.44729492", "0.44691566", "0.44642788", "0.44588575", "0.44554883", "0.4453296", "0.44531393", "0.4443642", "0.44374335", "0.44267404", "0.44238108", "0.44228086", "0.4407407", "0.44043022", "0.44043022", "0.44043022", "0.44035548", "0.4393825", "0.43761918", "0.43697277", "0.4364149", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43517888", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43502304", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43440503", "0.43416435", "0.43375877", "0.43357816", "0.43357816", "0.43336093", "0.43330038" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. / Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function getNodeGlobalScale(seriesModel) { var coordSys = seriesModel.coordinateSystem; if (coordSys.type !== 'view') { return 1; } var nodeScaleRatio = seriesModel.option.nodeScaleRatio; var groupScale = coordSys.scale; var groupZoom = groupScale && groupScale[0] || 1; // Scale node when zoom changes var roamZoom = coordSys.getZoom(); var nodeScale = (roamZoom - 1) * nodeScaleRatio + 1; return nodeScale / groupZoom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "onChildAppStart () {\n\n }", "get Android() {}", "onMessageStart() { }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "createStream () {\n\n }", "onComponentMount() {\n\n }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "didMount() {\n }", "requestContainerInfo() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "function bridgeAndroidAndIOS() {\r\n\r\n //ios\r\n function setupWebViewJavascriptBridge(callback) {\r\n if (window.WebViewJavascriptBridge) {\r\n return callback(WebViewJavascriptBridge);\r\n }\r\n if (window.WVJBCallbacks) {\r\n return window.WVJBCallbacks.push(callback);\r\n }\r\n window.WVJBCallbacks = [callback];\r\n var WVJBIframe = document.createElement('iframe');\r\n WVJBIframe.style.display = 'none';\r\n WVJBIframe.src = 'https://__bridge_loaded__';\r\n document.documentElement.appendChild(WVJBIframe);\r\n setTimeout(function() {\r\n document.documentElement.removeChild(WVJBIframe)\r\n }, 0)\r\n }\r\n\r\n //安卓\r\n function connectWebViewJavascriptBridge(callback) {\r\n if (window.WebViewJavascriptBridge) {\r\n callback(WebViewJavascriptBridge)\r\n } else {\r\n document.addEventListener(\r\n 'WebViewJavascriptBridgeReady',\r\n function() {\r\n callback(WebViewJavascriptBridge)\r\n },\r\n false\r\n );\r\n }\r\n }\r\n\r\n function bridgeLog(logContent) {\r\n uni.showModal({\r\n title: \"原始数据\",\r\n content: logContent,\r\n })\r\n }\r\n\r\n switch (uni.getSystemInfoSync().platform) {\r\n case 'android':\r\n connectWebViewJavascriptBridge(function(bridge) {\r\n bridge.init();\r\n bridge.registerHandler(\"GetUser\", function(data, responseCallback) {\r\n if(JSON.parse(data).guid != \"null\"){\r\n uni.setStorageSync('userInfo', {\r\n guid: JSON.parse(data).guid,\r\n token: JSON.parse(data).token\r\n })\r\n }\r\n uni.setStorageSync('parameter', {\r\n activityID: JSON.parse(data).activityID,\r\n AppCode: JSON.parse(data).AppCode\r\n })\r\n // 初始传入token和guid\r\n Vue.config.configDic = {\r\n Authorization: JSON.parse(data).Authorization,\r\n statusBarHeight: Number.parseInt(JSON.parse(data).statusBarHeight),\r\n };\r\n });\r\n\r\n })\r\n break;\r\n case 'ios':\r\n setupWebViewJavascriptBridge(function(bridge) {\r\n bridge.registerHandler('GetUser', function(data, responseCallback) {\r\n if(data.guid != \"null\"){\r\n uni.setStorageSync('userInfo', {\r\n guid: data.guid,\r\n token: data.token\r\n })\r\n }\r\n uni.setStorageSync('parameter', {\r\n activityID: data.activityID,\r\n AppCode: data.AppCode\r\n })\r\n // 初始传入token和guid\r\n Vue.config.configDic = {\r\n Authorization: data.Authorization,\r\n productID: data.productID,\r\n statusBarHeight: data.statusBarHeight,\r\n };\r\n })\r\n })\r\n break;\r\n default:\r\n console.log('运行在开发者工具上')\r\n break;\r\n }\r\n\r\n}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "constructor(speechCallback, clientId, streamId) {\n console.log(\"in gcloud\");\n const useOpus = false;\n this.clientId = clientId;\n this.streamId = streamId;\n this.isOpen = true;\n\n // Note: \n // 1) The client side detects silence and does a startStream, and endStream\n // The streamId is incremented everytime this happens, \n // so a combination of clientId + streamId can uniquely identify a stream.\n // The server will be transcribing each client's stream in parallel.\n //\n // 2) The streaming API has a limit of 5 minutes. So just before 5 minutes are up\n // there will timer that will close and reopen the stream. Any non final results will\n // we sent again to be re-transcribed,\n // The restartCounter will be incremented every time the stream is restarted. However\n // the streamId will remain the same.\n //\n // 3) Every stream will have set of results. Some results will be final and some won't be\n // After a result is final, that portion of the audio will not be transcribed again by the API\n // each final result will have resultEndTime, - this is time in seconds (and nanoseconds) \n // from the time the stream was started/restarted.\n // Results don'd have a startTime, it is implicit that the startTime is resultEndTime\n // of the last final stream, or 0 if there was no final stream before this\n // We augment the result to add this startTime\n //\n // We also keep a cumulative restartTime, which is the difference betwen the beginning of \n // stream start and begining of the most recent stream restart. And add this to \n // the startTime and endTime. This way the client is completely unaware of the internal restarts\n // \n \n // Have we started/restarted a new stream ?\n this.newStream = true;\n\n // number of times the stream has been restarted\n this.restartCounter = 0;\n\n // audio Input is any array of chunks (buffer)\n this.audioInput = [];\n this.audioInputSize = 0; // total size of all the buffers\n\n // the end time (in seconds) of the last result. \n // the End time is calculated from the beginning of start/restart stream\n this.resultEndTime = 0;\n\n // the end time of the last final result.\n this.finalEndTime = 0;\n\n // the start time (in seconds) of the current result. \n // It is calculated fom beginning of start/restart stream\n this.startTime = 0;\n \n // the time between the of beginning of start stream and the beginning of the most current restart stream.\n this.restartTime = 0;\n\n\n this.lastTranscriptWasFinal = false;\n\n this.restartTimer = null;\n\n this.config = {\n encoding: useOpus ? 'OGG_OPUS' : 'LINEAR16',\n sampleRateHertz: useOpus ? 48000 : 16000,\n languageCode: 'en_us',\n enableAutomaticPunctuation: true,\n speechContexts: [{ phrases: phrases}],\n };\n\n this.request = {\n config : this.config,\n interimResults: true,\n };\n\n this.startStreamInternal();\n }", "constructor() {\n }", "constructor(info) {\n super();\n\n _defineProperty(this, \"_peerConnectionId\", void 0);\n\n _defineProperty(this, \"_reactTag\", void 0);\n\n _defineProperty(this, \"_id\", void 0);\n\n _defineProperty(this, \"_label\", void 0);\n\n _defineProperty(this, \"_maxPacketLifeTime\", void 0);\n\n _defineProperty(this, \"_maxRetransmits\", void 0);\n\n _defineProperty(this, \"_negotiated\", void 0);\n\n _defineProperty(this, \"_ordered\", void 0);\n\n _defineProperty(this, \"_protocol\", void 0);\n\n _defineProperty(this, \"_readyState\", void 0);\n\n _defineProperty(this, \"_subscriptions\", []);\n\n _defineProperty(this, \"binaryType\", 'arraybuffer');\n\n _defineProperty(this, \"bufferedAmount\", 0);\n\n _defineProperty(this, \"bufferedAmountLowThreshold\", 0);\n\n this._peerConnectionId = info.peerConnectionId;\n this._reactTag = info.reactTag;\n this._label = info.label;\n this._id = info.id === -1 ? null : info.id; // null until negotiated.\n\n this._ordered = Boolean(info.ordered);\n this._maxPacketLifeTime = info.maxPacketLifeTime;\n this._maxRetransmits = info.maxRetransmits;\n this._protocol = info.protocol || '';\n this._negotiated = Boolean(info.negotiated);\n this._readyState = info.readyState;\n\n this._registerEvents();\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onChildAppSourceChangeRestart () {\n\n }", "constructor() {\n\n\t}", "async componentDidUpdate() {\n console.log(this.props.directory);\n //this needs to be replaced with environment variable\n const beginingUrl = \"http://10.34.1.30:8080/songs/\";\n const songLoc = this.props.directory + \"/outputlist.m3u8\";\n var hlsUrl = beginingUrl + songLoc;\n var audio = this.player;\n\n //Should this logic be loacated here??This looks hacky,\n const token = await getToken();\n let bearerTokenString = \"Bearer \" + token;\n\n if (Hls.isSupported()) {\n var hls = new Hls({\n // This configuration is required to insure that only the\n // viewer can access the content by sending a session cookie\n // to api.video service\n xhrSetup: function (xhr, url) {\n xhr.setRequestHeader(\"Authorization\", bearerTokenString);\n },\n });\n hls.loadSource(hlsUrl);\n hls.attachMedia(audio);\n hls.on(Hls.Events.MANIFEST_PARSED, function () {\n audio.play();\n });\n } else if (audio.canPlayType(\"application/vnd.apple.mpegurl\")) {\n console.log(\"Nigga we here!!\");\n audio.src = hlsUrl;\n audio.addEventListener(\"loadedmetadata\", function () {\n audio.play();\n });\n }\n }", "onMessageReceive() {}", "constructor() {\n\t}", "constructor() {\n\t}", "componentWillMount() {\n //CodePush.disallowRestart();\n //Alert.alert(\"mounted cool vite OK OK MAINTENANT CA MARCHE !!!!!\");\n/*CodePush.sync(\n{\ndeploymentKey: 'giMb817KrtTFkIuOg4i5ohnEUDyoBJvD1i-VN',\nupdateDialog: true,\ninstallMode: CodePush.InstallMode.IMMEDIATE,\n},\nthis.CodePushStatusDidChange.bind(this),\nthis.CodePushDownloadDidProgress.bind(this)\n);*/\n /* Animated.loop(\n Animated.sequence([\n Animated.timing(this.animatedValue, { toValue: 1, duration: 3000, easing: Easing.ease, useNativeDriver: true }),\n Animated.timing(this.animatedValue, { toValue: 0, duration: 3000, easing: Easing.ease, useNativeDriver: true }),\n ])).start();*/\n //this.toggleLike(); \n //CodePush.notifyApplicationReady();\n this._onLoadStart();\n }", "function version(){ return \"0.13.0\" }", "get supportStreaming() { return exists && has(WA.instantiateStreaming); }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "onChildAppRestart (/* reason */) {\n\n }", "_init(config) {\n this.name = config.name;\n this.appId = config.appid || config.appId;\n this.serverUrl = config.server_url + '/sync_xcx';\n this.autoTrackProperties = {};\n // cache commands.\n this._queue = [];\n\n if (config.isChildInstance) {\n this._state = {};\n } else {\n logger.enabled = config.enableLog;\n this.instances = []; // 子实例名称\n this._state = {\n getSystemInfo: false,\n initComplete: false,\n };\n systemInfo.getSystemInfo(() => {\n this._updateState({\n getSystemInfo: true,\n });\n });\n\n if (config.autoTrack) {\n this.autoTrack = PlatformAPI.initAutoTrackInstance(this, config);\n } else {\n var launchOptions = PlatformAPI.getAppOptions((options) => {\n if (options && options.scene) {\n this._setAutoTrackProperties({\n '#scene': options.scene,\n });\n }\n\n });\n if (launchOptions.scene) {\n this._setAutoTrackProperties({\n '#scene': launchOptions.scene,\n });\n }\n }\n }\n\n this.store = new ThinkingDataPersistence(config, () => {\n if (this.config.asyncPersistence && _.isFunction(this.config.persistenceComplete)) {\n this.config.persistenceComplete(this);\n }\n this._updateState();\n });\n }", "_addHMRClientCode(data) {\n// If we have it, grab supporting code...\n let prependage = fs.readFileSync('./lib/hmr/clientSocket.js'),\n appendage = fs.readFileSync('./lib/hmr/hmr.js')\n\n// Prepend clientSocket.js to bundle.... Append hmr runtime to bundle\n return `${prependage}${data}${appendage}`\n }", "componentDidMount() {\n this.setState({\n configuration: {\n flow: {\n name: \"sample1\",\n id: \"01\",\n components: [\n {\n type: \"http-listener\",\n id: \"http-list-01\",\n properties: {\n method: \"get\",\n port: 8000,\n path: \"http://localhost\"\n }\n },\n {\n type: \"logger\",\n id: \"logger-01\",\n properties: {\n level: \"info\"\n }\n },\n {\n type: \"file-writer\",\n id: \"file-write-01\",\n properties: {\n location: \"xx\",\n username: \"sachith\",\n password: \"\",\n filename: \"hello.txt\"\n }\n }\n ]\n }\n }\n\n });\n }", "componentWillUnmount(){\n Streaming.disconnect();\n }", "pushStart() {\n Cordova.exec(\n () => {},\n () => {},\n 'SparkProxy',\n 'pushStart',\n []);\n }", "async onReady() {\n // Initialize your adapter here\n // Subsribe to all state changes\n this.subscribeStates('*');\n this.axiosInstance = axios_1.default.create({\n baseURL: `http://${this.config.host}/api/v1/`,\n timeout: 1000\n });\n // try to ping volumio\n const connectionSuccess = await this.pingVolumio();\n if (this.config.checkConnection) {\n let interval = this.config.checkConnectionInterval;\n if (!interval || !isNumber(interval)) {\n this.log.error(`Invalid connection check interval setting. Will be set to 30s`);\n interval = 30;\n }\n this.checkConnectionInterval = setInterval(this.checkConnection, interval * 1000, this);\n }\n // get system infos\n if (connectionSuccess) {\n this.apiGet('getSystemInfo').then(sysInfo => {\n this.setStateAsync('info.id', sysInfo.id, true);\n this.setStateAsync('info.host', sysInfo.host, true);\n this.setStateAsync('info.name', sysInfo.name, true);\n this.setStateAsync('info.type', sysInfo.type, true);\n this.setStateAsync('info.serviceName', sysInfo.serviceName, true);\n this.setStateAsync('info.systemversion', sysInfo.systemversion, true);\n this.setStateAsync('info.builddate', sysInfo.builddate, true);\n this.setStateAsync('info.variant', sysInfo.variant, true);\n this.setStateAsync('info.hardware', sysInfo.hardware, true);\n });\n // get inital player state\n this.updatePlayerState();\n }\n if (this.config.subscribeToStateChanges && this.config.subscriptionPort && connectionSuccess) {\n this.log.debug('Subscription mode is activated');\n try {\n this.httpServerInstance = this.httpServer.listen(this.config.subscriptionPort);\n this.log.debug(`Server is listening on ${ip_1.default.address()}:${this.config.subscriptionPort}`);\n this.subscribeToVolumioNotifications();\n }\n catch (error) {\n this.log.error(`Starting server on ${this.config.subscriptionPort} for subscription mode failed: ${error.message}`);\n }\n }\n else if (this.config.subscribeToStateChanges && !this.config.subscriptionPort) {\n this.log.error('Subscription mode is activated, but port is not configured.');\n }\n else if (!this.config.subscribeToStateChanges && connectionSuccess) {\n this.unsubscribeFromVolumioNotifications();\n }\n this.httpServer.post('/volumiostatus', (req, res) => {\n this.onVolumioStateChange(req.body);\n res.sendStatus(200);\n });\n }", "function IbtRealTimeSJ(){/***********************************************************\n\t * @attributes\n\t ***********************************************************/var appKey;// application key\n\tvar authToken;// authentication token\n\tvar clusterUrl;// cluster URL to connect\n\tvar waitingClusterResponse;// indicates whether is waiting for a cluster response\n\tvar connectionTimeout;// connection timeout in milliseconds\n\tvar messageMaxSize;// message maximum size in bytes\n\tvar channelMaxSize;// channel maximum size in bytes\n\tvar channelsMaxSize;// maximum of channels for batchSend\n\tvar messagesBuffer;// buffer to hold the message parts\n\tvar id;// object identifier\n\tvar isConnected;// indicates whether the client object is connected\n\tvar isConnecting;// indicates whether the client object is connecting\n\tvar alreadyConnectedFirstTime;// indicates whether the client already connected for the first time\n\tvar stopReconnecting;// indicates whether the user disconnected (stop the reconnecting proccess)\n\tvar ortc;// represents the object itself\n\tvar sockjs;// socket connected to\n\tvar url;// URL to connect\n\tvar userPerms;// user permissions\n\tvar connectionMetadata;// connection metadata used to identify the client\n\tvar announcementSubChannel;// announcement subchannel\n\tvar subscribedChannels;// subscribed/subscribing channels\n\tvar lastKeepAlive;// holds the time of the last keep alive received\n\tvar invalidConnection;// indicates whether the connection is valid\n\tvar reconnectIntervalId;// id used for the reconnect interval\n\tvar reconnectStartedAt;// the time which the reconnect started\n\tvar validatedTimeoutId;// id used for the validated timeout\n\tvar validatedArrived;// indicates whether the validated message arrived\n\tvar retryingWithSsl;// indicates whether the connection is being retried with SSL\n\tvar protocol;// protocol to use\n\tvar sslSessionCookieName;// the SSL session cookie name\n\tvar sessionCookieName;// the session cookie name\n\tvar sessionId;// the session ID\n\tvar registrationId;// browser device token for push notifications\n\tvar pushPlatform;// push notifications platform\n\t/***********************************************************\n\t * @attributes initialization\n\t ***********************************************************/sslSessionCookieName=\"ortcssl\";sessionCookieName=\"ortcsession-\";connectionTimeout=5000;messageMaxSize=800;channelMaxSize=100;connectionMetadataMaxSize=256;channelsMaxSize=50;// Time in seconds\n\tvar heartbeatDefaultTime=15;// Heartbeat default interval time\n\tvar heartbeatDefaultFails=3;// Heartbeat default max fails\n\tvar heartbeatMaxTime=60;var heartbeatMinTime=10;var heartbeatMaxFails=6;var heartbeatMinFails=1;var heartbeatTime=heartbeatDefaultTime;// Heartbeat interval time\n\tvar heartbeatFails=heartbeatDefaultFails;// Heartbeat max fails\n\tvar heartbeatInterval=null;// Heartbeat interval\n\tvar heartbeatActive=false;messagesBuffer={};subscribedChannels={};isConnected=false;isConnecting=false;alreadyConnectedFirstTime=false;invalidConnection=false;waitingClusterResponse=false;validatedArrived=false;retryingWithSsl=false;ortc=this;lastKeepAlive=null;userPerms=null;reconnectStartedAt=null;protocol=undefined;pushPlatform=\"GCM\";var delegateExceptionCallback=function(ortcArg,event){if(ortcArg!==null&&ortcArg.onException!==null){ortcArg.onException(ortcArg,event);}};/***********************************************************\n\t * @properties\n\t ***********************************************************/this.getId=function(){return id;};this.setId=function(newId){id=newId;};this.getUrl=function(){return url;};this.setUrl=function(newUrl){url=newUrl;clusterUrl=null;};this.getClusterUrl=function(){return clusterUrl;};this.setClusterUrl=function(newUrl){clusterUrl=newUrl;url=null;};this.getConnectionTimeout=function(){return connectionTimeout;};this.setConnectionTimeout=function(newTimeout){connectionTimeout=newTimeout;};this.getIsConnected=function(){return isConnected&&ortc.sockjs!==null;};this.getConnectionMetadata=function(){return connectionMetadata;};this.setConnectionMetadata=function(newConnectionMetadata){connectionMetadata=newConnectionMetadata;};this.getAnnouncementSubChannel=function(){return announcementSubChannel;};this.setAnnouncementSubChannel=function(newAnnouncementSubChannel){announcementSubChannel=newAnnouncementSubChannel;};this.getProtocol=function(){return protocol;};this.setProtocol=function(newProtocol){protocol=newProtocol;};this.getSessionId=function(){return sessionId;};/*\n\t * Get heartbeat interval.\n\t */this.getHeartbeatTime=function(){return heartbeatTime;};/*\n\t * Set heartbeat interval.\n\t */this.setHeartbeatTime=function(newHeartbeatTime){if(newHeartbeatTime&&!isNaN(newHeartbeatTime)){if(newHeartbeatTime>heartbeatMaxTime||newHeartbeatTime<heartbeatMinTime){delegateExceptionCallback(ortc,`Heartbeat time is out of limits - Min: ${heartbeatMinTime} | Max: ${heartbeatMaxTime}`);}else{heartbeatTime=newHeartbeatTime;}}else{delegateExceptionCallback(ortc,`Invalid heartbeat time ${newHeartbeatTime}`);}};/*\n\t * Get how many times can the client fail the heartbeat.\n\t */this.getHeartbeatFails=function(){return heartbeatFails;};/*\n\t * Set heartbeat fails. Defines how many times can the client fail the heartbeat.\n\t */this.setHeartbeatFails=function(newHeartbeatFails){if(newHeartbeatFails&&!isNaN(newHeartbeatFails)){if(newHeartbeatFails>heartbeatMaxFails||newHeartbeatFails<heartbeatMinFails){delegateExceptionCallback(ortc,`Heartbeat fails is out of limits - Min: ${heartbeatMinFails} | Max: ${heartbeatMaxFails}`);}else{heartbeatFails=newHeartbeatFails;}}else{delegateExceptionCallback(ortc,`Invalid heartbeat fails ${newHeartbeatFails}`);}};/*\n\t * Get heart beat active.\n\t */this.getHeartbeatActive=function(){return heartbeatActive;};/*\n\t * Set heart beat active. Heart beat provides better accuracy for presence data.\n\t */this.setHeartbeatActive=function(active){heartbeatActive=active;};/***********************************************************\n\t * @events\n\t ***********************************************************/this.onConnected=null;this.onDisconnected=null;this.onSubscribed=null;this.onUnsubscribed=null;this.onException=null;this.onReconnecting=null;this.onReconnected=null;/***********************************************************\n\t * @public methods\n\t ***********************************************************//*\n\t * Connects to the gateway with the application key and authentication token.\n\t */this.connect=function(appKey,authToken){/*\n\t Sanity Checks\n\t */if(isConnected){delegateExceptionCallback(ortc,\"Already connected\");}else if(!url&&!clusterUrl){delegateExceptionCallback(ortc,\"URL and Cluster URL are null or empty\");}else if(!appKey){delegateExceptionCallback(ortc,\"Application Key is null or empty\");}else if(!authToken){delegateExceptionCallback(ortc,\"Authentication Token is null or empty\");}else if(url&&!ortcIsValidUrl(url)){delegateExceptionCallback(ortc,\"Invalid URL\");}else if(clusterUrl&&!ortcIsValidUrl(clusterUrl)){delegateExceptionCallback(ortc,\"Invalid Cluster URL\");}else if(!ortcIsValidInput(appKey)){delegateExceptionCallback(ortc,\"Application Key has invalid characters\");}else if(!ortcIsValidInput(authToken)){delegateExceptionCallback(ortc,\"Authentication Token has invalid characters\");}else if(!ortcIsValidInput(announcementSubChannel)){delegateExceptionCallback(ortc,\"Announcement Subchannel has invalid characters\");}else if(connectionMetadata&&connectionMetadata.length>connectionMetadataMaxSize){delegateExceptionCallback(ortc,\"Connection metadata size exceeds the limit of \"+connectionMetadataMaxSize+\" characters\");}else{ortc.appKey=appKey;ortc.authToken=authToken;isConnecting=true;stopReconnecting=false;validatedArrived=false;clearValidatedTimeout(self);// Read SSL session cookie\n\t//var sslConn = readCookie(sslSessionCookieName);\n\tvar sslConn=false;if(sslConn){changeUrlSsl();}if(clusterUrl&&clusterUrl!=null){clusterUrl=clusterUrl.ortcTreatUrl();clusterConnection();}else{url=url.ortcTreatUrl();ortc.sockjs=createSocketConnection(url);}//If ssl connection increase connection timeout\n\tif(clusterUrl&&clusterUrl!=null&&clusterUrl.indexOf(\"/ssl\")>=0||url&&url.indexOf(\"https\")>=0){if(!retryingWithSsl){ortc.setConnectionTimeout(30*1000);}else{if(ortc.getConnectionTimeout()<300*1000){if(ortc.getConnectionTimeout()<30*1000){ortc.setConnectionTimeout(30*1000);}else{ortc.setConnectionTimeout((ortc.getConnectionTimeout()+10)*1000);}}else{stopReconnecting=true;clearReconnectInterval();}}}if(!ortc.reconnectIntervalId&&!stopReconnecting){// Interval to reconnect\n\tortc.reconnectIntervalId=setInterval(function(){if(stopReconnecting){clearReconnectInterval();}else{var currentDateTime=new Date();if(ortc.sockjs==null&&!waitingClusterResponse){reconnectSocket();}// 35 seconds\n\tif(lastKeepAlive!=null&&lastKeepAlive+35000<new Date().getTime()){lastKeepAlive=null;// Server went down\n\tif(isConnected){disconnectSocket();}}}},ortc.getConnectionTimeout());}}};this.setNotificationConfig=function(config){config.cmd=\"config\";this.sendMessageToServiceWorker(config);};this.showNotification=function(notification){notification.cmd=\"notification\";this.sendMessageToServiceWorker(notification);};this.sendMessageToServiceWorker=function(message){return new Promise(function(resolve,reject){var messageChannel=new MessageChannel();messageChannel.port1.onmessage=function(event){if(event.data.error){reject(event.data.error);}else{resolve(event.data);}};navigator.serviceWorker.controller.postMessage(message,[messageChannel.port2]);});};/*\n\t * Subscribes to the channel so the client object can receive all messages sent to it by other clients with Notifications.\n\t */this.subscribeWithNotifications=function(channel,subscribeOnReconnected,regId,onMessageCallback){ortc.registrationId=regId;this._subscribe(channel,subscribeOnReconnected,regId,null,onMessageCallback);};/*\n\t * Subscribes to the channel so the client object can receive all messages sent that are valid according to the given filter\n\t */this.subscribeWithFilter=function(channel,subscribeOnReconnected,filter,onMessageCallback){this._subscribe(channel,subscribeOnReconnected,null,filter,onMessageCallback);};/*\n\t * Subscribes to the channel so the client object can receive all messages sent to it by other clients.\n\t */this.subscribe=function(channel,subscribeOnReconnected,onMessageCallback){this._subscribe(channel,subscribeOnReconnected,null,null,onMessageCallback);};this._subscribe=function(channel,subscribeOnReconnected,regId,filter,onMessageCallback){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribing){delegateExceptionCallback(ortc,\"Already subscribing to the channel \\\"\"+channel+\"\\\"\");}else if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed){delegateExceptionCallback(ortc,\"Already subscribed to the channel \\\"\"+channel+\"\\\"\");}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else if(!ortcIsValidBoolean(subscribeOnReconnected)){delegateExceptionCallback(ortc,\"The argument \\\"subscribeOnReconnected\\\" must be a boolean\");}else if(!ortcIsFunction(onMessageCallback)){delegateExceptionCallback(ortc,\"The argument \\\"onMessageCallback\\\" must be a function\");}else{if(ortc.sockjs!=null){var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){delegateExceptionCallback(ortc,\"No permission found to subscribe to the channel \\\"\"+channel+\"\\\"\");}else{if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=true;subscribedChannels[channel].isSubscribed=false;subscribedChannels[channel].subscribeOnReconnected=subscribeOnReconnected;subscribedChannels[channel].onMessageCallback=onMessageCallback;subscribedChannels[channel].filter=filter;}else{subscribedChannels[channel]={\"isSubscribing\":true,\"isSubscribed\":false,\"subscribeOnReconnected\":subscribeOnReconnected,\"onMessageCallback\":onMessageCallback,\"filter\":filter};}if(regId){subscribedChannels[channel].withNotifications=true;ortc.sockjs.send(\"subscribe;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+regId+\";\"+pushPlatform);}else{subscribedChannels[channel].withNotifications=false;if(filter){ortc.sockjs.send(\"subscribefilter;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+filter);}else{ortc.sockjs.send(\"subscribe;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm);}}}}}};/*\n\t * Unsubscribes from the channel so the client object stops receiving messages sent to it.\n\t */this.unsubscribe=function(channel){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(!subscribedChannels[channel]||subscribedChannels[channel]&&!subscribedChannels[channel].isSubscribed){delegateExceptionCallback(ortc,\"Not subscribed to the channel \"+channel);}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else{if(ortc.sockjs!=null){if(subscribedChannels[channel].withNotifications==true){ortc.sockjs.send(\"unsubscribe;\"+ortc.appKey+\";\"+channel+\";\"+ortc.registrationId+\";\"+pushPlatform);}else{ortc.sockjs.send(\"unsubscribe;\"+ortc.appKey+\";\"+channel);}}}};/*\n\t * Sends the message to the channel.\n\t */this.send=function(channel,message){/*\n\t Sanity Checks\n\t */if(!isConnected||ortc.sockjs==null){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else if(!message){delegateExceptionCallback(ortc,\"Message is null or empty\");}else if(!ortcIsString(message)){delegateExceptionCallback(ortc,\"Message must be a string\");}else if(channel.length>channelMaxSize){delegateExceptionCallback(ortc,\"Channel size exceeds the limit of \"+channelMaxSize+\" characters\");}else{var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){delegateExceptionCallback(ortc,\"No permission found to send to the channel \\\"\"+channel+\"\\\"\");}else{// Multi part\n\tvar messageParts=[];var messageId=generateId(8);var i;var allowedMaxSize=messageMaxSize-channel.length;for(i=0;i<message.length;i=i+allowedMaxSize){// Just one part\n\tif(message.length<=allowedMaxSize){messageParts.push(message);break;}if(message.substring(i,i+allowedMaxSize)){messageParts.push(message.substring(i,i+allowedMaxSize));}}for(var j=1;j<=messageParts.length;j++){ortc.sockjs.send(\"send;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+channel+\";\"+hashPerm+\";\"+messageId+\"_\"+j+\"-\"+messageParts.length+\"_\"+messageParts[j-1]);}}}};/*\n\t * Sends the message to multiple channels.\n\t */this.batchSend=function(channels,message){/*\n\t Sanity Checks\n\t */channels=ortcStrToArray(channels);if(!isConnected||ortc.sockjs==null){delegateExceptionCallback(ortc,\"Not connected\");}else if(!ortcIsArray(channels)){delegateExceptionCallback(ortc,\"Channels must be a array\");}else if(!message){delegateExceptionCallback(ortc,\"Message is null or empty\");}else if(!ortcIsString(message)){delegateExceptionCallback(ortc,\"Message must be a string\");}else if(channels.length<=0){delegateExceptionCallback(ortc,\"Channels must be an array at least with one channel\");}else if(channels.length>channelsMaxSize){channels=[];delegateExceptionCallback(ortc,\"The channel maximum was reached (>\"+channelsMaxSize+\")\");}for(i=0;i<channels.length;i++){var channel=channels[i];if(channel.length>channelMaxSize){channels.splice(i,1);delegateExceptionCallback(ortc,\"Channel \"+channel+\" size exceeds the limit of \"+channelMaxSize+\" characters\");}}if(channels.length>0){var arrayHashPerm=[];for(i=0;i<channels.length;i++){var channel=channels[i];var domainChannelCharacterIndex=channel.indexOf(\":\");var channelToValidate=channel;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=channel.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[channel];}if(userPerms&&userPerms!=null&&!hashPerm){channels.splice(i,1);delegateExceptionCallback(ortc,\"No permission found to send to the channel \\\"\"+channel+\"\\\"\");}else{arrayHashPerm.push(hashPerm);}}if(channels.length>0){var messageParts=[];var messageId=generateId(8);var allowedMaxSize=messageMaxSize-channels.toString().length;for(i=0;i<message.length;i=i+allowedMaxSize){// Just one part\n\tif(message.length<=allowedMaxSize){messageParts.push(message);break;}if(message.substring(i,i+allowedMaxSize)){messageParts.push(message.substring(i,i+allowedMaxSize));}}for(j=1;j<=messageParts.length;j++){ortc.sockjs.send(\"batchSend;\"+ortc.appKey+\";\"+ortc.authToken+\";\"+JSON.stringify(channels)+\";\"+JSON.stringify(arrayHashPerm)+\";\"+messageId+\"_\"+j+\"-\"+messageParts.length+\"_\"+messageParts[j-1]);}}}};/*\n\t * Disconnects from the gateway.\n\t */this.disconnect=function(){clearReconnectInterval();stopReconnectProcess();// Clear subscribed channels\n\tsubscribedChannels={};/*\n\t Sanity Checks\n\t */if(!isConnected&&!invalidConnection){delegateExceptionCallback(ortc,\"Not connected\");}else{disconnectSocket();}};/*\n\t * Gets a value indicating whether this client object is subscribed to the channel.\n\t */this.isSubscribed=function(channel){/*\n\t Sanity Checks\n\t */if(!isConnected){delegateExceptionCallback(ortc,\"Not connected\");}else if(!channel){delegateExceptionCallback(ortc,\"Channel is null or empty\");}else if(!ortcIsValidInput(channel)){delegateExceptionCallback(ortc,\"Channel has invalid characters\");}else{if(subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed){return subscribedChannels[channel].isSubscribed;}else{return false;}}};/*\n\t * Gets a json indicating the subscriptions in a channel.\n\t */this.presence=function(parameters,callback){try{var requestUrl=null,isCluster=false,appKey=ortc.appKey,authToken=ortc.authToken;if(parameters.url){requestUrl=parameters.url.ortcTreatUrl();isCluster=parameters.isCluster;appKey=parameters.applicationKey;authToken=parameters.authenticationToken;}else{if(clusterUrl&&clusterUrl!=null){requestUrl=clusterUrl;isCluster=true;}else{requestUrl=url.ortcTreatUrl();;}}getServerUrl({requestUrl:requestUrl,isCluster:isCluster,appKey:appKey},function(error,serverUrl){if(error){callback(error,null);}else{jsonp(serverUrl+\"/presence/\"+appKey+\"/\"+authToken+\"/\"+parameters.channel,callback);}});}catch(e){callback(\"Unable to get presence data\",null);}};var getServerUrl=function(parameters,callback){if(parameters.requestUrl&&parameters.isCluster){var guid=generateGuid();var queryString=\"guid=\"+generateGuid();queryString=parameters.appKey?queryString+\"&appkey=\"+parameters.appKey:queryString;loadClusterServerScript(parameters.requestUrl+\"/?\"+queryString,guid,function(clusterServerResolved,scriptGuid){if(clusterServerResolved){var resultUrl=SOCKET_SERVER;callback(null,resultUrl);}else{callback(null,\"Unable to get server from cluster\");}try{clearScripts(scriptGuid);}catch(loadError){}});}else{var resultUrl=parameters.requestUrl.ortcTreatUrl();callback(null,resultUrl);}};/*\n\t * Adds the Webspectator bootstrap script for the outmost frame on the same domain.\n\t */this.setMonetizerId=function(publicId){var tempWin;var win=tempWin=window;while(tempWin!=window.top){try{if(tempWin.frameElement){win=tempWin.parent;}}catch(e){}tempWin=tempWin.parent;}if(!win._WS_BOOT){var s=document.createElement(\"SCRIPT\");s.src=\"//wfpscripts.webspectator.com/bootstrap/ws-\"+publicId+\".js\";document.getElementsByTagName(\"head\")[0].appendChild(s);}};/***********************************************************\n\t * @private methods\n\t ***********************************************************//*\n\t * Change the current URL to use SSL\n\t */var changeUrlSsl=function(){if(!(\"ActiveXObject\"in window)){if(clusterUrl&&clusterUrl!=null){//clusterUrl = clusterUrl.replace(\"http://\", \"https://\");\n\tif(clusterUrl.indexOf(\"ssl/\")<0){var slashAtTheEnd=clusterUrl.search(/\\/([\\d.]*)\\/$/);if(slashAtTheEnd>-1){clusterUrl=clusterUrl.substring(0,slashAtTheEnd+1)+\"ssl/\"+clusterUrl.substring(slashAtTheEnd+1,clusterUrl.length);}else{clusterUrl=clusterUrl.substring(0,clusterUrl.lastIndexOf(\"/\")+1)+\"ssl/\"+clusterUrl.substring(clusterUrl.lastIndexOf(\"/\")+1);}}}else{url=url.replace(\"http://\",\"https://\");}}// Create session cookie\n\t//createSessionCookie(sslSessionCookieName, 1);\n\t};/*\n\t * Clear the reconnecting interval\n\t */var clearReconnectInterval=function(){if(ortc.reconnectIntervalId){clearInterval(ortc.reconnectIntervalId);ortc.reconnectIntervalId=null;}};/*\n\t * Clear the validated timeout\n\t */var clearValidatedTimeout=function(self){if(self.validatedTimeoutId){clearTimeout(self.validatedTimeoutId);self.validatedTimeoutId=null;}};/*\n\t * Stop the reconnecting process\n\t */var stopReconnectProcess=function(){stopReconnecting=true;alreadyConnectedFirstTime=false;};var startHeartBeatInterval=function(self){if(!self.heartbeatInterval&&heartbeatActive){self.sockjs.send(\"b\");self.heartbeatInterval=setInterval(function(){if(!heartbeatActive){stopHeartBeatInterval(self);}else{self.sockjs.send(\"b\");}},heartbeatTime*1000);}};var stopHeartBeatInterval=function(self){if(self.heartbeatInterval){clearInterval(self.heartbeatInterval);self.heartbeatInterval=null;}};/*\n\t * Creates a cookie with expiration time.\n\t */var createExpireCookie=function(name,value,minutes){var expires=\"\";if(minutes){var date=new Date();date.setTime(date.getTime()+minutes*60*1000);expires=\"; expires=\"+date.toGMTString();}document.cookie=name+\"=\"+value+expires+\"; path=/\";};/*\n\t * Creates a session cookie.\n\t */var createSessionCookie=function(name,value){document.cookie=name+\"=\"+value+\"; path=/\";};/*\n\t * Reads a cookie.\n\t */var readCookie=function(name){var nameEQ=name+\"=\";var ca=document.cookie.split(\";\");var result=null;for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==\" \"){c=c.substring(1,c.length);}if(c.indexOf(nameEQ)==0){result=c.substring(nameEQ.length,c.length);break;}}return result;};/*\n\t * Generates an ID.\n\t */var generateId=function(size){var result=\"\";var S4=function(){return((1+Math.random())*0x10000|0).toString(16).substring(1);};for(var i=0;i<size/4;i++){result+=S4();}return result;};/*\n\t * Disconnects the socket.\n\t */var disconnectSocket=function(){stopHeartBeatInterval(ortc);reconnectStartedAt=null;isConnected=false;isConnecting=false;validatedArrived=false;retryingWithSsl=false;clearValidatedTimeout(self);if(ortc.sockjs!=null){ortc.sockjs.close();ortc.sockjs=null;}};/*\n\t * Reconnects the socket.\n\t */var reconnectSocket=function(){stopHeartBeatInterval(ortc);if(isConnecting){delegateExceptionCallback(ortc,\"Unable to connect\");}isConnecting=true;delegateReconnectingCallback(ortc);reconnectStartedAt=new Date().getTime();if(clusterUrl&&clusterUrl!=null){clusterConnection();}else{ortc.sockjs=createSocketConnection(url);}};/*\n\t * Tries a connection through the cluster gateway with the application key and authentication token.\n\t */var clusterConnection=function(){var guid=generateGuid();var queryString=\"guid=\"+generateGuid();queryString=ortc.appKey?queryString+\"&appkey=\"+ortc.appKey:queryString;loadClusterServerScript(clusterUrl+\"/?\"+queryString,guid,function(clusterServerResolved,scriptGuid){if(clusterServerResolved){url=SOCKET_SERVER;sockjs=createSocketConnection(ortc.getUrl());}try{clearScripts(scriptGuid);}catch(loadError){}});};/*\n\t * Clears the javascript scripts previously loaded into the page.\n\t */var clearScripts=function(guid){var headChildren=document.getElementsByTagName(\"head\")[0].children;var childrenToRemove=[];for(var i=0;i<headChildren.length;i++){if(headChildren[i].attributes!=null&&headChildren[i].attributes[\"ortcScriptId\"]&&headChildren[i].attributes[\"ortcScriptId\"].value==guid){childrenToRemove.push(i);}}for(var child in childrenToRemove){document.getElementsByTagName(\"head\")[0].removeChild(headChildren[childrenToRemove[child]]);}};/*\n\t * Loads the cluster server javascript script into the page.\n\t */var loadClusterServerScript=function(scriptUrl,guid,callback){var script=document.createElement(\"script\");script.type=\"text/javascript\";script.setAttribute(\"ortcScriptId\",guid);waitingClusterResponse=true;if(script.readyState){// IE\n\tscript.onreadystatechange=function(){if(script.readyState==\"loaded\"||script.readyState==\"complete\"){waitingClusterResponse=false;script.onreadystatechange=null;if(typeof SOCKET_SERVER!=\"undefined\"&&SOCKET_SERVER.indexOf(\"undefined\")<0&&SOCKET_SERVER.indexOf(\"unknown_server\")<0){callback(true,guid);}else{callback(false,guid);}}};}else{// Others\n\tscript.onload=function(){waitingClusterResponse=false;if(typeof SOCKET_SERVER!=\"undefined\"&&SOCKET_SERVER.indexOf(\"undefined\")<0&&SOCKET_SERVER.indexOf(\"unknown_server\")<0){callback(true,guid);}else{callback(false,guid);}};}script.onerror=function(){waitingClusterResponse=false;};script.src=scriptUrl;document.getElementsByTagName(\"head\")[0].appendChild(script);};/*\n\t * Generates a GUID.\n\t */var generateGuid=function(){var S4=function(){return((1+Math.random())*0x10000|0).toString(16).substring(1);};return S4()+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+\"-\"+S4()+S4()+S4();};/*\n\t * Count the dictionary keys.\n\t */var countKeys=function(dic){var count=0;for(var i in dic){count++;}return count;};/*\n\t * Creates a socket connection.\n\t */var createSocketConnection=function(connectionUrl){var self=ortc;if(self.sockjs==null){if(navigator&&navigator.userAgent&&navigator.userAgent.indexOf(\"PlayStation Vita\")>=0){protocol=\"jsonp-polling\";}self.sockjs=new SockJS(connectionUrl+\"/broadcast\",protocol);// Timeout to receive the validated message\n\tif(!self.sslFallback){var validateTimeoutTime=5000;self.validatedTimeoutId=setTimeout(function(){self.sslFallback=true;stopReconnectProcess();disconnectSocket();invalidConnection=true;retryingWithSsl=true;if(connectionUrl.indexOf(\"https://\")>=0){// We are already using SSL, try streaming\n\tprotocol=\"xhr-streaming\";}else{protocol=undefined;}changeUrlSsl();},validateTimeoutTime);}else if(!self.xhrStreamingFallback){// The SSL fallback failed. Try xhr-streaming\n\tvar validateSslTimeoutTime=5000;self.validatedTimeoutId=setTimeout(function(){self.xhrStreamingFallback=true;stopReconnectProcess();disconnectSocket();invalidConnection=true;retryingWithSsl=true;protocol=\"xhr-streaming\";},validateSslTimeoutTime);}// Connect handler\n\tself.sockjs.onopen=function(){protocol=self.sockjs.protocol;// Update last keep alive time\n\tlastKeepAlive=new Date().getTime();// If is a reconnect do not count session\n\tif(alreadyConnectedFirstTime){sessionId=\"\";}else{// Read session cookie\n\tsessionId=readCookie(sessionCookieName+self.appKey+\"-s\");if(!sessionId){// Read expiration cookie\n\tsessionId=readCookie(sessionCookieName+self.appKey);if(!sessionId){sessionId=generateId(16);}// Create session cookie\n\tcreateSessionCookie(sessionCookieName+self.appKey+\"-s\",sessionId);// Check if session cookie was created\n\tif(!readCookie(sessionCookieName+self.appKey+\"-s\")){sessionId=\"\";}}}var heartbeatDetails=heartbeatActive?\";\"+self.getHeartbeatTime()+\";\"+self.getHeartbeatFails()+\";\":\"\";self.sockjs.send(\"validate;\"+self.appKey+\";\"+self.authToken+\";\"+(announcementSubChannel?announcementSubChannel:\"\")+\";\"+sessionId+\";\"+connectionMetadata+heartbeatDetails);};// Disconnect handler\n\tself.sockjs.onclose=function(e){// e.code=1000 - e.reason=Normal closure\n\t// e.code=1006 - e.reason=WebSocket connection broken\n\t// e.code=2000 - e.reason=All transports failed\n\tstopHeartBeatInterval(ortc);if(ortc.sockjs!=null){ortc.sockjs.close();ortc.sockjs=null;}// Clear user permissions\n\tuserPerms=null;if(e.code!=1000){if(isConnected){isConnected=false;isConnecting=false;protocol=undefined;delegateDisconnectedCallback(self);}if(!stopReconnecting){if(!reconnectStartedAt||reconnectStartedAt+connectionTimeout<new Date().getTime()){reconnectSocket();}}}else{if(!invalidConnection){isConnected=false;isConnecting=false;protocol=undefined;delegateDisconnectedCallback(self);}}if(retryingWithSsl){self.connect(self.appKey,self.authToken);retryingWithSsl=false;}invalidConnection=false;};// Receive handler\n\tself.sockjs.onmessage=function(e){// Update last keep alive time\n\tlastKeepAlive=new Date().getTime();var data=e.data;var channel=data.ch;var message=data.m;var filtered=data.f;// Multi part\n\tvar regexPattern=/^(\\w[^_]*)_{1}(\\d*)-{1}(\\d*)_{1}([\\s\\S.]*)$/;var match=regexPattern.exec(message);var messageId=null;var messageCurrentPart=1;var messageTotalPart=1;var lastPart=false;if(match&&match.length>0){if(match[1]){messageId=match[1];}if(match[2]){messageCurrentPart=match[2];}if(match[3]){messageTotalPart=match[3];}if(match[4]){message=match[4];}}if(messageId){if(!messagesBuffer[messageId]){messagesBuffer[messageId]={};}messagesBuffer[messageId][messageCurrentPart]=message;if(countKeys(messagesBuffer[messageId])==messageTotalPart){lastPart=true;}}else{lastPart=true;}if(lastPart){if(messageId){message=\"\";for(var i=1;i<=messageTotalPart;i++){message+=messagesBuffer[messageId][i];delete messagesBuffer[messageId][i];}delete messagesBuffer[messageId];}delegateMessagesCallback(self,channel,filtered,message);}};self.sockjs.onortcsubscribed=function(e){lastKeepAlive=new Date().getTime();var channel=e.data;if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;subscribedChannels[channel].isSubscribed=true;}delegateSubscribedCallback(self,channel);};self.sockjs.onortcunsubscribed=function(e){lastKeepAlive=new Date().getTime();var channel=e.data;if(subscribedChannels[channel]){subscribedChannels[channel].isSubscribed=false;}delegateUnsubscribedCallback(self,channel);};self.sockjs.onheartbeat=function(){lastKeepAlive=new Date().getTime();};self.sockjs.onortcvalidated=function(e){var sessionExpirationTime=30;if(e.data){userPerms=e.data;}if(e.set){sessionExpirationTime=e.set;}clearValidatedTimeout(self);validatedArrived=true;retryingWithSsl=false;isConnecting=false;isConnected=true;reconnectStartedAt=null;if(sessionId){if(!readCookie(sessionCookieName+self.appKey+\"-s\")){createSessionCookie(sessionCookieName+self.appKey+\"-s\",sessionId);}if(!readCookie(sessionCookieName+self.appKey)){createExpireCookie(sessionCookieName+self.appKey,sessionId,sessionExpirationTime);}}if(alreadyConnectedFirstTime){var channelsToRemove={};// Subscribe to the previously subscribed channels\n\tfor(var key in subscribedChannels){// Subscribe again\n\tif(subscribedChannels[key].subscribeOnReconnected==true&&(subscribedChannels[key].isSubscribing||subscribedChannels[key].isSubscribed)){subscribedChannels[key].isSubscribing=true;subscribedChannels[key].isSubscribed=false;var domainChannelCharacterIndex=key.indexOf(\":\");var channelToValidate=key;var hashPerm=null;if(domainChannelCharacterIndex>0){channelToValidate=key.substring(0,domainChannelCharacterIndex+1)+\"*\";}if(userPerms&&userPerms!=null){hashPerm=userPerms[channelToValidate]?userPerms[channelToValidate]:userPerms[key];}if(subscribedChannels[key].filter){self.sockjs.send(\"subscribefilter;\"+self.appKey+\";\"+self.authToken+\";\"+key+\";\"+hashPerm+\";\"+subscribedChannels[key].filter);}else{self.sockjs.send(\"subscribe;\"+self.appKey+\";\"+self.authToken+\";\"+key+\";\"+hashPerm);}}else{channelsToRemove[key]=key;}}for(var keyToRemove in channelsToRemove){delete subscribedChannels[keyToRemove];}messagesBuffer={};delegateReconnectedCallback(self);}else{alreadyConnectedFirstTime=true;delegateConnectedCallback(self);}};self.sockjs.onortcerror=function(e){lastKeepAlive=new Date().getTime();var data=e.data;var operation=data.op;var channel=data.ch;var error=data.ex?data.ex:data;delegateExceptionCallback(self,error);switch(operation){case\"validate\":if(error.indexOf(\"busy\")<0){invalidConnection=true;clearValidatedTimeout(self);retryingWithSsl=false;stopReconnectProcess();}else{clearValidatedTimeout(self);retryingWithSsl=false;}break;case\"subscribe\":if(channel&&subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;}break;case\"subscribe_maxsize\":case\"unsubscribe_maxsize\":case\"shutdown\":clearValidatedTimeout(self);retryingWithSsl=false;break;case\"send_maxsize\":if(channel&&subscribedChannels[channel]){subscribedChannels[channel].isSubscribing=false;}stopReconnectProcess();break;default:break;}};}return self.sockjs;};var jsonp=function(url,callback){var head=document.head?document.head:document.getElementsByTagName(\"head\")[0];var script=document.createElement(\"script\");var guid=\"ortcJsonp\"+ +new Date();var jsonpCallTimeout=setTimeout(function(){try{callback(\"Unable to get data\",null);window[guid]=undefined;delete window[guid];head.removeChild(script);}catch(e){}},15*1000);window[guid]=function(data){clearTimeout(jsonpCallTimeout);if(data.error){callback(data.error,null);}else{callback(null,data.content);}try{window[guid]=undefined;delete window[guid];head.removeChild(script);}catch(e){}};script.setAttribute(\"src\",url+\"?callback=\"+guid);head.appendChild(script);};var delegateConnectedCallback=function(ortc){if(ortc!=null&&ortc.onConnected!=null){startHeartBeatInterval(ortc);ortc.onConnected(ortc);}};var delegateDisconnectedCallback=function(ortc){if(ortc!=null&&ortc.onDisconnected!=null){ortc.onDisconnected(ortc);}};var delegateSubscribedCallback=function(ortc,channel){if(ortc!=null&&ortc.onSubscribed!=null&&channel!=null){ortc.onSubscribed(ortc,channel);}};var delegateUnsubscribedCallback=function(ortc,channel){if(ortc!=null&&ortc.onUnsubscribed!=null&&channel!=null){ortc.onUnsubscribed(ortc,channel);}};var delegateMessagesCallback=function(ortc,channel,filtered,message){if(ortc!=null&&subscribedChannels[channel]&&subscribedChannels[channel].isSubscribed&&subscribedChannels[channel].onMessageCallback!=null){if(filtered==null){// regular subscription\n\tsubscribedChannels[channel].onMessageCallback(ortc,channel,message);}else{// filtered subscription\n\tsubscribedChannels[channel].onMessageCallback(ortc,channel,filtered,message);}}};var delegateExceptionCallback=function(ortc,event){if(ortc!=null&&ortc.onException!=null){ortc.onException(ortc,event);}};var delegateReconnectingCallback=function(ortc){if(ortc!=null&&ortc.onReconnecting!=null){ortc.onReconnecting(ortc);}};var delegateReconnectedCallback=function(ortc){if(ortc!=null&&ortc.onReconnected!=null){startHeartBeatInterval(ortc);ortc.onReconnected(ortc);}};}", "componentDidMount() {\n //setLocalNotification();\n }", "function AppMeasurement_Module_Media(s){var m=this;m.s=s;s=window;if(!s.s_c_in)s.s_c_il=[],s.s_c_in=0;m._il=s.s_c_il;m._in=s.s_c_in;m._il[m._in]=m;s.s_c_in++;m._c=\"s_m\";m.list=[];m.open=function(w,b,c,h){var d={},a=new Date,g=\"\",e;b||(b=-1);if(w&&c){if(!m.list)m.list={};m.list[w]&&m.close(w);if(h&&h.id)g=h.id;if(g)for(e in m.list)!Object.prototype[e]&&m.list[e]&&m.list[e].S==g&&m.close(m.list[e].name);d.name=w;d.length=b;d.u=0;d.c=0;d.playerName=m.playerName?m.playerName:c;d.S=g;d.L=0;d.f=0;d.timestamp=\r\n\t\tMath.floor(a.getTime()/1E3);d.j=0;d.r=d.timestamp;d.a=-1;d.B=\"\";d.k=-1;d.C=0;d.H={};d.F=0;d.m=0;d.e=\"\";d.A=0;d.K=0;d.z=0;d.D=0;d.l=!1;d.v=\"\";d.I=\"\";d.J=0;d.q=!1;d.G=\"\";d.complete=0;d.Q=0;d.o=0;d.p=0;m.list[w]=d}};m.openAd=function(w,b,c,h,d,a,g,e){var f={};m.open(w,b,c,e);if(f=m.list[w])f.l=!0,f.v=h,f.I=d,f.J=a,f.G=g};m.M=function(w){var b=m.list[w];m.list[w]=0;b&&b.monitor&&clearTimeout(b.monitor.R)};m.close=function(w){m.g(w,0,-1)};m.play=function(w,b,c,h){var d=m.g(w,1,b,c,h);if(d&&!d.monitor)d.monitor=\r\n\t\t{},d.monitor.update=function(){d.j==1&&m.g(d.name,3,-1);d.monitor.R=setTimeout(d.monitor.update,1E3)},d.monitor.update()};m.click=function(w,b){m.g(w,7,b)};m.complete=function(w,b){m.g(w,5,b)};m.stop=function(w,b){m.g(w,2,b)};m.track=function(w){m.g(w,4,-1)};m.P=function(w,b){var c=\"a.media.\",h=w.linkTrackVars,d=w.linkTrackEvents,a=\"m_i\",g,e=w.contextData,f;if(b.l){c+=\"ad.\";if(b.v)e[\"a.media.name\"]=b.v,e[c+\"pod\"]=b.I,e[c+\"podPosition\"]=b.J;if(!b.F)e[c+\"CPM\"]=b.G}if(b.q)e[c+\"clicked\"]=!0,b.q=!1;e[\"a.contentType\"]=\r\n\t\t\"video\"+(b.l?\"Ad\":\"\");e[\"a.media.channel\"]=m.channel;e[c+\"name\"]=b.name;e[c+\"playerName\"]=b.playerName;if(b.length>0)e[c+\"length\"]=b.length;e[c+\"timePlayed\"]=Math.floor(b.f);Math.floor(b.f)>0&&(e[c+\"timePlayed\"]=Math.floor(b.f));if(!b.F)e[c+\"view\"]=!0,a=\"m_s\",b.F=1;if(b.e){e[c+\"segmentNum\"]=b.m;e[c+\"segment\"]=b.e;if(b.A>0)e[c+\"segmentLength\"]=b.A;b.z&&b.f>0&&(e[c+\"segmentView\"]=!0)}if(!b.Q&&b.complete)e[c+\"complete\"]=!0,b.T=1;if(b.o>0)e[c+\"milestone\"]=b.o;if(b.p>0)e[c+\"offsetMilestone\"]=b.p;if(h)for(f in e)Object.prototype[f]||\r\n\t\t(h+=\",contextData.\"+f);g=e[\"a.contentType\"];w.pe=a;w.pev3=g;var s,n;if(m.contextDataMapping){if(!w.events2)w.events2=\"\";h&&(h+=\",events\");for(f in m.contextDataMapping)if(!Object.prototype[f]){a=f.length>c.length&&f.substring(0,c.length)==c?f.substring(c.length):\"\";g=m.contextDataMapping[f];if(typeof g==\"string\"){s=g.split(\",\");for(n=0;n<s.length;n++)g=s[n],f==\"a.contentType\"?(h&&(h+=\",\"+g),w[g]=e[f]):a==\"view\"||a==\"segmentView\"||a==\"clicked\"||a==\"complete\"||a==\"timePlayed\"||a==\"CPM\"?(d&&(d+=\",\"+\r\n\t\tg),a==\"timePlayed\"||a==\"CPM\"?e[f]&&(w.events2+=(w.events2?\",\":\"\")+g+\"=\"+e[f]):e[f]&&(w.events2+=(w.events2?\",\":\"\")+g)):a==\"segment\"&&e[f+\"Num\"]?(h&&(h+=\",\"+g),w[g]=e[f+\"Num\"]+\":\"+e[f]):(h&&(h+=\",\"+g),w[g]=e[f])}else if(a==\"milestones\"||a==\"offsetMilestones\")f=f.substring(0,f.length-1),e[f]&&m.contextDataMapping[f+\"s\"][e[f]]&&(d&&(d+=\",\"+m.contextDataMapping[f+\"s\"][e[f]]),w.events2+=(w.events2?\",\":\"\")+m.contextDataMapping[f+\"s\"][e[f]]);e[f]&&(e[f]=0);a==\"segment\"&&e[f+\"Num\"]&&(e[f+\"Num\"]=0)}}w.linkTrackVars=\r\n\t\th;w.linkTrackEvents=d};m.g=function(w,b,c,h,d){var a={},g=(new Date).getTime()/1E3,e,f,s=m.trackVars,n=m.trackEvents,o=m.trackSeconds,p=m.trackMilestones,q=m.trackOffsetMilestones,r=m.segmentByMilestones,t=m.segmentByOffsetMilestones,k,j,l=1,i={},u;if(!m.channel)m.channel=m.s.w.location.hostname;if(a=w&&m.list&&m.list[w]?m.list[w]:0){if(a.l)o=m.adTrackSeconds,p=m.adTrackMilestones,q=m.adTrackOffsetMilestones,r=m.adSegmentByMilestones,t=m.adSegmentByOffsetMilestones;c<0&&(c=a.j==1&&a.r>0?g-a.r+a.a:\r\n\t\ta.a);a.length>0&&(c=c<a.length?c:a.length);c<0&&(c=0);a.u=c;if(a.length>0)a.c=a.u/a.length*100,a.c=a.c>100?100:a.c;if(a.a<0)a.a=c;u=a.C;i.name=w;i.ad=a.l;i.length=a.length;i.openTime=new Date;i.openTime.setTime(a.timestamp*1E3);i.offset=a.u;i.percent=a.c;i.playerName=a.playerName;i.mediaEvent=a.k<0?\"OPEN\":b==1?\"PLAY\":b==2?\"STOP\":b==3?\"MONITOR\":b==4?\"TRACK\":b==5?\"COMPLETE\":b==7?\"CLICK\":\"CLOSE\";if(b>2||b!=a.j&&(b!=2||a.j==1)){if(!d)h=a.m,d=a.e;if(b){if(b==1)a.a=c;if((b<=3||b>=5)&&a.k>=0)if(l=!1,s=n=\r\n\t\t\"None\",a.k!=c){f=a.k;if(f>c)f=a.a,f>c&&(f=c);k=p?p.split(\",\"):0;if(a.length>0&&k&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f/a.length*100<e&&a.c>=e)l=!0,j=k.length,i.mediaEvent=\"MILESTONE\",a.o=i.milestone=e;if((k=q?q.split(\",\"):0)&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f<e&&c>=e)l=!0,j=k.length,i.mediaEvent=\"OFFSET_MILESTONE\",a.p=i.offsetMilestone=e}if(a.K||!d){if(r&&p&&a.length>0){if(k=p.split(\",\")){k.push(\"100\");for(j=f=0;j<k.length;j++)if(e=k[j]?parseFloat(\"\"+\r\n\t\tk[j]):0){if(a.c<e)h=j+1,d=\"M:\"+f+\"-\"+e,j=k.length;f=e}}}else if(t&&q&&(k=q.split(\",\"))){k.push(\"\"+(a.length>0?a.length:\"E\"));for(j=f=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)||k[j]==\"E\"){if(c<e||k[j]==\"E\")h=j+1,d=\"O:\"+f+\"-\"+e,j=k.length;f=e}}if(d)a.K=!0}if((d||a.e)&&d!=a.e){a.D=!0;if(!a.e)a.m=h,a.e=d;a.k>=0&&(l=!0)}if((b>=2||a.c>=100)&&a.a<c)a.L+=c-a.a,a.f+=c-a.a;if(b<=2||b==3&&!a.j)a.B+=(b==1||b==3?\"S\":\"E\")+Math.floor(c),a.j=b==3?1:b;if(!l&&a.k>=0&&b<=3&&(o=o?o:0)&&a.f>=o)l=!0,i.mediaEvent=\r\n\t\t\"SECONDS\";a.r=g;a.a=c}if(!b||b<=3&&a.c>=100)a.j!=2&&(a.B+=\"E\"+Math.floor(c)),b=0,s=n=\"None\",i.mediaEvent=\"CLOSE\";if(b==7)l=i.clicked=a.q=!0;if(b==5||m.completeByCloseOffset&&(!b||a.c>=100)&&a.length>0&&c>=a.length-m.completeCloseOffsetThreshold)l=i.complete=a.complete=!0;g=i.mediaEvent;g==\"MILESTONE\"?g+=\"_\"+i.milestone:g==\"OFFSET_MILESTONE\"&&(g+=\"_\"+i.offsetMilestone);a.H[g]?i.eventFirstTime=!1:(i.eventFirstTime=!0,a.H[g]=1);i.event=i.mediaEvent;i.timePlayed=a.L;i.segmentNum=a.m;i.segment=a.e;i.segmentLength=\r\n\t\ta.A;m.monitor&&b!=4&&m.monitor(m.s,i);b==0&&m.M(w);if(l&&a.C==u){w={};w.contextData={};w.linkTrackVars=s;w.linkTrackEvents=n;if(!w.linkTrackVars)w.linkTrackVars=\"\";if(!w.linkTrackEvents)w.linkTrackEvents=\"\";m.P(w,a);w.linkTrackVars||(w[\"!linkTrackVars\"]=1);w.linkTrackEvents||(w[\"!linkTrackEvents\"]=1);m.s.track(w);if(a.D)a.m=h,a.e=d,a.z=!0,a.D=!1;else if(a.f>0)a.z=!1;a.B=\"\";a.o=a.p=0;a.f-=Math.floor(a.f);a.k=c;a.C++}}}return a};m.O=function(w,b,c,h,d){var a=0;if(w&&(!m.autoTrackMediaLengthRequired||\r\n\t\tb&&b>0)){if(!m.list||!m.list[w]){if(c==1||c==3)m.open(w,b,\"HTML5 Video\",d),a=1}else a=1;a&&m.g(w,c,h,-1,0)}};m.attach=function(w){var b,c,h;if(w&&w.tagName&&w.tagName.toUpperCase()==\"VIDEO\"){if(!m.n)m.n=function(b,a,w){var c,f;if(m.autoTrack){c=b.currentSrc;(f=b.duration)||(f=-1);if(w<0)w=b.currentTime;m.O(c,f,a,w,b)}};b=function(){m.n(w,1,-1)};c=function(){m.n(w,1,-1)};m.i(w,\"play\",b);m.i(w,\"pause\",c);m.i(w,\"seeking\",c);m.i(w,\"seeked\",b);m.i(w,\"ended\",function(){m.n(w,0,-1)});m.i(w,\"timeupdate\",\r\n\t\tb);h=function(){!w.paused&&!w.ended&&!w.seeking&&m.n(w,3,-1);setTimeout(h,1E3)};h()}};m.i=function(m,b,c){m.attachEvent?m.attachEvent(\"on\"+b,c):m.addEventListener&&m.addEventListener(b,c,!1)};if(m.completeByCloseOffset==void 0)m.completeByCloseOffset=1;if(m.completeCloseOffsetThreshold==void 0)m.completeCloseOffsetThreshold=1;m.N=function(){var w,b;if(m.autoTrack&&(w=m.s.d.getElementsByTagName(\"VIDEO\")))for(b=0;b<w.length;b++)m.attach(w[b])};m.i(s,\"load\",m.N)}", "constructor(httpClient) {\n this.httpClient = httpClient;\n //public url_base = \"http://localhost:8080\";\n this.url_base = \"https://yaoyuan333.wm.r.appspot.com\";\n }", "function AppMeasurement_Module_Media(s){var m=this;m.s=s;s=window;if(!s.s_c_in)s.s_c_il=[],s.s_c_in=0;m._il=s.s_c_il;m._in=s.s_c_in;m._il[m._in]=m;s.s_c_in++;m._c=\"s_m\";m.list=[];m.open=function(w,b,c,h){var d={},a=new Date,g=\"\",e;b||(b=-1);if(w&&c){if(!m.list)m.list={};m.list[w]&&m.close(w);if(h&&h.id)g=h.id;if(g)for(e in m.list)!Object.prototype[e]&&m.list[e]&&m.list[e].S==g&&m.close(m.list[e].name);d.name=w;d.length=b;d.u=0;d.c=0;d.playerName=m.playerName?m.playerName:c;d.S=g;d.L=0;d.f=0;d.timestamp=\r\nMath.floor(a.getTime()/1E3);d.j=0;d.r=d.timestamp;d.a=-1;d.B=\"\";d.k=-1;d.C=0;d.H={};d.F=0;d.m=0;d.e=\"\";d.A=0;d.K=0;d.z=0;d.D=0;d.l=!1;d.v=\"\";d.I=\"\";d.J=0;d.q=!1;d.G=\"\";d.complete=0;d.Q=0;d.o=0;d.p=0;m.list[w]=d}};m.openAd=function(w,b,c,h,d,a,g,e){var f={};m.open(w,b,c,e);if(f=m.list[w])f.l=!0,f.v=h,f.I=d,f.J=a,f.G=g};m.M=function(w){var b=m.list[w];m.list[w]=0;b&&b.monitor&&clearTimeout(b.monitor.R)};m.close=function(w){m.g(w,0,-1)};m.play=function(w,b,c,h){var d=m.g(w,1,b,c,h);if(d&&!d.monitor)d.monitor=\r\n{},d.monitor.update=function(){d.j==1&&m.g(d.name,3,-1);d.monitor.R=setTimeout(d.monitor.update,1E3)},d.monitor.update()};m.click=function(w,b){m.g(w,7,b)};m.complete=function(w,b){m.g(w,5,b)};m.stop=function(w,b){m.g(w,2,b)};m.track=function(w){m.g(w,4,-1)};m.P=function(w,b){var c=\"a.media.\",h=w.linkTrackVars,d=w.linkTrackEvents,a=\"m_i\",g,e=w.contextData,f;if(b.l){c+=\"ad.\";if(b.v)e[\"a.media.name\"]=b.v,e[c+\"pod\"]=b.I,e[c+\"podPosition\"]=b.J;if(!b.F)e[c+\"CPM\"]=b.G}if(b.q)e[c+\"clicked\"]=!0,b.q=!1;e[\"a.contentType\"]=\r\n\"video\"+(b.l?\"Ad\":\"\");e[\"a.media.channel\"]=m.channel;e[c+\"name\"]=b.name;e[c+\"playerName\"]=b.playerName;if(b.length>0)e[c+\"length\"]=b.length;e[c+\"timePlayed\"]=Math.floor(b.f);Math.floor(b.f)>0&&(e[c+\"timePlayed\"]=Math.floor(b.f));if(!b.F)e[c+\"view\"]=!0,a=\"m_s\",b.F=1;if(b.e){e[c+\"segmentNum\"]=b.m;e[c+\"segment\"]=b.e;if(b.A>0)e[c+\"segmentLength\"]=b.A;b.z&&b.f>0&&(e[c+\"segmentView\"]=!0)}if(!b.Q&&b.complete)e[c+\"complete\"]=!0,b.T=1;if(b.o>0)e[c+\"milestone\"]=b.o;if(b.p>0)e[c+\"offsetMilestone\"]=b.p;if(h)for(f in e)Object.prototype[f]||\r\n(h+=\",contextData.\"+f);g=e[\"a.contentType\"];w.pe=a;w.pev3=g;var s,n;if(m.contextDataMapping){if(!w.events2)w.events2=\"\";h&&(h+=\",events\");for(f in m.contextDataMapping)if(!Object.prototype[f]){a=f.length>c.length&&f.substring(0,c.length)==c?f.substring(c.length):\"\";g=m.contextDataMapping[f];if(typeof g==\"string\"){s=g.split(\",\");for(n=0;n<s.length;n++)g=s[n],f==\"a.contentType\"?(h&&(h+=\",\"+g),w[g]=e[f]):a==\"view\"||a==\"segmentView\"||a==\"clicked\"||a==\"complete\"||a==\"timePlayed\"||a==\"CPM\"?(d&&(d+=\",\"+\r\ng),a==\"timePlayed\"||a==\"CPM\"?e[f]&&(w.events2+=(w.events2?\",\":\"\")+g+\"=\"+e[f]):e[f]&&(w.events2+=(w.events2?\",\":\"\")+g)):a==\"segment\"&&e[f+\"Num\"]?(h&&(h+=\",\"+g),w[g]=e[f+\"Num\"]+\":\"+e[f]):(h&&(h+=\",\"+g),w[g]=e[f])}else if(a==\"milestones\"||a==\"offsetMilestones\")f=f.substring(0,f.length-1),e[f]&&m.contextDataMapping[f+\"s\"][e[f]]&&(d&&(d+=\",\"+m.contextDataMapping[f+\"s\"][e[f]]),w.events2+=(w.events2?\",\":\"\")+m.contextDataMapping[f+\"s\"][e[f]]);e[f]&&(e[f]=0);a==\"segment\"&&e[f+\"Num\"]&&(e[f+\"Num\"]=0)}}w.linkTrackVars=\r\nh;w.linkTrackEvents=d};m.g=function(w,b,c,h,d){var a={},g=(new Date).getTime()/1E3,e,f,s=m.trackVars,n=m.trackEvents,o=m.trackSeconds,p=m.trackMilestones,q=m.trackOffsetMilestones,r=m.segmentByMilestones,t=m.segmentByOffsetMilestones,k,j,l=1,i={},u;if(!m.channel)m.channel=m.s.w.location.hostname;if(a=w&&m.list&&m.list[w]?m.list[w]:0){if(a.l)o=m.adTrackSeconds,p=m.adTrackMilestones,q=m.adTrackOffsetMilestones,r=m.adSegmentByMilestones,t=m.adSegmentByOffsetMilestones;c<0&&(c=a.j==1&&a.r>0?g-a.r+a.a:\r\na.a);a.length>0&&(c=c<a.length?c:a.length);c<0&&(c=0);a.u=c;if(a.length>0)a.c=a.u/a.length*100,a.c=a.c>100?100:a.c;if(a.a<0)a.a=c;u=a.C;i.name=w;i.ad=a.l;i.length=a.length;i.openTime=new Date;i.openTime.setTime(a.timestamp*1E3);i.offset=a.u;i.percent=a.c;i.playerName=a.playerName;i.mediaEvent=a.k<0?\"OPEN\":b==1?\"PLAY\":b==2?\"STOP\":b==3?\"MONITOR\":b==4?\"TRACK\":b==5?\"COMPLETE\":b==7?\"CLICK\":\"CLOSE\";if(b>2||b!=a.j&&(b!=2||a.j==1)){if(!d)h=a.m,d=a.e;if(b){if(b==1)a.a=c;if((b<=3||b>=5)&&a.k>=0)if(l=!1,s=n=\r\n\"None\",a.k!=c){f=a.k;if(f>c)f=a.a,f>c&&(f=c);k=p?p.split(\",\"):0;if(a.length>0&&k&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f/a.length*100<e&&a.c>=e)l=!0,j=k.length,i.mediaEvent=\"MILESTONE\",a.o=i.milestone=e;if((k=q?q.split(\",\"):0)&&c>=f)for(j=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)&&f<e&&c>=e)l=!0,j=k.length,i.mediaEvent=\"OFFSET_MILESTONE\",a.p=i.offsetMilestone=e}if(a.K||!d){if(r&&p&&a.length>0){if(k=p.split(\",\")){k.push(\"100\");for(j=f=0;j<k.length;j++)if(e=k[j]?parseFloat(\"\"+\r\nk[j]):0){if(a.c<e)h=j+1,d=\"M:\"+f+\"-\"+e,j=k.length;f=e}}}else if(t&&q&&(k=q.split(\",\"))){k.push(\"\"+(a.length>0?a.length:\"E\"));for(j=f=0;j<k.length;j++)if((e=k[j]?parseFloat(\"\"+k[j]):0)||k[j]==\"E\"){if(c<e||k[j]==\"E\")h=j+1,d=\"O:\"+f+\"-\"+e,j=k.length;f=e}}if(d)a.K=!0}if((d||a.e)&&d!=a.e){a.D=!0;if(!a.e)a.m=h,a.e=d;a.k>=0&&(l=!0)}if((b>=2||a.c>=100)&&a.a<c)a.L+=c-a.a,a.f+=c-a.a;if(b<=2||b==3&&!a.j)a.B+=(b==1||b==3?\"S\":\"E\")+Math.floor(c),a.j=b==3?1:b;if(!l&&a.k>=0&&b<=3&&(o=o?o:0)&&a.f>=o)l=!0,i.mediaEvent=\r\n\"SECONDS\";a.r=g;a.a=c}if(!b||b<=3&&a.c>=100)a.j!=2&&(a.B+=\"E\"+Math.floor(c)),b=0,s=n=\"None\",i.mediaEvent=\"CLOSE\";if(b==7)l=i.clicked=a.q=!0;if(b==5||m.completeByCloseOffset&&(!b||a.c>=100)&&a.length>0&&c>=a.length-m.completeCloseOffsetThreshold)l=i.complete=a.complete=!0;g=i.mediaEvent;g==\"MILESTONE\"?g+=\"_\"+i.milestone:g==\"OFFSET_MILESTONE\"&&(g+=\"_\"+i.offsetMilestone);a.H[g]?i.eventFirstTime=!1:(i.eventFirstTime=!0,a.H[g]=1);i.event=i.mediaEvent;i.timePlayed=a.L;i.segmentNum=a.m;i.segment=a.e;i.segmentLength=\r\na.A;m.monitor&&b!=4&&m.monitor(m.s,i);b==0&&m.M(w);if(l&&a.C==u){w={};w.contextData={};w.linkTrackVars=s;w.linkTrackEvents=n;if(!w.linkTrackVars)w.linkTrackVars=\"\";if(!w.linkTrackEvents)w.linkTrackEvents=\"\";m.P(w,a);w.linkTrackVars||(w[\"!linkTrackVars\"]=1);w.linkTrackEvents||(w[\"!linkTrackEvents\"]=1);m.s.track(w);if(a.D)a.m=h,a.e=d,a.z=!0,a.D=!1;else if(a.f>0)a.z=!1;a.B=\"\";a.o=a.p=0;a.f-=Math.floor(a.f);a.k=c;a.C++}}}return a};m.O=function(w,b,c,h,d){var a=0;if(w&&(!m.autoTrackMediaLengthRequired||\r\nb&&b>0)){if(!m.list||!m.list[w]){if(c==1||c==3)m.open(w,b,\"HTML5 Video\",d),a=1}else a=1;a&&m.g(w,c,h,-1,0)}};m.attach=function(w){var b,c,h;if(w&&w.tagName&&w.tagName.toUpperCase()==\"VIDEO\"){if(!m.n)m.n=function(b,a,w){var c,f;if(m.autoTrack){c=b.currentSrc;(f=b.duration)||(f=-1);if(w<0)w=b.currentTime;m.O(c,f,a,w,b)}};b=function(){m.n(w,1,-1)};c=function(){m.n(w,1,-1)};m.i(w,\"play\",b);m.i(w,\"pause\",c);m.i(w,\"seeking\",c);m.i(w,\"seeked\",b);m.i(w,\"ended\",function(){m.n(w,0,-1)});m.i(w,\"timeupdate\",\r\nb);h=function(){!w.paused&&!w.ended&&!w.seeking&&m.n(w,3,-1);setTimeout(h,1E3)};h()}};m.i=function(m,b,c){m.attachEvent?m.attachEvent(\"on\"+b,c):m.addEventListener&&m.addEventListener(b,c,!1)};if(m.completeByCloseOffset==void 0)m.completeByCloseOffset=1;if(m.completeCloseOffsetThreshold==void 0)m.completeCloseOffsetThreshold=1;m.N=function(){var w,b;if(m.autoTrack&&(w=m.s.d.getElementsByTagName(\"VIDEO\")))for(b=0;b<w.length;b++)m.attach(w[b])};m.i(s,\"load\",m.N)}", "create () {\r\n // Send a create-job message to the native-app.\r\n openPort();\r\n return browser.storage.local.get({ props: {} }).then(result => {\r\n // Get a cookie jar for the job.\r\n return getCookieJarForVideo(this.props.videoUrl).then(cookieJar => {\r\n state.port.postMessage({\r\n topic: 'create-job',\r\n data: {\r\n jobId: this.id,\r\n // Merge the default props and the job props.\r\n props: Object.assign({ cookieJar }, result.props, this.props)\r\n }\r\n });\r\n \r\n // Flag this job as active.\r\n this.state = 'active';\r\n \r\n // Make the icon blue because a job is running.\r\n browser.browserAction.setIcon({\r\n path: 'icons/film-blue.svg'\r\n });\r\n });\r\n });\r\n }", "supportsPlatform() {\n return true;\n }", "function FileSystemService($http, $q, $log) {\n var _directory = LocalFileSystem.PERSISTENT;\n var _fs = null;\n var _that = this;\n\n this.isInitalized = false;\n\n function errorHandler(e) {\n var msg = '';\n\n switch (e.code) {\n case FileError.QUOTA_EXCEEDED_ERR:\n msg = 'QUOTA_EXCEEDED_ERR';\n break;\n case FileError.NOT_FOUND_ERR:\n msg = 'NOT_FOUND_ERR';\n break;\n case FileError.SECURITY_ERR:\n msg = 'SECURITY_ERR';\n break;\n case FileError.INVALID_MODIFICATION_ERR:\n msg = 'INVALID_MODIFICATION_ERR';\n break;\n case FileError.INVALID_STATE_ERR:\n msg = 'INVALID_STATE_ERR';\n break;\n default:\n msg = 'Unknown Error';\n break;\n };\n\n $log.error('FileSystemService: ' + msg);\n }\n\n // startup\n window.requestFileSystem(_directory, 0, function(fs){\n _fs = fs;\n _that.isInitalized = true;\n }, errorHandler);\n\n\n /**\n * Checks if file is in persistent storage\n */\n this.fileExists = function(filename) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n //var uri = _directory + \"/\" + filename;\n //return $http.get(uri);\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {}, function(fileEntry) {\n // Get a File object representing the file,\n // then use FileReader to read its contents.\n fileEntry.file(function(file) {\n var reader = new FileReader();\n\n reader.onloadend = function(e) {\n deferred.resolve(e.target.result);\n };\n\n reader.readAsDataURL(file);\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n\n /**\n * Get File from perstistent storage\n */\n this.getFile = function(filename) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n //var uri = _directory + \"/\" + filename;\n //return $http.get(uri);\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {}, function(fileEntry) {\n // Get a File object representing the file,\n // then use FileReader to read its contents.\n fileEntry.file(function(file) {\n var reader = new FileReader();\n\n reader.onloadend = function(e) {\n deferred.resolve(e.target.result);\n };\n\n reader.readAsDataURL(file);\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n\n /**\n * Save data into file (and create that if necessary).\n */\n this.saveFile = function(filename, data) {\n // fs not initialised\n if(!_that.isInitalized)\n return;\n\n var deferred = $q.defer();\n\n _fs.root.getFile(filename, {create: true}, function(fileEntry) {\n // Create a FileWriter object for our FileEntry (log.txt).\n fileEntry.createWriter(function(fileWriter) {\n\n fileWriter.onwriteend = function(e) {\n $log.log('Write completed.');\n deferred.resolve();\n };\n\n fileWriter.onerror = function(e) {\n deferred.reject(e);\n $log.error('FileSystemService: write failed, ' + e.toString());\n };\n\n // Create a new Blob and write it to log.txt.\n var blob = new Blob([data], {type: 'text/plain'});\n\n fileWriter.write(blob);\n\n }, errorHandler);\n }, errorHandler);\n\n return deferred.promise;\n }\n}", "static initialize(app, changeLogService, deviceService, deviceFileService, deviceFileUploadService, file, httpService, localDBManagementService, localDbService, networkService, securityService) {\n if (this.initialized) {\n return;\n }\n deviceService.addStartUpService({\n serviceName: 'OfflineStartupService',\n start: () => {\n if (window['SQLitePlugin']) {\n localDBManagementService.setLogSQl((sessionStorage.getItem('wm.logSql') === 'true') || (sessionStorage.getItem('debugMode') === 'true'));\n window.logSql = (flag = true) => {\n localDBManagementService.setLogSQl(flag);\n sessionStorage.setItem('wm.logSql', flag ? 'true' : 'false');\n };\n window.executeLocalSql = (dbName, query, params) => {\n localDBManagementService.executeSQLQuery(dbName, query, params, true);\n };\n return localDBManagementService.loadDatabases().then(() => {\n changeLogService.addWorker(new IdResolver(localDBManagementService));\n changeLogService.addWorker(new ErrorBlocker(localDBManagementService));\n changeLogService.addWorker(new FileHandler());\n changeLogService.addWorker(new MultiPartParamTransformer(deviceFileService, localDBManagementService));\n new LiveVariableOfflineBehaviour(changeLogService, httpService, localDBManagementService, networkService, localDbService).add();\n new FileUploadOfflineBehaviour(changeLogService, deviceFileService, deviceFileUploadService, file, networkService, deviceFileService.getUploadDirectory()).add();\n new NamedQueryExecutionOfflineBehaviour(changeLogService, httpService, localDBManagementService, networkService).add();\n localDBManagementService.registerCallback(new UploadedFilesImportAndExportService(changeLogService, deviceFileService, localDBManagementService, file));\n changeLogService.addWorker({\n onAddCall: () => {\n if (!networkService.isConnected()) {\n networkService.disableAutoConnect();\n }\n },\n postFlush: stats => {\n if (stats.totalTaskCount > 0) {\n localDBManagementService.close()\n .catch(noop)\n .then(() => {\n location.assign(window.location.origin + window.location.pathname);\n });\n }\n }\n });\n });\n }\n return Promise.resolve();\n }\n });\n new SecurityOfflineBehaviour(app, file, deviceService, networkService, securityService).add();\n }", "constructor(){\n\t\t//console.log('API START');\n\t}", "get deviceServiceUUID() { return this._deviceServiceUUID ? this._deviceServiceUUID : 'FFE0'; }", "constructor () {\r\n\t\t\r\n\t}", "_sdkCompatibility() {\n // WebSocket\n // http://caniuse.com/#feat=websockets\n var canCreateWebSocket = 'WebSocket' in window;\n console.log('Native WebSocket capability: ' +\n canCreateWebSocket);\n\n if (!canCreateWebSocket) {\n throw new Error('No WebSocket capabilities');\n }\n }", "constructor(args) {\n super();\n args = args || {}\n this.CONSTRUCTOR_ID = 0x330b4067;\n this.SUBCLASS_OF_ID = 0xd3262a4a;\n\n this.phonecallsEnabled = args.phonecallsEnabled || null;\n this.defaultP2pContacts = args.defaultP2pContacts || null;\n this.preloadFeaturedStickers = args.preloadFeaturedStickers || null;\n this.ignorePhoneEntities = args.ignorePhoneEntities || null;\n this.revokePmInbox = args.revokePmInbox || null;\n this.blockedMode = args.blockedMode || null;\n this.pfsEnabled = args.pfsEnabled || null;\n this.date = args.date;\n this.expires = args.expires;\n this.testMode = args.testMode;\n this.thisDc = args.thisDc;\n this.dcOptions = args.dcOptions;\n this.dcTxtDomainName = args.dcTxtDomainName;\n this.chatSizeMax = args.chatSizeMax;\n this.megagroupSizeMax = args.megagroupSizeMax;\n this.forwardedCountMax = args.forwardedCountMax;\n this.onlineUpdatePeriodMs = args.onlineUpdatePeriodMs;\n this.offlineBlurTimeoutMs = args.offlineBlurTimeoutMs;\n this.offlineIdleTimeoutMs = args.offlineIdleTimeoutMs;\n this.onlineCloudTimeoutMs = args.onlineCloudTimeoutMs;\n this.notifyCloudDelayMs = args.notifyCloudDelayMs;\n this.notifyDefaultDelayMs = args.notifyDefaultDelayMs;\n this.pushChatPeriodMs = args.pushChatPeriodMs;\n this.pushChatLimit = args.pushChatLimit;\n this.savedGifsLimit = args.savedGifsLimit;\n this.editTimeLimit = args.editTimeLimit;\n this.revokeTimeLimit = args.revokeTimeLimit;\n this.revokePmTimeLimit = args.revokePmTimeLimit;\n this.ratingEDecay = args.ratingEDecay;\n this.stickersRecentLimit = args.stickersRecentLimit;\n this.stickersFavedLimit = args.stickersFavedLimit;\n this.channelsReadMediaPeriod = args.channelsReadMediaPeriod;\n this.tmpSessions = args.tmpSessions || null;\n this.pinnedDialogsCountMax = args.pinnedDialogsCountMax;\n this.pinnedInfolderCountMax = args.pinnedInfolderCountMax;\n this.callReceiveTimeoutMs = args.callReceiveTimeoutMs;\n this.callRingTimeoutMs = args.callRingTimeoutMs;\n this.callConnectTimeoutMs = args.callConnectTimeoutMs;\n this.callPacketTimeoutMs = args.callPacketTimeoutMs;\n this.meUrlPrefix = args.meUrlPrefix;\n this.autoupdateUrlPrefix = args.autoupdateUrlPrefix || null;\n this.gifSearchUsername = args.gifSearchUsername || null;\n this.venueSearchUsername = args.venueSearchUsername || null;\n this.imgSearchUsername = args.imgSearchUsername || null;\n this.staticMapsProvider = args.staticMapsProvider || null;\n this.captionLengthMax = args.captionLengthMax;\n this.messageLengthMax = args.messageLengthMax;\n this.webfileDcId = args.webfileDcId;\n this.suggestedLangCode = args.suggestedLangCode || null;\n this.langPackVersion = args.langPackVersion || null;\n this.baseLangPackVersion = args.baseLangPackVersion || null;\n }", "static _getName() {\n return 'ContentPlayback';\n }", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "start(callback){\n \n }", "async componentWillMount() {\n var _this = this\n _this.setUpUserDataFromFB()\n\n //ASK FOR CAMERA ONLT IF IS PREVIEW TRUE AND SHOWBARCODE TRUE\n if (Config.isPreview && Config.showBCScanner) {\n const { status } = await Permissions.askAsync(Permissions.CAMERA);\n this.setState({ hasCameraPermission: status === 'granted' });\n }\n\n\n\n AppEventEmitter.addListener('user.state.changes', this.alterUserState);\n if (Config.isTesterApp) {\n this.listenForUserAuth();\n } else if (Config.isPreview && !Config.isTesterApp) {\n //Load list of apps\n _this.retreiveAppDemos(\"apps\");\n }\n\n if (!Config.isPreview && !Config.isTesterApp) {\n\n //Load the data automatically, this is normal app and refister for Push notification\n this.registerForPushNotificationsAsync();\n Notifications.addListener(this._handleNotification);\n this.retreiveMeta();\n }\n\n\n await Font.loadAsync({\n //\"Material Icons\": require(\"@expo/vector-icons/fonts/MaterialIcons.ttf\"),\n //\"Ionicons\": require(\"@expo/vector-icons/fonts/Ionicons.ttf\"),\n // \"Feather\": require(\"@expo/vector-icons/fonts/Feather.ttf\"),\n 'open-sans': require('./assets/fonts/OpenSans-Regular.ttf'),\n 'lato-light': require('./assets/fonts/Lato-Light.ttf'),\n 'lato-regular': require('./assets/fonts/Lato-Regular.ttf'),\n 'lato-bold': require('./assets/fonts/Lato-Bold.ttf'),\n 'lato-black': require('./assets/fonts/Lato-Black.ttf'),\n 'roboto-medium': require('./assets/fonts/Roboto-Medium.ttf'),\n 'roboto-bold': require('./assets/fonts/Roboto-Bold.ttf'),\n 'roboto-light': require('./assets/fonts/Roboto-Light.ttf'),\n 'roboto-thin': require('./assets/fonts/Roboto-Thin.ttf'),\n\n });\n\n this.setState({ isReady: true, fontLoaded: true });\n }", "onStartHeaders() {}", "function writeHeader() {\n seekHead = createSeekHead();\n \n let\n ebmlHeader = {\n \"id\": 0x1a45dfa3, // EBML\n \"data\": [\n {\n \"id\": 0x4286, // EBMLVersion\n \"data\": 1\n },\n {\n \"id\": 0x42f7, // EBMLReadVersion\n \"data\": 1\n },\n {\n \"id\": 0x42f2, // EBMLMaxIDLength\n \"data\": 4\n },\n {\n \"id\": 0x42f3, // EBMLMaxSizeLength\n \"data\": 8\n },\n {\n \"id\": 0x4282, // DocType\n \"data\": \"webm\"\n },\n {\n \"id\": 0x4287, // DocTypeVersion\n \"data\": 2\n },\n {\n \"id\": 0x4285, // DocTypeReadVersion\n \"data\": 2\n }\n ]\n },\n \n segmentInfo = {\n \"id\": 0x1549a966, // Info\n \"data\": [\n {\n \"id\": 0x2ad7b1, // TimecodeScale\n \"data\": 1e6 // Times will be in miliseconds (1e6 nanoseconds per step = 1ms)\n },\n {\n \"id\": 0x4d80, // MuxingApp\n \"data\": \"webm-writer-js\",\n },\n {\n \"id\": 0x5741, // WritingApp\n \"data\": \"webm-writer-js\"\n },\n segmentDuration // To be filled in later\n ]\n },\n \n videoProperties = [\n {\n \"id\": 0xb0, // PixelWidth\n \"data\": videoWidth\n },\n {\n \"id\": 0xba, // PixelHeight\n \"data\": videoHeight\n }\n ];\n \n if (options.transparent) {\n videoProperties.push(\n {\n \"id\": 0x53C0, // AlphaMode\n \"data\": 1\n }\n );\n }\n \n let\n tracks = {\n \"id\": 0x1654ae6b, // Tracks\n \"data\": [\n {\n \"id\": 0xae, // TrackEntry\n \"data\": [\n {\n \"id\": 0xd7, // TrackNumber\n \"data\": DEFAULT_TRACK_NUMBER\n },\n {\n \"id\": 0x73c5, // TrackUID\n \"data\": DEFAULT_TRACK_NUMBER\n },\n {\n \"id\": 0x9c, // FlagLacing\n \"data\": 0\n },\n {\n \"id\": 0x22b59c, // Language\n \"data\": \"und\"\n },\n {\n \"id\": 0x86, // CodecID\n \"data\": \"V_VP8\"\n },\n {\n \"id\": 0x258688, // CodecName\n \"data\": \"VP8\"\n },\n {\n \"id\": 0x83, // TrackType\n \"data\": 1\n },\n {\n \"id\": 0xe0, // Video\n \"data\": videoProperties\n }\n ]\n }\n ]\n };\n \n ebmlSegment = {\n \"id\": 0x18538067, // Segment\n \"size\": -1, // Unbounded size\n \"data\": [\n seekHead,\n segmentInfo,\n tracks,\n ]\n };\n \n let\n bufferStream = new ArrayBufferDataStream(256);\n \n writeEBML(bufferStream, blobBuffer.pos, [ebmlHeader, ebmlSegment]);\n blobBuffer.write(bufferStream.getAsDataArray());\n \n // Now we know where these top-level elements lie in the file:\n seekPoints.SegmentInfo.positionEBML.data = fileOffsetToSegmentRelative(segmentInfo.offset);\n seekPoints.Tracks.positionEBML.data = fileOffsetToSegmentRelative(tracks.offset);\n \n\t writtenHeader = true;\n }", "function AppMeasurement(){var s=this;s.version=\"1.0.3\";var w=window;if(!w.s_c_in)w.s_c_il=[],w.s_c_in=0;s._il=w.s_c_il;s._in=w.s_c_in;s._il[s._in]=s;w.s_c_in++;s._c=\"s_c\";var n=w,g,k;try{g=n.parent;for(k=n.location;g&&g.location&&k&&\"\"+g.location!=\"\"+k&&n.location&&\"\"+g.location!=\"\"+n.location&&g.location.host==k.host;)n=g,g=n.parent}catch(o){}s.za=function(s){try{console.log(s)}catch(a){}};s.ba=function(s){return\"\"+parseInt(s)==\"\"+s};s.replace=function(s,a,c){if(!s||s.indexOf(a)<0)return s;return s.split(a).join(c)};\r\ns.escape=function(b){var a,c;if(!b)return b;b=encodeURIComponent(b);for(a=0;a<7;a++)c=\"+~!*()'\".substring(a,a+1),b.indexOf(c)>=0&&(b=s.replace(b,c,\"%\"+c.charCodeAt(0).toString(16).toUpperCase()));return b};s.unescape=function(b){if(!b)return b;b=b.indexOf(\"+\")>=0?s.replace(b,\"+\",\" \"):b;try{return decodeURIComponent(b)}catch(a){}return unescape(b)};s.pa=function(){var b=w.location.hostname,a=s.fpCookieDomainPeriods,c;if(!a)a=s.cookieDomainPeriods;if(b&&!s.U&&!/^[0-9.]+$/.test(b)&&(a=a?parseInt(a):\r\n2,a=a>2?a:2,c=b.lastIndexOf(\".\"),c>=0)){for(;c>=0&&a>1;)c=b.lastIndexOf(\".\",c-1),a--;s.U=c>0?b.substring(c):b}return s.U};s.c_r=s.cookieRead=function(b){b=s.escape(b);var a=\" \"+s.d.cookie,c=a.indexOf(\" \"+b+\"=\"),e=c<0?c:a.indexOf(\";\",c);b=c<0?\"\":s.unescape(a.substring(c+2+b.length,e<0?a.length:e));return b!=\"[[B]]\"?b:\"\"};s.c_w=s.cookieWrite=function(b,a,c){var e=s.pa(),d=s.cookieLifetime,f;a=\"\"+a;d=d?(\"\"+d).toUpperCase():\"\";c&&d!=\"SESSION\"&&d!=\"NONE\"&&((f=a!=\"\"?parseInt(d?d:0):-60)?(c=new Date,c.setTime(c.getTime()+\r\nf*1E3)):c==1&&(c=new Date,f=c.getYear(),c.setYear(f+5+(f<1900?1900:0))));if(b&&d!=\"NONE\")return s.d.cookie=b+\"=\"+s.escape(a!=\"\"?a:\"[[B]]\")+\"; path=/;\"+(c&&d!=\"SESSION\"?\" expires=\"+c.toGMTString()+\";\":\"\")+(e?\" domain=\"+e+\";\":\"\"),s.cookieRead(b)==a;return 0};s.v=[];s.V=function(b,a){if(s.W)return 0;if(!s.maxDelay)s.maxDelay=250;var c=0,e=(new Date).getTime()+s.maxDelay,d=s.d.Ma,f=[\"webkitvisibilitychange\",\"visibilitychange\"];if(!d)d=s.d.Na;if(d&&d==\"prerender\"){if(!s.G){s.G=1;for(c=0;c<f.length;c++)s.d.addEventListener(f[c],\r\nfunction(){var b=s.d.Ma;if(!b)b=s.d.Na;if(b==\"visible\")s.G=0,s.delayReady()})}c=1;e=0}else s.u(\"_d\")&&(c=1);c&&(s.v.push({m:b,a:a,t:e}),s.G||setTimeout(s.delayReady,s.maxDelay));return c};s.delayReady=function(){var b=(new Date).getTime(),a=0,c;for(s.u(\"_d\")&&(a=1);s.v.length>0;){c=s.v.shift();if(a&&!c.t&&c.t>b){s.v.unshift(c);setTimeout(s.delayReady,parseInt(s.maxDelay/2));break}s.W=1;s[c.m].apply(s,c.a);s.W=0}};s.setAccount=s.sa=function(b){var a,c;if(!s.V(\"setAccount\",arguments))if(s.account=b,\r\ns.allAccounts){a=s.allAccounts.concat(b.split(\",\"));s.allAccounts=[];a.sort();for(c=0;c<a.length;c++)(c==0||a[c-1]!=a[c])&&s.allAccounts.push(a[c])}else s.allAccounts=b.split(\",\")};s.P=function(b,a,c,e,d){var f=\"\",i,j,w,q,g=0;b==\"contextData\"&&(b=\"c\");if(a){for(i in a)if(!Object.prototype[i]&&(!d||i.substring(0,d.length)==d)&&a[i]&&(!c||c.indexOf(\",\"+(e?e+\".\":\"\")+i+\",\")>=0)){w=!1;if(g)for(j=0;j<g.length;j++)i.substring(0,g[j].length)==g[j]&&(w=!0);if(!w&&(f==\"\"&&(f+=\"&\"+b+\".\"),j=a[i],d&&(i=i.substring(d.length)),\r\ni.length>0))if(w=i.indexOf(\".\"),w>0)j=i.substring(0,w),w=(d?d:\"\")+j+\".\",g||(g=[]),g.push(w),f+=s.P(j,a,c,e,w);else if(typeof j==\"boolean\"&&(j=j?\"true\":\"false\"),j){if(e==\"retrieveLightData\"&&d.indexOf(\".contextData.\")<0)switch(w=i.substring(0,4),q=i.substring(4),i){case \"transactionID\":i=\"xact\";break;case \"channel\":i=\"ch\";break;case \"campaign\":i=\"v0\";break;default:s.ba(q)&&(w==\"prop\"?i=\"c\"+q:w==\"eVar\"?i=\"v\"+q:w==\"list\"?i=\"l\"+q:w==\"hier\"&&(i=\"h\"+q,j=j.substring(0,255)))}f+=\"&\"+s.escape(i)+\"=\"+s.escape(j)}}f!=\r\n\"\"&&(f+=\"&.\"+b)}return f};s.ra=function(){var b=\"\",a,c,e,d,f,i,j,w,g=\"\",n=\"\",k=c=\"\";if(s.lightProfileID)a=s.J,(g=s.lightTrackVars)&&(g=\",\"+g+\",\"+s.ea.join(\",\")+\",\");else{a=s.e;if(s.pe||s.linkType)if(g=s.linkTrackVars,n=s.linkTrackEvents,s.pe&&(c=s.pe.substring(0,1).toUpperCase()+s.pe.substring(1),s[c]))g=s[c].Va,n=s[c].Ua;g&&(g=\",\"+g+\",\"+s.C.join(\",\")+\",\");n&&(n=\",\"+n+\",\",g&&(g+=\",events,\"));s.events2&&(k+=(k!=\"\"?\",\":\"\")+s.events2)}for(c=0;c<a.length;c++){d=a[c];f=s[d];e=d.substring(0,4);i=d.substring(4);\r\n!f&&d==\"events\"&&k&&(f=k,k=\"\");if(f&&(!g||g.indexOf(\",\"+d+\",\")>=0)){switch(d){case \"timestamp\":d=\"ts\";break;case \"dynamicVariablePrefix\":d=\"D\";break;case \"visitorID\":d=\"vid\";break;case \"pageURL\":d=\"g\";if(f.length>255)s.pageURLRest=f.substring(255),f=f.substring(0,255);break;case \"pageURLRest\":d=\"-g\";break;case \"referrer\":d=\"r\";break;case \"vmk\":case \"visitorMigrationKey\":d=\"vmt\";break;case \"visitorMigrationServer\":d=\"vmf\";s.ssl&&s.visitorMigrationServerSecure&&(f=\"\");break;case \"visitorMigrationServerSecure\":d=\r\n\"vmf\";!s.ssl&&s.visitorMigrationServer&&(f=\"\");break;case \"charSet\":d=\"ce\";break;case \"visitorNamespace\":d=\"ns\";break;case \"cookieDomainPeriods\":d=\"cdp\";break;case \"cookieLifetime\":d=\"cl\";break;case \"variableProvider\":d=\"vvp\";break;case \"currencyCode\":d=\"cc\";break;case \"channel\":d=\"ch\";break;case \"transactionID\":d=\"xact\";break;case \"campaign\":d=\"v0\";break;case \"resolution\":d=\"s\";break;case \"colorDepth\":d=\"c\";break;case \"javascriptVersion\":d=\"j\";break;case \"javaEnabled\":d=\"v\";break;case \"cookiesEnabled\":d=\r\n\"k\";break;case \"browserWidth\":d=\"bw\";break;case \"browserHeight\":d=\"bh\";break;case \"connectionType\":d=\"ct\";break;case \"homepage\":d=\"hp\";break;case \"plugins\":d=\"p\";break;case \"events\":k&&(f+=(f!=\"\"?\",\":\"\")+k);if(n){i=f.split(\",\");f=\"\";for(e=0;e<i.length;e++)j=i[e],w=j.indexOf(\"=\"),w>=0&&(j=j.substring(0,w)),w=j.indexOf(\":\"),w>=0&&(j=j.substring(0,w)),n.indexOf(\",\"+j+\",\")>=0&&(f+=(f?\",\":\"\")+i[e])}break;case \"events2\":f=\"\";break;case \"contextData\":b+=s.P(\"c\",s[d],g,d);f=\"\";break;case \"lightProfileID\":d=\r\n\"mtp\";break;case \"lightStoreForSeconds\":d=\"mtss\";s.lightProfileID||(f=\"\");break;case \"lightIncrementBy\":d=\"mti\";s.lightProfileID||(f=\"\");break;case \"retrieveLightProfiles\":d=\"mtsr\";break;case \"deleteLightProfiles\":d=\"mtsd\";break;case \"retrieveLightData\":s.retrieveLightProfiles&&(b+=s.P(\"mts\",s[d],g,d));f=\"\";break;default:s.ba(i)&&(e==\"prop\"?d=\"c\"+i:e==\"eVar\"?d=\"v\"+i:e==\"list\"?d=\"l\"+i:e==\"hier\"&&(d=\"h\"+i,f=f.substring(0,255)))}f&&(b+=\"&\"+d+\"=\"+(d.substring(0,3)!=\"pev\"?s.escape(f):f))}d==\"pev3\"&&s.g&&\r\n(b+=s.g)}return b};s.p=function(s){var a=s.tagName;if(\"\"+s.Ta!=\"undefined\"||\"\"+s.Ea!=\"undefined\"&&(\"\"+s.Ea).toUpperCase()!=\"HTML\")return\"\";a=a&&a.toUpperCase?a.toUpperCase():\"\";a==\"SHAPE\"&&(a=\"\");a&&((a==\"INPUT\"||a==\"BUTTON\")&&s.type&&s.type.toUpperCase?a=s.type.toUpperCase():!a&&s.href&&(a=\"A\"));return a};s.Y=function(s){var a=s.href?s.href:\"\",c,e,d;c=a.indexOf(\":\");e=a.indexOf(\"?\");d=a.indexOf(\"/\");if(a&&(c<0||e>=0&&c>e||d>=0&&c>d))e=s.protocol&&s.protocol.length>1?s.protocol:l.protocol?l.protocol:\r\n\"\",c=l.pathname.lastIndexOf(\"/\"),a=(e?e+\"//\":\"\")+(s.host?s.host:l.host?l.host:\"\")+(h.substring(0,1)!=\"/\"?l.pathname.substring(0,c<0?0:c)+\"/\":\"\")+a;return a};s.z=function(b){var a=s.p(b),c,e,d=\"\",f=0;if(a){c=b.protocol;e=b.onclick;if(b.href&&(a==\"A\"||a==\"AREA\")&&(!e||!c||c.toLowerCase().indexOf(\"javascript\")<0))d=s.Y(b);else if(e)d=s.replace(s.replace(s.replace(s.replace(\"\"+e,\"\\r\",\"\"),\"\\n\",\"\"),\"\\t\",\"\"),\" \",\"\"),f=2;else if(a==\"INPUT\"||a==\"SUBMIT\"){if(b.value)d=b.value;else if(b.innerText)d=b.innerText;\r\nelse if(b.textContent)d=b.textContent;f=3}else if(b.src&&a==\"IMAGE\")d=b.src;if(d)return{id:d.substring(0,100),type:f}}return 0};s.Qa=function(b){for(var a=s.p(b),c=s.z(b);b&&!c&&a!=\"BODY\";)if(b=b.parentElement?b.parentElement:b.parentNode)a=s.p(b),c=s.z(b);if(!c||a==\"BODY\")b=0;if(b&&(a=b.onclick?\"\"+b.onclick:\"\",a.indexOf(\".tl(\")>=0||a.indexOf(\".trackLink(\")>=0))b=0;return b};s.Ca=function(){var b,a,c=s.linkObject,e=s.linkType,d=s.linkURL,f,i;s.K=1;if(!c)s.K=0,c=s.j;if(c){b=s.p(c);for(a=s.z(c);c&&\r\n!a&&b!=\"BODY\";)if(c=c.parentElement?c.parentElement:c.parentNode)b=s.p(c),a=s.z(c);if(!a||b==\"BODY\")c=0;if(c){var j=c.onclick?\"\"+c.onclick:\"\";if(j.indexOf(\".tl(\")>=0||j.indexOf(\".trackLink(\")>=0)c=0}}else s.K=1;!d&&c&&(d=s.Y(c));d&&!s.linkLeaveQueryString&&(f=d.indexOf(\"?\"),f>=0&&(d=d.substring(0,f)));if(!e&&d){var g=0,n=0,k;if(s.trackDownloadLinks&&s.linkDownloadFileTypes){j=d.toLowerCase();f=j.indexOf(\"?\");i=j.indexOf(\"#\");f>=0?i>=0&&i<f&&(f=i):f=i;f>=0&&(j=j.substring(0,f));f=s.linkDownloadFileTypes.toLowerCase().split(\",\");\r\nfor(i=0;i<f.length;i++)(k=f[i])&&j.substring(j.length-(k.length+1))==\".\"+k&&(e=\"d\")}if(s.trackExternalLinks&&!e&&(j=d.toLowerCase(),s.aa(j))){if(!s.linkInternalFilters)s.linkInternalFilters=w.location.hostname;f=0;s.linkExternalFilters?(f=s.linkExternalFilters.toLowerCase().split(\",\"),g=1):s.linkInternalFilters&&(f=s.linkInternalFilters.toLowerCase().split(\",\"));if(f){for(i=0;i<f.length;i++)k=f[i],j.indexOf(k)>=0&&(n=1);n?g&&(e=\"e\"):g||(e=\"e\")}}}s.linkObject=c;s.linkURL=d;s.linkType=e;if(s.trackClickMap||\r\ns.trackInlineStats)if(s.g=\"\",c){e=s.pageName;d=1;c=c.sourceIndex;if(!e)e=s.pageURL,d=0;if(w.s_objectID)a.id=w.s_objectID,c=a.type=1;if(e&&a&&a.id&&b)s.g=\"&pid=\"+s.escape(e.substring(0,255))+(d?\"&pidt=\"+d:\"\")+\"&oid=\"+s.escape(a.id.substring(0,100))+(a.type?\"&oidt=\"+a.type:\"\")+\"&ot=\"+b+(c?\"&oi=\"+c:\"\")}};s.ta=function(){var b=s.K,a=s.linkType,c=s.linkURL,e=s.linkName;if(a&&(c||e))a=a.toLowerCase(),a!=\"d\"&&a!=\"e\"&&(a=\"o\"),s.pe=\"lnk_\"+a,s.pev1=c?s.escape(c):\"\",s.pev2=e?s.escape(e):\"\",b=1;s.abort&&(b=0);\r\nif(s.trackClickMap||s.trackInlineStats){a={};c=0;var d=s.cookieRead(\"s_sq\"),f=d?d.split(\"&\"):0,i,j,w;d=0;if(f)for(i=0;i<f.length;i++)j=f[i].split(\"=\"),e=s.unescape(j[0]).split(\",\"),j=s.unescape(j[1]),a[j]=e;e=s.account.split(\",\");if(b||s.g){b&&!s.g&&(d=1);for(j in a)if(!Object.prototype[j])for(i=0;i<e.length;i++){d&&(w=a[j].join(\",\"),w==s.account&&(s.g+=(j.charAt(0)!=\"&\"?\"&\":\"\")+j,a[j]=[],c=1));for(f=0;f<a[j].length;f++)w=a[j][f],w==e[i]&&(d&&(s.g+=\"&u=\"+s.escape(w)+(j.charAt(0)!=\"&\"?\"&\":\"\")+j+\"&u=0\"),\r\na[j].splice(f,1),c=1)}b||(c=1);if(c){d=\"\";i=2;!b&&s.g&&(d=s.escape(e.join(\",\"))+\"=\"+s.escape(s.g),i=1);for(j in a)!Object.prototype[j]&&i>0&&a[j].length>0&&(d+=(d?\"&\":\"\")+s.escape(a[j].join(\",\"))+\"=\"+s.escape(j),i--);s.cookieWrite(\"s_sq\",d)}}}return b};s.ua=function(){if(!s.Ka){var b=new Date,a=n.location,c,e,d,f=d=e=c=\"\",i=\"\",w=\"\",g=\"1.2\",k=s.cookieWrite(\"s_cc\",\"true\",0)?\"Y\":\"N\",o=\"\",p=\"\",r=0;if(b.setUTCDate&&(g=\"1.3\",r.toPrecision&&(g=\"1.5\",c=[],c.forEach))){g=\"1.6\";d=0;e={};try{d=new Iterator(e),\r\nd.next&&(g=\"1.7\",c.reduce&&(g=\"1.8\",g.trim&&(g=\"1.8.1\",Date.parse&&(g=\"1.8.2\",Object.create&&(g=\"1.8.5\")))))}catch(t){}}c=screen.width+\"x\"+screen.height;d=navigator.javaEnabled()?\"Y\":\"N\";e=screen.pixelDepth?screen.pixelDepth:screen.colorDepth;i=s.w.innerWidth?s.w.innerWidth:s.d.documentElement.offsetWidth;w=s.w.innerHeight?s.w.innerHeight:s.d.documentElement.offsetHeight;b=navigator.plugins;try{s.b.addBehavior(\"#default#homePage\"),o=s.b.Ra(a)?\"Y\":\"N\"}catch(u){}try{s.b.addBehavior(\"#default#clientCaps\"),\r\np=s.b.connectionType}catch(x){}if(b)for(;r<b.length&&r<30;){if(a=b[r].name)a=a.substring(0,100)+\";\",f.indexOf(a)<0&&(f+=a);r++}s.resolution=c;s.colorDepth=e;s.javascriptVersion=g;s.javaEnabled=d;s.cookiesEnabled=k;s.browserWidth=i;s.browserHeight=w;s.connectionType=p;s.homepage=o;s.plugins=f;s.Ka=1}};s.B={};s.loadModule=function(b,a){s.B[b]||(s[b]=w[\"AppMeasurement_Module_\"+b]?new w[\"AppMeasurement_Module_\"+b](s):{},s.B[b]=s[b]);a&&(s[b+\"_onLoad\"]=a,delayCall(b+\"_onLoad\",[s,m],1)||a(s,m))};s.u=function(b){var a,\r\nc;for(a in s.B)if(!Object.prototype[a]&&(c=s.B[a])&&c[b]&&c[b]())return 1;return 0};s.xa=function(){var b=Math.floor(Math.random()*1E13),a=s.visitorSampling,c=s.visitorSamplingGroup;c=\"s_vsn_\"+(s.visitorNamespace?s.visitorNamespace:s.account)+(c?\"_\"+c:\"\");var e=s.cookieRead(c);if(a){e&&(e=parseInt(e));if(!e){if(!s.cookieWrite(c,b))return 0;e=b}if(e%1E4>v)return 0}return 1};s.Q=function(b,a){var c,e,d,f,i,w;for(c=0;c<2;c++){e=c>0?s.R:s.e;for(d=0;d<e.length;d++)if(f=e[d],(i=b[f])||b[\"!\"+f]){if(!a&&\r\n(f==\"contextData\"||f==\"retrieveLightData\")&&s[f])for(w in s[f])i[w]||(i[w]=s[f][w]);s[f]=i}}};s.La=function(b){var a,c,e,d;for(a=0;a<2;a++){c=a>0?s.R:s.e;for(e=0;e<c.length;e++)d=c[e],b[d]=s[d],b[d]||(b[\"!\"+d]=1)}};s.oa=function(s){var a,c,e,d,f,w=0,g,n=\"\",k=\"\";if(s&&s.length>255&&(a=\"\"+s,c=a.indexOf(\"?\"),c>0&&(g=a.substring(c+1),a=a.substring(0,c),d=a.toLowerCase(),e=0,d.substring(0,7)==\"http://\"?e+=7:d.substring(0,8)==\"https://\"&&(e+=8),c=d.indexOf(\"/\",e),c>0&&(d=d.substring(e,c),f=a.substring(c),\r\na=a.substring(0,c),d.indexOf(\"google\")>=0?w=\",q,ie,start,search_key,word,kw,cd,\":d.indexOf(\"yahoo.co\")>=0&&(w=\",p,ei,\"),w&&g)))){if((s=g.split(\"&\"))&&s.length>1){for(e=0;e<s.length;e++)d=s[e],c=d.indexOf(\"=\"),c>0&&w.indexOf(\",\"+d.substring(0,c)+\",\")>=0?n+=(n?\"&\":\"\")+d:k+=(k?\"&\":\"\")+d;n&&k?g=n+\"&\"+k:k=\"\"}c=253-(g.length-k.length)-a.length;s=a+(c>0?f.substring(0,c):\"\")+\"?\"+g}return s};s.qa=function(){var b=s.cookieRead(\"s_fid\"),a=\"\",c=\"\",e;e=8;var d=4;if(!b||b.indexOf(\"-\")<0){for(b=0;b<16;b++)e=Math.floor(Math.random()*\r\ne),a+=\"0123456789ABCDEF\".substring(e,e+1),e=Math.floor(Math.random()*d),c+=\"0123456789ABCDEF\".substring(e,e+1),e=d=16;b=a+\"-\"+c}s.cookieWrite(\"s_fid\",b,1)||(b=0);return b};s.t=s.track=function(b){var a,c=new Date,e=\"s\"+Math.floor(c.getTime()/108E5)%10+Math.floor(Math.random()*1E13),d=c.getYear();d=\"t=\"+s.escape(c.getDate()+\"/\"+c.getMonth()+\"/\"+(d<1900?d+1900:d)+\" \"+c.getHours()+\":\"+c.getMinutes()+\":\"+c.getSeconds()+\" \"+c.getDay()+\" \"+c.getTimezoneOffset());if(!s.V(\"track\",arguments)){b&&(a={},s.La(a),\r\ns.Q(b));if(s.xa()&&(s.fid=s.qa(),s.Ca(),s.usePlugins&&s.doPlugins&&s.doPlugins(s),s.account)){if(!s.abort){if(s.trackOffline&&!s.timestamp)s.timestamp=Math.floor(c.getTime()/1E3);c=w.location;if(!s.pageURL)s.pageURL=c.href?c.href:c;if(!s.referrer&&!s.ia)s.referrer=n.document.referrer,s.ia=1;s.referrer=s.oa(s.referrer);s.u(\"_g\")}s.ta()&&!s.abort&&(s.ua(),d+=s.ra(),s.Ba(e,d));s.abort||s.u(\"_t\")}b&&s.Q(a,1);s.timestamp=s.linkObject=s.j=s.linkURL=s.linkName=s.linkType=w.Sa=s.pe=s.pev1=s.pev2=s.pev3=s.g=\r\n0}};s.tl=s.trackLink=function(b,a,c,e,d){s.linkObject=b;s.linkType=a;s.linkName=c;if(d)s.i=b,s.l=d;return s.track(e)};s.trackLight=function(b,a,c,e){s.lightProfileID=b;s.lightStoreForSeconds=a;s.lightIncrementBy=c;return s.track(e)};s.clearVars=function(){var b,a;for(b=0;b<s.e.length;b++)if(a=s.e[b],a.substring(0,4)==\"prop\"||a.substring(0,4)==\"eVar\"||a.substring(0,4)==\"hier\"||a.substring(0,4)==\"list\"||a==\"channel\"||a==\"events\"||a==\"eventList\"||a==\"products\"||a==\"productList\"||a==\"purchaseID\"||a==\r\n\"transactionID\"||a==\"state\"||a==\"zip\"||a==\"campaign\")s[a]=void 0};s.Ba=function(b,a){var c,e=s.trackingServer;c=\"\";var d=s.dc,f=\"sc.\",w=s.visitorNamespace;if(e){if(s.trackingServerSecure&&s.ssl)e=s.trackingServerSecure}else{if(!w)w=s.account,e=w.indexOf(\",\"),e>=0&&(w=w.Oa(0,e)),w=w.replace(/[^A-Za-z0-9]/g,\"\");c||(c=\"2o7.net\");d=d?(\"\"+d).toLowerCase():\"d1\";c==\"2o7.net\"&&(d==\"d1\"?d=\"112\":d==\"d2\"&&(d=\"122\"),f=\"\");e=w+\".\"+d+\".\"+f+c}c=s.ssl?\"https://\":\"http://\";c+=e+\"/b/ss/\"+s.account+\"/\"+(s.mobile?\"5.\":\r\n\"\")+\"1/JS-\"+s.version+(s.Ja?\"T\":\"\")+\"/\"+b+\"?AQB=1&ndh=1&\"+a+\"&AQE=1\";s.wa&&(c=c.substring(0,2047));s.ma(c);s.H()};s.ma=function(b){s.c||s.va();s.c.push(b);s.I=s.o();s.ha()};s.va=function(){s.c=s.ya();if(!s.c)s.c=[]};s.ya=function(){var b,a;if(s.M()){try{(a=w.localStorage.getItem(s.L()))&&(b=w.JSON.parse(a))}catch(c){}return b}};s.M=function(){var b=!0;if(!s.trackOffline||!s.offlineFilename||!w.localStorage||!w.JSON)b=!1;return b};s.Z=function(){var b=0;if(s.c)b=s.c.length;s.q&&b++;return b};s.H=function(){if(!s.q)if(s.$=\r\nnull,s.fa)s.I>s.A&&s.ga(s.c),s.O(500);else{var b=s.ja();if(b>0)s.O(b);else if(b=s.X())s.q=1,s.Aa(b),s.Fa(b)}};s.O=function(b){if(!s.$)b||(b=0),s.$=setTimeout(s.H,b)};s.ja=function(){var b;if(!s.trackOffline||s.offlineThrottleDelay<=0)return 0;b=s.o()-s.da;if(s.offlineThrottleDelay<b)return 0;return s.offlineThrottleDelay-b};s.X=function(){if(s.c.length>0)return s.c.shift()};s.Aa=function(b){if(s.debugTracking){var a=\"AppMeasurement Debug: \"+b;b=b.split(\"&\");var c;for(c=0;c<b.length;c++)a+=\"\\n\\t\"+\r\ns.unescape(b[c]);s.za(a)}};s.Fa=function(b){var a;a||(a=new Image);a.T=function(){try{if(s.N)clearTimeout(s.N),s.N=0;if(a.timeout)clearTimeout(a.timeout),a.timeout=0}catch(b){}};a.onload=a.Ia=function(){a.T();s.la();s.D();s.q=0;s.H()};a.onabort=a.onerror=a.na=function(){a.T();s.q&&s.c.unshift(s.ka);s.q=0;s.I>s.A&&s.ga(s.c);s.D();s.O(500)};a.onreadystatechange=function(){a.readyState==4&&(a.status==200?a.Ia():a.na())};s.da=s.o();a.src=b;if(a.abort)s.N=setTimeout(a.abort,5E3);s.ka=b;s.Pa=w[\"s_i_\"+s.replace(s.account,\r\n\",\",\"_\")]=a;if(s.useForcedLinkTracking&&s.r||s.l){if(!s.forcedLinkTrackingTimeout)s.forcedLinkTrackingTimeout=250;s.F=setTimeout(s.D,s.forcedLinkTrackingTimeout)}};s.la=function(){if(s.M()&&!(s.ca>s.A))try{w.localStorage.removeItem(s.L()),s.ca=s.o()}catch(b){}};s.ga=function(b){if(s.M()){s.ha();try{w.localStorage.setItem(s.L(),w.JSON.stringify(b)),s.A=s.o()}catch(a){}}};s.ha=function(){if(s.trackOffline){if(!s.offlineLimit||s.offlineLimit<=0)s.offlineLimit=10;for(;s.c.length>s.offlineLimit;)s.X()}};\r\ns.forceOffline=function(){s.fa=!0};s.forceOnline=function(){s.fa=!1};s.L=function(){return s.offlineFilename+\"-\"+s.visitorNamespace+s.account};s.o=function(){return(new Date).getTime()};s.aa=function(s){s=s.toLowerCase();if(s.indexOf(\"#\")!=0&&s.indexOf(\"about:\")!=0&&s.indexOf(\"javascript:\")!=0)return!0;return!1};s.setTagContainer=function(b){var a,c,e;s.Ja=b;for(a=0;a<s._il.length;a++)if((c=s._il[a])&&c._c==\"s_l\"&&c.tagContainerName==b){s.Q(c);if(c.lmq)for(a=0;a<c.lmq.length;a++)e=c.lmq[a],s.loadModule(e.n);\r\nif(c.ml)for(e in c.ml)if(s[e])for(a in b=s[e],e=c.ml[e],e)if(!Object.prototype[a]&&(typeof e[a]!=\"function\"||(\"\"+e[a]).indexOf(\"s_c_il\")<0))b[a]=e[a];if(c.mmq)for(a=0;a<c.mmq.length;a++)e=c.mmq[a],s[e.m]&&(b=s[e.m],b[e.f]&&typeof b[e.f]==\"function\"&&(e.a?b[e.f].apply(b,e.a):b[e.f].apply(b)));if(c.tq)for(a=0;a<c.tq.length;a++)s.track(c.tq[a]);c.s=s;break}};s.Util={urlEncode:s.escape,urlDecode:s.unescape,cookieRead:s.cookieRead,cookieWrite:s.cookieWrite,getQueryParam:function(b,a,c){var e;a||(a=s.pageURL?\r\ns.pageURL:w.location);c||(c=\"&\");if(b&&a&&(a=\"\"+a,e=a.indexOf(\"?\"),e>=0&&(a=c+a.substring(e+1)+c,e=a.indexOf(c+b+\"=\"),e>=0&&(a=a.substring(e+c.length+b.length+1),e=a.indexOf(c),e>=0&&(a=a.substring(0,e)),a.length>0))))return s.unescape(a);return\"\"}};s.C=[\"timestamp\",\"dynamicVariablePrefix\",\"visitorID\",\"anonymousVisitorID\",\"globalVisitorID\",\"globalLocationHint\",\"fid\",\"vmk\",\"visitorMigrationKey\",\"visitorMigrationServer\",\"visitorMigrationServerSecure\",\"charSet\",\"visitorNamespace\",\"cookieDomainPeriods\",\r\n\"fpCookieDomainPeriods\",\"cookieLifetime\",\"pageName\",\"pageURL\",\"referrer\",\"contextData\",\"currencyCode\",\"lightProfileID\",\"lightStoreForSeconds\",\"lightIncrementBy\",\"retrieveLightProfiles\",\"deleteLightProfiles\",\"retrieveLightData\",\"pe\",\"pev1\",\"pev2\",\"pev3\",\"pageURLRest\"];s.e=s.C.concat([\"purchaseID\",\"variableProvider\",\"channel\",\"server\",\"pageType\",\"transactionID\",\"campaign\",\"state\",\"zip\",\"events\",\"events2\",\"products\",\"tnt\"]);s.ea=[\"timestamp\",\"charSet\",\"visitorNamespace\",\"cookieDomainPeriods\",\"cookieLifetime\",\r\n\"contextData\",\"lightProfileID\",\"lightStoreForSeconds\",\"lightIncrementBy\"];s.J=s.ea.slice(0);s.R=[\"account\",\"allAccounts\",\"debugTracking\",\"visitor\",\"trackOffline\",\"offlineLimit\",\"offlineThrottleDelay\",\"offlineFilename\",\"usePlugins\",\"doPlugins\",\"configURL\",\"visitorSampling\",\"s.visitorSamplingGroup\",\"linkObject\",\"linkURL\",\"linkName\",\"linkType\",\"trackDownloadLinks\",\"trackExternalLinks\",\"trackClickMap\",\"trackInlineStats\",\"linkLeaveQueryString\",\"linkTrackVars\",\"linkTrackEvents\",\"linkDownloadFileTypes\",\r\n\"linkExternalFilters\",\"linkInternalFilters\",\"useForcedLinkTracking\",\"forcedLinkTrackingTimeout\",\"trackingServer\",\"trackingServerSecure\",\"ssl\",\"abort\",\"mobile\",\"dc\",\"lightTrackVars\",\"maxDelay\"];for(g=0;g<=75;g++)s.e.push(\"prop\"+g),s.J.push(\"prop\"+g),s.e.push(\"eVar\"+g),s.J.push(\"eVar\"+g),g<6&&s.e.push(\"hier\"+g),g<4&&s.e.push(\"list\"+g);g=[\"resolution\",\"colorDepth\",\"javascriptVersion\",\"javaEnabled\",\"cookiesEnabled\",\"browserWidth\",\"browserHeight\",\"connectionType\",\"homepage\",\"plugins\"];s.e=s.e.concat(g);\r\ns.C=s.C.concat(g);s.ssl=w.location.protocol.toLowerCase().indexOf(\"https\")>=0;s.charSet=\"UTF-8\";s.contextData={};s.offlineThrottleDelay=0;s.offlineFilename=\"AppMeasurement.offline\";s.da=0;s.I=0;s.A=0;s.ca=0;s.linkDownloadFileTypes=\"exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx\";s.w=w;s.d=w.document;try{s.wa=navigator.appName==\"Microsoft Internet Explorer\"}catch(p){}s.D=function(){if(s.F)w.clearTimeout(s.F),s.F=null;s.i&&s.r&&s.i.dispatchEvent(s.r);if(s.l)if(typeof s.l==\"function\")s.l();\r\nelse if(s.i&&s.i.href)s.d.location=s.i.href;s.i=s.r=s.l=0};s.Ga=function(){s.b=s.d.body;if(s.b)if(s.k=function(b){var a,c,e,d,f;if(!(s.d&&s.d.getElementById(\"cppXYctnr\")||b&&b.Da)){if(s.S)if(s.useForcedLinkTracking)s.b.removeEventListener(\"click\",s.k,!1);else{s.b.removeEventListener(\"click\",s.k,!0);s.S=s.useForcedLinkTracking=0;return}else s.useForcedLinkTracking=0;s.j=b.srcElement?b.srcElement:b.target;try{if(s.j&&(s.j.tagName||s.j.parentElement||s.j.parentNode))if(e=s.Z(),s.track(),e<s.Z()&&s.useForcedLinkTracking&&\r\nb.target){for(d=b.target;d&&d!=s.b&&d.tagName.toUpperCase()!=\"A\"&&d.tagName.toUpperCase()!=\"AREA\";)d=d.parentNode;if(d&&(f=d.href,s.aa(f)||(f=0),c=d.target,b.target.dispatchEvent&&f&&(!c||c==\"_self\"||c==\"_top\"||c==\"_parent\"||w.name&&c==w.name))){try{a=s.d.createEvent(\"MouseEvents\")}catch(g){a=new w.MouseEvent}if(a){try{a.initMouseEvent(\"click\",b.bubbles,b.cancelable,b.view,b.detail,b.screenX,b.screenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget)}catch(j){a=\r\n0}if(a)a.Da=1,b.stopPropagation(),b.Ha&&b.Ha(),b.preventDefault(),s.i=b.target,s.r=a}}}}catch(k){}s.j=0}},s.b&&s.b.attachEvent)s.b.attachEvent(\"onclick\",s.k);else{if(s.b&&s.b.addEventListener){if(navigator&&(navigator.userAgent.indexOf(\"WebKit\")>=0&&s.d.createEvent||navigator.userAgent.indexOf(\"Firefox/2\")>=0&&w.MouseEvent))s.S=1,s.useForcedLinkTracking=1,s.b.addEventListener(\"click\",s.k,!0);s.b.addEventListener(\"click\",s.k,!1)}}else setTimeout(setupBody,30)};s.Ga()}", "function getVersion(){return _VERSION}", "InitVsaEngine() {\n\n }", "constructor() {\n this.systemLog = false\n this.appName = '@codedungeon/messenger'\n this.logToFile = false\n this.methods = [\n 'write',\n 'critical',\n 'lblCritical',\n 'danger',\n 'lblDanger',\n 'debug',\n 'error',\n 'lblError',\n 'important',\n 'lblImportant',\n 'info',\n 'lblInfo',\n 'log',\n 'note',\n 'notice',\n 'lblNotice',\n 'status',\n 'success',\n 'lblSuccess',\n 'warn',\n 'lblWarn',\n 'warning',\n 'lblWarning'\n ]\n }", "private internal function m248() {}", "function WebSocketRpcConnection()\n{\nvar self = this;\n\nvar isNodeJs = (typeof window === \"undefined\" ? true : false);\n\nvar lib = null;\nvar SpaceifyError = null;\nvar SpaceifyUtility = null;\nvar RpcCommunicator = null;\n//var SpaceifyLogger = null;\nvar WebSocketConnection = null;\n\nif (isNodeJs)\n\t{\n\tlib = \"/var/lib/spaceify/code/\";\n\n\tSpaceifyError = require(lib + \"spaceifyerror\");\n\t//SpaceifyLogger = require(lib + \"spaceifylogger\");\n\tSpaceifyUtility = require(lib + \"spaceifyutility\");\n\tRpcCommunicator = require(lib + \"rpccommunicator\");\n\tWebSocketConnection = require(lib + \"websocketconnection\");\n\t}\nelse\n\t{\n\tlib = (window.WEBPACK_MAIN_LIBRARY ? window.WEBPACK_MAIN_LIBRARY : window);\n\n\t//SpaceifyLogger = lib.SpaceifyLogger;\n\tSpaceifyError = lib.SpaceifyError;\n\tSpaceifyUtility = lib.SpaceifyUtility;\n\tRpcCommunicator = lib.RpcCommunicator;\n\tWebSocketConnection = lib.WebSocketConnection;\n\t}\n\nvar errorc = new SpaceifyError();\nvar utility = new SpaceifyUtility();\nvar communicator = new RpcCommunicator();\nvar connection = new WebSocketConnection();\n//var logger = new SpaceifyLogger(\"WebSocketRpcConnection\");\n\nself.connect = function(options, callback)\n\t{\n\tconnection.connect(options, function(err, data)\n\t\t{\n\t\tif(!err)\n\t\t\t{\n\t\t\tcommunicator.addConnection(connection);\n\n\t\t\tif(callback)\n\t\t\t\tcallback(null, true);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tif(callback)\n\t\t\t\tcallback(errorc.makeErrorObject(\"wsrpcc\", \"Failed to open WebsocketRpcConnection.\", \"WebSocketRpcConnection::connect\"), null);\n\t\t\t}\n\t\t});\n\t};\n\nself.close = function()\n\t{\n\t};\n\nself.getCommunicator = function()\n\t{\n\treturn communicator;\n\t};\n\nself.getConnection = function()\n\t{\n\treturn connection;\n\t};\n\n// Inherited methods\nself.getIsOpen = function()\n\t{\n\treturn connection.getIsOpen();\n\t}\n\nself.getIsSecure = function()\n\t{\n\treturn connection.getIsSecure();\n\t}\n\nself.getPort = function()\n\t{\n\treturn connection.getPort();\n\t}\n\nself.getId = function()\n\t{\n\treturn connection.getId();\n\t}\n\nself.connectionExists = function(connectionId)\n\t{\n\treturn communicator.connectionExists(connectionId);\n\t}\n\nself.exposeRpcMethod = function(name, object, method)\n\t{\n\tcommunicator.exposeRpcMethod(name, object, method);\n\t}\n\nself.exposeRpcMethodSync = function(name, object, method)\n\t{\n\tcommunicator.exposeRpcMethodSync(name, object, method);\n\t}\n\nself.callRpc = function(method, params, object, listener)\n\t{\n\treturn communicator.callRpc(method, params, object, listener, connection.getId());\n\t}\n\n// External event listeners\nself.setConnectionListener = function(listener)\n\t{\n\tcommunicator.setConnectionListener(listener);\n\t};\n\nself.setDisconnectionListener = function(listener)\n\t{\n\tcommunicator.setDisconnectionListener(listener);\n\t};\n\n}", "heartbeat () {\n }", "function _____SHARED_functions_____(){}", "function getString(key, params) {\n var result = WEB_PLATFORM.getString(\"org_opensds_storage_devices\", key, params);\n if(result == null){\n return key;\n }else{\n return result;\n }\n }", "onShareAppMessage() {\n\n }", "componentDidMount(){\n console.info(this.constructor.name+ 'Component mount process finished');\n }", "onMessage() {}", "onMessage() {}", "requestThumbnails() {\n let position = this.state.position;\n let ed = this.state.ed;\n let ts = position == 'start' ? ed.start : ed.end;\n\n this.props.socket.emit('frameSelect',{ ts: ts } );\n }", "static get tag(){return\"hal-9000\"}", "started() {\r\n\r\n\t}", "constructor(t){const e={...t};this.connectionState=new h,this.server=\"https://hub-server-2.heatgenius.co.uk\",this.username=\"\",this.signature=\"\",this.auth={header:{}},this.lastQueryTime=null,this._axios=i.a.create({}),this.logger=e.logger?e.logger:console,this.debug=!!e.debug&&e.debug}", "get EXTERNAL_API() {\n return ['setUsageMode',\n 'setBackupMode',\n 'setLocationMode',\n 'setUsageOptinHidden',\n ];\n }", "getVideoDataBuffer() {\n return this.videoDataBuffer;\n }", "addTPKLayer(){\n //<editor-fold desc=\"old code to eliminate\">\n /* if (typeof local == 'undefined') {\n\n //todo: maybe based on this url we could decide if taking the tpk from File API or form URL\n var xhrRequest = new XMLHttpRequest();\n var _this = this;\n xhrRequest.open(\"GET\", url, true);\n xhrRequest.responseType = \"blob\";\n xhrRequest.onprogress = function(evt){\n var percent = 0;\n if(/!*evt.hasOwnProperty(\"total\")*!/typeof evt[\"total\"] !== 'undefined'){\n percent = (parseFloat(evt.loaded / evt.total) * 100).toFixed(0);\n }\n else{\n percent = (parseFloat(evt.loaded / evt.totalSize) * 100).toFixed(0);\n }\n\n console.log(\"Get file via url \" + percent + \"%\");\n console.log(\"Begin downloading remote tpk file...\");\n };\n\n xhrRequest.error = function(err){\n console.log(\"ERROR retrieving TPK file: \" + err.toString());\n alert(\"There was a problem retrieve the file.\");\n };\n var __this = _this;\n xhrRequest.onload = function(oEvent) {\n if(this.status === 200) {\n console.log(\"Remote tpk download finished.\" + oEvent);\n __this.zipParser(this.response);\n }\n else{\n alert(\"There was a problem loading the file. \" + this.status + \": \" + this.statusText );\n }\n };\n xhrRequest.send();\n }\n*/\n //</editor-fold>\n if (this.get('ermesCordova').isNative()){\n\n var basemapName = this.get('parcels').get('basemapName');\n var store = cordova.file.dataDirectory;\n var fileName = basemapName;\n this.set(\"loading\", true);\n this.getBaseMapZip (store, fileName).then((binary)=>{\n if (binary!== null) {\n this.zipParser(binary);\n }\n else {\n Ember.debug(\"getBaseMapZip: error loading the zip file\");\n }\n });\n }\n\n }", "private public function m246() {}", "async onReady() {\n try {\n // Initialize your adapter here\n //Logging of adapter start\n this.log.info('start fb-checkpresence: ip-address: \"' + this.config.ipaddress + '\" - interval devices: ' + this.config.interval + ' Min.' + ' - interval members: ' + this.config.intervalFamily + ' s');\n this.log.debug('configuration user: <' + this.config.username + '>');\n this.log.debug('configuration history: <' + this.config.history + '>');\n this.log.debug('configuration dateformat: <' + this.config.dateformat + '>');\n this.log.debug('configuration familymembers: ' + JSON.stringify(this.config.familymembers));\n this.log.debug('configuration fb-devices ' + this.config.fbdevices);\n this.log.debug('configuratuion mesh info: ' + this.config.meshinfo); \n\n //decrypt fritzbox password\n const sysObj = await this.getForeignObjectAsync('system.config');\n if (sysObj && sysObj.native && sysObj.native.secret) {\n this.config.password = this.decrypt(sysObj.native.secret, this.config.password);\n } else {\n this.config.password = this.decrypt('SdoeQ85NTrg1B0FtEyzf', this.config.password);\n }\n\n //Configuration changes if needed\n let adapterObj = (await this.getForeignObjectAsync(`system.adapter.${this.namespace}`));\n let adapterObjChanged = false; //for changes\n \n //if interval <= 0 than set to 1\n if (this.config.interval <= 0) {\n adapterObj.native.interval = 1;\n adapterObjChanged = true;\n this.config.interval = 1;\n this.log.warn('interval is less than 1. Set to 1 Min.');\n }\n\n //if interval <= 0 than set to 1\n if (this.config.intervalFamily <= 9) {\n adapterObj.native.intervalFamily = 10;\n adapterObjChanged = true;\n this.config.intervalFamily = 10;\n this.log.warn('interval is less than 10. Set to 10s.');\n }\n\n //create new configuration items -> workaround for older versions\n for(let i=0;i<this.config.familymembers.length;i++){\n if (this.config.familymembers[i].useip == undefined) {\n adapterObj.native.familymembers[i].useip = false;\n adapterObj.native.familymembers[i].ipaddress = '';\n adapterObjChanged = true;\n }\n }\n\n if (adapterObjChanged === true){ //Save changes\n await this.setForeignObjectAsync(`system.adapter.${this.namespace}`, adapterObj);\n }\n\n const cfg = {\n ip: this.config.ipaddress,\n port: '49000',\n iv: this.config.interval,\n history: this.config.history,\n dateFormat: this.config.dateformat,\n uid: this.config.username,\n pwd: this.config.password,\n members: this.config.familymembers,\n wl: this.config.whitelist\n };\n \n const cron = cfg.iv * 60;\n const cronFamily = this.config.intervalFamily;\n \n const devInfo = {\n host: this.config.ipaddress,\n port: '49000',\n sslPort: null,\n uid: this.config.username,\n pwd: this.config.password\n };\n\n this.Fb = await fb.Fb.init(devInfo, this);\n if(this.Fb.services === null) {\n this.log.error('Can not get services! Adapter stops');\n this.stopAdapter();\n }\n\n //Check if services/actions are supported\n this.GETPATH = await this.Fb.chkService('X_AVM-DE_GetHostListPath', 'Hosts1', 'X_AVM-DE_GetHostListPath');\n this.GETMESHPATH = await this.Fb.chkService('X_AVM-DE_GetMeshListPath', 'Hosts1', 'X_AVM-DE_GetMeshListPath');\n this.GETBYMAC = await this.Fb.chkService('GetSpecificHostEntry', 'Hosts1', 'GetSpecificHostEntry');\n this.GETBYIP = await this.Fb.chkService('X_AVM-DE_GetSpecificHostEntryByIP', 'Hosts1', 'X_AVM-DE_GetSpecificHostEntryByIP');\n this.GETPORT = await this.Fb.chkService('GetSecurityPort', 'DeviceInfo1', 'GetSecurityPort');\n this.GETEXTIP = await this.Fb.chkService('GetInfo', 'WANPPPConnection1', 'GetInfo');\n if ( this.GETEXTIP == false) this.GETEXTIP = await this.Fb.chkService('GetInfo', 'WANIPConnection1', 'GetInfo');\n this.SETENABLE = await this.Fb.chkService('SetEnable', 'WLANConfiguration3', 'SetEnable');\n this.WLAN3INFO = await this.Fb.chkService('GetInfo', 'WLANConfiguration3', 'WLANConfiguration3-GetInfo');\n this.DEVINFO = await this.Fb.chkService('GetInfo', 'DeviceInfo1', 'DeviceInfo1-GetInfo');\n this.DISALLOWWANACCESSBYIP = await this.Fb.chkService('DisallowWANAccessByIP', 'X_AVM-DE_HostFilter', 'DisallowWANAccessByIP');\n this.GETWANACCESSBYIP = await this.Fb.chkService('GetWANAccessByIP', 'X_AVM-DE_HostFilter', 'GetWANAccessByIP');\n this.REBOOT = await this.Fb.chkService('Reboot', 'DeviceConfig1', 'Reboot');\n \n //const test = await Fb.soapAction(Fb, '/upnp/control/deviceconfig', 'urn:dslforum-org:service:DeviceConfig:1', 'X_AVM-DE_CreateUrlSID', null);\n\n //Create global objects\n await obj.createGlobalObjects(this, this.HTML+this.HTML_END, this.HTML_GUEST+this.HTML_END, this.enabled);\n await obj.createMemberObjects(this, cfg, this.HTML_HISTORY + this.HTML_END, this.enabled);\n\n //create Fb devices\n if (this.GETPATH != null && this.GETPATH == true && this.config.fbdevices == true){\n const items = await this.Fb.getDeviceList(this, cfg, this.Fb);\n if (items != null){\n let res = await obj.createFbDeviceObjects(this, items, this.enabled);\n if (res === true) this.log.info('createFbDeviceObjects finished successfully');\n res = await obj.createMeshObjects(this, items, 0, this.enabled); //create channel 0 as default interface\n if (res === true) this.log.info('createMeshObjects finished successfully');\n }else{\n this.log.error('createFbDeviceObjects -> ' + \"can't read devices from fritzbox! Adapter stops\");\n adapterObj = await this.getForeignObjectAsync(`system.adapter.${this.namespace}`);\n adapterObj.common.enabled = false; // Adapter ausschalten\n await this.setForeignObjectAsync(`system.adapter.${this.namespace}`, adapterObj);\n }\n await this.resyncFbObjects(items);\n }\n\n // states changes inside the adapters namespace are subscribed\n if (this.SETENABLE === true && this.WLAN3INFO === true) this.subscribeStates(`${this.namespace}` + '.guest.wlan');\n if (this.DISALLOWWANACCESSBYIP === true && this.GETWANACCESSBYIP === true) this.subscribeStates(`${this.namespace}` + '.fb-devices.*.disabled'); \n if (this.REBOOT === true) this.subscribeStates(`${this.namespace}` + '.reboot'); \n\n //get uuid for transaction\n //const sSid = await Fb.soapAction(Fb, '/upnp/control/deviceconfig', urn + 'DeviceConfig:1', 'X_GenerateUUID', null);\n //const uuid = sSid['NewUUID'].replace('uuid:', '');\n this.loop(10, 55, cronFamily, cron, cfg);\n } catch (error) {\n this.showError('onReady: ' + error);\n }\n }", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "started () {}", "async onReady() {\n // Initialize your adapter here\n\n this.setState(\"info.connection\", false, true);\n // Reset the connection indicator during startup\n this.type = \"VW\";\n this.country = \"DE\";\n this.clientId = \"9496332b-ea03-4091-a224-8c746b885068%40apps_vw-dilab_com\";\n this.xclientId = \"38761134-34d0-41f3-9a73-c4be88d7d337\";\n this.scope = \"openid%20profile%20mbb%20email%20cars%20birthdate%20badge%20address%20vin\";\n this.redirect = \"carnet%3A%2F%2Fidentity-kit%2Flogin\";\n this.xrequest = \"de.volkswagen.carnet.eu.eremote\";\n this.responseType = \"id_token%20token%20code\";\n this.xappversion = \"5.1.2\";\n this.xappname = \"eRemote\";\n if (this.config.type === \"id\") {\n this.type = \"Id\";\n this.country = \"DE\";\n this.clientId = \"a24fba63-34b3-4d43-b181-942111e6bda8@apps_vw-dilab_com\";\n this.xclientId = \"\";\n this.scope = \"openid profile badge cars dealers birthdate vin\";\n this.redirect = \"weconnect://authenticated\";\n this.xrequest = \"com.volkswagen.weconnect\";\n this.responseType = \"code id_token token\";\n this.xappversion = \"\";\n this.xappname = \"\";\n }\n if (this.config.type === \"skoda\") {\n this.type = \"Skoda\";\n this.country = \"CZ\";\n this.clientId = \"7f045eee-7003-4379-9968-9355ed2adb06%40apps_vw-dilab_com\";\n this.xclientId = \"28cd30c6-dee7-4529-a0e6-b1e07ff90b79\";\n this.scope = \"openid%20profile%20phone%20address%20cars%20email%20birthdate%20badge%20dealers%20driversLicense%20mbb\";\n this.redirect = \"skodaconnect%3A%2F%2Foidc.login%2F\";\n this.xrequest = \"cz.skodaauto.connect\";\n this.responseType = \"code%20id_token\";\n this.xappversion = \"3.2.6\";\n this.xappname = \"cz.skodaauto.connect\";\n }\n if (this.config.type === \"seat\") {\n this.type = \"Seat\";\n this.country = \"ES\";\n this.clientId = \"50f215ac-4444-4230-9fb1-fe15cd1a9bcc@apps_vw-dilab_com\";\n this.xclientId = \"9dcc70f0-8e79-423a-a3fa-4065d99088b4\";\n this.scope = \"openid profile mbb cars birthdate nickname address phone\";\n this.redirect = \"seatconnect://identity-kit/login\";\n this.xrequest = \"cz.skodaauto.connect\";\n this.responseType = \"code%20id_token\";\n this.xappversion = \"1.1.29\";\n this.xappname = \"SEATConnect\";\n }\n if (this.config.type === \"audi\") {\n this.type = \"Audi\";\n this.country = \"DE\";\n this.clientId = \"09b6cbec-cd19-4589-82fd-363dfa8c24da@apps_vw-dilab_com\";\n this.xclientId = \"77869e21-e30a-4a92-b016-48ab7d3db1d8\";\n this.scope = \"address profile badge birthdate birthplace nationalIdentifier nationality profession email vin phone nickname name picture mbb gallery openid\";\n this.redirect = \"myaudi:///\";\n this.xrequest = \"de.myaudi.mobile.assistant\";\n this.responseType = \"token%20id_token\";\n // this.responseType = \"code\";\n this.xappversion = \"3.22.0\";\n this.xappname = \"myAudi\";\n }\n if (this.config.type === \"go\") {\n this.type = \"\";\n this.country = \"\";\n this.clientId = \"ac42b0fa-3b11-48a0-a941-43a399e7ef84@apps_vw-dilab_com\";\n this.xclientId = \"\";\n this.scope = \"openid%20profile%20address%20email%20phone\";\n this.redirect = \"vwconnect%3A%2F%2Fde.volkswagen.vwconnect%2Foauth2redirect%2Fidentitykit\";\n this.xrequest = \"\";\n this.responseType = \"code\";\n this.xappversion = \"\";\n this.xappname = \"\";\n }\n if (this.config.interval === 0) {\n this.log.info(\"Interval of 0 is not allowed reset to 1\");\n this.config.interval = 1;\n }\n this.login()\n .then(() => {\n this.log.debug(\"Login successful\");\n this.setState(\"info.connection\", true, true);\n this.getPersonalData()\n .then(() => {\n this.getVehicles()\n .then(() => {\n if (this.config.type !== \"go\") {\n this.vinArray.forEach((vin) => {\n if (this.config.type === \"id\") {\n this.getIdStatus(vin).catch(() => {\n this.log.error(\"get id status Failed\");\n });\n } else {\n this.getHomeRegion(vin)\n .catch(() => {\n this.log.debug(\"get home region Failed\");\n })\n .finally(() => {\n this.getVehicleData(vin).catch(() => {\n this.log.error(\"get vehicle data Failed\");\n });\n this.getVehicleRights(vin).catch(() => {\n this.log.error(\"get vehicle rights Failed\");\n });\n this.requestStatusUpdate(vin)\n .finally(() => {\n this.statesArray.forEach((state) => {\n this.getVehicleStatus(vin, state.url, state.path, state.element, state.element2, state.element3, state.element4).catch(() => {\n this.log.debug(\"error while getting \" + state.url);\n });\n });\n })\n .catch(() => {\n this.log.error(\"status update Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"Error getting home region\");\n });\n }\n });\n }\n\n this.updateInterval = setInterval(() => {\n if (this.config.type === \"go\") {\n this.getVehicles();\n return;\n } else if (this.config.type === \"id\") {\n this.vinArray.forEach((vin) => {\n this.getIdStatus(vin).catch(() => {\n this.log.error(\"get id status Failed\");\n this.refreshIDToken().catch(() => {});\n });\n this.getWcData();\n });\n return;\n } else {\n this.vinArray.forEach((vin) => {\n this.statesArray.forEach((state) => {\n this.getVehicleStatus(vin, state.url, state.path, state.element, state.element2).catch(() => {\n this.log.debug(\"error while getting \" + state.url);\n });\n });\n });\n }\n }, this.config.interval * 60 * 1000);\n\n if (this.config.forceinterval > 0) {\n this.fupdateInterval = setInterval(() => {\n if (this.config.type === \"go\") {\n this.getVehicles();\n return;\n }\n this.vinArray.forEach((vin) => {\n this.requestStatusUpdate(vin).catch(() => {\n this.log.error(\"force status update Failed\");\n });\n });\n }, this.config.forceinterval * 60 * 1000);\n }\n })\n .catch(() => {\n this.log.error(\"Get Vehicles Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"get personal data Failed\");\n });\n })\n .catch(() => {\n this.log.error(\"Login Failed\");\n });\n this.subscribeStates(\"*\");\n }", "_specializedInitialisation()\r\n\t{\r\n\t\tLogger.log(\"Specialisation for service AVTransport\", LogType.Info);\r\n\t\tvar relativeTime = this.getVariableByName(\"RelativeTimePosition\");\r\n\t\t//Implémentation pour OpenHome\r\n\t\tif (!relativeTime)\r\n\t\t\trelativeTime = this.getVariableByName(\"A_ARG_TYPE_GetPositionInfo_RelTime\");\r\n\t\tvar transportState = this.getVariableByName(\"TransportState\");\r\n\t\t//Implémentation pour OpenHome\r\n\t\tif (!transportState)\r\n\t\t\ttransportState = this.getVariableByName(\"A_ARG_TYPE_GetTransportInfo_CurrentTransportState\");\r\n\r\n\t\tif (transportState)\r\n\t\t{\r\n\t\t\ttransportState.on('updated', (variable, newVal) =>\r\n\t\t\t{\r\n\t\t\t\tLogger.log(\"On transportStateUpdate : \" + newVal, LogType.DEBUG);\r\n\t\t\t\tvar actPosInfo = this.getActionByName(\"GetPositionInfo\");\r\n\t\t\t\tvar actMediaInfo = this.getActionByName(\"GetMediaInfo\");\r\n\t\t\t\t/*\r\n\t\t\t\t“STOPPED” R\r\n\t\t\t\t“PLAYING” R\r\n\t\t\t\t“TRANSITIONING” O\r\n\t\t\t\t”PAUSED_PLAYBACK” O\r\n\t\t\t\t“PAUSED_RECORDING” O\r\n\t\t\t\t“RECORDING” O\r\n\t\t\t\t“NO_MEDIA_PRESENT”\r\n\t\t\t\t */\r\n\t\t\t\tif (relativeTime && !relativeTime.SendEvent && actPosInfo)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (this._intervalUpdateRelativeTime)\r\n\t\t\t\t\t\tclearInterval(this._intervalUpdateRelativeTime);\r\n\t\t\t\t\tif (newVal == \"PLAYING\" || newVal == \"RECORDING\")\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t} );\r\n\t\t\t\t\t\t//Déclenche la maj toutes les 4 secondes\r\n\t\t\t\t\t\tthis._intervalUpdateRelativeTime = setInterval(() =>{\r\n\t\t\t\t\t\t\t\t//Logger.log(\"On autoUpdate\", LogType.DEBUG);\r\n\t\t\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t}\t);\r\n\t\t\t\t\t\t\t}, 4000);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//else if (newVal == \"STOPPED\" || newVal == \"PAUSED_PLAYBACK\" || newVal == \"PAUSED_RECORDING\" || newVal == \"NO_MEDIA_PRESENT\")\r\n\t\t\t\t//{\r\n\t\t\t\t//\r\n\t\t\t\t//}\r\n\t\t\t\t//On met a jour les media info et position info pour etre sur de mettre a jour les Metadata(par defaut la freebox ne le fait pas ou plutot le fait mal)\r\n\t\t\t\tif (newVal == \"TRANSITIONING\")\r\n\t\t\t\t{\r\n\t\t\t\t\tif (actPosInfo)\r\n\t\t\t\t\t\tactPosInfo.execute(\t{InstanceID: 0}\t);\r\n\t\t\t\t\tif (actMediaInfo)\r\n\t\t\t\t\t\tactMediaInfo.execute(\t{InstanceID: 0} );\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (newVal == \"STOPPED\")\r\n\t\t\t\t{\r\n\t\t\t\t\tif (actPosInfo)\r\n\t\t\t\t\t\tactPosInfo.execute(\t{\tInstanceID: 0\t});\r\n\t\t\t\t\tif (actMediaInfo)\r\n\t\t\t\t\t\tactMediaInfo.execute(\t{\tInstanceID: 0 });\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t);\r\n\t\t}\r\n\t}", "async onReady() {\n // Initialize your adapter here\n await this.setObjectNotExistsAsync('speed', {\n type: 'channel',\n common: {\n name: 'speed'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.download', {\n type: 'state',\n common: {\n name: 'download',\n role: 'info.status',\n type: 'number',\n desc: 'Download speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.upload', {\n type: 'state',\n common: {\n name: 'upload',\n role: 'info.status',\n type: 'number',\n desc: 'Upload speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.ping', {\n type: 'state',\n common: {\n name: 'ping',\n role: 'info.status',\n type: 'number',\n desc: 'Ping Latency',\n def: 0,\n read: true,\n write: false,\n unit: 'ms',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.progress', {\n type: 'state',\n common: {\n name: 'progress',\n role: 'info.status',\n type: 'number',\n desc: 'Progress',\n def: 0,\n read: true,\n write: false,\n unit: '%',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('speed.speedcheck', {\n type: 'state',\n common: {\n name: 'Run speed test',\n type: 'boolean',\n read: true,\n role: 'button',\n write: true,\n def: false\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress', {\n type: 'channel',\n common: {\n name: 'speed'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.download', {\n type: 'state',\n common: {\n name: 'download',\n role: 'info.status',\n type: 'number',\n desc: 'Download speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.upload', {\n type: 'state',\n common: {\n name: 'upload',\n role: 'info.status',\n type: 'number',\n desc: 'Upload speed',\n def: 0,\n read: true,\n write: false,\n unit: 'Mbit/s',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.ping', {\n type: 'state',\n common: {\n name: 'ping',\n role: 'info.status',\n type: 'number',\n desc: 'Ping Latency',\n def: 0,\n read: true,\n write: false,\n unit: 'ms',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.progress', {\n type: 'state',\n common: {\n name: 'progress',\n role: 'info.status',\n type: 'number',\n desc: 'Progress',\n def: 0,\n read: true,\n write: false,\n unit: '%',\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('progress.speedcheck', {\n type: 'state',\n common: {\n name: 'Run speed test',\n type: 'boolean',\n read: true,\n role: 'button',\n write: true,\n def: false\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info', {\n type: 'channel',\n common: {\n name: 'Information'\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info.externalip', {\n type: 'state',\n common: {\n name: 'External IP',\n role: 'info.status',\n type: 'string',\n desc: 'External IP',\n read: true,\n write: false,\n },\n native: {},\n });\n await this.setObjectNotExistsAsync('info.internalip', {\n type: 'state',\n common: {\n name: 'Internal IP',\n role: 'info.status',\n type: 'string',\n desc: 'Internal IP',\n read: true,\n write: false,\n },\n native: {},\n });\n this.subscribeStates('*');\n await this.setStateAsync('info.connection', { val: true, ack: true });\n // let result = await this.checkPasswordAsync('admin', 'iobroker');\n // this.log.info('check user admin pw iobroker: ' + result);\n // result = await this.checkGroupAsync('admin', 'admin');\n // this.log.info('check group user admin group admin: ' + result);\n if (this.config.polltime > 1) {\n this.log.info('Checking internet speed every ' + this.config.polltime + ' minutes');\n } else {\n this.log.info('Checking internet speed every ' + this.config.polltime + ' minute');\n }\n await this.start(this.config.polltime);\n }", "enqueue() {\n\n }", "loadComponent(nodeURI, baseURI, callback_async /* nodeDescriptor */, errback_async /* errorMessage */) { // TODO: turn this into a generic xhr loader exposed as a kernel function?\n\n let self = this;\n\n if (nodeURI == self.kutility.protoNodeURI) {\n\n callback_async(self.kutility.protoNodeDescriptor);\n\n } else if (nodeURI.match(RegExp(\"^data:application/json;base64,\"))) {\n\n // Primarly for testing, parse one specific form of data URIs. We need to parse\n // these ourselves since Chrome can't load data URIs due to cross origin\n // restrictions.\n\n callback_async(JSON.parse(atob(nodeURI.substring(29)))); // TODO: support all data URIs\n\n } else {\n\n self.virtualTime.suspend(\"while loading \" + nodeURI); // suspend the queue\n\n let fetchUrl = self.remappedURI(nodeURI, baseURI);\n let dbName = fetchUrl.split(\".\").join(\"_\");\n\n const parseComp = function (f) {\n\n let result = JSON.parse(f);\n\n let nativeObject = result;\n // console.log(nativeObject);\n\n if (nativeObject) {\n callback_async(nativeObject);\n self.virtualTime.resume(\"after loading \" + nodeURI); // resume the queue; may invoke dispatch(), so call last before returning to the host\n\n } else {\n\n self.logger.warnx(\"loadComponent\", \"error loading\", nodeURI + \":\", error);\n errback_async(error);\n self.virtualTime.resume(\"after loading \" + nodeURI); // resume the queue; may invoke dispatch(), so call last before returning to the host\n }\n\n }\n\n\n //var fileName = \"\";\n // let userDB = _LCSDB.user(_LCS_WORLD_USER.pub); \n if (dbName.includes(\"proxy\")) {\n //userDB = await window._LCS_SYS_USER.get('proxy').then();\n let proxyDB = self.proxy ? _LCSDB.user(self.proxy) : _LCSDB.user(_LCS_WORLD_USER.pub);\n let fileName = dbName + '_json';\n let dbNode = proxyDB.get('proxy').get(fileName);\n let nodeProm = new Promise(res => dbNode.once(res));\n\n nodeProm.then(comp => {\n parseComp(comp);\n })\n\n // (function(r){\n // //console.log(r);\n // parseComp(r);\n\n // });\n\n } else {\n var worldName = dbName.split('/')[1];\n var fileName = dbName.split('/')[2];\n //+ '_json';\n\n if (!fileName) {\n worldName = self.helpers.appPath\n fileName = dbName + '_json';\n } else {\n fileName = fileName + '_json';\n }\n\n let dbNode = _LCSDB.user(_LCS_WORLD_USER.pub).get('worlds').path(worldName).get(fileName);\n\n let nodeProm = new Promise(res => dbNode.once(res))\n nodeProm.then(comp => {\n parseComp(comp);\n })\n\n // (function(r){\n // //console.log(r);\n // parseComp(r);\n\n // });\n }\n\n //console.log(source);\n\n //userDB.get(fileName).once(async function(res) {\n\n\n\n\n // }, {wait: 1000})\n }\n\n }", "started() { }", "onBrowserStart(browser) {\n\n }", "getPort2() {\n return 0;\n }", "function OnChannelOpen()\n{\n}", "requestReceived(request,response){\n if(this.config.log){\n const logData={\n method : request.method,\n url : request.url,\n headers : request.headers\n };\n\n this.config.logFunction(\n logData\n );\n }\n\n let uri = url.parse(request.url);\n uri.protocol='http';\n uri.host=uri.hostname=request.headers.host;\n uri.port=80;\n uri.query=querystring.parse(uri.query);\n\n if(request.connection.encrypted){\n uri.protocol='https';\n uri.port=443;\n }\n\n (\n function(){\n if(!uri.host){\n return;\n }\n const host=uri.host.split(':');\n\n if(!host[1]){\n return;\n }\n uri.host=uri.hostname=host[0];\n uri.port=host[1];\n }\n )();\n\n for(let key in uri){\n if(uri[key]!==null){\n continue;\n }\n uri[key]='';\n }\n\n request.uri=uri;\n\n if(\n this.onRawRequest(\n request,\n response,\n completeServing.bind(this)\n )\n ){\n return;\n };\n\n uri=uri.pathname;\n\n if (uri=='/'){\n uri=`/${this.config.server.index}`;\n }\n\n let hostname= [];\n\n if (request.headers.host !== undefined){\n hostname = request.headers.host.split(':');\n }\n\n let root = this.config.root;\n\n if(this.config.verbose){\n console.log(`${this.config.logID} REQUEST ###\\n\\n`,\n request.headers,'\\n',\n uri,'\\n\\n',\n hostname,'\\n\\n'\n );\n }\n\n if(this.config.domain!='0.0.0.0' && hostname.length > 0 && hostname[0]!=this.config.domain){\n if(!this.config.domains[hostname[0]]){\n if(this.config.verbose){\n console.log(`${this.config.logID} INVALID HOST ###\\n\\n`);\n }\n this.serveFile(hostname[0],false,response);\n return;\n }\n root=this.config.domains[hostname[0]];\n }\n\n\n if(this.config.verbose){\n console.log(`${this.config.logID} USING ROOT : ${root}###\\n\\n`);\n }\n\n if(uri.slice(-1)=='/'){\n uri+=this.config.server.index;\n }\n\n request.url=uri;\n request.serverRoot=root;\n\n request.body='';\n\n request.on(\n 'data',\n function(chunk){\n request.body+=chunk;\n }.bind(this)\n ).on(\n 'end',\n function(){\n if(this.config.verbose){\n console.log(`###REQUEST BODY :\n ${request.body}\n ###\n `);\n }\n\n requestBodyComplete.bind(this,request,response)();\n }.bind(this)\n );\n }", "constructor() {\n throw new Error('Not implemented');\n }", "connect() {\n throw new Error(\n 'The Message Bus is not currently supported in browser environments'\n );\n }", "constructor() {\n this._connectionResolver = new pip_services3_components_node_1.ConnectionResolver();\n this._maxKeySize = 250;\n this._maxExpiration = 2592000;\n this._maxValue = 1048576;\n this._poolSize = 5;\n this._reconnect = 10000;\n this._timeout = 5000;\n this._retries = 5;\n this._failures = 5;\n this._retry = 30000;\n this._remove = false;\n this._idle = 5000;\n this._client = null;\n }", "componentDidMount()\n {\n\n }", "function OfflineStreamProcessor(config) {\n config = config || {};\n var context = this.context;\n var eventBus = config.eventBus;\n var events = config.events;\n var errors = config.errors;\n var debug = config.debug;\n var constants = config.constants;\n var settings = config.settings;\n var dashConstants = config.dashConstants;\n var manifestId = config.id;\n var type = config.type;\n var streamInfo = config.streamInfo;\n var errHandler = config.errHandler;\n var mediaPlayerModel = config.mediaPlayerModel;\n var abrController = config.abrController;\n var playbackController = config.playbackController;\n var adapter = config.adapter;\n var dashMetrics = config.dashMetrics;\n var baseURLController = config.baseURLController;\n var timelineConverter = config.timelineConverter;\n var bitrate = config.bitrate;\n var offlineStoreController = config.offlineStoreController;\n var completedCb = config.callbacks && config.callbacks.completed;\n var progressCb = config.callbacks && config.callbacks.progression;\n var instance, logger, mediaInfo, indexHandler, representationController, fragmentModel, updating, downloadedSegments, isInitialized, segmentsController, isStopped;\n\n function setup() {\n resetInitialSettings();\n logger = debug.getLogger(instance);\n segmentsController = Object(_dash_controllers_SegmentsController__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(context).create({\n events: events,\n eventBus: eventBus,\n streamInfo: streamInfo,\n timelineConverter: timelineConverter,\n dashConstants: dashConstants,\n segmentBaseController: config.segmentBaseController,\n type: type\n });\n indexHandler = Object(_dash_DashHandler__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(context).create({\n streamInfo: streamInfo,\n type: type,\n timelineConverter: timelineConverter,\n dashMetrics: dashMetrics,\n mediaPlayerModel: mediaPlayerModel,\n baseURLController: baseURLController,\n errHandler: errHandler,\n settings: settings,\n // boxParser: boxParser,\n eventBus: eventBus,\n events: events,\n debug: debug,\n requestModifier: Object(_streaming_utils_RequestModifier__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(context).getInstance(),\n dashConstants: dashConstants,\n constants: constants,\n segmentsController: segmentsController,\n urlUtils: Object(_streaming_utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(context).getInstance()\n });\n representationController = Object(_dash_controllers_RepresentationController__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(context).create({\n streamInfo: streamInfo,\n type: type,\n abrController: abrController,\n dashMetrics: dashMetrics,\n playbackController: playbackController,\n timelineConverter: timelineConverter,\n dashConstants: dashConstants,\n events: events,\n eventBus: eventBus,\n errors: errors,\n segmentsController: segmentsController\n });\n fragmentModel = Object(_streaming_models_FragmentModel__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(context).create({\n streamInfo: streamInfo,\n dashMetrics: dashMetrics,\n fragmentLoader: Object(_streaming_FragmentLoader__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(context).create({\n dashMetrics: dashMetrics,\n mediaPlayerModel: mediaPlayerModel,\n errHandler: errHandler,\n requestModifier: Object(_streaming_utils_RequestModifier__WEBPACK_IMPORTED_MODULE_5__[\"default\"])(context).getInstance(),\n settings: settings,\n eventBus: eventBus,\n events: events,\n errors: errors,\n constants: constants,\n dashConstants: dashConstants,\n urlUtils: Object(_streaming_utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(context).getInstance()\n }),\n debug: debug,\n eventBus: eventBus,\n events: events\n });\n eventBus.on(events.STREAM_REQUESTING_COMPLETED, onStreamRequestingCompleted, instance);\n eventBus.on(events.FRAGMENT_LOADING_COMPLETED, onFragmentLoadingCompleted, instance);\n }\n\n function initialize(_mediaInfo) {\n mediaInfo = _mediaInfo;\n indexHandler.initialize(false);\n updateRepresentation(mediaInfo);\n }\n\n function isInitRequest(request) {\n return request.type === 'InitializationSegment';\n }\n\n function onFragmentLoadingCompleted(e) {\n if (e.sender !== fragmentModel) {\n return;\n }\n\n if (e.request !== null) {\n var isInit = isInitRequest(e.request);\n var suffix = isInit ? 'init' : e.request.index;\n var fragmentName = e.request.representationId + '_' + suffix;\n offlineStoreController.storeFragment(manifestId, fragmentName, e.response).then(function () {\n if (!isInit) {\n // store current index and downloadedSegments number\n offlineStoreController.setRepresentationCurrentState(manifestId, e.request.representationId, {\n index: e.request.index,\n downloaded: downloadedSegments\n });\n }\n });\n }\n\n if (e.error && e.request.serviceLocation && !isStopped) {\n fragmentModel.executeRequest(e.request);\n } else {\n downloadedSegments++;\n download();\n }\n }\n\n function onStreamRequestingCompleted(e) {\n if (e.fragmentModel !== fragmentModel) {\n return;\n }\n\n logger.info(\"[\".concat(manifestId, \"] Stream is complete\"));\n stop();\n completedCb();\n }\n\n function getRepresentationController() {\n return representationController;\n }\n\n function getRepresentationId() {\n return representationController.getCurrentRepresentation().id;\n }\n /**\n * Stops download of fragments\n * @memberof OfflineStreamProcessor#\n */\n\n\n function stop() {\n if (isStopped) {\n return;\n }\n\n isStopped = true;\n }\n\n function removeExecutedRequestsBeforeTime(time) {\n if (fragmentModel) {\n fragmentModel.removeExecutedRequestsBeforeTime(time);\n }\n }\n /**\n * Execute init request for the represenation\n * @memberof OfflineStreamProcessor#\n */\n\n\n function getInitRequest() {\n if (!representationController.getCurrentRepresentation()) {\n return null;\n }\n\n return indexHandler.getInitRequest(getMediaInfo(), representationController.getCurrentRepresentation());\n }\n /**\n * Get next request\n * @memberof OfflineStreamProcessor#\n */\n\n\n function getNextRequest() {\n return indexHandler.getNextSegmentRequest(getMediaInfo(), representationController.getCurrentRepresentation());\n }\n /**\n * Start download\n * @memberof OfflineStreamProcessor#\n */\n\n\n function start() {\n if (representationController) {\n if (!representationController.getCurrentRepresentation()) {\n throw new Error('Start denied to OfflineStreamProcessor');\n }\n\n isStopped = false;\n offlineStoreController.getRepresentationCurrentState(manifestId, representationController.getCurrentRepresentation().id).then(function (state) {\n if (state) {\n indexHandler.setCurrentIndex(state.index);\n downloadedSegments = state.downloaded;\n }\n\n download();\n })[\"catch\"](function () {\n // start from beginining\n download();\n });\n }\n }\n /**\n * Performs download of fragment according to type\n * @memberof OfflineStreamProcessor#\n */\n\n\n function download() {\n if (isStopped) {\n return;\n }\n\n if (isNaN(representationController.getCurrentRepresentation())) {\n var request = null;\n\n if (!isInitialized) {\n request = getInitRequest();\n isInitialized = true;\n } else {\n request = getNextRequest(); // update progression : done here because availableSegmentsNumber is done in getNextRequest from dash handler\n\n updateProgression();\n }\n\n if (request) {\n logger.info(\"[\".concat(manifestId, \"] download request : \").concat(request.url));\n fragmentModel.executeRequest(request);\n } else {\n logger.info(\"[\".concat(manifestId, \"] no request to be downloaded\"));\n }\n }\n }\n /**\n * Update representation\n * @param {Object} mediaInfo - mediaInfo\n * @memberof OfflineStreamProcessor#\n */\n\n\n function updateRepresentation(mediaInfo) {\n updating = true;\n var voRepresentations = adapter.getVoRepresentations(mediaInfo); // get representation VO according to id.\n\n var quality = voRepresentations.findIndex(function (representation) {\n return representation.id === bitrate.id;\n });\n\n if (type !== constants.VIDEO && type !== constants.AUDIO && type !== constants.TEXT) {\n updating = false;\n return;\n }\n\n representationController.updateData(null, voRepresentations, type, mediaInfo.isFragmented, quality);\n }\n\n function isUpdating() {\n return updating;\n }\n\n function getType() {\n return type;\n }\n\n function getMediaInfo() {\n return mediaInfo;\n }\n\n function getAvailableSegmentsNumber() {\n return representationController.getCurrentRepresentation().availableSegmentsNumber + 1; // do not forget init segment\n }\n\n function updateProgression() {\n if (progressCb) {\n progressCb(instance, downloadedSegments, getAvailableSegmentsNumber());\n }\n }\n\n function resetInitialSettings() {\n isInitialized = false;\n downloadedSegments = 0;\n updating = false;\n }\n /**\n * Reset\n * @memberof OfflineStreamProcessor#\n */\n\n\n function reset() {\n resetInitialSettings();\n indexHandler.reset();\n eventBus.off(events.STREAM_REQUESTING_COMPLETED, onStreamRequestingCompleted, instance);\n eventBus.off(events.FRAGMENT_LOADING_COMPLETED, onFragmentLoadingCompleted, instance);\n }\n\n instance = {\n initialize: initialize,\n getMediaInfo: getMediaInfo,\n getRepresentationController: getRepresentationController,\n removeExecutedRequestsBeforeTime: removeExecutedRequestsBeforeTime,\n getType: getType,\n getRepresentationId: getRepresentationId,\n isUpdating: isUpdating,\n start: start,\n stop: stop,\n getAvailableSegmentsNumber: getAvailableSegmentsNumber,\n reset: reset\n };\n setup();\n return instance;\n}", "constructor() {\r\n }", "constructor() {\n\t\t// ...\n\t}", "static get STATUS() {\n return 0;\n }", "onReady() {\n return __awaiter(this, void 0, void 0, function* () {\n this.logger = new log_1.ioBrokerLogger(this.log);\n yield this.setObjectNotExistsAsync(\"verify_code\", {\n type: \"state\",\n common: {\n name: \"2FA verification code\",\n type: \"number\",\n role: \"state\",\n read: true,\n write: true,\n },\n native: {},\n });\n yield this.setObjectNotExistsAsync(\"info\", {\n type: \"channel\",\n common: {\n name: \"info\"\n },\n native: {},\n });\n yield this.setObjectNotExistsAsync(\"info.connection\", {\n type: \"state\",\n common: {\n name: \"Global connection\",\n type: \"boolean\",\n role: \"indicator.connection\",\n read: true,\n write: false,\n },\n native: {},\n });\n yield this.setStateAsync(\"info.connection\", { val: false, ack: true });\n yield this.setObjectNotExistsAsync(\"info.push_connection\", {\n type: \"state\",\n common: {\n name: \"Push notification connection\",\n type: \"boolean\",\n role: \"indicator.connection\",\n read: true,\n write: false,\n },\n native: {},\n });\n // Remove old states of previous adapter versions\n try {\n const schedule_modes = yield this.getStatesAsync(\"*.schedule_mode\");\n Object.keys(schedule_modes).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const push_notifications = yield this.getStatesAsync(\"push_notification.*\");\n Object.keys(push_notifications).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n yield this.delObjectAsync(\"push_notification\");\n }\n catch (error) {\n }\n try {\n const last_camera_url = yield this.getStatesAsync(\"*.last_camera_url\");\n Object.keys(last_camera_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const captured_pic_url = yield this.getStatesAsync(\"*.captured_pic_url\");\n Object.keys(captured_pic_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const person_identified = yield this.getStatesAsync(\"*.person_identified\");\n Object.keys(person_identified).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const last_captured_pic_url = yield this.getStatesAsync(\"*.last_captured_pic_url\");\n Object.keys(last_captured_pic_url).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n try {\n const last_captured_pic_html = yield this.getStatesAsync(\"*.last_captured_pic_html\");\n Object.keys(last_captured_pic_html).forEach((id) => __awaiter(this, void 0, void 0, function* () {\n yield this.delObjectAsync(id);\n }));\n }\n catch (error) {\n }\n // End\n // Reset event states if necessary (for example because of an unclean exit)\n yield this.initializeEvents(types_1.CameraStateID.PERSON_DETECTED);\n yield this.initializeEvents(types_1.CameraStateID.MOTION_DETECTED);\n yield this.initializeEvents(types_1.DoorbellStateID.RINGING);\n yield this.initializeEvents(types_1.IndoorCameraStateID.CRYING_DETECTED);\n yield this.initializeEvents(types_1.IndoorCameraStateID.SOUND_DETECTED);\n yield this.initializeEvents(types_1.IndoorCameraStateID.PET_DETECTED);\n try {\n if (fs.statSync(this.persistentFile).isFile()) {\n const fileContent = fs.readFileSync(this.persistentFile, \"utf8\");\n this.persistentData = JSON.parse(fileContent);\n }\n }\n catch (err) {\n this.logger.debug(\"No stored data from last exit found.\");\n }\n //TODO: Temporary Test to be removed!\n /*await this.setObjectNotExistsAsync(\"test_button\", {\n type: \"state\",\n common: {\n name: \"Test button\",\n type: \"boolean\",\n role: \"button\",\n read: false,\n write: true,\n },\n native: {},\n });\n this.subscribeStates(\"test_button\");\n await this.setObjectNotExistsAsync(\"test_button2\", {\n type: \"state\",\n common: {\n name: \"Test button2\",\n type: \"boolean\",\n role: \"button\",\n read: false,\n write: true,\n },\n native: {},\n });\n this.subscribeStates(\"test_button2\");*/\n // END\n this.subscribeStates(\"verify_code\");\n const systemConfig = yield this.getForeignObjectAsync(\"system.config\");\n let countryCode = undefined;\n let languageCode = undefined;\n if (systemConfig) {\n countryCode = i18n_iso_countries_1.getAlpha2Code(systemConfig.common.country, \"en\");\n if (i18n_iso_languages_1.isValid(systemConfig.common.language))\n languageCode = systemConfig.common.language;\n }\n try {\n const adapter_info = yield this.getForeignObjectAsync(`system.adapter.${this.namespace}`);\n if (adapter_info && adapter_info.common && adapter_info.common.version) {\n if (this.persistentData.version !== adapter_info.common.version) {\n const currentVersion = Number.parseFloat(utils_1.removeLastChar(adapter_info.common.version, \".\"));\n const previousVersion = this.persistentData.version !== \"\" && this.persistentData.version !== undefined ? Number.parseFloat(utils_1.removeLastChar(this.persistentData.version, \".\")) : 0;\n this.logger.debug(`Handling of adapter update - currentVersion: ${currentVersion} previousVersion: ${previousVersion}`);\n if (previousVersion < currentVersion) {\n yield utils_1.handleUpdate(this, this.logger, previousVersion);\n this.persistentData.version = adapter_info.common.version;\n this.writePersistentData();\n }\n }\n }\n }\n catch (error) {\n this.logger.error(`Handling of adapter update - Error:`, error);\n }\n this.eufy = new EufySecurityAPI.EufySecurity(this, this.logger, countryCode, languageCode);\n this.eufy.on(\"stations\", (stations) => this.handleStations(stations));\n this.eufy.on(\"devices\", (devices) => this.handleDevices(devices));\n this.eufy.on(\"push message\", (messages) => this.handlePushNotification(messages));\n this.eufy.on(\"connect\", () => this.onConnect());\n this.eufy.on(\"close\", () => this.onClose());\n this.eufy.on(\"livestream start\", (station, device, url) => this.onStartLivestream(station, device, url));\n this.eufy.on(\"livestream stop\", (station, device) => this.onStopLivestream(station, device));\n this.eufy.on(\"push connect\", () => this.onPushConnect());\n this.eufy.on(\"push close\", () => this.onPushClose());\n const api = this.eufy.getApi();\n if (this.persistentData.api_base && this.persistentData.api_base != \"\") {\n this.logger.debug(`Load previous api_base: ${this.persistentData.api_base}`);\n api.setAPIBase(this.persistentData.api_base);\n }\n if (this.persistentData.login_hash && this.persistentData.login_hash != \"\") {\n this.logger.debug(`Load previous login_hash: ${this.persistentData.login_hash}`);\n if (utils_1.md5(`${this.config.username}:${this.config.password}`) != this.persistentData.login_hash) {\n this.logger.info(`Authentication properties changed, invalidate saved cloud token.`);\n this.persistentData.cloud_token = \"\";\n this.persistentData.cloud_token_expiration = 0;\n this.persistentData.api_base = \"\";\n }\n }\n else {\n this.persistentData.cloud_token = \"\";\n this.persistentData.cloud_token_expiration = 0;\n }\n if (this.persistentData.cloud_token && this.persistentData.cloud_token != \"\") {\n this.logger.debug(`Load previous token: ${this.persistentData.cloud_token} token_expiration: ${this.persistentData.cloud_token_expiration}`);\n api.setToken(this.persistentData.cloud_token);\n api.setTokenExpiration(new Date(this.persistentData.cloud_token_expiration));\n }\n if (!this.persistentData.openudid || this.persistentData.openudid == \"\") {\n this.persistentData.openudid = utils_1.generateUDID();\n this.logger.debug(`Generated new openudid: ${this.persistentData.openudid}`);\n }\n api.setOpenUDID(this.persistentData.openudid);\n if (!this.persistentData.serial_number || this.persistentData.serial_number == \"\") {\n this.persistentData.serial_number = utils_1.generateSerialnumber(12);\n this.logger.debug(`Generated new serial_number: ${this.persistentData.serial_number}`);\n }\n api.setSerialNumber(this.persistentData.serial_number);\n yield this.eufy.logon();\n });\n }", "function AppMeasurement(r){var a=this;a.version=\"2.8.2\";var k=window;k.s_c_in||(k.s_c_il=[],k.s_c_in=0);a._il=k.s_c_il;a._in=k.s_c_in;a._il[a._in]=a;k.s_c_in++;a._c=\"s_c\";var p=k.AppMeasurement.Xb;p||(p=null);var n=k,m,s;try{for(m=n.parent,s=n.location;m&&m.location&&s&&\"\"+m.location!=\"\"+s&&n.location&&\"\"+m.location!=\"\"+n.location&&m.location.host==s.host;)n=m,m=n.parent}catch(u){}a.F=function(a){try{console.log(a)}catch(b){}};a.Oa=function(a){return\"\"+parseInt(a)==\"\"+a};a.replace=function(a,b,d){return!a||\r\n0>a.indexOf(b)?a:a.split(b).join(d)};a.escape=function(c){var b,d;if(!c)return c;c=encodeURIComponent(c);for(b=0;7>b;b++)d=\"+~!*()'\".substring(b,b+1),0<=c.indexOf(d)&&(c=a.replace(c,d,\"%\"+d.charCodeAt(0).toString(16).toUpperCase()));return c};a.unescape=function(c){if(!c)return c;c=0<=c.indexOf(\"+\")?a.replace(c,\"+\",\" \"):c;try{return decodeURIComponent(c)}catch(b){}return unescape(c)};a.Fb=function(){var c=k.location.hostname,b=a.fpCookieDomainPeriods,d;b||(b=a.cookieDomainPeriods);if(c&&!a.Ga&&!/^[0-9.]+$/.test(c)&&\r\n(b=b?parseInt(b):2,b=2<b?b:2,d=c.lastIndexOf(\".\"),0<=d)){for(;0<=d&&1<b;)d=c.lastIndexOf(\".\",d-1),b--;a.Ga=0<d?c.substring(d):c}return a.Ga};a.c_r=a.cookieRead=function(c){c=a.escape(c);var b=\" \"+a.d.cookie,d=b.indexOf(\" \"+c+\"=\"),f=0>d?d:b.indexOf(\";\",d);c=0>d?\"\":a.unescape(b.substring(d+2+c.length,0>f?b.length:f));return\"[[B]]\"!=c?c:\"\"};a.c_w=a.cookieWrite=function(c,b,d){var f=a.Fb(),e=a.cookieLifetime,g;b=\"\"+b;e=e?(\"\"+e).toUpperCase():\"\";d&&\"SESSION\"!=e&&\"NONE\"!=e&&((g=\"\"!=b?parseInt(e?e:0):-60)?\r\n(d=new Date,d.setTime(d.getTime()+1E3*g)):1==d&&(d=new Date,g=d.getYear(),d.setYear(g+5+(1900>g?1900:0))));return c&&\"NONE\"!=e?(a.d.cookie=a.escape(c)+\"=\"+a.escape(\"\"!=b?b:\"[[B]]\")+\"; path=/;\"+(d&&\"SESSION\"!=e?\" expires=\"+d.toUTCString()+\";\":\"\")+(f?\" domain=\"+f+\";\":\"\"),a.cookieRead(c)==b):0};a.Cb=function(){var c=a.Util.getIeVersion();\"number\"===typeof c&&10>c&&(a.unsupportedBrowser=!0,a.rb(a,function(){}))};a.rb=function(a,b){for(var d in a)a.hasOwnProperty(d)&&\"function\"===typeof a[d]&&(a[d]=b)};\r\na.L=[];a.ja=function(c,b,d){if(a.Ha)return 0;a.maxDelay||(a.maxDelay=250);var f=0,e=(new Date).getTime()+a.maxDelay,g=a.d.visibilityState,h=[\"webkitvisibilitychange\",\"visibilitychange\"];g||(g=a.d.webkitVisibilityState);if(g&&\"prerender\"==g){if(!a.ka)for(a.ka=1,d=0;d<h.length;d++)a.d.addEventListener(h[d],function(){var c=a.d.visibilityState;c||(c=a.d.webkitVisibilityState);\"visible\"==c&&(a.ka=0,a.delayReady())});f=1;e=0}else d||a.p(\"_d\")&&(f=1);f&&(a.L.push({m:c,a:b,t:e}),a.ka||setTimeout(a.delayReady,\r\na.maxDelay));return f};a.delayReady=function(){var c=(new Date).getTime(),b=0,d;for(a.p(\"_d\")?b=1:a.za();0<a.L.length;){d=a.L.shift();if(b&&!d.t&&d.t>c){a.L.unshift(d);setTimeout(a.delayReady,parseInt(a.maxDelay/2));break}a.Ha=1;a[d.m].apply(a,d.a);a.Ha=0}};a.setAccount=a.sa=function(c){var b,d;if(!a.ja(\"setAccount\",arguments))if(a.account=c,a.allAccounts)for(b=a.allAccounts.concat(c.split(\",\")),a.allAccounts=[],b.sort(),d=0;d<b.length;d++)0!=d&&b[d-1]==b[d]||a.allAccounts.push(b[d]);else a.allAccounts=\r\nc.split(\",\")};a.foreachVar=function(c,b){var d,f,e,g,h=\"\";e=f=\"\";if(a.lightProfileID)d=a.P,(h=a.lightTrackVars)&&(h=\",\"+h+\",\"+a.oa.join(\",\")+\",\");else{d=a.g;if(a.pe||a.linkType)h=a.linkTrackVars,f=a.linkTrackEvents,a.pe&&(e=a.pe.substring(0,1).toUpperCase()+a.pe.substring(1),a[e]&&(h=a[e].Vb,f=a[e].Ub));h&&(h=\",\"+h+\",\"+a.H.join(\",\")+\",\");f&&h&&(h+=\",events,\")}b&&(b=\",\"+b+\",\");for(f=0;f<d.length;f++)e=d[f],(g=a[e])&&(!h||0<=h.indexOf(\",\"+e+\",\"))&&(!b||0<=b.indexOf(\",\"+e+\",\"))&&c(e,g)};a.r=function(c,\r\nb,d,f,e){var g=\"\",h,l,k,q,m=0;\"contextData\"==c&&(c=\"c\");if(b){for(h in b)if(!(Object.prototype[h]||e&&h.substring(0,e.length)!=e)&&b[h]&&(!d||0<=d.indexOf(\",\"+(f?f+\".\":\"\")+h+\",\"))){k=!1;if(m)for(l=0;l<m.length;l++)h.substring(0,m[l].length)==m[l]&&(k=!0);if(!k&&(\"\"==g&&(g+=\"&\"+c+\".\"),l=b[h],e&&(h=h.substring(e.length)),0<h.length))if(k=h.indexOf(\".\"),0<k)l=h.substring(0,k),k=(e?e:\"\")+l+\".\",m||(m=[]),m.push(k),g+=a.r(l,b,d,f,k);else if(\"boolean\"==typeof l&&(l=l?\"true\":\"false\"),l){if(\"retrieveLightData\"==\r\nf&&0>e.indexOf(\".contextData.\"))switch(k=h.substring(0,4),q=h.substring(4),h){case \"transactionID\":h=\"xact\";break;case \"channel\":h=\"ch\";break;case \"campaign\":h=\"v0\";break;default:a.Oa(q)&&(\"prop\"==k?h=\"c\"+q:\"eVar\"==k?h=\"v\"+q:\"list\"==k?h=\"l\"+q:\"hier\"==k&&(h=\"h\"+q,l=l.substring(0,255)))}g+=\"&\"+a.escape(h)+\"=\"+a.escape(l)}}\"\"!=g&&(g+=\"&.\"+c)}return g};a.usePostbacks=0;a.Ib=function(){var c=\"\",b,d,f,e,g,h,l,k,q=\"\",m=\"\",n=e=\"\";if(a.lightProfileID)b=a.P,(q=a.lightTrackVars)&&(q=\",\"+q+\",\"+a.oa.join(\",\")+\r\n\",\");else{b=a.g;if(a.pe||a.linkType)q=a.linkTrackVars,m=a.linkTrackEvents,a.pe&&(e=a.pe.substring(0,1).toUpperCase()+a.pe.substring(1),a[e]&&(q=a[e].Vb,m=a[e].Ub));q&&(q=\",\"+q+\",\"+a.H.join(\",\")+\",\");m&&(m=\",\"+m+\",\",q&&(q+=\",events,\"));a.events2&&(n+=(\"\"!=n?\",\":\"\")+a.events2)}if(a.visitor&&a.visitor.getCustomerIDs){e=p;if(g=a.visitor.getCustomerIDs())for(d in g)Object.prototype[d]||(f=g[d],\"object\"==typeof f&&(e||(e={}),f.id&&(e[d+\".id\"]=f.id),f.authState&&(e[d+\".as\"]=f.authState)));e&&(c+=a.r(\"cid\",\r\ne))}a.AudienceManagement&&a.AudienceManagement.isReady()&&(c+=a.r(\"d\",a.AudienceManagement.getEventCallConfigParams()));for(d=0;d<b.length;d++){e=b[d];g=a[e];f=e.substring(0,4);h=e.substring(4);g||(\"events\"==e&&n?(g=n,n=\"\"):\"marketingCloudOrgID\"==e&&a.visitor&&(g=a.visitor.marketingCloudOrgID));if(g&&(!q||0<=q.indexOf(\",\"+e+\",\"))){switch(e){case \"customerPerspective\":e=\"cp\";break;case \"marketingCloudOrgID\":e=\"mcorgid\";break;case \"supplementalDataID\":e=\"sdid\";break;case \"timestamp\":e=\"ts\";break;case \"dynamicVariablePrefix\":e=\r\n\"D\";break;case \"visitorID\":e=\"vid\";break;case \"marketingCloudVisitorID\":e=\"mid\";break;case \"analyticsVisitorID\":e=\"aid\";break;case \"audienceManagerLocationHint\":e=\"aamlh\";break;case \"audienceManagerBlob\":e=\"aamb\";break;case \"authState\":e=\"as\";break;case \"pageURL\":e=\"g\";255<g.length&&(a.pageURLRest=g.substring(255),g=g.substring(0,255));break;case \"pageURLRest\":e=\"-g\";break;case \"referrer\":e=\"r\";break;case \"vmk\":case \"visitorMigrationKey\":e=\"vmt\";break;case \"visitorMigrationServer\":e=\"vmf\";a.ssl&&\r\na.visitorMigrationServerSecure&&(g=\"\");break;case \"visitorMigrationServerSecure\":e=\"vmf\";!a.ssl&&a.visitorMigrationServer&&(g=\"\");break;case \"charSet\":e=\"ce\";break;case \"visitorNamespace\":e=\"ns\";break;case \"cookieDomainPeriods\":e=\"cdp\";break;case \"cookieLifetime\":e=\"cl\";break;case \"variableProvider\":e=\"vvp\";break;case \"currencyCode\":e=\"cc\";break;case \"channel\":e=\"ch\";break;case \"transactionID\":e=\"xact\";break;case \"campaign\":e=\"v0\";break;case \"latitude\":e=\"lat\";break;case \"longitude\":e=\"lon\";break;\r\ncase \"resolution\":e=\"s\";break;case \"colorDepth\":e=\"c\";break;case \"javascriptVersion\":e=\"j\";break;case \"javaEnabled\":e=\"v\";break;case \"cookiesEnabled\":e=\"k\";break;case \"browserWidth\":e=\"bw\";break;case \"browserHeight\":e=\"bh\";break;case \"connectionType\":e=\"ct\";break;case \"homepage\":e=\"hp\";break;case \"events\":n&&(g+=(\"\"!=g?\",\":\"\")+n);if(m)for(h=g.split(\",\"),g=\"\",f=0;f<h.length;f++)l=h[f],k=l.indexOf(\"=\"),0<=k&&(l=l.substring(0,k)),k=l.indexOf(\":\"),0<=k&&(l=l.substring(0,k)),0<=m.indexOf(\",\"+l+\",\")&&(g+=\r\n(g?\",\":\"\")+h[f]);break;case \"events2\":g=\"\";break;case \"contextData\":c+=a.r(\"c\",a[e],q,e);g=\"\";break;case \"lightProfileID\":e=\"mtp\";break;case \"lightStoreForSeconds\":e=\"mtss\";a.lightProfileID||(g=\"\");break;case \"lightIncrementBy\":e=\"mti\";a.lightProfileID||(g=\"\");break;case \"retrieveLightProfiles\":e=\"mtsr\";break;case \"deleteLightProfiles\":e=\"mtsd\";break;case \"retrieveLightData\":a.retrieveLightProfiles&&(c+=a.r(\"mts\",a[e],q,e));g=\"\";break;default:a.Oa(h)&&(\"prop\"==f?e=\"c\"+h:\"eVar\"==f?e=\"v\"+h:\"list\"==\r\nf?e=\"l\"+h:\"hier\"==f&&(e=\"h\"+h,g=g.substring(0,255)))}g&&(c+=\"&\"+e+\"=\"+(\"pev\"!=e.substring(0,3)?a.escape(g):g))}\"pev3\"==e&&a.e&&(c+=a.e)}a.na&&(c+=\"&lrt=\"+a.na,a.na=null);return c};a.D=function(a){var b=a.tagName;if(\"undefined\"!=\"\"+a.$b||\"undefined\"!=\"\"+a.Qb&&\"HTML\"!=(\"\"+a.Qb).toUpperCase())return\"\";b=b&&b.toUpperCase?b.toUpperCase():\"\";\"SHAPE\"==b&&(b=\"\");b&&((\"INPUT\"==b||\"BUTTON\"==b)&&a.type&&a.type.toUpperCase?b=a.type.toUpperCase():!b&&a.href&&(b=\"A\"));return b};a.Ka=function(a){var b=k.location,\r\nd=a.href?a.href:\"\",f,e,g;f=d.indexOf(\":\");e=d.indexOf(\"?\");g=d.indexOf(\"/\");d&&(0>f||0<=e&&f>e||0<=g&&f>g)&&(e=a.protocol&&1<a.protocol.length?a.protocol:b.protocol?b.protocol:\"\",f=b.pathname.lastIndexOf(\"/\"),d=(e?e+\"//\":\"\")+(a.host?a.host:b.host?b.host:\"\")+(\"/\"!=d.substring(0,1)?b.pathname.substring(0,0>f?0:f)+\"/\":\"\")+d);return d};a.M=function(c){var b=a.D(c),d,f,e=\"\",g=0;return b&&(d=c.protocol,f=c.onclick,!c.href||\"A\"!=b&&\"AREA\"!=b||f&&d&&!(0>d.toLowerCase().indexOf(\"javascript\"))?f?(e=a.replace(a.replace(a.replace(a.replace(\"\"+\r\nf,\"\\r\",\"\"),\"\\n\",\"\"),\"\\t\",\"\"),\" \",\"\"),g=2):\"INPUT\"==b||\"SUBMIT\"==b?(c.value?e=c.value:c.innerText?e=c.innerText:c.textContent&&(e=c.textContent),g=3):\"IMAGE\"==b&&c.src&&(e=c.src):e=a.Ka(c),e)?{id:e.substring(0,100),type:g}:0};a.Yb=function(c){for(var b=a.D(c),d=a.M(c);c&&!d&&\"BODY\"!=b;)if(c=c.parentElement?c.parentElement:c.parentNode)b=a.D(c),d=a.M(c);d&&\"BODY\"!=b||(c=0);c&&(b=c.onclick?\"\"+c.onclick:\"\",0<=b.indexOf(\".tl(\")||0<=b.indexOf(\".trackLink(\"))&&(c=0);return c};a.Pb=function(){var c,b,d=a.linkObject,\r\nf=a.linkType,e=a.linkURL,g,h;a.pa=1;d||(a.pa=0,d=a.clickObject);if(d){c=a.D(d);for(b=a.M(d);d&&!b&&\"BODY\"!=c;)if(d=d.parentElement?d.parentElement:d.parentNode)c=a.D(d),b=a.M(d);b&&\"BODY\"!=c||(d=0);if(d&&!a.linkObject){var l=d.onclick?\"\"+d.onclick:\"\";if(0<=l.indexOf(\".tl(\")||0<=l.indexOf(\".trackLink(\"))d=0}}else a.pa=1;!e&&d&&(e=a.Ka(d));e&&!a.linkLeaveQueryString&&(g=e.indexOf(\"?\"),0<=g&&(e=e.substring(0,g)));if(!f&&e){var m=0,q=0,n;if(a.trackDownloadLinks&&a.linkDownloadFileTypes)for(l=e.toLowerCase(),\r\ng=l.indexOf(\"?\"),h=l.indexOf(\"#\"),0<=g?0<=h&&h<g&&(g=h):g=h,0<=g&&(l=l.substring(0,g)),g=a.linkDownloadFileTypes.toLowerCase().split(\",\"),h=0;h<g.length;h++)(n=g[h])&&l.substring(l.length-(n.length+1))==\".\"+n&&(f=\"d\");if(a.trackExternalLinks&&!f&&(l=e.toLowerCase(),a.Na(l)&&(a.linkInternalFilters||(a.linkInternalFilters=k.location.hostname),g=0,a.linkExternalFilters?(g=a.linkExternalFilters.toLowerCase().split(\",\"),m=1):a.linkInternalFilters&&(g=a.linkInternalFilters.toLowerCase().split(\",\")),g))){for(h=\r\n0;h<g.length;h++)n=g[h],0<=l.indexOf(n)&&(q=1);q?m&&(f=\"e\"):m||(f=\"e\")}}a.linkObject=d;a.linkURL=e;a.linkType=f;if(a.trackClickMap||a.trackInlineStats)a.e=\"\",d&&(f=a.pageName,e=1,d=d.sourceIndex,f||(f=a.pageURL,e=0),k.s_objectID&&(b.id=k.s_objectID,d=b.type=1),f&&b&&b.id&&c&&(a.e=\"&pid=\"+a.escape(f.substring(0,255))+(e?\"&pidt=\"+e:\"\")+\"&oid=\"+a.escape(b.id.substring(0,100))+(b.type?\"&oidt=\"+b.type:\"\")+\"&ot=\"+c+(d?\"&oi=\"+d:\"\")))};a.Jb=function(){var c=a.pa,b=a.linkType,d=a.linkURL,f=a.linkName;b&&(d||\r\nf)&&(b=b.toLowerCase(),\"d\"!=b&&\"e\"!=b&&(b=\"o\"),a.pe=\"lnk_\"+b,a.pev1=d?a.escape(d):\"\",a.pev2=f?a.escape(f):\"\",c=1);a.abort&&(c=0);if(a.trackClickMap||a.trackInlineStats||a.ActivityMap){var b={},d=0,e=a.cookieRead(\"s_sq\"),g=e?e.split(\"&\"):0,h,l,k,e=0;if(g)for(h=0;h<g.length;h++)l=g[h].split(\"=\"),f=a.unescape(l[0]).split(\",\"),l=a.unescape(l[1]),b[l]=f;f=a.account.split(\",\");h={};for(k in a.contextData)k&&!Object.prototype[k]&&\"a.activitymap.\"==k.substring(0,14)&&(h[k]=a.contextData[k],a.contextData[k]=\r\n\"\");a.e=a.r(\"c\",h)+(a.e?a.e:\"\");if(c||a.e){c&&!a.e&&(e=1);for(l in b)if(!Object.prototype[l])for(k=0;k<f.length;k++)for(e&&(g=b[l].join(\",\"),g==a.account&&(a.e+=(\"&\"!=l.charAt(0)?\"&\":\"\")+l,b[l]=[],d=1)),h=0;h<b[l].length;h++)g=b[l][h],g==f[k]&&(e&&(a.e+=\"&u=\"+a.escape(g)+(\"&\"!=l.charAt(0)?\"&\":\"\")+l+\"&u=0\"),b[l].splice(h,1),d=1);c||(d=1);if(d){e=\"\";h=2;!c&&a.e&&(e=a.escape(f.join(\",\"))+\"=\"+a.escape(a.e),h=1);for(l in b)!Object.prototype[l]&&0<h&&0<b[l].length&&(e+=(e?\"&\":\"\")+a.escape(b[l].join(\",\"))+\r\n\"=\"+a.escape(l),h--);a.cookieWrite(\"s_sq\",e)}}}return c};a.Kb=function(){if(!a.Tb){var c=new Date,b=n.location,d,f,e=f=d=\"\",g=\"\",h=\"\",l=\"1.2\",k=a.cookieWrite(\"s_cc\",\"true\",0)?\"Y\":\"N\",m=\"\",p=\"\";if(c.setUTCDate&&(l=\"1.3\",(0).toPrecision&&(l=\"1.5\",c=[],c.forEach))){l=\"1.6\";f=0;d={};try{f=new Iterator(d),f.next&&(l=\"1.7\",c.reduce&&(l=\"1.8\",l.trim&&(l=\"1.8.1\",Date.parse&&(l=\"1.8.2\",Object.create&&(l=\"1.8.5\")))))}catch(r){}}d=screen.width+\"x\"+screen.height;e=navigator.javaEnabled()?\"Y\":\"N\";f=screen.pixelDepth?\r\nscreen.pixelDepth:screen.colorDepth;g=a.w.innerWidth?a.w.innerWidth:a.d.documentElement.offsetWidth;h=a.w.innerHeight?a.w.innerHeight:a.d.documentElement.offsetHeight;try{a.b.addBehavior(\"#default#homePage\"),m=a.b.Zb(b)?\"Y\":\"N\"}catch(s){}try{a.b.addBehavior(\"#default#clientCaps\"),p=a.b.connectionType}catch(t){}a.resolution=d;a.colorDepth=f;a.javascriptVersion=l;a.javaEnabled=e;a.cookiesEnabled=k;a.browserWidth=g;a.browserHeight=h;a.connectionType=p;a.homepage=m;a.Tb=1}};a.Q={};a.loadModule=function(c,\r\nb){var d=a.Q[c];if(!d){d=k[\"AppMeasurement_Module_\"+c]?new k[\"AppMeasurement_Module_\"+c](a):{};a.Q[c]=a[c]=d;d.kb=function(){return d.qb};d.sb=function(b){if(d.qb=b)a[c+\"_onLoad\"]=b,a.ja(c+\"_onLoad\",[a,d],1)||b(a,d)};try{Object.defineProperty?Object.defineProperty(d,\"onLoad\",{get:d.kb,set:d.sb}):d._olc=1}catch(f){d._olc=1}}b&&(a[c+\"_onLoad\"]=b,a.ja(c+\"_onLoad\",[a,d],1)||b(a,d))};a.p=function(c){var b,d;for(b in a.Q)if(!Object.prototype[b]&&(d=a.Q[b])&&(d._olc&&d.onLoad&&(d._olc=0,d.onLoad(a,d)),d[c]&&\r\nd[c]()))return 1;return 0};a.Mb=function(){var c=Math.floor(1E13*Math.random()),b=a.visitorSampling,d=a.visitorSamplingGroup,d=\"s_vsn_\"+(a.visitorNamespace?a.visitorNamespace:a.account)+(d?\"_\"+d:\"\"),f=a.cookieRead(d);if(b){b*=100;f&&(f=parseInt(f));if(!f){if(!a.cookieWrite(d,c))return 0;f=c}if(f%1E4>b)return 0}return 1};a.R=function(c,b){var d,f,e,g,h,l;for(d=0;2>d;d++)for(f=0<d?a.Ca:a.g,e=0;e<f.length;e++)if(g=f[e],(h=c[g])||c[\"!\"+g]){if(!b&&(\"contextData\"==g||\"retrieveLightData\"==g)&&a[g])for(l in a[g])h[l]||\r\n(h[l]=a[g][l]);a[g]=h}};a.Ya=function(c,b){var d,f,e,g;for(d=0;2>d;d++)for(f=0<d?a.Ca:a.g,e=0;e<f.length;e++)g=f[e],c[g]=a[g],b||c[g]||(c[\"!\"+g]=1)};a.Eb=function(a){var b,d,f,e,g,h=0,l,k=\"\",m=\"\";if(a&&255<a.length&&(b=\"\"+a,d=b.indexOf(\"?\"),0<d&&(l=b.substring(d+1),b=b.substring(0,d),e=b.toLowerCase(),f=0,\"http://\"==e.substring(0,7)?f+=7:\"https://\"==e.substring(0,8)&&(f+=8),d=e.indexOf(\"/\",f),0<d&&(e=e.substring(f,d),g=b.substring(d),b=b.substring(0,d),0<=e.indexOf(\"google\")?h=\",q,ie,start,search_key,word,kw,cd,\":\r\n0<=e.indexOf(\"yahoo.co\")&&(h=\",p,ei,\"),h&&l)))){if((a=l.split(\"&\"))&&1<a.length){for(f=0;f<a.length;f++)e=a[f],d=e.indexOf(\"=\"),0<d&&0<=h.indexOf(\",\"+e.substring(0,d)+\",\")?k+=(k?\"&\":\"\")+e:m+=(m?\"&\":\"\")+e;k&&m?l=k+\"&\"+m:m=\"\"}d=253-(l.length-m.length)-b.length;a=b+(0<d?g.substring(0,d):\"\")+\"?\"+l}return a};a.eb=function(c){var b=a.d.visibilityState,d=[\"webkitvisibilitychange\",\"visibilitychange\"];b||(b=a.d.webkitVisibilityState);if(b&&\"prerender\"==b){if(c)for(b=0;b<d.length;b++)a.d.addEventListener(d[b],\r\nfunction(){var b=a.d.visibilityState;b||(b=a.d.webkitVisibilityState);\"visible\"==b&&c()});return!1}return!0};a.fa=!1;a.J=!1;a.ub=function(){a.J=!0;a.j()};a.da=!1;a.V=!1;a.pb=function(c){a.marketingCloudVisitorID=c;a.V=!0;a.j()};a.ga=!1;a.W=!1;a.vb=function(c){a.visitorOptedOut=c;a.W=!0;a.j()};a.aa=!1;a.S=!1;a.$a=function(c){a.analyticsVisitorID=c;a.S=!0;a.j()};a.ca=!1;a.U=!1;a.bb=function(c){a.audienceManagerLocationHint=c;a.U=!0;a.j()};a.ba=!1;a.T=!1;a.ab=function(c){a.audienceManagerBlob=c;a.T=\r\n!0;a.j()};a.cb=function(c){a.maxDelay||(a.maxDelay=250);return a.p(\"_d\")?(c&&setTimeout(function(){c()},a.maxDelay),!1):!0};a.ea=!1;a.I=!1;a.za=function(){a.I=!0;a.j()};a.isReadyToTrack=function(){var c=!0,b=a.visitor,d,f,e;a.fa||a.J||(a.eb(a.ub)?a.J=!0:a.fa=!0);if(a.fa&&!a.J)return!1;b&&b.isAllowed()&&(a.da||a.marketingCloudVisitorID||!b.getMarketingCloudVisitorID||(a.da=!0,a.marketingCloudVisitorID=b.getMarketingCloudVisitorID([a,a.pb]),a.marketingCloudVisitorID&&(a.V=!0)),a.ga||a.visitorOptedOut||\r\n!b.isOptedOut||(a.ga=!0,a.visitorOptedOut=b.isOptedOut([a,a.vb]),a.visitorOptedOut!=p&&(a.W=!0)),a.aa||a.analyticsVisitorID||!b.getAnalyticsVisitorID||(a.aa=!0,a.analyticsVisitorID=b.getAnalyticsVisitorID([a,a.$a]),a.analyticsVisitorID&&(a.S=!0)),a.ca||a.audienceManagerLocationHint||!b.getAudienceManagerLocationHint||(a.ca=!0,a.audienceManagerLocationHint=b.getAudienceManagerLocationHint([a,a.bb]),a.audienceManagerLocationHint&&(a.U=!0)),a.ba||a.audienceManagerBlob||!b.getAudienceManagerBlob||(a.ba=\r\n!0,a.audienceManagerBlob=b.getAudienceManagerBlob([a,a.ab]),a.audienceManagerBlob&&(a.T=!0)),c=a.da&&!a.V&&!a.marketingCloudVisitorID,b=a.aa&&!a.S&&!a.analyticsVisitorID,d=a.ca&&!a.U&&!a.audienceManagerLocationHint,f=a.ba&&!a.T&&!a.audienceManagerBlob,e=a.ga&&!a.W,c=c||b||d||f||e?!1:!0);a.ea||a.I||(a.cb(a.za)?a.I=!0:a.ea=!0);a.ea&&!a.I&&(c=!1);return c};a.o=p;a.u=0;a.callbackWhenReadyToTrack=function(c,b,d){var f;f={};f.zb=c;f.yb=b;f.wb=d;a.o==p&&(a.o=[]);a.o.push(f);0==a.u&&(a.u=setInterval(a.j,\r\n100))};a.j=function(){var c;if(a.isReadyToTrack()&&(a.tb(),a.o!=p))for(;0<a.o.length;)c=a.o.shift(),c.yb.apply(c.zb,c.wb)};a.tb=function(){a.u&&(clearInterval(a.u),a.u=0)};a.mb=function(c){var b,d,f=p,e=p;if(!a.isReadyToTrack()){b=[];if(c!=p)for(d in f={},c)f[d]=c[d];e={};a.Ya(e,!0);b.push(f);b.push(e);a.callbackWhenReadyToTrack(a,a.track,b);return!0}return!1};a.Gb=function(){var c=a.cookieRead(\"s_fid\"),b=\"\",d=\"\",f;f=8;var e=4;if(!c||0>c.indexOf(\"-\")){for(c=0;16>c;c++)f=Math.floor(Math.random()*f),\r\nb+=\"0123456789ABCDEF\".substring(f,f+1),f=Math.floor(Math.random()*e),d+=\"0123456789ABCDEF\".substring(f,f+1),f=e=16;c=b+\"-\"+d}a.cookieWrite(\"s_fid\",c,1)||(c=0);return c};a.t=a.track=function(c,b){var d,f=new Date,e=\"s\"+Math.floor(f.getTime()/108E5)%10+Math.floor(1E13*Math.random()),g=f.getYear(),g=\"t=\"+a.escape(f.getDate()+\"/\"+f.getMonth()+\"/\"+(1900>g?g+1900:g)+\" \"+f.getHours()+\":\"+f.getMinutes()+\":\"+f.getSeconds()+\" \"+f.getDay()+\" \"+f.getTimezoneOffset());a.visitor&&a.visitor.getAuthState&&(a.authState=\r\na.visitor.getAuthState());a.p(\"_s\");a.mb(c)||(b&&a.R(b),c&&(d={},a.Ya(d,0),a.R(c)),a.Mb()&&!a.visitorOptedOut&&(a.analyticsVisitorID||a.marketingCloudVisitorID||(a.fid=a.Gb()),a.Pb(),a.usePlugins&&a.doPlugins&&a.doPlugins(a),a.account&&(a.abort||(a.trackOffline&&!a.timestamp&&(a.timestamp=Math.floor(f.getTime()/1E3)),f=k.location,a.pageURL||(a.pageURL=f.href?f.href:f),a.referrer||a.Za||(f=a.Util.getQueryParam(\"adobe_mc_ref\",null,null,!0),a.referrer=f||void 0===f?void 0===f?\"\":f:n.document.referrer),\r\na.Za=1,a.referrer=a.Eb(a.referrer),a.p(\"_g\")),a.Jb()&&!a.abort&&(a.visitor&&!a.supplementalDataID&&a.visitor.getSupplementalDataID&&(a.supplementalDataID=a.visitor.getSupplementalDataID(\"AppMeasurement:\"+a._in,a.expectSupplementalData?!1:!0)),a.Kb(),g+=a.Ib(),a.ob(e,g),a.p(\"_t\"),a.referrer=\"\"))),c&&a.R(d,1));a.abort=a.supplementalDataID=a.timestamp=a.pageURLRest=a.linkObject=a.clickObject=a.linkURL=a.linkName=a.linkType=k.s_objectID=a.pe=a.pev1=a.pev2=a.pev3=a.e=a.lightProfileID=0};a.Ba=[];a.registerPreTrackCallback=\r\nfunction(c){for(var b=[],d=1;d<arguments.length;d++)b.push(arguments[d]);\"function\"==typeof c?a.Ba.push([c,b]):a.debugTracking&&a.F(\"DEBUG: Non function type passed to registerPreTrackCallback\")};a.hb=function(c){a.xa(a.Ba,c)};a.Aa=[];a.registerPostTrackCallback=function(c){for(var b=[],d=1;d<arguments.length;d++)b.push(arguments[d]);\"function\"==typeof c?a.Aa.push([c,b]):a.debugTracking&&a.F(\"DEBUG: Non function type passed to registerPostTrackCallback\")};a.gb=function(c){a.xa(a.Aa,c)};a.xa=function(c,\r\nb){if(\"object\"==typeof c)for(var d=0;d<c.length;d++){var f=c[d][0],e=c[d][1];e.unshift(b);if(\"function\"==typeof f)try{f.apply(null,e)}catch(g){a.debugTracking&&a.F(g.message)}}};a.tl=a.trackLink=function(c,b,d,f,e){a.linkObject=c;a.linkType=b;a.linkName=d;e&&(a.l=c,a.A=e);return a.track(f)};a.trackLight=function(c,b,d,f){a.lightProfileID=c;a.lightStoreForSeconds=b;a.lightIncrementBy=d;return a.track(f)};a.clearVars=function(){var c,b;for(c=0;c<a.g.length;c++)if(b=a.g[c],\"prop\"==b.substring(0,4)||\r\n\"eVar\"==b.substring(0,4)||\"hier\"==b.substring(0,4)||\"list\"==b.substring(0,4)||\"channel\"==b||\"events\"==b||\"eventList\"==b||\"products\"==b||\"productList\"==b||\"purchaseID\"==b||\"transactionID\"==b||\"state\"==b||\"zip\"==b||\"campaign\"==b)a[b]=void 0};a.tagContainerMarker=\"\";a.ob=function(c,b){var d=a.ib()+\"/\"+c+\"?AQB=1&ndh=1&pf=1&\"+(a.ya()?\"callback=s_c_il[\"+a._in+\"].doPostbacks&et=1&\":\"\")+b+\"&AQE=1\";a.hb(d);a.fb(d);a.X()};a.ib=function(){var c=a.jb();return\"http\"+(a.ssl?\"s\":\"\")+\"://\"+c+\"/b/ss/\"+a.account+\"/\"+\r\n(a.mobile?\"5.\":\"\")+(a.ya()?\"10\":\"1\")+\"/JS-\"+a.version+(a.Sb?\"T\":\"\")+(a.tagContainerMarker?\"-\"+a.tagContainerMarker:\"\")};a.ya=function(){return a.AudienceManagement&&a.AudienceManagement.isReady()||0!=a.usePostbacks};a.jb=function(){var c=a.dc,b=a.trackingServer;b?a.trackingServerSecure&&a.ssl&&(b=a.trackingServerSecure):(c=c?(\"\"+c).toLowerCase():\"d1\",\"d1\"==c?c=\"112\":\"d2\"==c&&(c=\"122\"),b=a.lb()+\".\"+c+\".2o7.net\");return b};a.lb=function(){var c=a.visitorNamespace;c||(c=a.account.split(\",\")[0],c=c.replace(/[^0-9a-z]/gi,\r\n\"\"));return c};a.Xa=/{(%?)(.*?)(%?)}/;a.Wb=RegExp(a.Xa.source,\"g\");a.Db=function(c){if(\"object\"==typeof c.dests)for(var b=0;b<c.dests.length;++b){var d=c.dests[b];if(\"string\"==typeof d.c&&\"aa.\"==d.id.substr(0,3))for(var f=d.c.match(a.Wb),e=0;e<f.length;++e){var g=f[e],h=g.match(a.Xa),k=\"\";\"%\"==h[1]&&\"timezone_offset\"==h[2]?k=(new Date).getTimezoneOffset():\"%\"==h[1]&&\"timestampz\"==h[2]&&(k=a.Hb());d.c=d.c.replace(g,a.escape(k))}}};a.Hb=function(){var c=new Date,b=new Date(6E4*Math.abs(c.getTimezoneOffset()));\r\nreturn a.k(4,c.getFullYear())+\"-\"+a.k(2,c.getMonth()+1)+\"-\"+a.k(2,c.getDate())+\"T\"+a.k(2,c.getHours())+\":\"+a.k(2,c.getMinutes())+\":\"+a.k(2,c.getSeconds())+(0<c.getTimezoneOffset()?\"-\":\"+\")+a.k(2,b.getUTCHours())+\":\"+a.k(2,b.getUTCMinutes())};a.k=function(a,b){return(Array(a+1).join(0)+b).slice(-a)};a.ua={};a.doPostbacks=function(c){if(\"object\"==typeof c)if(a.Db(c),\"object\"==typeof a.AudienceManagement&&\"function\"==typeof a.AudienceManagement.isReady&&a.AudienceManagement.isReady()&&\"function\"==typeof a.AudienceManagement.passData)a.AudienceManagement.passData(c);\r\nelse if(\"object\"==typeof c&&\"object\"==typeof c.dests)for(var b=0;b<c.dests.length;++b){var d=c.dests[b];\"object\"==typeof d&&\"string\"==typeof d.c&&\"string\"==typeof d.id&&\"aa.\"==d.id.substr(0,3)&&(a.ua[d.id]=new Image,a.ua[d.id].alt=\"\",a.ua[d.id].src=d.c)}};a.fb=function(c){a.i||a.Lb();a.i.push(c);a.ma=a.C();a.Va()};a.Lb=function(){a.i=a.Nb();a.i||(a.i=[])};a.Nb=function(){var c,b;if(a.ta()){try{(b=k.localStorage.getItem(a.qa()))&&(c=k.JSON.parse(b))}catch(d){}return c}};a.ta=function(){var c=!0;a.trackOffline&&\r\na.offlineFilename&&k.localStorage&&k.JSON||(c=!1);return c};a.La=function(){var c=0;a.i&&(c=a.i.length);a.q&&c++;return c};a.X=function(){if(a.q&&(a.B&&a.B.complete&&a.B.G&&a.B.wa(),a.q))return;a.Ma=p;if(a.ra)a.ma>a.O&&a.Ta(a.i),a.va(500);else{var c=a.xb();if(0<c)a.va(c);else if(c=a.Ia())a.q=1,a.Ob(c),a.Rb(c)}};a.va=function(c){a.Ma||(c||(c=0),a.Ma=setTimeout(a.X,c))};a.xb=function(){var c;if(!a.trackOffline||0>=a.offlineThrottleDelay)return 0;c=a.C()-a.Ra;return a.offlineThrottleDelay<c?0:a.offlineThrottleDelay-\r\nc};a.Ia=function(){if(0<a.i.length)return a.i.shift()};a.Ob=function(c){if(a.debugTracking){var b=\"AppMeasurement Debug: \"+c;c=c.split(\"&\");var d;for(d=0;d<c.length;d++)b+=\"\\n\\t\"+a.unescape(c[d]);a.F(b)}};a.nb=function(){return a.marketingCloudVisitorID||a.analyticsVisitorID};a.Z=!1;var t;try{t=JSON.parse('{\"x\":\"y\"}')}catch(w){t=null}t&&\"y\"==t.x?(a.Z=!0,a.Y=function(a){return JSON.parse(a)}):k.$&&k.$.parseJSON?(a.Y=function(a){return k.$.parseJSON(a)},a.Z=!0):a.Y=function(){return null};a.Rb=function(c){var b,\r\nd,f;a.nb()&&2047<c.length&&(\"undefined\"!=typeof XMLHttpRequest&&(b=new XMLHttpRequest,\"withCredentials\"in b?d=1:b=0),b||\"undefined\"==typeof XDomainRequest||(b=new XDomainRequest,d=2),b&&(a.AudienceManagement&&a.AudienceManagement.isReady()||0!=a.usePostbacks)&&(a.Z?b.Da=!0:b=0));!b&&a.Wa&&(c=c.substring(0,2047));!b&&a.d.createElement&&(0!=a.usePostbacks||a.AudienceManagement&&a.AudienceManagement.isReady())&&(b=a.d.createElement(\"SCRIPT\"))&&\"async\"in b&&((f=(f=a.d.getElementsByTagName(\"HEAD\"))&&f[0]?\r\nf[0]:a.d.body)?(b.type=\"text/javascript\",b.setAttribute(\"async\",\"async\"),d=3):b=0);b||(b=new Image,b.alt=\"\",b.abort||\"undefined\"===typeof k.InstallTrigger||(b.abort=function(){b.src=p}));b.Sa=Date.now();b.Fa=function(){try{b.G&&(clearTimeout(b.G),b.G=0)}catch(a){}};b.onload=b.wa=function(){b.Sa&&(a.na=Date.now()-b.Sa);a.gb(c);b.Fa();a.Bb();a.ha();a.q=0;a.X();if(b.Da){b.Da=!1;try{a.doPostbacks(a.Y(b.responseText))}catch(d){}}};b.onabort=b.onerror=b.Ja=function(){b.Fa();(a.trackOffline||a.ra)&&a.q&&\r\na.i.unshift(a.Ab);a.q=0;a.ma>a.O&&a.Ta(a.i);a.ha();a.va(500)};b.onreadystatechange=function(){4==b.readyState&&(200==b.status?b.wa():b.Ja())};a.Ra=a.C();if(1==d||2==d){var e=c.indexOf(\"?\");f=c.substring(0,e);e=c.substring(e+1);e=e.replace(/&callback=[a-zA-Z0-9_.\\[\\]]+/,\"\");1==d?(b.open(\"POST\",f,!0),b.send(e)):2==d&&(b.open(\"POST\",f),b.send(e))}else if(b.src=c,3==d){if(a.Pa)try{f.removeChild(a.Pa)}catch(g){}f.firstChild?f.insertBefore(b,f.firstChild):f.appendChild(b);a.Pa=a.B}b.G=setTimeout(function(){b.G&&\r\n(b.complete?b.wa():(a.trackOffline&&b.abort&&b.abort(),b.Ja()))},5E3);a.Ab=c;a.B=k[\"s_i_\"+a.replace(a.account,\",\",\"_\")]=b;if(a.useForcedLinkTracking&&a.K||a.A)a.forcedLinkTrackingTimeout||(a.forcedLinkTrackingTimeout=250),a.ia=setTimeout(a.ha,a.forcedLinkTrackingTimeout)};a.Bb=function(){if(a.ta()&&!(a.Qa>a.O))try{k.localStorage.removeItem(a.qa()),a.Qa=a.C()}catch(c){}};a.Ta=function(c){if(a.ta()){a.Va();try{k.localStorage.setItem(a.qa(),k.JSON.stringify(c)),a.O=a.C()}catch(b){}}};a.Va=function(){if(a.trackOffline){if(!a.offlineLimit||\r\n0>=a.offlineLimit)a.offlineLimit=10;for(;a.i.length>a.offlineLimit;)a.Ia()}};a.forceOffline=function(){a.ra=!0};a.forceOnline=function(){a.ra=!1};a.qa=function(){return a.offlineFilename+\"-\"+a.visitorNamespace+a.account};a.C=function(){return(new Date).getTime()};a.Na=function(a){a=a.toLowerCase();return 0!=a.indexOf(\"#\")&&0!=a.indexOf(\"about:\")&&0!=a.indexOf(\"opera:\")&&0!=a.indexOf(\"javascript:\")?!0:!1};a.setTagContainer=function(c){var b,d,f;a.Sb=c;for(b=0;b<a._il.length;b++)if((d=a._il[b])&&\"s_l\"==\r\nd._c&&d.tagContainerName==c){a.R(d);if(d.lmq)for(b=0;b<d.lmq.length;b++)f=d.lmq[b],a.loadModule(f.n);if(d.ml)for(f in d.ml)if(a[f])for(b in c=a[f],f=d.ml[f],f)!Object.prototype[b]&&(\"function\"!=typeof f[b]||0>(\"\"+f[b]).indexOf(\"s_c_il\"))&&(c[b]=f[b]);if(d.mmq)for(b=0;b<d.mmq.length;b++)f=d.mmq[b],a[f.m]&&(c=a[f.m],c[f.f]&&\"function\"==typeof c[f.f]&&(f.a?c[f.f].apply(c,f.a):c[f.f].apply(c)));if(d.tq)for(b=0;b<d.tq.length;b++)a.track(d.tq[b]);d.s=a;break}};a.Util={urlEncode:a.escape,urlDecode:a.unescape,\r\ncookieRead:a.cookieRead,cookieWrite:a.cookieWrite,getQueryParam:function(c,b,d,f){var e,g=\"\";b||(b=a.pageURL?a.pageURL:k.location);d=d?d:\"&\";if(!c||!b)return g;b=\"\"+b;e=b.indexOf(\"?\");if(0>e)return g;b=d+b.substring(e+1)+d;if(!f||!(0<=b.indexOf(d+c+d)||0<=b.indexOf(d+c+\"=\"+d))){e=b.indexOf(\"#\");0<=e&&(b=b.substr(0,e)+d);e=b.indexOf(d+c+\"=\");if(0>e)return g;b=b.substring(e+d.length+c.length+1);e=b.indexOf(d);0<=e&&(b=b.substring(0,e));0<b.length&&(g=a.unescape(b));return g}},getIeVersion:function(){if(document.documentMode)return document.documentMode;\r\nfor(var a=7;4<a;a--){var b=document.createElement(\"div\");b.innerHTML=\"\\x3c!--[if IE \"+a+\"]><span></span><![endif]--\\x3e\";if(b.getElementsByTagName(\"span\").length)return a}return null}};a.H=\"supplementalDataID timestamp dynamicVariablePrefix visitorID marketingCloudVisitorID analyticsVisitorID audienceManagerLocationHint authState fid vmk visitorMigrationKey visitorMigrationServer visitorMigrationServerSecure charSet visitorNamespace cookieDomainPeriods fpCookieDomainPeriods cookieLifetime pageName pageURL customerPerspective referrer contextData currencyCode lightProfileID lightStoreForSeconds lightIncrementBy retrieveLightProfiles deleteLightProfiles retrieveLightData\".split(\" \");\r\na.g=a.H.concat(\"purchaseID variableProvider channel server pageType transactionID campaign state zip events events2 products audienceManagerBlob tnt\".split(\" \"));a.oa=\"timestamp charSet visitorNamespace cookieDomainPeriods cookieLifetime contextData lightProfileID lightStoreForSeconds lightIncrementBy\".split(\" \");a.P=a.oa.slice(0);a.Ca=\"account allAccounts debugTracking visitor visitorOptedOut trackOffline offlineLimit offlineThrottleDelay offlineFilename usePlugins doPlugins configURL visitorSampling visitorSamplingGroup linkObject clickObject linkURL linkName linkType trackDownloadLinks trackExternalLinks trackClickMap trackInlineStats linkLeaveQueryString linkTrackVars linkTrackEvents linkDownloadFileTypes linkExternalFilters linkInternalFilters useForcedLinkTracking forcedLinkTrackingTimeout trackingServer trackingServerSecure ssl abort mobile dc lightTrackVars maxDelay expectSupplementalData usePostbacks registerPreTrackCallback registerPostTrackCallback AudienceManagement\".split(\" \");\r\nfor(m=0;250>=m;m++)76>m&&(a.g.push(\"prop\"+m),a.P.push(\"prop\"+m)),a.g.push(\"eVar\"+m),a.P.push(\"eVar\"+m),6>m&&a.g.push(\"hier\"+m),4>m&&a.g.push(\"list\"+m);m=\"pe pev1 pev2 pev3 latitude longitude resolution colorDepth javascriptVersion javaEnabled cookiesEnabled browserWidth browserHeight connectionType homepage pageURLRest marketingCloudOrgID\".split(\" \");a.g=a.g.concat(m);a.H=a.H.concat(m);a.ssl=0<=k.location.protocol.toLowerCase().indexOf(\"https\");a.charSet=\"UTF-8\";a.contextData={};a.offlineThrottleDelay=\r\n0;a.offlineFilename=\"AppMeasurement.offline\";a.Ra=0;a.ma=0;a.O=0;a.Qa=0;a.linkDownloadFileTypes=\"exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx\";a.w=k;a.d=k.document;try{if(a.Wa=!1,navigator){var v=navigator.userAgent;if(\"Microsoft Internet Explorer\"==navigator.appName||0<=v.indexOf(\"MSIE \")||0<=v.indexOf(\"Trident/\")&&0<=v.indexOf(\"Windows NT 6\"))a.Wa=!0}}catch(x){}a.ha=function(){a.ia&&(k.clearTimeout(a.ia),a.ia=p);a.l&&a.K&&a.l.dispatchEvent(a.K);a.A&&(\"function\"==typeof a.A?a.A():\r\na.l&&a.l.href&&(a.d.location=a.l.href));a.l=a.K=a.A=0};a.Ua=function(){a.b=a.d.body;a.b?(a.v=function(c){var b,d,f,e,g;if(!(a.d&&a.d.getElementById(\"cppXYctnr\")||c&&c[\"s_fe_\"+a._in])){if(a.Ea)if(a.useForcedLinkTracking)a.b.removeEventListener(\"click\",a.v,!1);else{a.b.removeEventListener(\"click\",a.v,!0);a.Ea=a.useForcedLinkTracking=0;return}else a.useForcedLinkTracking=0;a.clickObject=c.srcElement?c.srcElement:c.target;try{if(!a.clickObject||a.N&&a.N==a.clickObject||!(a.clickObject.tagName||a.clickObject.parentElement||\r\na.clickObject.parentNode))a.clickObject=0;else{var h=a.N=a.clickObject;a.la&&(clearTimeout(a.la),a.la=0);a.la=setTimeout(function(){a.N==h&&(a.N=0)},1E4);f=a.La();a.track();if(f<a.La()&&a.useForcedLinkTracking&&c.target){for(e=c.target;e&&e!=a.b&&\"A\"!=e.tagName.toUpperCase()&&\"AREA\"!=e.tagName.toUpperCase();)e=e.parentNode;if(e&&(g=e.href,a.Na(g)||(g=0),d=e.target,c.target.dispatchEvent&&g&&(!d||\"_self\"==d||\"_top\"==d||\"_parent\"==d||k.name&&d==k.name))){try{b=a.d.createEvent(\"MouseEvents\")}catch(l){b=\r\nnew k.MouseEvent}if(b){try{b.initMouseEvent(\"click\",c.bubbles,c.cancelable,c.view,c.detail,c.screenX,c.screenY,c.clientX,c.clientY,c.ctrlKey,c.altKey,c.shiftKey,c.metaKey,c.button,c.relatedTarget)}catch(m){b=0}b&&(b[\"s_fe_\"+a._in]=b.s_fe=1,c.stopPropagation(),c.stopImmediatePropagation&&c.stopImmediatePropagation(),c.preventDefault(),a.l=c.target,a.K=b)}}}}}catch(n){a.clickObject=0}}},a.b&&a.b.attachEvent?a.b.attachEvent(\"onclick\",a.v):a.b&&a.b.addEventListener&&(navigator&&(0<=navigator.userAgent.indexOf(\"WebKit\")&&\r\na.d.createEvent||0<=navigator.userAgent.indexOf(\"Firefox/2\")&&k.MouseEvent)&&(a.Ea=1,a.useForcedLinkTracking=1,a.b.addEventListener(\"click\",a.v,!0)),a.b.addEventListener(\"click\",a.v,!1))):setTimeout(a.Ua,30)};a.Cb();a.ac||(r?a.setAccount(r):a.F(\"Error, missing Report Suite ID in AppMeasurement initialization\"),a.Ua(),a.loadModule(\"ActivityMap\"))}" ]
[ "0.47173288", "0.46583715", "0.45286083", "0.45038942", "0.44843733", "0.44348565", "0.43834072", "0.4362673", "0.43318212", "0.43005583", "0.42536354", "0.42424083", "0.4222003", "0.42190567", "0.41818368", "0.41800052", "0.41799405", "0.41780844", "0.4177319", "0.41746554", "0.41731894", "0.4164861", "0.41408655", "0.41408655", "0.4126271", "0.41198462", "0.41181275", "0.41116533", "0.4109392", "0.41077578", "0.41055024", "0.41054586", "0.41040766", "0.41028202", "0.4101603", "0.40943187", "0.40915915", "0.40807727", "0.4080601", "0.40786958", "0.40776995", "0.4075226", "0.40742034", "0.4073683", "0.4069356", "0.405919", "0.40536937", "0.40535375", "0.40482554", "0.40477142", "0.40475637", "0.40444773", "0.40426528", "0.4042554", "0.404086", "0.40388995", "0.40339974", "0.40257978", "0.4021241", "0.40193477", "0.40186223", "0.40148717", "0.40133676", "0.40122312", "0.40120062", "0.4011317", "0.4006406", "0.4006406", "0.40057757", "0.4003313", "0.39914393", "0.39912254", "0.39903682", "0.3987383", "0.398352", "0.3981198", "0.3981053", "0.39806503", "0.39806503", "0.39806503", "0.39769232", "0.397633", "0.39746606", "0.39745283", "0.39735347", "0.39734355", "0.39696053", "0.3965437", "0.396171", "0.39597186", "0.3959575", "0.3957542", "0.39567924", "0.39551595", "0.39508852", "0.39458537", "0.39448595", "0.39432395", "0.3940848", "0.39408445", "0.39383444" ]
0.0
-1
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (render) { options.render = render options.staticRenderFns = staticRenderFns options._compiled = true } // functional template if (functionalTemplate) { options.functional = true } // scopedId if (scopeId) { options._scopeId = 'data-v-' + scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = shadowMode ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } : injectStyles } if (hook) { if (options.functional) { // for template-only hot-reload because in that case the render fn doesn't // go through the normalizer options._injectStyles = hook // register for functioal component in vue file var originalRender = options.render options.render = function renderWithStyleInjection (h, context) { hook.call(context) return originalRender(h, context) } } else { // inject component registration as beforeCreate hook var existing = options.beforeCreate options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } } return { exports: scriptExports, options: options } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (ctx.isDev && ctx.isClient) {\n config.devtool = \"source-map\";\n // if (isDev && process.isClient) {\n config.plugins.push(\n new StylelintPlugin({\n files: [\"**/*.vue\", \"**/*.scss\"],\n })\n ),\n config.module.rules.push({\n enforce: \"pre\",\n test: /\\.(js|vue)$/,\n loader: \"eslint-loader\",\n exclude: /(node_modules)/,\n options: {\n formatter: require(\"eslint-friendly-formatter\"),\n },\n });\n if (ctx.isDev) {\n config.mode = \"development\";\n }\n }\n for (const rule of config.module.rules) {\n if (rule.use) {\n for (const use of rule.use) {\n if (use.loader === \"sass-loader\") {\n use.options = use.options || {};\n use.options.includePaths = [\n \"node_modules/foundation-sites/scss\",\n \"node_modules/motion-ui/src\",\n ];\n }\n }\n }\n }\n // vue-svg-inline-loader\n const vueRule = config.module.rules.find((rule) =>\n rule.test.test(\".vue\")\n );\n vueRule.use = [\n {\n loader: vueRule.loader,\n options: vueRule.options,\n },\n {\n loader: \"vue-svg-inline-loader\",\n },\n ];\n delete vueRule.loader;\n delete vueRule.options;\n }", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}" ]
[ "0.5847333", "0.57279235", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897", "0.57266897" ]
0.0
-1
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (render) { options.render = render options.staticRenderFns = staticRenderFns options._compiled = true } // functional template if (functionalTemplate) { options.functional = true } // scopedId if (scopeId) { options._scopeId = 'data-v-' + scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = shadowMode ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } : injectStyles } if (hook) { if (options.functional) { // for template-only hot-reload because in that case the render fn doesn't // go through the normalizer options._injectStyles = hook // register for functioal component in vue file var originalRender = options.render options.render = function renderWithStyleInjection (h, context) { hook.call(context) return originalRender(h, context) } } else { // inject component registration as beforeCreate hook var existing = options.beforeCreate options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } } return { exports: scriptExports, options: options } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (ctx.isDev && ctx.isClient) {\n config.devtool = \"source-map\";\n // if (isDev && process.isClient) {\n config.plugins.push(\n new StylelintPlugin({\n files: [\"**/*.vue\", \"**/*.scss\"],\n })\n ),\n config.module.rules.push({\n enforce: \"pre\",\n test: /\\.(js|vue)$/,\n loader: \"eslint-loader\",\n exclude: /(node_modules)/,\n options: {\n formatter: require(\"eslint-friendly-formatter\"),\n },\n });\n if (ctx.isDev) {\n config.mode = \"development\";\n }\n }\n for (const rule of config.module.rules) {\n if (rule.use) {\n for (const use of rule.use) {\n if (use.loader === \"sass-loader\") {\n use.options = use.options || {};\n use.options.includePaths = [\n \"node_modules/foundation-sites/scss\",\n \"node_modules/motion-ui/src\",\n ];\n }\n }\n }\n }\n // vue-svg-inline-loader\n const vueRule = config.module.rules.find((rule) =>\n rule.test.test(\".vue\")\n );\n vueRule.use = [\n {\n loader: vueRule.loader,\n options: vueRule.options,\n },\n {\n loader: \"vue-svg-inline-loader\",\n },\n ];\n delete vueRule.loader;\n delete vueRule.options;\n }", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}" ]
[ "0.58472276", "0.5728634", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396" ]
0.0
-1
Group series by axis.
function groupSeriesByAxis(ecModel) { var result = []; var axisList = []; ecModel.eachSeriesByType('boxplot', function (seriesModel) { var baseAxis = seriesModel.getBaseAxis(); var idx = zrUtil.indexOf(axisList, baseAxis); if (idx < 0) { idx = axisList.length; axisList[idx] = baseAxis; result[idx] = { axis: baseAxis, seriesModels: [] }; } result[idx].seriesModels.push(seriesModel); }); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function groupSeriesByAxis(ecModel){var result=[];var axisList=[];ecModel.eachSeriesByType('boxplot',function(seriesModel){var baseAxis=seriesModel.getBaseAxis();var idx=zrUtil.indexOf(axisList,baseAxis);if(idx < 0){idx = axisList.length;axisList[idx] = baseAxis;result[idx] = {axis:baseAxis,seriesModels:[]};}result[idx].seriesModels.push(seriesModel);});return result;}", "function groupSeriesByAxis(ecModel) {\n\t var result = [];\n\t var axisList = [];\n\t ecModel.eachSeriesByType('boxplot', function (seriesModel) {\n\t var baseAxis = seriesModel.getBaseAxis();\n\t var idx = indexOf(axisList, baseAxis);\n\t\n\t if (idx < 0) {\n\t idx = axisList.length;\n\t axisList[idx] = baseAxis;\n\t result[idx] = {\n\t axis: baseAxis,\n\t seriesModels: []\n\t };\n\t }\n\t\n\t result[idx].seriesModels.push(seriesModel);\n\t });\n\t return result;\n\t }", "function groupSeriesByAxis(ecModel) {\n\t var result = [];\n\t var axisList = [];\n\n\t ecModel.eachSeriesByType('boxplot', function (seriesModel) {\n\t var baseAxis = seriesModel.getBaseAxis();\n\t var idx = zrUtil.indexOf(axisList, baseAxis);\n\n\t if (idx < 0) {\n\t idx = axisList.length;\n\t axisList[idx] = baseAxis;\n\t result[idx] = { axis: baseAxis, seriesModels: [] };\n\t }\n\n\t result[idx].seriesModels.push(seriesModel);\n\t });\n\n\t return result;\n\t}", "function groupSeriesByAxis(ecModel) {\n var result = [];\n var axisList = [];\n ecModel.eachSeriesByType('boxplot', function (seriesModel) {\n var baseAxis = seriesModel.getBaseAxis();\n var idx = util[\"r\" /* indexOf */](axisList, baseAxis);\n\n if (idx < 0) {\n idx = axisList.length;\n axisList[idx] = baseAxis;\n result[idx] = {\n axis: baseAxis,\n seriesModels: []\n };\n }\n\n result[idx].seriesModels.push(seriesModel);\n });\n return result;\n}", "function groupSeriesByAxis(ecModel) {\n var result = [];\n var axisList = [];\n\n ecModel.eachSeriesByType('boxplot', function (seriesModel) {\n var baseAxis = seriesModel.getBaseAxis();\n var idx = zrUtil.indexOf(axisList, baseAxis);\n\n if (idx < 0) {\n idx = axisList.length;\n axisList[idx] = baseAxis;\n result[idx] = {axis: baseAxis, seriesModels: []};\n }\n\n result[idx].seriesModels.push(seriesModel);\n });\n\n return result;\n }", "function groupSeries(ecModel) {\n\t var seriesGroupByCategoryAxis = {};\n\t var otherSeries = [];\n\t var meta = [];\n\t ecModel.eachRawSeries(function (seriesModel) {\n\t var coordSys = seriesModel.coordinateSystem;\n\t\n\t if (coordSys && (coordSys.type === 'cartesian2d' || coordSys.type === 'polar')) {\n\t // TODO: TYPE Consider polar? Include polar may increase unecessary bundle size.\n\t var baseAxis = coordSys.getBaseAxis();\n\t\n\t if (baseAxis.type === 'category') {\n\t var key = baseAxis.dim + '_' + baseAxis.index;\n\t\n\t if (!seriesGroupByCategoryAxis[key]) {\n\t seriesGroupByCategoryAxis[key] = {\n\t categoryAxis: baseAxis,\n\t valueAxis: coordSys.getOtherAxis(baseAxis),\n\t series: []\n\t };\n\t meta.push({\n\t axisDim: baseAxis.dim,\n\t axisIndex: baseAxis.index\n\t });\n\t }\n\t\n\t seriesGroupByCategoryAxis[key].series.push(seriesModel);\n\t } else {\n\t otherSeries.push(seriesModel);\n\t }\n\t } else {\n\t otherSeries.push(seriesModel);\n\t }\n\t });\n\t return {\n\t seriesGroupByCategoryAxis: seriesGroupByCategoryAxis,\n\t other: otherSeries,\n\t meta: meta\n\t };\n\t }", "function groupSeries(ecModel) {\n var seriesGroupByCategoryAxis = {};\n var otherSeries = [];\n var meta = [];\n ecModel.eachRawSeries(function (seriesModel) {\n var coordSys = seriesModel.coordinateSystem;\n\n if (coordSys && (coordSys.type === 'cartesian2d' || coordSys.type === 'polar')) {\n // TODO: TYPE Consider polar? Include polar may increase unecessary bundle size.\n var baseAxis = coordSys.getBaseAxis();\n\n if (baseAxis.type === 'category') {\n var key = baseAxis.dim + '_' + baseAxis.index;\n\n if (!seriesGroupByCategoryAxis[key]) {\n seriesGroupByCategoryAxis[key] = {\n categoryAxis: baseAxis,\n valueAxis: coordSys.getOtherAxis(baseAxis),\n series: []\n };\n meta.push({\n axisDim: baseAxis.dim,\n axisIndex: baseAxis.index\n });\n }\n\n seriesGroupByCategoryAxis[key].series.push(seriesModel);\n } else {\n otherSeries.push(seriesModel);\n }\n } else {\n otherSeries.push(seriesModel);\n }\n });\n return {\n seriesGroupByCategoryAxis: seriesGroupByCategoryAxis,\n other: otherSeries,\n meta: meta\n };\n}", "_groupData(realBarData, groupInterval, labelTicks) {\n let barData = [];\n for (let n = 0; n < groupInterval; n++) {\n barData.push([]);\n for (let realData of realBarData) {\n let i = 0;\n let mean = 0;\n let meanArray = [];\n for (let i = 0; i < realData.length && (new Date(realData[i][0]) < new Date(labelTicks.startDate.getTime() + labelTicks.interval * (n + 1))); i++) {\n if (new Date(realData[i][0]) >= new Date(labelTicks.startDate.getTime() + labelTicks.interval * (n))) {\n meanArray.push(realData[i][1]);\n }\n }\n barData[n].push(this._calcMeanFromArray(meanArray));\n }\n }\n return barData;\n }", "function groupTicks(d, step, senses) {\n var k = (d.endAngle - d.startAngle) / d.value;\n return d3.range(0, d.value, step).map(function(value) {\n return {value: senses[d.index], angle: value * k + d.startAngle};\n });\n }", "function groupSeriesToCreateAPie(categories, series){\n\tvar array_series = new Array();\n\tif(categories != null && categories.length > 0){\n\t\tvar data;\n\t\tvar value_total = 0;\n\t\tfor(var i = 0; i < categories.length; i++){\n\t\t\tfor(var j = 0; j < series.length; j++){\n\t\t\t\tvalue_total = value_total + parseInt(series[j].yData[i]);\n\t\t\t}\n\t\t\tdata = new Object()\n\t\t\tdata.y = value_total;\n\t\t\tdata.name = categories[i];\n\t\t\tarray_series.push(data);\n\t\t\tvalue_total = 0;\n\t\t} \n\t}\n\treturn array_series;\n}", "function createGroupedBars() {\n //set all values by series\n chart.data.forEach(function (d) {\n d.values = axis.serieNames.map(function (name) {\n return {\n name: name,\n xValue: d[chart.xField],\n yValue: +d[name]\n };\n })\n });\n\n //get new y domain\n var newYDomain = [0, d3.max(chart.data, function (d) {\n return d3.max(d.values, function (v) {\n return v.yValue * 1.1;\n });\n })];\n\n //check whether the chart is reversed\n if (isReversed) {\n //set new domain\n newYDomain = [d3.max(chart.data, function (d) {\n return d3.max(d.values, function (v) {\n return v.yValue * 1.1;\n });\n }), 0];\n\n //update x axis\n axis.x.domain(newYDomain);\n } else {\n //update y axis\n axis.y.domain(newYDomain);\n }\n\n //get range band\n var rangeBand = groupAxis.rangeBand();\n\n //create bar groups on canvas\n groupedBars = chart.svg.selectAll('.eve-series')\n .data(chart.data)\n .enter().append('g')\n .attr('class', 'eve-series')\n .attr('transform', function (d) {\n if (isReversed)\n return 'translate(' + (axis.offset.left) + ',' + (axis.y(d[chart.xField])) + ')';\n else\n return 'translate(' + (axis.x(d[chart.xField]) + axis.offset.left) + ',0)';\n });\n\n //create bar group rectangles\n groupedBarsRects = groupedBars.selectAll('rect')\n .data(function (d) { return d.values; })\n .enter().append('rect')\n .attr('class', function (d, i) { return 'eve-bar-serie eve-bar-serie-' + i; })\n .attr('width', function (d) { return isReversed ? (axis.offset.width - axis.x(d.yValue)) : rangeBand; })\n .attr('x', function (d) { return isReversed ? 0 : groupAxis(d.name); })\n .attr('y', function (d) { return isReversed ? groupAxis(d.name) : axis.y(d.yValue); })\n .attr('height', function (d) { return isReversed ? rangeBand : (axis.offset.height - axis.y(d.yValue)); })\n .style('fill', function (d, i) {\n //check whether the serie has color\n if (chart.series[i].color === '')\n return i <= e.colors.length ? e.colors[i] : e.randColor();\n else\n return chart.series[i].color;\n })\n .style('stroke', '#ffffff')\n .style('stroke-width', function (d, i) { return chart.series[i].strokeSize + 'px'; })\n .style('stroke-opacity', function (d, i) { return chart.series[i].alpha; })\n .style('fill-opacity', function (d, i) { return chart.series[i].alpha; })\n .on('mousemove', function(d, i) {\n var balloonContent = chart.getXYFormat(d, chart.series[d.index]);\n\n //show balloon\n chart.showBalloon(balloonContent);\n\n //increase bullet stroke size\n d3.select(this)\n .style('stroke-width', function (d) { return chart.series[i].strokeSize + 1; });\n })\n .on('mouseout', function(d, i) {\n //hide balloon\n chart.hideBalloon();\n\n //increase bullet stroke size\n d3.select(this)\n .style('stroke-width', function (d) { return chart.series[i].strokeSize; });\n });\n\n //set serie labels\n groupedBarsTexts = groupedBars.selectAll('text')\n .data(function(d) { return d.values; })\n .enter().append('text')\n .attr('class', function(d, i) { return 'eve-bar-label eve-bar-label-' + i; })\n .style('cursor', 'pointer')\n .style('fill', function(d, i) { return chart.series[i].labelFontColor; })\n .style('font-weight', function(d, i) { return chart.series[i].labelFontStyle == 'bold' ? 'bold' : 'normal'; })\n .style('font-style', function(d, i) { return chart.series[i].labelFontStyle == 'bold' ? 'normal' : chart.series[i].labelFontStyle; })\n .style(\"font-family\", function(d, i) { return chart.series[i].labelFontFamily; })\n .style(\"font-size\", function(d, i) { return chart.series[i].labelFontSize + 'px'; })\n .text(function(d, i) {\n //check whether the label format is enabled\n if(chart.series[i].labelFormat != '')\n return chart.getXYFormat(d, chart.series[i], 'label');\n })\n .attr('x', function(d, i) {\n //return calculated x pos\n return isReversed ? (axis.offset.width - axis.x(d.yValue)) : (i * rangeBand);\n })\n .attr('y', function(d, i) {\n //return calculated y pos\n return isReversed ? groupAxis(d.name) + rangeBand : axis.y(d.yValue) - 2;\n });\n }", "function getGroupTicks(data) {\n\n var groupedData = d3.nest()\n .key(groupBy)\n .entries(data);\n\n // Calculate y scale parameters\n var gHeight = 1000 / groupedData.length,\n gOffset = maxBubbleSize,\n gDomain = [0, 1],\n gRange = [0, 1],\n gScale = d3.scaleLinear().domain(gDomain).range(gRange),\n yValues = [],\n total = 0;\n\n // Calculate total for each data group and\n // point y value\n groupedData\n .map(function(s, i) {\n s.total = 0;\n\n s.values = s.values.sort(function(a, b) {\n return b.y < a.y ? -1 : b.y > a.y ? 1 : 0;\n })\n .map(function(p) {\n s.total += p.y;\n return p;\n });\n\n s.group = i;\n return s;\n })\n .sort(function(a, b) {\n return a.total < b.total ? -1 : a.total > b.total ? 1 : 0;\n })\n .map(function(s, i) {\n total += s.total;\n\n gDomain = d3.extent(s.values.map(function(p) { return p.y; }));\n gRange = [gHeight * i + gOffset, gHeight * (i + 1) - gOffset];\n gScale.domain(gDomain).range(gRange);\n\n s.values = s.values\n .map(function(p) {\n p.group = s.group;\n p.opportunity = p.y;\n p.y = gScale(p.opportunity);\n return p;\n });\n\n yValues.push({\n key: s.key,\n y: d3.min(s.values.map(function(p) { return p.y; }))\n });\n\n return s;\n });\n\n return yValues;\n }", "function group (frame) {\n let v, name, op;\n const entries = fields.map((field, index) => {\n name = ops[index];\n op = scalar_operations.get('count');\n if (name) {\n op = scalar_operations.get(name);\n if (!op) {\n op = scalar_operations.get('count');\n warn(`Operation ${name} is not supported, use count`);\n }\n }\n return {\n field: field,\n as: as[index] || field,\n op: op\n };\n });\n\n return frame.dimension(groupby).group().reduce((o, record) => {\n return entries.reduce((oo, entry) => {\n v = 0;\n if (entry.as in oo) v = oo[entry.as];\n oo[entry.as] = entry.op(v, record[entry.field]);\n return oo;\n }, o);\n }, null, Object).all().map(d => {\n d.value[groupby] = d.key;\n return d.value;\n });\n }", "function collectSeries(groups) {\n var nested = groups.map(function(group) { return group.series; });\n return d3.merge(nested);\n }", "function groupTicks(d) {\n var k = (d.endAngle - d.startAngle) / d.value;\n return d3.range(0, d.value, 1000).map(function(v, i) {\n return {\n angle: v * k + d.startAngle,\n label: labels[d.index]\n };\n });\n }", "function assembleSeriesWithCategoryAxis(groups) {\n\t var tables = [];\n\t each(groups, function (group, key) {\n\t var categoryAxis = group.categoryAxis;\n\t var valueAxis = group.valueAxis;\n\t var valueAxisDim = valueAxis.dim;\n\t var headers = [' '].concat(map(group.series, function (series) {\n\t return series.name;\n\t })); // @ts-ignore TODO Polar\n\t\n\t var columns = [categoryAxis.model.getCategories()];\n\t each(group.series, function (series) {\n\t var rawData = series.getRawData();\n\t columns.push(series.getRawData().mapArray(rawData.mapDimension(valueAxisDim), function (val) {\n\t return val;\n\t }));\n\t }); // Assemble table content\n\t\n\t var lines = [headers.join(ITEM_SPLITER)];\n\t\n\t for (var i = 0; i < columns[0].length; i++) {\n\t var items = [];\n\t\n\t for (var j = 0; j < columns.length; j++) {\n\t items.push(columns[j][i]);\n\t }\n\t\n\t lines.push(items.join(ITEM_SPLITER));\n\t }\n\t\n\t tables.push(lines.join('\\n'));\n\t });\n\t return tables.join('\\n\\n' + BLOCK_SPLITER + '\\n\\n');\n\t }", "function groupTicks(d) {\n var k = (d.endAngle - d.startAngle)/ (d.value );\n return d3.range(0, d.value, 1).map(function(v, i) {\n return {\n angle: v * k + d.startAngle,\n label: i % 1 ? null : v \n };\n });\n}", "function groupTicks(d, step) {\r\n\t\t var k = (d.endAngle - d.startAngle) / d.value;\r\n\t\t return d3.range(0, d.value, step).map(function(value) {\r\n\t\t\treturn {value: value, angle: value * k + d.startAngle};\r\n\t\t });\r\n\t\t}", "transform() {\n let xaxis = [];\n const xaxisIndex = 0;\n for (let row of this.raw) {\n xaxis.push(row[xaxisIndex]);\n }\n xaxis.shift();\n console.log(`Horizontal axis: ${xaxis}`);\n \n let series = [];\n /* series is an array storing the data series to be rendered.\n * Each element of an array is an object: { seriesName: 'SERIES NAME', data: [ numbers of the series ] }\n */\n let seriesIndex = [];\n \n // Find indices from series name, store them into seriesIndex[]\n if (Array.isArray(this.selected))\n this.selected.map( (seriesName) => seriesIndex.push(this.header.indexOf(seriesName) + 1));\n // +1? this.header has the first element stripped. As we will use this index to retrieve the data in this.raw, we need to add back 1.\n else\n seriesIndex.push(this.header.indexOf(this.selected) + 1);\n \n // Extract data from raw, store them into series[]\n seriesIndex.map ( (seriesI) => {\n series.push({ seriesName: this.header[seriesI - 1], data: [] }); // -1 to retrieve series name from this.header\n if (!this.activeChartDefinition.scatterTransform) {\n // Extract data for general charts\n this.raw.map( (row) => {\n series[series.length - 1].data.push(row[seriesI]);\n })\n }\n else {\n // Extract data for scatter charts\n this.raw.map( (row, i) => {\n series[series.length - 1].data.push({ x: xaxis[i - 1], y: row[seriesI] })\n })\n }\n series[series.length - 1].data.shift();\n } );\n \n console.log(series);\n \n return { xaxis, series };\n }", "function groupTicks(d) {\n var k = (d.endAngle - d.startAngle) / d.value;\n return d3.range(0, d.value, 1000).map(function(v, i) {\n return {\n angle: v * k + d.startAngle,\n label: d.value\n };\n });\n }", "getSeriesDomain() {\n return this.nodes\n .map(d => this.groupResultsBy(d))\n .reduce((nodes, node) => (nodes.indexOf(node) !== -1 ? nodes : nodes.concat([node])), [])\n .sort();\n }", "function groupTicks(d, step) {\n var k = (d.endAngle - d.startAngle) / d.value;\n return d3.range(0, d.value, step).map(function(value) {\n return {value: value, angle: value * k + d.startAngle};\n });\n }", "function groupTicks(d, step) {\n\t var k = (d.endAngle - d.startAngle) / d.value;\n\t return d4.range(0, d.value, step).map(function(value) {\n\t return {value: value, angle: value * k + d.startAngle};\n\t });\n\t}", "function groupTicks(d, step) {\n var k = (d.endAngle - d.startAngle) / d.value;\n return d3.range(0, d.value, step).map(function(value) {\n return {value: value, angle: value * k + d.startAngle};\n });\n}", "function groupTicks(d, step) {\n var k = (d.endAngle - d.startAngle) / d.value;\n return d3.range(0, d.value, step).map(function(value) {\n return {value: value, angle: value * k + d.startAngle};\n });\n}", "function groupTicks(d, step) {\n var k = (d.endAngle - d.startAngle) / d.value;\n return d3.range(0, d.value, step).map(function(value) {\n return {value: value, angle: value * k + d.startAngle};\n });\n}", "function groupTicks(d, step) {\n var k = (d.endAngle - d.startAngle) / d.value;\n return d3.range(0, d.value, step).map(function(value) {\n return {value: value, angle: value * k + d.startAngle};\n });\n}", "function groupTicks(d) {\n var width = d.endAngle - d.startAngle\n var offset = 0//width / 2\n return [{\n angle: d.endAngle - offset,\n label: d.value > 0 ? authorIndex[d.index] : \"\"\n }];\n }", "function groupTicks(d) {\n var k = (d.endAngle - d.startAngle) / d.value;\n return d3.range(0, d.value, 10).map(function(v, i) {\n return {\n angle: v * k + d.startAngle,\n label: i % 5 ? null : v\n };\n });\n}//groupTicks", "function assembleSeriesWithCategoryAxis(groups) {\n var tables = [];\n util[\"k\" /* each */](groups, function (group, key) {\n var categoryAxis = group.categoryAxis;\n var valueAxis = group.valueAxis;\n var valueAxisDim = valueAxis.dim;\n var headers = [' '].concat(util[\"H\" /* map */](group.series, function (series) {\n return series.name;\n })); // @ts-ignore TODO Polar\n\n var columns = [categoryAxis.model.getCategories()];\n util[\"k\" /* each */](group.series, function (series) {\n var rawData = series.getRawData();\n columns.push(series.getRawData().mapArray(rawData.mapDimension(valueAxisDim), function (val) {\n return val;\n }));\n }); // Assemble table content\n\n var lines = [headers.join(ITEM_SPLITER)];\n\n for (var i = 0; i < columns[0].length; i++) {\n var items = [];\n\n for (var j = 0; j < columns.length; j++) {\n items.push(columns[j][i]);\n }\n\n lines.push(items.join(ITEM_SPLITER));\n }\n\n tables.push(lines.join('\\n'));\n });\n return tables.join('\\n\\n' + BLOCK_SPLITER + '\\n\\n');\n}", "function buildContainerGroups() {\n const container = svg\n .append(\"g\")\n .classed(\"container-group\", true)\n .attr(\"transform\", `translate(${margin.left},${margin.top})`);\n\n container.append(\"g\").classed(\"chart-group\", true);\n container.append(\"g\").classed(\"x-axis-group axis\", true);\n container.append(\"g\").classed(\"y-axis-group axis\", true);\n }", "function groupTicks(d) {\n var k = (d.endAngle - d.startAngle) / d.value;\n return d3.range(0, d.value, 1000).map(function(v, i) {\n return {\n angle: v * k + d.startAngle,\n label: i % 5 ? null : v / 1000 + \"k\"\n };\n });\n}", "function groupTicks(d) {\n var k = (d.endAngle - d.startAngle) / d.value;\n return d3.range(0, d.value, 1000).map(function(v, i) {\n return {\n angle: v * k + d.startAngle,\n label: i % 5 ? null : v / 1000 + \"k\"\n };\n });\n}", "function getGroups(group, index, data, seriesNames) {\n const rankings = [];\n data.forEach((el) => {\n const column = {};\n column.pos = +el.pos;\n column.group = group;\n column.prevGroup = seriesNames[index - 1];\n column.nextGroup = seriesNames[index + 1];\n column.item = el[group];\n column.prev = relPositions('prev', el[group], index - 1, data, seriesNames);\n column.next = relPositions('next', el[group], index + 1, data, seriesNames);\n column.status = column.prev - column.pos;\n rankings.push(column);\n });\n return rankings;\n}", "function groupTicks(d) {\n var k = (d.endAngle - d.startAngle) / d.value;\n return d3.range(0, d.value, 1).map(function(v, i) {\n return {\n angle: v * k + d.startAngle,\n label: i % 5 ? null : v + \"%\"\n };\n });\n}", "function parseGroupedInterval() {\n var options = Array.prototype.slice.call(arguments);\n return function (res) {\n var dataset = new Dataset().type('grouped-interval');\n Object(each[\"a\" /* each */])(res.result, function (record, i) {\n var index = options[0] && options[0] === 'timeframe.end' ? record.timeframe.end : record.timeframe.start;\n if (record.value.length) {\n Object(each[\"a\" /* each */])(record.value, function (group, j) {\n var label;\n Object(each[\"a\" /* each */])(group, function (value, key) {\n if (key !== 'result') {\n label = key;\n }\n });\n dataset.set([String(group[label]), index], group.result);\n });\n } else {\n dataset.appendRow(index);\n }\n });\n return dataset;\n };\n}", "function parseGroupedInterval() {\n var options = Array.prototype.slice.call(arguments);\n return function (res) {\n var dataset = new Dataset().type('grouped-interval');\n (0, _each.each)(res.result, function (record, i) {\n var index = options[0] && options[0] === 'timeframe.end' ? record.timeframe.end : record.timeframe.start;\n if (record.value.length) {\n (0, _each.each)(record.value, function (group, j) {\n var label;\n (0, _each.each)(group, function (value, key) {\n if (key !== 'result') {\n label = key;\n }\n });\n dataset.set([String(group[label]), index], group.result);\n });\n } else {\n dataset.appendRow(index);\n }\n });\n return dataset;\n };\n}", "function eachAxis(handler) {\n return [handler(\"x\"), handler(\"y\")];\n}", "function eachAxis(handler) {\n return [handler(\"x\"), handler(\"y\")];\n}", "function eachAxis(handler) {\n return [handler(\"x\"), handler(\"y\")];\n}", "function eachAxis(handler) {\n return [handler(\"x\"), handler(\"y\")];\n}", "function groupTicks(d) {\n var k = (d.endAngle - d.startAngle) / d.value;\n return d3.range(0, d.value, 1000).map(function (v, i) {\n return {\n angle: v * k + d.startAngle,\n //label: i % 5 ? null : v / 1000 + \"k\"\n label: chordData.header[d.index]\n };\n });\n }", "function groupBy(interval, groupByCallback, datapoints) {\n var ms_interval = utils.parseInterval(interval);\n\n // Calculate frame timestamps\n var frames = _.groupBy(datapoints, function(point) {\n // Calculate time for group of points\n return Math.floor(point[1] / ms_interval) * ms_interval;\n });\n\n // frame: { '<unixtime>': [[<value>, <unixtime>], ...] }\n // return [{ '<unixtime>': <value> }, { '<unixtime>': <value> }, ...]\n var grouped = _.mapValues(frames, function(frame) {\n var points = _.map(frame, function(point) {\n return point[0];\n });\n return groupByCallback(points);\n });\n\n // Convert points to Grafana format\n return sortByTime(_.map(grouped, function(value, timestamp) {\n return [Number(value), Number(timestamp)];\n }));\n}", "function group_on(field, data_type, headings, data, options) {\n var index = index_wanted(field, headings)\n , date_labels = []\n , grouped = {}\n , grouped_array = [[field,\"Count\"]]\n , msg\n , max = 50;\n var options = options || init_options(field, data_type);\n data.forEach(function(row) {\n var val = row.c[index].f || row.c[index].v;\n if(!grouped[val]) { grouped[val] = 0}\n grouped[val]++;\n });\n $.each(grouped, function(heading, count) {\n grouped_array.push([heading, count]);\n });\n var graph_div = 'graph-div-' + index;\n var graph_holder = 'holder-' + graph_div;\n var graph_type = date_labels.indexOf(field) !== -1 ? 'LineChart' : 'ColumnChart';\n var how_many = grouped_array.length - 1;\n if(how_many > max && graph_type === 'ColumnChart') {\n msg = '<p>' + field + ' (' + how_many + ')</p>';\n }\n else {\n $('#open-nc-widget').append('<div id=\"' + graph_holder + '\" class=\"dd-graphs\"></div>');\n $('#' + graph_holder).append('<div id=\"' + graph_div + '\" class=\"dd-graph-div\"></div>');\n graph_configs[graph_div] = {'data': grouped_array, 'options': options, 'graph_type': graph_type};\n show_graph(graph_configs[graph_div],graph_div);\n $('#' + graph_holder).prepend('<button class=\"btn btn-default graph-option\" data-which=\"' + graph_div + '\">Customize</button>');\n }\n return {'data': grouped_array, 'msg': msg, 'div': graph_div};\n }", "function parseGroupedInterval(){\n var options = Array.prototype.slice.call(arguments);\n return function(res){\n var dataset = new Dataset();\n each(res.result, function(record, i){\n var index = options[0] && options[0] === 'timeframe.end' ? record.timeframe.end : record.timeframe.start;\n if (record.value.length) {\n each(record.value, function(group, j){\n var label;\n each(group, function(value, key){\n if (key !== 'result') {\n label = key;\n }\n });\n dataset.set([ String(group[label]) || '', index ], group.result);\n });\n }\n else {\n dataset.appendRow(index);\n }\n });\n dataset.data.input = res;\n dataset.parser = {\n name: 'grouped-interval',\n options: options\n };\n return dataset;\n }\n}", "function buildContainerGroups() {\n let container = svg\n .append('g')\n .classed('container-group', true)\n .attr('transform', `translate(${margin.left + yAxisPaddingBetweenChart}, ${margin.top-2})`);\n\n container\n .append('g').classed('grid-lines-group', true);\n\n container\n .append('g').classed('chart-group', true);\n\n // labels on the bottom\n container\n .append('g').classed('x-axis-group axis', true);\n\n // this is the labels on the left, and the line\n container\n .append('g')\n .attr('transform', `translate(${-1 * (yAxisPaddingBetweenChart)}, 0)`)\n .classed('y-axis-group axis', true);\n\n\n // the tooltip and also labels on the right\n container\n .append('g').classed('metadata-group', true);\n }", "function buildMultipleAxes() {\n if (multipleAxes && !horizontal && !stack && seriesData.length > 1) {\n stackLayout.yaxis = [];\n\n seriesData.forEach((row, index) => {\n if (index != 0) {\n if (!settings[`seriesAxis_${index}`]) {\n changed = true;\n settings[`seriesAxis_${index}`] = {\n label: `Set ${row.name} on the second axis`,\n order: 10 + index,\n section: `Multiple Axes`,\n type: `boolean`,\n default: false,\n hidden: false\n };\n }\n }\n });\n\n // Apply the config settings to the chart\n let nameA = seriesData[0].name;\n let nameB = seriesData[1].name;\n let passShow = false;\n seriesData.forEach((row, index) => {\n let sTitle = row.name;\n let seriesName = nameA;\n let axisOrientation = false;\n let show = false;\n\n if (config[`seriesAxis_${index}`] == true) {\n seriesName = nameB;\n axisOrientation = true;\n if (config.yTitle2 != ``) sTitle = yTitle2;\n } else {\n seriesName = nameA;\n axisOrientation = false;\n if (config.yTitle != ``) sTitle = yTitle;\n }\n\n // Configuration to show the axes\n if (index == 0) show = true;\n if (config[`seriesAxis_${index}`] && passShow == false) {\n passShow = true;\n show = true;\n }\n\n let obj = {\n seriesName: seriesName,\n opposite: axisOrientation,\n show: show,\n name: row.name,\n labels: {\n formatter: function(val) {\n if (typeof val == `number` && !horizontal)\n return formatAxes(val, row.value_format);\n else return val;\n }\n }\n };\n\n // Axis based label\n if (seriesName == nameA) {\n if (showTitleY) obj[`title`] = { text: sTitle };\n }\n if (seriesName == nameB) {\n if (showSecondTitleY) obj[`title`] = { text: sTitle };\n }\n\n console.log(`iteration: ${index} object`, obj);\n stackLayout.yaxis.push(obj);\n });\n }\n }", "function groupSegsByDay(segs) {\n var segsByDay = []; // sparse array\n var i;\n var seg;\n for (i = 0; i < segs.length; i += 1) {\n seg = segs[i];\n (segsByDay[seg.dayIndex] || (segsByDay[seg.dayIndex] = []))\n .push(seg);\n }\n return segsByDay;\n }", "function calculateScales(keepAxis) {\n //get min and max values\n maxTaskLength = d3.max(diagram.data, function (d) { return d[currentSerie.sourceField].toString().length; });\n tasks = e.getUniqueValues(diagram.data, currentSerie.sourceField);\n groups = e.getUniqueValues(diagram.data, currentSerie.groupField);\n\n //set domain info\n timeDomainStart = d3.min(diagram.data, function (d) { return new Date(d[startDateField]); });\n timeDomainEnd = d3.max(diagram.data, function (d) { return new Date(d[endDateField]); });\n dateDiff = timeDomainEnd.diff(timeDomainStart);\n\n //set axis formatting via date diff\n if (dateDiff > 365) {\n //set axis formatting\n axisFormatting = d3.utcFormat('%e-%b-%Y');\n } else {\n if (dateDiff < 1) {\n //set axis formatting\n axisFormatting = d3.utcFormat('%X');\n } else {\n //set axis formatting\n axisFormatting = d3.utcFormat('%b-%e');\n }\n }\n\n //calculate margins\n autoMargin = ((diagram.yAxis.labelFontSize / 2) * (maxTaskLength + 1)) + diagram.yAxis.labelFontSize;\n margin.left = diagram.margin.left + autoMargin;\n margin.right = diagram.margin.right;\n margin.top = diagram.margin.top;\n margin.bottom = diagram.margin.bottom;\n\n //set dimension\n width = diagram.plot.width - diagram.plot.left - diagram.plot.right - margin.left - margin.right;\n height = diagram.plot.height - diagram.plot.top - diagram.plot.bottom - margin.top - margin.bottom;\n\n //caclulate tick count\n maxAxisLength = axisFormatting(timeDomainEnd).length;\n singleAxisWidth = (((diagram.xAxis.labelFontSize / 2) * (maxAxisLength)) + diagram.xAxis.labelFontSize);\n autoTickCount = Math.floor(width / singleAxisWidth);\n\n //create scales\n xScale = d3.scaleUtc().domain([timeDomainStart, timeDomainEnd]).range([0, width]).clamp(true);\n yScale = d3.scaleBand().domain(tasks).range([height - margin.top - margin.bottom, 0]).padding(0.1);\n\n //create axes\n xAxis = d3.axisBottom().scale(xScale).ticks(autoTickCount / 2).tickFormat(axisFormatting);\n yAxis = d3.axisLeft().scale(yScale).tickSize(0);\n\n if (currentSerie.labelFontSize === 'auto')\n currentSerie.labelFontSize = 11;\n }", "function groupAll() {\n\n // reducing does nothing because currently we can't choose how the database will aggregate data\n var groupAllObj = {\n reduce: function () { return groupAllObj; },\n reduceCount: function () { return groupAllObj; },\n reduceSum: function () { return groupAllObj; },\n dispose: function () {},\n value: function () { return getData(dimensionName, false)[0].value; }\n };\n\n return groupAllObj;\n }", "function goGrouped() {\n yscale.domain([0, yGroupedMax]);\n rects.transition()\n .duration(1000)\n .delay(function (d, i) { return i * 20; })\n .attr(\"x\", function (d, i, j) { return xscale(i) + xscale.rangeBand() / stackedData.length * j; })\n .attr(\"width\", xscale.rangeBand() / stackedData.length)\n .transition()\n .attr(\"y\", function (d) { return yscale(d.y); })\n .attr(\"height\", function (d) { return chartHeight - yscale(d.y); });\n gridLines.data(yscale.ticks(10)).transition()\n .duration(1000)\n .delay(function (d, i) { return i * 20; })\n .attr(\"y1\", yscale)\n .attr(\"y2\", yscale);\n gridLabels.data(yscale.ticks(10)).transition()\n .duration(1000)\n .delay(function (d, i) { return i * 20; })\n .attr(\"y\", yscale)\n .text(String);\n}", "function groupCharts (chartData, groups) {\n let groupData = groups.map(g => {\n // indicatorId is a string, referencing chart IDs to be grouped, separated\n // by a '|'\n let chartsToGroup = g['indicatorId'].split('|')\n\n let groupData = chartsToGroup\n .map(groupInd => chartData.find(c => c.id === groupInd))\n\n return {\n 'id': g.id,\n 'description': g.description,\n 'data': groupData\n }\n })\n\n // Remove the original charts that were added to a group\n let groupedCharts = groups\n .map(g => g['indicatorId'].split('|'))\n .reduce((a, b) => a.concat(b))\n\n return chartData\n .concat(groupData)\n .filter(c => groupedCharts.indexOf(c.id) === -1)\n}", "function getGroupedValuations() {\r\n var groupedMeasures = {};\r\n var groupName, escGroupName, topGroup;\r\n var MeasureInfoSet = getMeasuresFromCampaign(cClient);\r\n for (var i = 0; i < MeasureInfoSet.length; i++) {\r\n topGroup = MeasureInfoSet[i].pinned ? \"Pinned\" : \"UnPinned\";\r\n groupName = MeasureInfoSet[i].group === \"\" ? \"_\" : MeasureInfoSet[i].group;\r\n escGroupName = groupName.replace(' ', '_');\r\n\r\n if (groupedMeasures[topGroup] === undefined) {\r\n groupedMeasures[topGroup] = {};\r\n }\r\n\r\n if (groupedMeasures[topGroup][escGroupName] === undefined) {\r\n groupedMeasures[topGroup][escGroupName] = { Name: groupName, Measures: new Array };\r\n }\r\n\r\n groupedMeasures[topGroup][escGroupName].Measures.push({\r\n MeasureName: getMeasureDisplayName(MeasureInfoSet[i].measureId),\r\n MeasureId: MeasureInfoSet[i].measureId,\r\n Valuation: getMeasureValuation(MeasureInfoSet[i].measureId)\r\n });\r\n }\r\n return groupedMeasures;\r\n}", "getCurrentGroupOrderInDOM() {\n const getGroupKeyFromElement = (el) => {\n const allGroups = Object.keys(this.groups);\n let i = allGroups.length;\n while (i--) {\n const groupKey = allGroups[i];\n const group = this.groups[groupKey];\n if (group && el === group.groupElement) {\n return groupKey;\n }\n }\n };\n const getChildrenGroupOrder = (el) => {\n const childrenOrder = [];\n const children = el.children;\n for (let i = 0; i < children.length; ++i) {\n const groupKey = getGroupKeyFromElement(children[i]);\n if (groupKey) {\n childrenOrder.push(groupKey);\n }\n }\n return childrenOrder;\n };\n const before = getChildrenGroupOrder(this.beforeChartProxyPosContainer);\n const after = getChildrenGroupOrder(this.afterChartProxyPosContainer);\n before.push('series');\n return before.concat(after);\n }", "function appendXAxis(paddingGroup, scales, plot) {\n const xAxis = d3.axisBottom().scale(scales.x);\n paddingGroup.append('g')\n .attr('transform', 'translate(0,' + plot.range.y + ')')\n .attr('class', 'xAxis')\n .call(xAxis);\n }", "function scatterData (data, xaxis)\t{\n\t\tvar result = [];\n\n\t\tbio.iteration.loop(data, function (d)\t{\n\t\t\tbio.iteration.loop(d, function (key, value)\t{\n\t\t\t\tif (xaxis.indexOf(key) > -1)\t{\n\t\t\t\t\tresult.push({ x: key, y: value.months, value: value.status });\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\treturn result;\n\t}", "function groupByDate2(arr) {\n let grouped = {}; let yearMonth;\n for (let element of arr) {\n yearMonth = Object.keys(element)[0];\n if (!(yearMonth in grouped)) {\n grouped[yearMonth] = {\n [element[yearMonth].Category.category.toUpperCase().replace('.PNG', '')]: parseInt(element[yearMonth].sum),\n }\n } else {\n grouped[yearMonth] = {\n ...grouped[yearMonth],\n [element[yearMonth].Category.category.toUpperCase().replace('.PNG', '')]: parseInt(element[yearMonth].sum),\n }\n }\n }\n return grouped;\n}", "function namedSeriesMetaData(groups, dataApi) {\n var whens = [];\n\n groups.forEach(function(group) {\n var groupWhens = [];\n\n if (group.series == undefined) group.series = [];\n\n if (group.named) {\n var futureSeries = fetchNamedSeries(dataApi, group.named).then(function(seriesArray) {\n if (seriesArray) {\n group.series = group.series.concat(seriesArray);\n }\n });\n groupWhens.push(futureSeries);\n }\n\n if (group.plot && group.plot.named) {\n var futureSeries = fetchNamedSeries(group.plot.named).then(function(seriesArray) {\n group.plot.series = seriesArray;\n group.series = group.series.concat(seriesArray);\n });\n groupWhens.push(futureSeries);\n }\n\n whens = whens.concat(groupWhens);\n });\n\n return when.all(whens);\n }", "get axes() {\n if (this._axes === null) {\n let coll = new IgrAxisCollection();\n let inner = coll._innerColl;\n inner.addListener((sender, e) => {\n switch (e.action) {\n case NotifyCollectionChangedAction.Add:\n this._axesAdapter.insertManualItem(e.newStartingIndex, e.newItems.item(0));\n break;\n case NotifyCollectionChangedAction.Remove:\n this._axesAdapter.removeManualItemAt(e.oldStartingIndex);\n break;\n case NotifyCollectionChangedAction.Replace:\n this._axesAdapter.removeManualItemAt(e.oldStartingIndex);\n this._axesAdapter.insertManualItem(e.newStartingIndex, e.newItems.item(0));\n break;\n case NotifyCollectionChangedAction.Reset:\n this._axesAdapter.clearManualItems();\n break;\n }\n });\n this._axes = coll;\n }\n return this._axes;\n }", "function groupValues(values) {\n var groups = [], currentGroup;\n for (var i = 0, len = values.length; i < len; i++) {\n var value = values[i];\n if (!currentGroup || currentGroup.identity !== value.identity) {\n currentGroup = {\n values: []\n };\n if (value.identity) {\n currentGroup.identity = value.identity;\n var source = value.source;\n // allow null, which will be formatted as (Blank).\n if (source.groupName !== undefined) {\n currentGroup.name = source.groupName;\n }\n else if (source.displayName) {\n currentGroup.name = source.displayName;\n }\n }\n groups.push(currentGroup);\n }\n currentGroup.values.push(value);\n }\n return groups;\n }", "function attachSideAxes(groups, transition, plotSize, paddedPlotSize, chartMargin) {\n var axisGroups = groups.filter(function(group) {if (group.axis) return true; });\n axisGroups.forEach(function(group) {\n var groupAxis = attachByClass(\"g\", transition, \"group-axis\");\n\n var axisGroup = {\n label: group.label,\n colors: group.colors,\n orient: group.orient,\n series: group.series,\n zeroLock: group.zeroLock,\n chartMargin: deepClone(chartMargin),\n plotSize: plotSize.slice(0),\n paddedPlotSize: paddedPlotSize.slice(0)\n };\n\n var selection = d3.select(groupAxis.node());\n selection.data([axisGroup]);\n\n groupAxis\n .call(group.axis);\n });\n }", "function onSeriesBindAxes() {\n var axisTypes = this.axisTypes;\n if (!axisTypes) {\n this.axisTypes = ['colorAxis'];\n }\n else if (axisTypes.indexOf('colorAxis') === -1) {\n axisTypes.push('colorAxis');\n }\n }", "function makeSeriesEncodeForAxisCoordSys(coordDimensions, seriesModel, source) {\n\t var encode = {};\n\t var datasetModel = querySeriesUpstreamDatasetModel(seriesModel); // Currently only make default when using dataset, util more reqirements occur.\n\t\n\t if (!datasetModel || !coordDimensions) {\n\t return encode;\n\t }\n\t\n\t var encodeItemName = [];\n\t var encodeSeriesName = [];\n\t var ecModel = seriesModel.ecModel;\n\t var datasetMap = innerGlobalModel(ecModel).datasetMap;\n\t var key = datasetModel.uid + '_' + source.seriesLayoutBy;\n\t var baseCategoryDimIndex;\n\t var categoryWayValueDimStart;\n\t coordDimensions = coordDimensions.slice();\n\t each(coordDimensions, function (coordDimInfoLoose, coordDimIdx) {\n\t var coordDimInfo = isObject(coordDimInfoLoose) ? coordDimInfoLoose : coordDimensions[coordDimIdx] = {\n\t name: coordDimInfoLoose\n\t };\n\t\n\t if (coordDimInfo.type === 'ordinal' && baseCategoryDimIndex == null) {\n\t baseCategoryDimIndex = coordDimIdx;\n\t categoryWayValueDimStart = getDataDimCountOnCoordDim(coordDimInfo);\n\t }\n\t\n\t encode[coordDimInfo.name] = [];\n\t });\n\t var datasetRecord = datasetMap.get(key) || datasetMap.set(key, {\n\t categoryWayDim: categoryWayValueDimStart,\n\t valueWayDim: 0\n\t }); // TODO\n\t // Auto detect first time axis and do arrangement.\n\t\n\t each(coordDimensions, function (coordDimInfo, coordDimIdx) {\n\t var coordDimName = coordDimInfo.name;\n\t var count = getDataDimCountOnCoordDim(coordDimInfo); // In value way.\n\t\n\t if (baseCategoryDimIndex == null) {\n\t var start = datasetRecord.valueWayDim;\n\t pushDim(encode[coordDimName], start, count);\n\t pushDim(encodeSeriesName, start, count);\n\t datasetRecord.valueWayDim += count; // ??? TODO give a better default series name rule?\n\t // especially when encode x y specified.\n\t // consider: when mutiple series share one dimension\n\t // category axis, series name should better use\n\t // the other dimsion name. On the other hand, use\n\t // both dimensions name.\n\t } // In category way, the first category axis.\n\t else if (baseCategoryDimIndex === coordDimIdx) {\n\t pushDim(encode[coordDimName], 0, count);\n\t pushDim(encodeItemName, 0, count);\n\t } // In category way, the other axis.\n\t else {\n\t var start = datasetRecord.categoryWayDim;\n\t pushDim(encode[coordDimName], start, count);\n\t pushDim(encodeSeriesName, start, count);\n\t datasetRecord.categoryWayDim += count;\n\t }\n\t });\n\t\n\t function pushDim(dimIdxArr, idxFrom, idxCount) {\n\t for (var i = 0; i < idxCount; i++) {\n\t dimIdxArr.push(idxFrom + i);\n\t }\n\t }\n\t\n\t function getDataDimCountOnCoordDim(coordDimInfo) {\n\t var dimsDef = coordDimInfo.dimsDef;\n\t return dimsDef ? dimsDef.length : 1;\n\t }\n\t\n\t encodeItemName.length && (encode.itemName = encodeItemName);\n\t encodeSeriesName.length && (encode.seriesName = encodeSeriesName);\n\t return encode;\n\t }", "assembleGroup(signals = []) {\n const group = {};\n signals = signals.concat(this.assembleSignals());\n if (signals.length > 0) {\n group.signals = signals;\n }\n const layout = this.assembleLayout();\n if (layout) {\n group.layout = layout;\n }\n group.marks = [].concat(this.assembleHeaderMarks(), this.assembleMarks());\n // Only include scales if this spec is top-level or if parent is facet.\n // (Otherwise, it will be merged with upper-level's scope.)\n const scales = !this.parent || isFacetModel(this.parent) ? assembleScales(this) : [];\n if (scales.length > 0) {\n group.scales = scales;\n }\n const axes = this.assembleAxes();\n if (axes.length > 0) {\n group.axes = axes;\n }\n const legends = this.assembleLegends();\n if (legends.length > 0) {\n group.legends = legends;\n }\n return group;\n }", "function setScatterAxisData(data, axis, _vars) {\r\n //declare vars\r\n var axisData = [],\r\n chartData = data.chartData,\r\n scatterLabel = data.dataTable[axis],\r\n min = scatterLabel ? chartData[0][scatterLabel] : 0,\r\n max = scatterLabel ? chartData[0][scatterLabel] : 0,\r\n dataType;\r\n \r\n for (var j = 0; j < data.dataTableKeys.length; j++) {\r\n if (data.dataTableKeys[j].vizType === axis) {\r\n dataType = data.dataTableKeys[j].type;\r\n break;\r\n }\r\n }\r\n //loop over data to find max and min\r\n //also determines the y axis total if the data is stacked\r\n for (var i = 1; i < chartData.length; i++) {\r\n if (chartData[i].hasOwnProperty(scatterLabel)) {\r\n var num = chartData[i][scatterLabel];\r\n if (!isNaN(num)) {\r\n num = parseFloat(num);\r\n if (num > max) {\r\n max = num;\r\n } else if (num < min) {\r\n min = num;\r\n }\r\n }\r\n }\r\n }\r\n if (axis !== 'z') {\r\n min *= 0.9;\r\n max *= 1.1;\r\n }\r\n\r\n if (_vars.yMin && !isNaN(_vars.yMin) && axis === 'y') {\r\n min = _vars.yMin;\r\n }\r\n if (_vars.yMax && !isNaN(_vars.yMax) && axis === 'y') {\r\n max = _vars.yMax;\r\n }\r\n if (_vars.xMin && !isNaN(_vars.xMin) && axis === 'x') {\r\n min = _vars.xMin;\r\n }\r\n if (_vars.xMax && !isNaN(_vars.xMax) && axis === 'x') {\r\n max = _vars.xMax;\r\n }\r\n\r\n axisData.push(min);\r\n axisData.push(max);\r\n return {\r\n 'label': scatterLabel,\r\n 'values': axisData,\r\n 'dataType': 'NUMBER',\r\n 'min': min,\r\n 'max': max\r\n };\r\n}", "generateGroupVisData(bounds){\n var groupPlotData = [];\n var v = 1;\n \n for(var i=0;i<bounds.length;++i){\n // data.push({ x: Math.log(bounds[i]), y: v});\n groupPlotData.push({ x: bounds[i], y: v});\n groupPlotData.push({ x: bounds[i]*(1+1e-15), y: -v});\n v = -v;\n }\n return groupPlotData;\n }", "function assembleOtherSeries(series) {\n\t return map(series, function (series) {\n\t var data = series.getRawData();\n\t var lines = [series.name];\n\t var vals = [];\n\t data.each(data.dimensions, function () {\n\t var argLen = arguments.length;\n\t var dataIndex = arguments[argLen - 1];\n\t var name = data.getName(dataIndex);\n\t\n\t for (var i = 0; i < argLen - 1; i++) {\n\t vals[i] = arguments[i];\n\t }\n\t\n\t lines.push((name ? name + ITEM_SPLITER : '') + vals.join(ITEM_SPLITER));\n\t });\n\t return lines.join('\\n');\n\t }).join('\\n\\n' + BLOCK_SPLITER + '\\n\\n');\n\t }", "function attachSeriesPlots(container, groups, defaultPlotter) {\n var groupedInfos = groups.map(function(group) {\n var infos = group.series.map(function(series) {\n var plotter = plotterForSeries(series, group, defaultPlotter);\n if (plotter.groupPlotter) return undefined; // prefer the group level plotter if specified\n return {data: series, component:plotter}; \n });\n var filtered = infos.filter(function(info) {return info !== undefined;});\n return filtered;\n });\n\n var componentInfo = d3.merge(groupedInfos);\n\n bindComponents(container, componentInfo, \"series\");\n }", "function layoutSingleSeries(seriesModel, offset, boxWidth) {\n var coordSys = seriesModel.coordinateSystem;\n var data = seriesModel.getData();\n var halfWidth = boxWidth / 2;\n var cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1;\n var vDimIdx = 1 - cDimIdx;\n var coordDims = ['x', 'y'];\n var cDim = data.mapDimension(coordDims[cDimIdx]);\n var vDims = data.mapDimensionsAll(coordDims[vDimIdx]);\n\n if (cDim == null || vDims.length < 5) {\n return;\n }\n\n for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n var axisDimVal = data.get(cDim, dataIndex);\n var median = getPoint(axisDimVal, vDims[2], dataIndex);\n var end1 = getPoint(axisDimVal, vDims[0], dataIndex);\n var end2 = getPoint(axisDimVal, vDims[1], dataIndex);\n var end4 = getPoint(axisDimVal, vDims[3], dataIndex);\n var end5 = getPoint(axisDimVal, vDims[4], dataIndex);\n var ends = [];\n addBodyEnd(ends, end2, false);\n addBodyEnd(ends, end4, true);\n ends.push(end1, end2, end5, end4);\n layEndLine(ends, end1);\n layEndLine(ends, end5);\n layEndLine(ends, median);\n data.setItemLayout(dataIndex, {\n initBaseline: median[vDimIdx],\n ends: ends\n });\n }\n\n function getPoint(axisDimVal, dim, dataIndex) {\n var val = data.get(dim, dataIndex);\n var p = [];\n p[cDimIdx] = axisDimVal;\n p[vDimIdx] = val;\n var point;\n\n if (isNaN(axisDimVal) || isNaN(val)) {\n point = [NaN, NaN];\n } else {\n point = coordSys.dataToPoint(p);\n point[cDimIdx] += offset;\n }\n\n return point;\n }\n\n function addBodyEnd(ends, point, start) {\n var point1 = point.slice();\n var point2 = point.slice();\n point1[cDimIdx] += halfWidth;\n point2[cDimIdx] -= halfWidth;\n start ? ends.push(point1, point2) : ends.push(point2, point1);\n }\n\n function layEndLine(ends, endCenter) {\n var from = endCenter.slice();\n var to = endCenter.slice();\n from[cDimIdx] -= halfWidth;\n to[cDimIdx] += halfWidth;\n ends.push(from, to);\n }\n}", "function layoutSingleSeries(seriesModel, offset, boxWidth) {\n var coordSys = seriesModel.coordinateSystem;\n var data = seriesModel.getData();\n var halfWidth = boxWidth / 2;\n var cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1;\n var vDimIdx = 1 - cDimIdx;\n var coordDims = ['x', 'y'];\n var cDim = data.mapDimension(coordDims[cDimIdx]);\n var vDims = data.mapDimension(coordDims[vDimIdx], true);\n\n if (cDim == null || vDims.length < 5) {\n return;\n }\n\n for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n var axisDimVal = data.get(cDim, dataIndex);\n var median = getPoint(axisDimVal, vDims[2], dataIndex);\n var end1 = getPoint(axisDimVal, vDims[0], dataIndex);\n var end2 = getPoint(axisDimVal, vDims[1], dataIndex);\n var end4 = getPoint(axisDimVal, vDims[3], dataIndex);\n var end5 = getPoint(axisDimVal, vDims[4], dataIndex);\n var ends = [];\n addBodyEnd(ends, end2, 0);\n addBodyEnd(ends, end4, 1);\n ends.push(end1, end2, end5, end4);\n layEndLine(ends, end1);\n layEndLine(ends, end5);\n layEndLine(ends, median);\n data.setItemLayout(dataIndex, {\n initBaseline: median[vDimIdx],\n ends: ends\n });\n }\n\n function getPoint(axisDimVal, dimIdx, dataIndex) {\n var val = data.get(dimIdx, dataIndex);\n var p = [];\n p[cDimIdx] = axisDimVal;\n p[vDimIdx] = val;\n var point;\n\n if (isNaN(axisDimVal) || isNaN(val)) {\n point = [NaN, NaN];\n } else {\n point = coordSys.dataToPoint(p);\n point[cDimIdx] += offset;\n }\n\n return point;\n }\n\n function addBodyEnd(ends, point, start) {\n var point1 = point.slice();\n var point2 = point.slice();\n point1[cDimIdx] += halfWidth;\n point2[cDimIdx] -= halfWidth;\n start ? ends.push(point1, point2) : ends.push(point2, point1);\n }\n\n function layEndLine(ends, endCenter) {\n var from = endCenter.slice();\n var to = endCenter.slice();\n from[cDimIdx] -= halfWidth;\n to[cDimIdx] += halfWidth;\n ends.push(from, to);\n }\n}", "function layoutSingleSeries(seriesModel, offset, boxWidth) {\n var coordSys = seriesModel.coordinateSystem;\n var data = seriesModel.getData();\n var halfWidth = boxWidth / 2;\n var cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1;\n var vDimIdx = 1 - cDimIdx;\n var coordDims = ['x', 'y'];\n var cDim = data.mapDimension(coordDims[cDimIdx]);\n var vDims = data.mapDimension(coordDims[vDimIdx], true);\n\n if (cDim == null || vDims.length < 5) {\n return;\n }\n\n for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n var axisDimVal = data.get(cDim, dataIndex);\n var median = getPoint(axisDimVal, vDims[2], dataIndex);\n var end1 = getPoint(axisDimVal, vDims[0], dataIndex);\n var end2 = getPoint(axisDimVal, vDims[1], dataIndex);\n var end4 = getPoint(axisDimVal, vDims[3], dataIndex);\n var end5 = getPoint(axisDimVal, vDims[4], dataIndex);\n var ends = [];\n addBodyEnd(ends, end2, 0);\n addBodyEnd(ends, end4, 1);\n ends.push(end1, end2, end5, end4);\n layEndLine(ends, end1);\n layEndLine(ends, end5);\n layEndLine(ends, median);\n data.setItemLayout(dataIndex, {\n initBaseline: median[vDimIdx],\n ends: ends\n });\n }\n\n function getPoint(axisDimVal, dimIdx, dataIndex) {\n var val = data.get(dimIdx, dataIndex);\n var p = [];\n p[cDimIdx] = axisDimVal;\n p[vDimIdx] = val;\n var point;\n\n if (isNaN(axisDimVal) || isNaN(val)) {\n point = [NaN, NaN];\n } else {\n point = coordSys.dataToPoint(p);\n point[cDimIdx] += offset;\n }\n\n return point;\n }\n\n function addBodyEnd(ends, point, start) {\n var point1 = point.slice();\n var point2 = point.slice();\n point1[cDimIdx] += halfWidth;\n point2[cDimIdx] -= halfWidth;\n start ? ends.push(point1, point2) : ends.push(point2, point1);\n }\n\n function layEndLine(ends, endCenter) {\n var from = endCenter.slice();\n var to = endCenter.slice();\n from[cDimIdx] -= halfWidth;\n to[cDimIdx] += halfWidth;\n ends.push(from, to);\n }\n}", "function layoutSingleSeries(seriesModel, offset, boxWidth) {\n var coordSys = seriesModel.coordinateSystem;\n var data = seriesModel.getData();\n var halfWidth = boxWidth / 2;\n var cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1;\n var vDimIdx = 1 - cDimIdx;\n var coordDims = ['x', 'y'];\n var cDim = data.mapDimension(coordDims[cDimIdx]);\n var vDims = data.mapDimension(coordDims[vDimIdx], true);\n\n if (cDim == null || vDims.length < 5) {\n return;\n }\n\n for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n var axisDimVal = data.get(cDim, dataIndex);\n var median = getPoint(axisDimVal, vDims[2], dataIndex);\n var end1 = getPoint(axisDimVal, vDims[0], dataIndex);\n var end2 = getPoint(axisDimVal, vDims[1], dataIndex);\n var end4 = getPoint(axisDimVal, vDims[3], dataIndex);\n var end5 = getPoint(axisDimVal, vDims[4], dataIndex);\n var ends = [];\n addBodyEnd(ends, end2, 0);\n addBodyEnd(ends, end4, 1);\n ends.push(end1, end2, end5, end4);\n layEndLine(ends, end1);\n layEndLine(ends, end5);\n layEndLine(ends, median);\n data.setItemLayout(dataIndex, {\n initBaseline: median[vDimIdx],\n ends: ends\n });\n }\n\n function getPoint(axisDimVal, dimIdx, dataIndex) {\n var val = data.get(dimIdx, dataIndex);\n var p = [];\n p[cDimIdx] = axisDimVal;\n p[vDimIdx] = val;\n var point;\n\n if (isNaN(axisDimVal) || isNaN(val)) {\n point = [NaN, NaN];\n } else {\n point = coordSys.dataToPoint(p);\n point[cDimIdx] += offset;\n }\n\n return point;\n }\n\n function addBodyEnd(ends, point, start) {\n var point1 = point.slice();\n var point2 = point.slice();\n point1[cDimIdx] += halfWidth;\n point2[cDimIdx] -= halfWidth;\n start ? ends.push(point1, point2) : ends.push(point2, point1);\n }\n\n function layEndLine(ends, endCenter) {\n var from = endCenter.slice();\n var to = endCenter.slice();\n from[cDimIdx] -= halfWidth;\n to[cDimIdx] += halfWidth;\n ends.push(from, to);\n }\n}", "function extractSeries(data, axises, xAxis) {\n return axises.map(function (seriesConfig) {\n var columnName = seriesConfig.series;\n var xAxisColumnName = seriesConfig.x && seriesConfig.x.series || xAxis && xAxis.series;\n var xAxisValues = xAxisColumnName ? pluckValues(xAxisColumnName, data.values) : data.index.values;\n return {\n name: columnName,\n data: buildApexSeries(columnName, data.values, xAxisValues),\n };\n });\n}", "_calcLabelTicks(startDate, endDate, groups) {\n let offset = -Math.ceil((new Date().getTimezoneOffset()) / 60);\n // Calculated intervall length\n let unitTime = this._calcBiggestTimeUnitDifference(startDate, endDate);\n let interval = Math.ceil(unitTime.difference / groups);\n let labels = [];\n\n for (let n = 0; n < groups - 1; n++) {\n labels.push(this._formatDate(new Date(unitTime.startDate.getTime() + interval * n), offset) + \"\\n - \\n\" + this._formatDate(new Date(unitTime.startDate.getTime() + interval * (n + 1)), offset));\n }\n labels.push(this._formatDate(new Date(unitTime.startDate.getTime() + interval * (groups - 1)), offset) + \"\\n - \\n\" + this._formatDate(new Date(unitTime.endDate.getTime()), offset));\n\n return {label: labels, interval: interval, startDate: unitTime.startDate, endDate: unitTime.endDate};\n }", "function axis () {\n\n var axis = axis$1(),\n baseline = d3.functor(0),\n decorate = noop,\n xScale = d3.time.scale(),\n yScale = d3.scale.linear();\n\n var dataJoin$$ = dataJoin().selector('g.axis-adapter').element('g').attr({ 'class': 'axis axis-adapter' });\n\n var axisAdapter = function axisAdapter(selection) {\n\n selection.each(function (data, index) {\n\n var g = dataJoin$$(this, [data]);\n\n var translation;\n switch (axisAdapter.orient()) {\n case 'top':\n case 'bottom':\n translation = 'translate(0,' + yScale(baseline(data)) + ')';\n axis.scale(xScale);\n break;\n\n case 'left':\n case 'right':\n translation = 'translate(' + xScale(baseline(data)) + ',0)';\n axis.scale(yScale);\n break;\n\n default:\n throw new Error('Invalid orientation');\n }\n\n g.enter().attr('transform', translation);\n g.attr('transform', translation);\n\n g.call(axis);\n\n decorate(g, data, index);\n });\n };\n\n axisAdapter.baseline = function (x) {\n if (!arguments.length) {\n return baseline;\n }\n baseline = d3.functor(x);\n return axisAdapter;\n };\n axisAdapter.decorate = function (x) {\n if (!arguments.length) {\n return decorate;\n }\n decorate = x;\n return axisAdapter;\n };\n axisAdapter.xScale = function (x) {\n if (!arguments.length) {\n return xScale;\n }\n xScale = x;\n return axisAdapter;\n };\n axisAdapter.yScale = function (x) {\n if (!arguments.length) {\n return yScale;\n }\n yScale = x;\n return axisAdapter;\n };\n\n return d3.rebind(axisAdapter, axis, 'orient', 'ticks', 'tickValues', 'tickSize', 'innerTickSize', 'outerTickSize', 'tickPadding', 'tickFormat');\n }", "function appendAxes() {\n graphImg\n .append(\"g\")\n .call(xAxis)\n .attr(\"class\", \"xAxis\")\n .attr(\n \"transform\",\n \"translate(0,\" + (displayHeight - margin - labelArea) + \")\"\n );\n graphImg\n .append(\"g\")\n .call(yAxis)\n .attr(\"class\", \"yAxis\")\n .attr(\"transform\", \"translate(\" + (margin + labelArea) + \", 0)\");\n }", "updateDomainByKeys(keys, yBbox) {\n let x = this.xAxis.scale();\n x.domain(keys);\n }", "function makeSeriesEncodeForAxisCoordSys(coordDimensions, seriesModel, source) {\n var encode = {};\n var datasetModel = querySeriesUpstreamDatasetModel(seriesModel); // Currently only make default when using dataset, util more reqirements occur.\n\n if (!datasetModel || !coordDimensions) {\n return encode;\n }\n\n var encodeItemName = [];\n var encodeSeriesName = [];\n var ecModel = seriesModel.ecModel;\n var datasetMap = innerGlobalModel(ecModel).datasetMap;\n var key = datasetModel.uid + '_' + source.seriesLayoutBy;\n var baseCategoryDimIndex;\n var categoryWayValueDimStart;\n coordDimensions = coordDimensions.slice();\n Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_1__[/* each */ \"k\"])(coordDimensions, function (coordDimInfoLoose, coordDimIdx) {\n var coordDimInfo = Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ \"z\"])(coordDimInfoLoose) ? coordDimInfoLoose : coordDimensions[coordDimIdx] = {\n name: coordDimInfoLoose\n };\n\n if (coordDimInfo.type === 'ordinal' && baseCategoryDimIndex == null) {\n baseCategoryDimIndex = coordDimIdx;\n categoryWayValueDimStart = getDataDimCountOnCoordDim(coordDimInfo);\n }\n\n encode[coordDimInfo.name] = [];\n });\n var datasetRecord = datasetMap.get(key) || datasetMap.set(key, {\n categoryWayDim: categoryWayValueDimStart,\n valueWayDim: 0\n }); // TODO\n // Auto detect first time axis and do arrangement.\n\n Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_1__[/* each */ \"k\"])(coordDimensions, function (coordDimInfo, coordDimIdx) {\n var coordDimName = coordDimInfo.name;\n var count = getDataDimCountOnCoordDim(coordDimInfo); // In value way.\n\n if (baseCategoryDimIndex == null) {\n var start = datasetRecord.valueWayDim;\n pushDim(encode[coordDimName], start, count);\n pushDim(encodeSeriesName, start, count);\n datasetRecord.valueWayDim += count; // ??? TODO give a better default series name rule?\n // especially when encode x y specified.\n // consider: when mutiple series share one dimension\n // category axis, series name should better use\n // the other dimsion name. On the other hand, use\n // both dimensions name.\n } // In category way, the first category axis.\n else if (baseCategoryDimIndex === coordDimIdx) {\n pushDim(encode[coordDimName], 0, count);\n pushDim(encodeItemName, 0, count);\n } // In category way, the other axis.\n else {\n var start = datasetRecord.categoryWayDim;\n pushDim(encode[coordDimName], start, count);\n pushDim(encodeSeriesName, start, count);\n datasetRecord.categoryWayDim += count;\n }\n });\n\n function pushDim(dimIdxArr, idxFrom, idxCount) {\n for (var i = 0; i < idxCount; i++) {\n dimIdxArr.push(idxFrom + i);\n }\n }\n\n function getDataDimCountOnCoordDim(coordDimInfo) {\n var dimsDef = coordDimInfo.dimsDef;\n return dimsDef ? dimsDef.length : 1;\n }\n\n encodeItemName.length && (encode.itemName = encodeItemName);\n encodeSeriesName.length && (encode.seriesName = encodeSeriesName);\n return encode;\n}", "function groups() {\n\tvar result = new EventEmitter();\n\tprocess.nextTick(function() {\n\t\tstore.groups.forEach(function(g) {\n\t\t\tresult.emit('group', g);\n\t\t})\n\t\tresult.emit('end');\n\t})\n\treturn result;\n}", "function assembleAxisSignals(model) {\n var axes = model.component.axes;\n var signals = [];\n\n var _iterator67 = _createForOfIteratorHelper(POSITION_SCALE_CHANNELS),\n _step67;\n\n try {\n for (_iterator67.s(); !(_step67 = _iterator67.n()).done;) {\n var channel = _step67.value;\n\n if (axes[channel]) {\n var _iterator68 = _createForOfIteratorHelper(axes[channel]),\n _step68;\n\n try {\n for (_iterator68.s(); !(_step68 = _iterator68.n()).done;) {\n var axis = _step68.value;\n\n if (!axis.get('disable') && !axis.get('gridScale')) {\n // If there is x-axis but no y-scale for gridScale, need to set height/width so x-axis can draw the grid with the right height. Same for y-axis and width.\n var sizeType = channel === 'x' ? 'height' : 'width';\n var update = model.getSizeSignalRef(sizeType).signal;\n\n if (sizeType !== update) {\n signals.push({\n name: sizeType,\n update: update\n });\n }\n }\n }\n } catch (err) {\n _iterator68.e(err);\n } finally {\n _iterator68.f();\n }\n }\n }\n } catch (err) {\n _iterator67.e(err);\n } finally {\n _iterator67.f();\n }\n\n return signals;\n }", "function processOneAxisValue(feed)\r\n {\r\n var dataset = [];\r\n var i, j, k;\r\n var measureData;\r\n if (feed.values.length <= 0){\r\n return dataset;\r\n }\r\n if (hasMND && !bMNDOnColor)\r\n {\r\n for(j = 0; j < feed.values[0].rows.length; ++j)\r\n { \r\n measureData = new Array(feed.values.length * feed.values[0].rows[0].length);\r\n for(k = 0; k < feed.values[0].rows[0].length; ++k)\r\n {\r\n for(i = 0 ; i < feed.values.length; ++i)\r\n {\r\n var dataPoint = {};\r\n dataPoint.val = feed.values[i].rows[j][k].val;\r\n dataPoint.ctx = feed.values[i].rows[j][k].ctx;\r\n dataPoint.info = feed.values[i].rows[j][k].info;\r\n if(bMNDInner){\r\n measureData[k * feed.values.length + i] = dataPoint;\r\n } else {\r\n measureData[i * feed.values[0].rows[0].length + k] = dataPoint; \r\n }\r\n }\r\n }\r\n dataset.push(measureData);\r\n } \r\n }\r\n else // MND on Region color or no MND\r\n {\r\n dataset = new Array(feed.values.length * feed.values[0].rows.length);\r\n\r\n for(i = 0 ; i < feed.values.length; ++i)\r\n {\r\n for(j = 0; j < feed.values[0].rows.length; ++j)\r\n { \r\n measureData = feed.values[i].rows[j];\r\n if(!hasMND || !bMNDInner){\r\n dataset[i * feed.values[0].rows.length + j] = measureData;\r\n } else {\r\n dataset[j * feed.values.length + i] = measureData;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return dataset;\r\n }", "function buildXAxisCategories() {\n var xAxisCategories = [];\n vm.dates.forEach(function(date) {\n var strs = date.split('-');\n xAxisCategories.push(strs[1] + '/' + strs[2]);\n });\n return xAxisCategories;\n }", "preProcessByDayResult(queryResult, groupBy) {\n switch (groupBy) {\n case \"day\":\n queryResult = this.fillEmptyDayPoints(queryResult);\n // replace key name \"day\" with \"x\" and value name \"count\" with \"y\"\n let resultByDay = [];\n queryResult.forEach(function (element) {\n resultByDay.push({x: new Date(element.day), y: element.count});\n });\n // sort the date\n resultByDay.sort(function (previousVal, currentVal) {\n return previousVal.x - currentVal.x;\n });\n return resultByDay;\n case \"week\":\n // TODO\n case \"month\":\n default:\n // group by year\n var groupsByYear = queryResult.reduce(function (previousVal, currentVal) {\n var yearNum = currentVal.day.split((\"-\"))[0];\n (previousVal[yearNum]) ? previousVal[yearNum].data.push(currentVal) : previousVal[yearNum] = {\n year: yearNum,\n data: [currentVal]\n };\n return previousVal;\n }, {});\n var resultByYear = Object.keys(groupsByYear).map(function (k) {\n return groupsByYear[k];\n });\n\n // sum up the result for every month\n var resultByMonth = [];\n var hasCountMonth = [];\n for (var i = 0; i < resultByYear.length; i++) {\n var groupsByMonthOneYear = resultByYear[i].data.reduce(function (previousVal, currentVal) {\n var monthNum = currentVal.day.split((\"-\"))[1];\n if (previousVal[monthNum]) {\n previousVal[monthNum].y += currentVal.count;\n } else {\n var thisMonth = new Date(resultByYear[i].year, monthNum - 1);\n previousVal[monthNum] = {y: currentVal.count, x: thisMonth};\n hasCountMonth.push(thisMonth);\n }\n return previousVal;\n }, {});\n var resultByMonthOneYear = Object.keys(groupsByMonthOneYear).map(function (key) {\n return groupsByMonthOneYear[key];\n });\n resultByMonth = resultByMonth.concat(resultByMonthOneYear);\n }\n return this.complementData(resultByMonth, hasCountMonth);\n }\n }", "display_by_group() {\n this.force.gravity(this.layout_gravity)\n .charge(this.charge)\n .friction(0.9)\n .on(\"tick\", e => {\n return this.circles.each(this.move_towards_group(e.alpha))\n .attr(\"cx\", d => d.x)\n .attr(\"cy\", d => d.y);\n });\n this.force.start();\n\n return this.display_years();\n }", "function groupBy(data, key) {\n return data.reduce(function (obj, value) {\n var valueKey = value[key];\n if (obj[valueKey] == null)\n obj[valueKey] = [value];\n obj[valueKey].push(value);\n return obj;\n }, {});\n}", "function setDomain(axis, idx, sets) {\n var values = sets.reduce(function(a, b) { return a.concat([b[idx]]); }, []);\n axis.domain(d3.extent(values, function(d) { return d })).nice();\n}", "function groupByType(sensors) {\n\tconst grouped = [];\n\tsensors.forEach((sensor) => {\n\t\tif (isPMSensor(sensor) && grouped.length) grouped[0].push(sensor);\n\t\telse grouped.push([sensor]);\n\t});\n\treturn grouped;\n}", "function addSeries() {\n storeData = data;\n colorArray.push(colorSpectrum[series%colorSpectrum.length]);\n series = storeData[0].length;\n labelArray.push(origLabels[1] + series);\n doCalc();\n}", "function onChartAfterGetAxes() {\n var _this = this;\n var options = this.options;\n this.colorAxis = [];\n if (options.colorAxis) {\n options.colorAxis = splat(options.colorAxis);\n options.colorAxis.forEach(function (axisOptions, i) {\n axisOptions.index = i;\n new ColorAxisClass(_this, axisOptions); // eslint-disable-line no-new\n });\n }\n }", "function layoutSingleSeries(seriesModel, offset, boxWidth) {\n\t var coordSys = seriesModel.coordinateSystem;\n\t var data = seriesModel.getData();\n\t var halfWidth = boxWidth / 2;\n\t var cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1;\n\t var vDimIdx = 1 - cDimIdx;\n\t var coordDims = ['x', 'y'];\n\t var cDim = data.mapDimension(coordDims[cDimIdx]);\n\t var vDims = data.mapDimensionsAll(coordDims[vDimIdx]);\n\t\n\t if (cDim == null || vDims.length < 5) {\n\t return;\n\t }\n\t\n\t for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n\t var axisDimVal = data.get(cDim, dataIndex);\n\t var median = getPoint(axisDimVal, vDims[2], dataIndex);\n\t var end1 = getPoint(axisDimVal, vDims[0], dataIndex);\n\t var end2 = getPoint(axisDimVal, vDims[1], dataIndex);\n\t var end4 = getPoint(axisDimVal, vDims[3], dataIndex);\n\t var end5 = getPoint(axisDimVal, vDims[4], dataIndex);\n\t var ends = [];\n\t addBodyEnd(ends, end2, false);\n\t addBodyEnd(ends, end4, true);\n\t ends.push(end1, end2, end5, end4);\n\t layEndLine(ends, end1);\n\t layEndLine(ends, end5);\n\t layEndLine(ends, median);\n\t data.setItemLayout(dataIndex, {\n\t initBaseline: median[vDimIdx],\n\t ends: ends\n\t });\n\t }\n\t\n\t function getPoint(axisDimVal, dim, dataIndex) {\n\t var val = data.get(dim, dataIndex);\n\t var p = [];\n\t p[cDimIdx] = axisDimVal;\n\t p[vDimIdx] = val;\n\t var point;\n\t\n\t if (isNaN(axisDimVal) || isNaN(val)) {\n\t point = [NaN, NaN];\n\t } else {\n\t point = coordSys.dataToPoint(p);\n\t point[cDimIdx] += offset;\n\t }\n\t\n\t return point;\n\t }\n\t\n\t function addBodyEnd(ends, point, start) {\n\t var point1 = point.slice();\n\t var point2 = point.slice();\n\t point1[cDimIdx] += halfWidth;\n\t point2[cDimIdx] -= halfWidth;\n\t start ? ends.push(point1, point2) : ends.push(point2, point1);\n\t }\n\t\n\t function layEndLine(ends, endCenter) {\n\t var from = endCenter.slice();\n\t var to = endCenter.slice();\n\t from[cDimIdx] -= halfWidth;\n\t to[cDimIdx] += halfWidth;\n\t ends.push(from, to);\n\t }\n\t }", "function getTickMarks(plotSeries) {\n\n var tickMarkersV = new Array();\n var tickMarkersH = new Array();\n\n for(var i = 10; i < 90; i += 10) {\n var proj = eqArea(i);\n tickMarkersV.push([270, proj], [90, proj]);\n tickMarkersH.push([0, proj], [180, proj]);\n }\n\n plotSeries.push({\n 'data': tickMarkersH,\n 'type': 'scatter',\n 'enableMouseTracking': false,\n 'zIndex': 1,\n 'showInLegend': false,\n 'marker': {\n 'symbol': 'horLine',\n 'lineWidth': 1,\n 'lineColor': 'lightgrey'\n }\n })\n\n plotSeries.push({\n 'data': tickMarkersV,\n 'type': 'scatter',\n 'enableMouseTracking': false,\n 'zIndex': 1,\n 'showInLegend': false,\n 'marker': {\n 'symbol': 'vertLine',\n 'lineWidth': 1,\n 'lineColor': 'lightgrey'\n }\n })\n\n}", "function AxisGroupLayout() {\n go.Layout.call(this);\n // go.GridLayout.call(this);\n // this.cellSize = new go.Size(1, 1);\n // this.wrappingColumn = Infinity;\n // this.wrappingWidth = Infinity;\n // this.spacing = new go.Size(0, 0);\n // this.alignment = go.GridLayout.Position;\n}", "function zoom(domain) {\n for(i=0;i<chartset.length;i++) {\n c = chartset[i];\n c.xScale().domain(domain);\n c.g().select('.axis--x').transition(c.t()).call(c.xAxis());\n c.g().select(\".primary\")\n .transition(c.t())\n .attr(\"d\", c.line()\n .y(function(d) {return c.yScale()(yValue(d, c.y0()));}));\n c.g().select(\".secondary\")\n .transition(c.t())\n .attr(\"d\", c.line()\n .y(function(d) {return c.yScale()(yValue(d, c.y1()));}));\n c.g().select(\".tertiary\")\n .transition(c.t())\n .attr(\"d\", c.line()\n .y(function(d) {return c.yScale()(yValue(d, c.y2()));}));\n }\n}", "function group(xs){\r\n return groupBy(Eq.eq, xs);\r\n}", "_calcLabelTicks(startDate, endDate, groups) {\n let offset = -Math.ceil((new Date().getTimezoneOffset()) / 60);\n // Calculated intervall length\n let unitTime = this._calcBiggestTimeUnitDifference(startDate, endDate);\n let interval = Math.ceil(unitTime.difference / groups);\n let labels = [];\n\n // Create labels for each group\n for (let n = 0; n < groups - 1; n++) {\n labels.push([\n this._formatDate(new Date(unitTime.startDate.getTime() + interval * n), offset),\n new Date(unitTime.startDate.getTime() + interval * n).toUTCString()\n ]);\n }\n // Add end date as last lable\n labels.push([\n this._formatDate(new Date(unitTime.endDate.getTime()), offset),\n new Date(unitTime.endDate.getTime()).toUTCString()\n ]);\n\n // Return object\n return {label: labels, interval: interval, startDate: unitTime.startDate, endDate: unitTime.endDate};\n }" ]
[ "0.7366417", "0.73142976", "0.7063738", "0.70488536", "0.693459", "0.6706458", "0.65628886", "0.6077776", "0.5936247", "0.5918551", "0.58900046", "0.5805062", "0.5800044", "0.57898194", "0.578439", "0.57058454", "0.5703831", "0.56538266", "0.563329", "0.56188244", "0.5612189", "0.5590279", "0.55497414", "0.552795", "0.552795", "0.552795", "0.552795", "0.5527163", "0.5504546", "0.5495949", "0.54858917", "0.5424064", "0.5424064", "0.5400013", "0.5359556", "0.5335576", "0.5329932", "0.5322739", "0.5322739", "0.5322739", "0.5322739", "0.5318194", "0.5254713", "0.5237709", "0.5192694", "0.51742876", "0.51639116", "0.5156666", "0.5143089", "0.5135007", "0.51119107", "0.5070756", "0.50405574", "0.50343114", "0.5033269", "0.50082153", "0.50010914", "0.49585435", "0.49454892", "0.49196354", "0.48999444", "0.48882276", "0.48867503", "0.48694807", "0.48496303", "0.48485088", "0.48458186", "0.48413908", "0.4840636", "0.48334366", "0.48334366", "0.48334366", "0.48289457", "0.4823532", "0.48183894", "0.48176205", "0.48100072", "0.4806336", "0.48058176", "0.47992256", "0.4793011", "0.47928557", "0.47859064", "0.4784152", "0.47735465", "0.47720277", "0.4770103", "0.47700027", "0.47684762", "0.47664142", "0.47530788", "0.47453704", "0.47429013", "0.4740511", "0.47403643" ]
0.67869306
10
Calculate offset and box width for each series.
function calculateBase(groupItem) { var extent; var baseAxis = groupItem.axis; var seriesModels = groupItem.seriesModels; var seriesCount = seriesModels.length; var boxWidthList = groupItem.boxWidthList = []; var boxOffsetList = groupItem.boxOffsetList = []; var boundList = []; var bandWidth; if (baseAxis.type === 'category') { bandWidth = baseAxis.getBandWidth(); } else { var maxDataCount = 0; each(seriesModels, function (seriesModel) { maxDataCount = Math.max(maxDataCount, seriesModel.getData().count()); }); extent = baseAxis.getExtent(), Math.abs(extent[1] - extent[0]) / maxDataCount; } each(seriesModels, function (seriesModel) { var boxWidthBound = seriesModel.get('boxWidth'); if (!zrUtil.isArray(boxWidthBound)) { boxWidthBound = [boxWidthBound, boxWidthBound]; } boundList.push([parsePercent(boxWidthBound[0], bandWidth) || 0, parsePercent(boxWidthBound[1], bandWidth) || 0]); }); var availableWidth = bandWidth * 0.8 - 2; var boxGap = availableWidth / seriesCount * 0.3; var boxWidth = (availableWidth - boxGap * (seriesCount - 1)) / seriesCount; var base = boxWidth / 2 - availableWidth / 2; each(seriesModels, function (seriesModel, idx) { boxOffsetList.push(base); base += boxGap + boxWidth; boxWidthList.push(Math.min(Math.max(boxWidth, boundList[idx][0]), boundList[idx][1])); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setBoxWidths() {\n var leftWidth = dragBarPos - 2,\n rightWidth = outerWidth - dragBarPos - 12;\n\n left.css('width', '' + toPercent(leftWidth) + '%');\n right.css('width', '' + toPercent(rightWidth) + '%');\n }", "function layoutSingleSeries(seriesModel, offset, boxWidth) {\n var coordSys = seriesModel.coordinateSystem;\n var data = seriesModel.getData();\n var dimensions = seriesModel.dimensions;\n var chartLayout = seriesModel.get('layout');\n var halfWidth = boxWidth / 2;\n\n data.each(dimensions, function () {\n var args = arguments;\n var dimLen = dimensions.length;\n var axisDimVal = args[0];\n var idx = args[dimLen];\n var variableDim = chartLayout === 'horizontal' ? 0 : 1;\n var constDim = 1 - variableDim;\n\n var median = getPoint(args[3]);\n var end1 = getPoint(args[1]);\n var end5 = getPoint(args[5]);\n var whiskerEnds = [\n [end1, getPoint(args[2])],\n [end5, getPoint(args[4])]\n ];\n layEndLine(end1);\n layEndLine(end5);\n layEndLine(median);\n\n var bodyEnds = [];\n addBodyEnd(whiskerEnds[0][1], 0);\n addBodyEnd(whiskerEnds[1][1], 1);\n\n data.setItemLayout(idx, {\n chartLayout: chartLayout,\n initBaseline: median[constDim],\n median: median,\n bodyEnds: bodyEnds,\n whiskerEnds: whiskerEnds\n });\n\n function getPoint(val) {\n var p = [];\n p[variableDim] = axisDimVal;\n p[constDim] = val;\n var point;\n if (isNaN(axisDimVal) || isNaN(val)) {\n point = [NaN, NaN];\n }\n else {\n point = coordSys.dataToPoint(p);\n point[variableDim] += offset;\n }\n return point;\n }\n\n function addBodyEnd(point, start) {\n var point1 = point.slice();\n var point2 = point.slice();\n point1[variableDim] += halfWidth;\n point2[variableDim] -= halfWidth;\n start\n ? bodyEnds.push(point1, point2)\n : bodyEnds.push(point2, point1);\n }\n\n function layEndLine(endCenter) {\n var line = [endCenter.slice(), endCenter.slice()];\n line[0][variableDim] -= halfWidth;\n line[1][variableDim] += halfWidth;\n whiskerEnds.push(line);\n }\n });\n }", "function layoutSingleSeries(seriesModel, offset, boxWidth) {\n\t var coordSys = seriesModel.coordinateSystem;\n\t var data = seriesModel.getData();\n\t var halfWidth = boxWidth / 2;\n\t var chartLayout = seriesModel.get('layout');\n\t var variableDim = chartLayout === 'horizontal' ? 0 : 1;\n\t var constDim = 1 - variableDim;\n\t var coordDims = ['x', 'y'];\n\t var vDims = [];\n\t var cDim;\n\n\t zrUtil.each(data.dimensions, function (dimName) {\n\t var dimInfo = data.getDimensionInfo(dimName);\n\t var coordDim = dimInfo.coordDim;\n\t if (coordDim === coordDims[constDim]) {\n\t vDims.push(dimName);\n\t } else if (coordDim === coordDims[variableDim]) {\n\t cDim = dimName;\n\t }\n\t });\n\n\t if (cDim == null || vDims.length < 5) {\n\t return;\n\t }\n\n\t data.each([cDim].concat(vDims), function () {\n\t var args = arguments;\n\t var axisDimVal = args[0];\n\t var idx = args[vDims.length + 1];\n\n\t var median = getPoint(args[3]);\n\t var end1 = getPoint(args[1]);\n\t var end5 = getPoint(args[5]);\n\t var whiskerEnds = [[end1, getPoint(args[2])], [end5, getPoint(args[4])]];\n\t layEndLine(end1);\n\t layEndLine(end5);\n\t layEndLine(median);\n\n\t var bodyEnds = [];\n\t addBodyEnd(whiskerEnds[0][1], 0);\n\t addBodyEnd(whiskerEnds[1][1], 1);\n\n\t data.setItemLayout(idx, {\n\t chartLayout: chartLayout,\n\t initBaseline: median[constDim],\n\t median: median,\n\t bodyEnds: bodyEnds,\n\t whiskerEnds: whiskerEnds\n\t });\n\n\t function getPoint(val) {\n\t var p = [];\n\t p[variableDim] = axisDimVal;\n\t p[constDim] = val;\n\t var point;\n\t if (isNaN(axisDimVal) || isNaN(val)) {\n\t point = [NaN, NaN];\n\t } else {\n\t point = coordSys.dataToPoint(p);\n\t point[variableDim] += offset;\n\t }\n\t return point;\n\t }\n\n\t function addBodyEnd(point, start) {\n\t var point1 = point.slice();\n\t var point2 = point.slice();\n\t point1[variableDim] += halfWidth;\n\t point2[variableDim] -= halfWidth;\n\t start ? bodyEnds.push(point1, point2) : bodyEnds.push(point2, point1);\n\t }\n\n\t function layEndLine(endCenter) {\n\t var line = [endCenter.slice(), endCenter.slice()];\n\t line[0][variableDim] -= halfWidth;\n\t line[1][variableDim] += halfWidth;\n\t whiskerEnds.push(line);\n\t }\n\t });\n\t}", "function layoutSingleSeries(seriesModel,offset,boxWidth){var coordSys=seriesModel.coordinateSystem;var data=seriesModel.getData();var dimensions=seriesModel.dimensions;var chartLayout=seriesModel.get('layout');var halfWidth=boxWidth / 2;data.each(dimensions,function(){var args=arguments;var dimLen=dimensions.length;var axisDimVal=args[0];var idx=args[dimLen];var variableDim=chartLayout === 'horizontal'?0:1;var constDim=1 - variableDim;var median=getPoint(args[3]);var end1=getPoint(args[1]);var end5=getPoint(args[5]);var whiskerEnds=[[end1,getPoint(args[2])],[end5,getPoint(args[4])]];layEndLine(end1);layEndLine(end5);layEndLine(median);var bodyEnds=[];addBodyEnd(whiskerEnds[0][1],0);addBodyEnd(whiskerEnds[1][1],1);data.setItemLayout(idx,{chartLayout:chartLayout,initBaseline:median[constDim],median:median,bodyEnds:bodyEnds,whiskerEnds:whiskerEnds});function getPoint(val){var p=[];p[variableDim] = axisDimVal;p[constDim] = val;var point;if(isNaN(axisDimVal) || isNaN(val)){point = [NaN,NaN];}else {point = coordSys.dataToPoint(p);point[variableDim] += offset;}return point;}function addBodyEnd(point,start){var point1=point.slice();var point2=point.slice();point1[variableDim] += halfWidth;point2[variableDim] -= halfWidth;start?bodyEnds.push(point1,point2):bodyEnds.push(point2,point1);}function layEndLine(endCenter){var line=[endCenter.slice(),endCenter.slice()];line[0][variableDim] -= halfWidth;line[1][variableDim] += halfWidth;whiskerEnds.push(line);}});}", "get _width() {\n // The container event's width is determined by the maximum number of\n // events in any of its rows.\n if (this.rows) {\n const columns =\n this.rows.reduce((max, row) => {\n return Math.max(max, row.leaves.length + 1) // add itself\n }, 0) + 1 // add the container\n\n return 100 / columns\n }\n\n const availableWidth = 100 - this.container._width\n\n // The row event's width is the space left by the container, divided\n // among itself and its leaves.\n if (this.leaves) {\n return availableWidth / (this.leaves.length + 1)\n }\n\n // The leaf event's width is determined by its row's width\n return this.row._width\n }", "function layoutSingleSeries(seriesModel, offset, boxWidth) {\n var coordSys = seriesModel.coordinateSystem;\n var data = seriesModel.getData();\n var halfWidth = boxWidth / 2;\n var chartLayout = seriesModel.get('layout');\n var variableDim = chartLayout === 'horizontal' ? 0 : 1;\n var constDim = 1 - variableDim;\n var coordDims = ['x', 'y'];\n var vDims = [];\n var cDim;\n zrUtil.each(data.dimensions, function (dimName) {\n var dimInfo = data.getDimensionInfo(dimName);\n var coordDim = dimInfo.coordDim;\n\n if (coordDim === coordDims[constDim]) {\n vDims.push(dimName);\n } else if (coordDim === coordDims[variableDim]) {\n cDim = dimName;\n }\n });\n\n if (cDim == null || vDims.length < 5) {\n return;\n }\n\n data.each([cDim].concat(vDims), function () {\n var args = arguments;\n var axisDimVal = args[0];\n var idx = args[vDims.length + 1];\n var median = getPoint(args[3]);\n var end1 = getPoint(args[1]);\n var end5 = getPoint(args[5]);\n var whiskerEnds = [[end1, getPoint(args[2])], [end5, getPoint(args[4])]];\n layEndLine(end1);\n layEndLine(end5);\n layEndLine(median);\n var bodyEnds = [];\n addBodyEnd(whiskerEnds[0][1], 0);\n addBodyEnd(whiskerEnds[1][1], 1);\n data.setItemLayout(idx, {\n chartLayout: chartLayout,\n initBaseline: median[constDim],\n median: median,\n bodyEnds: bodyEnds,\n whiskerEnds: whiskerEnds\n });\n\n function getPoint(val) {\n var p = [];\n p[variableDim] = axisDimVal;\n p[constDim] = val;\n var point;\n\n if (isNaN(axisDimVal) || isNaN(val)) {\n point = [NaN, NaN];\n } else {\n point = coordSys.dataToPoint(p);\n point[variableDim] += offset;\n }\n\n return point;\n }\n\n function addBodyEnd(point, start) {\n var point1 = point.slice();\n var point2 = point.slice();\n point1[variableDim] += halfWidth;\n point2[variableDim] -= halfWidth;\n start ? bodyEnds.push(point1, point2) : bodyEnds.push(point2, point1);\n }\n\n function layEndLine(endCenter) {\n var line = [endCenter.slice(), endCenter.slice()];\n line[0][variableDim] -= halfWidth;\n line[1][variableDim] += halfWidth;\n whiskerEnds.push(line);\n }\n });\n}", "function layoutSingleSeries(seriesModel, offset, boxWidth) {\n var coordSys = seriesModel.coordinateSystem;\n var data = seriesModel.getData();\n var halfWidth = boxWidth / 2;\n var chartLayout = seriesModel.get('layout');\n var variableDim = chartLayout === 'horizontal' ? 0 : 1;\n var constDim = 1 - variableDim;\n var coordDims = ['x', 'y'];\n var vDims = [];\n var cDim;\n zrUtil.each(data.dimensions, function (dimName) {\n var dimInfo = data.getDimensionInfo(dimName);\n var coordDim = dimInfo.coordDim;\n\n if (coordDim === coordDims[constDim]) {\n vDims.push(dimName);\n } else if (coordDim === coordDims[variableDim]) {\n cDim = dimName;\n }\n });\n\n if (cDim == null || vDims.length < 5) {\n return;\n }\n\n data.each([cDim].concat(vDims), function () {\n var args = arguments;\n var axisDimVal = args[0];\n var idx = args[vDims.length + 1];\n var median = getPoint(args[3]);\n var end1 = getPoint(args[1]);\n var end5 = getPoint(args[5]);\n var whiskerEnds = [[end1, getPoint(args[2])], [end5, getPoint(args[4])]];\n layEndLine(end1);\n layEndLine(end5);\n layEndLine(median);\n var bodyEnds = [];\n addBodyEnd(whiskerEnds[0][1], 0);\n addBodyEnd(whiskerEnds[1][1], 1);\n data.setItemLayout(idx, {\n chartLayout: chartLayout,\n initBaseline: median[constDim],\n median: median,\n bodyEnds: bodyEnds,\n whiskerEnds: whiskerEnds\n });\n\n function getPoint(val) {\n var p = [];\n p[variableDim] = axisDimVal;\n p[constDim] = val;\n var point;\n\n if (isNaN(axisDimVal) || isNaN(val)) {\n point = [NaN, NaN];\n } else {\n point = coordSys.dataToPoint(p);\n point[variableDim] += offset;\n }\n\n return point;\n }\n\n function addBodyEnd(point, start) {\n var point1 = point.slice();\n var point2 = point.slice();\n point1[variableDim] += halfWidth;\n point2[variableDim] -= halfWidth;\n start ? bodyEnds.push(point1, point2) : bodyEnds.push(point2, point1);\n }\n\n function layEndLine(endCenter) {\n var line = [endCenter.slice(), endCenter.slice()];\n line[0][variableDim] -= halfWidth;\n line[1][variableDim] += halfWidth;\n whiskerEnds.push(line);\n }\n });\n}", "function layoutSingleSeries(seriesModel, offset, boxWidth) {\n var coordSys = seriesModel.coordinateSystem;\n var data = seriesModel.getData();\n var halfWidth = boxWidth / 2;\n var chartLayout = seriesModel.get('layout');\n var variableDim = chartLayout === 'horizontal' ? 0 : 1;\n var constDim = 1 - variableDim;\n var coordDims = ['x', 'y'];\n var vDims = [];\n var cDim;\n zrUtil.each(data.dimensions, function (dimName) {\n var dimInfo = data.getDimensionInfo(dimName);\n var coordDim = dimInfo.coordDim;\n\n if (coordDim === coordDims[constDim]) {\n vDims.push(dimName);\n } else if (coordDim === coordDims[variableDim]) {\n cDim = dimName;\n }\n });\n\n if (cDim == null || vDims.length < 5) {\n return;\n }\n\n data.each([cDim].concat(vDims), function () {\n var args = arguments;\n var axisDimVal = args[0];\n var idx = args[vDims.length + 1];\n var median = getPoint(args[3]);\n var end1 = getPoint(args[1]);\n var end5 = getPoint(args[5]);\n var whiskerEnds = [[end1, getPoint(args[2])], [end5, getPoint(args[4])]];\n layEndLine(end1);\n layEndLine(end5);\n layEndLine(median);\n var bodyEnds = [];\n addBodyEnd(whiskerEnds[0][1], 0);\n addBodyEnd(whiskerEnds[1][1], 1);\n data.setItemLayout(idx, {\n chartLayout: chartLayout,\n initBaseline: median[constDim],\n median: median,\n bodyEnds: bodyEnds,\n whiskerEnds: whiskerEnds\n });\n\n function getPoint(val) {\n var p = [];\n p[variableDim] = axisDimVal;\n p[constDim] = val;\n var point;\n\n if (isNaN(axisDimVal) || isNaN(val)) {\n point = [NaN, NaN];\n } else {\n point = coordSys.dataToPoint(p);\n point[variableDim] += offset;\n }\n\n return point;\n }\n\n function addBodyEnd(point, start) {\n var point1 = point.slice();\n var point2 = point.slice();\n point1[variableDim] += halfWidth;\n point2[variableDim] -= halfWidth;\n start ? bodyEnds.push(point1, point2) : bodyEnds.push(point2, point1);\n }\n\n function layEndLine(endCenter) {\n var line = [endCenter.slice(), endCenter.slice()];\n line[0][variableDim] -= halfWidth;\n line[1][variableDim] += halfWidth;\n whiskerEnds.push(line);\n }\n });\n}", "createLineupAdjustWidth (elem, name, spec, fixed) {\n let rankWidth = 0;\n let total = 0;\n let count = 0;\n let c1, c2;\n /* The final width value of 30 is to leave room for a scroll bar. */\n let width = $(elem)[0].getBoundingClientRect().width - fixed * 2 - 30;\n let col = spec.dataspec.layout.primary;\n for (c1 = 0; c1 < col.length; c1 += 1) {\n if (col[c1].children) {\n for (c2 = 0; c2 < col[c1].children.length; c2 += 1) {\n count += 1;\n total += this.lineupGetColumnWidth(name, col[c1].children[c2], fixed);\n }\n } else {\n if (col[c1].type === 'rank') { /* LineUp wants this to be 50 */\n rankWidth = this.lineupRankWidth + fixed;\n continue;\n }\n count += 1;\n total += this.lineupGetColumnWidth(name, col[c1], fixed);\n }\n }\n let avail = width - count * fixed - rankWidth;\n avail -= count + (rankWidth ? 1 : 0); // I'm not sure why this is necessary\n let scale = avail / total;\n for (c1 = 0; c1 < col.length; c1 += 1) {\n if (col[c1].children) {\n for (c2 = 0; c2 < col[c1].children.length; c2 += 1) {\n col[c1].children[c2].width = fixed + col[c1].children[c2].widthBasis * scale;\n }\n } else {\n col[c1].width = fixed + col[c1].widthBasis * scale;\n if (col[c1].type === 'rank') { /* LineUp wants this to be fixed */\n col[c1].width = this.lineupRankWidth + fixed;\n }\n }\n }\n return scale;\n }", "function layoutSingleSeries(seriesModel, offset, boxWidth) {\n\t var coordSys = seriesModel.coordinateSystem;\n\t var data = seriesModel.getData();\n\t var halfWidth = boxWidth / 2;\n\t var cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1;\n\t var vDimIdx = 1 - cDimIdx;\n\t var coordDims = ['x', 'y'];\n\t var cDim = data.mapDimension(coordDims[cDimIdx]);\n\t var vDims = data.mapDimensionsAll(coordDims[vDimIdx]);\n\t\n\t if (cDim == null || vDims.length < 5) {\n\t return;\n\t }\n\t\n\t for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n\t var axisDimVal = data.get(cDim, dataIndex);\n\t var median = getPoint(axisDimVal, vDims[2], dataIndex);\n\t var end1 = getPoint(axisDimVal, vDims[0], dataIndex);\n\t var end2 = getPoint(axisDimVal, vDims[1], dataIndex);\n\t var end4 = getPoint(axisDimVal, vDims[3], dataIndex);\n\t var end5 = getPoint(axisDimVal, vDims[4], dataIndex);\n\t var ends = [];\n\t addBodyEnd(ends, end2, false);\n\t addBodyEnd(ends, end4, true);\n\t ends.push(end1, end2, end5, end4);\n\t layEndLine(ends, end1);\n\t layEndLine(ends, end5);\n\t layEndLine(ends, median);\n\t data.setItemLayout(dataIndex, {\n\t initBaseline: median[vDimIdx],\n\t ends: ends\n\t });\n\t }\n\t\n\t function getPoint(axisDimVal, dim, dataIndex) {\n\t var val = data.get(dim, dataIndex);\n\t var p = [];\n\t p[cDimIdx] = axisDimVal;\n\t p[vDimIdx] = val;\n\t var point;\n\t\n\t if (isNaN(axisDimVal) || isNaN(val)) {\n\t point = [NaN, NaN];\n\t } else {\n\t point = coordSys.dataToPoint(p);\n\t point[cDimIdx] += offset;\n\t }\n\t\n\t return point;\n\t }\n\t\n\t function addBodyEnd(ends, point, start) {\n\t var point1 = point.slice();\n\t var point2 = point.slice();\n\t point1[cDimIdx] += halfWidth;\n\t point2[cDimIdx] -= halfWidth;\n\t start ? ends.push(point1, point2) : ends.push(point2, point1);\n\t }\n\t\n\t function layEndLine(ends, endCenter) {\n\t var from = endCenter.slice();\n\t var to = endCenter.slice();\n\t from[cDimIdx] -= halfWidth;\n\t to[cDimIdx] += halfWidth;\n\t ends.push(from, to);\n\t }\n\t }", "function calculateWidth() {\n // Set var width to 49% of the available container width\n // since the the layout of the charts is 2x2\n var width = $(\".container\").width() * 0.49;\n\n // Set the width of the first chart to 90% of the\n // available width for one chart. Set the height to\n // 80% of the width variable. Set the width of the first\n // charts container to the full width of one chart\n $(\"#ordersChart\").attr(\"width\", width * 0.90 + \"px\");\n $(\"#ordersChart\").attr(\"height\", width * 0.80 + \"px\");\n $(\"#orders-chart\").width(width + \"px\");\n\n // Set the width of the second chart to 90% of the\n // available width for one chart. Set the height to\n // 80% of the width variable. Set the width of the second\n // charts container to the full width of one chart\n $(\"#cakesChart\").attr(\"width\", width * 0.90 + \"px\");\n $(\"#cakesChart\").attr(\"height\", width * 0.80 - 1 + \"px\");\n $(\"#cakes-chart\").width(width + \"px\");\n\n // Set the width of the third chart to 90% of the\n // available width for one chart. Set the height to\n // 80% of the width variable. Set the width of the third\n // charts container to the full width of one chart\n $(\"#fillingsChart\").attr(\"width\", width * 0.90 + \"px\");\n $(\"#fillingsChart\").attr(\"height\", width * 0.80 + \"px\");\n $(\"#fillings-chart\").width(width + \"px\");\n\n // Set the width of the fourth chart to 90% of the\n // available width for one chart. Set the height to\n // 80% of the width variable. Set the width of the fourth\n // charts container to the full width of one chart\n $(\"#decorationsChart\").attr(\"width\", width * 0.90 + \"px\");\n $(\"#decorationsChart\").attr(\"height\", width * 0.80 + \"px\");\n $(\"#decorations-chart\").width(width + \"px\");\n}", "calculateSizes() {\n // items' width including left adn right margins; equal widths and margins are assumed\n this.itemWidthMargin = this.$items[0].offsetWidth + (this.$items[0].offsetLeft*2);\n // width of inner carousel that falls outside of outer wrapper\n this.shiftSpace = (this.$items.length * this.itemWidthMargin) - this.$outerWrapper.offsetWidth;\n // each additional bullet is for every item outside of the outer wrapper\n this.bulletsNeeded = Math.round(this.shiftSpace / this.itemWidthMargin);\n\n // creates bullet elements as needed\n this.addBullets( true ); \n }", "function calculateOnResize() {\n\t$('body').outerWidth('100%');\n\t$('div.grid-container > div.Category').outerWidth('100%');\n\t$('.Timeline').outerWidth('100%');\n\t$('body').outerHeight('100%');\n\tcalculateTimelineWidth();\n\tcalculateCategoryWidth();\n}", "function layoutSingleSeries(seriesModel, offset, boxWidth) {\n var coordSys = seriesModel.coordinateSystem;\n var data = seriesModel.getData();\n var halfWidth = boxWidth / 2;\n var cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1;\n var vDimIdx = 1 - cDimIdx;\n var coordDims = ['x', 'y'];\n var cDim = data.mapDimension(coordDims[cDimIdx]);\n var vDims = data.mapDimension(coordDims[vDimIdx], true);\n\n if (cDim == null || vDims.length < 5) {\n return;\n }\n\n for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n var axisDimVal = data.get(cDim, dataIndex);\n var median = getPoint(axisDimVal, vDims[2], dataIndex);\n var end1 = getPoint(axisDimVal, vDims[0], dataIndex);\n var end2 = getPoint(axisDimVal, vDims[1], dataIndex);\n var end4 = getPoint(axisDimVal, vDims[3], dataIndex);\n var end5 = getPoint(axisDimVal, vDims[4], dataIndex);\n var ends = [];\n addBodyEnd(ends, end2, 0);\n addBodyEnd(ends, end4, 1);\n ends.push(end1, end2, end5, end4);\n layEndLine(ends, end1);\n layEndLine(ends, end5);\n layEndLine(ends, median);\n data.setItemLayout(dataIndex, {\n initBaseline: median[vDimIdx],\n ends: ends\n });\n }\n\n function getPoint(axisDimVal, dimIdx, dataIndex) {\n var val = data.get(dimIdx, dataIndex);\n var p = [];\n p[cDimIdx] = axisDimVal;\n p[vDimIdx] = val;\n var point;\n\n if (isNaN(axisDimVal) || isNaN(val)) {\n point = [NaN, NaN];\n } else {\n point = coordSys.dataToPoint(p);\n point[cDimIdx] += offset;\n }\n\n return point;\n }\n\n function addBodyEnd(ends, point, start) {\n var point1 = point.slice();\n var point2 = point.slice();\n point1[cDimIdx] += halfWidth;\n point2[cDimIdx] -= halfWidth;\n start ? ends.push(point1, point2) : ends.push(point2, point1);\n }\n\n function layEndLine(ends, endCenter) {\n var from = endCenter.slice();\n var to = endCenter.slice();\n from[cDimIdx] -= halfWidth;\n to[cDimIdx] += halfWidth;\n ends.push(from, to);\n }\n}", "function layoutSingleSeries(seriesModel, offset, boxWidth) {\n var coordSys = seriesModel.coordinateSystem;\n var data = seriesModel.getData();\n var halfWidth = boxWidth / 2;\n var cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1;\n var vDimIdx = 1 - cDimIdx;\n var coordDims = ['x', 'y'];\n var cDim = data.mapDimension(coordDims[cDimIdx]);\n var vDims = data.mapDimension(coordDims[vDimIdx], true);\n\n if (cDim == null || vDims.length < 5) {\n return;\n }\n\n for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n var axisDimVal = data.get(cDim, dataIndex);\n var median = getPoint(axisDimVal, vDims[2], dataIndex);\n var end1 = getPoint(axisDimVal, vDims[0], dataIndex);\n var end2 = getPoint(axisDimVal, vDims[1], dataIndex);\n var end4 = getPoint(axisDimVal, vDims[3], dataIndex);\n var end5 = getPoint(axisDimVal, vDims[4], dataIndex);\n var ends = [];\n addBodyEnd(ends, end2, 0);\n addBodyEnd(ends, end4, 1);\n ends.push(end1, end2, end5, end4);\n layEndLine(ends, end1);\n layEndLine(ends, end5);\n layEndLine(ends, median);\n data.setItemLayout(dataIndex, {\n initBaseline: median[vDimIdx],\n ends: ends\n });\n }\n\n function getPoint(axisDimVal, dimIdx, dataIndex) {\n var val = data.get(dimIdx, dataIndex);\n var p = [];\n p[cDimIdx] = axisDimVal;\n p[vDimIdx] = val;\n var point;\n\n if (isNaN(axisDimVal) || isNaN(val)) {\n point = [NaN, NaN];\n } else {\n point = coordSys.dataToPoint(p);\n point[cDimIdx] += offset;\n }\n\n return point;\n }\n\n function addBodyEnd(ends, point, start) {\n var point1 = point.slice();\n var point2 = point.slice();\n point1[cDimIdx] += halfWidth;\n point2[cDimIdx] -= halfWidth;\n start ? ends.push(point1, point2) : ends.push(point2, point1);\n }\n\n function layEndLine(ends, endCenter) {\n var from = endCenter.slice();\n var to = endCenter.slice();\n from[cDimIdx] -= halfWidth;\n to[cDimIdx] += halfWidth;\n ends.push(from, to);\n }\n}", "function layoutSingleSeries(seriesModel, offset, boxWidth) {\n var coordSys = seriesModel.coordinateSystem;\n var data = seriesModel.getData();\n var halfWidth = boxWidth / 2;\n var cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1;\n var vDimIdx = 1 - cDimIdx;\n var coordDims = ['x', 'y'];\n var cDim = data.mapDimension(coordDims[cDimIdx]);\n var vDims = data.mapDimension(coordDims[vDimIdx], true);\n\n if (cDim == null || vDims.length < 5) {\n return;\n }\n\n for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n var axisDimVal = data.get(cDim, dataIndex);\n var median = getPoint(axisDimVal, vDims[2], dataIndex);\n var end1 = getPoint(axisDimVal, vDims[0], dataIndex);\n var end2 = getPoint(axisDimVal, vDims[1], dataIndex);\n var end4 = getPoint(axisDimVal, vDims[3], dataIndex);\n var end5 = getPoint(axisDimVal, vDims[4], dataIndex);\n var ends = [];\n addBodyEnd(ends, end2, 0);\n addBodyEnd(ends, end4, 1);\n ends.push(end1, end2, end5, end4);\n layEndLine(ends, end1);\n layEndLine(ends, end5);\n layEndLine(ends, median);\n data.setItemLayout(dataIndex, {\n initBaseline: median[vDimIdx],\n ends: ends\n });\n }\n\n function getPoint(axisDimVal, dimIdx, dataIndex) {\n var val = data.get(dimIdx, dataIndex);\n var p = [];\n p[cDimIdx] = axisDimVal;\n p[vDimIdx] = val;\n var point;\n\n if (isNaN(axisDimVal) || isNaN(val)) {\n point = [NaN, NaN];\n } else {\n point = coordSys.dataToPoint(p);\n point[cDimIdx] += offset;\n }\n\n return point;\n }\n\n function addBodyEnd(ends, point, start) {\n var point1 = point.slice();\n var point2 = point.slice();\n point1[cDimIdx] += halfWidth;\n point2[cDimIdx] -= halfWidth;\n start ? ends.push(point1, point2) : ends.push(point2, point1);\n }\n\n function layEndLine(ends, endCenter) {\n var from = endCenter.slice();\n var to = endCenter.slice();\n from[cDimIdx] -= halfWidth;\n to[cDimIdx] += halfWidth;\n ends.push(from, to);\n }\n}", "function finalAdjustments(){\n for(var i=0; i<idCounter; i++){\n if(eventsOverlap['event'+i] === undefined){\n document.getElementById('event'+i).style.width = '497px';\n } else if(eventsOverlap['event'+i].length < columnCounter){\n var newWidth = 500/(eventsOverlap['event'+i].length + 1);\n var thisEvent = document.getElementById('event'+i);\n // thisEvent.style.width = (newWidth - 3) + 'px';\n adjust(thisEvent, eventsOverlap['event'+i], newWidth);\n }\n }\n }", "function tradeDimensions () {\n\n\t\tlastWidth.push($('#topTower').width());\n\n\t\tlastPosition = $('#topTower').position();\n\t\tlastLeft.push(lastPosition.left);\n\n\t\tif (lastLeft[i] < visLeft[j]) {\n\t\t\tvisLeft.push(visLeft[j]);\n\t\t} else {\n\t\t\tvisLeft.push(lastLeft[i])\n\t\t}\n\t\t\n\t\ttowerWidth.push(towerWidth[j] - Math.abs(lastLeft[i] - visLeft[j]));\n\t}", "function setOuterWidth() {\n outerWidth = wrap.offsetWidth;\n dragBarPos = calcDragBarPosFromCss() || Math.floor(outerWidth / 2) - 5;\n }", "_updateClosetSlots(width) {\n let left_closet_face_x_value = this.faces.get(FaceOrientation.LEFT).X();\n let closetSlotFaces=this.getClosetSlotFaces();\n for(let i=0;i<closetSlotFaces.length;i++){\n if(i==0){\n closetSlotFaces[i].changeXAxis(left_closet_face_x_value+width);\n }else{\n closetSlotFaces[i].changeXAxis(closetSlotFaces[i-1].X()+width);\n }\n }\n }", "_calcBarWidths() {\n this._workerTotals.forEach(totals => {\n totals.barWidth = this._calcBarWidth(totals.duration);\n let sumBarWidth = 0;\n totals.targetDurations.forEach((targetDuration, target) => {\n const isLast = totals.targetBarWidths.size === totals.targetDurations.size - 1;\n const targetBarWidth = isLast ? totals.barWidth - sumBarWidth : this._calcBarWidth(targetDuration);\n totals.targetBarWidths.set(target, targetBarWidth);\n sumBarWidth += targetBarWidth;\n });\n });\n }", "function layoutSingleSeries(seriesModel, offset, boxWidth) {\n var coordSys = seriesModel.coordinateSystem;\n var data = seriesModel.getData();\n var halfWidth = boxWidth / 2;\n var cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1;\n var vDimIdx = 1 - cDimIdx;\n var coordDims = ['x', 'y'];\n var cDim = data.mapDimension(coordDims[cDimIdx]);\n var vDims = data.mapDimensionsAll(coordDims[vDimIdx]);\n\n if (cDim == null || vDims.length < 5) {\n return;\n }\n\n for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) {\n var axisDimVal = data.get(cDim, dataIndex);\n var median = getPoint(axisDimVal, vDims[2], dataIndex);\n var end1 = getPoint(axisDimVal, vDims[0], dataIndex);\n var end2 = getPoint(axisDimVal, vDims[1], dataIndex);\n var end4 = getPoint(axisDimVal, vDims[3], dataIndex);\n var end5 = getPoint(axisDimVal, vDims[4], dataIndex);\n var ends = [];\n addBodyEnd(ends, end2, false);\n addBodyEnd(ends, end4, true);\n ends.push(end1, end2, end5, end4);\n layEndLine(ends, end1);\n layEndLine(ends, end5);\n layEndLine(ends, median);\n data.setItemLayout(dataIndex, {\n initBaseline: median[vDimIdx],\n ends: ends\n });\n }\n\n function getPoint(axisDimVal, dim, dataIndex) {\n var val = data.get(dim, dataIndex);\n var p = [];\n p[cDimIdx] = axisDimVal;\n p[vDimIdx] = val;\n var point;\n\n if (isNaN(axisDimVal) || isNaN(val)) {\n point = [NaN, NaN];\n } else {\n point = coordSys.dataToPoint(p);\n point[cDimIdx] += offset;\n }\n\n return point;\n }\n\n function addBodyEnd(ends, point, start) {\n var point1 = point.slice();\n var point2 = point.slice();\n point1[cDimIdx] += halfWidth;\n point2[cDimIdx] -= halfWidth;\n start ? ends.push(point1, point2) : ends.push(point2, point1);\n }\n\n function layEndLine(ends, endCenter) {\n var from = endCenter.slice();\n var to = endCenter.slice();\n from[cDimIdx] -= halfWidth;\n to[cDimIdx] += halfWidth;\n ends.push(from, to);\n }\n}", "function posCalc(){\n var width = document.innerWidth;\n var colLength = width/3;\n }", "function setWidth(){\n var width = 500/(columnCounter + 1);\n\n for(var i=0; i<=columnCounter; i++){\n for(var j=0; j<columns[i].length; j++) {\n columns[i][j].style.width = (width - 3) + 'px';\n columns[i][j].style.marginLeft = width * i + 'px';\n }\n }\n }", "function updateXTickCount() {\n // console.log(\"data -> \" + JSON.stringify(data));\n // console.log(\"data.length -> \" + data.length);\n // console.log(\"(.77 * window.innerWidth - 280) / 15 -> \" + (.77 * window.innerWidth - 280) / 15);\n // console.log((Math.floor(data.length / ((.77 * window.innerWidth - 280) / 15))) - 1);\n setXTickInterval((Math.floor(data.length / ((.77 * window.innerWidth - 280) / 15))) - 1);\n }", "function setWidths() {\n var unitWidth = getUnitWidth() - 20; // adjust for padding. for padding:0, make this 1\n $isocontainer.children(\":not(.width2)\").css({ width: unitWidth });\n $isocontainer.children(\".width2\").css({ width: (unitWidth * 2) });\n }", "function tickCount() {\n if (width <= 530) {\n xAxis.ticks(5);\n yAxis.ticks(5);\n }\n else {\n xAxis.ticks(10);\n yAxis.ticks(10);\n } \n }", "alignTabOpeningBoxes() {\r\n const widths = {};\r\n const rows = $(\"tabopening\").querySelectorAll(\"hbox\");\r\n function updateGrid(fn) {\r\n for (let row of rows) {\r\n let id = 0;\r\n const cols = row.querySelectorAll(\"vbox\");\r\n for (let col of cols) {\r\n if (++id && col.hasAttribute(\"setWidth\")) {\r\n fn(col, id);\r\n }\r\n }\r\n }\r\n }\r\n updateGrid((col, id) => {\r\n widths[id] = Math.max(widths[id] || 0, col.boxObject.width);\r\n });\r\n\r\n updateGrid((col, id) => {\r\n col.style.setProperty(\"width\", widths[id] + \"px\", \"important\");\r\n });\r\n }", "recalculateSizes() {\n let elem = ReactDOM.findDOMNode(this).parentNode;\n this.width = elem.offsetWidth - 30;\n this.divHeight = elem.offsetHeight;\n this.height = this.data.length * 60;\n this.barHeight = (this.height - 50) / this.data.length / 2;\n const minSize = Math.min(this.width, this.divHeight);\n this.textSize = minSize / 30;\n }", "function getGraphWidth() {\n\t\treturn width - xOffset * 2;\n\t}", "getRenderedWidth(){return e.System.Services.controlManager.checkControlGeometryByControl(this),this.__renderedSizeCache.width}", "calcDimensions () {\n let dayIndex = Math.round (\n (moment () - moment ().subtract (1, 'year').startOf ('week')) / 86400000\n );\n let colIndex = Math.trunc (dayIndex / 7);\n let numWeeks = colIndex + 1;\n\n this.settings.width = this.container.offsetWidth < 1000\n ? 1000\n : this.container.offsetWidth;\n this.settings.item_size =\n (this.settings.width - this.settings.label_padding) / numWeeks -\n this.settings.gutter;\n this.settings.height =\n this.settings.label_padding +\n 7 * (this.settings.item_size + this.settings.gutter);\n this.svg\n .attr ('width', this.settings.width)\n .attr ('height', this.settings.height);\n\n if (!!this.props.data && !!this.props.data[0].summary) {\n this.drawChart ();\n }\n }", "function tickCount() {\n if (displayWidth <= 500) {\n xAxis.ticks(5);\n yAxis.ticks(5);\n } else {\n xAxis.ticks(10);\n yAxis.ticks(10);\n }\n }", "function setVarianceTypeIconColumnWidths() {\n var maxVarianceIconCount = 0;\n $.each($(\".pageRow\"), function () {\n var iconCount = $(this).children(\".details\").children(\".varianceTypeIcon\").children(\"img\").size();\n if (iconCount > maxVarianceIconCount) {\n maxVarianceIconCount = iconCount;\n }\n });\n\n var $pageRows = $(\".pageRow\");\n $.each($pageRows.children(\".details\").children(\".varianceTypeIcon\"), function () {\n $(this).css(\"width\", maxVarianceIconCount * varianceIconWidth);\n });\n\n $.each($pageRows.children(\".pageRowChild\").children(\".details\").children(\".varianceTypeIcon\"), function () {\n $(this).css(\"width\", ((maxVarianceIconCount + 1) * varianceIconWidth) + 2);\n });\n }", "function updateContainers() {\n\n\t\tvar width = editor.duration * scale;\n\n\t\telements.setWidth( width + 'px' );\n\t\t// curves.setWidth( width + 'px' );\n\n\t}", "applyWidth() {\n var columns = this.template.querySelectorAll('.dynamicColumn');\n for (var i = 0; i < columns.length; i++) {\n columns[i].style.width = this.percentage + \"%\";\n //columns[i].style.display = \"inline\";\n columns[i].style.textAlign = \"center\";\n //columns[i].style.border = \"1px solid #4CAF50\";\n }\n }", "function tickCount() {\n if (width <= 500) {\n xAxis.ticks(5);\n yAxis.ticks(5);\n }\n else {\n xAxis.ticks(10);\n yAxis.ticks(10);\n }\n }", "function calculateSizes () {\n // Figure out the parent size minus padding.\n var a = elements[this.a].element;\n var b = elements[this.b].element;\n\n this.size = a[getBoundingClientRect]()[dimension] + b[getBoundingClientRect]()[dimension] + this.aGutterSize + this.bGutterSize;\n this.start = a[getBoundingClientRect]()[position];\n }", "function calculateSizes () {\n // Figure out the parent size minus padding.\n var a = elements[this.a].element;\n var b = elements[this.b].element;\n\n this.size = a[getBoundingClientRect]()[dimension] + b[getBoundingClientRect]()[dimension] + this.aGutterSize + this.bGutterSize;\n this.start = a[getBoundingClientRect]()[position];\n }", "renderXAxis(marksStyle: Object) {\n const { data: marks = 50, config } = this.props;\n const { boxSize = 20 } = config;\n const showDateCount = marks.reduce((prev, mark, markNum) => {\n const prevPlus = prev + 1;\n return markNum % 10 === 0 ? prevPlus : prev;\n }, 0);\n\n const width = parseInt(marks.length * boxSize / showDateCount, 10);\n const style = { width: `${width}px` };\n\n return (\n <div className=\"x-axis\" style={marksStyle}>\n {marks.map(\n (mark, markNum) =>\n markNum % 10 === 0 ? (\n <div className=\"x-caption\" style={style} key={markNum}>\n {mark.x_value}\n </div>\n ) : null\n )}\n </div>\n );\n }", "[symbols.itemsChanged]() {\n if (super[symbols.itemsChanged]) { super[symbols.itemsChanged](); }\n const items = this.items;\n const count = items.length;\n this.$.spreadContainer.style.width = (count * 100) + '%';\n const itemWidth = (100 / count) + \"%\";\n [].forEach.call(items, item => {\n item.style.width = itemWidth;\n });\n }", "function axisBeforePadding() {\n var _this = this;\n var axisLength = this.len,\n chart = this.chart,\n isXAxis = this.isXAxis,\n dataKey = isXAxis ? 'xData' : 'yData',\n min = this.min,\n range = this.max - min;\n var pxMin = 0,\n pxMax = axisLength,\n transA = axisLength / range,\n hasActiveSeries;\n // Handle padding on the second pass, or on redraw\n this.series.forEach(function (series) {\n if (series.bubblePadding &&\n (series.visible || !chart.options.chart.ignoreHiddenSeries)) {\n // Correction for #1673\n _this.allowZoomOutside = true;\n hasActiveSeries = true;\n var data = series[dataKey];\n if (isXAxis) {\n (series.onPoint || series).getRadii(0, 0, series);\n if (series.onPoint) {\n series.radii = series.onPoint.radii;\n }\n }\n if (range > 0) {\n var i = data.length;\n while (i--) {\n if (isNumber(data[i]) &&\n _this.dataMin <= data[i] &&\n data[i] <= _this.max) {\n var radius = series.radii && series.radii[i] || 0;\n pxMin = Math.min(((data[i] - min) * transA) - radius, pxMin);\n pxMax = Math.max(((data[i] - min) * transA) + radius, pxMax);\n }\n }\n }\n }\n });\n // Apply the padding to the min and max properties\n if (hasActiveSeries && range > 0 && !this.logarithmic) {\n pxMax -= axisLength;\n transA *= (axisLength +\n Math.max(0, pxMin) - // #8901\n Math.min(pxMax, axisLength)) / axisLength;\n [\n ['min', 'userMin', pxMin],\n ['max', 'userMax', pxMax]\n ].forEach(function (keys) {\n if (typeof pick(_this.options[keys[0]], _this[keys[1]]) === 'undefined') {\n _this[keys[0]] += keys[2] / transA;\n }\n });\n }\n }", "function chartWidth() {\n\t\tif (window.innerWidth < 1200){\n\t\t\tdynamicWidth = ((window.innerWidth/100) * 95);\n\t\t\tdynamicMargin = {top: 0, right: 0, left: 0, bottom: 0};\n\t\t} else {\n\t\t\tdynamicWidth = (((window.innerWidth/100) * 95) - 670);\n\t\t\tdynamicMargin = {top: 0, right: 30, left: 30, bottom: 0};\n\t\t}\n\t}", "get offsetSize() {\n const {paddingTop, paddingRight, paddingBottom, paddingLeft, borderWidth} = this.attributes;\n const [width, height] = this.contentSize;\n const bw2 = 2 * borderWidth;\n return [paddingLeft + width + paddingRight + bw2,\n paddingTop + height + paddingBottom + bw2];\n }", "function set_sizes() {\n tab_width = $nav_tab.outerWidth();\n list_width = $nav_list.outerWidth();\n tabs_displayed = list_width / tab_width;\n //recalculate height of the currently displayed slide\n var this_sectionHeight = $('.slick-active').outerHeight();\n $sections.css('height', this_sectionHeight + 'px');\n //use tab width and tab index to set horizontal spacing\n $nav_tab.each(function() {\n var index = $(this).index();\n var left_pos = (tab_width * (index - pos_counter)) + 'px';\n $(this).css('left', left_pos);\n });\n}", "get offsetSize() {\n const {\n paddingTop,\n paddingRight,\n paddingBottom,\n paddingLeft,\n borderWidth\n } = this.attributes;\n const [width, height] = this.contentSize;\n const bw2 = 2 * borderWidth;\n return [paddingLeft + width + paddingRight + bw2, paddingTop + height + paddingBottom + bw2];\n }", "function calcWidth(obj){\n \n var titles = $(obj).siblings('.space').children('.route').children('.title');\n \n $(titles).each(function(index, element){\n var pTitleWidth = parseInt($(obj).css('width'));\n var leftOffset = parseInt($(obj).siblings('.space').css('margin-left'));\n \n var newWidth = pTitleWidth - leftOffset;\n \n if ($(obj).attr('id') == 'title0'){\n newWidth = newWidth - 10;\n }\n \n $(element).css({\n 'width': newWidth,\n })\n \n calcWidth(element);\n });\n \n sorting();\n }", "function wa(e){for(var t=e.display,a={},n={},r=t.gutters.clientLeft,f=t.gutters.firstChild,o=0;f;f=f.nextSibling,++o)a[e.options.gutters[o]]=f.offsetLeft+f.clientLeft+r,n[e.options.gutters[o]]=f.clientWidth;return{fixedPos:xa(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:a,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}", "function setupSliderWidth() {\n // resets sliderElement\n sliderElement.style.width = '0px';\n\n var totalWidth = 0;\n elements.forEach(function (element, index) {\n slideWidth = element.offsetWidth;\n totalWidth = totalWidth += slideWidth;\n });\n sliderElement.style.width = totalWidth + 'px';\n }", "getAllItemsWidth() {\n return this.items.length * (this.initialItemsWidth / this.initialItemElements.length);\n }", "_calcColumnWidths() {\n if (!this._container) {\n return;\n }\n\n const columnWidths = Array.prototype.slice.call(this._container.querySelectorAll('.md-panel-header'))\n .reduce((maxes, row) => {\n const columns = row.querySelectorAll('.md-panel-column');\n for (let i = 0; i < columns.length; i++) {\n // Only need to include the offsetWidth of the column because the child will really\n // determine the width of the column. Since it has already been defined at this point,\n // no additional work needs to be done.\n maxes[i] = Math.max(\n columns[i].offsetWidth,\n maxes[i] || 0\n );\n }\n\n return maxes;\n }, [0]);\n\n this.setState({ columnWidths });\n }", "function changeCanvasElementsWidth() {\n canvasWrapperParentElement.style.width = `calc(100% - ${rightSideBar.width + leftSideBar.width}px)`;\n // could be the reason for uneven results\n zoomOverflowWrapperParentElement.style.width = `calc(100% - ${rightSideBar.width + leftSideBar.width + 1}px)`;\n}", "function setPaneDimensions() {\n pane_width = element.width();\n $(options.paneItemsSelector, element).each(function () {\n $(this).width(pane_width);\n });\n container.width(pane_width * pane_count);\n }", "_updateSizeRowsCols() {\n const that = this;\n\n that.$.container.removeAttribute('style');\n\n setTimeout(function () {\n if ((that.horizontalScrollBarVisibility === 'disabled' || that.horizontalScrollBarVisibility === 'hidden') && (that.verticalScrollBarVisibility === 'disabled' || that.verticalScrollBarVisibility === 'hidden')) {\n return;\n }\n\n const rectObject = that.getBoundingClientRect();\n\n that.$.container.style.width = rectObject.width + 'px';\n that.$.container.style.height = rectObject.height + 'px';\n }, 0);\n }", "function calculateHorizontals(segments) {\n\t\tvar isRTL = opt('isRTL');\n\t\tfor (var i=0; i<segments.length; i++) {\n\t\t\tvar segment = segments[i];\n\n\t\t\t// Determine functions used for calulating the elements left/right coordinates,\n\t\t\t// depending on whether the view is RTL or not.\n\t\t\t// NOTE:\n\t\t\t// colLeft/colRight returns the coordinate butting up the edge of the cell.\n\t\t\t// colContentLeft/colContentRight is indented a little bit from the edge.\n\t\t\tvar leftFunc = (isRTL ? segment.isEnd : segment.isStart) ? colContentLeft : colLeft;\n\t\t\tvar rightFunc = (isRTL ? segment.isStart : segment.isEnd) ? colContentRight : colRight;\n\n\t\t\tvar left = leftFunc(segment.leftCol);\n\t\t\tvar right = rightFunc(segment.rightCol);\n\t\t\tsegment.left = left;\n\t\t\tsegment.outerWidth = right - left;\n\t\t}\n\t}", "function calculateHorizontals(segments) {\n\t\tvar isRTL = opt('isRTL');\n\t\tfor (var i=0; i<segments.length; i++) {\n\t\t\tvar segment = segments[i];\n\n\t\t\t// Determine functions used for calulating the elements left/right coordinates,\n\t\t\t// depending on whether the view is RTL or not.\n\t\t\t// NOTE:\n\t\t\t// colLeft/colRight returns the coordinate butting up the edge of the cell.\n\t\t\t// colContentLeft/colContentRight is indented a little bit from the edge.\n\t\t\tvar leftFunc = (isRTL ? segment.isEnd : segment.isStart) ? colContentLeft : colLeft;\n\t\t\tvar rightFunc = (isRTL ? segment.isStart : segment.isEnd) ? colContentRight : colRight;\n\n\t\t\tvar left = leftFunc(segment.leftCol);\n\t\t\tvar right = rightFunc(segment.rightCol);\n\t\t\tsegment.left = left;\n\t\t\tsegment.outerWidth = right - left;\n\t\t}\n\t}", "function calculateHorizontals(segments) {\n\t\tvar isRTL = opt('isRTL');\n\t\tfor (var i=0; i<segments.length; i++) {\n\t\t\tvar segment = segments[i];\n\n\t\t\t// Determine functions used for calulating the elements left/right coordinates,\n\t\t\t// depending on whether the view is RTL or not.\n\t\t\t// NOTE:\n\t\t\t// colLeft/colRight returns the coordinate butting up the edge of the cell.\n\t\t\t// colContentLeft/colContentRight is indented a little bit from the edge.\n\t\t\tvar leftFunc = (isRTL ? segment.isEnd : segment.isStart) ? colContentLeft : colLeft;\n\t\t\tvar rightFunc = (isRTL ? segment.isStart : segment.isEnd) ? colContentRight : colRight;\n\n\t\t\tvar left = leftFunc(segment.leftCol);\n\t\t\tvar right = rightFunc(segment.rightCol);\n\t\t\tsegment.left = left;\n\t\t\tsegment.outerWidth = right - left;\n\t\t}\n\t}", "function calculateHorizontals(segments) {\n\t\tvar isRTL = opt('isRTL');\n\t\tfor (var i=0; i<segments.length; i++) {\n\t\t\tvar segment = segments[i];\n\n\t\t\t// Determine functions used for calulating the elements left/right coordinates,\n\t\t\t// depending on whether the view is RTL or not.\n\t\t\t// NOTE:\n\t\t\t// colLeft/colRight returns the coordinate butting up the edge of the cell.\n\t\t\t// colContentLeft/colContentRight is indented a little bit from the edge.\n\t\t\tvar leftFunc = (isRTL ? segment.isEnd : segment.isStart) ? colContentLeft : colLeft;\n\t\t\tvar rightFunc = (isRTL ? segment.isStart : segment.isEnd) ? colContentRight : colRight;\n\n\t\t\tvar left = leftFunc(segment.leftCol);\n\t\t\tvar right = rightFunc(segment.rightCol);\n\t\t\tsegment.left = left;\n\t\t\tsegment.outerWidth = right - left;\n\t\t}\n\t}", "function calculateHorizontals(segments) {\n\t\tvar isRTL = opt('isRTL');\n\t\tfor (var i=0; i<segments.length; i++) {\n\t\t\tvar segment = segments[i];\n\n\t\t\t// Determine functions used for calulating the elements left/right coordinates,\n\t\t\t// depending on whether the view is RTL or not.\n\t\t\t// NOTE:\n\t\t\t// colLeft/colRight returns the coordinate butting up the edge of the cell.\n\t\t\t// colContentLeft/colContentRight is indented a little bit from the edge.\n\t\t\tvar leftFunc = (isRTL ? segment.isEnd : segment.isStart) ? colContentLeft : colLeft;\n\t\t\tvar rightFunc = (isRTL ? segment.isStart : segment.isEnd) ? colContentRight : colRight;\n\n\t\t\tvar left = leftFunc(segment.leftCol);\n\t\t\tvar right = rightFunc(segment.rightCol);\n\t\t\tsegment.left = left;\n\t\t\tsegment.outerWidth = right - left;\n\t\t}\n\t}", "function calculateSpacing(){\n\t\t\tvar max_label = '';\n\t\t\tfor(var i = 0; i < yaxis.ticks.length; ++i){\n\t\t\t\tvar l = yaxis.ticks[i].label.length;\n\t\t\t\tif(l > max_label.length){\n\t\t\t\t\tmax_label = yaxis.ticks[i].label;\n\t\t\t\t}\n\t\t\t}\t\n\t\t\tvar dummyDiv = target.insert('<div style=\"position:absolute;top:-10000px;font-size:smaller\" class=\"flotr-grid-label\">' + max_label + '</div>').down(0).next(1);\n\t\t\tlabelMaxWidth = dummyDiv.getWidth();\n\t\t\tlabelMaxHeight = dummyDiv.getHeight();\n\t\t\tdummyDiv.remove();\n\t\n\t\t\t/**\n\t\t\t * Grid outline line width.\n\t\t\t */\n\t\t\tvar maxOutset = 2;\n\t\t\tif(options.points.show){\n\t\t\t\tmaxOutset = Math.max(maxOutset, options.points.radius + options.points.lineWidth/2);\n\t\t\t}\n\t\t\tfor(var j = 0; j < series.length; ++j){\n\t\t\t\tif (series[j].points.show){\n\t\t\t\t\tmaxOutset = Math.max(maxOutset, series[j].points.radius + series[j].points.lineWidth/2);\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\tplotOffset.left = plotOffset.right = plotOffset.top = plotOffset.bottom = maxOutset;\n\t\t\tplotOffset.left += labelMaxWidth + options.grid.labelMargin;\n\t\t\tplotOffset.bottom += labelMaxHeight + options.grid.labelMargin;\t\t\t\n\t\t\tplotWidth = canvasWidth - plotOffset.left - plotOffset.right;\n\t\t\tplotHeight = canvasHeight - plotOffset.bottom - plotOffset.top;\n\t\t\thozScale = plotWidth / (xaxis.max - xaxis.min);\n\t\t\tvertScale = plotHeight / (yaxis.max - yaxis.min);\n\t\t}", "function W(){var t=l.getBoundingClientRect(),e=\"offset\"+[\"Width\",\"Height\"][i.ort];return 0===i.ort?t.width||l[e]:t.height||l[e]}", "generate () {\n _.forEach(this.config, item => {\n for (let i = 0; i < item.sizeX; i++) {\n item.rows[i] = this.calc(item, i, true);\n }\n for (let i = 0; i < item.sizeY; i++) {\n item.cols[i] = this.calc(item, i, false);\n }\n\n item.width = Math.max(...item.rows.map(r => r.length));\n });\n }", "setPanelCount(c) {\n this.panelWidth = this.width / c;\n }", "function _calc() {\n var winW = $w.width() < $t.width() ? $t.width() : $w.width();\n var realW = winW - 2 * cfg.navWidth - cfg.perNumber;\n var itemW = Math.floor(realW / cfg.perNumber);\n return itemW;\n }", "get width() {\n const noOverlap = this._width\n const overlap = Math.min(100, this._width * 1.7)\n\n // Containers can always grow.\n if (this.rows) {\n return overlap\n }\n\n // Rows can grow if they have leaves.\n if (this.leaves) {\n return this.leaves.length > 0 ? overlap : noOverlap\n }\n\n // Leaves can grow unless they're the last item in a row.\n const { leaves } = this.row\n const index = leaves.indexOf(this)\n return index === leaves.length - 1 ? noOverlap : overlap\n }", "updateWidth() {\n this.get('objectlistviewEventsService').updateWidthTrigger();\n }", "updateInnerWidthDependingOnChilds(){}", "computeWidth () {\n this.div.style.width = 'auto'\n this.column.style.width = 'auto'\n\n var width = stringMeter.width(this.name, 12, 'Roboto-Medium')\n + 44 // padding with fix button\n + 28 // padding without fix button\n + 66 // sortDiv\n + 1 // error\n\n for (var p = 0, lp = this.pcm.products.length; p < lp; p++) {\n var divWidth = stringMeter.width(this.pcm.products[p].cellsByFeatureId[this.id].div.innerText, 13, 'Roboto-Regular') + 56 + 1 // 56 = padding, 1 for error\n if (divWidth > width) width = divWidth\n }\n\n this.div.style.width = width + 'px'\n this.column.style.width = width + 'px'\n }", "innerWidthDependsOnChilds(){if(this.__controlStretchedWidth)return!0;if(this.__columnOptions)for(const columnOption of this.__columnOptions)if(\"Content\"===columnOption.widthMode)return!0;return super.innerWidthDependsOnChilds()}", "function calcWidth(maxX) {\n // icons are 16pixels wide. 20 for graphic border.\n // Extra 22 is for window border (required).\n return (maxX+1)*16+20 +22 +8; }", "function setPaneDimensions() {\n pane_width = $(window).width();\n\t\t\t\n panes.each(function() {\n $(this).width(pane_width);\n });\n\n container.width(pane_width*pane_count);\n\t\t\t\n\t\t\t\n\t\t\n\n }", "function setPaneDimensions() {\n pane_width = $(window).width();\n\t\t\t\n panes.each(function() {\n $(this).width(pane_width);\n });\n\n container.width(pane_width*pane_count);\n\t\t\t\n\t\t\t\n\t\t\n\n }", "function getWidth() {\n\tlet item = $('.team-slider .owl-item'),\n\t\t\tteam = $('.single-team .image');\n\t\n\tteam.css('width', item.outerWidth());\n\tteam.css('height', item.outerWidth());\n}", "function setWidth() {\r\n /*determind the siblings of the box in focus*/\r\n var boxSiblings = $(this).siblings();\r\n /*count the number of siblings a box has*/\r\n var numberOfSiblings = boxSiblings.length;\r\n /*determine the size the box should scale to*/\r\n var lg = newFeatureBoxWidth;\r\n var lgString = lg + \"%\";\r\n /*determine the remaining space int eh row after the box has scaled*/\r\n var rem = (100 - lg) / numberOfSiblings;\r\n var remString = rem + \"%\";\r\n /*determine which box should be scaled*/\r\n var boxFocus = $(this);\r\n\r\n /*disable box scaling on mobile/devices smaller than 769px*/\r\n if ($(window).width() >= 769) {\r\n TweenLite.to(boxFocus, 0.5, {width: lgString});\r\n TweenLite.to(boxSiblings, 0.5, {width: remString});\r\n }\r\n }", "function setPositionForInfoBox(e) {\n // Find closest X axis value, according to pointer position\n const chartIndex = parseInt(e.target.id.split('--')[1]);\n const minX = chartData[chartIndex].columns[0][chartData[chartIndex].leftBorderIndex || 1];\n const maxX = chartData[chartIndex].columns[0][chartData[chartIndex].rightBorderIndex];\n const closestX = findClosestXValueOnAxis(e.clientX - containerPadding, chartIndex, true);\n const closestXValueInPx = (closestX.closestXValue - minX) / (maxX - minX) * canvasWidth;\n\n const infoBoxContainer = e.target.closest('.chart-block').getElementsByClassName('info-box-container')[0];\n infoBoxContainer.classList.add('shown');\n\n if (closestX.pointIndex / (chartData[chartIndex].rightBorderIndex - chartData[chartIndex].leftBorderIndex + 1) > 0.5) {\n infoBoxContainer.classList.add('right');\n } else {\n infoBoxContainer.classList.remove('right');\n }\n\n infoBoxContainer.style.left = `${closestXValueInPx}px`;\n infoBoxContainer.getElementsByClassName('date')[0].innerHTML = formDateForView(closestX.closestXValue, true);\n\n // Fill values\n const values = infoBoxContainer.getElementsByClassName('lines')[0].getElementsByClassName('value');\n for (let i = 0; i < values.length; i++) {\n if (chartData[chartIndex].included.indexOf(values[i].getAttribute('name')) > -1) {\n values[i].style.display = 'block';\n values[i].innerHTML = `<div class=\"number\">${chartData[chartIndex].columns[i + 1][chartData[chartIndex].leftBorderIndex + closestX.pointIndex]}</div>\n <div class=\"line-name\">${chartData[chartIndex].columns[i + 1][0]}</div>`;\n } else {\n values[i].style.display = 'none';\n }\n }\n\n // Draw circles: Y values for X point\n const circles = infoBoxContainer.getElementsByClassName('point-circle');\n for (let i = 0; i < circles.length; i++) {\n chartData[chartIndex].columns.forEach((col, j) => {\n if (col[0] === circles[i].getAttribute('name')) {\n if (chartData[chartIndex].included.indexOf(col[0]) > -1) {\n circles[i].style.display = 'block';\n circles[i].style.top = `${canvasHeight - col[chartData[chartIndex].leftBorderIndex + closestX.pointIndex] * canvasHeight / chartData[chartIndex].maxAmongAllLines - circlesRadius}px`;\n } else {\n circles[i].style.display = 'none';\n }\n }\n });\n }\n}", "function updateWidth(w) {\r\n\tif (anySelected) {\r\n\t\tvar shape = previousSelectedShape;\r\n\t\tshape.outlineWidth = w;\r\n\t\tdrawShapes();\r\n\t}\r\n}", "function sizesSum() {\n\t\t\t\t\tif (o.advanced.updateOnSelectorChange === true) {\n\t\t\t\t\t\to.advanced.updateOnSelectorChange = \"*\";\n\t\t\t\t\t}\n\t\t\t\t\tvar total = 0,\n\t\t\t\t\t sel = mCSB_container.find(o.advanced.updateOnSelectorChange);\n\t\t\t\t\tif (o.advanced.updateOnSelectorChange && sel.length > 0) {\n\t\t\t\t\t\tsel.each(function () {\n\t\t\t\t\t\t\ttotal += this.offsetHeight + this.offsetWidth;\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\treturn total;\n\t\t\t\t}", "function calcNestColWidth(){\n var windowWidth = $window.width();\n if (windowWidth > 1024) {\n return windowWidth / 14;\n } else if (windowWidth < 768) {\n return windowWidth / 4;\n } else {\n return windowWidth / 9;\n }\n }", "get Width() { return this.x2 - this.x1; }", "get Width() { return this.x2 - this.x1; }", "function init_resize_bars() {\r\n for (var i = 0; i < array.length; i++) {\r\n for (var x = 0; x < res_types.length; x++) {\r\n var inner = document.getElementById('p_' + i + '_' + x);\r\n var el = array[i][x+1];\r\n inner.style.left = 100*(el[0]-res_min)/(res_max-res_min) + \"%\";\r\n inner.style.width = 100*(el[1]-el[0])/(res_max-res_min) + \"%\";\r\n }\r\n document.getElementById(label_prefix + i).innerHTML = array[i][0];\r\n }\r\n}", "function sizesSum(){\n\t\t\t\tif(o.advanced.updateOnSelectorChange===true){o.advanced.updateOnSelectorChange=\"*\";}\n\t\t\t\tvar total=0,sel=mCSB_container.find(o.advanced.updateOnSelectorChange);\n\t\t\t\tif(o.advanced.updateOnSelectorChange && sel.length>0){sel.each((function(){total+=this.offsetHeight+this.offsetWidth;}));}\n\t\t\t\treturn total;\n\t\t\t}", "function setPaneDimensions() {\n\t\t\t\tpane_width = element.width();\n\t\t\t\tpanes.each( function () {\n\t\t\t\t\t$( this ).width( pane_width );\n\t\t\t\t} );\n\t\t\t\tcontainer.width( pane_width * pane_count );\n\t\t\t}", "getXoffset() {\n return labelWidth + this.getFullwidth() + barHeight * 2 + 19\n }", "function onWidths(obj) {\n // Initialize 0 if not already there\n if (!obj[0])\n obj[0] = _.noop;\n\n var base = function() {\n var $width = window.outerWidth;\n var reduction = function(a, v, k) {return $width >= +k && +k > +a ? +k : +a;};\n obj[_.reduce(obj, reduction, 0)]($width);\n };\n\n $(base);\n $window.resize(base);\n}", "function sizesSum(){\r\n\t\t\t\tif(o.advanced.updateOnSelectorChange===true){o.advanced.updateOnSelectorChange=\"*\";}\r\n\t\t\t\tvar total=0,sel=mCSB_container.find(o.advanced.updateOnSelectorChange);\r\n\t\t\t\tif(o.advanced.updateOnSelectorChange && sel.length>0){sel.each(function(){total+=this.offsetHeight+this.offsetWidth;});}\r\n\t\t\t\treturn total;\r\n\t\t\t}", "function sizesSum(){\r\n\t\t\t\tif(o.advanced.updateOnSelectorChange===true){o.advanced.updateOnSelectorChange=\"*\";}\r\n\t\t\t\tvar total=0,sel=mCSB_container.find(o.advanced.updateOnSelectorChange);\r\n\t\t\t\tif(o.advanced.updateOnSelectorChange && sel.length>0){sel.each(function(){total+=this.offsetHeight+this.offsetWidth;});}\r\n\t\t\t\treturn total;\r\n\t\t\t}", "function sizesSum(){\r\n\t\t\t\tif(o.advanced.updateOnSelectorChange===true){o.advanced.updateOnSelectorChange=\"*\";}\r\n\t\t\t\tvar total=0,sel=mCSB_container.find(o.advanced.updateOnSelectorChange);\r\n\t\t\t\tif(o.advanced.updateOnSelectorChange && sel.length>0){sel.each(function(){total+=this.offsetHeight+this.offsetWidth;});}\r\n\t\t\t\treturn total;\r\n\t\t\t}", "function setWidths(evt) {\n let newColWidth = (resize.colStartWidth + evt.clientX - resize.startX),\n newSibWidth = (resize.sibStartWidth - evt.clientX + resize.startX),\n numToPercentString = (num) => {\n return num.toString() + '%';\n },\n percent = (width) => {\n return (width / resize.rowWidth * 100);\n },\n colWidthPercent = percent(newColWidth),\n sibWidthPercent = percent(newSibWidth);\n\n column.dataset.colWidth = numToPercentString(Math.round(colWidthPercent));\n sibling.dataset.colWidth = numToPercentString(Math.round(sibWidthPercent));\n\n column.style.width = numToPercentString(colWidthPercent);\n sibling.style.width = numToPercentString(sibWidthPercent);\n }", "function etimateWidthForImages(images) {\n return function(crossSection) {\n var timeSeries = getWidthTimeSeries(images, crossSection) \n \n var widths = timeSeries.aggregate_array('width')\n var widths_masked = timeSeries.aggregate_array('masked')\n var times = timeSeries.aggregate_array('system:time_start')\n var quality = timeSeries.aggregate_array('quality_score')\n var mission = timeSeries.aggregate_array('MISSION')\n \n return crossSection.set({ \n times: times,\n widths: widths,\n widths_masked: widths_masked,\n quality: quality,\n mission: mission\n })\n }\n}", "function sizesSum(){\n\t\t\t\tif(o.advanced.updateOnSelectorChange===true){o.advanced.updateOnSelectorChange=\"*\";}\n\t\t\t\tvar total=0,sel=mCSB_container.find(o.advanced.updateOnSelectorChange);\n\t\t\t\tif(o.advanced.updateOnSelectorChange && sel.length>0){sel.each(function(){total+=this.offsetHeight+this.offsetWidth;});}\n\t\t\t\treturn total;\n\t\t\t}", "function sizesSum(){\n\t\t\t\tif(o.advanced.updateOnSelectorChange===true){o.advanced.updateOnSelectorChange=\"*\";}\n\t\t\t\tvar total=0,sel=mCSB_container.find(o.advanced.updateOnSelectorChange);\n\t\t\t\tif(o.advanced.updateOnSelectorChange && sel.length>0){sel.each(function(){total+=this.offsetHeight+this.offsetWidth;});}\n\t\t\t\treturn total;\n\t\t\t}", "function sizesSum(){\n\t\t\t\tif(o.advanced.updateOnSelectorChange===true){o.advanced.updateOnSelectorChange=\"*\";}\n\t\t\t\tvar total=0,sel=mCSB_container.find(o.advanced.updateOnSelectorChange);\n\t\t\t\tif(o.advanced.updateOnSelectorChange && sel.length>0){sel.each(function(){total+=this.offsetHeight+this.offsetWidth;});}\n\t\t\t\treturn total;\n\t\t\t}", "function sizesSum(){\n\t\t\t\tif(o.advanced.updateOnSelectorChange===true){o.advanced.updateOnSelectorChange=\"*\";}\n\t\t\t\tvar total=0,sel=mCSB_container.find(o.advanced.updateOnSelectorChange);\n\t\t\t\tif(o.advanced.updateOnSelectorChange && sel.length>0){sel.each(function(){total+=this.offsetHeight+this.offsetWidth;});}\n\t\t\t\treturn total;\n\t\t\t}", "function adjustWidth() {\n width += 0.0166666666666667;\n bar.style.width = width + \"%\";\n bar.innerHTML = width.toFixed(1) + \"%\";\n\n // set width value to a var\n barWidth = width;\n }", "function sizesSum(){\r\n\t\t\t\tif(o.advanced.updateOnSelectorChange===true){o.advanced.updateOnSelectorChange=\"*\";}\r\n\t\t\t\tvar total=0,sel=mCSB_container.find(o.advanced.updateOnSelectorChange);\r\n\t\t\t\tif(o.advanced.updateOnSelectorChange && sel.length>0){sel.each(function(){total+=$(this).height()+$(this).width();});}\r\n\t\t\t\treturn total;\r\n\t\t\t}", "_getContainersSizeAndBreakPoint() {\n const that = this;\n\n that._switchContainerSize = (that.orientation === 'vertical' ? that.$.container.clientHeight : that.$.container.clientWidth);\n that._switchTrackLength = (that.orientation === 'vertical' ? (that._switchContainerSize - that.$.switchThumb.clientHeight) : (that._switchContainerSize - that.$.switchThumb.clientWidth));\n that._switchBreakPoint = that._switchContainerSize / 2;\n }", "setPxSizes() {\n var px_per_em = this.getEmSize( this.jqueryMap.$container.get(0) );\n\n this.stateMap.px_per_em = px_per_em;\n this.stateMap.alone_height_px = this.configMap.alone_height_em * px_per_em;\n this.stateMap.other_height_px = this.configMap.other_height_em * px_per_em;\n }", "function sizesSum(){\n\t\t\t\tif(o.advanced.updateOnSelectorChange===true){o.advanced.updateOnSelectorChange=\"*\";}\n\t\t\t\tvar total=0,sel=mCSB_container.find(o.advanced.updateOnSelectorChange);\n\t\t\t\tif(o.advanced.updateOnSelectorChange && sel.length>0){sel.each(function(){total+=$(this).height()+$(this).width();});}\n\t\t\t\treturn total;\n\t\t\t}", "width(width) {\n return this.attr('markerWidth', width);\n }", "function setWidth() {\n\t\t\t\tvar width;\n\t\t\t\tvar style = window.getComputedStyle ? window.getComputedStyle(ta, null) : false;\n\t\t\t\t\n\t\t\t\tif (style) {\n\n\t\t\t\t\twidth = ta.getBoundingClientRect().width;\n\n\t\t\t\t\tif (width === 0) {\n\t\t\t\t\t\twidth = parseInt(style.width,10);\n\t\t\t\t\t}\n\n\t\t\t\t\t$.each(['paddingLeft', 'paddingRight', 'borderLeftWidth', 'borderRightWidth'], function(i,val){\n\t\t\t\t\t\twidth -= parseInt(style[val],10);\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\twidth = Math.max($ta.width(), 0);\n\t\t\t\t}\n\n\t\t\t\tmirror.style.width = width + 'px';\n\t\t\t}" ]
[ "0.63623863", "0.628116", "0.6104059", "0.60975456", "0.60712206", "0.60562366", "0.60562366", "0.60562366", "0.60157585", "0.5921455", "0.5906814", "0.5867821", "0.5862238", "0.5848198", "0.5848198", "0.5848198", "0.58450717", "0.5810764", "0.58092725", "0.58091784", "0.5798377", "0.57947224", "0.57558334", "0.5755271", "0.57491946", "0.5717234", "0.5683415", "0.568087", "0.566048", "0.5654023", "0.5633404", "0.5608074", "0.5529661", "0.55233294", "0.55130374", "0.5497024", "0.5486749", "0.5467916", "0.5467916", "0.54567057", "0.54535604", "0.5436418", "0.5417232", "0.54117393", "0.5400016", "0.53819036", "0.5373288", "0.5364814", "0.5364756", "0.536143", "0.5358186", "0.5344841", "0.534139", "0.5331691", "0.5329472", "0.5329472", "0.5329472", "0.5329472", "0.5329472", "0.5327725", "0.5317328", "0.53061634", "0.530459", "0.5303889", "0.52894783", "0.52846324", "0.52798724", "0.52777225", "0.5277067", "0.52763855", "0.5246631", "0.5246631", "0.5246566", "0.52460545", "0.5245756", "0.52455246", "0.5243083", "0.5240335", "0.5238028", "0.5238028", "0.5235781", "0.52348185", "0.5233665", "0.5232241", "0.5230694", "0.5223298", "0.5223298", "0.5223298", "0.52232003", "0.5220683", "0.5218007", "0.5218007", "0.5218007", "0.5218007", "0.5215433", "0.52137285", "0.5209472", "0.5203409", "0.5202455", "0.52003735", "0.5197881" ]
0.0
-1
Calculate points location for each series.
function layoutSingleSeries(seriesModel, offset, boxWidth) { var coordSys = seriesModel.coordinateSystem; var data = seriesModel.getData(); var halfWidth = boxWidth / 2; var cDimIdx = seriesModel.get('layout') === 'horizontal' ? 0 : 1; var vDimIdx = 1 - cDimIdx; var coordDims = ['x', 'y']; var cDim = data.mapDimension(coordDims[cDimIdx]); var vDims = data.mapDimension(coordDims[vDimIdx], true); if (cDim == null || vDims.length < 5) { return; } for (var dataIndex = 0; dataIndex < data.count(); dataIndex++) { var axisDimVal = data.get(cDim, dataIndex); var median = getPoint(axisDimVal, vDims[2], dataIndex); var end1 = getPoint(axisDimVal, vDims[0], dataIndex); var end2 = getPoint(axisDimVal, vDims[1], dataIndex); var end4 = getPoint(axisDimVal, vDims[3], dataIndex); var end5 = getPoint(axisDimVal, vDims[4], dataIndex); var ends = []; addBodyEnd(ends, end2, 0); addBodyEnd(ends, end4, 1); ends.push(end1, end2, end5, end4); layEndLine(ends, end1); layEndLine(ends, end5); layEndLine(ends, median); data.setItemLayout(dataIndex, { initBaseline: median[vDimIdx], ends: ends }); } function getPoint(axisDimVal, dimIdx, dataIndex) { var val = data.get(dimIdx, dataIndex); var p = []; p[cDimIdx] = axisDimVal; p[vDimIdx] = val; var point; if (isNaN(axisDimVal) || isNaN(val)) { point = [NaN, NaN]; } else { point = coordSys.dataToPoint(p); point[cDimIdx] += offset; } return point; } function addBodyEnd(ends, point, start) { var point1 = point.slice(); var point2 = point.slice(); point1[cDimIdx] += halfWidth; point2[cDimIdx] -= halfWidth; start ? ends.push(point1, point2) : ends.push(point2, point1); } function layEndLine(ends, endCenter) { var from = endCenter.slice(); var to = endCenter.slice(); from[cDimIdx] -= halfWidth; to[cDimIdx] += halfWidth; ends.push(from, to); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addPoints() {\n\t//for every station in the dataset, create a marker\n for(var i=0; i<dataTrento.length; i++) {\n var station=dataTrento[i];\n createMarker(station);\n }\n for(var i=0; i<dataPergine.length; i++) {\n var station=dataPergine[i];\n createMarker(station);\n }\n for(var i=0; i<dataRovereto.length; i++) {\n var station=dataRovereto[i];\n createMarker(station);\n }\n}", "function getPoints() {}", "function locations(collections) {\n\tcollections.forEach(function(datass) {\n\t\taddMarkerPoints(datass.x,datass.y);\n\t});\n}", "findLabelPoints(){\r\n\t\tthis.labelPoints = [];\r\n\t\tvar finalPoints = [];\r\n\t\tfor(var i=0;i<this.points.length-1;i++){\r\n\t\t\tvar curLine = [this.points[i],this.points[i+1]];\r\n\t\t\tvar avgX = (curLine[0][0]+curLine[1][0])/2\r\n\t\t\tvar avgY = (curLine[0][1]+curLine[1][1])/2\r\n\t\t\tvar point = [avgX,avgY];\r\n\t\t\tfinalPoints.push(point);\r\n\t\t}\r\n\t\tthis.labelPoints = finalPoints;\r\n\t}", "function getPointValues() {\n var pointValues = [];\n\n if (!(chart instanceof Chartist.Line)) {\n return;\n }\n\n chart.on('draw', function(data) {\n if (data.type == 'point') {\n pointValues.push(data.x);\n }\n });\n\n return pointValues;\n }", "function updateChart(points) {\n var firstSeriesIndex = 0;\n var firstSeries = window.realTimeHighChart.series[firstSeriesIndex];\n var shiftSeries = firstSeries.data.length > 20; // shift if the series is longer than 20\n\n for (var index = 0; index < points.length; index++) {\n var point = points[index];\n\n // add the point\n window.realTimeHighChart.series[index].addPoint(point, true, shiftSeries);\n }\n }", "function DrawPoint(p_series) {\n\t\tvar TotalData = me.GetFilteredData(p_series);\n\t\tif (TotalData[0] == undefined || TotalData[0] == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// ### Variables ###\n\t\tvar categories = TotalData[0];\n\t\tvar data = TotalData[1]\n\t\tvar isVariableXAxis = TotalData[2];\n\t\tvar isDate = TotalData[3];\n\n\t\tvar colorNumber = p_series - 1;\n\t\t// Derived values\n\t\tvar incrementX = me.g_chartArea.maxX / (data.length - 1);\n\t\tvar valueX = isDate ? categories[0].valueOf() : categories[0];\n\t\tvar nextY = 1 - ((data[0] - me.minY) / (me.maxY - me.minY));\n\n\t\tvar pointBorder = me.g_chartArea.pointBorder == null\n\t\t\t|| me.g_chartArea.pointBorder[colorNumber] == null\n\t\t\t? me.g_chartArea.color[colorNumber] : me.g_chartArea.pointBorder[colorNumber];\n\n\t\tfor (var i = 0; i < (data.length - 1) ; i++) {\n\t\t\t// Get X\n\t\t\tvar x1;\n\t\t\tvar x2;\n\n\t\t\tif (isVariableXAxis) {\n\t\t\t\tvar nextX = (valueX - me.minX) / (me.maxX - me.minX);\n\t\t\t\tvar x1 = (nextX * me.g_chartArea.maxX) + me.g_chartArea.minX;\n\n\t\t\t\tvalueX = isDate ? categories[i + 1].valueOf() : categories[i + 1];\n\n\t\t\t\tvar nextX = (valueX - me.minX) / (me.maxX - me.minX);\n\t\t\t\tvar x2 = (nextX * me.g_chartArea.maxX) + me.g_chartArea.minX;\n\t\t\t} else {\n\t\t\t\tx1 = me.g_chartArea.minX + (i * incrementX);\n\t\t\t\tx2 = me.g_chartArea.minX + ((i + 1) * incrementX);\n\t\t\t}\n\t\t\t// Get Y\n\t\t\tvar y1 = (nextY * me.g_chartArea.maxY) + me.g_chartArea.minY;\n\t\t\tnextY = 1 - ((data[i + 1] - me.minY) / (me.maxY - me.minY));\n\n\t\t\tvar y2 = (nextY * me.g_chartArea.maxY) + me.g_chartArea.minY;\n\t\t\t// Check if a point is missing\n\t\t\tif (isNaN(y1) || isNaN(y2)) {\n\n\t\t\t\tif (!isNaN(y1)) {\n\t\t\t\t\t// if this point exists, draw it out\n\t\t\t\t\tvar category = isDate ? me.FormatDate(categories[i], me.g_xAxis.dateFormat) : categories[i];\n\n\t\t\t\t\tvar Circle = me.Circle(me.g_chartArea.reference, x1, y1, 0.75, me.g_chartArea.color[colorNumber], pointBorder);\n\n\t\t\t\t\tme.Event(Circle,\n\t\t\t\t\t\t\"mouseover\",\n\t\t\t\t\t\tme.HoverText,\n\t\t\t\t\t\tdata[i] + ', ' + category);\n\n\t\t\t\t\tme.Event(Circle,\n\t\t\t\t\t\t\"mouseout\",\n\t\t\t\t\t\tme.EndHoverText);\n\t\t\t\t}\n\n\t\t\t\tif (!isNaN(y2)) {\n\t\t\t\t\t// if this point exists, draw it out\n\t\t\t\t\tvar category = isDate ? me.FormatDate(categories[i + 1], me.g_xAxis.dateFormat) : categories[i + 1];\n\n\t\t\t\t\tvar Circle = me.Circle(me.g_chartArea.reference, x2, y2, 0.75, me.g_chartArea.color[colorNumber], pointBorder);\n\n\t\t\t\t\tme.Event(Circle,\n\t\t\t\t\t\t\"mouseover\",\n\t\t\t\t\t\tme.HoverText,\n\t\t\t\t\t\tdata[i + 1] + ', ' + category);\n\n\t\t\t\t\tme.Event(Circle,\n\t\t\t\t\t\t\"mouseout\",\n\t\t\t\t\t\tme.EndHoverText);\n\t\t\t\t}\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Draw the line\n\t\t\t//me.Line(me.g_chartArea.reference, x1, y1, x2, y2, me.g_chartArea.color[colorNumber]);\n\n\t\t\t// Draw the point\n\t\t\tvar category = isDate ? me.FormatDate(categories[i], me.g_xAxis.dateFormat) : categories[i];\n\n\t\t\tvar Circle = me.Circle(me.g_chartArea.reference, x1, y1, 0.75, me.g_chartArea.color[colorNumber], pointBorder);\n\n\t\t\tme.Event(Circle,\n\t\t\t\t\"mouseover\",\n\t\t\t\tme.HoverText,\n\t\t\t\tdata[i] + ', ' + category);\n\n\t\t\tme.Event(Circle,\n\t\t\t\t\"mouseout\",\n\t\t\t\tme.EndHoverText);\n\n\t\t\tif (i == (data.length - 2)) {\n\t\t\t\t// this is the last point\n\t\t\t\tvar category = isDate ? me.FormatDate(categories[i + 1], me.g_xAxis.dateFormat) : categories[i + 1];\n\n\t\t\t\tvar Circle = me.Circle(me.g_chartArea.reference, x2, y2, 0.75, me.g_chartArea.color[colorNumber], pointBorder);\n\n\t\t\t\tme.Event(Circle,\n\t\t\t\t\t\"mouseover\",\n\t\t\t\t\tme.HoverText,\n\t\t\t\t\tdata[i + 1] + ', ' + category);\n\n\t\t\t\tme.Event(Circle,\n\t\t\t\t\t\"mouseout\",\n\t\t\t\t\tme.EndHoverText);\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "function DrawPoint(p_series) {\n\t\tvar TotalData = me.GetFilteredData(p_series);\n\t\tif (TotalData[0] == undefined || TotalData[0] == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// ### Variables ###\n\t\tvar categories = TotalData[0];\n\t\tvar data = TotalData[1]\n\t\tvar isVariableXAxis = TotalData[2];\n\t\tvar isDate = TotalData[3];\n\n\t\tvar colorNumber = p_series - 1;\n\t\t// Derived values\n\t\tvar incrementX = me.g_chartArea.maxX / (data.length - 1);\n\t\tvar valueX = isDate ? categories[0].valueOf() : categories[0];\n\t\tvar nextY = 1 - ((data[0] - me.minY) / (me.maxY - me.minY));\n\n\t\tvar pointBorder = me.g_chartArea.pointBorder == null\n\t\t\t|| me.g_chartArea.pointBorder[colorNumber] == null\n\t\t\t? me.g_chartArea.color[colorNumber] : me.g_chartArea.pointBorder[colorNumber];\n\n\t\tfor (var i = 0; i < (data.length - 1) ; i++) {\n\t\t\t// Get X\n\t\t\tvar x1;\n\t\t\tvar x2;\n\n\t\t\tif (isVariableXAxis) {\n\t\t\t\tvar nextX = (valueX - me.minX) / (me.maxX - me.minX);\n\t\t\t\tvar x1 = (nextX * me.g_chartArea.maxX) + me.g_chartArea.minX;\n\n\t\t\t\tvalueX = isDate ? categories[i + 1].valueOf() : categories[i + 1];\n\n\t\t\t\tvar nextX = (valueX - me.minX) / (me.maxX - me.minX);\n\t\t\t\tvar x2 = (nextX * me.g_chartArea.maxX) + me.g_chartArea.minX;\n\t\t\t} else {\n\t\t\t\tx1 = me.g_chartArea.minX + (i * incrementX);\n\t\t\t\tx2 = me.g_chartArea.minX + ((i + 1) * incrementX);\n\t\t\t}\n\t\t\t// Get Y\n\t\t\tvar y1 = (nextY * me.g_chartArea.maxY) + me.g_chartArea.minY;\n\t\t\tnextY = 1 - ((data[i + 1] - me.minY) / (me.maxY - me.minY));\n\n\t\t\tvar y2 = (nextY * me.g_chartArea.maxY) + me.g_chartArea.minY;\n\t\t\t// Check if a point is missing\n\t\t\tif (isNaN(y1) || isNaN(y2)) {\n\n\t\t\t\tif (!isNaN(y1)) {\n\t\t\t\t\t// if this point exists, draw it out\n\t\t\t\t\tvar category = isDate ? me.FormatDate(categories[i], me.g_xAxis.dateFormat) : categories[i];\n\n\t\t\t\t\tvar Circle = me.Circle(me.g_chartArea.reference, x1, y1, 0.75, me.g_chartArea.color[colorNumber], pointBorder);\n\n\t\t\t\t\tme.Event(Circle,\n\t\t\t\t\t\t\"mouseover\",\n\t\t\t\t\t\tme.HoverText,\n\t\t\t\t\t\tdata[i] + ', ' + category);\n\n\t\t\t\t\tme.Event(Circle,\n\t\t\t\t\t\t\"mouseout\",\n\t\t\t\t\t\tme.EndHoverText);\n\t\t\t\t}\n\n\t\t\t\tif (!isNaN(y2)) {\n\t\t\t\t\t// if this point exists, draw it out\n\t\t\t\t\tvar category = isDate ? me.FormatDate(categories[i + 1], me.g_xAxis.dateFormat) : categories[i + 1];\n\n\t\t\t\t\tvar Circle = me.Circle(me.g_chartArea.reference, x2, y2, 0.75, me.g_chartArea.color[colorNumber], pointBorder);\n\n\t\t\t\t\tme.Event(Circle,\n\t\t\t\t\t\t\"mouseover\",\n\t\t\t\t\t\tme.HoverText,\n\t\t\t\t\t\tdata[i + 1] + ', ' + category);\n\n\t\t\t\t\tme.Event(Circle,\n\t\t\t\t\t\t\"mouseout\",\n\t\t\t\t\t\tme.EndHoverText);\n\t\t\t\t}\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Draw the line\n\t\t\tme.Line(me.g_chartArea.reference, x1, y1, x2, y2, me.g_chartArea.color[colorNumber]);\n\n\t\t\t// Draw the point\n\t\t\tvar category = isDate ? me.FormatDate(categories[i], me.g_xAxis.dateFormat) : categories[i];\n\n\t\t\tvar Circle = me.Circle(me.g_chartArea.reference, x1, y1, 0.75, me.g_chartArea.color[colorNumber], pointBorder);\n\n\t\t\tme.Event(Circle,\n\t\t\t\t\"mouseover\",\n\t\t\t\tme.HoverText,\n\t\t\t\tdata[i] + ', ' + category);\n\n\t\t\tme.Event(Circle,\n\t\t\t\t\"mouseout\",\n\t\t\t\tme.EndHoverText);\n\n\t\t\tif (i == (data.length - 2)) {\n\t\t\t\t// this is the last point\n\t\t\t\tvar category = isDate ? me.FormatDate(categories[i + 1], me.g_xAxis.dateFormat) : categories[i + 1];\n\n\t\t\t\tvar Circle = me.Circle(me.g_chartArea.reference, x2, y2, 0.75, me.g_chartArea.color[colorNumber], pointBorder);\n\n\t\t\t\tme.Event(Circle,\n\t\t\t\t\t\"mouseover\",\n\t\t\t\t\tme.HoverText,\n\t\t\t\t\tdata[i + 1] + ', ' + category);\n\n\t\t\t\tme.Event(Circle,\n\t\t\t\t\t\"mouseout\",\n\t\t\t\t\tme.EndHoverText);\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "getPointsRaw () {\n return [\n [37.782551, -122.445368],\n [37.782745, -122.444586],\n [37.782842, -122.443688],\n [37.782919, -122.442815],\n [37.782992, -122.442112],\n [37.783100, -122.441461],\n [37.783206, -122.440829],\n [37.783273, -122.440324],\n [37.783316, -122.440023],\n [37.783357, -122.439794],\n [37.783371, -122.439687],\n [37.783368, -122.439666],\n [37.783383, -122.439594],\n [37.783508, -122.439525],\n [37.783842, -122.439591],\n [37.784147, -122.439668],\n [37.784206, -122.439686],\n [37.784386, -122.439790],\n [37.784701, -122.439902],\n [37.784965, -122.439938],\n [37.785010, -122.439947],\n [37.785360, -122.439952],\n [37.785715, -122.440030],\n [37.786117, -122.440119],\n [37.786564, -122.440209],\n [37.786905, -122.440270],\n [37.786956, -122.440279],\n [37.800224, -122.433520],\n [37.800155, -122.434101],\n [37.800160, -122.434430],\n [37.800378, -122.434527],\n [37.800738, -122.434598],\n [37.800938, -122.434650]\n ]\n }", "function calculate_coordinates () {\n\t }", "function checkPointCoord(id) {\n\tvar points = [];\n\tsvg.selectAll(\".\" + id + \"-point\")\n .each(function(d) {\n \tvar point = [];\n\t\t\t \t$.grep(symptomInfoStack, function(stack, j) { \t\t\t\t\t\n\t\t\t\t\tif (stack.id != id && stack.id != 'default') {\n\t\t\t\t\t\t$.grep(stack.data, function(array, index) {\n\t\t\t\t\t\t\tif( xScale(new Date(array.date)) == xScale(new Date(d.date))\n\t\t\t\t\t\t\t\t&& yScale(array.value) == yScale(d.value))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tconsole.log(\"> SAME COORD: \"+ stack.id+index.toString());\n\t\t\t\t\t\t\t\tpoint.push({id: stack.id+index.toString(), value: d.value});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tpoints.push(point);\n\t\t\t}\n\t\t);\n\treturn points;\n}", "static cacheSlopeX(samplePoints, points) {\n var result = [];\n var spaces = samplePoints - 1;\n for (var i = 0; i < samplePoints; i++) {\n result.push(new Vector(lerp(first(points).x, last(points).x, i / spaces), 0));\n }\n var sectionIndex = 0;\n for (var point of result) {\n var a = points[sectionIndex];\n var b = points[sectionIndex + 1];\n while (!inRange(a.x, b.x, point.x)) {\n sectionIndex++;\n a = points[sectionIndex];\n b = points[sectionIndex + 1];\n }\n point.y = map(point.x, a.x, b.x, a.y, b.y);\n }\n return result;\n }", "get points() { return this._points; }", "initPoints() {\n this._points = [\n { id: 1, x: 4845573.7636, y: 8538444.1986 },\n { id: 40991, x: 4833272.2905, y: 8851879.3016 },\n { id: 3, x: 4841121.9158, y: 8533011.0179 },\n { id: 49192, x: 4885807.9349, y: 8735902.9555 },\n { id: 40994, x: 4831497.6883, y: 8844107.6121 },\n { id: 6, x: 4838140.2016, y: 8522348.6552 },\n { id: 7, x: 4837455.3198, y: 8539117.3266 },\n { id: 49196, x: 4882214.6475, y: 8724167.5077 },\n { id: 40999, x: 4829374.7513, y: 8859821.2174 },\n { id: 49198, x: 4881983.8495, y: 8731365.8486 },\n { id: 45108, x: 4784887.2271, y: 8736542.1748 },\n { id: 45111, x: 4783068.1658, y: 8741691.5428 },\n { id: 45112, x: 4781138.3706, y: 8724108.5082 },\n { id: 45115, x: 4778080.4764, y: 8730855.1873 },\n { id: 45121, x: 4773662.6047, y: 8737584.4445 },\n { id: 45123, x: 4771470.2781, y: 8730974.57 },\n { id: 45124, x: 4770033.5888, y: 8724357.968 },\n { id: 45126, x: 4770132.5006, y: 8742756.1221 },\n { id: 57430, x: 4651133.5325, y: 8564166.3124 },\n { id: 57431, x: 4649947.7363, y: 8574527.3911 },\n { id: 57432, x: 4648420.2475, y: 8581932.6169 },\n { id: 57433, x: 4646699.7672, y: 8566887.7299 },\n { id: 24642, x: 4671025.1343, y: 8648694.5889 },\n { id: 8247, x: 4852754.2341, y: 8441379.725 },\n { id: 24645, x: 4669448.5337, y: 8656404.5069 },\n { id: 8249, x: 4850769.8648, y: 8449468.0238 },\n { id: 57437, x: 4643864.6942, y: 8582553.0918 },\n { id: 57438, x: 4643047.4543, y: 8575052.6667 },\n { id: 57440, x: 4641484.2172, y: 8568899.615 },\n { id: 24651, x: 4664950.584, y: 8662439.1097 },\n { id: 8255, x: 4847103.6831, y: 8444416.9443 },\n { id: 24652, x: 4664011.3503, y: 8645504.779 },\n { id: 57444, x: 4637559.8974, y: 8580985.9182 },\n { id: 57445, x: 4636968.7959, y: 8571856.8208 },\n { id: 57447, x: 4635351.4645, y: 8565257.5349 },\n { id: 24656, x: 4661999.8118, y: 8651952.99 },\n { id: 8260, x: 4843341.3559, y: 8449078.7471 },\n { id: 24657, x: 4661598.9319, y: 8658541.6593 },\n { id: 24658, x: 4661620.9814, y: 8663252.7681 },\n { id: 8262, x: 4841522.4591, y: 8458715.6703 },\n { id: 8264, x: 4840271.9566, y: 8442728.8288 },\n { id: 24662, x: 4658418.9411, y: 8646120.2916 },\n { id: 8266, x: 4837711.0123, y: 8456724.9609 },\n { id: 24663, x: 4657525.3749, y: 8664178.9824 },\n { id: 8267, x: 4838003.1065, y: 8447700.828 },\n { id: 24664, x: 4657106.6719, y: 8654360.5278 },\n { id: 24667, x: 4654891.0932, y: 8659312.8827 },\n { id: 36978, x: 4815074.4873, y: 8629229.2459 },\n { id: 36980, x: 4813696.8075, y: 8639624.7224 },\n { id: 36986, x: 4808480.8037, y: 8629844.7891 },\n { id: 36987, x: 4807043.3983, y: 8622435.769 },\n { id: 36993, x: 4801868.2368, y: 8640892.6804 },\n { id: 36994, x: 4801363.2704, y: 8630342.2764 },\n { id: 61596, x: 4759856.792, y: 8428948.9905 },\n { id: 61597, x: 4759011.6692, y: 8438695.7709 },\n { id: 61599, x: 4758736.9359, y: 8424751.9062 },\n { id: 49302, x: 4883581.1233, y: 8716317.5643 },\n { id: 61601, x: 4758694.0585, y: 8419607.4773 },\n { id: 49304, x: 4882034.4233, y: 8708797.7416 },\n { id: 61602, x: 4757337.3297, y: 8434322.502 },\n { id: 20612, x: 4726884.4955, y: 8712834.2867 },\n { id: 20615, x: 4725984.3492, y: 8719460.95 },\n { id: 61608, x: 4754675.6519, y: 8428262.1365 },\n { id: 20618, x: 4721404.0859, y: 8719139.9542 },\n { id: 20619, x: 4721040.5256, y: 8711334.0662 },\n { id: 61612, x: 4753329.5224, y: 8422697.5282 },\n { id: 20624, x: 4716421.0654, y: 8721271.9634 },\n { id: 61615, x: 4751356.1493, y: 8434543.7994 },\n { id: 20625, x: 4715701.8335, y: 8709916.1772 },\n { id: 20628, x: 4712112.0631, y: 8717882.5207 },\n { id: 53421, x: 4687802.2242, y: 8532749.2921 },\n { id: 53422, x: 4686872.3477, y: 8521287.4844 },\n { id: 61621, x: 4748435.1229, y: 8418567.6572 },\n { id: 12434, x: 4779307.5841, y: 8450994.2065 },\n { id: 61623, x: 4747384.4654, y: 8423471.1476 },\n { id: 12435, x: 4777707.744, y: 8457252.5984 },\n { id: 61624, x: 4746227.6925, y: 8428802.5423 },\n { id: 53426, x: 4682126.2479, y: 8539466.3525 },\n { id: 12436, x: 4776715.1407, y: 8442878.7654 },\n { id: 61625, x: 4745049.71, y: 8435295.4147 },\n { id: 53427, x: 4679879.1011, y: 8527043.1572 },\n { id: 53428, x: 4679098.3825, y: 8532905.8255 },\n { id: 53432, x: 4673168.6113, y: 8522999.9055 },\n { id: 53433, x: 4672103.619, y: 8537693.5858 },\n { id: 12443, x: 4773343.0344, y: 8439304.745 },\n { id: 12444, x: 4771649.7924, y: 8454893.4028 },\n { id: 12447, x: 4770003.7549, y: 8447089.0213 },\n { id: 154, x: 4837923.3803, y: 8503688.173 },\n { id: 155, x: 4837459.7464, y: 8512006.0036 },\n { id: 12453, x: 4767073.8049, y: 8439662.2146 },\n { id: 69859, x: 4684373.4519, y: 8436107.2015 },\n { id: 69861, x: 4683201.117, y: 8425380.1458 },\n { id: 32973, x: 4856746.8842, y: 8696120.4124 },\n { id: 32976, x: 4853166.2667, y: 8687210.5286 },\n { id: 69869, x: 4675373.8011, y: 8435613.6206 },\n { id: 32978, x: 4849360.9302, y: 8693102.9097 },\n { id: 32979, x: 4848733.1769, y: 8685492.8914 },\n { id: 32981, x: 4846393.7924, y: 8700516.4742 },\n { id: 32984, x: 4842461.1527, y: 8687244.0655 },\n { id: 4296, x: 4799212.8973, y: 8564577.3201 },\n { id: 4297, x: 4798660.1907, y: 8573808.0204 },\n { id: 28893, x: 4651264.7262, y: 8635401.1655 },\n { id: 16596, x: 4748189.0844, y: 8775685.7499 },\n { id: 16597, x: 4746912.8779, y: 8782533.6861 },\n { id: 41192, x: 4825039.7972, y: 8850556.6709 },\n { id: 28895, x: 4649515.493, y: 8625305.8466 },\n { id: 41194, x: 4824394.0857, y: 8843896.1854 },\n { id: 28898, x: 4646878.2358, y: 8632936.1838 },\n { id: 16601, x: 4742564.8655, y: 8767350.981 },\n { id: 4304, x: 4793527.5292, y: 8565287.349 },\n { id: 28899, x: 4646605.6093, y: 8637651.0868 },\n { id: 28901, x: 4646709.8724, y: 8643228.5321 },\n { id: 16604, x: 4739877.7771, y: 8771735.1234 },\n { id: 41200, x: 4821384.0162, y: 8857427.9319 },\n { id: 16606, x: 4739731.9736, y: 8777271.5431 },\n { id: 28904, x: 4642704.9837, y: 8629445.7797 },\n { id: 16607, x: 4738967.9193, y: 8786137.9626 },\n { id: 211, x: 4841759.5197, y: 8574307.4225 },\n { id: 41202, x: 4818629.4998, y: 8849404.8323 },\n { id: 28906, x: 4642804.24, y: 8643421.3789 },\n { id: 4312, x: 4788189.9008, y: 8574847.6252 },\n { id: 28907, x: 4642414.8407, y: 8639101.0871 },\n { id: 28908, x: 4642019.755, y: 8635278.1995 },\n { id: 4314, x: 4787209.7644, y: 8563419.4359 },\n { id: 215, x: 4838325.3555, y: 8562713.1577 },\n { id: 41206, x: 4816023.2152, y: 8857745.0303 },\n { id: 28909, x: 4640208.1374, y: 8631212.2859 },\n { id: 216, x: 4838519.043, y: 8569905.424 },\n { id: 28913, x: 4639171.8324, y: 8644771.7166 },\n { id: 16616, x: 4731621.9822, y: 8781675.9347 },\n { id: 4319, x: 4783442.4572, y: 8571126.5227 },\n { id: 28916, x: 4636176.9791, y: 8639856.99 },\n { id: 28917, x: 4635955.429, y: 8635546.6397 },\n { id: 49413, x: 4890444.9347, y: 8760933.6966 },\n { id: 45314, x: 4782933.5767, y: 8715699.7561 },\n { id: 28918, x: 4635355.4158, y: 8628948.1374 },\n { id: 49418, x: 4882302.7025, y: 8778246.7343 },\n { id: 49419, x: 4881732.3174, y: 8765561.7243 },\n { id: 49421, x: 4880932.7349, y: 8772715.071 },\n { id: 45322, x: 4776952.1376, y: 8710823.2698 },\n { id: 45323, x: 4775200.4861, y: 8706639.8519 },\n { id: 45324, x: 4775502.0418, y: 8718761.2267 },\n { id: 12536, x: 4778064.1641, y: 8434727.2576 },\n { id: 45330, x: 4768188.5791, y: 8713830.4009 },\n { id: 12539, x: 4777031.8817, y: 8428291.2434 },\n { id: 45332, x: 4767201.2093, y: 8708756.684 },\n { id: 12540, x: 4775828.3423, y: 8423743.722 },\n { id: 12544, x: 4772850.4599, y: 8432158.5751 },\n { id: 12547, x: 4770841.497, y: 8436225.9983 },\n { id: 12548, x: 4769305.6383, y: 8419644.1396 },\n { id: 12549, x: 4769010.5054, y: 8427091.9958 },\n { id: 255, x: 4845487.4308, y: 8546652.9657 },\n { id: 259, x: 4841981.8098, y: 8553565.0144 },\n { id: 260, x: 4841230.272, y: 8541403.4438 },\n { id: 65846, x: 4704299.5496, y: 8401799.5793 },\n { id: 262, x: 4838748.1995, y: 8544827.9545 },\n { id: 65848, x: 4703786.7711, y: 8409685.2683 },\n { id: 65853, x: 4695588.2636, y: 8411959.6229 },\n { id: 65859, x: 4690625.8234, y: 8404492.2092 },\n { id: 20785, x: 4728852.9613, y: 8728153.8668 },\n { id: 20786, x: 4727029.1609, y: 8733826.0844 },\n { id: 20788, x: 4725448.0154, y: 8743119.9013 },\n { id: 20790, x: 4723800.2526, y: 8725769.9581 },\n { id: 20793, x: 4721540.6203, y: 8732639.5273 },\n { id: 20797, x: 4718912.4631, y: 8740472.1961 },\n { id: 20798, x: 4718374.1326, y: 8736158.346 },\n { id: 20801, x: 4715757.3548, y: 8745915.3159 },\n { id: 57693, x: 4632671.0929, y: 8571040.8634 },\n { id: 20802, x: 4714086.1862, y: 8729937.4116 },\n { id: 57695, x: 4630615.8402, y: 8580241.1424 },\n { id: 20805, x: 4712710.4933, y: 8737482.0239 },\n { id: 57697, x: 4630034.1448, y: 8574584.7136 },\n { id: 8509, x: 4850958.2733, y: 8430273.9243 },\n { id: 57702, x: 4625252.5066, y: 8569184.5257 },\n { id: 8514, x: 4847489.0979, y: 8420195.45 },\n { id: 57703, x: 4624311.8412, y: 8563527.9704 },\n { id: 8515, x: 4846697.4386, y: 8437758.9601 },\n { id: 57704, x: 4623966.3299, y: 8575275.9031 },\n { id: 57705, x: 4623886.1487, y: 8581305.3845 },\n { id: 37210, x: 4834772.0532, y: 8681073.1557 },\n { id: 37211, x: 4834591.6988, y: 8676361.2304 },\n { id: 37212, x: 4833853.8751, y: 8671167.4577 },\n { id: 57708, x: 4621904.0184, y: 8567727.9756 },\n { id: 37213, x: 4833325.1626, y: 8665917.2718 },\n { id: 57710, x: 4620200.356, y: 8575587.3931 },\n { id: 37216, x: 4829319.7587, y: 8661868.2033 },\n { id: 8524, x: 4840644.0345, y: 8429557.7753 },\n { id: 37219, x: 4827181.7696, y: 8680280.0359 },\n { id: 57715, x: 4616941.812, y: 8570222.4124 },\n { id: 37220, x: 4826495.0222, y: 8674680.3151 },\n { id: 57717, x: 4615981.0701, y: 8577810.3746 },\n { id: 70026, x: 4685896.4685, y: 8451020.9586 },\n { id: 70029, x: 4683210.1232, y: 8444606.4711 },\n { id: 33141, x: 4852192.1893, y: 8676415.7819 },\n { id: 33143, x: 4851697.6494, y: 8669899.2317 },\n { id: 33147, x: 4847543.8031, y: 8664123.8349 },\n { id: 70041, x: 4672501.0106, y: 8453345.8705 },\n { id: 70042, x: 4671676.8035, y: 8439387.3757 },\n { id: 33151, x: 4845340.8229, y: 8676529.2977 },\n { id: 33157, x: 4840562.6033, y: 8669173.4703 },\n { id: 24985, x: 4668450.3059, y: 8643343.1004 },\n { id: 24987, x: 4667414.8645, y: 8636853.9789 },\n { id: 24988, x: 4665649.3451, y: 8631651.8676 },\n { id: 24994, x: 4661331.2057, y: 8640366.9656 },\n { id: 24996, x: 4658000.0783, y: 8632080.8051 },\n { id: 24999, x: 4655752.7365, y: 8637911.8777 },\n { id: 25000, x: 4654398.8291, y: 8627611.0601 },\n { id: 25001, x: 4653184.5856, y: 8630850.8664 },\n { id: 16806, x: 4748135.3253, y: 8753065.0303 },\n { id: 16811, x: 4743832.9144, y: 8749753.2647 },\n { id: 16815, x: 4740974.3958, y: 8758841.5958 },\n { id: 70103, x: 4665324.6779, y: 8450959.2204 },\n { id: 16817, x: 4739601.5187, y: 8748443.7704 },\n { id: 70106, x: 4661321.1185, y: 8439694.2902 },\n { id: 16821, x: 4736571.4028, y: 8765478.3799 },\n { id: 70109, x: 4658782.2673, y: 8453634.8732 },\n { id: 16826, x: 4733701.8755, y: 8755463.7448 },\n { id: 70114, x: 4652110.166, y: 8448663.8978 },\n { id: 16827, x: 4732470.5371, y: 8748952.6654 },\n { id: 66018, x: 4707663.4045, y: 8381280.8154 },\n { id: 66026, x: 4699707.0193, y: 8386029.4252 },\n { id: 66028, x: 4698686.505, y: 8396886.9402 },\n { id: 4543, x: 4779103.5704, y: 8577014.4798 },\n { id: 41435, x: 4824042.894, y: 8828022.5049 },\n { id: 41437, x: 4822135.6702, y: 8836693.7491 },\n { id: 4546, x: 4777892.7168, y: 8564796.1432 },\n { id: 66033, x: 4695200.6442, y: 8382644.2414 },\n { id: 41445, x: 4816508.6286, y: 8838555.3643 },\n { id: 41447, x: 4814858.8176, y: 8830295.5968 },\n { id: 4556, x: 4771399.0499, y: 8572808.2151 },\n { id: 4560, x: 4768880.995, y: 8580767.2344 },\n { id: 4562, x: 4766894.0235, y: 8564760.1003 },\n { id: 57852, x: 4633065.2455, y: 8546317.3575 },\n { id: 16862, x: 4754081.0227, y: 8792303.8049 },\n { id: 57853, x: 4633235.7329, y: 8561419.8615 },\n { id: 16863, x: 4753113.5515, y: 8799568.0452 },\n { id: 4566, x: 4765097.3501, y: 8575700.7486 },\n { id: 61954, x: 4757329.1544, y: 8452201.9318 },\n { id: 49657, x: 4892752.0686, y: 8741825.078 },\n { id: 61955, x: 4756878.6424, y: 8457004.3705 },\n { id: 61956, x: 4756384.0616, y: 8443380.7266 },\n { id: 57857, x: 4628480.3065, y: 8552587.858 },\n { id: 49661, x: 4890158.5352, y: 8749320.9575 },\n { id: 57860, x: 4625192.8143, y: 8546475.8303 },\n { id: 61960, x: 4752179.6646, y: 8448763.6623 },\n { id: 475, x: 4832932.4492, y: 8516090.5459 },\n { id: 61962, x: 4751460.5337, y: 8457341.7881 },\n { id: 477, x: 4830898.8949, y: 8509683.1646 },\n { id: 61963, x: 4749977.111, y: 8439944.5235 },\n { id: 57864, x: 4622258.2678, y: 8549928.8672 },\n { id: 49666, x: 4888226.0899, y: 8756786.8212 },\n { id: 61964, x: 4749008.1604, y: 8453025.9491 },\n { id: 49667, x: 4887398.7396, y: 8741589.8577 },\n { id: 20974, x: 4710151.053, y: 8726738.3507 },\n { id: 479, x: 4829826.6921, y: 8500928.9349 },\n { id: 20976, x: 4709491.6408, y: 8741082.4244 },\n { id: 61967, x: 4746497.4568, y: 8451923.0316 },\n { id: 20977, x: 4709033.7083, y: 8745529.9358 },\n { id: 61968, x: 4745811.2115, y: 8457299.7624 },\n { id: 57869, x: 4617797.7163, y: 8555439.6558 },\n { id: 20978, x: 4707652.3725, y: 8730886.6651 },\n { id: 61969, x: 4745602.1042, y: 8440688.2615 },\n { id: 49672, x: 4884799.9848, y: 8751010.8363 },\n { id: 484, x: 4825707.4486, y: 8501362.8539 },\n { id: 485, x: 4826110.6954, y: 8514553.0748 },\n { id: 20981, x: 4703903.0853, y: 8738108.2496 },\n { id: 20982, x: 4703461.7165, y: 8728926.8553 },\n { id: 487, x: 4824363.0249, y: 8508429.7451 },\n { id: 20983, x: 4701999.0922, y: 8733790.8183 },\n { id: 20984, x: 4701659.7581, y: 8726488.9794 },\n { id: 20986, x: 4700501.3347, y: 8743003.2829 },\n { id: 493, x: 4819399.1101, y: 8501291.3331 },\n { id: 20992, x: 4695922.2785, y: 8733303.1609 },\n { id: 29192, x: 4652390.2464, y: 8650650.2735 },\n { id: 20994, x: 4694319.6305, y: 8741932.0169 },\n { id: 29193, x: 4650870.033, y: 8645196.9733 },\n { id: 29194, x: 4651107.9519, y: 8661687.1655 },\n { id: 29195, x: 4650589.1591, y: 8655570.518 },\n { id: 29198, x: 4647110.5557, y: 8655554.0677 },\n { id: 49695, x: 4765142.233, y: 8501168.7649 },\n { id: 29202, x: 4645623.6717, y: 8659460.2079 },\n { id: 45599, x: 4798936.0403, y: 8753940.4663 },\n { id: 45601, x: 4796173.0098, y: 8761399.1455 },\n { id: 29207, x: 4641215.1215, y: 8655354.1553 },\n { id: 45604, x: 4792911.6299, y: 8747153.1479 },\n { id: 29209, x: 4640434.3726, y: 8660834.9694 },\n { id: 8714, x: 4843577.7612, y: 8497359.1505 },\n { id: 8715, x: 4843882.324, y: 8484076.2569 },\n { id: 45607, x: 4790088.898, y: 8754735.8747 },\n { id: 8717, x: 4841004.5631, y: 8490436.7053 },\n { id: 45610, x: 4787711.8156, y: 8762918.2661 },\n { id: 29216, x: 4636229.0199, y: 8652570.9592 },\n { id: 8721, x: 4838296.5575, y: 8482119.2363 },\n { id: 29217, x: 4636175.551, y: 8657250.7836 },\n { id: 37420, x: 4838818.0092, y: 8698614.6527 },\n { id: 37424, x: 4832787.62, y: 8685624.1392 },\n { id: 37425, x: 4832720.2976, y: 8693608.8909 },\n { id: 16933, x: 4757578.3525, y: 8815984.2197 },\n { id: 37429, x: 4829307.1674, y: 8699407.9067 },\n { id: 37430, x: 4827343.9414, y: 8688945.2107 },\n { id: 33332, x: 4876820.5155, y: 8717832.916 },\n { id: 16936, x: 4754605.4235, y: 8811505.9074 },\n { id: 33335, x: 4874837.4917, y: 8706285.1288 },\n { id: 37435, x: 4821967.6898, y: 8686828.4479 },\n { id: 37437, x: 4821596.9258, y: 8696923.0636 },\n { id: 33341, x: 4870427.1187, y: 8713800.5907 },\n { id: 33345, x: 4866208.44, y: 8703835.085 },\n { id: 33350, x: 4862902.0352, y: 8719683.9321 },\n { id: 33351, x: 4861560.394, y: 8711921.6397 },\n { id: 49784, x: 4746920.965, y: 8511529.5164 },\n { id: 53895, x: 4667358.6799, y: 8527605.4645 },\n { id: 53897, x: 4665935.2674, y: 8533388.4431 },\n { id: 53901, x: 4661915.1225, y: 8538700.9303 },\n { id: 41606, x: 4843080.2435, y: 8865043.6437 },\n { id: 53908, x: 4653365.1949, y: 8537060.1295 },\n { id: 41612, x: 4833534.8544, y: 8871190.3103 },\n { id: 41615, x: 4829192.2024, y: 8867441.9185 },\n { id: 49828, x: 4749745.355, y: 8539071.4265 },\n { id: 49830, x: 4747439.5889, y: 8521122.3051 },\n { id: 49831, x: 4747192.1095, y: 8531593.94 },\n { id: 12941, x: 4795820.3538, y: 8470300.4134 },\n { id: 12943, x: 4794967.8882, y: 8475173.0704 },\n { id: 12944, x: 4795054.7997, y: 8459879.9008 },\n { id: 12945, x: 4793009.3719, y: 8465020.6464 },\n { id: 12949, x: 4790161.5741, y: 8469487.6003 },\n { id: 12952, x: 4788735.5329, y: 8475291.7382 },\n { id: 12953, x: 4788888.1985, y: 8462235.1169 },\n { id: 12957, x: 4785040.3205, y: 8459987.4248 },\n { id: 12958, x: 4784500.7174, y: 8470600.8113 },\n { id: 8861, x: 4851286.6435, y: 8462633.6993 },\n { id: 58050, x: 4651643.5161, y: 8594800.2894 },\n { id: 12961, x: 4782269.1895, y: 8464692.023 },\n { id: 8862, x: 4850788.3933, y: 8472095.6318 },\n { id: 58051, x: 4648947.1068, y: 8587813.7531 },\n { id: 58053, x: 4647721.8067, y: 8601718.4762 },\n { id: 58054, x: 4647040.9942, y: 8592910.6638 },\n { id: 8868, x: 4846124.3237, y: 8475801.9873 },\n { id: 58057, x: 4642612.9921, y: 8589042.6212 },\n { id: 8870, x: 4846107.1799, y: 8460039.5291 },\n { id: 58059, x: 4641470.2144, y: 8599189.5284 },\n { id: 8871, x: 4844307.8159, y: 8469327.072 },\n { id: 29370, x: 4631790.6614, y: 8651879.5284 },\n { id: 58064, x: 4635938.374, y: 8594467.448 },\n { id: 29371, x: 4630964.5359, y: 8646324.2134 },\n { id: 58065, x: 4635148.1716, y: 8585084.2569 },\n { id: 29372, x: 4631448.5776, y: 8665289.2165 },\n { id: 29373, x: 4630371.3743, y: 8654994.2124 },\n { id: 8879, x: 4838511.2897, y: 8471854.1106 },\n { id: 41672, x: 4821634.493, y: 8864941.8313 },\n { id: 8881, x: 4828823.1075, y: 8378671.56 },\n { id: 17080, x: 4748059.1523, y: 8814452.054 },\n { id: 17081, x: 4745327.1478, y: 8818231.7296 },\n { id: 29380, x: 4624747.526, y: 8646622.3722 },\n { id: 29381, x: 4623922.7832, y: 8656864.2475 },\n { id: 17084, x: 4742232.3311, y: 8807903.8611 },\n { id: 29382, x: 4623513.5598, y: 8662069.7747 },\n { id: 17085, x: 4739166.2941, y: 8817323.8719 },\n { id: 29383, x: 4622662.2942, y: 8650661.5622 },\n { id: 691, x: 4836664.8619, y: 8532858.2441 },\n { id: 693, x: 4835535.2975, y: 8538686.5217 },\n { id: 29390, x: 4616792.3318, y: 8656766.3887 },\n { id: 25292, x: 4689767.4887, y: 8674163.8685 },\n { id: 25293, x: 4689630.9673, y: 8681543.2985 },\n { id: 699, x: 4829823.5503, y: 8523515.3381 },\n { id: 700, x: 4829936.6747, y: 8532838.267 },\n { id: 4801, x: 4781235.7103, y: 8557169.8029 },\n { id: 702, x: 4828286.4981, y: 8538003.9958 },\n { id: 25297, x: 4686579.9531, y: 8681683.4947 },\n { id: 70387, x: 4668037.0224, y: 8429536.5785 },\n { id: 25298, x: 4684134.1586, y: 8671316.7374 },\n { id: 25299, x: 4684069.9147, y: 8678775.5018 },\n { id: 4804, x: 4778422.4747, y: 8550161.9244 },\n { id: 70389, x: 4667570.1796, y: 8422348.8826 },\n { id: 709, x: 4822214.6633, y: 8527416.1552 },\n { id: 25304, x: 4678295.8464, y: 8672324.1585 },\n { id: 25305, x: 4678138.1978, y: 8680938.3322 },\n { id: 711, x: 4820045.2039, y: 8533383.3388 },\n { id: 70395, x: 4658755.2297, y: 8424727.8983 },\n { id: 4811, x: 4773780.0444, y: 8543917.7169 },\n { id: 25307, x: 4676447.316, y: 8667073.6134 },\n { id: 4812, x: 4773617.0526, y: 8556326.8675 },\n { id: 25310, x: 4673538.5456, y: 8685045.0029 },\n { id: 70400, x: 4654913.9718, y: 8427970.0009 },\n { id: 25311, x: 4672490.2488, y: 8677337.3692 },\n { id: 70401, x: 4653945.8964, y: 8418044.6121 },\n { id: 4824, x: 4765437.9008, y: 8552832.9145 },\n { id: 4825, x: 4763786.5179, y: 8541836.0183 },\n { id: 33532, x: 4876071.3617, y: 8739845.3791 },\n { id: 45830, x: 4803407.5452, y: 8781720.9265 },\n { id: 45831, x: 4800896.0664, y: 8768608.8154 },\n { id: 33534, x: 4873551.1804, y: 8730720.3455 },\n { id: 45832, x: 4800112.288, y: 8778389.4674 },\n { id: 33535, x: 4872386.8184, y: 8722623.7893 },\n { id: 33537, x: 4870955.977, y: 8734070.8889 },\n { id: 45837, x: 4796072.4751, y: 8773055.3597 },\n { id: 33542, x: 4866095.9064, y: 8740689.4928 },\n { id: 45840, x: 4793611.3417, y: 8782442.4214 },\n { id: 45841, x: 4792216.6221, y: 8769516.0982 },\n { id: 45842, x: 4791506.3244, y: 8775268.6098 },\n { id: 33546, x: 4862734.3772, y: 8727302.8913 },\n { id: 54050, x: 4665556.4654, y: 8505301.4347 },\n { id: 54052, x: 4663217.3859, y: 8512702.8295 },\n { id: 54057, x: 4658141.2389, y: 8508117.3515 },\n { id: 54059, x: 4656521.7045, y: 8501371.2857 },\n { id: 54061, x: 4655001.2539, y: 8518584.1039 },\n { id: 54064, x: 4652177.1244, y: 8512302.9977 },\n { id: 49969, x: 4740075.6523, y: 8540543.4086 },\n { id: 58171, x: 4632983.9539, y: 8596254.809 },\n { id: 49973, x: 4736233.043, y: 8526546.31 },\n { id: 49975, x: 4735381.7916, y: 8533440.4682 },\n { id: 58175, x: 4631514.2431, y: 8601164.5982 },\n { id: 37684, x: 4812559.7815, y: 8698598.7683 },\n { id: 13090, x: 4796804.1552, y: 8493696.135 },\n { id: 37685, x: 4811829.2955, y: 8688661.0705 },\n { id: 13092, x: 4795817.3007, y: 8499379.2927 },\n { id: 58182, x: 4625571.9858, y: 8589561.9569 },\n { id: 49984, x: 4726764.9985, y: 8522079.6086 },\n { id: 13094, x: 4795002.7248, y: 8488360.6068 },\n { id: 58184, x: 4621551.2107, y: 8586193.0389 },\n { id: 58185, x: 4621369.4833, y: 8598254.9684 },\n { id: 13096, x: 4794005.7136, y: 8480104.9593 },\n { id: 58186, x: 4621071.2859, y: 8592361.7582 },\n { id: 37691, x: 4804332.4823, y: 8690002.8619 },\n { id: 13099, x: 4792253.5527, y: 8497106.506 },\n { id: 58189, x: 4617891.104, y: 8588428.9598 },\n { id: 58190, x: 4617040.8087, y: 8583579.9137 },\n { id: 13101, x: 4791437.3682, y: 8491023.8447 },\n { id: 13103, x: 4790154.9727, y: 8485112.2868 },\n { id: 13110, x: 4786028.4623, y: 8480699.8868 },\n { id: 13113, x: 4784195.5579, y: 8492962.3667 },\n { id: 13115, x: 4783336.877, y: 8488273.3193 },\n { id: 70547, x: 4683828.8775, y: 8460910.2343 },\n { id: 70548, x: 4683183.1828, y: 8469666.5805 },\n { id: 70555, x: 4676527.7292, y: 8472248.4299 },\n { id: 70556, x: 4672189.5119, y: 8478986.8549 },\n { id: 70557, x: 4671759.2089, y: 8465852.2056 },\n { id: 21378, x: 4709282.3397, y: 8707840.6059 },\n { id: 21382, x: 4705944.821, y: 8716040.6897 },\n { id: 21383, x: 4705250.2378, y: 8709769.5401 },\n { id: 29582, x: 4631803.1457, y: 8632859.7462 },\n { id: 21384, x: 4705217.8313, y: 8720576.3633 },\n { id: 41880, x: 4799285.0658, y: 8611222.5707 },\n { id: 29583, x: 4630871.843, y: 8637558.4673 },\n { id: 29585, x: 4629095.7592, y: 8640803.8136 },\n { id: 41883, x: 4796681.9229, y: 8618465.5332 },\n { id: 29586, x: 4627758.1547, y: 8629637.4889 },\n { id: 29587, x: 4627224.1302, y: 8624979.4043 },\n { id: 29588, x: 4626122.844, y: 8636983.4488 },\n { id: 21390, x: 4700405.0089, y: 8714441.0366 },\n { id: 17292, x: 4750802.6728, y: 8806278.8981 },\n { id: 29590, x: 4624978.6433, y: 8640203.9206 },\n { id: 29591, x: 4624340.8116, y: 8633696.4799 },\n { id: 21395, x: 4697031.9137, y: 8722970.4721 },\n { id: 29594, x: 4622680.3621, y: 8638238.7476 },\n { id: 21396, x: 4695634.6082, y: 8715356.1811 },\n { id: 17297, x: 4747451.3054, y: 8790781.7616 },\n { id: 29595, x: 4620765.5018, y: 8625038.6605 },\n { id: 17298, x: 4746951.4664, y: 8799181.1864 },\n { id: 29597, x: 4620695.5229, y: 8629739.4811 },\n { id: 21399, x: 4692154.9281, y: 8708860.1783 },\n { id: 41895, x: 4789521.7043, y: 8619193.7927 },\n { id: 29598, x: 4619773.6181, y: 8641413.3264 },\n { id: 41897, x: 4788742.6216, y: 8606374.3159 },\n { id: 29600, x: 4618677.7678, y: 8635389.8286 },\n { id: 29603, x: 4616384.4086, y: 8642535.0796 },\n { id: 17306, x: 4737118.4156, y: 8800267.6626 },\n { id: 58308, x: 4612343.8384, y: 8510320.2592 },\n { id: 25523, x: 4691195.4489, y: 8698528.8143 },\n { id: 929, x: 4816039.8238, y: 8520998.5207 },\n { id: 58317, x: 4599894.3231, y: 8502437.8136 },\n { id: 58318, x: 4600058.3074, y: 8516416.379 },\n { id: 932, x: 4813258.3293, y: 8535803.7911 },\n { id: 934, x: 4811637.8425, y: 8526305.4619 },\n { id: 25530, x: 4686022.4459, y: 8701757.5616 },\n { id: 9135, x: 4837665.647, y: 8389785.2943 },\n { id: 5036, x: 4798551.7264, y: 8582727.8275 },\n { id: 25532, x: 4683915.4487, y: 8694618.8685 },\n { id: 938, x: 4807969.8062, y: 8534187.751 },\n { id: 25533, x: 4683477.2494, y: 8685837.6081 },\n { id: 9138, x: 4836600.7475, y: 8379589.256 },\n { id: 9139, x: 4833432.345, y: 8395786.841 },\n { id: 5040, x: 4795419.5438, y: 8589862.3866 },\n { id: 13239, x: 4779493.608, y: 8499300.047 },\n { id: 25537, x: 4679460.3511, y: 8699705.2465 },\n { id: 13240, x: 4779873.4293, y: 8481349.0041 },\n { id: 5042, x: 4794565.1782, y: 8598605.9282 },\n { id: 943, x: 4803575.5462, y: 8527522.497 },\n { id: 25538, x: 4678918.5017, y: 8693532.0888 },\n { id: 9143, x: 4832203.5728, y: 8385404.8461 },\n { id: 13243, x: 4776580.6381, y: 8490573.7664 },\n { id: 5047, x: 4788314.5346, y: 8583504.5059 },\n { id: 25543, x: 4674671.5975, y: 8701531.1735 },\n { id: 13248, x: 4773440.6478, y: 8496674.3993 },\n { id: 5050, x: 4785675.0937, y: 8594274.3701 },\n { id: 13249, x: 4773762.5218, y: 8482190.0009 },\n { id: 9151, x: 4826228.9083, y: 8391048.8914 },\n { id: 13256, x: 4768339.68, y: 8497114.1549 },\n { id: 13257, x: 4768384.666, y: 8488467.8437 },\n { id: 13258, x: 4766464.3284, y: 8482988.2353 },\n { id: 9160, x: 4821221.8279, y: 8382717.6014 },\n { id: 66550, x: 4725943.3676, y: 8424564.5615 },\n { id: 66552, x: 4724567.2361, y: 8432179.2652 },\n { id: 46062, x: 4783843.3765, y: 8768269.0709 },\n { id: 46063, x: 4784128.2491, y: 8781208.835 },\n { id: 66561, x: 4717904.9116, y: 8429223.8592 },\n { id: 66565, x: 4715502.8811, y: 8418710.3972 },\n { id: 46070, x: 4778802.1486, y: 8775119.4135 },\n { id: 46071, x: 4777817.3287, y: 8783753.39 },\n { id: 46072, x: 4776445.0006, y: 8770005.8703 },\n { id: 66571, x: 4708655.7819, y: 8426751.6567 },\n { id: 46079, x: 4770086.5532, y: 8769151.7641 },\n { id: 46081, x: 4769048.8498, y: 8775606.5141 },\n { id: 33792, x: 4859344.6974, y: 8735700.7566 },\n { id: 33794, x: 4857161.3294, y: 8726301.4593 },\n { id: 33800, x: 4852204.6086, y: 8731411.6116 },\n { id: 33807, x: 4847966.2171, y: 8723614.0686 },\n { id: 33810, x: 4846322.7919, y: 8728656.6276 },\n { id: 33815, x: 4843413.3096, y: 8740931.9212 },\n { id: 58429, x: 4608389.0032, y: 8523531.091 },\n { id: 58430, x: 4608378.3665, y: 8530589.3964 },\n { id: 58435, x: 4602205.576, y: 8529995.2852 },\n { id: 58436, x: 4602285.4677, y: 8541326.778 },\n { id: 50242, x: 4741634.1224, y: 8504355.2635 },\n { id: 50246, x: 4736795.7667, y: 8509337.1051 },\n { id: 50247, x: 4736544.4947, y: 8517157.8012 },\n { id: 50251, x: 4733268.2907, y: 8503976.0232 },\n { id: 50260, x: 4726271.0326, y: 8509907.8628 },\n { id: 29767, x: 4653026.2764, y: 8666961.5452 },\n { id: 42066, x: 4779994.0114, y: 8603567.4191 },\n { id: 42067, x: 4780205.1687, y: 8613866.9111 },\n { id: 29772, x: 4650994.2542, y: 8679633.1774 },\n { id: 50268, x: 4734563.8127, y: 8602649.0497 },\n { id: 54374, x: 4687161.7707, y: 8556906.1308 },\n { id: 29780, x: 4645581.2073, y: 8671797.3154 },\n { id: 29781, x: 4643794.6812, y: 8677464.1331 },\n { id: 54376, x: 4685190.6006, y: 8548181.3828 },\n { id: 29783, x: 4643671.4296, y: 8682377.6313 },\n { id: 42081, x: 4769982.5627, y: 8611430.0649 },\n { id: 54379, x: 4683486.8966, y: 8560584.8355 },\n { id: 29787, x: 4639326.0623, y: 8673555.0013 },\n { id: 54382, x: 4678721.8186, y: 8545913.5257 },\n { id: 29788, x: 4639213.139, y: 8680903.2269 },\n { id: 42086, x: 4767190.5029, y: 8618793.9172 },\n { id: 29789, x: 4637447.6936, y: 8667620.327 },\n { id: 54384, x: 4677533.455, y: 8556446.0429 },\n { id: 42087, x: 4766083.9541, y: 8604489.5981 },\n { id: 29791, x: 4636141.3314, y: 8680159.9429 },\n { id: 29792, x: 4635768.5147, y: 8685874.0592 },\n { id: 21596, x: 4729075.4503, y: 8760129.1366 },\n { id: 54389, x: 4673395.9638, y: 8561588.083 },\n { id: 21597, x: 4728125.4638, y: 8754417.1882 },\n { id: 54390, x: 4672083.4823, y: 8552327.0085 },\n { id: 21599, x: 4725919.4952, y: 8749370.6272 },\n { id: 21601, x: 4725307.7992, y: 8763595.4839 },\n { id: 21602, x: 4723636.7318, y: 8755918.9637 },\n { id: 21606, x: 4720667.3218, y: 8764890.1431 },\n { id: 21607, x: 4719459.6524, y: 8751776.6543 },\n { id: 38006, x: 4819175.1788, y: 8677330.7762 },\n { id: 21610, x: 4717103.2843, y: 8759468.4826 },\n { id: 38008, x: 4818540.5179, y: 8664637.6299 },\n { id: 21612, x: 4714399.477, y: 8764191.8828 },\n { id: 38009, x: 4818106.5868, y: 8670835.8784 },\n { id: 21613, x: 4714048.7763, y: 8756191.8066 },\n { id: 21615, x: 4712429.874, y: 8750037.423 },\n { id: 38012, x: 4814057.9288, y: 8681262.2081 },\n { id: 38015, x: 4807815.6301, y: 8670886.2065 },\n { id: 38017, x: 4807577.9256, y: 8677575.5611 },\n { id: 38018, x: 4806981.6383, y: 8662899.0143 },\n { id: 25722, x: 4670458.2265, y: 8705157.7947 },\n { id: 70812, x: 4680685.2328, y: 8497863.7988 },\n { id: 25723, x: 4669919.4583, y: 8698859.814 },\n { id: 70814, x: 4679276.6132, y: 8486580.8447 },\n { id: 25725, x: 4668534.2373, y: 8692160.1207 },\n { id: 25730, x: 4664856.7655, y: 8700586.0635 },\n { id: 25732, x: 4663514.2831, y: 8690179.4172 },\n { id: 25736, x: 4660191.7973, y: 8694509.2428 },\n { id: 25739, x: 4658957.4512, y: 8700589.0805 },\n { id: 25741, x: 4656746.0584, y: 8688417.3545 },\n { id: 17543, x: 4725349.6274, y: 8610759.6656 },\n { id: 25742, x: 4656510.267, y: 8700658.6616 },\n { id: 17546, x: 4723443.3268, y: 8616104.9545 },\n { id: 17548, x: 4721845.4314, y: 8622312.5984 },\n { id: 17550, x: 4720159.8019, y: 8603248.9739 },\n { id: 17554, x: 4718040.4986, y: 8608875.0722 },\n { id: 9357, x: 4837314.0417, y: 8406553.1538 },\n { id: 17556, x: 4716553.1795, y: 8620405.9697 },\n { id: 17557, x: 4715086.5135, y: 8604464.634 },\n { id: 17558, x: 4713952.6214, y: 8614812.7357 },\n { id: 9360, x: 4835187.0857, y: 8413997.8257 },\n { id: 46253, x: 4781364.9575, y: 8756506.9612 },\n { id: 46254, x: 4779862.6748, y: 8749575.5049 },\n { id: 17562, x: 4710560.8162, y: 8615183.5771 },\n { id: 46256, x: 4779689.0124, y: 8761408.8134 },\n { id: 13465, x: 4779999.0897, y: 8475134.894 },\n { id: 9367, x: 4829759.7756, y: 8413739.8672 },\n { id: 17566, x: 4708298.5999, y: 8605230.8171 },\n { id: 13467, x: 4778373.1039, y: 8465362.8347 },\n { id: 46260, x: 4775396.5029, y: 8746254.3931 },\n { id: 13468, x: 4778242.7895, y: 8460638.6227 },\n { id: 46261, x: 4774433.5168, y: 8762333.0998 },\n { id: 13470, x: 4776673.6641, y: 8470429.8067 },\n { id: 9371, x: 4827504.6635, y: 8407260.7308 },\n { id: 13472, x: 4775482.4383, y: 8477098.3615 },\n { id: 46265, x: 4771260.6596, y: 8753542.0828 },\n { id: 13474, x: 4774988.8297, y: 8460771.9903 },\n { id: 9377, x: 4823578.8943, y: 8418706.1509 },\n { id: 13477, x: 4772440.0298, y: 8466528.3102 },\n { id: 13479, x: 4770308.3775, y: 8477584.7566 },\n { id: 9381, x: 4821659.5077, y: 8399409.4492 },\n { id: 13481, x: 4769183.0302, y: 8471027.692 },\n { id: 9383, x: 4820104.9313, y: 8408642.8415 },\n { id: 5284, x: 4779481.928, y: 8589805.5931 },\n { id: 13485, x: 4767561.2209, y: 8460798.7166 },\n { id: 5293, x: 4769540.7313, y: 8589708.0126 },\n { id: 5294, x: 4769197.108, y: 8596968.3329 },\n { id: 1226, x: 4817434.0326, y: 8507871.5236 },\n { id: 1232, x: 4811895.9458, y: 8517271.9736 },\n { id: 50421, x: 4721804.0706, y: 8501740.8335 },\n { id: 1236, x: 4809797.5008, y: 8509537.4155 },\n { id: 50425, x: 4717827.8098, y: 8513194.9935 },\n { id: 1238, x: 4807241.912, y: 8502171.005 },\n { id: 42231, x: 4797375.7856, y: 8626355.4232 },\n { id: 34035, x: 4858115.4581, y: 8705361.9254 },\n { id: 1243, x: 4802253.3348, y: 8501826.4588 },\n { id: 1244, x: 4802120.9863, y: 8510239.29 },\n { id: 50434, x: 4710973.4204, y: 8503256.7544 },\n { id: 34038, x: 4855371.8837, y: 8712255.7795 },\n { id: 1246, x: 4801316.4352, y: 8516610.5261 },\n { id: 42241, x: 4790452.0461, y: 8630956.7745 },\n { id: 50440, x: 4708128.7199, y: 8518632.0999 },\n { id: 34044, x: 4850394.18, y: 8717097.7678 },\n { id: 29945, x: 4653422.527, y: 8686733.0212 },\n { id: 29946, x: 4653531.7369, y: 8692973.272 },\n { id: 34047, x: 4847780.0646, y: 8707645.2678 },\n { id: 29948, x: 4652117.9175, y: 8703829.5677 },\n { id: 29949, x: 4651430.3143, y: 8694161.4895 },\n { id: 34051, x: 4844021.7482, y: 8719037.4751 },\n { id: 42250, x: 4783929.3998, y: 8636657.4329 },\n { id: 34054, x: 4840322.5795, y: 8712190.1027 },\n { id: 29956, x: 4644903.7983, y: 8700269.4881 },\n { id: 29958, x: 4643125.2835, y: 8688316.8174 },\n { id: 29959, x: 4643631.7089, y: 8705738.1728 },\n { id: 29960, x: 4641972.3977, y: 8696842.339 },\n { id: 29966, x: 4638532.8542, y: 8700061.9842 },\n { id: 29969, x: 4637915.3079, y: 8706129.5639 },\n { id: 70968, x: 4670116.563, y: 8493548.4502 },\n { id: 70972, x: 4667101.002, y: 8484917.4584 },\n { id: 70975, x: 4664186.5672, y: 8496886.7813 },\n { id: 70977, x: 4660670.9034, y: 8482932.3207 },\n { id: 70980, x: 4658451.2348, y: 8492222.5753 },\n { id: 70982, x: 4657071.791, y: 8483591.4663 },\n { id: 9504, x: 4815303.1105, y: 8417551.5674 },\n { id: 9512, x: 4811252.3603, y: 8401507.7038 },\n { id: 9514, x: 4809831.3699, y: 8408098.5278 },\n { id: 25913, x: 4671071.5161, y: 8670785.5547 },\n { id: 9517, x: 4807989.4726, y: 8415381.3373 },\n { id: 9519, x: 4806304.18, y: 8405024.1446 },\n { id: 25917, x: 4667256.0826, y: 8684107.7927 },\n { id: 25918, x: 4666609.6782, y: 8672293.3124 },\n { id: 9523, x: 4803024.6417, y: 8417579.8354 },\n { id: 25920, x: 4666480.5553, y: 8677396.1285 },\n { id: 9524, x: 4802930.3466, y: 8412090.3847 },\n { id: 25923, x: 4664036.6952, y: 8680512.8526 },\n { id: 9527, x: 4801734.1874, y: 8402336.7606 },\n { id: 25924, x: 4662940.6451, y: 8670957.2116 },\n { id: 25926, x: 4661983.7156, y: 8685468.0492 },\n { id: 25927, x: 4659998.1307, y: 8674795.7278 },\n { id: 25928, x: 4659427.1122, y: 8667209.0157 },\n { id: 25933, x: 4657393.0231, y: 8677850.2863 },\n { id: 25934, x: 4656709.0396, y: 8670976.481 },\n { id: 58727, x: 4613995.1856, y: 8560929.9803 },\n { id: 58730, x: 4611534.9024, y: 8556668.4496 },\n { id: 30038, x: 4635024.8566, y: 8703973.6254 },\n { id: 58732, x: 4610490.4632, y: 8545307.6689 },\n { id: 30039, x: 4634415.8316, y: 8694731.2778 },\n { id: 30040, x: 4631838.9298, y: 8689368.5433 },\n { id: 58734, x: 4608367.8368, y: 8550725.4641 },\n { id: 5447, x: 4758112.8727, y: 8507720.8397 },\n { id: 58735, x: 4607689.6043, y: 8548003.7145 },\n { id: 30042, x: 4627309.2917, y: 8692147.1457 },\n { id: 58736, x: 4607052.6578, y: 8555026.2567 },\n { id: 58739, x: 4603259.3815, y: 8557114.0463 },\n { id: 58740, x: 4602742.0321, y: 8552814.8752 },\n { id: 58742, x: 4600820.0343, y: 8549968.552 },\n { id: 17758, x: 4707034.5331, y: 8622778.9109 },\n { id: 17759, x: 4706439.9393, y: 8611942.4856 },\n { id: 17762, x: 4703974.8356, y: 8604205.6769 },\n { id: 17763, x: 4703147.7144, y: 8620311.7401 },\n { id: 38261, x: 4834909.6084, y: 8705229.7066 },\n { id: 17766, x: 4701045.8003, y: 8607685.8976 },\n { id: 17769, x: 4699704.5644, y: 8613909.0229 },\n { id: 9572, x: 4819186.2366, y: 8390019.2816 },\n { id: 50564, x: 4723751.1798, y: 8533557.0444 },\n { id: 17772, x: 4699143.1932, y: 8621946.1472 },\n { id: 38268, x: 4828042.7528, y: 8705067.4921 },\n { id: 9575, x: 4817263.3675, y: 8395517.8131 },\n { id: 38269, x: 4827868.9498, y: 8711639.3689 },\n { id: 17774, x: 4695767.5626, y: 8605101.6857 },\n { id: 17775, x: 4695981.9325, y: 8611702.5743 },\n { id: 50568, x: 4719313.6909, y: 8537988.5777 },\n { id: 17776, x: 4695351.8777, y: 8619281.4927 },\n { id: 9578, x: 4815388.0489, y: 8384853.7008 },\n { id: 50569, x: 4717587.1758, y: 8526627.1686 },\n { id: 50572, x: 4712909.2084, y: 8534247.2529 },\n { id: 9582, x: 4811963.641, y: 8389883.699 },\n { id: 17782, x: 4691502.818, y: 8621440.026 },\n { id: 9585, x: 4807596.4579, y: 8392977.8131 },\n { id: 54687, x: 4687692.1052, y: 8576664.1478 },\n { id: 54688, x: 4686425.9339, y: 8568136.3268 },\n { id: 54689, x: 4684146.547, y: 8581252.4795 },\n { id: 54693, x: 4681011.2878, y: 8574603.213 },\n { id: 54695, x: 4676719.6657, y: 8567303.0681 },\n { id: 54696, x: 4676633.1149, y: 8577673.8646 },\n { id: 42400, x: 4795394.7657, y: 8660970.0572 },\n { id: 54699, x: 4671370.4379, y: 8565335.8361 },\n { id: 42402, x: 4791756.1813, y: 8643434.2868 },\n { id: 54700, x: 4671575.679, y: 8577678.3867 },\n { id: 42404, x: 4791429.4244, y: 8649857.2926 },\n { id: 42410, x: 4787521.8542, y: 8655348.1525 },\n { id: 42414, x: 4783785.2703, y: 8645778.0792 },\n { id: 71117, x: 4669039.5452, y: 8458965.037 },\n { id: 71123, x: 4663188.4669, y: 8464740.1001 },\n { id: 71127, x: 4659156.8542, y: 8475401.4068 },\n { id: 71132, x: 4652420.9587, y: 8465890.3429 },\n { id: 34242, x: 4877803.3392, y: 8749260.1247 },\n { id: 34243, x: 4877475.0697, y: 8759683.7657 },\n { id: 71136, x: 4628451.5958, y: 8468604.6282 },\n { id: 71137, x: 4623404.7061, y: 8468290.6367 },\n { id: 34248, x: 4872344.5591, y: 8745446.4977 },\n { id: 34249, x: 4872102.5488, y: 8756396.5855 },\n { id: 71142, x: 4617058.5596, y: 8468142.2447 },\n { id: 71143, x: 4614986.3118, y: 8460528.7577 },\n { id: 34252, x: 4867320.5561, y: 8752431.4257 },\n { id: 34255, x: 4864432.3617, y: 8759777.6952 },\n { id: 1463, x: 4836404.0183, y: 8551830.9882 },\n { id: 1465, x: 4833424.1267, y: 8546591.3527 },\n { id: 1469, x: 4831454.7011, y: 8559476.6082 },\n { id: 1473, x: 4827393.2525, y: 8548717.3542 },\n { id: 1482, x: 4822118.9654, y: 8553891.872 },\n { id: 5597, x: 4761041.5137, y: 8526876.2458 },\n { id: 30194, x: 4633313.9067, y: 8670497.2555 },\n { id: 5600, x: 4757651.9297, y: 8537319.211 },\n { id: 5602, x: 4756831.1453, y: 8520513.8218 },\n { id: 13802, x: 4892972.8401, y: 8400074.0216 },\n { id: 5604, x: 4754981.982, y: 8528852.3164 },\n { id: 30199, x: 4631762.6811, y: 8676320.2261 },\n { id: 30200, x: 4631819.6528, y: 8682359.5831 },\n { id: 13805, x: 4887070.7015, y: 8406930.876 },\n { id: 30204, x: 4628428.1908, y: 8675297.3646 },\n { id: 30205, x: 4628654.3245, y: 8686409.4088 },\n { id: 13809, x: 4884863.1288, y: 8416349.4208 },\n { id: 30207, x: 4627049.3055, y: 8679602.8155 },\n { id: 13811, x: 4884384.7904, y: 8400893.5455 },\n { id: 30211, x: 4622219.0965, y: 8668939.1249 },\n { id: 13818, x: 4879003.4584, y: 8410929.623 },\n { id: 13820, x: 4877808.0966, y: 8405098.3638 },\n { id: 13821, x: 4876455.6195, y: 8415971.5999 },\n { id: 22021, x: 4730389, y: 8773990.7055 },\n { id: 22023, x: 4728860.7848, y: 8778601.6256 },\n { id: 22025, x: 4726969.6287, y: 8767324.5495 },\n { id: 22029, x: 4724332.3533, y: 8784093.7674 },\n { id: 22032, x: 4721480.9193, y: 8774273.3197 },\n { id: 22033, x: 4719455.2064, y: 8780682.7274 },\n { id: 22034, x: 4718638.9275, y: 8769552.7967 },\n { id: 22039, x: 4714598.5353, y: 8773188.987 },\n { id: 22040, x: 4714795.6947, y: 8784407.2686 },\n { id: 38438, x: 4839726.4344, y: 8728245.3894 },\n { id: 38442, x: 4836038.5572, y: 8722127.4069 },\n { id: 38443, x: 4835390.1112, y: 8737770.4874 },\n { id: 38448, x: 4829797.9801, y: 8722549.778 },\n { id: 38450, x: 4829212.1061, y: 8733246.4195 },\n { id: 38456, x: 4822314.8342, y: 8728454.5652 },\n { id: 26167, x: 4689377.9287, y: 8722180.331 },\n { id: 26168, x: 4688793.5958, y: 8706441.526 },\n { id: 26171, x: 4686418.8376, y: 8717005.2709 },\n { id: 26177, x: 4681574.286, y: 8707806.7579 },\n { id: 26178, x: 4680515.8682, y: 8716190.9647 },\n { id: 26181, x: 4677925.8387, y: 8722087.896 },\n { id: 71272, x: 4633097.4825, y: 8499696.6453 },\n { id: 71273, x: 4632978.0813, y: 8481581.7125 },\n { id: 46679, x: 4803338.2231, y: 8785356.8769 },\n { id: 26184, x: 4675099.791, y: 8717439.5836 },\n { id: 26185, x: 4674483.0349, y: 8708397.5536 },\n { id: 71275, x: 4628236.698, y: 8489011.5452 },\n { id: 46682, x: 4800267.4483, y: 8797748.9499 },\n { id: 30286, x: 4654842.5826, y: 8711022.6534 },\n { id: 46683, x: 4799891.2827, y: 8789006.435 },\n { id: 71278, x: 4622734.702, y: 8482071.0581 },\n { id: 46684, x: 4799203.4537, y: 8801481.9657 },\n { id: 30288, x: 4653195.1871, y: 8724710.8391 },\n { id: 30290, x: 4652679.9639, y: 8717373.6842 },\n { id: 71281, x: 4619047.7951, y: 8492965.9067 },\n { id: 46688, x: 4793911.1115, y: 8795628.0792 },\n { id: 42589, x: 4778219.8033, y: 8658606.3823 },\n { id: 30292, x: 4650516.6141, y: 8708227.0802 },\n { id: 46690, x: 4792712.381, y: 8788214.1303 },\n { id: 42591, x: 4775503.1383, y: 8653183.0566 },\n { id: 30294, x: 4646645.5975, y: 8709685.328 },\n { id: 46691, x: 4792732.7777, y: 8804333.7136 },\n { id: 30297, x: 4638065.3536, y: 8712107.6689 },\n { id: 18000, x: 4724628.7665, y: 8631596.4707 },\n { id: 46694, x: 4788788.8037, y: 8791491.2787 },\n { id: 18001, x: 4724538.8658, y: 8629857.48 },\n { id: 18003, x: 4724378.1717, y: 8641414.5109 },\n { id: 42600, x: 4769255.8946, y: 8643475.6566 },\n { id: 42602, x: 4768830.347, y: 8655952.7629 },\n { id: 30305, x: 4655685.5239, y: 8745865.7288 },\n { id: 30308, x: 4654371.2446, y: 8731085.21 },\n { id: 18011, x: 4718673.8302, y: 8632162.3083 },\n { id: 63101, x: 4743434.8835, y: 8445877.1675 },\n { id: 18013, x: 4717815.1231, y: 8643008.0168 },\n { id: 18014, x: 4716373.8163, y: 8628631.9157 },\n { id: 63105, x: 4741244.1711, y: 8458183.275 },\n { id: 63108, x: 4739111.3387, y: 8439455.0106 },\n { id: 9821, x: 4835783.8845, y: 8437145.8631 },\n { id: 63110, x: 4738048.3811, y: 8443872.4275 },\n { id: 18021, x: 4710662.5517, y: 8625641.7325 },\n { id: 63111, x: 4737609.245, y: 8444098.2603 },\n { id: 63112, x: 4737416.598, y: 8447623.264 },\n { id: 18023, x: 4709863.305, y: 8634034.5271 },\n { id: 9825, x: 4833012.1965, y: 8424888.3241 },\n { id: 9826, x: 4831432.9365, y: 8431512.8585 },\n { id: 67213, x: 4725097.0114, y: 8452212.9685 },\n { id: 67216, x: 4723646.9031, y: 8441705.6624 },\n { id: 67220, x: 4720332.8088, y: 8454633.4978 },\n { id: 30329, x: 4653814.1316, y: 8789415.0129 },\n { id: 63122, x: 4730765.7135, y: 8441832.4105 },\n { id: 67223, x: 4718738.4691, y: 8447765.7914 },\n { id: 9838, x: 4825115.7807, y: 8425729.1213 },\n { id: 63126, x: 4728354.7518, y: 8447437.3391 },\n { id: 9841, x: 4823125.8257, y: 8435166.4185 },\n { id: 67228, x: 4714747.3987, y: 8441822.2201 },\n { id: 67229, x: 4714642.1966, y: 8440883.1939 },\n { id: 67230, x: 4713611.1746, y: 8450358.329 },\n { id: 34440, x: 4876896.2126, y: 8778471.766 },\n { id: 67236, x: 4708853.8035, y: 8451497.0287 },\n { id: 34447, x: 4871677.996, y: 8770298.1753 },\n { id: 34448, x: 4871833.8205, y: 8777952.7106 },\n { id: 34449, x: 4871059.9838, y: 8763890.6016 },\n { id: 1657, x: 4833676.5694, y: 8573843.3714 },\n { id: 50848, x: 4707120.524, y: 8537258.7196 },\n { id: 50852, x: 4704791.6711, y: 8525294.9923 },\n { id: 1664, x: 4828216.5839, y: 8566984.7336 },\n { id: 1666, x: 4827661.1853, y: 8576833.7091 },\n { id: 13965, x: 4891600.0308, y: 8392970.4011 },\n { id: 34461, x: 4863109.1336, y: 8775210.8211 },\n { id: 1669, x: 4824461.6957, y: 8561032.3742 },\n { id: 34464, x: 4861139.1141, y: 8768688.5871 },\n { id: 1673, x: 4822497.8322, y: 8569756.2146 },\n { id: 50862, x: 4697599.5649, y: 8525359.4498 },\n { id: 13972, x: 4883194.7571, y: 8389614.1765 },\n { id: 50864, x: 4696716.7947, y: 8534075.8818 },\n { id: 13973, x: 4881330.4108, y: 8395790.4572 },\n { id: 50869, x: 4691379.967, y: 8527424.4386 },\n { id: 13979, x: 4877731.1699, y: 8382464.023 },\n { id: 71382, x: 4651289.4753, y: 8484123.2067 },\n { id: 71388, x: 4645370.5119, y: 8493062.4727 },\n { id: 71391, x: 4643122.0319, y: 8484626.1194 },\n { id: 71397, x: 4637449.7119, y: 8485789.8503 },\n { id: 71400, x: 4635007.4363, y: 8493478.1373 },\n { id: 30410, x: 4656021.54, y: 8798796.3532 },\n { id: 30415, x: 4649475.0013, y: 8794896.0643 },\n { id: 30419, x: 4658556.8905, y: 8825758.4324 },\n { id: 30422, x: 4656259.0815, y: 8812282.912 },\n { id: 30433, x: 4658828.4979, y: 8833324.2987 },\n { id: 26340, x: 4692420.7202, y: 8727280.3753 },\n { id: 59134, x: 4608119.6505, y: 8573614.0756 },\n { id: 26342, x: 4692001.901, y: 8744559.4919 },\n { id: 59135, x: 4607853.9727, y: 8566032.4871 },\n { id: 26343, x: 4689972.1135, y: 8732891.0255 },\n { id: 59136, x: 4607662.3072, y: 8579948.5831 },\n { id: 26346, x: 4686542.5189, y: 8737905.1193 },\n { id: 26347, x: 4685686.0373, y: 8728412.5175 },\n { id: 26348, x: 4685106.1357, y: 8733200.8836 },\n { id: 26349, x: 4684508.2148, y: 8745425.5245 },\n { id: 59143, x: 4602382.2803, y: 8565253.3405 },\n { id: 59144, x: 4600501.2591, y: 8571506.0739 },\n { id: 26352, x: 4681357.1129, y: 8727510.1577 },\n { id: 59146, x: 4598931.7699, y: 8580371.034 },\n { id: 26354, x: 4680574.4094, y: 8739304.692 },\n { id: 59148, x: 4597349.2632, y: 8566840.7578 },\n { id: 26359, x: 4677050.6218, y: 8733528.2532 },\n { id: 26365, x: 4673919.2311, y: 8727429.2337 },\n { id: 38675, x: 4822196.9396, y: 8734020.4816 },\n { id: 38677, x: 4817860.8958, y: 8738918.7012 },\n { id: 5886, x: 4757444.6018, y: 8555081.7644 },\n { id: 38679, x: 4816981.0152, y: 8725865.2283 },\n { id: 38682, x: 4811669.2952, y: 8732462.746 },\n { id: 38683, x: 4811149.2148, y: 8726431.991 },\n { id: 5891, x: 4752927.6366, y: 8548298.4572 },\n { id: 38688, x: 4806576.2852, y: 8741042.9187 },\n { id: 5896, x: 4748366.9316, y: 8556002.1433 },\n { id: 5899, x: 4746727.7656, y: 8546928.7557 },\n { id: 67411, x: 4706008.5299, y: 8456284.6525 },\n { id: 67414, x: 4704338.3791, y: 8448873.265 },\n { id: 67422, x: 4697492.4126, y: 8454933.1735 },\n { id: 67423, x: 4695956.3071, y: 8448271.3433 },\n { id: 34631, x: 4854828.9257, y: 8769222.9954 },\n { id: 67425, x: 4695406.797, y: 8439371.7717 },\n { id: 34635, x: 4853540.5339, y: 8776870.7715 },\n { id: 34641, x: 4849588.6814, y: 8762839.3487 },\n { id: 71537, x: 4648722.0318, y: 8477685.3217 },\n { id: 34648, x: 4844958.8857, y: 8776186.1013 },\n { id: 71541, x: 4645192.7337, y: 8468408.4935 },\n { id: 34651, x: 4842869.4052, y: 8764009.0641 },\n { id: 71544, x: 4640760.8446, y: 8474920.4935 },\n { id: 71546, x: 4637989.3044, y: 8463437.4544 },\n { id: 18277, x: 4724041.8175, y: 8650414.2713 },\n { id: 18278, x: 4722645.3657, y: 8659143.7538 },\n { id: 18283, x: 4717997.9603, y: 8647870.0351 },\n { id: 18284, x: 4717297.7556, y: 8661914.2071 },\n { id: 18286, x: 4715657.8563, y: 8653746.9178 },\n { id: 10089, x: 4829411.2792, y: 8454105.7657 },\n { id: 18288, x: 4713480.0056, y: 8644402.0804 },\n { id: 10090, x: 4829500.2484, y: 8444926.1953 },\n { id: 18290, x: 4713175.2936, y: 8644535.5873 },\n { id: 10093, x: 4826712.7644, y: 8439698.7204 },\n { id: 18293, x: 4710946.3234, y: 8654655.2455 },\n { id: 51087, x: 4706199.3488, y: 8512542.6471 },\n { id: 10101, x: 4820829.5066, y: 8451924.7531 },\n { id: 10104, x: 4819588.8323, y: 8443882.6332 },\n { id: 51095, x: 4700419.2031, y: 8507035.3391 },\n { id: 22402, x: 4710732.5588, y: 8769722.4661 },\n { id: 22406, x: 4708100.6652, y: 8778210.8521 },\n { id: 22408, x: 4707092.4739, y: 8785779.8951 },\n { id: 51102, x: 4696049.6351, y: 8514153.3038 },\n { id: 22410, x: 4705524.0313, y: 8772153.4533 },\n { id: 1916, x: 4815556.2346, y: 8561916.6426 },\n { id: 22413, x: 4702715.4081, y: 8781154.4885 },\n { id: 1919, x: 4814187.5403, y: 8567810.0971 },\n { id: 22416, x: 4698227.7834, y: 8778353.2777 },\n { id: 22419, x: 4697132.3765, y: 8771675.1623 },\n { id: 22420, x: 4696622.7543, y: 8783290.4365 },\n { id: 1925, x: 4810672.0772, y: 8574708.8603 },\n { id: 1930, x: 4806394.6074, y: 8561435.6711 },\n { id: 1934, x: 4804163.969, y: 8578412.7725 },\n { id: 1935, x: 4803470.0497, y: 8568438.2409 },\n { id: 26548, x: 4673064.1069, y: 8743071.5694 },\n { id: 26549, x: 4672177.4634, y: 8735686.5466 },\n { id: 26555, x: 4667428.215, y: 8728804.552 },\n { id: 26556, x: 4667231.3032, y: 8736555.3443 },\n { id: 26558, x: 4666545.2466, y: 8744620.3309 },\n { id: 26560, x: 4663811.4684, y: 8731321.245 },\n { id: 26561, x: 4663524.7221, y: 8736402.649 },\n { id: 26567, x: 4658680.7404, y: 8737634.5277 },\n { id: 26568, x: 4658082.6604, y: 8730317.685 },\n { id: 71679, x: 4632545.8844, y: 8421388.878 },\n { id: 71680, x: 4630740.0137, y: 8426629.2771 },\n { id: 71683, x: 4627789.3051, y: 8431448.7494 },\n { id: 71685, x: 4626862.059, y: 8422335.9447 },\n { id: 71689, x: 4621158.8466, y: 8419782.6677 },\n { id: 71690, x: 4619532.4399, y: 8427494.4721 },\n { id: 71693, x: 4617296.5008, y: 8423636.5945 },\n { id: 30717, x: 4611594.7702, y: 8606322.194 },\n { id: 30718, x: 4610901.1534, y: 8622004.9621 },\n { id: 55313, x: 4670180.105, y: 8570278.5919 },\n { id: 55314, x: 4666472.5741, y: 8581906.221 },\n { id: 30720, x: 4608526.6205, y: 8617013.1054 },\n { id: 55318, x: 4662124.5334, y: 8566702.0191 },\n { id: 55320, x: 4658325.0144, y: 8575364.6374 },\n { id: 30728, x: 4603942.6648, y: 8611621.8439 },\n { id: 30729, x: 4603374.0292, y: 8621804.6574 },\n { id: 30731, x: 4599504.903, y: 8622281.8681 },\n { id: 30732, x: 4598886.5053, y: 8613657.7232 },\n { id: 38957, x: 4820378.9041, y: 8717156.0389 },\n { id: 38958, x: 4818817.9806, y: 8703729.4265 },\n { id: 34859, x: 4859235.8107, y: 8747936.1709 },\n { id: 34860, x: 4858125.4681, y: 8757072.8847 },\n { id: 38960, x: 4817232.5173, y: 8709956.3279 },\n { id: 38966, x: 4811177.3887, y: 8704487.4101 },\n { id: 6176, x: 4757178.1818, y: 8579549.1853 },\n { id: 34869, x: 4852357.0713, y: 8741721.3402 },\n { id: 38969, x: 4809360.9414, y: 8714489.7118 },\n { id: 34870, x: 4852072.3981, y: 8751686.3485 },\n { id: 6178, x: 4756297.8943, y: 8572221.8588 },\n { id: 6180, x: 4753774.5361, y: 8561893.5153 },\n { id: 6184, x: 4751320.2102, y: 8569230.7454 },\n { id: 6186, x: 4749699.6918, y: 8575818.492 },\n { id: 34880, x: 4845245.9364, y: 8753277.0543 },\n { id: 34884, x: 4843659.8631, y: 8747970.9562 },\n { id: 14412, x: 4759967.3378, y: 8613741.9474 },\n { id: 14414, x: 4756135.0483, y: 8603738.5311 },\n { id: 14417, x: 4754325.2605, y: 8609977.779 },\n { id: 14419, x: 4751688.2177, y: 8617662.2095 },\n { id: 67710, x: 4705246.8946, y: 8436850.3308 },\n { id: 22622, x: 4710802.0058, y: 8759654.9587 },\n { id: 10325, x: 4813928.3971, y: 8457369.839 },\n { id: 51315, x: 4721657.0719, y: 8556534.4941 },\n { id: 14425, x: 4746994.861, y: 8621675.5918 },\n { id: 51316, x: 4721291.6563, y: 8550132.6127 },\n { id: 14426, x: 4746480.9196, y: 8608375.6727 },\n { id: 51317, x: 4719432.6307, y: 8542217.2385 },\n { id: 67714, x: 4701445.3537, y: 8425409.9119 },\n { id: 59517, x: 4595531.5579, y: 8583354.2582 },\n { id: 10331, x: 4810515.0778, y: 8443768.1964 },\n { id: 59519, x: 4595028.9192, y: 8574638.8153 },\n { id: 22629, x: 4706965.4348, y: 8755364.0468 },\n { id: 51322, x: 4715586.1088, y: 8544001.4528 },\n { id: 22631, x: 4705613.0062, y: 8750651.1416 },\n { id: 59522, x: 4592054.6106, y: 8569872.1506 },\n { id: 51324, x: 4714611.5413, y: 8551019.2827 },\n { id: 26731, x: 4671403.6565, y: 8722186.0249 },\n { id: 67721, x: 4695496.4097, y: 8419994.9862 },\n { id: 51326, x: 4714014.9812, y: 8557098.2016 },\n { id: 10336, x: 4806273.6699, y: 8458443.9529 },\n { id: 22634, x: 4705063.2956, y: 8759561.9697 },\n { id: 51328, x: 4710737.5049, y: 8550044.3237 },\n { id: 22636, x: 4702086.8789, y: 8762852.0095 },\n { id: 10339, x: 4803175.2044, y: 8449713.2376 },\n { id: 59527, x: 4589692.7362, y: 8575241.9185 },\n { id: 26736, x: 4668152.3799, y: 8715359.1975 },\n { id: 59528, x: 4589786.3083, y: 8580109.2765 },\n { id: 51331, x: 4708015.5259, y: 8541908.8313 },\n { id: 22638, x: 4701587.4963, y: 8757274.8922 },\n { id: 71826, x: 4628083.3541, y: 8442551.5568 },\n { id: 67727, x: 4690197.9194, y: 8427906.8265 },\n { id: 26738, x: 4667405.2418, y: 8710708.4383 },\n { id: 71827, x: 4626839.2909, y: 8457967.3741 },\n { id: 71828, x: 4626090.9895, y: 8450134.9134 },\n { id: 22641, x: 4697520.9844, y: 8754203.7875 },\n { id: 59533, x: 4585485.9578, y: 8574411.7883 },\n { id: 26742, x: 4664438.9075, y: 8725233.7794 },\n { id: 22643, x: 4696549.4828, y: 8766031.0907 },\n { id: 71831, x: 4621353.6529, y: 8458201.0357 },\n { id: 59534, x: 4584886.3824, y: 8563305.5526 },\n { id: 71832, x: 4621521.3713, y: 8437888.9463 },\n { id: 59535, x: 4580978.5341, y: 8565788.3403 },\n { id: 26744, x: 4662018.8765, y: 8713054.1805 },\n { id: 22645, x: 4695832.0372, y: 8748423.1043 },\n { id: 71833, x: 4620355.8537, y: 8445217.1941 },\n { id: 26746, x: 4661275.7024, y: 8719355.4121 },\n { id: 26748, x: 4659068.9962, y: 8708325.5973 },\n { id: 26750, x: 4657924.5067, y: 8726224.3792 },\n { id: 18552, x: 4708572.3187, y: 8647178.5878 },\n { id: 26752, x: 4655983.5683, y: 8720538.6476 },\n { id: 18554, x: 4707409.7619, y: 8653452.7031 },\n { id: 18556, x: 4706400.5033, y: 8659012.078 },\n { id: 18557, x: 4705182.1672, y: 8650309.1542 },\n { id: 18562, x: 4701105.3185, y: 8663423.1867 },\n { id: 18563, x: 4700378.8932, y: 8653711.0181 },\n { id: 18567, x: 4697784.1764, y: 8663725.323 },\n { id: 43165, x: 4780235.8783, y: 8622236.7201 },\n { id: 18571, x: 4696002.3531, y: 8659878.0683 },\n { id: 18572, x: 4694331.3124, y: 8647440.6379 },\n { id: 18573, x: 4693929.3428, y: 8653964.2192 },\n { id: 43170, x: 4776242.2601, y: 8630080.7132 },\n { id: 18577, x: 4690981.5421, y: 8657500.0136 },\n { id: 43172, x: 4775122.4289, y: 8638274.0494 },\n { id: 43183, x: 4767852.6698, y: 8635505.3492 },\n { id: 59581, x: 4595587.0861, y: 8547476.9619 },\n { id: 43185, x: 4766313.2817, y: 8627639.5168 },\n { id: 59582, x: 4595735.6693, y: 8556598.3008 },\n { id: 59583, x: 4593989.1909, y: 8562596.9921 },\n { id: 59584, x: 4593307.0845, y: 8551290.8938 },\n { id: 59586, x: 4587953.5366, y: 8551478.4505 },\n { id: 59587, x: 4587403.1381, y: 8558077.7166 },\n { id: 35019, x: 4879212.723, y: 8787669.9007 },\n { id: 63715, x: 4739865.9684, y: 8431507.4866 },\n { id: 63716, x: 4739849.2948, y: 8426511.9785 },\n { id: 35023, x: 4877007.5008, y: 8797362.382 },\n { id: 63717, x: 4739512.5333, y: 8419757.2879 },\n { id: 35028, x: 4873193.5211, y: 8794301.9281 },\n { id: 71920, x: 4646995.0701, y: 8457164.8458 },\n { id: 71921, x: 4645842.2879, y: 8446874.329 },\n { id: 71922, x: 4645178.6297, y: 8440806.8596 },\n { id: 63724, x: 4734129.2758, y: 8432362.3989 },\n { id: 35031, x: 4871761.9338, y: 8787407.8446 },\n { id: 6339, x: 4742975.9137, y: 8567280.8477 },\n { id: 6340, x: 4743265.6047, y: 8580102.96 },\n { id: 71925, x: 4635842.5025, y: 8454325.4339 },\n { id: 63727, x: 4733154.4999, y: 8424294.9012 },\n { id: 35034, x: 4869045.7546, y: 8783779.6925 },\n { id: 71927, x: 4635015.3993, y: 8441382.7357 },\n { id: 6343, x: 4740911.1765, y: 8561700.0604 },\n { id: 35037, x: 4867241.3209, y: 8797258.2538 },\n { id: 6344, x: 4738327.4778, y: 8571161.1721 },\n { id: 35038, x: 4865984.8745, y: 8790216.5552 },\n { id: 71930, x: 4650853.5676, y: 8434645.8699 },\n { id: 35039, x: 4864154.138, y: 8784063.9111 },\n { id: 63733, x: 4726603.8008, y: 8436162.2984 },\n { id: 71932, x: 4647166.3022, y: 8426987.0416 },\n { id: 6352, x: 4732040.6552, y: 8564086.4672 },\n { id: 6353, x: 4731876.7793, y: 8575265.2697 },\n { id: 6354, x: 4731643.6968, y: 8575112.6423 },\n { id: 71939, x: 4641155.2526, y: 8421902.254 },\n { id: 71940, x: 4640669.9817, y: 8432103.3993 },\n { id: 71946, x: 4635192.6583, y: 8430973.3395 },\n { id: 39163, x: 4837497.3421, y: 8760366.161 },\n { id: 39164, x: 4836967.1064, y: 8753149.1954 },\n { id: 39166, x: 4835197.6263, y: 8748300.2076 },\n { id: 39175, x: 4827176.9044, y: 8757022.9771 },\n { id: 39176, x: 4826056.6073, y: 8749117.3519 },\n { id: 39178, x: 4823983.3587, y: 8744523.9511 },\n { id: 30985, x: 4595701.5117, y: 8605580.7663 },\n { id: 30988, x: 4594340.5281, y: 8618000.0166 },\n { id: 30992, x: 4591798.1989, y: 8610499.8959 },\n { id: 26893, x: 4693001.536, y: 8756675.808 },\n { id: 30993, x: 4591009.6026, y: 8623971.9801 },\n { id: 26897, x: 4689682.1886, y: 8754681.796 },\n { id: 30998, x: 4588809.8803, y: 8604608.9945 },\n { id: 26899, x: 4689417.9625, y: 8761365.7204 },\n { id: 30999, x: 4586976.0356, y: 8613378.2395 },\n { id: 26900, x: 4688068.4008, y: 8749452.8292 },\n { id: 31000, x: 4586623.8305, y: 8617793.2726 },\n { id: 31001, x: 4585961.9396, y: 8607960.9114 },\n { id: 31002, x: 4586365.1948, y: 8621660.0424 },\n { id: 31005, x: 4583090.5827, y: 8610802.7977 },\n { id: 26907, x: 4682582.9351, y: 8756943.293 },\n { id: 31007, x: 4581677.0663, y: 8615559.0453 },\n { id: 31008, x: 4581314.6485, y: 8606975.0676 },\n { id: 31009, x: 4581329.1999, y: 8621005.2291 },\n { id: 31011, x: 4579308.2236, y: 8608254.738 },\n { id: 31012, x: 4578890.2727, y: 8615361.0772 },\n { id: 26913, x: 4678561.9113, y: 8750158.6033 },\n { id: 31013, x: 4578613.6457, y: 8611729.4817 },\n { id: 26915, x: 4677806.2067, y: 8761659.962 },\n { id: 26917, x: 4676241.3309, y: 8758404.0113 },\n { id: 14655, x: 4741551.5913, y: 8615165.9176 },\n { id: 47456, x: 4806773.1388, y: 8819811.6651 },\n { id: 14664, x: 4734308.1353, y: 8616623.4236 },\n { id: 35162, x: 4879821.421, y: 8816555.0701 },\n { id: 47462, x: 4802312.6425, y: 8810552.402 },\n { id: 2373, x: 4817335.3331, y: 8547285.0913 },\n { id: 47463, x: 4801503.7111, y: 8821002.0054 },\n { id: 47465, x: 4800003.8921, y: 8813583.2285 },\n { id: 47467, x: 4798299.446, y: 8816665.2404 },\n { id: 35170, x: 4873349.8608, y: 8812792.5958 },\n { id: 35171, x: 4871768.0207, y: 8806551.4856 },\n { id: 47469, x: 4797770.9808, y: 8820014.7937 },\n { id: 35175, x: 4870631.6535, y: 8819580.7836 },\n { id: 2384, x: 4810381.6241, y: 8555654.1962 },\n { id: 47474, x: 4795105.836, y: 8809014.7135 },\n { id: 2385, x: 4808300.7637, y: 8545433.0614 },\n { id: 35181, x: 4865775.9304, y: 8805651.3718 },\n { id: 47479, x: 4790047.4814, y: 8814250.7737 },\n { id: 35184, x: 4863387.6612, y: 8813690.8719 },\n { id: 2392, x: 4802329.8173, y: 8541681.9336 },\n { id: 2394, x: 4801881.8716, y: 8550435.1716 },\n { id: 43395, x: 4800686.7787, y: 8665405.1762 },\n { id: 43396, x: 4799401.0606, y: 8672986.9703 },\n { id: 43400, x: 4795633.7521, y: 8681784.0691 },\n { id: 22909, x: 4731884.1136, y: 8793536.7642 },\n { id: 43406, x: 4790528.5297, y: 8671284.2149 },\n { id: 22911, x: 4731993.5592, y: 8805075.3284 },\n { id: 63903, x: 4761236.9764, y: 8463063.0012 },\n { id: 43408, x: 4788594.184, y: 8663040.3446 },\n { id: 63905, x: 4758706.5487, y: 8474423.598 },\n { id: 63907, x: 4758205.7861, y: 8469314.1555 },\n { id: 22918, x: 4721477.8137, y: 8791195.7029 },\n { id: 63909, x: 4756998.7574, y: 8460687.0951 },\n { id: 43414, x: 4785550.1452, y: 8669514.7968 },\n { id: 43415, x: 4784055.1658, y: 8677333.75 },\n { id: 22920, x: 4719707.5246, y: 8799580.6934 },\n { id: 63914, x: 4752312.1632, y: 8474841.659 },\n { id: 63915, x: 4751894.5229, y: 8466944.3121 },\n { id: 6529, x: 4736943.3559, y: 8552606.4242 },\n { id: 63918, x: 4749333.6176, y: 8464362.8074 },\n { id: 63919, x: 4748831.2394, y: 8477121.2519 },\n { id: 68019, x: 4725077.9423, y: 8474842.8164 },\n { id: 14733, x: 4749395.0666, y: 8641212.2487 },\n { id: 63922, x: 4746705.0737, y: 8467131.8614 },\n { id: 39329, x: 4839272.3569, y: 8774223.2429 },\n { id: 63924, x: 4744345.8868, y: 8473013.4973 },\n { id: 68026, x: 4721868.9323, y: 8467367.6128 },\n { id: 6541, x: 4726184.9739, y: 8544969.0408 },\n { id: 39338, x: 4832806.002, y: 8767723.1096 },\n { id: 68032, x: 4718517.7331, y: 8474330.4471 },\n { id: 68035, x: 4716539.827, y: 8460925.2617 },\n { id: 39346, x: 4829272.5085, y: 8776641.5153 },\n { id: 39347, x: 4827458.3226, y: 8764276.9034 },\n { id: 68042, x: 4710821.9528, y: 8472544.3246 },\n { id: 10665, x: 4818435.5861, y: 8437877.1612 },\n { id: 59854, x: 4614793.5368, y: 8596803.3278 },\n { id: 10666, x: 4817061.7693, y: 8430991.4867 },\n { id: 59855, x: 4614574.685, y: 8591477.2786 },\n { id: 59856, x: 4614836.3706, y: 8602636.3011 },\n { id: 10671, x: 4813606.7944, y: 8425281.3201 },\n { id: 59860, x: 4611261.1019, y: 8586838.2628 },\n { id: 59861, x: 4611135.7102, y: 8595771.9825 },\n { id: 59862, x: 4609144.3144, y: 8603861.7822 },\n { id: 14774, x: 4751533.405, y: 8654713.0376 },\n { id: 51666, x: 4720749.8057, y: 8569348.0414 },\n { id: 10676, x: 4810118.5132, y: 8430901.1778 },\n { id: 59865, x: 4607039.8216, y: 8590055.6404 },\n { id: 51667, x: 4718969.2207, y: 8564061.0322 },\n { id: 27073, x: 4691649.6754, y: 8775728.5417 },\n { id: 51668, x: 4718925.8246, y: 8579268.4075 },\n { id: 27074, x: 4689544.1505, y: 8769905.9186 },\n { id: 27075, x: 4690045.6636, y: 8787804.7184 },\n { id: 14778, x: 4747416.8728, y: 8646783.5705 },\n { id: 59868, x: 4605808.5559, y: 8598991.2867 },\n { id: 27076, x: 4689820.239, y: 8782807.0644 },\n { id: 59869, x: 4604311.3629, y: 8603491.7697 },\n { id: 10682, x: 4806896.2966, y: 8420121.126 },\n { id: 51674, x: 4713114.4715, y: 8571651.1196 },\n { id: 51675, x: 4712171.6641, y: 8563661.7228 },\n { id: 27081, x: 4685046.4937, y: 8774378.3225 },\n { id: 59874, x: 4600276.6473, y: 8585578.0206 },\n { id: 27083, x: 4684271.6838, y: 8770139.1829 },\n { id: 10687, x: 4803049.6182, y: 8430455.8945 },\n { id: 59876, x: 4598401.3991, y: 8595626.2939 },\n { id: 51678, x: 4710019.0454, y: 8580426.3786 },\n { id: 10688, x: 4802315.0362, y: 8438671.892 },\n { id: 51680, x: 4707568.2878, y: 8564567.2951 },\n { id: 31185, x: 4615541.0872, y: 8631282.4883 },\n { id: 72175, x: 4628880.708, y: 8414071.1363 },\n { id: 31186, x: 4614798.8661, y: 8624949.0979 },\n { id: 27088, x: 4679686.572, y: 8768793.7382 },\n { id: 10692, x: 4800711.4918, y: 8422377.1609 },\n { id: 27090, x: 4678249.6433, y: 8785162.6702 },\n { id: 31190, x: 4612008.9966, y: 8637885.037 },\n { id: 27091, x: 4677828.6568, y: 8775718.8963 },\n { id: 31193, x: 4609257.4499, y: 8645013.574 },\n { id: 31194, x: 4609046.5895, y: 8639962.438 },\n { id: 31195, x: 4608442.1643, y: 8631613.7924 },\n { id: 72186, x: 4648057.1282, y: 8416265.4079 },\n { id: 31197, x: 4605435.0224, y: 8642563.548 },\n { id: 72187, x: 4644400.3652, y: 8409754.6863 },\n { id: 31200, x: 4602302.5793, y: 8634278.6152 },\n { id: 72190, x: 4638873.7122, y: 8415881.6799 },\n { id: 72193, x: 4635791.5414, y: 8411359.8178 },\n { id: 31204, x: 4599358.1737, y: 8628397.466 },\n { id: 31207, x: 4597788.6379, y: 8636974.871 },\n { id: 55820, x: 4670068.2705, y: 8544615.7005 },\n { id: 55823, x: 4667227.4898, y: 8560632.4147 },\n { id: 55825, x: 4665026.2526, y: 8547811.3431 },\n { id: 55827, x: 4661961.7892, y: 8557316.2019 },\n { id: 55829, x: 4660295.0145, y: 8544377.7 },\n { id: 55830, x: 4659066.5285, y: 8549418.3317 },\n { id: 55832, x: 4656800.9338, y: 8561749.2555 },\n { id: 55836, x: 4652405.6561, y: 8556639.1223 },\n { id: 72249, x: 4608965.4002, y: 8412708.2453 },\n { id: 2570, x: 4835706.0778, y: 8580732.24 },\n { id: 2571, x: 4835614.2389, y: 8591058.9473 },\n { id: 47662, x: 4787801.955, y: 8817589.3724 },\n { id: 47665, x: 4785868.2097, y: 8811383.2574 },\n { id: 72259, x: 4590986.3092, y: 8416168.2804 },\n { id: 72261, x: 4579053.0406, y: 8411008.4203 },\n { id: 27173, x: 4674255.579, y: 8771167.8709 },\n { id: 2581, x: 4827702.752, y: 8589462.053 },\n { id: 2582, x: 4827035.0918, y: 8596034.8176 },\n { id: 47672, x: 4781371.6221, y: 8812844.0285 },\n { id: 27177, x: 4671746.9359, y: 8788771.4695 },\n { id: 35376, x: 4862088.8507, y: 8821371.7812 },\n { id: 27178, x: 4670031.3061, y: 8781367.205 },\n { id: 2584, x: 4825943.5973, y: 8582342.4067 },\n { id: 35377, x: 4861026.1607, y: 8803689.8809 },\n { id: 27179, x: 4668958.2542, y: 8773912.9275 },\n { id: 47675, x: 4778982.737, y: 8817587.2237 },\n { id: 27180, x: 4668555.0893, y: 8770419.3953 },\n { id: 47676, x: 4777307.3475, y: 8808685.8589 },\n { id: 35381, x: 4857468.475, y: 8807367.1449 },\n { id: 27186, x: 4665282.5743, y: 8778383.0094 },\n { id: 27187, x: 4663623.7599, y: 8787742.2743 },\n { id: 35387, x: 4853219.1143, y: 8815181.793 },\n { id: 2595, x: 4819373.413, y: 8595384.2011 },\n { id: 35389, x: 4851882.7006, y: 8821138.5973 },\n { id: 27192, x: 4657777.2249, y: 8782325.762 },\n { id: 35392, x: 4850838.3214, y: 8802682.1797 },\n { id: 35393, x: 4849241.3984, y: 8809163.1347 },\n { id: 39495, x: 4822217.8408, y: 8765141.106 },\n { id: 39498, x: 4820496.0962, y: 8773038.2766 },\n { id: 39506, x: 4813868.3067, y: 8771768.801 },\n { id: 39509, x: 4812382.6563, y: 8781018.2088 },\n { id: 39513, x: 4809559.5665, y: 8766110.317 },\n { id: 39515, x: 4807203.6199, y: 8774675.0915 },\n { id: 68210, x: 4722400.2516, y: 8494034.7756 },\n { id: 68214, x: 4718875.908, y: 8482599.0039 },\n { id: 43625, x: 4798635.6862, y: 8699245.7202 },\n { id: 43626, x: 4796457.5293, y: 8689704.7795 },\n { id: 68222, x: 4713041.3014, y: 8490328.298 },\n { id: 68223, x: 4713216.0002, y: 8479799.0819 },\n { id: 43632, x: 4792825.2092, y: 8698177.9857 },\n { id: 43634, x: 4790242.0148, y: 8684846.7896 },\n { id: 43635, x: 4790273.7646, y: 8692125.5384 },\n { id: 43639, x: 4786174.4233, y: 8694730.4956 },\n { id: 43641, x: 4785759.758, y: 8686277.0245 },\n { id: 27259, x: 4673441.1964, y: 8751827.3878 },\n { id: 27261, x: 4671221.1821, y: 8764798.0038 },\n { id: 27268, x: 4666368.3878, y: 8754183.4729 },\n { id: 27269, x: 4666320.4654, y: 8760713.4919 },\n { id: 27271, x: 4664846.7998, y: 8748345.4322 },\n { id: 23178, x: 4708499.7711, y: 8795097.0931 },\n { id: 23180, x: 4707064.4711, y: 8803804.8628 },\n { id: 23185, x: 4702312.2272, y: 8791030.0401 },\n { id: 23186, x: 4702204.5835, y: 8797157.395 },\n { id: 23188, x: 4700235.4611, y: 8804426.7544 },\n { id: 14992, x: 4740513.4711, y: 8661555.6661 },\n { id: 14995, x: 4737431.9778, y: 8650842.6949 },\n { id: 14996, x: 4737166.9429, y: 8644007.1564 },\n { id: 19099, x: 4708525.6651, y: 8639696.4409 },\n { id: 15002, x: 4733955.0103, y: 8662959.0059 },\n { id: 19103, x: 4707336.9464, y: 8626770.6569 },\n { id: 51897, x: 4707429.4496, y: 8572314.2894 },\n { id: 19106, x: 4705759.7974, y: 8634707.5888 },\n { id: 51899, x: 4706568.6075, y: 8576572.7277 },\n { id: 51900, x: 4705239.9254, y: 8580105.7737 },\n { id: 15009, x: 4728122.4392, y: 8654950.5844 },\n { id: 31406, x: 4613243.0894, y: 8648376.6567 },\n { id: 31407, x: 4612343.6927, y: 8658980.0622 },\n { id: 51904, x: 4702629.1244, y: 8567642.6068 },\n { id: 72399, x: 4608901.387, y: 8419586.3106 },\n { id: 19113, x: 4703626.5899, y: 8642586.8441 },\n { id: 72400, x: 4608574.6662, y: 8425546.3083 },\n { id: 31411, x: 4607954.1946, y: 8650798.7004 },\n { id: 51907, x: 4700776.6733, y: 8574427.3691 },\n { id: 31412, x: 4607551.9321, y: 8654776.8983 },\n { id: 19116, x: 4701342.437, y: 8629643.8666 },\n { id: 72403, x: 4602932.8454, y: 8432341.2121 },\n { id: 19117, x: 4700975.1384, y: 8637628.1757 },\n { id: 51910, x: 4699543.9794, y: 8578055.1143 },\n { id: 31415, x: 4606326.4558, y: 8665184.6353 },\n { id: 72405, x: 4601535.5588, y: 8425975.3331 },\n { id: 72406, x: 4601359.1106, y: 8418821.0459 },\n { id: 31417, x: 4603444.6002, y: 8647685.1804 },\n { id: 19120, x: 4697558.1507, y: 8642270.9476 },\n { id: 31418, x: 4603182.9962, y: 8654995.9209 },\n { id: 19121, x: 4695790.3377, y: 8625606.25 },\n { id: 10923, x: 4835656.3617, y: 8463421.5505 },\n { id: 51914, x: 4695168.309, y: 8571983.591 },\n { id: 19122, x: 4696022.8113, y: 8633862.4371 },\n { id: 72409, x: 4597227.1671, y: 8432370.8309 },\n { id: 51915, x: 4693670.6501, y: 8577344.6725 },\n { id: 31420, x: 4602884.6745, y: 8659135.9729 },\n { id: 19124, x: 4693541.72, y: 8629515.2552 },\n { id: 10927, x: 4832417.601, y: 8467031.5507 },\n { id: 31423, x: 4599012.9388, y: 8664496.7798 },\n { id: 19126, x: 4692391.5954, y: 8641102.2007 },\n { id: 64218, x: 4761727.5752, y: 8487483.6102 },\n { id: 10932, x: 4828991.4326, y: 8475767.4888 },\n { id: 64221, x: 4759533.1011, y: 8495053.5308 },\n { id: 64223, x: 4756605.0948, y: 8483998.2928 },\n { id: 10939, x: 4826260.5025, y: 8460618.4229 },\n { id: 10940, x: 4825086.6567, y: 8471522.1933 },\n { id: 64228, x: 4751079.3309, y: 8499319.5716 },\n { id: 35535, x: 4858837.003, y: 8798071.9723 },\n { id: 35538, x: 4857069.4639, y: 8787374.8384 },\n { id: 64235, x: 4746796.7817, y: 8489423.412 },\n { id: 10948, x: 4818835.2402, y: 8468657.8629 },\n { id: 35548, x: 4850344.0444, y: 8785494.4863 },\n { id: 6856, x: 4761139.7466, y: 8590985.8702 },\n { id: 6857, x: 4759752.3485, y: 8598636.1705 },\n { id: 6858, x: 4758852.0719, y: 8584975.7751 },\n { id: 35552, x: 4847393.6557, y: 8792939.2503 },\n { id: 6870, x: 4747714.5078, y: 8595338.4477 },\n { id: 6871, x: 4746039.2078, y: 8587730.2744 },\n { id: 60162, x: 4595740.7057, y: 8589610.0233 },\n { id: 60166, x: 4593559.6854, y: 8601922.1805 },\n { id: 60168, x: 4591311.7003, y: 8585462.8725 },\n { id: 60170, x: 4588626.0194, y: 8589949.6782 },\n { id: 60172, x: 4586073.1763, y: 8594473.6887 },\n { id: 60176, x: 4582102.3003, y: 8588571.9608 },\n { id: 47882, x: 4785262.0317, y: 8787751.0468 },\n { id: 47883, x: 4785400.7663, y: 8803732.4589 },\n { id: 47884, x: 4783567.6371, y: 8798427.538 },\n { id: 47886, x: 4781356.2178, y: 8791652.7738 },\n { id: 47892, x: 4776445.8534, y: 8795727.9066 },\n { id: 2804, x: 4818412.18, y: 8589214.5203 },\n { id: 47894, x: 4774126.8905, y: 8804544.2741 },\n { id: 2805, x: 4816952.0393, y: 8581814.9397 },\n { id: 60192, x: 4575574.564, y: 8599097.8826 },\n { id: 47896, x: 4770078.1182, y: 8790876.6649 },\n { id: 39703, x: 4820420.5115, y: 8759175.4338 },\n { id: 2812, x: 4813534.4014, y: 8599498.1614 },\n { id: 2813, x: 4811801.8901, y: 8587137.0872 },\n { id: 2814, x: 4811985.0478, y: 8593630.4406 },\n { id: 39707, x: 4817251.4098, y: 8750013.5303 },\n { id: 39709, x: 4815423.6392, y: 8758421.6822 },\n { id: 56107, x: 4686504.0564, y: 8589862.5587 },\n { id: 56108, x: 4683233.4111, y: 8587145.5436 },\n { id: 56109, x: 4683420.7502, y: 8596395.5158 },\n { id: 2822, x: 4806267.7872, y: 8583081.1082 },\n { id: 56111, x: 4679830.9596, y: 8599048.0454 },\n { id: 56112, x: 4677675.8049, y: 8583479.3615 },\n { id: 39717, x: 4808906.0549, y: 8747061.1563 },\n { id: 56114, x: 4677712.2721, y: 8594590.6844 },\n { id: 2828, x: 4801975.6031, y: 8590784.9479 },\n { id: 39720, x: 4806714.3142, y: 8754497.9134 },\n { id: 27423, x: 4694765.6575, y: 8799769.7578 },\n { id: 39721, x: 4805397.8588, y: 8747260.2165 },\n { id: 56118, x: 4672861.267, y: 8593205.7387 },\n { id: 27425, x: 4693730.269, y: 8791468.9142 },\n { id: 27426, x: 4693878.8943, y: 8805003.6263 },\n { id: 56121, x: 4671042.8416, y: 8598372.3761 },\n { id: 31527, x: 4597492.0651, y: 8652560.0046 },\n { id: 31528, x: 4595753.3567, y: 8657898.8097 },\n { id: 31530, x: 4593868.8598, y: 8664530.9799 },\n { id: 27432, x: 4688868.0075, y: 8802876.2647 },\n { id: 31533, x: 4589095.6291, y: 8656116.3976 },\n { id: 27434, x: 4687697.6279, y: 8798191.8161 },\n { id: 27435, x: 4686169.3544, y: 8794562.3867 },\n { id: 27439, x: 4684256.4194, y: 8808937.2207 },\n { id: 27440, x: 4681795.4624, y: 8790633.1577 },\n { id: 31540, x: 4585878.746, y: 8648667.1466 },\n { id: 60235, x: 4765650.7239, y: 8416121.7521 },\n { id: 31542, x: 4584579.3239, y: 8652908.5421 },\n { id: 27443, x: 4680063.4724, y: 8802801.3462 },\n { id: 60236, x: 4765428.4296, y: 8407857.8713 },\n { id: 31544, x: 4583540.0974, y: 8666970.2477 },\n { id: 27448, x: 4676928.9424, y: 8790959.9156 },\n { id: 31548, x: 4579746.1034, y: 8648782.9711 },\n { id: 27449, x: 4676878.2276, y: 8797773.7668 },\n { id: 31549, x: 4579977.5523, y: 8657440.8969 },\n { id: 35653, x: 4854469.6736, y: 8850001.8137 },\n { id: 35654, x: 4853544.7512, y: 8843279.5405 },\n { id: 35658, x: 4852697.039, y: 8862113.1131 },\n { id: 15163, x: 4744231.6652, y: 8630246.732 },\n { id: 35660, x: 4850869.3589, y: 8856931.6452 },\n { id: 35663, x: 4848245.8707, y: 8845581.0938 },\n { id: 6972, x: 4738565.0575, y: 8595089.2682 },\n { id: 35666, x: 4847354.8688, y: 8850651.7104 },\n { id: 6973, x: 4737829.0661, y: 8583487.3164 },\n { id: 68459, x: 4706752.1211, y: 8479544.181 },\n { id: 68461, x: 4703837.6894, y: 8495464.9706 },\n { id: 15174, x: 4736133.8596, y: 8630921.6152 },\n { id: 68463, x: 4702696.0291, y: 8488421.9726 },\n { id: 6978, x: 4732042.6549, y: 8589518.4615 },\n { id: 15179, x: 4732346.7264, y: 8627234.1449 },\n { id: 15182, x: 4729742.0512, y: 8641197.8439 },\n { id: 68470, x: 4695758.7472, y: 8480621.6991 },\n { id: 68472, x: 4694241.0284, y: 8493967.8704 },\n { id: 43880, x: 4778815.1556, y: 8691707.7044 },\n { id: 43881, x: 4777547.7437, y: 8700077.7035 },\n { id: 43882, x: 4775723.0165, y: 8687250.2345 },\n { id: 68478, x: 4689194.7286, y: 8494338.1466 },\n { id: 68480, x: 4689426.5029, y: 8480560.5398 },\n { id: 43886, x: 4773419.5373, y: 8700805.4379 },\n { id: 43888, x: 4772380.7778, y: 8695990.7745 },\n { id: 43894, x: 4767194.13, y: 8691046.7612 },\n { id: 47997, x: 4807574.2241, y: 8829116.1499 },\n { id: 48000, x: 4802912.5591, y: 8825255.7631 },\n { id: 48002, x: 4799989.5738, y: 8825065.5745 },\n { id: 64403, x: 4742030.7656, y: 8497708.6697 },\n { id: 64405, x: 4740579.658, y: 8482431.4457 },\n { id: 72603, x: 4613648.9944, y: 8444678.2684 },\n { id: 72604, x: 4612885.1503, y: 8453769.9729 },\n { id: 64407, x: 4738551.2609, y: 8491580.5467 },\n { id: 72606, x: 4612392.8084, y: 8438159.2152 },\n { id: 64409, x: 4735621.3885, y: 8498088.7535 },\n { id: 64411, x: 4734471.9654, y: 8485198.8911 },\n { id: 72611, x: 4605033.6819, y: 8454833.2151 },\n { id: 64414, x: 4731342.7414, y: 8491779.8149 },\n { id: 72612, x: 4604199.225, y: 8439683.1904 },\n { id: 64416, x: 4729221.6532, y: 8498128.6431 },\n { id: 60317, x: 4764946.3837, y: 8443760.0447 },\n { id: 60319, x: 4764108.3496, y: 8454245.8981 },\n { id: 72616, x: 4598363.8559, y: 8447433.7833 },\n { id: 64419, x: 4727143.8343, y: 8487353.8224 },\n { id: 60320, x: 4763899.8742, y: 8448541.4778 },\n { id: 7042, x: 4869136.0719, y: 8372279.0901 },\n { id: 7043, x: 4867600.6086, y: 8379079.3827 },\n { id: 15242, x: 4752763.7365, y: 8682501.1131 },\n { id: 15243, x: 4751688.2291, y: 8676647.5907 },\n { id: 15245, x: 4750972.3237, y: 8666550.541 },\n { id: 7049, x: 4859289.1182, y: 8375739.8279 },\n { id: 39844, x: 4839437.3266, y: 8785450.7633 },\n { id: 39847, x: 4837718.1482, y: 8796932.3609 },\n { id: 52151, x: 4706846.4699, y: 8553474.5612 },\n { id: 39855, x: 4831415.0865, y: 8785681.4838 },\n { id: 11163, x: 4834123.3917, y: 8490010.6927 },\n { id: 52154, x: 4705771.7823, y: 8546060.8707 },\n { id: 39857, x: 4829914.1636, y: 8792647.9854 },\n { id: 11164, x: 4833657.3771, y: 8496207.1451 },\n { id: 52156, x: 4702962.3033, y: 8550300.5151 },\n { id: 11166, x: 4831443.4578, y: 8481074.6925 },\n { id: 52158, x: 4701480.9781, y: 8560093.902 },\n { id: 52159, x: 4700402.8225, y: 8555009.6054 },\n { id: 52161, x: 4698900.0089, y: 8545588.6663 },\n { id: 39864, x: 4825586.8119, y: 8783659.702 },\n { id: 39865, x: 4825884.4138, y: 8793047.1113 },\n { id: 11173, x: 4825850.6167, y: 8490570.9832 },\n { id: 52164, x: 4695404.9902, y: 8552480.4248 },\n { id: 52165, x: 4692588.0839, y: 8560612.7064 },\n { id: 11175, x: 4825424.0788, y: 8480229.1682 },\n { id: 52167, x: 4690381.4951, y: 8541920.2064 },\n { id: 11177, x: 4822709.5306, y: 8499648.2397 },\n { id: 11181, x: 4820726.3692, y: 8490768.8062 },\n { id: 27584, x: 4692832.9013, y: 8810089.9267 },\n { id: 27586, x: 4681955.2163, y: 8812173.7719 },\n { id: 19388, x: 4726909.1125, y: 8674821.5799 },\n { id: 15289, x: 4749944.2986, y: 8697397.0685 },\n { id: 19389, x: 4726243.6867, y: 8668883.2374 },\n { id: 27590, x: 4678034.0936, y: 8818400.5657 },\n { id: 60383, x: 4765782.1672, y: 8431711.9188 },\n { id: 19394, x: 4723665.6478, y: 8666431.2341 },\n { id: 19395, x: 4721793.777, y: 8681956.369 },\n { id: 60386, x: 4764940.3026, y: 8425561.9132 },\n { id: 19396, x: 4721119.5059, y: 8677429.8344 },\n { id: 60387, x: 4763396.2482, y: 8436289.9447 },\n { id: 19397, x: 4719467.3987, y: 8672194.9811 },\n { id: 19401, x: 4716500.8699, y: 8681072.1674 },\n { id: 19406, x: 4712366.6321, y: 8669109.4021 },\n { id: 35804, x: 4859657.7761, y: 8831373.2947 },\n { id: 19408, x: 4711717.1985, y: 8684483.0018 },\n { id: 23508, x: 4688815.5424, y: 8604920.3124 },\n { id: 19409, x: 4710848.8761, y: 8676077.4084 },\n { id: 23509, x: 4688730.084, y: 8613963.2096 },\n { id: 35808, x: 4856748.4547, y: 8824716.7837 },\n { id: 23512, x: 4683894.9269, y: 8605720.8035 },\n { id: 7118, x: 4856450.6469, y: 8369116.9962 },\n { id: 23515, x: 4683492.1749, y: 8618643.8561 },\n { id: 35814, x: 4853595.5175, y: 8833546.128 },\n { id: 35815, x: 4853041.4617, y: 8827324.7212 },\n { id: 35816, x: 4852428.1918, y: 8837775.1246 },\n { id: 7123, x: 4849642.6315, y: 8377692.0447 },\n { id: 23520, x: 4679396.8559, y: 8622680.9151 },\n { id: 23522, x: 4677413.3464, y: 8613408.0154 },\n { id: 7126, x: 4843736.5447, y: 8371552.3041 },\n { id: 7127, x: 4843246.2565, y: 8376727.2153 },\n { id: 23524, x: 4675137.972, y: 8606051.7149 },\n { id: 60420, x: 4763833.936, y: 8492819.2274 },\n { id: 35826, x: 4846754.1962, y: 8826536.7963 },\n { id: 31743, x: 4596927.1834, y: 8633258.2923 },\n { id: 31744, x: 4597100.2843, y: 8645284.2803 },\n { id: 31745, x: 4595812.3449, y: 8639440.353 },\n { id: 31746, x: 4595294.8531, y: 8627891.2083 },\n { id: 60440, x: 4765694.366, y: 8466018.6087 },\n { id: 60441, x: 4765257.6061, y: 8476583.7424 },\n { id: 60442, x: 4764315.006, y: 8470944.7399 },\n { id: 31755, x: 4590602.4788, y: 8638367.103 },\n { id: 31756, x: 4588932.9547, y: 8633131.0268 },\n { id: 31759, x: 4587315.051, y: 8643933.7218 },\n { id: 31760, x: 4586612.6471, y: 8637140.5711 },\n { id: 31761, x: 4584221.96, y: 8629621.2427 },\n { id: 31763, x: 4582978.1498, y: 8626897.8609 },\n { id: 44061, x: 4780079.2968, y: 8666955.1583 },\n { id: 31764, x: 4583182.3512, y: 8633916.652 },\n { id: 31766, x: 4580809.5462, y: 8637785.6486 },\n { id: 31767, x: 4580607.1591, y: 8643595.4886 },\n { id: 44067, x: 4775290.8016, y: 8673313.6129 },\n { id: 44068, x: 4774097.2153, y: 8679796.5753 },\n { id: 60467, x: 4744625.9125, y: 8372783.5654 },\n { id: 44071, x: 4772301.7212, y: 8665078.1019 },\n { id: 44072, x: 4770191.1134, y: 8676990.2348 },\n { id: 60469, x: 4738122.9668, y: 8375406.6451 },\n { id: 35876, x: 4851169.1398, y: 8868381.0129 },\n { id: 60471, x: 4727947.5968, y: 8375198.8891 },\n { id: 44075, x: 4768376.5373, y: 8670934.9226 },\n { id: 72791, x: 4591925.1916, y: 8449605.7573 },\n { id: 72792, x: 4591793.1543, y: 8438140.4167 },\n { id: 72794, x: 4589025.1829, y: 8455434.7022 },\n { id: 72798, x: 4586037.5016, y: 8440874.8779 },\n { id: 48218, x: 4758414.2609, y: 8624023.5748 },\n { id: 48221, x: 4756360.7643, y: 8637284.5155 },\n { id: 48223, x: 4753919.8326, y: 8630222.0155 },\n { id: 52328, x: 4725882.023, y: 8595553.6236 },\n { id: 27736, x: 4676001.9097, y: 8811581.6751 },\n { id: 52331, x: 4722826.1911, y: 8583530.9955 },\n { id: 60530, x: 4750986.5686, y: 8397259.2529 },\n { id: 27739, x: 4673117.2356, y: 8812630.5239 },\n { id: 60532, x: 4750162.2444, y: 8389034.5346 },\n { id: 27741, x: 4671314.8466, y: 8818291.3551 },\n { id: 60534, x: 4748590.9949, y: 8383700.8132 },\n { id: 52336, x: 4719875.2208, y: 8591045.4587 },\n { id: 27742, x: 4670567.4956, y: 8826494.0412 },\n { id: 68733, x: 4705360.5856, y: 8461230.8615 },\n { id: 52337, x: 4719618.2802, y: 8595101.4092 },\n { id: 68735, x: 4702569.3706, y: 8471563.3328 },\n { id: 60539, x: 4746253.9861, y: 8394651.3917 },\n { id: 52341, x: 4715325.3592, y: 8592250.7333 },\n { id: 52342, x: 4714428.9466, y: 8584577.1198 },\n { id: 68739, x: 4697802.8899, y: 8475436.6682 },\n { id: 52343, x: 4713210.1265, y: 8598476.9862 },\n { id: 68741, x: 4695447.3779, y: 8466672.4476 },\n { id: 27752, x: 4664076.2759, y: 8830501.3366 },\n { id: 52347, x: 4709102.3921, y: 8587048.2455 },\n { id: 27753, x: 4663516.5567, y: 8817044.3187 },\n { id: 52348, x: 4708798.7722, y: 8594842.6087 },\n { id: 27754, x: 4662780.5586, y: 8823337.4465 },\n { id: 68747, x: 4690426.6179, y: 8461563.4656 },\n { id: 27758, x: 4659700.2201, y: 8811418.4152 },\n { id: 27759, x: 4658886.4446, y: 8818671.3326 },\n { id: 31887, x: 4614189.6969, y: 8673881.1995 },\n { id: 3194, x: 4796377.8389, y: 8507034.7352 },\n { id: 31888, x: 4611681.8273, y: 8666843.0356 },\n { id: 31889, x: 4611259.6497, y: 8671337.2656 },\n { id: 3197, x: 4795308.2329, y: 8517107.3102 },\n { id: 56485, x: 4666457.4214, y: 8587621.5212 },\n { id: 31891, x: 4610388.1676, y: 8679474.6713 },\n { id: 56486, x: 4665135.1186, y: 8599677.5428 },\n { id: 3199, x: 4792215.0375, y: 8502152.8846 },\n { id: 56487, x: 4663634.3371, y: 8593501.524 },\n { id: 3200, x: 4792253.5527, y: 8497106.506 },\n { id: 3201, x: 4789593.2991, y: 8505095.2996 },\n { id: 31895, x: 4604041.7899, y: 8671870.8398 },\n { id: 3202, x: 4789089.536, y: 8511638.638 },\n { id: 31896, x: 4603803.7559, y: 8677201.6758 },\n { id: 3203, x: 4789180.9244, y: 8519795.5757 },\n { id: 56491, x: 4659202.6072, y: 8599379.7088 },\n { id: 56492, x: 4657487.8943, y: 8593020.2995 },\n { id: 3205, x: 4787563.1309, y: 8506555.5119 },\n { id: 56493, x: 4656071.9213, y: 8585040.3136 },\n { id: 31899, x: 4600408.1047, y: 8681647.1122 },\n { id: 31900, x: 4598550.4189, y: 8672344.185 },\n { id: 3207, x: 4786008.1231, y: 8500307.1807 },\n { id: 68792, x: 4680504.3747, y: 8371305.0802 },\n { id: 56495, x: 4652574.2311, y: 8584474.8142 },\n { id: 31901, x: 4596677.8856, y: 8678413.9659 },\n { id: 56497, x: 4652885.673, y: 8599898.5541 },\n { id: 3211, x: 4782275.6341, y: 8508733.3417 },\n { id: 31905, x: 4592082.7002, y: 8681966.4712 },\n { id: 3212, x: 4782075.0425, y: 8520294.164 },\n { id: 31906, x: 4590536.1233, y: 8674077.6575 },\n { id: 31911, x: 4582902.6309, y: 8674031.6731 },\n { id: 15518, x: 4746190.5066, y: 8686690.3756 },\n { id: 15524, x: 4741600.9817, y: 8698643.4161 },\n { id: 7327, x: 4873123.0162, y: 8389885.6094 },\n { id: 15527, x: 4737367.3066, y: 8690208.3799 },\n { id: 48321, x: 4761588.5201, y: 8652039.7496 },\n { id: 7331, x: 4869455.8762, y: 8395269.8847 },\n { id: 36025, x: 4830611.1119, y: 8605790.2567 },\n { id: 48323, x: 4760901.9216, y: 8645149.2803 },\n { id: 36027, x: 4830099.2068, y: 8617334.3729 },\n { id: 15533, x: 4733460.7976, y: 8699916.7346 },\n { id: 7335, x: 4867043.2533, y: 8386394.3218 },\n { id: 48329, x: 4754563.8496, y: 8649394.6757 },\n { id: 15537, x: 4729877.9826, y: 8685939.0275 },\n { id: 36033, x: 4826829.2716, y: 8610275.1266 },\n { id: 36035, x: 4824186.5383, y: 8601651.2998 },\n { id: 7342, x: 4860205.6182, y: 8395111.5186 },\n { id: 7343, x: 4859548.459, y: 8383959.9344 },\n { id: 36040, x: 4821386.381, y: 8611210.526 },\n { id: 11452, x: 4817244.0232, y: 8483175.3476 },\n { id: 11453, x: 4816123.836, y: 8496535.8263 },\n { id: 11458, x: 4811968.3832, y: 8486156.7447 },\n { id: 11466, x: 4805975.9145, y: 8495739.3638 },\n { id: 11472, x: 4801483.916, y: 8487135.1927 },\n { id: 31968, x: 4575546.118, y: 8619869.4438 },\n { id: 31969, x: 4573847.5049, y: 8604854.7815 },\n { id: 31970, x: 4574136.2295, y: 8615799.4428 },\n { id: 31971, x: 4573697.7461, y: 8623482.7465 },\n { id: 31978, x: 4567637.6508, y: 8608101.4653 },\n { id: 23792, x: 4670913.2338, y: 8610923.3377 },\n { id: 23794, x: 4671011.5666, y: 8620370.6256 },\n { id: 23796, x: 4668255.2145, y: 8607629.661 },\n { id: 23798, x: 4666622.7972, y: 8616809.0364 },\n { id: 23800, x: 4664738.7201, y: 8621713.8846 },\n { id: 31999, x: 4577426.7503, y: 8630741.615 },\n { id: 32000, x: 4577403.0152, y: 8646065.2668 },\n { id: 23803, x: 4662144.0923, y: 8605856.9841 },\n { id: 23805, x: 4661113.3981, y: 8616409.2534 },\n { id: 32006, x: 4578053.7313, y: 8663224.2653 },\n { id: 23809, x: 4659139.0486, y: 8622235.6372 },\n { id: 32009, x: 4837940.0445, y: 8600323.9616 },\n { id: 48406, x: 4762991.7962, y: 8664680.4528 },\n { id: 23812, x: 4656831.016, y: 8605713.7999 },\n { id: 48409, x: 4760585.1907, y: 8679912.6452 },\n { id: 48412, x: 4757617.7666, y: 8670279.402 },\n { id: 56611, x: 4648154.5328, y: 8504774.1446 },\n { id: 56613, x: 4647217.7871, y: 8518490.6375 },\n { id: 40220, x: 4843364.1868, y: 8817706.5045 },\n { id: 56618, x: 4640174.6149, y: 8501891.1134 },\n { id: 27925, x: 4676729.5736, y: 8803872.1792 },\n { id: 56619, x: 4640213.2543, y: 8512064.7463 },\n { id: 40224, x: 4840859.4693, y: 8805733.1725 },\n { id: 73019, x: 4594701.2556, y: 8421914.138 },\n { id: 27931, x: 4671625.176, y: 8798794.2099 },\n { id: 27934, x: 4668853.0473, y: 8804952.9833 },\n { id: 27936, x: 4667805.6151, y: 8794824.3031 },\n { id: 40234, x: 4836328.4724, y: 8816980.7769 },\n { id: 27937, x: 4666808.1934, y: 8809325.7745 },\n { id: 27938, x: 4666453.565, y: 8801235.1198 },\n { id: 73027, x: 4585847.2851, y: 8421326.9022 },\n { id: 40237, x: 4833130.0678, y: 8811569.2169 },\n { id: 73029, x: 4585160.2204, y: 8429895.7366 },\n { id: 40239, x: 4832441.1462, y: 8805004.3998 },\n { id: 40241, x: 4829910.0666, y: 8819341.5242 },\n { id: 27944, x: 4663202.2178, y: 8807955.2018 },\n { id: 27946, x: 4661657.6902, y: 8795577.6605 },\n { id: 73036, x: 4579754.3815, y: 8423667.7304 },\n { id: 40247, x: 4826012.8819, y: 8804194.5579 },\n { id: 27952, x: 4658515.3525, y: 8793126.7642 },\n { id: 64851, x: 4741716.6096, y: 8461902.7123 },\n { id: 64853, x: 4740127.3156, y: 8466288.1405 },\n { id: 64857, x: 4737235.5465, y: 8478860.184 },\n { id: 64858, x: 4735924.9475, y: 8469035.082 },\n { id: 64860, x: 4734286.8368, y: 8460009.608 },\n { id: 3375, x: 4795444.5359, y: 8536419.9356 },\n { id: 3376, x: 4794714.7384, y: 8521728.6605 },\n { id: 3377, x: 4794180.2614, y: 8529790.5032 },\n { id: 36171, x: 4818331.874, y: 8605689.7089 },\n { id: 64865, x: 4731072.1921, y: 8463740.0196 },\n { id: 3386, x: 4786554.0049, y: 8528314.3789 },\n { id: 64872, x: 4727826.1914, y: 8469969.9573 },\n { id: 52575, x: 4703652.8696, y: 8595037.5817 },\n { id: 48476, x: 4765604.5018, y: 8698859.6765 },\n { id: 36179, x: 4813969.7314, y: 8618226.0384 },\n { id: 52576, x: 4701945.3746, y: 8586606.0965 },\n { id: 3388, x: 4785777.9134, y: 8538481.3497 },\n { id: 64874, x: 4726014.6408, y: 8461351.0108 },\n { id: 52577, x: 4701522.6886, y: 8600274.8689 },\n { id: 52578, x: 4701102.2585, y: 8592147.1851 },\n { id: 36183, x: 4810562.0363, y: 8613714.7113 },\n { id: 3391, x: 4782442.9439, y: 8528448.9891 },\n { id: 48481, x: 4760422.094, y: 8684536.0725 },\n { id: 48482, x: 4759315.429, y: 8694760.1308 },\n { id: 52582, x: 4697019.3516, y: 8596997.3808 },\n { id: 52583, x: 4696676.7185, y: 8590982.4972 },\n { id: 48484, x: 4757801.0651, y: 8701155.3325 },\n { id: 52586, x: 4692720.077, y: 8586548.3271 },\n { id: 36190, x: 4806981.3301, y: 8603457.3927 },\n { id: 60785, x: 4761067.0281, y: 8410670.9625 },\n { id: 52587, x: 4692253.8793, y: 8597031.6144 },\n { id: 48488, x: 4753477.0263, y: 8688466.8415 },\n { id: 36191, x: 4805342.3825, y: 8613177.836 },\n { id: 60786, x: 4761109.7437, y: 8403677.2475 },\n { id: 52589, x: 4690669.3258, y: 8592568.1231 },\n { id: 64887, x: 4715720.0197, y: 8371962.6068 },\n { id: 60789, x: 4757523.2575, y: 8415241.0775 },\n { id: 60792, x: 4755389.1364, y: 8409111.6643 },\n { id: 60794, x: 4754402.1323, y: 8403993.0382 },\n { id: 64894, x: 4693749.7214, y: 8373677.1458 },\n { id: 60796, x: 4752980.8739, y: 8418226.8654 },\n { id: 60802, x: 4750482.9355, y: 8407290.783 },\n { id: 60803, x: 4749798.7104, y: 8412863.2964 },\n { id: 19814, x: 4727558.6558, y: 8689285.3555 },\n { id: 19817, x: 4727309.1134, y: 8697859.8887 },\n { id: 60809, x: 4746134.7139, y: 8404222.1864 },\n { id: 60810, x: 4745422.7565, y: 8412750.9143 },\n { id: 19822, x: 4722893.3752, y: 8696528.6861 },\n { id: 19823, x: 4722325.1005, y: 8688459.1518 },\n { id: 19824, x: 4722441.3829, y: 8704020.7356 },\n { id: 19826, x: 4719918.8513, y: 8694576.3525 },\n { id: 19830, x: 4718093.3452, y: 8690455.5176 },\n { id: 19831, x: 4715895.4889, y: 8697141.5507 },\n { id: 19832, x: 4715578.5783, y: 8703451.63 },\n { id: 19834, x: 4713430.881, y: 8690986.0307 },\n { id: 7575, x: 4873679.0009, y: 8410503.5609 },\n { id: 7576, x: 4872942.1601, y: 8399910.658 },\n { id: 7577, x: 4872137.7396, y: 8403890.1801 },\n { id: 56770, x: 4649888.398, y: 8527898.8645 },\n { id: 7583, x: 4865210.1547, y: 8399669.1141 },\n { id: 56772, x: 4647334.3463, y: 8531325.305 },\n { id: 56773, x: 4646507.4002, y: 8523241.7574 },\n { id: 15783, x: 4745320.1421, y: 8680854.1997 },\n { id: 56775, x: 4643101.7436, y: 8540950.2451 },\n { id: 15785, x: 4744072.2123, y: 8673447.1206 },\n { id: 7588, x: 4858284.6377, y: 8402214.1992 },\n { id: 48579, x: 4760299.9148, y: 8709847.45 },\n { id: 15787, x: 4739646.2859, y: 8669602.0901 },\n { id: 7589, x: 4856256.0735, y: 8407306.3423 },\n { id: 56778, x: 4641500.5531, y: 8527502.3165 },\n { id: 48580, x: 4759122.1844, y: 8721796.0294 },\n { id: 11689, x: 4817226.6415, y: 8475990.5123 },\n { id: 56779, x: 4639034.6923, y: 8520904.9731 },\n { id: 44482, x: 4801811.3283, y: 8708254.6294 },\n { id: 15789, x: 4739505.0165, y: 8679465.5806 },\n { id: 56782, x: 4638548.5154, y: 8532764.605 },\n { id: 56783, x: 4636684.1039, y: 8525742.2908 },\n { id: 48585, x: 4754824.7209, y: 8719146.5161 },\n { id: 56784, x: 4635848.5912, y: 8529258.649 },\n { id: 44488, x: 4796929.1039, y: 8714796.6656 },\n { id: 11696, x: 4812387.5717, y: 8463886.4578 },\n { id: 56786, x: 4633454.6353, y: 8531828.4351 },\n { id: 15796, x: 4733901.7586, y: 8683774.1118 },\n { id: 44490, x: 4795694.5361, y: 8706960.9931 },\n { id: 11698, x: 4811082.4076, y: 8476158.0403 },\n { id: 73184, x: 4614514.6816, y: 8476732.378 },\n { id: 15800, x: 4731153.6405, y: 8675491.2872 },\n { id: 11703, x: 4807457.7826, y: 8469370.8531 },\n { id: 44496, x: 4791136.9196, y: 8718866.7709 },\n { id: 73189, x: 4605376.4159, y: 8478083.487 },\n { id: 44497, x: 4790544.8026, y: 8711893.2078 },\n { id: 73191, x: 4605082.6871, y: 8469415.8977 },\n { id: 44500, x: 4787199.3746, y: 8704804.0407 },\n { id: 40401, x: 4823345.3291, y: 8812346.528 },\n { id: 11708, x: 4803451.3988, y: 8479204.0031 },\n { id: 73193, x: 4604113.4972, y: 8467805.4635 },\n { id: 11712, x: 4801082.6176, y: 8460707.3917 },\n { id: 40406, x: 4819688.5988, y: 8822422.4246 },\n { id: 11714, x: 4800085.4634, y: 8467528.1728 },\n { id: 40408, x: 4818321.324, y: 8816048.6315 },\n { id: 73200, x: 4598402.8008, y: 8461398.2417 },\n { id: 73201, x: 4597482.1084, y: 8470944.6292 },\n { id: 40411, x: 4816565.3904, y: 8808219.1682 },\n { id: 40416, x: 4813551.7908, y: 8822023.0257 },\n { id: 69112, x: 4688857.544, y: 8395070.7402 },\n { id: 40419, x: 4810892.9995, y: 8817631.5099 },\n { id: 40421, x: 4810046.9979, y: 8805052.4951 },\n { id: 69115, x: 4688408.9935, y: 8379522.9991 },\n { id: 40425, x: 4808148.0858, y: 8808611.849 },\n { id: 69119, x: 4684986.5962, y: 8382208.5119 },\n { id: 69122, x: 4679410.9219, y: 8389284.1266 },\n { id: 15839, x: 4750943.417, y: 8704978.6468 },\n { id: 69127, x: 4675163.8289, y: 8383339.2259 },\n { id: 15844, x: 4747965.4799, y: 8722958.2503 },\n { id: 65047, x: 4726479.4883, y: 8381375.1622 },\n { id: 65048, x: 4724994.3561, y: 8393417.477 },\n { id: 11766, x: 4797665.9077, y: 8411855.2864 },\n { id: 65054, x: 4720086.3147, y: 8396658.8012 },\n { id: 11767, x: 4797304.644, y: 8405856.3708 },\n { id: 65055, x: 4719794.4661, y: 8379165.2324 },\n { id: 48659, x: 4764851.0833, y: 8736077.4997 },\n { id: 11769, x: 4795247.9026, y: 8417563.3143 },\n { id: 65059, x: 4717280.6231, y: 8386025.9653 },\n { id: 11772, x: 4793170.491, y: 8408295.3964 },\n { id: 48665, x: 4760195.7336, y: 8732492.1648 },\n { id: 48666, x: 4758677.1325, y: 8742862.0765 },\n { id: 48667, x: 4757558.1204, y: 8727563.7814 },\n { id: 3578, x: 4779644.7958, y: 8538615.4491 },\n { id: 11777, x: 4787037.8176, y: 8413001.9877 },\n { id: 32273, x: 4855815.966, y: 8658596.6429 },\n { id: 3580, x: 4777051.3084, y: 8529738.5698 },\n { id: 36373, x: 4833672.8007, y: 8632819.1804 },\n { id: 65069, x: 4709515.5408, y: 8392417.1822 },\n { id: 36376, x: 4830800.8744, y: 8622629.4921 },\n { id: 32277, x: 4851218.0433, y: 8653216.1062 },\n { id: 36377, x: 4831227.987, y: 8641194.1372 },\n { id: 36380, x: 4828538.0414, y: 8635144.4819 },\n { id: 32281, x: 4846861.3427, y: 8656073.6781 },\n { id: 36381, x: 4826457.1676, y: 8639968.6277 },\n { id: 32282, x: 4845377.9777, y: 8647918.2833 },\n { id: 3589, x: 4770765.2349, y: 8527912.735 },\n { id: 3592, x: 4768003.286, y: 8535328.4588 },\n { id: 32286, x: 4841953.1098, y: 8651677.878 },\n { id: 36386, x: 4823431.7537, y: 8621571.2233 },\n { id: 32287, x: 4840013.4709, y: 8642784.9053 },\n { id: 28188, x: 4652374.3512, y: 8617567.9364 },\n { id: 32288, x: 4840472.2043, y: 8657956.128 },\n { id: 36388, x: 4821883.1275, y: 8631801.3718 },\n { id: 28190, x: 4650541.8493, y: 8607579.7826 },\n { id: 28191, x: 4649882.1636, y: 8612863.8448 },\n { id: 28196, x: 4647334.6459, y: 8617706.9886 },\n { id: 24098, x: 4688375.6733, y: 8633881.8356 },\n { id: 28199, x: 4645330.7488, y: 8614557.6896 },\n { id: 24100, x: 4686038.6676, y: 8626964.7695 },\n { id: 15903, x: 4751384.6578, y: 8739559.6554 },\n { id: 28201, x: 4641983.4834, y: 8621393.9442 },\n { id: 24102, x: 4684470.4205, y: 8635560.9742 },\n { id: 28202, x: 4641440.4064, y: 8607654.3039 },\n { id: 24103, x: 4684279.2591, y: 8640191.1454 },\n { id: 15905, x: 4750048.6664, y: 8732424.4404 },\n { id: 28203, x: 4641600.263, y: 8616857.8736 },\n { id: 28204, x: 4639340.388, y: 8604087.2429 },\n { id: 24107, x: 4679539.132, y: 8638635.9038 },\n { id: 24108, x: 4678923.9083, y: 8627528.9842 },\n { id: 28208, x: 4637725.1185, y: 8615362.4905 },\n { id: 24110, x: 4678130.8914, y: 8642678.4939 },\n { id: 24111, x: 4676446.8491, y: 8634675.4011 },\n { id: 28211, x: 4634722.1043, y: 8620832.2276 },\n { id: 24112, x: 4675754.5803, y: 8624281.1349 },\n { id: 24113, x: 4674590.6535, y: 8629758.8845 },\n { id: 24115, x: 4674058.9706, y: 8639074.3663 },\n { id: 20024, x: 4709817.4875, y: 8700219.0444 },\n { id: 20027, x: 4708999.3584, y: 8696446.566 },\n { id: 20028, x: 4708459.3053, y: 8692144.1604 },\n { id: 20031, x: 4705375.3363, y: 8698905.5114 },\n { id: 11835, x: 4776797.0661, y: 8417546.5941 },\n { id: 20034, x: 4702888.741, y: 8694218.6216 },\n { id: 20035, x: 4702145.7856, y: 8702318.8999 },\n { id: 11837, x: 4772300.932, y: 8412046.8814 },\n { id: 20040, x: 4699500.4651, y: 8704709.1791 },\n { id: 20043, x: 4697129.7209, y: 8697221.3377 },\n { id: 20045, x: 4695204.7134, y: 8704658.9607 },\n { id: 20046, x: 4694190.0859, y: 8687998.3067 },\n { id: 61038, x: 4744692.5426, y: 8400584.0834 },\n { id: 56939, x: 4631016.4416, y: 8526581.9605 },\n { id: 48742, x: 4766594.3896, y: 8762002.9658 },\n { id: 61040, x: 4742234.6365, y: 8415580.1598 },\n { id: 56942, x: 4629575.5362, y: 8532297.4258 },\n { id: 7754, x: 4851591.6759, y: 8413937.9882 },\n { id: 56943, x: 4626659.5948, y: 8529306.7815 },\n { id: 61043, x: 4741092.3701, y: 8404425.871 },\n { id: 56944, x: 4626347.4859, y: 8524487.5422 },\n { id: 61044, x: 4739877.2313, y: 8411243.5004 },\n { id: 56945, x: 4626557.3829, y: 8539427.7593 },\n { id: 48748, x: 4761253.7175, y: 8756527.5071 },\n { id: 7758, x: 4849397.7824, y: 8407452.5303 },\n { id: 48749, x: 4760530.2861, y: 8750571.8561 },\n { id: 61047, x: 4738528.8542, y: 8407620.5995 },\n { id: 48750, x: 4758967.9752, y: 8765059.1254 },\n { id: 56951, x: 4620127.8425, y: 8529396.1408 },\n { id: 56952, x: 4619223.9818, y: 8521221.0225 },\n { id: 48754, x: 4756378.6979, y: 8758563.7683 },\n { id: 61052, x: 4735697.3858, y: 8416480.1533 },\n { id: 48755, x: 4755339.0319, y: 8747792.3823 },\n { id: 7765, x: 4845763.9891, y: 8400317.8373 },\n { id: 61054, x: 4735185.9469, y: 8402846.4295 },\n { id: 56956, x: 4615903.7988, y: 8536896.3124 },\n { id: 7768, x: 4843754.8318, y: 8411610.5902 },\n { id: 61056, x: 4733331.0783, y: 8411148.8857 },\n { id: 61059, x: 4731631.9085, y: 8417070.5093 },\n { id: 7773, x: 4842144.9598, y: 8405602.4094 },\n { id: 61063, x: 4730064.6012, y: 8403332.8132 },\n { id: 61065, x: 4728057.4316, y: 8412051.2204 },\n { id: 7778, x: 4838417.1561, y: 8418849.4809 },\n { id: 7779, x: 4837971.2232, y: 8401302.3061 },\n { id: 61067, x: 4726926.7445, y: 8417716.5214 },\n { id: 61069, x: 4726462.4432, y: 8407951.2445 },\n { id: 40611, x: 4819650.2324, y: 8795447.2662 },\n { id: 40616, x: 4816842.3702, y: 8787989.1194 },\n { id: 73409, x: 4611941.6837, y: 8488185.2985 },\n { id: 40618, x: 4815881.1276, y: 8803525.9224 },\n { id: 73411, x: 4609333.744, y: 8482022.2154 },\n { id: 73414, x: 4607048.2673, y: 8495334.1419 },\n { id: 40623, x: 4813487.7818, y: 8797380.6557 },\n { id: 40625, x: 4812366.2281, y: 8791347.2225 },\n { id: 73417, x: 4605415.3968, y: 8486248.5397 },\n { id: 48825, x: 4768687.2213, y: 8785313.0322 },\n { id: 48827, x: 4766753.4304, y: 8780491.2801 },\n { id: 73421, x: 4598950.4208, y: 8484415.3296 },\n { id: 48828, x: 4765881.9084, y: 8766372.0631 },\n { id: 48830, x: 4763935.3729, y: 8772318.5351 },\n { id: 48834, x: 4758378.9263, y: 8774668.728 },\n { id: 48835, x: 4758218.2367, y: 8781340.0742 },\n { id: 52952, x: 4687934.8698, y: 8505243.2136 },\n { id: 16061, x: 4744464.3082, y: 8742737.655 },\n { id: 16062, x: 4743851.2824, y: 8728916.782 },\n { id: 16067, x: 4738126.9217, y: 8736476.5622 },\n { id: 52959, x: 4680055.2476, y: 8516865.0495 },\n { id: 52960, x: 4676795.6567, y: 8502551.9369 },\n { id: 16069, x: 4735966.8843, y: 8725591.4597 },\n { id: 52961, x: 4676642.7036, y: 8508435.164 },\n { id: 52963, x: 4672959.5529, y: 8516238.836 },\n { id: 16072, x: 4734160.4339, y: 8743305.8727 },\n { id: 16075, x: 4731275.964, y: 8733950.8897 },\n { id: 73469, x: 4593892.9466, y: 8493243.2005 },\n { id: 73473, x: 4589632.2516, y: 8486590.2048 },\n { id: 73474, x: 4586119.4848, y: 8479740.6432 },\n { id: 57081, x: 4631768.6434, y: 8509755.6718 },\n { id: 36586, x: 4836850.7498, y: 8654055.5618 },\n { id: 57082, x: 4631730.736, y: 8518376.6075 },\n { id: 57083, x: 4628244.289, y: 8501288.8801 },\n { id: 57084, x: 4627610.9814, y: 8512203.9834 },\n { id: 36593, x: 4831555.0436, y: 8651759.0198 },\n { id: 57089, x: 4622745.5648, y: 8506434.5748 },\n { id: 3807, x: 4780271.7826, y: 8504116.545 },\n { id: 36603, x: 4823739.9596, y: 8648744.9395 },\n { id: 3811, x: 4776340.6605, y: 8514126.7332 },\n { id: 12010, x: 4798178.032, y: 8435466.9505 },\n { id: 3812, x: 4774889.6233, y: 8504880.1424 },\n { id: 36606, x: 4821104.8488, y: 8653776.0957 },\n { id: 12012, x: 4795943.7322, y: 8430176.3145 },\n { id: 48905, x: 4767893.7948, y: 8797850.8649 },\n { id: 3817, x: 4771425.3087, y: 8510950.4135 },\n { id: 3818, x: 4770364.04, y: 8520302.2214 },\n { id: 12017, x: 4794434.0745, y: 8421317.6404 },\n { id: 69404, x: 4683204.6471, y: 8413744.4506 },\n { id: 3820, x: 4767908.8434, y: 8514359.7271 },\n { id: 32514, x: 4873581.6616, y: 8675787.6963 },\n { id: 12020, x: 4790819.8395, y: 8426925.8203 },\n { id: 3822, x: 4766646.0161, y: 8504686.9341 },\n { id: 48912, x: 4761529.0322, y: 8791688.0696 },\n { id: 69408, x: 4679733.936, y: 8400326.4786 },\n { id: 48913, x: 4759980.0572, y: 8787525.517 },\n { id: 12022, x: 4789114.0146, y: 8435802.0319 },\n { id: 69409, x: 4677723.3118, y: 8407315.1456 },\n { id: 32518, x: 4869337.9685, y: 8668537.8925 },\n { id: 48915, x: 4759681.928, y: 8798249.4322 },\n { id: 48916, x: 4758002.4808, y: 8804844.2531 },\n { id: 12025, x: 4787925.0054, y: 8421003.1085 },\n { id: 32522, x: 4866111.6155, y: 8678170.1375 },\n { id: 12029, x: 4784644.4021, y: 8432422.7886 },\n { id: 69416, x: 4672111.6919, y: 8402627.6773 },\n { id: 32526, x: 4861691.3909, y: 8672835.2063 },\n { id: 12031, x: 4783697.4605, y: 8426483.5668 },\n { id: 12032, x: 4782595.5698, y: 8423047.1225 },\n { id: 32529, x: 4859692.0574, y: 8665802.5103 },\n { id: 32530, x: 4859912.753, y: 8680228.79 },\n { id: 7955, x: 4854844.7231, y: 8391189.9261 },\n { id: 28453, x: 4632866.4372, y: 8612295.8359 },\n { id: 7958, x: 4851558.3282, y: 8398510.2158 },\n { id: 7959, x: 4851591.5654, y: 8385579.7948 },\n { id: 28455, x: 4630291.4997, y: 8605434.2776 },\n { id: 28458, x: 4628538.6665, y: 8616515.2768 },\n { id: 28459, x: 4628659.8954, y: 8620157.0074 },\n { id: 7964, x: 4847482.4049, y: 8391951.7319 },\n { id: 28460, x: 4626400.7589, y: 8613510.1318 },\n { id: 28462, x: 4625809.8208, y: 8605686.629 },\n { id: 28465, x: 4624098.7795, y: 8621834.1691 },\n { id: 7971, x: 4844905.2441, y: 8385791.4833 },\n { id: 28468, x: 4621284.4642, y: 8610006.2064 },\n { id: 28469, x: 4621097.5313, y: 8619101.9488 },\n { id: 28470, x: 4619041.794, y: 8615773.9868 },\n { id: 7975, x: 4841598.5488, y: 8394020.6203 },\n { id: 28472, x: 4617691.8865, y: 8605961.024 },\n { id: 73561, x: 4595333.8034, y: 8478660.2839 },\n { id: 28473, x: 4617590.2486, y: 8611421.4636 },\n { id: 28474, x: 4617586.6691, y: 8621740.2826 },\n { id: 24379, x: 4690121.7344, y: 8663105.2455 },\n { id: 73567, x: 4589485.6745, y: 8462474.2818 },\n { id: 24382, x: 4686209.0235, y: 8651560.9395 },\n { id: 73570, x: 4585120.5496, y: 8470052.4293 },\n { id: 24384, x: 4685301.6976, y: 8657340.7817 },\n { id: 24386, x: 4684444.5114, y: 8663310.3066 },\n { id: 73574, x: 4577911.6447, y: 8416665.8356 },\n { id: 24388, x: 4681896.714, y: 8644994.3606 },\n { id: 7992, x: 4856169.6788, y: 8451969.1808 },\n { id: 73576, x: 4576698.1607, y: 8431036.0443 },\n { id: 24389, x: 4681743.7239, y: 8653972.2333 },\n { id: 73577, x: 4576675.8992, y: 8426499.2564 },\n { id: 24390, x: 4681247.5662, y: 8660652.9042 },\n { id: 73578, x: 4576669.0287, y: 8426495.7681 },\n { id: 24392, x: 4679932.3355, y: 8664347.6138 },\n { id: 24394, x: 4676145.3063, y: 8659885.0588 },\n { id: 24397, x: 4674241.6145, y: 8652893.7227 },\n { id: 40797, x: 4844370.3246, y: 8833950.9217 },\n { id: 40798, x: 4844345.1848, y: 8841141.972 },\n { id: 40806, x: 4839237.8892, y: 8835591.8745 },\n { id: 40809, x: 4836908.4723, y: 8823844.0015 },\n { id: 44910, x: 4802508.5515, y: 8724277.7698 },\n { id: 40811, x: 4835539.146, y: 8828930.8879 },\n { id: 44913, x: 4799511.8306, y: 8743467.7328 },\n { id: 40814, x: 4834309.6705, y: 8836208.7818 },\n { id: 44915, x: 4798303.7117, y: 8734815.9464 },\n { id: 61313, x: 4744288.073, y: 8379376.2054 },\n { id: 61314, x: 4743804.5792, y: 8389790.2952 },\n { id: 40819, x: 4830128.1592, y: 8829970.9375 },\n { id: 40820, x: 4829714.7902, y: 8823810.0905 },\n { id: 44920, x: 4793909.4736, y: 8736774.8363 },\n { id: 44922, x: 4792742.5621, y: 8729621.7335 },\n { id: 40823, x: 4828476.8563, y: 8837142.3806 },\n { id: 16231, x: 4746537.1515, y: 8714918.3587 },\n { id: 61321, x: 4739825.959, y: 8383454.3996 },\n { id: 69520, x: 4670660.1361, y: 8413299.9922 },\n { id: 61322, x: 4738886.3014, y: 8396033.7215 },\n { id: 57224, x: 4648961.9443, y: 8545724.9439 },\n { id: 44928, x: 4788017.9428, y: 8743188.9633 },\n { id: 20334, x: 4706938.0929, y: 8664800.4155 },\n { id: 57226, x: 4647987.4923, y: 8552979.2721 },\n { id: 16236, x: 4741538.6949, y: 8720072.0112 },\n { id: 57227, x: 4647418.8178, y: 8561217.1055 },\n { id: 20336, x: 4705836.9661, y: 8683854.6125 },\n { id: 20337, x: 4704711.4125, y: 8678112.482 },\n { id: 69526, x: 4665278.2108, y: 8401671.8275 },\n { id: 61328, x: 4735426.1301, y: 8390228.3868 },\n { id: 57229, x: 4645044.821, y: 8553780.7723 },\n { id: 20338, x: 4703745.3787, y: 8671417.0436 },\n { id: 16239, x: 4738760.1121, y: 8707547.8763 },\n { id: 61330, x: 4734845.1945, y: 8377519.3754 },\n { id: 57231, x: 4644415.7423, y: 8547741.4886 },\n { id: 20340, x: 4702043.4885, y: 8684587.3915 },\n { id: 57232, x: 4643920.2906, y: 8560319.5575 },\n { id: 57233, x: 4640848.5619, y: 8553888.1878 },\n { id: 20342, x: 4700274.4251, y: 8674430.1766 },\n { id: 16244, x: 4734976.7525, y: 8715521.8727 },\n { id: 69532, x: 4660725.5468, y: 8398992.3317 },\n { id: 57235, x: 4639360.1549, y: 8544831.085 },\n { id: 49037, x: 4767825.5634, y: 8813784.064 },\n { id: 69533, x: 4656801.4558, y: 8407049.3787 },\n { id: 16246, x: 4731570.1936, y: 8707347.3069 },\n { id: 69534, x: 4655685.4588, y: 8401934.8994 },\n { id: 61336, x: 4731567.0872, y: 8382291.1822 },\n { id: 57237, x: 4639259.2462, y: 8561123.5609 },\n { id: 49039, x: 4765682.6747, y: 8806963.2101 },\n { id: 20346, x: 4696895.7608, y: 8683923.7449 },\n { id: 61337, x: 4730317.2456, y: 8390078.6654 },\n { id: 20347, x: 4695681.556, y: 8678395.7966 },\n { id: 16248, x: 4730836.6815, y: 8724583.8452 },\n { id: 61338, x: 4730133.8238, y: 8395091.8834 },\n { id: 57239, x: 4636613.079, y: 8551811.582 },\n { id: 20349, x: 4693999.6652, y: 8669271.8627 },\n { id: 49045, x: 4760393.8476, y: 8812720.5768 },\n { id: 61343, x: 4726814.1517, y: 8386342.7524 },\n { id: 49047, x: 4881209.044, y: 8699772.2396 },\n { id: 49049, x: 4879537.1009, y: 8689735.9906 },\n { id: 36759, x: 4818491.3767, y: 8644307.9927 },\n { id: 36766, x: 4813894.055, y: 8658617.5844 },\n { id: 36767, x: 4813185.396, y: 8650286.0365 },\n { id: 69567, x: 4670377.5363, y: 8377494.7954 },\n { id: 69568, x: 4669710.9872, y: 8393032.9287 },\n { id: 36776, x: 4808179.0765, y: 8644801.1242 },\n { id: 69569, x: 4667647.2641, y: 8386348.5685 },\n { id: 36782, x: 4804054.7417, y: 8653336.2456 },\n { id: 65481, x: 4724789.8, y: 8413550.5338 },\n { id: 65487, x: 4721829.9985, y: 8406034.0266 },\n { id: 65492, x: 4715132.4831, y: 8398725.5141 },\n { id: 65494, x: 4714187.4131, y: 8410049.3331 },\n { id: 16311, x: 4751680.5311, y: 8759309.9288 },\n { id: 16312, x: 4751260.0612, y: 8751278.642 },\n { id: 32733, x: 4873302.4236, y: 8689775.479 },\n { id: 4040, x: 4799311.724, y: 8557396.3074 },\n { id: 32734, x: 4870722.4828, y: 8682866.2925 },\n { id: 32735, x: 4871245.2292, y: 8698655.7383 },\n { id: 4045, x: 4796390.6093, y: 8542914.9838 },\n { id: 32742, x: 4866568.2567, y: 8689682.9625 },\n { id: 12247, x: 4798524.579, y: 8454743.4924 },\n { id: 32743, x: 4865448.8209, y: 8685260.3801 },\n { id: 32745, x: 4864809.1363, y: 8696739.5802 },\n { id: 12250, x: 4797041.9895, y: 8446932.9247 },\n { id: 12251, x: 4796871.8571, y: 8442366.0056 },\n { id: 4053, x: 4789607.46, y: 8554344.8872 },\n { id: 32751, x: 4859453.547, y: 8687213.0774 },\n { id: 12256, x: 4792315.1585, y: 8439527.0058 },\n { id: 4058, x: 4785500.7597, y: 8546415.7885 },\n { id: 12257, x: 4791508.3658, y: 8448738.4409 },\n { id: 12258, x: 4790795.3518, y: 8454082.5426 },\n { id: 16359, x: 4754780.4343, y: 8769273.0841 },\n { id: 12262, x: 4787624.7294, y: 8441596.8395 },\n { id: 16362, x: 4752640.8129, y: 8776370.9604 },\n { id: 16364, x: 4751510.0999, y: 8782936.9655 },\n { id: 16365, x: 4749820.4489, y: 8767463.1311 },\n { id: 12266, x: 4784114.9053, y: 8449638.3353 },\n { id: 12267, x: 4783152.4975, y: 8439503.7021 },\n { id: 12270, x: 4782318.3458, y: 8445322.7555 },\n { id: 40973, x: 4845354.9492, y: 8859900.9979 },\n { id: 40977, x: 4842332.3119, y: 8850468.2208 },\n { id: 40978, x: 4842285.4768, y: 8856269.411 },\n { id: 40984, x: 4838372.9868, y: 8852145.4612 },\n { id: 40985, x: 4837773.5254, y: 8843467.5493 },\n { id: 40989, x: 4835920.4719, y: 8860652.712 },\n { id: 49188, x: 4887331.0593, y: 8728475.6178 }\n ];\n }", "function updatePositionsincident() {\n var positions = line.geometry.attributes.position.array;\n\n var x = -16;\n var y = 0; \n var z = -2.5;\n var index = 0;\n\n for ( var i = 0, l = MAX_POINTS; i < l; i ++ ) {\n\n positions[ index ++ ] = x;\n positions[ index ++ ] = y;\n positions[ index ++ ] = z;\n\n x += (11.78/MAX_POINTS);\n y += (3/MAX_POINTS);\n }\n}", "initPoints() {\n this._points = [\n { id: 1, x: 4845196.3236, y: 8538521.2622 },\n { id: 40991, x: 4833644.7969, y: 8851764.3741 },\n { id: 3, x: 4840744.855, y: 8533088.6782 },\n { id: 49192, x: 4886186.3963, y: 8735776.8481 },\n { id: 40994, x: 4831870.068, y: 8843991.9019 },\n { id: 6, x: 4837763.3101, y: 8522427.4171 },\n { id: 7, x: 4837078.6992, y: 8539194.421 },\n { id: 49196, x: 4882592.8273, y: 8724040.2113 },\n { id: 40999, x: 4829746.821, y: 8859707.0537 },\n { id: 49198, x: 4882361.9601, y: 8731239.2658 },\n { id: 45108, x: 4785255.6563, y: 8736415.4892 },\n { id: 45111, x: 4783436.382, y: 8741565.3575 },\n { id: 45112, x: 4781506.5049, y: 8723980.5635 },\n { id: 45115, x: 4778448.2647, y: 8730727.894 },\n { id: 45121, x: 4774029.912, y: 8737457.7923 },\n { id: 45123, x: 4771837.4088, y: 8730847.2473 },\n { id: 45124, x: 4770400.618, y: 8724229.9787 },\n { id: 45126, x: 4770499.4249, y: 8742629.9617 },\n { id: 57430, x: 4650775.8241, y: 8564243.1184 },\n { id: 57431, x: 4649590.2675, y: 8574603.1762 },\n { id: 57432, x: 4648063.0178, y: 8582007.6803 },\n { id: 57433, x: 4646342.5335, y: 8566964.3161 },\n { id: 24642, x: 4671382.7823, y: 8648558.4637 },\n { id: 8247, x: 4852374.9012, y: 8441466.4075 },\n { id: 24645, x: 4669805.9782, y: 8656269.1397 },\n { id: 8249, x: 4850390.8286, y: 8449553.921 },\n { id: 57437, x: 4643507.9267, y: 8582628.1467 },\n { id: 57438, x: 4642690.6807, y: 8575128.4801 },\n { id: 57440, x: 4641127.5278, y: 8568976.0612 },\n { id: 24651, x: 4665307.5445, y: 8662304.316 },\n { id: 8255, x: 4846724.9528, y: 8444503.3914 },\n { id: 24652, x: 4664368.3197, y: 8645368.2937 },\n { id: 57444, x: 4637203.741, y: 8581061.2033 },\n { id: 57445, x: 4636612.5921, y: 8571933.0244 },\n { id: 57447, x: 4634995.3452, y: 8565334.4165 },\n { id: 24656, x: 4662356.542, y: 8651817.1346 },\n { id: 8260, x: 4842963.0587, y: 8449164.7733 },\n { id: 24657, x: 4661955.5825, y: 8658406.4574 },\n { id: 24658, x: 4661977.6057, y: 8663118.0352 },\n { id: 8262, x: 4841144.4604, y: 8458800.7543 },\n { id: 8264, x: 4839893.8899, y: 8442815.5277 },\n { id: 24662, x: 4658775.3503, y: 8645983.8338 },\n { id: 8266, x: 4837333.3711, y: 8456810.2902 },\n { id: 24663, x: 4657881.5861, y: 8664044.317 },\n { id: 8267, x: 4837625.327, y: 8447787.0568 },\n { id: 24664, x: 4657462.9008, y: 8654224.8825 },\n { id: 24667, x: 4655247.0718, y: 8659177.7171 },\n { id: 36978, x: 4815446.5932, y: 8629092.0781 },\n { id: 36980, x: 4814068.7107, y: 8639488.5807 },\n { id: 36986, x: 4808852.2493, y: 8629707.6407 },\n { id: 36987, x: 4807414.7475, y: 8622297.8737 },\n { id: 36993, x: 4802238.9547, y: 8640756.5897 },\n { id: 36994, x: 4801734.0043, y: 8630205.1323 },\n { id: 61596, x: 4759486.6127, y: 8429038.0365 },\n { id: 61597, x: 4758641.6908, y: 8438783.8508 },\n { id: 61599, x: 4758366.8187, y: 8424841.386 },\n { id: 49302, x: 4883959.4894, y: 8716189.4969 },\n { id: 61601, x: 4758323.8844, y: 8419697.473 },\n { id: 49304, x: 4882412.6839, y: 8708668.917 },\n { id: 61602, x: 4756967.4668, y: 8434411.0399 },\n { id: 20612, x: 4727247.3073, y: 8712704.8842 },\n { id: 20615, x: 4726347.0307, y: 8719332.2008 },\n { id: 61608, x: 4754305.9834, y: 8428351.3131 },\n { id: 20618, x: 4721766.3141, y: 8719011.1448 },\n { id: 20619, x: 4721402.7657, y: 8711204.4786 },\n { id: 61612, x: 4752959.9224, y: 8422787.2783 },\n { id: 20624, x: 4716782.7853, y: 8721143.3353 },\n { id: 61615, x: 4750986.8881, y: 8434632.3865 },\n { id: 20625, x: 4716063.5516, y: 8709786.4158 },\n { id: 20628, x: 4712473.3755, y: 8717753.5293 },\n { id: 53421, x: 4687440.4836, y: 8532828.8067 },\n { id: 53422, x: 4686510.5651, y: 8521368.1555 },\n { id: 61621, x: 4748065.9641, y: 8418657.8795 },\n { id: 12434, x: 4778935.7205, y: 8451080.8125 },\n { id: 61623, x: 4747015.4702, y: 8423560.8911 },\n { id: 12435, x: 4777336.1153, y: 8457338.597 },\n { id: 61624, x: 4745858.8766, y: 8428891.7655 },\n { id: 53426, x: 4681765.1535, y: 8539545.2625 },\n { id: 12436, x: 4776343.4395, y: 8442966.2149 },\n { id: 61625, x: 4744681.0893, y: 8435384.0016 },\n { id: 53427, x: 4679518.0852, y: 8527123.3353 },\n { id: 53428, x: 4678737.5137, y: 8532985.4268 },\n { id: 53432, x: 4672808.2188, y: 8523080.5666 },\n { id: 53433, x: 4671743.5054, y: 8537772.7908 },\n { id: 12443, x: 4772971.6282, y: 8439392.5927 },\n { id: 12444, x: 4771278.742, y: 8454979.7101 },\n { id: 12447, x: 4769632.7761, y: 8447176.1296 },\n { id: 154, x: 4837546.2851, y: 8503768.8028 },\n { id: 155, x: 4837082.798, y: 8512085.8075 },\n { id: 12453, x: 4766703.0307, y: 8439750.1014 },\n { id: 69859, x: 4684010.9171, y: 8436196.4252 },\n { id: 69861, x: 4682838.5734, y: 8425470.4579 },\n { id: 32973, x: 4857122.7117, y: 8695990.1652 },\n { id: 32976, x: 4853541.795, y: 8687079.3727 },\n { id: 69869, x: 4675012.1618, y: 8435702.9995 },\n { id: 32978, x: 4849736.0425, y: 8692972.3151 },\n { id: 32979, x: 4849108.2752, y: 8685361.5363 },\n { id: 32981, x: 4846768.5624, y: 8700386.5976 },\n { id: 32984, x: 4842835.6161, y: 8687112.8444 },\n { id: 4296, x: 4798840.4037, y: 8564652.3306 },\n { id: 4297, x: 4798287.8631, y: 8573882.1154 },\n { id: 28893, x: 4651620.4881, y: 8635263.597 },\n { id: 16596, x: 4748553.6246, y: 8775562.7244 },\n { id: 16597, x: 4747277.249, y: 8782411.3328 },\n { id: 41192, x: 4825411.4956, y: 8850441.5601 },\n { id: 28895, x: 4649871.1415, y: 8625167.2618 },\n { id: 41194, x: 4824765.7621, y: 8843780.4093 },\n { id: 28898, x: 4647233.5759, y: 8632798.3433 },\n { id: 16601, x: 4742928.8987, y: 8767227.0928 },\n { id: 4304, x: 4793155.612, y: 8565362.3567 },\n { id: 28899, x: 4646960.8939, y: 8637513.7143 },\n { id: 28901, x: 4647065.1338, y: 8643091.7158 },\n { id: 16604, x: 4740241.5164, y: 8771611.6541 },\n { id: 41200, x: 4821755.3087, y: 8857313.4801 },\n { id: 16606, x: 4740095.6642, y: 8777148.6227 },\n { id: 28904, x: 4643059.9294, y: 8629307.5664 },\n { id: 16607, x: 4739331.4793, y: 8786015.9181 },\n { id: 211, x: 4841382.8941, y: 8574380.9496 },\n { id: 41202, x: 4819000.5697, y: 8849289.5667 },\n { id: 28906, x: 4643159.1115, y: 8643284.5583 },\n { id: 4312, x: 4787818.6312, y: 8574921.7418 },\n { id: 28907, x: 4642769.6994, y: 8638963.8339 },\n { id: 28908, x: 4642374.5974, y: 8635140.5631 },\n { id: 4314, x: 4786838.4559, y: 8563494.7058 },\n { id: 215, x: 4837948.9329, y: 8562787.8843 },\n { id: 41206, x: 4816393.974, y: 8857630.5762 },\n { id: 28909, x: 4640562.8239, y: 8631074.2336 },\n { id: 216, x: 4838142.6879, y: 8569979.4298 },\n { id: 28913, x: 4639526.3344, y: 8644635.0087 },\n { id: 16616, x: 4731984.8403, y: 8781553.4017 },\n { id: 4319, x: 4783071.6172, y: 8571201.0678 },\n { id: 28916, x: 4636531.2125, y: 8639719.7747 },\n { id: 28917, x: 4636309.6663, y: 8635408.9937 },\n { id: 49413, x: 4890823.6958, y: 8760810.1049 },\n { id: 45314, x: 4783301.9421, y: 8715570.9869 },\n { id: 28918, x: 4635709.6328, y: 8628809.8305 },\n { id: 49418, x: 4882680.5438, y: 8778124.8092 },\n { id: 49419, x: 4882110.1834, y: 8765438.536 },\n { id: 49421, x: 4881310.4756, y: 8772592.5879 },\n { id: 45322, x: 4777319.9389, y: 8710693.9784 },\n { id: 45323, x: 4775568.1393, y: 8706510.1336 },\n { id: 45324, x: 4775869.6493, y: 8718632.7153 },\n { id: 12536, x: 4777692.2303, y: 8434815.5071 },\n { id: 45330, x: 4768555.4905, y: 8713701.3537 },\n { id: 12539, x: 4776659.9744, y: 8428380.1498 },\n { id: 45332, x: 4767568.0541, y: 8708627.1262 },\n { id: 12540, x: 4775456.5012, y: 8423833.0984 },\n { id: 12544, x: 4772479.0176, y: 8432247.1443 },\n { id: 12547, x: 4770470.3044, y: 8436314.1842 },\n { id: 12548, x: 4768934.4016, y: 8419734.0048 },\n { id: 12549, x: 4768639.3872, y: 8427181.1184 },\n { id: 255, x: 4845110.0987, y: 8546729.2103 },\n { id: 259, x: 4841604.9114, y: 8553640.6107 },\n { id: 260, x: 4840853.3019, y: 8541480.2643 },\n { id: 65846, x: 4703934.6143, y: 8401892.0061 },\n { id: 262, x: 4838371.5187, y: 8544904.4627 },\n { id: 65848, x: 4703421.9803, y: 8409776.9106 },\n { id: 65853, x: 4695224.3211, y: 8412051.1341 },\n { id: 65859, x: 4690262.2901, y: 8404584.5274 },\n { id: 20785, x: 4729215.8743, y: 8728025.9993 },\n { id: 20786, x: 4727391.8577, y: 8733698.7694 },\n { id: 20788, x: 4725810.498, y: 8742993.5002 },\n { id: 20790, x: 4724162.6782, y: 8725641.8225 },\n { id: 20793, x: 4721902.7791, y: 8732512.0606 },\n { id: 20797, x: 4719274.3126, y: 8740345.4916 },\n { id: 20798, x: 4718735.9551, y: 8736031.2095 },\n { id: 20801, x: 4716118.8574, y: 8745789.1329 },\n { id: 57693, x: 4632315.3087, y: 8571117.1988 },\n { id: 20802, x: 4714447.6208, y: 8729809.6305 },\n { id: 57695, x: 4630260.3685, y: 8580316.583 },\n { id: 20805, x: 4713071.7449, y: 8737354.9842 },\n { id: 57697, x: 4629678.6652, y: 8574660.7259 },\n { id: 8509, x: 4850578.9858, y: 8430361.7403 },\n { id: 57702, x: 4624897.4416, y: 8569261.133 },\n { id: 8514, x: 4847110.0358, y: 8420284.3172 },\n { id: 57703, x: 4623956.8043, y: 8563605.1537 },\n { id: 8515, x: 4846318.6683, y: 8437846.0786 },\n { id: 57704, x: 4623611.4643, y: 8575351.9171 },\n { id: 57705, x: 4623531.3613, y: 8581380.7974 },\n { id: 37210, x: 4835145.7911, y: 8680941.2719 },\n { id: 37211, x: 4834965.4487, y: 8676228.8768 },\n { id: 37212, x: 4834227.5845, y: 8671034.5829 },\n { id: 57708, x: 4621549.2709, y: 8567804.7674 },\n { id: 37213, x: 4833698.8527, y: 8665783.8714 },\n { id: 57710, x: 4619845.8701, y: 8575663.42 },\n { id: 37216, x: 4829693.076, y: 8661734.3745 },\n { id: 8524, x: 4840265.7713, y: 8429645.7882 },\n { id: 37219, x: 4827554.7576, y: 8680148.0247 },\n { id: 57715, x: 4616587.5891, y: 8570299.013 },\n { id: 37220, x: 4826867.9773, y: 8674547.7427 },\n { id: 57717, x: 4615627.0313, y: 8577886.2287 },\n { id: 70026, x: 4685533.9566, y: 8451108.6709 },\n { id: 70029, x: 4682847.8049, y: 8444694.8573 },\n { id: 33141, x: 4852567.6896, y: 8676283.5465 },\n { id: 33143, x: 4852073.142, y: 8669766.3451 },\n { id: 33147, x: 4847918.9192, y: 8663990.3472 },\n { id: 70041, x: 4672139.8671, y: 8453433.5074 },\n { id: 70042, x: 4671315.5787, y: 8439476.4201 },\n { id: 33151, x: 4845715.6409, y: 8676397.0296 },\n { id: 33157, x: 4840936.9928, y: 8669040.4401 },\n { id: 24985, x: 4668807.7302, y: 8643206.4267 },\n { id: 24987, x: 4667772.225, y: 8636716.6527 },\n { id: 24988, x: 4666006.5614, y: 8631514.0125 },\n { id: 24994, x: 4661687.9395, y: 8640229.9524 },\n { id: 24996, x: 4658356.5306, y: 8631942.9465 },\n { id: 24999, x: 4656108.9299, y: 8637774.5863 },\n { id: 25000, x: 4654754.9499, y: 8627472.7345 },\n { id: 25001, x: 4653540.5659, y: 8630712.8563 },\n { id: 16806, x: 4748500.0003, y: 8752939.7574 },\n { id: 16811, x: 4744197.1825, y: 8749627.6362 },\n { id: 16815, x: 4741338.3237, y: 8758716.8525 },\n { id: 70103, x: 4664964.2249, y: 8451047.1805 },\n { id: 16817, x: 4739965.3745, y: 8748317.9856 },\n { id: 70106, x: 4660960.9343, y: 8439783.4252 },\n { id: 16821, x: 4736934.8524, y: 8765354.2687 },\n { id: 70109, x: 4658422.5005, y: 8453722.642 },\n { id: 16826, x: 4734065.1019, y: 8755338.621 },\n { id: 70114, x: 4651751.0091, y: 8448752.2424 },\n { id: 16827, x: 4732833.6814, y: 8748826.8871 },\n { id: 66018, x: 4707297.8897, y: 8381375.2603 },\n { id: 66026, x: 4699342.3582, y: 8386123.4877 },\n { id: 66028, x: 4698322.0743, y: 8396979.9259 },\n { id: 4543, x: 4778733.2341, y: 8577088.4885 },\n { id: 41435, x: 4824414.6358, y: 8827905.1508 },\n { id: 41437, x: 4822507.168, y: 8836577.2438 },\n { id: 4546, x: 4777522.3553, y: 8564871.387 },\n { id: 66033, x: 4694836.3949, y: 8382738.6968 },\n { id: 41445, x: 4816879.5564, y: 8838439.0084 },\n { id: 41447, x: 4815229.6338, y: 8830178.4105 },\n { id: 4556, x: 4771029.4327, y: 8572882.736 },\n { id: 4560, x: 4768511.7242, y: 8580840.9903 },\n { id: 4562, x: 4766524.7601, y: 8564835.4789 },\n { id: 57852, x: 4632709.1336, y: 8546396.1578 },\n { id: 16862, x: 4754446.0448, y: 8792182.4664 },\n { id: 57853, x: 4632879.7801, y: 8561497.1511 },\n { id: 16863, x: 4753478.4325, y: 8799447.422 },\n { id: 4566, x: 4764728.3967, y: 8575775.0557 },\n { id: 61954, x: 4756959.5054, y: 8452288.6795 },\n { id: 49657, x: 4893131.1819, y: 8741699.6035 },\n { id: 61955, x: 4756509.0957, y: 8457090.6428 },\n { id: 61956, x: 4756014.4021, y: 8443468.3688 },\n { id: 57857, x: 4628124.7258, y: 8552666.0854 },\n { id: 49661, x: 4890537.3426, y: 8749196.2107 },\n { id: 57860, x: 4624837.4908, y: 8546554.7066 },\n { id: 61960, x: 4751810.4902, y: 8448850.8157 },\n { id: 475, x: 4832556.0028, y: 8516169.9961 },\n { id: 61962, x: 4751091.5334, y: 8457428.0913 },\n { id: 477, x: 4830522.5745, y: 8509763.2798 },\n { id: 61963, x: 4749608.0521, y: 8440032.5861 },\n { id: 57864, x: 4621903.2777, y: 8550007.4327 },\n { id: 49666, x: 4888604.6573, y: 8756662.8034 },\n { id: 61964, x: 4748639.3542, y: 8453112.7135 },\n { id: 49667, x: 4887777.3225, y: 8741464.3253 },\n { id: 20974, x: 4710512.1161, y: 8726610.2275 },\n { id: 479, x: 4829450.3734, y: 8501009.9382 },\n { id: 20976, x: 4709852.5505, y: 8740955.7227 },\n { id: 61967, x: 4746128.8888, y: 8452009.9363 },\n { id: 20977, x: 4709394.5453, y: 8745403.6732 },\n { id: 61968, x: 4745442.7762, y: 8457386.137 },\n { id: 57869, x: 4617443.236, y: 8555517.7228 },\n { id: 20978, x: 4708013.1619, y: 8730758.9389 },\n { id: 61969, x: 4745233.4922, y: 8440776.3017 },\n { id: 49672, x: 4885178.249, y: 8750886.2229 },\n { id: 484, x: 4825331.5471, y: 8501443.8635 },\n { id: 485, x: 4825734.9125, y: 8514632.761 },\n { id: 20981, x: 4704263.458, y: 8737981.2182 },\n { id: 20982, x: 4703822.1015, y: 8728798.9087 },\n { id: 487, x: 4823987.3429, y: 8508510.0644 },\n { id: 20983, x: 4702359.3021, y: 8733663.3461 },\n { id: 20984, x: 4702019.979, y: 8726360.7794 },\n { id: 20986, x: 4700861.3395, y: 8742876.7171 },\n { id: 493, x: 4819023.8385, y: 8501372.4258 },\n { id: 20992, x: 4696281.8876, y: 8733175.6031 },\n { id: 29192, x: 4652746.0283, y: 8650514.2304 },\n { id: 20994, x: 4694679.0276, y: 8741805.3068 },\n { id: 29193, x: 4651225.6965, y: 8645060.3781 },\n { id: 29194, x: 4651463.5398, y: 8661552.2134 },\n { id: 29195, x: 4650944.7322, y: 8655434.9539 },\n { id: 29198, x: 4647465.7827, y: 8655418.4811 },\n { id: 49695, x: 4764772.3861, y: 8501250.5202 },\n { id: 29202, x: 4645978.7274, y: 8659325.0012 },\n { id: 45599, x: 4799305.7561, y: 8753815.5975 },\n { id: 45601, x: 4796542.4044, y: 8761275.0003 },\n { id: 29207, x: 4641569.7632, y: 8655218.5133 },\n { id: 45604, x: 4793280.7898, y: 8747027.567 },\n { id: 29209, x: 4640788.9037, y: 8660699.8683 },\n { id: 8714, x: 4843200.0241, y: 8497440.3446 },\n { id: 8715, x: 4843504.3958, y: 8484158.7755 },\n { id: 45607, x: 4790457.73, y: 8754611.0294 },\n { id: 8717, x: 4840626.9997, y: 8490518.6227 },\n { id: 45610, x: 4788080.3603, y: 8762794.2187 },\n { id: 29216, x: 4636583.1822, y: 8652435.0102 },\n { id: 8721, x: 4837919.1645, y: 8482202.0182 },\n { id: 29217, x: 4636529.6799, y: 8657115.3002 },\n { id: 37420, x: 4839192.0381, y: 8698484.5386 },\n { id: 37424, x: 4833161.1317, y: 8685492.6952 },\n { id: 37425, x: 4833093.7519, y: 8693478.2403 },\n { id: 16933, x: 4757943.5748, y: 8815865.2542 },\n { id: 37429, x: 4829680.2456, y: 8699277.8109 },\n { id: 37430, x: 4827716.8906, y: 8688814.0622 },\n { id: 33332, x: 4877198.1998, y: 8717704.9556 },\n { id: 16936, x: 4754970.3786, y: 8811386.4788 },\n { id: 33335, x: 4875215.0529, y: 8706156.0081 },\n { id: 37435, x: 4822340.1177, y: 8686697.0548 },\n { id: 37437, x: 4821969.253, y: 8696792.6717 },\n { id: 33341, x: 4870804.1933, y: 8713672.1884 },\n { id: 33345, x: 4866585.159, y: 8703705.6653 },\n { id: 33350, x: 4863278.3241, y: 8719556.066 },\n { id: 33351, x: 4861936.5992, y: 8711792.9938 },\n { id: 49784, x: 4746553.0635, y: 8511610.4528 },\n { id: 53895, x: 4666998.9222, y: 8527685.7334 },\n { id: 53897, x: 4665575.7197, y: 8533468.1507 },\n { id: 53901, x: 4661556.0389, y: 8538780.1542 },\n { id: 41606, x: 4843453.6392, y: 8864930.0851 },\n { id: 53908, x: 4653006.9465, y: 8537139.6176 },\n { id: 41612, x: 4833907.2648, y: 8871077.3014 },\n { id: 41615, x: 4829564.2059, y: 8867328.5101 },\n { id: 49828, x: 4749377.4988, y: 8539149.5762 },\n { id: 49830, x: 4747071.7496, y: 8521202.2762 },\n { id: 49831, x: 4746824.4196, y: 8531672.8673 },\n { id: 12941, x: 4795447.0686, y: 8470384.8893 },\n { id: 12943, x: 4794594.7468, y: 8475257.0691 },\n { id: 12944, x: 4794681.4661, y: 8459965.4285 },\n { id: 12945, x: 4792636.3048, y: 8465105.6843 },\n { id: 12949, x: 4789788.8454, y: 8469572.2253 },\n { id: 12952, x: 4788363.0165, y: 8475375.7997 },\n { id: 12953, x: 4788515.5104, y: 8462320.483 },\n { id: 12957, x: 4784667.9907, y: 8460073.062 },\n { id: 12958, x: 4784128.5686, y: 8470685.3928 },\n { id: 8861, x: 4850907.7149, y: 8462718.2729 },\n { id: 58050, x: 4651286.1153, y: 8594874.0302 },\n { id: 12961, x: 4781897.1933, y: 8464777.2225 },\n { id: 8862, x: 4850409.6292, y: 8472179.265 },\n { id: 58051, x: 4648589.8933, y: 8587888.2231 },\n { id: 58053, x: 4647364.8782, y: 8601791.5723 },\n { id: 58054, x: 4646684.0306, y: 8592984.6472 },\n { id: 8868, x: 4845746.0711, y: 8475885.3063 },\n { id: 58057, x: 4642256.4253, y: 8589117.0426 },\n { id: 8870, x: 4845728.7383, y: 8460124.4251 },\n { id: 58059, x: 4641113.8802, y: 8599262.9502 },\n { id: 8871, x: 4843929.6668, y: 8469411.0607 },\n { id: 29370, x: 4632144.3863, y: 8651743.484 },\n { id: 58064, x: 4635582.5368, y: 8594541.406 },\n { id: 29371, x: 4631318.2118, y: 8646187.6109 },\n { id: 58065, x: 4634792.3039, y: 8585159.1609 },\n { id: 29372, x: 4631802.188, y: 8665154.5049 },\n { id: 29373, x: 4630724.9392, y: 8654858.4696 },\n { id: 8879, x: 4838133.7511, y: 8471937.9166 },\n { id: 41672, x: 4822005.7629, y: 8864828.127 },\n { id: 8881, x: 4828445.414, y: 8378764.8144 },\n { id: 17080, x: 4748423.4395, y: 8814332.8774 },\n { id: 17081, x: 4745691.1405, y: 8818112.9112 },\n { id: 29380, x: 4625100.5814, y: 8646485.7623 },\n { id: 29381, x: 4624275.6954, y: 8656728.6524 },\n { id: 17084, x: 4742596.0805, y: 8807783.9981 },\n { id: 29382, x: 4623866.4001, y: 8661934.6953 },\n { id: 17085, x: 4739529.681, y: 8817204.9252 },\n { id: 29383, x: 4623015.118, y: 8650525.342 },\n { id: 691, x: 4836288.2447, y: 8532935.9735 },\n { id: 693, x: 4835158.8636, y: 8538763.6823 },\n { id: 29390, x: 4617144.5351, y: 8656630.7413 },\n { id: 25292, x: 4690126.8467, y: 8674030.3924 },\n { id: 25293, x: 4689990.2667, y: 8681410.5557 },\n { id: 699, x: 4829447.5043, y: 8523594.0837 },\n { id: 700, x: 4829560.7298, y: 8532916.0795 },\n { id: 4801, x: 4780864.9237, y: 8557245.7687 },\n { id: 702, x: 4827910.7803, y: 8538081.312 },\n { id: 25297, x: 4686938.9483, y: 8681550.7473 },\n { id: 70387, x: 4667676.0465, y: 8429626.6523 },\n { id: 25298, x: 4684492.9735, y: 8671182.9436 },\n { id: 25299, x: 4684428.6779, y: 8678642.4498 },\n { id: 4804, x: 4778051.8854, y: 8550238.6239 },\n { id: 70389, x: 4667209.1662, y: 8422439.6821 },\n { id: 709, x: 4821839.4248, y: 8527494.6026 },\n { id: 25304, x: 4678654.0745, y: 8672190.4295 },\n { id: 25305, x: 4678496.3579, y: 8680805.4593 },\n { id: 711, x: 4819670.2541, y: 8533461.2159 },\n { id: 70395, x: 4658395.1271, y: 8424818.5627 },\n { id: 4811, x: 4773409.8443, y: 8543995.0958 },\n { id: 25307, x: 4676805.3921, y: 8666939.3506 },\n { id: 4812, x: 4773247.017, y: 8556403.0085 },\n { id: 25310, x: 4673896.2234, y: 8684912.5107 },\n { id: 70400, x: 4654554.292, y: 8428060.3854 },\n { id: 25311, x: 4672847.869, y: 8677204.1038 },\n { id: 70401, x: 4653586.1974, y: 8418136.0025 },\n { id: 4824, x: 4765068.6407, y: 8552909.5021 },\n { id: 4825, x: 4763417.2916, y: 8541913.7245 },\n { id: 33532, x: 4876448.8303, y: 8739719.6005 },\n { id: 45830, x: 4803777.5306, y: 8781598.8451 },\n { id: 45831, x: 4801265.8848, y: 8768485.416 },\n { id: 33534, x: 4873928.4571, y: 8730593.6443 },\n { id: 45832, x: 4800481.9672, y: 8778267.0345 },\n { id: 33535, x: 4872764.0313, y: 8722496.2763 },\n { id: 33537, x: 4871332.9743, y: 8733944.5039 },\n { id: 45837, x: 4796441.7865, y: 8772932.3716 },\n { id: 33542, x: 4866472.3784, y: 8740563.7341 },\n { id: 45840, x: 4793980.3499, y: 8782320.3501 },\n { id: 45841, x: 4792585.5728, y: 8769392.7344 },\n { id: 45842, x: 4791875.1686, y: 8775145.8129 },\n { id: 33546, x: 4863110.6008, y: 8727175.7812 },\n { id: 54050, x: 4665196.6263, y: 8505383.9546 },\n { id: 54052, x: 4662857.8674, y: 8512784.6368 },\n { id: 54057, x: 4657782.1742, y: 8508199.6768 },\n { id: 54059, x: 4656162.7228, y: 8501454.3045 },\n { id: 54061, x: 4654642.6258, y: 8518665.4194 },\n { id: 54064, x: 4651818.7051, y: 8512384.9743 },\n { id: 49969, x: 4739708.7799, y: 8540621.526 },\n { id: 58171, x: 4632628.4325, y: 8596328.6231 },\n { id: 49973, x: 4735866.3884, y: 8526625.8721 },\n { id: 49975, x: 4735015.304, y: 8533519.3512 },\n { id: 58175, x: 4631158.9257, y: 8601237.9394 },\n { id: 37684, x: 4812931.1996, y: 8698468.4858 },\n { id: 13090, x: 4796431.0522, y: 8493778.2589 },\n { id: 37685, x: 4812200.7036, y: 8688529.7953 },\n { id: 13092, x: 4795444.3645, y: 8499460.86 },\n { id: 58182, x: 4625217.1263, y: 8589636.5258 },\n { id: 49984, x: 4726399.2374, y: 8522159.7294 },\n { id: 13094, x: 4794629.738, y: 8488443.2858 },\n { id: 58184, x: 4621196.7133, y: 8586267.9911 },\n { id: 58185, x: 4621015.1445, y: 8598328.7185 },\n { id: 13096, x: 4793632.7276, y: 8480188.4761 },\n { id: 58186, x: 4620716.9083, y: 8592436.1001 },\n { id: 37691, x: 4804703.1364, y: 8689871.6726 },\n { id: 13099, x: 4791880.9457, y: 8497188.3433 },\n { id: 58189, x: 4617536.998, y: 8588503.7314 },\n { id: 58190, x: 4616686.7312, y: 8583655.1793 },\n { id: 13101, x: 4791064.7699, y: 8491106.3002 },\n { id: 13103, x: 4789782.4319, y: 8485195.3489 },\n { id: 13110, x: 4785656.2815, y: 8480783.4396 },\n { id: 13113, x: 4783823.7073, y: 8493044.715 },\n { id: 13115, x: 4782965.0561, y: 8488356.1469 },\n { id: 70547, x: 4683466.689, y: 8460996.9808 },\n { id: 70548, x: 4682821.1619, y: 8469752.4582 },\n { id: 70555, x: 4676166.4047, y: 8472334.1275 },\n { id: 70556, x: 4671828.7006, y: 8479071.9291 },\n { id: 70557, x: 4671398.2865, y: 8465938.5993 },\n { id: 21378, x: 4709643.4324, y: 8707710.5987 },\n { id: 21382, x: 4706305.5317, y: 8715911.4774 },\n { id: 21383, x: 4705610.9179, y: 8709639.7 },\n { id: 29582, x: 4632156.9857, y: 8632721.8077 },\n { id: 21384, x: 4705578.442, y: 8720447.5974 },\n { id: 41880, x: 4798913.1245, y: 8611292.9216 },\n { id: 29583, x: 4631225.5622, y: 8637420.9912 },\n { id: 29585, x: 4629449.2822, y: 8640666.6502 },\n { id: 41883, x: 4796310.3282, y: 8618535.1919 },\n { id: 29586, x: 4628111.6113, y: 8629499.2053 },\n { id: 29587, x: 4627577.5616, y: 8624840.6533 },\n { id: 29588, x: 4626476.0939, y: 8636845.8871 },\n { id: 21390, x: 4700765.1788, y: 8714311.6314 },\n { id: 17292, x: 4751167.2828, y: 8806158.9269 },\n { id: 29590, x: 4625331.7601, y: 8640066.6729 },\n { id: 29591, x: 4624693.9039, y: 8633558.5802 },\n { id: 21395, x: 4697391.6962, y: 8722841.8941 },\n { id: 29594, x: 4623033.262, y: 8638101.2904 },\n { id: 21396, x: 4695994.2982, y: 8715226.8377 },\n { id: 17297, x: 4747815.6788, y: 8790660.2308 },\n { id: 29595, x: 4621118.2899, y: 8624899.8769 },\n { id: 17298, x: 4747315.7382, y: 8799060.4866 },\n { id: 29597, x: 4621048.2759, y: 8629601.1655 },\n { id: 21399, x: 4692514.3119, y: 8708730.1677 },\n { id: 41895, x: 4789150.8327, y: 8619263.4644 },\n { id: 29598, x: 4620126.2097, y: 8641276.1681 },\n { id: 41897, x: 4788371.6743, y: 8606445.2771 },\n { id: 29600, x: 4619030.2863, y: 8635252.0638 },\n { id: 29603, x: 4616736.6562, y: 8642398.0128 },\n { id: 17306, x: 4737481.7047, y: 8800147.0098 },\n { id: 58308, x: 4611989.3787, y: 8510402.8984 },\n { id: 25523, x: 4691554.8004, y: 8698397.7705 },\n { id: 929, x: 4815665.1253, y: 8521077.6839 },\n { id: 58317, x: 4599541.0169, y: 8502521.3853 },\n { id: 58318, x: 4599705.1468, y: 8516498.5514 },\n { id: 932, x: 4812884.0869, y: 8535881.508 },\n { id: 934, x: 4811263.6479, y: 8526384.1475 },\n { id: 25530, x: 4686381.2633, y: 8701626.8075 },\n { id: 9135, x: 4837287.2013, y: 8389877.3273 },\n { id: 5036, x: 4798179.5166, y: 8582801.0328 },\n { id: 25532, x: 4684274.1001, y: 8694487.3916 },\n { id: 938, x: 4807596.0729, y: 8534265.6929 },\n { id: 25533, x: 4683835.9107, y: 8685705.2551 },\n { id: 9138, x: 4836222.2853, y: 8379682.324 },\n { id: 9139, x: 4833054.3962, y: 8395878.324 },\n { id: 5040, x: 4795047.7322, y: 8589934.9169 },\n { id: 13239, x: 4779122.3034, y: 8499381.8177 },\n { id: 25537, x: 4679818.5287, y: 8699574.2484 },\n { id: 13240, x: 4779501.8721, y: 8481432.5658 },\n { id: 5042, x: 4794193.5567, y: 8598677.5955 },\n { id: 943, x: 4803202.172, y: 8527601.1577 },\n { id: 25538, x: 4679276.6629, y: 8693400.4734 },\n { id: 9143, x: 4831825.6218, y: 8385497.3845 },\n { id: 13243, x: 4776209.5206, y: 8490656.4447 },\n { id: 5047, x: 4787943.3562, y: 8583577.7563 },\n { id: 25543, x: 4675029.2879, y: 8701400.3278 },\n { id: 13248, x: 4773069.9173, y: 8496756.505 },\n { id: 5050, x: 4785304.3077, y: 8594346.5764 },\n { id: 13249, x: 4773391.5861, y: 8482273.5515 },\n { id: 9151, x: 4825851.6242, y: 8391140.9366 },\n { id: 13256, x: 4767969.4649, y: 8497196.2775 },\n { id: 13257, x: 4768014.3432, y: 8488550.8305 },\n { id: 13258, x: 4766094.1323, y: 8483071.7933 },\n { id: 9160, x: 4820844.9453, y: 8382810.5424 },\n { id: 66550, x: 4725576.5331, y: 8424654.4504 },\n { id: 66552, x: 4724200.6296, y: 8432268.4075 },\n { id: 46062, x: 4784211.5035, y: 8768145.5307 },\n { id: 46063, x: 4784496.3235, y: 8781086.5818 },\n { id: 66561, x: 4717538.9374, y: 8429313.3766 },\n { id: 66565, x: 4715137.0231, y: 8418800.9964 },\n { id: 46070, x: 4779169.7321, y: 8774996.5223 },\n { id: 46071, x: 4778184.7606, y: 8783631.35 },\n { id: 46072, x: 4776812.3821, y: 8769882.4565 },\n { id: 66571, x: 4708290.7049, y: 8426841.5312 },\n { id: 46079, x: 4770453.3085, y: 8769028.2258 },\n { id: 46081, x: 4769415.4619, y: 8775483.6104 },\n { id: 33792, x: 4859720.5305, y: 8735574.4591 },\n { id: 33794, x: 4857537.0055, y: 8726174.214 },\n { id: 33800, x: 4852579.7596, y: 8731284.8422 },\n { id: 33807, x: 4848340.9965, y: 8723486.4975 },\n { id: 33810, x: 4846697.3758, y: 8728529.547 },\n { id: 33815, x: 4843787.5263, y: 8740806.0415 },\n { id: 58429, x: 4608035.0923, y: 8523612.4556 },\n { id: 58430, x: 4608024.5386, y: 8530670.0558 },\n { id: 58435, x: 4601852.3582, y: 8530076.0756 },\n { id: 58436, x: 4601932.3733, y: 8541406.4352 },\n { id: 50242, x: 4741266.6643, y: 8504436.9801 },\n { id: 50246, x: 4736428.8516, y: 8509418.381 },\n { id: 50247, x: 4736177.6975, y: 8517238.2981 },\n { id: 50251, x: 4732901.6648, y: 8504057.877 },\n { id: 50260, x: 4725905.1766, y: 8509989.2064 },\n { id: 29767, x: 4653382.0233, y: 8666827.1296 },\n { id: 42066, x: 4779623.9036, y: 8603638.7652 },\n { id: 42067, x: 4779835.1629, y: 8613937.2262 },\n { id: 29772, x: 4651349.7226, y: 8679500.0105 },\n { id: 50268, x: 4734198.228, y: 8602721.0285 },\n { id: 54374, x: 4686800.3785, y: 8556983.239 },\n { id: 29780, x: 4645936.1845, y: 8671663.3363 },\n { id: 29781, x: 4644149.4466, y: 8677330.7071 },\n { id: 54376, x: 4684829.3026, y: 8548259.386 },\n { id: 29783, x: 4644026.1531, y: 8682244.6934 },\n { id: 42081, x: 4769613.5479, y: 8611500.7453 },\n { id: 54379, x: 4683125.9147, y: 8560661.6194 },\n { id: 29787, x: 4639680.4067, y: 8673421.1595 },\n { id: 54382, x: 4678361.1403, y: 8545991.8315 },\n { id: 29788, x: 4639567.428, y: 8680770.1156 },\n { id: 42086, x: 4766821.8546, y: 8618863.8957 },\n { id: 29789, x: 4637801.8868, y: 8667485.8834 },\n { id: 54384, x: 4677173.0192, y: 8556523.3104 },\n { id: 42087, x: 4765715.2456, y: 8604561.0182 },\n { id: 29791, x: 4636495.3194, y: 8680026.7392 },\n { id: 29792, x: 4636122.4313, y: 8685741.4217 },\n { id: 21596, x: 4729438.1884, y: 8760004.4477 },\n { id: 54389, x: 4673036.0016, y: 8561664.8854 },\n { id: 21597, x: 4728488.1427, y: 8754291.926 },\n { id: 54390, x: 4671723.5425, y: 8552404.7515 },\n { id: 21599, x: 4726281.986, y: 8749244.8501 },\n { id: 21601, x: 4725670.1418, y: 8763471.1162 },\n { id: 21602, x: 4723998.9556, y: 8755793.8231 },\n { id: 21606, x: 4721029.1955, y: 8764765.8754 },\n { id: 21607, x: 4719821.4867, y: 8751651.0764 },\n { id: 38006, x: 4819547.389, y: 8677198.4209 },\n { id: 21610, x: 4717464.8373, y: 8759343.6544 },\n { id: 38008, x: 4818912.7452, y: 8664504.008 },\n { id: 21612, x: 4714760.7325, y: 8764067.5072 },\n { id: 38009, x: 4818478.7318, y: 8670702.8702 },\n { id: 21613, x: 4714410.046, y: 8756066.6341 },\n { id: 21615, x: 4712791.0207, y: 8749911.6291 },\n { id: 38012, x: 4814429.6052, y: 8681130.2112 },\n { id: 38015, x: 4808186.7511, y: 8670753.1381 },\n { id: 38017, x: 4807948.9807, y: 8677443.1566 },\n { id: 38018, x: 4807352.7266, y: 8662765.146 },\n { id: 25722, x: 4670815.4759, y: 8705027.2841 },\n { id: 70812, x: 4680323.7934, y: 8497946.8849 },\n { id: 25723, x: 4670276.6924, y: 8698728.6739 },\n { id: 70814, x: 4678915.182, y: 8486665.0759 },\n { id: 25725, x: 4668891.3742, y: 8692028.3059 },\n { id: 25730, x: 4665213.4858, y: 8700455.0644 },\n { id: 25732, x: 4663870.9329, y: 8690047.375 },\n { id: 25736, x: 4660548.0905, y: 8694377.6111 },\n { id: 25739, x: 4659313.5849, y: 8700458.0461 },\n { id: 25741, x: 4657102.0458, y: 8688285.0962 },\n { id: 17543, x: 4724985.0584, y: 8610830.9438 },\n { id: 25742, x: 4656866.157, y: 8700527.6193 },\n { id: 17546, x: 4723079.0114, y: 8616175.7216 },\n { id: 17548, x: 4721481.3489, y: 8622382.7646 },\n { id: 17550, x: 4719795.6619, y: 8603321.0636 },\n { id: 17554, x: 4717676.6367, y: 8608946.6252 },\n { id: 9357, x: 4836935.834, y: 8406643.5109 },\n { id: 17556, x: 4716189.6024, y: 8620476.389 },\n { id: 17557, x: 4714722.8942, y: 8604536.6624 },\n { id: 17558, x: 4713589.2377, y: 8614883.7443 },\n { id: 9360, x: 4834809.181, y: 8414087.4629 },\n { id: 46253, x: 4781732.9119, y: 8756382.2372 },\n { id: 46254, x: 4780230.5233, y: 8749450.0828 },\n { id: 17562, x: 4710197.7753, y: 8615254.5888 },\n { id: 46256, x: 4780056.7697, y: 8761284.5658 },\n { id: 13465, x: 4779627.4456, y: 8475219.0758 },\n { id: 9367, x: 4829382.4116, y: 8413829.596 },\n { id: 17566, x: 4707935.6671, y: 8605302.8493 },\n { id: 13467, x: 4778001.5057, y: 8465448.0137 },\n { id: 46260, x: 4775763.9284, y: 8746128.6132 },\n { id: 13468, x: 4777871.1478, y: 8460724.2761 },\n { id: 46261, x: 4774800.7463, y: 8762208.9113 },\n { id: 13470, x: 4776302.2965, y: 8470514.499 },\n { id: 9371, x: 4827127.4472, y: 8407351.136 },\n { id: 13472, x: 4775111.2696, y: 8477182.401 },\n { id: 46265, x: 4771627.6288, y: 8753417.0011 },\n { id: 13474, x: 4774617.5152, y: 8460857.6692 },\n { id: 9377, x: 4823202.2094, y: 8418795.457 },\n { id: 13477, x: 4772069.0392, y: 8466613.4436 },\n { id: 13479, x: 4769937.7323, y: 8477668.8092 },\n { id: 9381, x: 4821282.7825, y: 8399500.7118 },\n { id: 13481, x: 4768812.4193, y: 8471112.4141 },\n { id: 9383, x: 4819728.4732, y: 8408733.1978 },\n { id: 5284, x: 4779111.7068, y: 8589878.3198 },\n { id: 13485, x: 4767190.6503, y: 8460884.4817 },\n { id: 5293, x: 4769171.5013, y: 8589780.8676 },\n { id: 5294, x: 4768827.999, y: 8597040.4669 },\n { id: 1226, x: 4817059.0367, y: 8507951.9821 },\n { id: 1232, x: 4811521.6167, y: 8517351.5591 },\n { id: 50421, x: 4721438.5646, y: 8501823.0467 },\n { id: 1236, x: 4809423.2886, y: 8509617.7993 },\n { id: 50425, x: 4717462.837, y: 8513276.1085 },\n { id: 1238, x: 4806867.8669, y: 8502252.156 },\n { id: 42231, x: 4797746.1476, y: 8626217.8568 },\n { id: 34035, x: 4858491.3627, y: 8705232.6055 },\n { id: 1243, x: 4801879.7844, y: 8501907.7042 },\n { id: 1244, x: 4801747.5501, y: 8510319.6959 },\n { id: 50434, x: 4710609.0154, y: 8503338.9441 },\n { id: 34038, x: 4855747.4715, y: 8712127.127 },\n { id: 1246, x: 4800943.1559, y: 8516690.3047 },\n { id: 42241, x: 4790821.69, y: 8630819.6224 },\n { id: 50440, x: 4707764.781, y: 8518712.7859 },\n { id: 34044, x: 4850769.2422, y: 8716969.5646 },\n { id: 29945, x: 4653778.1941, y: 8686600.5753 },\n { id: 29946, x: 4653887.3772, y: 8692841.4474 },\n { id: 34047, x: 4848154.9271, y: 8707516.1085 },\n { id: 29948, x: 4652473.3517, y: 8703698.8143 },\n { id: 29949, x: 4651785.7385, y: 8694029.7705 },\n { id: 34051, x: 4844396.1647, y: 8718909.424 },\n { id: 42250, x: 4784298.3587, y: 8636520.8073 },\n { id: 34054, x: 4840696.6717, y: 8712061.3476 },\n { id: 29956, x: 4645258.5368, y: 8700138.3372 },\n { id: 29958, x: 4643479.917, y: 8688184.4671 },\n { id: 29959, x: 4643986.288, y: 8705607.5581 },\n { id: 29960, x: 4642326.8653, y: 8696710.8297 },\n { id: 29966, x: 4638886.9605, y: 8699930.7745 },\n { id: 29969, x: 4638269.3163, y: 8705998.9538 },\n { id: 70968, x: 4669756.13, y: 8493632.092 },\n { id: 70972, x: 4666740.7693, y: 8485001.999 },\n { id: 70975, x: 4663826.7664, y: 8496970.1588 },\n { id: 70977, x: 4660311.2908, y: 8483017.1353 },\n { id: 70980, x: 4658091.953, y: 8492306.4865 },\n { id: 70982, x: 4656712.5461, y: 8483676.2571 },\n { id: 9504, x: 4814927.2408, y: 8417641.0893 },\n { id: 9512, x: 4810876.7033, y: 8401598.882 },\n { id: 9514, x: 4809455.9346, y: 8408189.0627 },\n { id: 25913, x: 4671429.0349, y: 8670651.6287 },\n { id: 9517, x: 4807614.3094, y: 8415471.1648 },\n { id: 9519, x: 4805929.0612, y: 8405115.0301 },\n { id: 25917, x: 4667613.1412, y: 8683975.1691 },\n { id: 25918, x: 4666966.7441, y: 8672159.5094 },\n { id: 9523, x: 4802650.0024, y: 8417669.5026 },\n { id: 25920, x: 4666837.5775, y: 8677262.8325 },\n { id: 9524, x: 4802555.6508, y: 8412180.6029 },\n { id: 25923, x: 4664393.4554, y: 8680379.8519 },\n { id: 9527, x: 4801359.4942, y: 8402427.9705 },\n { id: 25924, x: 4663297.354, y: 8670823.2535 },\n { id: 25926, x: 4662340.2417, y: 8685335.5291 },\n { id: 25927, x: 4660354.5238, y: 8674662.1339 },\n { id: 25928, x: 4659783.4943, y: 8667074.6634 },\n { id: 25933, x: 4657749.1387, y: 8677716.9805 },\n { id: 25934, x: 4657065.1286, y: 8670842.4872 },\n { id: 58727, x: 4613641.1489, y: 8561007.5433 },\n { id: 58730, x: 4611181.062, y: 8556746.4668 },\n { id: 30038, x: 4635378.5906, y: 8703842.7836 },\n { id: 58732, x: 4610136.5952, y: 8545386.8332 },\n { id: 30039, x: 4634769.5606, y: 8694599.5133 },\n { id: 30040, x: 4632192.4347, y: 8689236.23 },\n { id: 58734, x: 4608014.2437, y: 8550804.1118 },\n { id: 5447, x: 4757743.8068, y: 8507802.0237 },\n { id: 58735, x: 4607336.0474, y: 8548082.6419 },\n { id: 30042, x: 4627662.3295, y: 8692015.0816 },\n { id: 58736, x: 4606699.246, y: 8555104.4901 },\n { id: 58739, x: 4602906.3729, y: 8557192.1152 },\n { id: 58740, x: 4602389.0254, y: 8552893.3796 },\n { id: 58742, x: 4600467.1865, y: 8550047.3629 },\n { id: 17758, x: 4706671.9338, y: 8622849.206 },\n { id: 17759, x: 4706077.2713, y: 8612013.8696 },\n { id: 17762, x: 4703612.3222, y: 8604277.8626 },\n { id: 17763, x: 4702785.4737, y: 8620382.3274 },\n { id: 38261, x: 4835283.2067, y: 8705100.2251 },\n { id: 17766, x: 4700683.6203, y: 8607757.7704 },\n { id: 17769, x: 4699342.5916, y: 8613980.2902 },\n { id: 9572, x: 4818809.6461, y: 8390111.5153 },\n { id: 50564, x: 4723385.8559, y: 8533636.0537 },\n { id: 17772, x: 4698781.3712, y: 8622016.6187 },\n { id: 38268, x: 4828415.6694, y: 8704937.9509 },\n { id: 9575, x: 4816887.0359, y: 8395609.5189 },\n { id: 38269, x: 4828241.8075, y: 8711510.4798 },\n { id: 17774, x: 4695405.8789, y: 8605173.8789 },\n { id: 17775, x: 4695620.3052, y: 8611774.1059 },\n { id: 50568, x: 4718948.863, y: 8538067.1967 },\n { id: 17776, x: 4694990.4026, y: 8619352.275 },\n { id: 9578, x: 4815011.7769, y: 8384946.4983 },\n { id: 50569, x: 4717222.386, y: 8526706.9436 },\n { id: 50572, x: 4712544.9763, y: 8534326.3216 },\n { id: 9582, x: 4811587.7728, y: 8389976.0336 },\n { id: 17782, x: 4691141.7524, y: 8621510.6383 },\n { id: 9585, x: 4807221.0647, y: 8393069.8903 },\n { id: 54687, x: 4687330.8925, y: 8576739.276 },\n { id: 54688, x: 4686064.7473, y: 8568212.3218 },\n { id: 54689, x: 4683785.7424, y: 8581327.1913 },\n { id: 54693, x: 4680650.718, y: 8574678.6258 },\n { id: 54695, x: 4676359.4387, y: 8567379.2605 },\n { id: 54696, x: 4676273.0184, y: 8577749.0222 },\n { id: 42400, x: 4795764.7133, y: 8660835.9237 },\n { id: 54699, x: 4671010.722, y: 8565412.288 },\n { id: 42402, x: 4792125.8768, y: 8643298.3852 },\n { id: 54700, x: 4671216.0876, y: 8577753.6033 },\n { id: 42404, x: 4791799.0471, y: 8649722.0282 },\n { id: 42410, x: 4787891.0536, y: 8655213.4099 },\n { id: 42414, x: 4784154.1578, y: 8645642.3606 },\n { id: 71117, x: 4668678.8142, y: 8459052.1519 },\n { id: 71123, x: 4662828.3892, y: 8464826.7056 },\n { id: 71127, x: 4658797.3048, y: 8475486.9926 },\n { id: 71132, x: 4652061.9721, y: 8465976.9594 },\n { id: 34242, x: 4878180.9195, y: 8749135.2923 },\n { id: 34243, x: 4877852.5506, y: 8759559.9664 },\n { id: 71136, x: 4628095.0397, y: 8468691.2526 },\n { id: 71137, x: 4623048.6514, y: 8468377.3513 },\n { id: 34248, x: 4872721.6215, y: 8745321.2516 },\n { id: 34249, x: 4872479.5171, y: 8756272.4253 },\n { id: 71142, x: 4616703.1383, y: 8468229.0479 },\n { id: 71143, x: 4614631.0094, y: 8460616.347 },\n { id: 34252, x: 4867697.0747, y: 8752306.841 },\n { id: 34255, x: 4864808.5465, y: 8759653.8217 },\n { id: 1463, x: 4836027.6563, y: 8551906.8251 },\n { id: 1465, x: 4833047.9991, y: 8546667.749 },\n { id: 1469, x: 4831078.9257, y: 8559551.7409 },\n { id: 1473, x: 4827017.7532, y: 8548793.6107 },\n { id: 1482, x: 4821744.0553, y: 8553967.675 },\n { id: 5597, x: 4760672.3833, y: 8526955.4798 },\n { id: 30194, x: 4633667.6714, y: 8670363.0734 },\n { id: 5600, x: 4757283.2626, y: 8537397.4417 },\n { id: 5602, x: 4756462.36, y: 8520593.742 },\n { id: 13802, x: 4892588.9762, y: 8400164.3485 },\n { id: 5604, x: 4754613.4808, y: 8528931.4251 },\n { id: 30199, x: 4632116.2566, y: 8676186.6142 },\n { id: 30200, x: 4632173.1978, y: 8682226.5723 },\n { id: 13805, x: 4886687.5127, y: 8407020.5886 },\n { id: 30204, x: 4628781.4408, y: 8675163.631 },\n { id: 30205, x: 4629007.5304, y: 8686276.782 },\n { id: 13809, x: 4884480.276, y: 8416438.2174 },\n { id: 30207, x: 4627402.3926, y: 8679469.502 },\n { id: 13811, x: 4884001.7971, y: 8400983.8956 },\n { id: 30211, x: 4622571.7669, y: 8668804.7214 },\n { id: 13818, x: 4878621.1266, y: 8411019.0339 },\n { id: 13820, x: 4877425.8136, y: 8405188.3734 },\n { id: 13821, x: 4876073.6044, y: 8416060.5371 },\n { id: 22021, x: 4730751.7831, y: 8773867.4016 },\n { id: 22023, x: 4729223.3877, y: 8778478.7703 },\n { id: 22025, x: 4727332.1133, y: 8767200.5625 },\n { id: 22029, x: 4724694.4728, y: 8783971.4297 },\n { id: 22032, x: 4721842.8161, y: 8774149.989 },\n { id: 22033, x: 4719816.8626, y: 8780560.0209 },\n { id: 22034, x: 4719000.5711, y: 8769428.9797 },\n { id: 22039, x: 4714959.7554, y: 8773065.5063 },\n { id: 22040, x: 4715156.8654, y: 8784284.9033 },\n { id: 38438, x: 4840100.3654, y: 8728118.2258 },\n { id: 38442, x: 4836412.1605, y: 8721999.612 },\n { id: 38443, x: 4835763.5509, y: 8737644.2427 },\n { id: 38448, x: 4830170.9605, y: 8722421.9854 },\n { id: 38450, x: 4829584.9605, y: 8733119.6861 },\n { id: 38456, x: 4822687.0335, y: 8728327.3118 },\n { id: 26167, x: 4689736.9553, y: 8722051.6278 },\n { id: 26168, x: 4689152.6602, y: 8706311.2545 },\n { id: 26171, x: 4686777.6016, y: 8716876.0352 },\n { id: 26177, x: 4681932.6244, y: 8707676.5782 },\n { id: 26178, x: 4680874.0505, y: 8716061.6121 },\n { id: 26181, x: 4678283.7276, y: 8721959.1139 },\n { id: 71272, x: 4632740.8239, y: 8499780.1052 },\n { id: 71273, x: 4632621.2235, y: 8481666.9857 },\n { id: 46679, x: 4803708.1788, y: 8785235.1561 },\n { id: 26184, x: 4675457.4273, y: 8717310.3223 },\n { id: 26185, x: 4674840.6648, y: 8708267.3896 },\n { id: 71275, x: 4627880.401, y: 8489096.1304 },\n { id: 46682, x: 4800637.0213, y: 8797628.4404 },\n { id: 30286, x: 4655198.2442, y: 8710892.6317 },\n { id: 46683, x: 4800260.8733, y: 8788885.055 },\n { id: 71278, x: 4622378.8747, y: 8482156.4016 },\n { id: 46684, x: 4799572.8976, y: 8801361.8202 },\n { id: 30288, x: 4653550.6023, y: 8724582.1682 },\n { id: 30290, x: 4653035.3723, y: 8717244.2807 },\n { id: 71281, x: 4618692.4633, y: 8493050.2033 },\n { id: 46688, x: 4794280.0668, y: 8795507.3192 },\n { id: 42589, x: 4778588.0568, y: 8658471.9054 },\n { id: 30292, x: 4650871.8626, y: 8708096.7544 },\n { id: 46690, x: 4793081.2637, y: 8788092.6265 },\n { id: 42591, x: 4775871.1554, y: 8653048.023 },\n { id: 30294, x: 4647000.4524, y: 8709555.1239 },\n { id: 46691, x: 4793101.5615, y: 8804213.8106 },\n { id: 30297, x: 4638419.341, y: 8711977.6541 },\n { id: 18000, x: 4724991.854, y: 8631458.9709 },\n { id: 46694, x: 4789157.2764, y: 8791370.0758 },\n { id: 18001, x: 4724901.9551, y: 8629719.8064 },\n { id: 18003, x: 4724741.1738, y: 8641277.9873 },\n { id: 42600, x: 4769623.3504, y: 8643339.6175 },\n { id: 42602, x: 4769197.6828, y: 8655817.963 },\n { id: 30305, x: 4656041.0589, y: 8745739.1752 },\n { id: 30308, x: 4654726.7383, y: 8730957.1796 },\n { id: 18011, x: 4719036.3214, y: 8632024.828 },\n { id: 63101, x: 4743066.5503, y: 8445964.714 },\n { id: 18013, x: 4718177.4623, y: 8642871.6114 },\n { id: 18014, x: 4716736.1002, y: 8628494.0696 },\n { id: 63105, x: 4740876.2034, y: 8458269.6155 },\n { id: 63108, x: 4738743.3621, y: 8439543.2516 },\n { id: 9821, x: 4835406.1997, y: 8437233.1752 },\n { id: 63110, x: 4737680.5633, y: 8443960.2388 },\n { id: 18021, x: 4711024.2854, y: 8625503.5534 },\n { id: 63111, x: 4737241.4739, y: 8444186.0542 },\n { id: 63112, x: 4737048.8881, y: 8447710.7072 },\n { id: 18023, x: 4710224.9077, y: 8633897.1791 },\n { id: 9825, x: 4832634.6413, y: 8424976.897 },\n { id: 9826, x: 4831055.6194, y: 8431600.7872 },\n { id: 67213, x: 4724730.5893, y: 8452300.0984 },\n { id: 67216, x: 4723280.5016, y: 8441793.8615 },\n { id: 67220, x: 4719966.8922, y: 8454720.4419 },\n { id: 30329, x: 4654169.2177, y: 8789292.7734 },\n { id: 63122, x: 4730398.6007, y: 8441920.5126 },\n { id: 67223, x: 4718372.6308, y: 8447853.4419 },\n { id: 9838, x: 4824739.0265, y: 8425817.7056 },\n { id: 63126, x: 4727987.9469, y: 8447524.9085 },\n { id: 9841, x: 4822749.3846, y: 8435254.0819 },\n { id: 67228, x: 4714381.8898, y: 8441910.513 },\n { id: 67229, x: 4714276.6871, y: 8440971.5821 },\n { id: 67230, x: 4713245.8803, y: 8450445.7806 },\n { id: 34440, x: 4877273.5155, y: 8778349.8286 },\n { id: 67236, x: 4708488.999, y: 8451584.4225 },\n { id: 34447, x: 4872054.8331, y: 8770175.3929 },\n { id: 34448, x: 4872210.6241, y: 8777830.6893 },\n { id: 34449, x: 4871436.8006, y: 8763767.1789 },\n { id: 1657, x: 4833300.7454, y: 8573917.0422 },\n { id: 50848, x: 4706756.9059, y: 8537337.5556 },\n { id: 50852, x: 4704428.1446, y: 8525375.0516 },\n { id: 1664, x: 4827841.2224, y: 8567059.1553 },\n { id: 1666, x: 4827285.998, y: 8576907.1537 },\n { id: 13965, x: 4891216.2178, y: 8393061.4563 },\n { id: 34461, x: 4863485.0884, y: 8775088.4716 },\n { id: 1669, x: 4824086.6376, y: 8561107.4356 },\n { id: 34464, x: 4861514.9148, y: 8768565.5774 },\n { id: 1673, x: 4822123.0753, y: 8569830.4282 },\n { id: 50862, x: 4697236.758, y: 8525439.5875 },\n { id: 13972, x: 4882811.7457, y: 8389705.6711 },\n { id: 50864, x: 4696354.1787, y: 8534155.1587 },\n { id: 13973, x: 4880947.6615, y: 8395881.3559 },\n { id: 50869, x: 4691017.8061, y: 8527504.4432 },\n { id: 13979, x: 4877348.6191, y: 8382556.301 },\n { id: 71382, x: 4650930.8152, y: 8484208.0119 },\n { id: 71388, x: 4645012.5484, y: 8493146.4529 },\n { id: 71391, x: 4642764.1947, y: 8484710.9697 },\n { id: 71397, x: 4637092.4558, y: 8485874.6504 },\n { id: 71400, x: 4634650.5141, y: 8493562.1969 },\n { id: 30410, x: 4656376.7885, y: 8798675.0585 },\n { id: 30415, x: 4649829.6235, y: 8794774.3428 },\n { id: 30419, x: 4658912.2275, y: 8825639.8295 },\n { id: 30422, x: 4656614.272, y: 8812162.9576 },\n { id: 30433, x: 4659183.8161, y: 8833206.4483 },\n { id: 26340, x: 4692780.0181, y: 8727152.1976 },\n { id: 59134, x: 4607766.348, y: 8573690.4402 },\n { id: 26342, x: 4692361.0518, y: 8744433.0287 },\n { id: 59135, x: 4607500.6086, y: 8566109.6119 },\n { id: 26343, x: 4690331.1339, y: 8732763.3905 },\n { id: 59136, x: 4607309.1239, y: 8580024.3205 },\n { id: 26346, x: 4686901.1679, y: 8737777.9617 },\n { id: 26347, x: 4686044.659, y: 8728284.4112 },\n { id: 26348, x: 4685464.6706, y: 8733073.2497 },\n { id: 26349, x: 4684866.6158, y: 8745299.1018 },\n { id: 59143, x: 4602029.4538, y: 8565330.6067 },\n { id: 59144, x: 4600148.6929, y: 8571582.7377 },\n { id: 26352, x: 4681715.3099, y: 8727381.9355 },\n { id: 59146, x: 4598579.4632, y: 8580446.8309 },\n { id: 26354, x: 4680932.4569, y: 8739177.6372 },\n { id: 59148, x: 4596996.9577, y: 8566917.924 },\n { id: 26359, x: 4677408.3543, y: 8733400.6029 },\n { id: 26365, x: 4674276.6894, y: 8727300.9582 },\n { id: 38675, x: 4822569.092, y: 8733893.7805 },\n { id: 38677, x: 4818232.5864, y: 8738792.4594 },\n { id: 5886, x: 4757076.167, y: 8555158.2225 },\n { id: 38679, x: 4817352.7008, y: 8725737.6838 },\n { id: 38682, x: 4812040.4113, y: 8732335.8236 },\n { id: 38683, x: 4811520.3172, y: 8726304.466 },\n { id: 5891, x: 4752559.5722, y: 8548375.6469 },\n { id: 38688, x: 4806946.8411, y: 8740916.8166 },\n { id: 5896, x: 4747999.4146, y: 8556078.6175 },\n { id: 5899, x: 4746360.3044, y: 8547006.1561 },\n { id: 67411, x: 4705644.0668, y: 8456371.6006 },\n { id: 67414, x: 4703973.9957, y: 8448960.9749 },\n { id: 67422, x: 4697128.786, y: 8455020.3575 },\n { id: 67423, x: 4695592.7558, y: 8448359.2123 },\n { id: 34631, x: 4855204.0964, y: 8769099.9985 },\n { id: 67425, x: 4695043.1958, y: 8439460.5385 },\n { id: 34635, x: 4853915.5279, y: 8776748.5258 },\n { id: 34641, x: 4849963.3723, y: 8762715.6844 },\n { id: 71537, x: 4648363.5533, y: 8477770.801 },\n { id: 34648, x: 4845333.0319, y: 8776063.733 },\n { id: 71541, x: 4644834.4999, y: 8468494.9424 },\n { id: 34651, x: 4843243.4213, y: 8763885.4732 },\n { id: 71544, x: 4640403.1304, y: 8475006.3424 },\n { id: 71546, x: 4637631.7335, y: 8463524.4849 },\n { id: 18277, x: 4724404.7308, y: 8650278.6417 },\n { id: 18278, x: 4723008.0863, y: 8659008.9845 },\n { id: 18283, x: 4718360.2878, y: 8647734.1149 },\n { id: 18284, x: 4717659.9272, y: 8661779.6806 },\n { id: 18286, x: 4716019.9148, y: 8653611.5683 },\n { id: 10089, x: 4829034.4372, y: 8454191.4575 },\n { id: 18288, x: 4713841.9048, y: 8644265.7871 },\n { id: 10090, x: 4829123.2867, y: 8445012.8046 },\n { id: 18290, x: 4713537.1617, y: 8644399.3054 },\n { id: 10093, x: 4826336.0187, y: 8439785.8867 },\n { id: 18293, x: 4711307.9075, y: 8654519.9574 },\n { id: 51087, x: 4705835.5309, y: 8512623.9647 },\n { id: 10101, x: 4820453.4973, y: 8452010.7667 },\n { id: 10104, x: 4819212.8504, y: 8443969.4667 },\n { id: 51095, x: 4700055.8982, y: 8507117.2756 },\n { id: 22402, x: 4711093.4162, y: 8769598.6174 },\n { id: 22406, x: 4708461.2092, y: 8778087.8303 },\n { id: 22408, x: 4707452.8714, y: 8785657.6189 },\n { id: 51102, x: 4695686.8511, y: 8514234.5801 },\n { id: 22410, x: 4705884.3566, y: 8772029.8142 },\n { id: 1916, x: 4815182.0766, y: 8561991.7227 },\n { id: 22413, x: 4703075.3993, y: 8781031.7262 },\n { id: 1919, x: 4813813.5899, y: 8567884.605 },\n { id: 22416, x: 4698587.3462, y: 8778230.2097 },\n { id: 22419, x: 4697491.8713, y: 8771551.4243 },\n { id: 22420, x: 4696982.1275, y: 8783167.849 },\n { id: 1925, x: 4810298.5609, y: 8574782.7213 },\n { id: 1930, x: 4806021.3588, y: 8561510.9093 },\n { id: 1934, x: 4803791.1471, y: 8578486.3416 },\n { id: 1935, x: 4803097.1773, y: 8568512.8147 },\n { id: 26548, x: 4673421.3853, y: 8742944.8432 },\n { id: 26549, x: 4672534.6986, y: 8735559.0813 },\n { id: 26555, x: 4667785.02, y: 8728676.3739 },\n { id: 26556, x: 4667588.0416, y: 8736427.9353 },\n { id: 26558, x: 4666901.8679, y: 8744493.7191 },\n { id: 26560, x: 4664167.8987, y: 8731193.2951 },\n { id: 26561, x: 4663881.0931, y: 8736275.2024 },\n { id: 26567, x: 4659036.6227, y: 8737507.1742 },\n { id: 26568, x: 4658438.5275, y: 8730189.6008 },\n { id: 71679, x: 4632188.3683, y: 8421480.183 },\n { id: 71680, x: 4630382.7395, y: 8426720.0781 },\n { id: 71683, x: 4627432.3826, y: 8431539.1019 },\n { id: 71685, x: 4626505.1233, y: 8422427.2211 },\n { id: 71689, x: 4620802.4525, y: 8419874.2662 },\n { id: 71690, x: 4619176.2984, y: 8427585.3168 },\n { id: 71693, x: 4616940.5385, y: 8423727.8517 },\n { id: 30717, x: 4611241.5007, y: 8606395.2529 },\n { id: 30718, x: 4610548.1354, y: 8622076.464 },\n { id: 55313, x: 4669820.566, y: 8570354.564 },\n { id: 55314, x: 4666113.5418, y: 8581981.0753 },\n { id: 30720, x: 4608173.7814, y: 8617085.1332 },\n { id: 55318, x: 4661765.757, y: 8566778.443 },\n { id: 55320, x: 4657966.7189, y: 8575440.2407 },\n { id: 30728, x: 4603590.2204, y: 8611694.4631 },\n { id: 30729, x: 4603021.7598, y: 8621876.267 },\n { id: 30731, x: 4599153.025, y: 8622353.4752 },\n { id: 30732, x: 4598534.589, y: 8613730.1981 },\n { id: 38957, x: 4820750.9823, y: 8717027.6504 },\n { id: 38958, x: 4819189.9885, y: 8703599.6936 },\n { id: 34859, x: 4859611.5549, y: 8747811.088 },\n { id: 34860, x: 4858501.0437, y: 8756948.7022 },\n { id: 38960, x: 4817604.3283, y: 8709827.204 },\n { id: 38966, x: 4811548.6322, y: 8704357.7042 },\n { id: 6176, x: 4756810.065, y: 8579623.2023 },\n { id: 34869, x: 4852732.1717, y: 8741595.5961 },\n { id: 38969, x: 4809731.9414, y: 8714360.9887 },\n { id: 34870, x: 4852447.4067, y: 8751561.5923 },\n { id: 6178, x: 4755929.7782, y: 8572296.6182 },\n { id: 6180, x: 4753406.5489, y: 8561969.3366 },\n { id: 6184, x: 4750952.5556, y: 8569305.8629 },\n { id: 6186, x: 4749332.2774, y: 8575892.9707 },\n { id: 34880, x: 4845620.2568, y: 8753152.4126 },\n { id: 34884, x: 4844034.0596, y: 8747845.7773 },\n { id: 14412, x: 4759599.3499, y: 8613812.5164 },\n { id: 14414, x: 4755767.3238, y: 8603810.1447 },\n { id: 14417, x: 4753957.7908, y: 8610048.7911 },\n { id: 14419, x: 4751321.1026, y: 8617732.4857 },\n { id: 67710, x: 4704882.2782, y: 8436939.2339 },\n { id: 22622, x: 4711162.9318, y: 8759530.1104 },\n { id: 10325, x: 4813553.1442, y: 8457455.3909 },\n { id: 51315, x: 4721292.2293, y: 8556611.2321 },\n { id: 14425, x: 4746628.2619, y: 8621745.523 },\n { id: 51316, x: 4720926.7745, y: 8550209.9947 },\n { id: 14426, x: 4746114.2137, y: 8608446.9381 },\n { id: 51317, x: 4719067.8409, y: 8542295.4335 },\n { id: 67714, x: 4701080.9831, y: 8425500.006 },\n { id: 59517, x: 4595179.6252, y: 8583429.7968 },\n { id: 10331, x: 4810140.0031, y: 8443855.1508 },\n { id: 59519, x: 4594676.9358, y: 8574715.2298 },\n { id: 22629, x: 4707326.0061, y: 8755238.7487 },\n { id: 51322, x: 4715221.7245, y: 8544079.5149 },\n { id: 22631, x: 4705973.472, y: 8750525.3669 },\n { id: 59522, x: 4591702.869, y: 8569949.0755 },\n { id: 51324, x: 4714247.3373, y: 8551096.6551 },\n { id: 26731, x: 4671760.8966, y: 8722057.213 },\n { id: 67721, x: 4695132.5711, y: 8420085.6931 },\n { id: 51326, x: 4713650.9087, y: 8557174.9736 },\n { id: 10336, x: 4805899.1962, y: 8458529.4895 },\n { id: 22634, x: 4705423.6522, y: 8759437.0769 },\n { id: 51328, x: 4710373.6765, y: 8550121.8393 },\n { id: 22636, x: 4702446.9198, y: 8762727.4253 },\n { id: 10339, x: 4802800.936, y: 8449799.6853 },\n { id: 59527, x: 4589341.2926, y: 8575318.3347 },\n { id: 26736, x: 4668509.3383, y: 8715229.6873 },\n { id: 59528, x: 4589434.9117, y: 8580185.2057 },\n { id: 51331, x: 4707651.8733, y: 8541987.1921 },\n { id: 22638, x: 4701947.5217, y: 8757149.751 },\n { id: 71826, x: 4627726.5314, y: 8442640.7938 },\n { id: 67727, x: 4689834.7048, y: 8427996.8031 },\n { id: 26738, x: 4667762.1541, y: 8710578.4612 },\n { id: 71827, x: 4626482.7723, y: 8458055.082 },\n { id: 71828, x: 4625734.4546, y: 8450223.4141 },\n { id: 22641, x: 4697880.6246, y: 8754078.3163 },\n { id: 59533, x: 4585134.9247, y: 8574488.3362 },\n { id: 26742, x: 4664795.437, y: 8725105.2283 },\n { id: 22643, x: 4696908.9542, y: 8765906.7885 },\n { id: 71831, x: 4620997.6861, y: 8458288.7841 },\n { id: 59534, x: 4584535.2807, y: 8563383.2165 },\n { id: 71832, x: 4621165.1515, y: 8437978.7265 },\n { id: 59535, x: 4580627.8514, y: 8565865.8014 },\n { id: 26744, x: 4662375.2392, y: 8712924.404 },\n { id: 22645, x: 4696191.545, y: 8748297.0485 },\n { id: 71833, x: 4619999.8358, y: 8445306.254 },\n { id: 26746, x: 4661631.9532, y: 8719226.2575 },\n { id: 26748, x: 4659425.0943, y: 8708195.3329 },\n { id: 26750, x: 4658280.3828, y: 8726095.8872 },\n { id: 18552, x: 4708933.7124, y: 8647042.5407 },\n { id: 26752, x: 4656339.2859, y: 8720409.5787 },\n { id: 18554, x: 4707771.0016, y: 8653317.2736 },\n { id: 18556, x: 4706761.6085, y: 8658877.1957 },\n { id: 18557, x: 4705543.2044, y: 8650173.3981 },\n { id: 18562, x: 4701465.8699, y: 8663288.7109 },\n { id: 18563, x: 4700739.4316, y: 8653575.5712 },\n { id: 18567, x: 4698144.3956, y: 8663590.857 },\n { id: 43165, x: 4780604.5597, y: 8622098.6352 },\n { id: 18571, x: 4696362.4184, y: 8659743.2085 },\n { id: 18572, x: 4694691.2874, y: 8647304.5297 },\n { id: 18573, x: 4694289.2379, y: 8653828.7581 },\n { id: 43170, x: 4776610.4949, y: 8629943.3843 },\n { id: 18577, x: 4691341.1224, y: 8657364.8864 },\n { id: 43172, x: 4775490.5011, y: 8638137.5292 },\n { id: 43183, x: 4768220.0356, y: 8635368.5077 },\n { id: 59581, x: 4595234.7323, y: 8547556.0825 },\n { id: 43185, x: 4766680.5433, y: 8627501.8824 },\n { id: 59582, x: 4595383.4063, y: 8556676.5086 },\n { id: 59583, x: 4593637.1719, y: 8562674.6211 },\n { id: 59584, x: 4592955.0027, y: 8551369.6599 },\n { id: 59586, x: 4587601.9917, y: 8551557.2599 },\n { id: 59587, x: 4587051.7245, y: 8558155.8733 },\n { id: 35019, x: 4879590.197, y: 8787548.8914 },\n { id: 63715, x: 4739497.8218, y: 8431596.5145 },\n { id: 63716, x: 4739481.0905, y: 8426601.507 },\n { id: 35023, x: 4877384.6937, y: 8797242.3208 },\n { id: 63717, x: 4739144.2825, y: 8419847.4972 },\n { id: 35028, x: 4873570.3551, y: 8794181.5387 },\n { id: 71920, x: 4646636.5246, y: 8457252.3991 },\n { id: 71921, x: 4645483.7375, y: 8446962.926 },\n { id: 71922, x: 4644820.075, y: 8440896.072 },\n { id: 63724, x: 4733761.7139, y: 8432451.4094 },\n { id: 35031, x: 4872138.6697, y: 8787286.7615 },\n { id: 6339, x: 4742609.0692, y: 8567356.2592 },\n { id: 6340, x: 4742898.8837, y: 8580177.0872 },\n { id: 71925, x: 4635485.0402, y: 8454413.4016 },\n { id: 63727, x: 4732786.9398, y: 8424384.7314 },\n { id: 35034, x: 4869422.2441, y: 8783658.2319 },\n { id: 71927, x: 4634657.8689, y: 8441472.009 },\n { id: 6343, x: 4740544.472, y: 8561776.0539 },\n { id: 35037, x: 4867617.5451, y: 8797138.1198 },\n { id: 6344, x: 4737961.1436, y: 8571236.2512 },\n { id: 35038, x: 4866361.019, y: 8790095.714 },\n { id: 71930, x: 4650494.3725, y: 8434735.6331 },\n { id: 35039, x: 4864530.14, y: 8783942.4474 },\n { id: 63733, x: 4726237.0376, y: 8436251.0177 },\n { id: 71932, x: 4646807.3869, y: 8427077.6152 },\n { id: 6352, x: 4731674.865, y: 8564162.3276 },\n { id: 6353, x: 4731511.138, y: 8575340.0154 },\n { id: 6354, x: 4731278.077, y: 8575187.406 },\n { id: 71939, x: 4640796.88, y: 8421993.4072 },\n { id: 71940, x: 4640311.7768, y: 8432193.5362 },\n { id: 71946, x: 4634834.9888, y: 8431063.6534 },\n { id: 39163, x: 4837870.8478, y: 8760242.1741 },\n { id: 39164, x: 4837340.6051, y: 8753024.4883 },\n { id: 39166, x: 4835570.9801, y: 8748175.0076 },\n { id: 39175, x: 4827549.4061, y: 8756898.5928 },\n { id: 39176, x: 4826429.0478, y: 8748992.1751 },\n { id: 39178, x: 4824355.6222, y: 8744398.3049 },\n { id: 30985, x: 4595349.8197, y: 8605654.0843 },\n { id: 30988, x: 4593989.1158, y: 8618072.1112 },\n { id: 30992, x: 4591446.9534, y: 8610572.7684 },\n { id: 26893, x: 4693360.7122, y: 8756550.5548 },\n { id: 30993, x: 4590658.5918, y: 8624043.5176 },\n { id: 26897, x: 4690041.0473, y: 8754556.3245 },\n { id: 30998, x: 4588458.8648, y: 8604682.4897 },\n { id: 26899, x: 4689776.7542, y: 8761240.9113 },\n { id: 30999, x: 4586625.3045, y: 8613450.8809 },\n { id: 26900, x: 4688427.131, y: 8749326.8283 },\n { id: 31000, x: 4586273.1857, y: 8617865.4775 },\n { id: 31001, x: 4585611.2471, y: 8608034.1051 },\n { id: 31002, x: 4586014.6205, y: 8621731.8646 },\n { id: 31005, x: 4582740.2095, y: 8610875.7412 },\n { id: 26907, x: 4682941.0748, y: 8756818.0029 },\n { id: 31007, x: 4581326.8892, y: 8615631.5307 },\n { id: 31008, x: 4580964.4083, y: 8607048.4136 },\n { id: 31009, x: 4580979.1204, y: 8621077.1751 },\n { id: 31011, x: 4578958.1984, y: 8608327.9797 },\n { id: 31012, x: 4578540.3713, y: 8615433.6147 },\n { id: 26913, x: 4678919.6929, y: 8750032.6147 },\n { id: 31013, x: 4578263.73, y: 8611802.3848 },\n { id: 26915, x: 4678163.8433, y: 8761535.1114 },\n { id: 26917, x: 4676598.8318, y: 8758278.8278 },\n { id: 14655, x: 4741185.458, y: 8615236.5636 },\n { id: 47456, x: 4807143.2188, y: 8819693.3871 },\n { id: 14664, x: 4733942.7419, y: 8616694.0101 },\n { id: 35162, x: 4880198.7703, y: 8816436.9322 },\n { id: 47462, x: 4802682.338, y: 8810433.1766 },\n { id: 2373, x: 4816960.8214, y: 8547361.6119 },\n { id: 47463, x: 4801873.2607, y: 8820883.8125 },\n { id: 47465, x: 4800373.3395, y: 8813464.2895 },\n { id: 47467, x: 4798668.7049, y: 8816546.5967 },\n { id: 35170, x: 4873726.592, y: 8812674.043 },\n { id: 35171, x: 4872144.6348, y: 8806432.3031 },\n { id: 47469, x: 4798140.1662, y: 8819896.4793 },\n { id: 35175, x: 4871008.0715, y: 8819462.8873 },\n { id: 2384, x: 4810007.9078, y: 8555729.9642 },\n { id: 47474, x: 4795474.826, y: 8808895.2903 },\n { id: 2385, x: 4807927.1325, y: 8545509.8756 },\n { id: 35181, x: 4866151.9555, y: 8805532.0617 },\n { id: 47479, x: 4790415.9365, y: 8814131.8386 },\n { id: 35184, x: 4863763.3979, y: 8813572.3447 },\n { id: 2392, x: 4801956.7376, y: 8541759.1943 },\n { id: 2394, x: 4801508.9418, y: 8550511.563 },\n { id: 43395, x: 4801057.2249, y: 8665271.5174 },\n { id: 43396, x: 4799771.3312, y: 8672854.0576 },\n { id: 43400, x: 4796003.5928, y: 8681652.0076 },\n { id: 22909, x: 4732246.9246, y: 8793415.4107 },\n { id: 43406, x: 4790897.9284, y: 8671151.0768 },\n { id: 22911, x: 4732356.3099, y: 8804955.1213 },\n { id: 63903, x: 4760867.0657, y: 8463148.6152 },\n { id: 43408, x: 4788963.442, y: 8662906.3742 },\n { id: 63905, x: 4758337.0267, y: 8474508.1054 },\n { id: 63907, x: 4757836.2532, y: 8469399.1801 },\n { id: 22918, x: 4721839.6061, y: 8791074.0529 },\n { id: 63909, x: 4756629.2426, y: 8460772.9975 },\n { id: 43414, x: 4785919.0598, y: 8669381.4514 },\n { id: 43415, x: 4784423.8827, y: 8677201.173 },\n { id: 22920, x: 4720069.0897, y: 8799459.8651 },\n { id: 63914, x: 4751943.286, y: 8474926.2008 },\n { id: 63915, x: 4751525.5934, y: 8467029.649 },\n { id: 6529, x: 4736576.9397, y: 8552683.3734 },\n { id: 63918, x: 4748964.9138, y: 8464448.4331 },\n { id: 63919, x: 4748462.7376, y: 8477205.6069 },\n { id: 68019, x: 4724711.7902, y: 8474927.6816 },\n { id: 14733, x: 4749760.5598, y: 8641075.8602 },\n { id: 63922, x: 4746336.6659, y: 8467217.2413 },\n { id: 39329, x: 4839645.9509, y: 8774100.6435 },\n { id: 63924, x: 4743977.7849, y: 8473098.3167 },\n { id: 68026, x: 4721503.0128, y: 8467453.2641 },\n { id: 6541, x: 4725819.542, y: 8545046.8808 },\n { id: 39338, x: 4833178.9951, y: 8767599.8236 },\n { id: 68032, x: 4718152.2314, y: 8474415.4412 },\n { id: 68035, x: 4716174.3646, y: 8461011.6208 },\n { id: 39346, x: 4829645.0942, y: 8776519.0927 },\n { id: 39347, x: 4827830.8064, y: 8764153.2413 },\n { id: 68042, x: 4710457.2001, y: 8472629.5884 },\n { id: 10665, x: 4818059.6473, y: 8437964.6099 },\n { id: 59854, x: 4614439.8374, y: 8596877.2996 },\n { id: 10666, x: 4816685.8852, y: 8431079.6413 },\n { id: 59855, x: 4614220.9456, y: 8591551.7845 },\n { id: 59856, x: 4614482.7348, y: 8602709.6901 },\n { id: 10671, x: 4813231.1876, y: 8425370.0882 },\n { id: 59860, x: 4610907.6393, y: 8586913.2705 },\n { id: 59861, x: 4610782.3639, y: 8595846.0999 },\n { id: 59862, x: 4608791.2609, y: 8603935.1152 },\n { id: 14774, x: 4751899.0273, y: 8654578.0064 },\n { id: 51666, x: 4720385.2055, y: 8569423.51 },\n { id: 10676, x: 4809743.3234, y: 8430989.4252 },\n { id: 59865, x: 4606686.8178, y: 8590130.3761 },\n { id: 51667, x: 4718604.7357, y: 8564137.05 },\n { id: 27073, x: 4692008.6011, y: 8775605.1729 },\n { id: 51668, x: 4718561.524, y: 8579342.9068 },\n { id: 27074, x: 4689902.9025, y: 8769781.9585 },\n { id: 27075, x: 4690404.3563, y: 8787682.539 },\n { id: 14778, x: 4747782.1346, y: 8646647.7243 },\n { id: 59868, x: 4605455.7787, y: 8599065.1447 },\n { id: 27076, x: 4690178.9398, y: 8782684.3874 },\n { id: 59869, x: 4603958.7874, y: 8603565.196 },\n { id: 10682, x: 4806521.2999, y: 8420210.4919 },\n { id: 51674, x: 4712750.6611, y: 8571726.4485 },\n { id: 51675, x: 4711807.8534, y: 8563737.861 },\n { id: 27081, x: 4685404.7719, y: 8774254.7793 },\n { id: 59874, x: 4599924.2667, y: 8585653.282 },\n { id: 27083, x: 4684629.9109, y: 8770015.2139 },\n { id: 10687, x: 4802675.131, y: 8430544.2717 },\n { id: 59876, x: 4598049.3222, y: 8595700.5741 },\n { id: 51678, x: 4709655.6478, y: 8580500.8676 },\n { id: 10688, x: 4801940.7213, y: 8438759.4553 },\n { id: 51680, x: 4707204.9475, y: 8564643.3972 },\n { id: 31185, x: 4615893.3179, y: 8631144.2956 },\n { id: 72175, x: 4628523.4738, y: 8414163.2174 },\n { id: 31186, x: 4615151.0607, y: 8624810.2699 },\n { id: 27088, x: 4680044.352, y: 8768669.6076 },\n { id: 10692, x: 4800337.1418, y: 8422466.3753 },\n { id: 27090, x: 4678607.181, y: 8785040.1566 },\n { id: 31190, x: 4612360.8365, y: 8637747.4811 },\n { id: 27091, x: 4678186.2101, y: 8775595.4422 },\n { id: 31193, x: 4609608.9735, y: 8644876.7117 },\n { id: 31194, x: 4609398.1222, y: 8639825.0714 },\n { id: 31195, x: 4608793.6865, y: 8631475.5906 },\n { id: 72186, x: 4647697.9983, y: 8416357.0455 },\n { id: 31197, x: 4605786.1801, y: 8642426.419 },\n { id: 72187, x: 4644041.5257, y: 8409847.0192 },\n { id: 31200, x: 4602653.4746, y: 8634140.6425 },\n { id: 72190, x: 4638515.4979, y: 8415973.4632 },\n { id: 72193, x: 4635433.5832, y: 8411452.0902 },\n { id: 31204, x: 4599708.8108, y: 8628258.8899 },\n { id: 31207, x: 4598139.0679, y: 8636837.1402 },\n { id: 55820, x: 4669708.4415, y: 8544694.2377 },\n { id: 55823, x: 4666868.1325, y: 8560709.385 },\n { id: 55825, x: 4664666.9649, y: 8547889.6201 },\n { id: 55827, x: 4661602.9191, y: 8557393.5652 },\n { id: 55829, x: 4659936.1593, y: 8544456.3756 },\n { id: 55830, x: 4658707.855, y: 8549496.5181 },\n { id: 55832, x: 4656442.6311, y: 8561826.2366 },\n { id: 55836, x: 4652047.7326, y: 8556716.6653 },\n { id: 72249, x: 4608610.1456, y: 8412800.6944 },\n { id: 2570, x: 4835330.1343, y: 8580805.1983 },\n { id: 2571, x: 4835238.4291, y: 8591130.8754 },\n { id: 47662, x: 4788170.1665, y: 8817470.7547 },\n { id: 47665, x: 4786236.268, y: 8811264.0114 },\n { id: 72259, x: 4590632.896, y: 8416260.5907 },\n { id: 72261, x: 4578700.7635, y: 8411101.3854 },\n { id: 27173, x: 4674612.8051, y: 8771043.9432 },\n { id: 2581, x: 4827327.7128, y: 8589534.2358 },\n { id: 2582, x: 4826660.1984, y: 8596106.352 },\n { id: 47672, x: 4781739.2251, y: 8812724.8994 },\n { id: 27177, x: 4672103.8061, y: 8788649.2748 },\n { id: 35376, x: 4862464.4096, y: 8821254.0082 },\n { id: 27178, x: 4670388.0509, y: 8781244.2646 },\n { id: 2584, x: 4825568.6479, y: 8582415.3217 },\n { id: 35377, x: 4861401.7269, y: 8803570.3458 },\n { id: 27179, x: 4669314.9376, y: 8773789.2402 },\n { id: 47675, x: 4779350.0733, y: 8817468.5507 },\n { id: 27180, x: 4668911.754, y: 8770295.3586 },\n { id: 47676, x: 4777674.5731, y: 8808566.2917 },\n { id: 35381, x: 4857843.6647, y: 8807247.9522 },\n { id: 27186, x: 4665638.8657, y: 8778259.7438 },\n { id: 27187, x: 4663979.83, y: 8787619.9281 },\n { id: 35387, x: 4853593.8325, y: 8815063.349 },\n { id: 2595, x: 4818999.2766, y: 8595455.8926 },\n { id: 35389, x: 4852257.2483, y: 8821020.7362 },\n { id: 27192, x: 4658132.7472, y: 8782202.8425 },\n { id: 35392, x: 4851212.8828, y: 8802562.4796 },\n { id: 35393, x: 4849615.7601, y: 8809044.068 },\n { id: 39495, x: 4822589.7986, y: 8765017.4966 },\n { id: 39498, x: 4820867.8332, y: 8772915.4407 },\n { id: 39506, x: 4814239.3935, y: 8771645.7971 },\n { id: 39509, x: 4812753.5373, y: 8780896.1142 },\n { id: 39513, x: 4809930.261, y: 8765986.7239 },\n { id: 39515, x: 4807574.0265, y: 8774552.3343 },\n { id: 68210, x: 4722034.5947, y: 8494117.7524 },\n { id: 68214, x: 4718510.4682, y: 8482683.1664 },\n { id: 43625, x: 4799005.7158, y: 8699115.414 },\n { id: 43626, x: 4796827.4022, y: 8689573.5109 },\n { id: 68222, x: 4712676.5368, y: 8490411.7564 },\n { id: 68223, x: 4712851.0936, y: 8479883.5916 },\n { id: 43632, x: 4793194.6677, y: 8698047.5367 },\n { id: 43634, x: 4790611.3001, y: 8684714.9987 },\n { id: 43635, x: 4790643.0074, y: 8691994.4716 },\n { id: 43639, x: 4786543.2421, y: 8694599.662 },\n { id: 43641, x: 4786128.5885, y: 8686145.3477 },\n { id: 27259, x: 4673798.4591, y: 8751701.5339 },\n { id: 27261, x: 4671578.1456, y: 8764673.425 },\n { id: 27268, x: 4666724.9337, y: 8754057.8102 },\n { id: 27269, x: 4666676.9669, y: 8760588.4776 },\n { id: 27271, x: 4665203.2299, y: 8748219.1803 },\n { id: 23178, x: 4708860.2512, y: 8794975.7507 },\n { id: 23180, x: 4707424.7554, y: 8803684.3762 },\n { id: 23185, x: 4702672.118, y: 8790908.2559 },\n { id: 23186, x: 4702564.4261, y: 8797036.2187 },\n { id: 23188, x: 4700595.0638, y: 8804306.2877 },\n { id: 14992, x: 4740877.9547, y: 8661421.2473 },\n { id: 14995, x: 4737796.221, y: 8650707.1907 },\n { id: 14996, x: 4737531.2019, y: 8643870.9701 },\n { id: 19099, x: 4708887.1, y: 8639559.6486 },\n { id: 15002, x: 4734318.8327, y: 8662824.6862 },\n { id: 19103, x: 4707698.3422, y: 8626632.5698 },\n { id: 51897, x: 4707066.2147, y: 8572389.6192 },\n { id: 19106, x: 4706120.9876, y: 8634570.2826 },\n { id: 51899, x: 4706205.5089, y: 8576647.6423 },\n { id: 51900, x: 4704877.0012, y: 8580180.3511 },\n { id: 15009, x: 4728485.7306, y: 8654815.4316 },\n { id: 31406, x: 4613594.9895, y: 8648240.153 },\n { id: 31407, x: 4612695.4402, y: 8658844.6088 },\n { id: 51904, x: 4702266.3138, y: 8567718.46 },\n { id: 72399, x: 4608546.2186, y: 8419678.0711 },\n { id: 19113, x: 4703987.5196, y: 8642450.3095 },\n { id: 72400, x: 4608219.5997, y: 8425637.4754 },\n { id: 31411, x: 4608305.5541, y: 8650662.4064 },\n { id: 51907, x: 4700414.1277, y: 8574502.5665 },\n { id: 31412, x: 4607903.2279, y: 8654640.9979 },\n { id: 19116, x: 4701703.2185, y: 8629506.029 },\n { id: 72403, x: 4602578.4227, y: 8432431.7638 },\n { id: 19117, x: 4701335.8345, y: 8637491.1311 },\n { id: 51910, x: 4699181.5997, y: 8578129.9638 },\n { id: 31415, x: 4606677.5677, y: 8665049.7637 },\n { id: 72405, x: 4601181.2023, y: 8426066.5387 },\n { id: 72406, x: 4601004.6889, y: 8418912.9704 },\n { id: 31417, x: 4603795.5295, y: 8647548.5496 },\n { id: 19120, x: 4697918.4783, y: 8642134.3444 },\n { id: 31418, x: 4603533.856, y: 8654860.0165 },\n { id: 19121, x: 4696150.591, y: 8625467.9761 },\n { id: 10923, x: 4835279.007, y: 8463506.2347 },\n { id: 51914, x: 4694806.2946, y: 8572059.0987 },\n { id: 19122, x: 4696383.0374, y: 8633724.987 },\n { id: 72409, x: 4596873.3162, y: 8432461.4456 },\n { id: 51915, x: 4693308.8484, y: 8577419.6623 },\n { id: 31420, x: 4603235.48, y: 8659000.4789 },\n { id: 19124, x: 4693901.7257, y: 8629377.357 },\n { id: 10927, x: 4832040.6141, y: 8467115.9129 },\n { id: 31423, x: 4599363.3273, y: 8664361.7965 },\n { id: 19126, x: 4692751.416, y: 8640965.4495 },\n { id: 64218, x: 4761357.9066, y: 8487566.775 },\n { id: 10932, x: 4828614.8939, y: 8475851.0184 },\n { id: 64221, x: 4759163.7423, y: 8495135.9646 },\n { id: 64223, x: 4756235.8971, y: 8484081.8672 },\n { id: 10939, x: 4825884.0544, y: 8460703.501 },\n { id: 10940, x: 4824710.4575, y: 8471606.1947 },\n { id: 64228, x: 4750710.8684, y: 8499401.6794 },\n { id: 35535, x: 4859212.3878, y: 8797951.8654 },\n { id: 35538, x: 4857444.7413, y: 8787253.6582 },\n { id: 64235, x: 4746428.6298, y: 8489506.5606 },\n { id: 10948, x: 4818459.6322, y: 8468742.2262 },\n { id: 35548, x: 4850718.6662, y: 8785373.0765 },\n { id: 6856, x: 4760771.3705, y: 8591058.6977 },\n { id: 6857, x: 4759384.2021, y: 8598708.2506 },\n { id: 6858, x: 4758483.8526, y: 8585049.2302 },\n { id: 35552, x: 4847767.9372, y: 8792818.561 },\n { id: 6870, x: 4747347.5237, y: 8595411.0004 },\n { id: 6871, x: 4745672.3005, y: 8587803.6068 },\n { id: 60162, x: 4595388.8246, y: 8589684.9349 },\n { id: 60166, x: 4593208.1647, y: 8601995.8886 },\n { id: 60168, x: 4590960.2134, y: 8585538.2496 },\n { id: 60170, x: 4588274.8525, y: 8590024.6386 },\n { id: 60172, x: 4585722.3166, y: 8594548.2272 },\n { id: 60176, x: 4581751.7687, y: 8588647.1344 },\n { id: 47882, x: 4785630.1777, y: 8787629.4504 },\n { id: 47883, x: 4785768.8261, y: 8803612.4503 },\n { id: 47884, x: 4783935.5482, y: 8798306.9912 },\n { id: 47886, x: 4781723.9517, y: 8791531.5405 },\n { id: 47892, x: 4776813.0744, y: 8795607.0472 },\n { id: 2804, x: 4818038.0652, y: 8589286.8396 },\n { id: 47894, x: 4774493.8263, y: 8804424.2758 },\n { id: 2805, x: 4816577.9813, y: 8581888.0155 },\n { id: 60192, x: 4575224.8056, y: 8599172.0814 },\n { id: 47896, x: 4770444.7373, y: 8790755.2841 },\n { id: 39703, x: 4820792.3285, y: 8759051.2205 },\n { id: 2812, x: 4813160.8972, y: 8599569.5121 },\n { id: 2813, x: 4811428.4104, y: 8587209.6933 },\n { id: 2814, x: 4811611.6278, y: 8593702.396 },\n { id: 39707, x: 4817622.9699, y: 8749888.3869 },\n { id: 39709, x: 4815794.9646, y: 8758297.3624 },\n { id: 56107, x: 4686143.1177, y: 8589936.3828 },\n { id: 56108, x: 4682872.767, y: 8587219.6776 },\n { id: 56109, x: 4683060.1962, y: 8596468.7239 },\n { id: 2822, x: 4805894.8112, y: 8583154.1858 },\n { id: 56111, x: 4679470.7951, y: 8599121.0309 },\n { id: 56112, x: 4677315.6725, y: 8583553.9271 },\n { id: 39717, x: 4809276.8044, y: 8746935.6669 },\n { id: 56114, x: 4677352.2667, y: 8594664.1399 },\n { id: 2828, x: 4801603.1481, y: 8590857.3075 },\n { id: 39720, x: 4807084.7992, y: 8754373.149 },\n { id: 27423, x: 4695124.7457, y: 8799648.7953 },\n { id: 39721, x: 4805768.2586, y: 8747134.7247 },\n { id: 56118, x: 4672501.7295, y: 8593279.3896 },\n { id: 27425, x: 4694089.3052, y: 8791347.1212 },\n { id: 27426, x: 4694237.8626, y: 8804883.1781 },\n { id: 56121, x: 4670683.5462, y: 8598445.5325 },\n { id: 31527, x: 4597842.3731, y: 8652423.824 },\n { id: 31528, x: 4596103.4601, y: 8657763.1503 },\n { id: 31530, x: 4594218.7363, y: 8664395.9695 },\n { id: 27432, x: 4689226.4915, y: 8802755.5747 },\n { id: 31533, x: 4589445.0806, y: 8655980.5215 },\n { id: 27434, x: 4688056.0242, y: 8798070.6538 },\n { id: 27435, x: 4686527.6211, y: 8794440.8547 },\n { id: 27439, x: 4684614.4087, y: 8808817.1043 },\n { id: 27440, x: 4682153.3189, y: 8790511.2089 },\n { id: 31540, x: 4586227.9215, y: 8648530.5099 },\n { id: 60235, x: 4765279.8113, y: 8416212.0139 },\n { id: 31542, x: 4584928.3451, y: 8652772.3201 },\n { id: 27443, x: 4680421.0829, y: 8802680.595 },\n { id: 60236, x: 4765057.4406, y: 8407948.9639 },\n { id: 31544, x: 4583888.932, y: 8666835.4192 },\n { id: 27448, x: 4677286.3138, y: 8790837.9696 },\n { id: 31548, x: 4580094.668, y: 8648646.3098 },\n { id: 27449, x: 4677235.5525, y: 8797652.4971 },\n { id: 31549, x: 4580326.0889, y: 8657305.099 },\n { id: 35653, x: 4854844.2942, y: 8849886.8343 },\n { id: 35654, x: 4853919.3229, y: 8843163.8878 },\n { id: 35658, x: 4853071.4069, y: 8861999.3246 },\n { id: 15163, x: 4744596.7124, y: 8630109.2193 },\n { id: 35660, x: 4851243.5784, y: 8856817.3308 },\n { id: 35663, x: 4848619.9021, y: 8845465.6361 },\n { id: 6972, x: 4738198.9838, y: 8595161.9545 },\n { id: 35666, x: 4847728.7797, y: 8850536.7503 },\n { id: 6973, x: 4737462.928, y: 8583561.1702 },\n { id: 68459, x: 4706387.8582, y: 8479628.7925 },\n { id: 68461, x: 4703473.9061, y: 8495548.0239 },\n { id: 15174, x: 4736498.0965, y: 8630784.1194 },\n { id: 68463, x: 4702332.2769, y: 8488505.7439 },\n { id: 6978, x: 4731677.1661, y: 8589591.7816 },\n { id: 15179, x: 4732710.609, y: 8627096.2584 },\n { id: 15182, x: 4730105.5885, y: 8641061.3319 },\n { id: 68470, x: 4695395.597, y: 8480706.3325 },\n { id: 68472, x: 4693878.1873, y: 8494051.1866 },\n { id: 43880, x: 4779183.2615, y: 8691576.5241 },\n { id: 43881, x: 4777915.6713, y: 8699947.3476 },\n { id: 43882, x: 4776090.8427, y: 8687118.5916 },\n { id: 68478, x: 4688832.3965, y: 8494421.4852 },\n { id: 68480, x: 4689063.9855, y: 8480645.2539 },\n { id: 43886, x: 4773787.0499, y: 8700675.1284 },\n { id: 43888, x: 4772748.2172, y: 8695859.9798 },\n { id: 43894, x: 4767561.0844, y: 8690915.4424 },\n { id: 47997, x: 4807944.3251, y: 8828998.8007 },\n { id: 48000, x: 4803282.2218, y: 8825138.0013 },\n { id: 48002, x: 4800358.9477, y: 8824947.7754 },\n { id: 64403, x: 4741663.1889, y: 8497791.0462 },\n { id: 64405, x: 4740212.045, y: 8482515.3676 },\n { id: 72603, x: 4613293.6418, y: 8444767.4602 },\n { id: 72604, x: 4612529.9797, y: 8453858.2632 },\n { id: 64407, x: 4738183.9594, y: 8491663.5775 },\n { id: 72606, x: 4612037.5058, y: 8438249.0745 },\n { id: 64409, x: 4735254.4573, y: 8498171.1681 },\n { id: 64411, x: 4734104.9962, y: 8485282.6087 },\n { id: 72611, x: 4604679.3097, y: 8454921.49 },\n { id: 64414, x: 4730976.1633, y: 8491862.9113 },\n { id: 72612, x: 4603844.7606, y: 8439772.9919 },\n { id: 64416, x: 4728855.3626, y: 8498211.1297 },\n { id: 60317, x: 4764575.8714, y: 8443847.5467 },\n { id: 60319, x: 4763738.0464, y: 8454332.3603 },\n { id: 72616, x: 4598010.0657, y: 8447522.8763 },\n { id: 64419, x: 4726777.6238, y: 8487437.4114 },\n { id: 60320, x: 4763529.5237, y: 8448628.5135 },\n { id: 7042, x: 4868754.2589, y: 8372372.4941 },\n { id: 7043, x: 4867219.0322, y: 8379172.1238 },\n { id: 15242, x: 4753129.3089, y: 8682368.8545 },\n { id: 15243, x: 4752053.7308, y: 8676514.7431 },\n { id: 15245, x: 4751337.8168, y: 8666416.6843 },\n { id: 7049, x: 4858908.3346, y: 8375833.0054 },\n { id: 39844, x: 4839810.8658, y: 8785329.2799 },\n { id: 39847, x: 4838091.4439, y: 8796812.0066 },\n { id: 52151, x: 4706483.0708, y: 8553551.78 },\n { id: 39855, x: 4831787.8277, y: 8785559.9725 },\n { id: 11163, x: 4833746.5114, y: 8490092.7359 },\n { id: 52154, x: 4705408.403, y: 8546138.843 },\n { id: 39857, x: 4830286.7117, y: 8792527.1563 },\n { id: 11164, x: 4833280.6183, y: 8496288.5743 },\n { id: 52156, x: 4702599.2547, y: 8550378.097 },\n { id: 11166, x: 4831066.7378, y: 8481157.6617 },\n { id: 52158, x: 4701118.193, y: 8560170.5229 },\n { id: 52159, x: 4700040.0851, y: 8555086.747 },\n { id: 52161, x: 4698537.3106, y: 8545666.7669 },\n { id: 39864, x: 4825958.9872, y: 8783537.953 },\n { id: 39865, x: 4826256.5593, y: 8792926.2964 },\n { id: 11173, x: 4825474.5707, y: 8490653.0701 },\n { id: 52164, x: 4695042.7223, y: 8552557.8781 },\n { id: 52165, x: 4692226.1933, y: 8560689.3803 },\n { id: 11175, x: 4825047.9508, y: 8480312.2946 },\n { id: 52167, x: 4690019.6047, y: 8541998.7741 },\n { id: 11177, x: 4822333.9082, y: 8499729.4569 },\n { id: 11181, x: 4820350.8382, y: 8490850.9351 },\n { id: 27584, x: 4693191.7347, y: 8809969.977 },\n { id: 27586, x: 4682312.9575, y: 8812053.9628 },\n { id: 19388, x: 4727272.1608, y: 8674688.3971 },\n { id: 15289, x: 4750309.4983, y: 8697266.2738 },\n { id: 19389, x: 4726606.7054, y: 8668749.4595 },\n { id: 27590, x: 4678391.4078, y: 8818281.3508 },\n { id: 60383, x: 4765411.4275, y: 8431800.6173 },\n { id: 19394, x: 4724028.4251, y: 8666297.1964 },\n { id: 19395, x: 4722156.2727, y: 8681823.8644 },\n { id: 60386, x: 4764569.5738, y: 8425651.2377 },\n { id: 19396, x: 4721481.9624, y: 8677296.8754 },\n { id: 60387, x: 4763025.8021, y: 8436378.2132 },\n { id: 19397, x: 4719829.723, y: 8672061.491 },\n { id: 19401, x: 4716862.8446, y: 8680939.5422 },\n { id: 19406, x: 4712728.2689, y: 8668975.5613 },\n { id: 35804, x: 4860033.0301, y: 8831256.4991 },\n { id: 19408, x: 4712078.6765, y: 8684350.6866 },\n { id: 23508, x: 4688454.5503, y: 8604992.6057 },\n { id: 19409, x: 4711210.3193, y: 8675944.2516 },\n { id: 23509, x: 4688369.2069, y: 8614034.601 },\n { id: 35808, x: 4857123.4624, y: 8824599.3088 },\n { id: 23512, x: 4683534.4352, y: 8605793.0749 },\n { id: 7118, x: 4856070.0676, y: 8369210.8724 },\n { id: 23515, x: 4683131.8755, y: 8618714.842 },\n { id: 35814, x: 4853970.1562, y: 8833429.5095 },\n { id: 35815, x: 4853416.085, y: 8827207.4816 },\n { id: 35816, x: 4852802.6878, y: 8837658.9185 },\n { id: 7123, x: 4849262.8388, y: 8377785.1442 },\n { id: 23520, x: 4679037.0126, y: 8622751.5463 },\n { id: 23522, x: 4677053.592, y: 8613479.5956 },\n { id: 7126, x: 4843357.2698, y: 8371646.0911 },\n { id: 7127, x: 4842867.0934, y: 8376820.4894 },\n { id: 23524, x: 4674778.3581, y: 8606124.0563 },\n { id: 60420, x: 4763464.1203, y: 8492901.8334 },\n { id: 35826, x: 4847128.2007, y: 8826419.4386 },\n { id: 31743, x: 4597277.5497, y: 8633120.1862 },\n { id: 31744, x: 4597450.5965, y: 8645147.373 },\n { id: 31745, x: 4596162.5636, y: 8639302.856 },\n { id: 31746, x: 4595645.0887, y: 8627752.5578 },\n { id: 60440, x: 4765324.0445, y: 8466103.8737 },\n { id: 60441, x: 4764887.4543, y: 8476667.9555 },\n { id: 60442, x: 4763944.8813, y: 8471029.5284 },\n { id: 31755, x: 4590952.1853, y: 8638229.4684 },\n { id: 31756, x: 4589282.5261, y: 8632992.8608 },\n { id: 31759, x: 4587664.3974, y: 8643796.6222 },\n { id: 31760, x: 4586961.9638, y: 8637002.7908 },\n { id: 31761, x: 4584571.0832, y: 8629482.6993 },\n { id: 31763, x: 4583327.1653, y: 8626759.0388 },\n { id: 44061, x: 4780447.6831, y: 8666821.5238 },\n { id: 31764, x: 4583531.3456, y: 8633778.5304 },\n { id: 31766, x: 4581158.2815, y: 8637647.8985 },\n { id: 31767, x: 4580955.8401, y: 8643458.3159 },\n { id: 44067, x: 4775658.6719, y: 8673180.581 },\n { id: 44068, x: 4774464.9264, y: 8679664.1808 },\n { id: 60467, x: 4744256.5908, y: 8372878.4236 },\n { id: 44071, x: 4772669.3454, y: 8664944.2319 },\n { id: 44072, x: 4770558.4534, y: 8676857.5367 },\n { id: 60469, x: 4737754.3284, y: 8375501.3177 },\n { id: 35876, x: 4851543.3163, y: 8868267.8369 },\n { id: 60471, x: 4727579.9762, y: 8375293.7036 },\n { id: 44075, x: 4768743.7346, y: 8670801.6107 },\n { id: 72791, x: 4591572.0711, y: 8449694.7073 },\n { id: 72792, x: 4591439.9144, y: 8438230.5163 },\n { id: 72794, x: 4588672.4202, y: 8455523.1021 },\n { id: 72798, x: 4585684.8697, y: 8440964.7702 },\n { id: 48218, x: 4758780.7586, y: 8623885.5308 },\n { id: 48221, x: 4756726.9752, y: 8637147.7793 },\n { id: 48223, x: 4754285.8444, y: 8630084.5607 },\n { id: 52328, x: 4725517.2208, y: 8595626.414 },\n { id: 27736, x: 4676359.0637, y: 8811461.7709 },\n { id: 52331, x: 4722461.5515, y: 8583605.0228 },\n { id: 60530, x: 4750616.9005, y: 8397351.5804 },\n { id: 27739, x: 4673474.0969, y: 8812510.7063 },\n { id: 60532, x: 4749792.561, y: 8389127.6967 },\n { id: 27741, x: 4671671.4947, y: 8818172.0885 },\n { id: 60534, x: 4748221.4055, y: 8383794.5289 },\n { id: 52336, x: 4719510.9647, y: 8591118.7705 },\n { id: 27742, x: 4670924.0199, y: 8826375.5843 },\n { id: 68733, x: 4704996.2458, y: 8461317.3221 },\n { id: 52337, x: 4719254.0978, y: 8595174.3189 },\n { id: 68735, x: 4702205.432, y: 8471648.7923 },\n { id: 60539, x: 4745884.7613, y: 8394744.0371 },\n { id: 52341, x: 4714961.5716, y: 8592323.9786 },\n { id: 52342, x: 4714065.1577, y: 8584651.1421 },\n { id: 68739, x: 4697439.474, y: 8475521.7964 },\n { id: 52343, x: 4712846.6237, y: 8598549.6347 },\n { id: 68741, x: 4695084.0944, y: 8466758.4806 },\n { id: 27752, x: 4664432.1318, y: 8830383.2379 },\n { id: 52347, x: 4708739.1642, y: 8587122.084 },\n { id: 27753, x: 4663872.4386, y: 8816924.881 },\n { id: 52348, x: 4708435.6668, y: 8594915.6724 },\n { id: 27754, x: 4663136.3293, y: 8823218.6289 },\n { id: 68747, x: 4690063.7767, y: 8461650.0691 },\n { id: 27758, x: 4660055.7574, y: 8811298.3959 },\n { id: 27759, x: 4659241.8572, y: 8818552.0282 },\n { id: 31887, x: 4614541.5392, y: 8673747.2401 },\n { id: 3194, x: 4796004.9385, y: 8507115.5303 },\n { id: 31888, x: 4612033.4621, y: 8666708.3609 },\n { id: 31889, x: 4611611.2157, y: 8671203.0356 },\n { id: 3197, x: 4794935.5602, y: 8517187.1112 },\n { id: 56485, x: 4666098.4577, y: 8587695.805 },\n { id: 31891, x: 4610739.5985, y: 8679341.2458 },\n { id: 56486, x: 4664776.4282, y: 8599750.6383 },\n { id: 3199, x: 4791842.4949, y: 8502234.2177 },\n { id: 56487, x: 4663275.7241, y: 8593575.2538 },\n { id: 3200, x: 4791880.9457, y: 8497188.3433 },\n { id: 3201, x: 4789221.0539, y: 8505176.37 },\n { id: 31895, x: 4604392.6348, y: 8671736.6201 },\n { id: 3202, x: 4788717.4196, y: 8511719.0603 },\n { id: 31896, x: 4604154.5454, y: 8677067.9851 },\n { id: 3203, x: 4788808.8966, y: 8519875.1813 },\n { id: 56491, x: 4658844.5055, y: 8599452.9037 },\n { id: 56492, x: 4657129.8892, y: 8593094.1495 },\n { id: 3205, x: 4787191.1063, y: 8506636.4606 },\n { id: 56493, x: 4655713.9641, y: 8585114.977 },\n { id: 31899, x: 4600758.5301, y: 8681513.8436 },\n { id: 31900, x: 4598900.7148, y: 8672209.9799 },\n { id: 3207, x: 4785636.1791, y: 8500388.7728 },\n { id: 68792, x: 4680141.4656, y: 8371400.8466 },\n { id: 56495, x: 4652216.6165, y: 8584549.5751 },\n { id: 31901, x: 4597027.9591, y: 8678280.3536 },\n { id: 56497, x: 4652528.2078, y: 8599971.7714 },\n { id: 3211, x: 4781904.1642, y: 8508814.1359 },\n { id: 31905, x: 4592432.2957, y: 8681833.1852 },\n { id: 3212, x: 4781703.7309, y: 8520373.8049 },\n { id: 31906, x: 4590885.6118, y: 8673943.5775 },\n { id: 31911, x: 4583251.3604, y: 8673897.5435 },\n { id: 15518, x: 4746555.3993, y: 8686558.4927 },\n { id: 15524, x: 4741965.3441, y: 8698512.6935 },\n { id: 7327, x: 4872741.0176, y: 8389977.2002 },\n { id: 15527, x: 4737731.3002, y: 8690076.7923 },\n { id: 48321, x: 4761955.1596, y: 8651904.515 },\n { id: 7331, x: 4869074.3107, y: 8395360.9809 },\n { id: 36025, x: 4830235.9792, y: 8605860.7738 },\n { id: 48323, x: 4761268.5356, y: 8645013.3555 },\n { id: 36027, x: 4829724.2643, y: 8617403.7435 },\n { id: 15533, x: 4733824.3428, y: 8699786.0884 },\n { id: 7335, x: 4866661.8217, y: 8386486.3367 },\n { id: 48329, x: 4754929.8065, y: 8649259.134 },\n { id: 15537, x: 4730241.2577, y: 8685806.969 },\n { id: 36033, x: 4826454.5703, y: 8610345.2415 },\n { id: 36035, x: 4823811.9969, y: 8601722.3075 },\n { id: 7342, x: 4859824.9779, y: 8395202.7435 },\n { id: 7343, x: 4859167.7492, y: 8384052.2848 },\n { id: 36040, x: 4821012.2341, y: 8611280.6128 },\n { id: 11452, x: 4816868.7491, y: 8483258.2779 },\n { id: 11453, x: 4815748.8347, y: 8496617.434 },\n { id: 11458, x: 4811593.6727, y: 8486239.4403 },\n { id: 11466, x: 4805601.9187, y: 8495821.1732 },\n { id: 11472, x: 4801110.2662, y: 8487217.9165 },\n { id: 31968, x: 4575196.6023, y: 8619941.5703 },\n { id: 31969, x: 4573497.9853, y: 8604928.4258 },\n { id: 31970, x: 4573786.8075, y: 8615871.9918 },\n { id: 31971, x: 4573348.4566, y: 8623554.5339 },\n { id: 31978, x: 4567288.7884, y: 8608174.8576 },\n { id: 23792, x: 4670554.0987, y: 8610995.2425 },\n { id: 23794, x: 4670652.5327, y: 8620441.5862 },\n { id: 23796, x: 4667896.306, y: 8607701.9259 },\n { id: 23798, x: 4666264.1594, y: 8616880.4041 },\n { id: 23800, x: 4664380.3277, y: 8621784.7848 },\n { id: 31999, x: 4577775.1905, y: 8630603.1433 },\n { id: 32000, x: 4577751.3627, y: 8645928.3212 },\n { id: 23803, x: 4661785.7729, y: 8605929.4978 },\n { id: 23805, x: 4660755.3052, y: 8616480.7258 },\n { id: 32006, x: 4578402.0423, y: 8663089.0317 },\n { id: 23809, x: 4658781.221, y: 8622306.5512 },\n { id: 32009, x: 4837564.1143, y: 8600394.9365 },\n { id: 48406, x: 4763358.4967, y: 8664546.485 },\n { id: 23812, x: 4656473.2251, y: 8605786.3903 },\n { id: 48409, x: 4760951.5571, y: 8679780.1778 },\n { id: 48412, x: 4757983.8977, y: 8670145.9577 },\n { id: 56611, x: 4647796.4277, y: 8504856.921 },\n { id: 56613, x: 4646859.936, y: 8518572.0535 },\n { id: 40220, x: 4843737.911, y: 8817588.2486 },\n { id: 56618, x: 4639817.2741, y: 8501974.2713 },\n { id: 27925, x: 4677086.8467, y: 8803751.5141 },\n { id: 56619, x: 4639856.0284, y: 8512146.8865 },\n { id: 40224, x: 4841233.0209, y: 8805613.712 },\n { id: 73019, x: 4594347.5366, y: 8422005.8295 },\n { id: 27931, x: 4671981.9733, y: 8798673.0096 },\n { id: 27934, x: 4669209.5321, y: 8804832.3776 },\n { id: 27936, x: 4668162.0574, y: 8794702.6854 },\n { id: 40234, x: 4836701.503, y: 8816862.4043 },\n { id: 27937, x: 4667164.4488, y: 8809205.5905 },\n { id: 27938, x: 4666809.8342, y: 8801114.1305 },\n { id: 73027, x: 4585494.4464, y: 8421418.7549 },\n { id: 40237, x: 4833502.8153, y: 8811450.2868 },\n { id: 73029, x: 4584807.5495, y: 8429986.7386 },\n { id: 40239, x: 4832813.8669, y: 8804884.8136 },\n { id: 40241, x: 4830282.4453, y: 8819223.3453 },\n { id: 27944, x: 4663558.1236, y: 8807834.8599 },\n { id: 27946, x: 4662013.5176, y: 8795456.0804 },\n { id: 73036, x: 4579402.1801, y: 8423759.4187 },\n { id: 40247, x: 4826384.9697, y: 8804074.8506 },\n { id: 27952, x: 4658870.8828, y: 8793004.9217 },\n { id: 64851, x: 4741348.6389, y: 8461988.6749 },\n { id: 64853, x: 4739759.556, y: 8466373.6831 },\n { id: 64857, x: 4736868.2256, y: 8478944.5029 },\n { id: 64858, x: 4735557.6411, y: 8469120.3996 },\n { id: 64860, x: 4733919.5872, y: 8460095.8484 },\n { id: 3375, x: 4795072.0812, y: 8536497.8047 },\n { id: 3376, x: 4794342.1805, y: 8521808.0066 },\n { id: 3377, x: 4793807.8536, y: 8529869.05 },\n { id: 36171, x: 4817957.9655, y: 8605760.3838 },\n { id: 64865, x: 4730705.3085, y: 8463825.9248 },\n { id: 3386, x: 4786182.3416, y: 8528393.1645 },\n { id: 64872, x: 4727459.7065, y: 8470055.2774 },\n { id: 52575, x: 4703290.2801, y: 8595110.6867 },\n { id: 48476, x: 4765971.2495, y: 8698729.1247 },\n { id: 36179, x: 4813596.4089, y: 8618295.5138 },\n { id: 52576, x: 4701582.8561, y: 8586680.0637 },\n { id: 3388, x: 4785406.4494, y: 8538559.1285 },\n { id: 64874, x: 4725648.2351, y: 8461437.215 },\n { id: 52577, x: 4701160.3735, y: 8600347.4761 },\n { id: 52578, x: 4700739.8894, y: 8592220.6088 },\n { id: 36183, x: 4810188.9996, y: 8613784.6781 },\n { id: 3391, x: 4782071.6932, y: 8528527.8105 },\n { id: 48481, x: 4760788.4154, y: 8684404.0639 },\n { id: 48482, x: 4759681.5769, y: 8694629.1322 },\n { id: 52582, x: 4696657.4473, y: 8597070.3685 },\n { id: 52583, x: 4696314.7775, y: 8591056.0895 },\n { id: 48484, x: 4758167.0227, y: 8701024.9604 },\n { id: 52586, x: 4692358.4787, y: 8586622.4089 },\n { id: 36190, x: 4806608.5276, y: 8603528.4267 },\n { id: 60785, x: 4760696.5097, y: 8410761.8253 },\n { id: 52587, x: 4691892.4511, y: 8597104.6548 },\n { id: 48488, x: 4753842.6326, y: 8688335.1806 },\n { id: 36191, x: 4804969.8603, y: 8613247.919 },\n { id: 60786, x: 4760739.1376, y: 8403768.8107 },\n { id: 52589, x: 4690308.0032, y: 8592641.6279 },\n { id: 64887, x: 4715353.5869, y: 8372057.8912 },\n { id: 60789, x: 4757153.1486, y: 8415331.5247 },\n { id: 60792, x: 4755019.1683, y: 8409202.7512 },\n { id: 60794, x: 4754032.2021, y: 8404084.6499 },\n { id: 64894, x: 4693385.5119, y: 8373772.518 },\n { id: 60796, x: 4752611.2557, y: 8418317.0676 },\n { id: 60802, x: 4750113.4373, y: 8407382.111 },\n { id: 60803, x: 4749429.3471, y: 8412954.074 },\n { id: 19814, x: 4727921.6797, y: 8689153.6155 },\n { id: 19817, x: 4727672.0596, y: 8697728.9999 },\n { id: 60809, x: 4745765.6149, y: 8404313.8738 },\n { id: 60810, x: 4745053.8303, y: 8412841.7553 },\n { id: 19822, x: 4723255.8906, y: 8696397.6378 },\n { id: 19823, x: 4722687.609, y: 8688327.2973 },\n { id: 19824, x: 4722803.8073, y: 8703890.4295 },\n { id: 19826, x: 4720281.0829, y: 8694445.0917 },\n { id: 19830, x: 4718455.4206, y: 8690323.8357 },\n { id: 19831, x: 4716257.3047, y: 8697010.5202 },\n { id: 19832, x: 4715940.3239, y: 8703321.2251 },\n { id: 19834, x: 4713792.4895, y: 8690854.3728 },\n { id: 7575, x: 4873297.1974, y: 8410593.0796 },\n { id: 7576, x: 4872560.3016, y: 8400001.2466 },\n { id: 7577, x: 4871756.0101, y: 8403980.3799 },\n { id: 56770, x: 4649530.3899, y: 8527979.3088 },\n { id: 7583, x: 4864829.0681, y: 8399759.8214 },\n { id: 56772, x: 4646976.6335, y: 8531405.4367 },\n { id: 56773, x: 4646149.6756, y: 8523322.7068 },\n { id: 15783, x: 4745684.9844, y: 8680721.731 },\n { id: 56775, x: 4642744.5662, y: 8541029.4645 },\n { id: 15785, x: 4744436.9763, y: 8673313.9072 },\n { id: 7588, x: 4857904.2761, y: 8402304.7359 },\n { id: 48579, x: 4760666.0667, y: 8709717.9576 },\n { id: 15787, x: 4740010.6334, y: 8669468.4667 },\n { id: 7589, x: 4855875.9769, y: 8407396.3938 },\n { id: 56778, x: 4641143.3787, y: 8527582.8985 },\n { id: 48580, x: 4759488.1451, y: 8721667.7175 },\n { id: 11689, x: 4816851.2826, y: 8476074.1615 },\n { id: 56779, x: 4638677.6874, y: 8520986.2433 },\n { id: 44482, x: 4802181.617, y: 8708125.2388 },\n { id: 15789, x: 4739869.2891, y: 8679332.9377 },\n { id: 56782, x: 4638191.6975, y: 8532844.6956 },\n { id: 56783, x: 4636327.3904, y: 8525823.1049 },\n { id: 48585, x: 4755190.2709, y: 8719017.914 },\n { id: 56784, x: 4635492.0022, y: 8529339.1215 },\n { id: 44488, x: 4797298.8661, y: 8714667.8946 },\n { id: 11696, x: 4812012.5515, y: 8463971.3762 },\n { id: 56786, x: 4633098.3156, y: 8531908.6787 },\n { id: 15796, x: 4734265.4472, y: 8683641.8627 },\n { id: 44490, x: 4796064.2248, y: 8706831.4354 },\n { id: 11698, x: 4810707.6656, y: 8476241.7467 },\n { id: 73184, x: 4614159.6147, y: 8476818.3512 },\n { id: 15800, x: 4731517.1069, y: 8675358.1972 },\n { id: 11703, x: 4807083.3217, y: 8469455.2821 },\n { id: 44496, x: 4791506.0805, y: 8718738.368 },\n { id: 73189, x: 4605022.279, y: 8478169.4311 },\n { id: 44497, x: 4790913.9484, y: 8711764.108 },\n { id: 73191, x: 4604728.479, y: 8469502.7124 },\n { id: 44500, x: 4787568.2322, y: 8704674.2151 },\n { id: 40401, x: 4823717.1007, y: 8812227.6132 },\n { id: 11708, x: 4803077.4569, y: 8479287.4966 },\n { id: 73193, x: 4603759.3674, y: 8467892.4506 },\n { id: 11712, x: 4800708.6906, y: 8460792.7642 },\n { id: 40406, x: 4820059.9439, y: 8822304.4871 },\n { id: 11714, x: 4799711.7181, y: 8467612.8748 },\n { id: 40408, x: 4818692.5736, y: 8815930.0526 },\n { id: 73200, x: 4598049.1684, y: 8461485.9362 },\n { id: 73201, x: 4597128.6787, y: 8471031.379 },\n { id: 40411, x: 4816936.5151, y: 8808099.8009 },\n { id: 40416, x: 4813922.5295, y: 8821905.0099 },\n { id: 69112, x: 4688494.077, y: 8395164.0239 },\n { id: 40419, x: 4811263.502, y: 8817513.0413 },\n { id: 40421, x: 4810417.4956, y: 8804932.7723 },\n { id: 69115, x: 4688045.3884, y: 8379617.8478 },\n { id: 40425, x: 4808518.3726, y: 8808492.4676 },\n { id: 69119, x: 4684623.3659, y: 8382303.1315 },\n { id: 69122, x: 4679048.3337, y: 8389378.1019 },\n { id: 15839, x: 4751308.6691, y: 8704848.6122 },\n { id: 69127, x: 4674801.5967, y: 8383433.8476 },\n { id: 15844, x: 4748330.3245, y: 8722829.9845 },\n { id: 65047, x: 4726112.0881, y: 8381469.3745 },\n { id: 65048, x: 4724627.2475, y: 8393510.4991 },\n { id: 11766, x: 4797291.7365, y: 8411945.5916 },\n { id: 65054, x: 4719719.7365, y: 8396751.5565 },\n { id: 11767, x: 4796930.4369, y: 8405947.2813 },\n { id: 65055, x: 4719427.71, y: 8379259.7458 },\n { id: 48659, x: 4765217.5245, y: 8735950.6428 },\n { id: 11769, x: 4794874.0422, y: 8417653.0767 },\n { id: 65059, x: 4716914.2003, y: 8386119.8202 },\n { id: 11772, x: 4792796.7274, y: 8408386.1123 },\n { id: 48665, x: 4760561.7345, y: 8732364.9226 },\n { id: 48666, x: 4759042.918, y: 8742735.8554 },\n { id: 48667, x: 4757923.8897, y: 8727436.033 },\n { id: 3578, x: 4779273.9463, y: 8538693.2879 },\n { id: 11777, x: 4786664.7249, y: 8413092.3058 },\n { id: 32273, x: 4856191.9404, y: 8658462.6586 },\n { id: 3580, x: 4776680.612, y: 8529817.3267 },\n { id: 36373, x: 4834046.7353, y: 8632682.4889 },\n { id: 65069, x: 4709149.9719, y: 8392510.4881 },\n { id: 36376, x: 4831174.5878, y: 8622491.7678 },\n { id: 32277, x: 4851593.5945, y: 8653081.5571 },\n { id: 36377, x: 4831601.6252, y: 8641058.2636 },\n { id: 36380, x: 4828911.4502, y: 8635007.9889 },\n { id: 32281, x: 4847236.4422, y: 8655939.3853 },\n { id: 36381, x: 4826830.3387, y: 8639832.6016 },\n { id: 32282, x: 4845752.9815, y: 8647783.1695 },\n { id: 3589, x: 4770395.145, y: 8527991.7494 },\n { id: 3592, x: 4767633.5606, y: 8535406.765 },\n { id: 32286, x: 4842327.7488, y: 8651543.1164 },\n { id: 36386, x: 4823804.7401, y: 8621433.3464 },\n { id: 32287, x: 4840387.9734, y: 8642649.2463 },\n { id: 28188, x: 4652017.1438, y: 8617639.3957 },\n { id: 32288, x: 4840846.6561, y: 8657821.9815 },\n { id: 36388, x: 4822255.895, y: 8631664.5035 },\n { id: 28190, x: 4650184.7079, y: 8607652.2605 },\n { id: 28191, x: 4649525.1499, y: 8612935.8029 },\n { id: 28196, x: 4646977.9429, y: 8617778.4931 },\n { id: 24098, x: 4688735.1382, y: 8633744.3408 },\n { id: 28199, x: 4644974.209, y: 8614629.5321 },\n { id: 24100, x: 4686397.942, y: 8626826.5714 },\n { id: 15903, x: 4751749.7393, y: 8739433.0608 },\n { id: 28201, x: 4641627.3574, y: 8621465.1435 },\n { id: 24102, x: 4684829.4864, y: 8635423.6228 },\n { id: 28202, x: 4641084.174, y: 8607726.881 },\n { id: 24103, x: 4684638.2779, y: 8640054.254 },\n { id: 15905, x: 4750413.6594, y: 8732297.1285 },\n { id: 28203, x: 4641244.1222, y: 8616929.5302 },\n { id: 28204, x: 4638984.3236, y: 8604160.2007 },\n { id: 24107, x: 4679897.6884, y: 8638498.8286 },\n { id: 24108, x: 4679282.4709, y: 8627390.799 },\n { id: 28208, x: 4637369.3469, y: 8615434.3417 },\n { id: 24110, x: 4678489.2831, y: 8642541.8127 },\n { id: 24111, x: 4676805.1217, y: 8634537.9127 },\n { id: 28211, x: 4634366.6961, y: 8620903.568 },\n { id: 24112, x: 4676112.8471, y: 8624142.6068 },\n { id: 24113, x: 4674948.7712, y: 8629620.895 },\n { id: 24115, x: 4674416.9789, y: 8638937.3015 },\n { id: 20024, x: 4710178.6801, y: 8700088.2827 },\n { id: 20027, x: 4709360.4928, y: 8696315.4241 },\n { id: 20028, x: 4708820.4124, y: 8692012.5872 },\n { id: 20031, x: 4705736.0953, y: 8698774.5918 },\n { id: 11835, x: 4776425.0538, y: 8417636.5797 },\n { id: 20034, x: 4703249.2814, y: 8694087.2207 },\n { id: 20035, x: 4702506.2026, y: 8702188.3 },\n { id: 11837, x: 4771929.3044, y: 8412137.4719 },\n { id: 20040, x: 4699860.6045, y: 8704578.8007 },\n { id: 20043, x: 4697489.6704, y: 8697090.2002 },\n { id: 20045, x: 4695564.4261, y: 8704528.551 },\n { id: 20046, x: 4694549.7994, y: 8687866.2338 },\n { id: 61038, x: 4744323.5448, y: 8400676.1526 },\n { id: 56939, x: 4630660.3044, y: 8526662.7568 },\n { id: 48742, x: 4766960.8425, y: 8761878.6955 },\n { id: 61040, x: 4741866.0633, y: 8415670.7553 },\n { id: 56942, x: 4629219.6096, y: 8532377.6678 },\n { id: 7754, x: 4851212.127, y: 8414027.4322 },\n { id: 56943, x: 4626303.9249, y: 8529387.3563 },\n { id: 61043, x: 4740723.7788, y: 8404517.598 },\n { id: 56944, x: 4625991.7911, y: 8524568.6023 },\n { id: 61044, x: 4739508.8428, y: 8411334.5586 },\n { id: 56945, x: 4626201.8411, y: 8539507.3239 },\n { id: 48748, x: 4761619.674, y: 8756402.6596 },\n { id: 7758, x: 4849018.3748, y: 8407542.6506 },\n { id: 48749, x: 4760896.2079, y: 8750446.4125 },\n { id: 61047, x: 4738160.5577, y: 8407712.0368 },\n { id: 48750, x: 4759333.6517, y: 8764935.1113 },\n { id: 56951, x: 4619772.8264, y: 8529476.7827 },\n { id: 56952, x: 4618868.961, y: 8521302.492 },\n { id: 48754, x: 4756744.1576, y: 8758439.0929 },\n { id: 61052, x: 4735329.4782, y: 8416570.7364 },\n { id: 48755, x: 4755704.4552, y: 8747666.6302 },\n { id: 7765, x: 4845384.8592, y: 8400408.7165 },\n { id: 61054, x: 4734817.9288, y: 8402938.3851 },\n { id: 56956, x: 4615549.2921, y: 8536976.254 },\n { id: 7768, x: 4843376.0399, y: 8411700.3626 },\n { id: 61056, x: 4732963.3446, y: 8411240.0312 },\n { id: 61059, x: 4731264.4153, y: 8417161.0815 },\n { id: 7773, x: 4841766.2565, y: 8405692.8031 },\n { id: 61063, x: 4729697.102, y: 8403424.7809 },\n { id: 61065, x: 4727690.237, y: 8412142.3381 },\n { id: 7778, x: 4838038.9865, y: 8418938.593 },\n { id: 7779, x: 4837592.8862, y: 8401393.1813 },\n { id: 61067, x: 4726559.7303, y: 8417807.0847 },\n { id: 61069, x: 4726095.3598, y: 8408042.792 },\n { id: 40611, x: 4820021.7439, y: 8795326.6502 },\n { id: 40616, x: 4817213.65, y: 8787867.7451 },\n { id: 73409, x: 4611587.0072, y: 8488270.1559 },\n { id: 40618, x: 4816252.214, y: 8803406.0848 },\n { id: 73411, x: 4608979.2568, y: 8482107.7195 },\n { id: 73414, x: 4606694.1633, y: 8495418.3411 },\n { id: 40623, x: 4813858.6694, y: 8797260.1928 },\n { id: 40625, x: 4812737.0424, y: 8791226.1534 },\n { id: 73417, x: 4605061.3507, y: 8486333.6665 },\n { id: 48825, x: 4769053.7369, y: 8785191.0902 },\n { id: 48827, x: 4767119.7841, y: 8780368.8473 },\n { id: 73421, x: 4598597.0002, y: 8484500.7147 },\n { id: 48828, x: 4766248.2635, y: 8766248.2224 },\n { id: 48830, x: 4764301.4976, y: 8772195.2729 },\n { id: 48834, x: 4758744.4846, y: 8774545.6647 },\n { id: 48835, x: 4758583.7377, y: 8781217.6725 },\n { id: 52952, x: 4687572.7921, y: 8505325.4764 },\n { id: 16061, x: 4744828.6824, y: 8742611.3333 },\n { id: 16062, x: 4744215.6812, y: 8728789.083 },\n { id: 16067, x: 4738490.705, y: 8736349.5791 },\n { id: 52959, x: 4679694.0945, y: 8516946.243 },\n { id: 52960, x: 4676434.6614, y: 8502634.5998 },\n { id: 16069, x: 4736330.5201, y: 8725463.3815 },\n { id: 52961, x: 4676281.7927, y: 8508517.2404 },\n { id: 52963, x: 4672599.1019, y: 8516320.1755 },\n { id: 16072, x: 4734523.7808, y: 8743179.5437 },\n { id: 16075, x: 4731639.0821, y: 8733823.6133 },\n { id: 73469, x: 4593540.1341, y: 8493327.7612 },\n { id: 73473, x: 4589279.7883, y: 8486675.4802 },\n { id: 73474, x: 4585767.2938, y: 8479826.6443 },\n { id: 57081, x: 4631412.2349, y: 8509838.1414 },\n { id: 36586, x: 4837224.866, y: 8653921.004 },\n { id: 57082, x: 4631374.4318, y: 8518458.2157 },\n { id: 57083, x: 4627888.1343, y: 8501372.2374 },\n { id: 57084, x: 4627255.0172, y: 8512286.2567 },\n { id: 36593, x: 4831928.6473, y: 8651624.1996 },\n { id: 57089, x: 4622390.0199, y: 8506517.4815 },\n { id: 3807, x: 4779900.4579, y: 8504197.8248 },\n { id: 36603, x: 4824112.8048, y: 8648609.7695 },\n { id: 3811, x: 4775969.8485, y: 8514207.0592 },\n { id: 12010, x: 4797804.0929, y: 8435554.8845 },\n { id: 3812, x: 4774518.8459, y: 8504961.4102 },\n { id: 36606, x: 4821477.3999, y: 8653641.4095 },\n { id: 12012, x: 4795569.9534, y: 8430264.8052 },\n { id: 48905, x: 4768260.1536, y: 8797730.1631 },\n { id: 3817, x: 4771054.9502, y: 8511031.1158 },\n { id: 3818, x: 4769993.8993, y: 8520382.0014 },\n { id: 12017, x: 4794060.3406, y: 8421407.0365 },\n { id: 69404, x: 4682841.9663, y: 8413835.9288 },\n { id: 3820, x: 4767538.8773, y: 8514440.1305 },\n { id: 32514, x: 4873959.2936, y: 8675655.5362 },\n { id: 12020, x: 4790446.5349, y: 8427014.6981 },\n { id: 3822, x: 4766276.0608, y: 8504768.3197 },\n { id: 48912, x: 4761894.7976, y: 8791566.7161 },\n { id: 69408, x: 4679371.4453, y: 8400419.3427 },\n { id: 48913, x: 4760345.6946, y: 8787403.7406 },\n { id: 12022, x: 4788740.9872, y: 8435890.0413 },\n { id: 69409, x: 4677361.1047, y: 8407407.3327 },\n { id: 32518, x: 4869715.2247, y: 8668404.9842 },\n { id: 48915, x: 4760047.4692, y: 8798128.7189 },\n { id: 48916, x: 4758367.8144, y: 8804724.1841 },\n { id: 12025, x: 4787551.9197, y: 8421092.6143 },\n { id: 32522, x: 4866488.4891, y: 8678038.166 },\n { id: 12029, x: 4784271.7818, y: 8432511.1901 },\n { id: 69416, x: 4671749.992, y: 8402720.4003 },\n { id: 32526, x: 4862067.8589, y: 8672702.6759 },\n { id: 12031, x: 4783324.8639, y: 8426572.5744 },\n { id: 12032, x: 4782223.0425, y: 8423136.4875 },\n { id: 32529, x: 4860068.3715, y: 8665669.2677 },\n { id: 32530, x: 4860288.9969, y: 8680096.9834 },\n { id: 7955, x: 4854464.5725, y: 8391281.6093 },\n { id: 28453, x: 4632511.1147, y: 8612368.0501 },\n { id: 7958, x: 4851178.5957, y: 8398601.2056 },\n { id: 7959, x: 4851211.6729, y: 8385672.0799 },\n { id: 28455, x: 4629936.3541, y: 8605507.2068 },\n { id: 28458, x: 4628183.8249, y: 8616587.1205 },\n { id: 28459, x: 4628305.0842, y: 8620228.4862 },\n { id: 7964, x: 4847103.0014, y: 8392043.4284 },\n { id: 28460, x: 4626046.0957, y: 8613582.3004 },\n { id: 28462, x: 4625455.1253, y: 8605759.5854 },\n { id: 28465, x: 4623744.4429, y: 8621905.5339 },\n { id: 7971, x: 4844526.0244, y: 8385883.8286 },\n { id: 28468, x: 4620930.2706, y: 8610078.7846 },\n { id: 28469, x: 4620743.4623, y: 8619173.6213 },\n { id: 28470, x: 4618687.8914, y: 8615846.0154 },\n { id: 7975, x: 4841219.7602, y: 8394112.1811 },\n { id: 28472, x: 4617338.0043, y: 8606034.0478 },\n { id: 73561, x: 4594980.678, y: 8478746.2866 },\n { id: 28473, x: 4617236.4401, y: 8611493.9436 },\n { id: 28474, x: 4617232.9811, y: 8621811.7328 },\n { id: 24379, x: 4690481.195, y: 8662970.671 },\n { id: 73567, x: 4589132.9471, y: 8462561.9718 },\n { id: 24382, x: 4686568.1651, y: 8651425.192 },\n { id: 73570, x: 4584768.3466, y: 8470139.4113 },\n { id: 24384, x: 4685660.7137, y: 8657205.6041 },\n { id: 24386, x: 4684803.406, y: 8663175.7179 },\n { id: 73574, x: 4577559.5472, y: 8416758.2468 },\n { id: 24388, x: 4682255.4664, y: 8644857.933 },\n { id: 7992, x: 4855790.1323, y: 8452054.7621 },\n { id: 73576, x: 4576346.3505, y: 8431127.0297 },\n { id: 24389, x: 4682102.4065, y: 8653836.6986 },\n { id: 73577, x: 4576324.0389, y: 8426590.6965 },\n { id: 24390, x: 4681606.1588, y: 8660518.0315 },\n { id: 73578, x: 4576317.169, y: 8426587.2087 },\n { id: 24392, x: 4680290.7749, y: 8664213.1009 },\n { id: 24394, x: 4676503.3959, y: 8659750.0787 },\n { id: 24397, x: 4674599.5572, y: 8652758.0351 },\n { id: 40797, x: 4844744.0455, y: 8833834.2848 },\n { id: 40798, x: 4844718.8576, y: 8841026.0488 },\n { id: 40806, x: 4839611.0905, y: 8835475.368 },\n { id: 40809, x: 4837281.517, y: 8823726.3139 },\n { id: 44910, x: 4802878.8087, y: 8724149.9763 },\n { id: 40811, x: 4835912.0226, y: 8828813.6967 },\n { id: 44913, x: 4799881.6694, y: 8743341.8272 },\n { id: 40814, x: 4834682.379, y: 8836092.3053 },\n { id: 44915, x: 4798673.4848, y: 8734689.1736 },\n { id: 61313, x: 4743918.8636, y: 8379470.4062 },\n { id: 61314, x: 4743435.5421, y: 8389883.4572 },\n { id: 40819, x: 4830500.4924, y: 8829853.8153 },\n { id: 40820, x: 4830087.1214, y: 8823692.3541 },\n { id: 44920, x: 4794278.7978, y: 8736648.2304 },\n { id: 44922, x: 4793111.8152, y: 8729494.4095 },\n { id: 40823, x: 4828848.9803, y: 8837025.9599 },\n { id: 16231, x: 4746901.9039, y: 8714789.2849 },\n { id: 61321, x: 4739457.2455, y: 8383548.2445 },\n { id: 69520, x: 4670298.7069, y: 8413391.6623 },\n { id: 61322, x: 4738517.8315, y: 8396126.3161 },\n { id: 57224, x: 4648604.2372, y: 8545803.6176 },\n { id: 44928, x: 4788386.6414, y: 8743062.9579 },\n { id: 20334, x: 4707299.2162, y: 8664666.1126 },\n { id: 57226, x: 4647629.9674, y: 8553057.2325 },\n { id: 16236, x: 4741902.9186, y: 8719943.4188 },\n { id: 57227, x: 4647061.446, y: 8561294.2496 },\n { id: 20336, x: 4706197.8631, y: 8683722.1987 },\n { id: 20337, x: 4705072.2327, y: 8677979.4901 },\n { id: 69526, x: 4664917.1846, y: 8401764.7265 },\n { id: 61328, x: 4735057.9381, y: 8390321.6047 },\n { id: 57229, x: 4644687.5995, y: 8553858.687 },\n { id: 20338, x: 4704106.1439, y: 8671283.3795 },\n { id: 16239, x: 4739124.137, y: 8707418.0216 },\n { id: 61330, x: 4734476.9098, y: 8377613.8749 },\n { id: 57231, x: 4644058.513, y: 8547820.014 },\n { id: 20340, x: 4702404.0038, y: 8684455.0274 },\n { id: 57232, x: 4643563.2577, y: 8560396.8322 },\n { id: 57233, x: 4640491.7608, y: 8553966.1408 },\n { id: 20342, x: 4700634.8266, y: 8674296.7911 },\n { id: 16244, x: 4735340.3521, y: 8715392.7874 },\n { id: 69532, x: 4660364.9454, y: 8399085.5527 },\n { id: 57235, x: 4639003.3967, y: 8544909.9603 },\n { id: 49037, x: 4768191.8163, y: 8813664.9438 },\n { id: 69533, x: 4656441.342, y: 8407141.8378 },\n { id: 16246, x: 4731933.505, y: 8707217.3878 },\n { id: 69534, x: 4655325.397, y: 8402027.8843 },\n { id: 61336, x: 4731199.1878, y: 8382385.2421 },\n { id: 57237, x: 4638902.6883, y: 8561200.8098 },\n { id: 49039, x: 4766048.7573, y: 8806843.3993 },\n { id: 20346, x: 4697255.7682, y: 8683791.2833 },\n { id: 61337, x: 4729949.5638, y: 8390171.9591 },\n { id: 20347, x: 4696041.4764, y: 8678262.7776 },\n { id: 16248, x: 4731199.8137, y: 8724455.6351 },\n { id: 61338, x: 4729766.2199, y: 8395184.6765 },\n { id: 57239, x: 4636256.6768, y: 8551889.7921 },\n { id: 20349, x: 4694359.474, y: 8669137.9256 },\n { id: 49045, x: 4760759.3696, y: 8812601.3048 },\n { id: 61343, x: 4726446.7769, y: 8386436.4624 },\n { id: 49047, x: 4881587.2805, y: 8699642.5128 },\n { id: 49049, x: 4879915.2357, y: 8689605.2556 },\n { id: 36759, x: 4818863.7275, y: 8644172.3477 },\n { id: 36766, x: 4814265.858, y: 8658483.3341 },\n { id: 36767, x: 4813557.181, y: 8650150.9526 },\n { id: 69567, x: 4670015.7153, y: 8377590.0597 },\n { id: 69568, x: 4669349.4154, y: 8393126.642 },\n { id: 36776, x: 4808550.3979, y: 8644665.4626 },\n { id: 69569, x: 4667285.8207, y: 8386442.9765 },\n { id: 36782, x: 4804425.5989, y: 8653201.4073 },\n { id: 65481, x: 4724422.9506, y: 8413641.54 },\n { id: 65487, x: 4721463.3565, y: 8406125.8213 },\n { id: 65492, x: 4714766.4258, y: 8398818.1209 },\n { id: 65494, x: 4713821.5844, y: 8410140.8159 },\n { id: 16311, x: 4752045.5195, y: 8759185.2983 },\n { id: 16312, x: 4751625.0577, y: 8751153.211 },\n { id: 32733, x: 4873679.9381, y: 8689644.7076 },\n { id: 4040, x: 4798939.1344, y: 8557472.0341 },\n { id: 32734, x: 4871099.785, y: 8682734.8177 },\n { id: 32735, x: 4871622.4821, y: 8698525.8362 },\n { id: 4045, x: 4796018.1379, y: 8542992.1925 },\n { id: 32742, x: 4866945.1021, y: 8689552.1385 },\n { id: 12247, x: 4798150.8365, y: 8454829.4926 },\n { id: 32743, x: 4865825.5832, y: 8685129.1092 },\n { id: 32745, x: 4865185.7616, y: 8696609.4463 },\n { id: 12250, x: 4796668.3017, y: 8447019.7245 },\n { id: 12251, x: 4796498.1316, y: 8442453.2646 },\n { id: 4053, x: 4789235.8033, y: 8554421.035 },\n { id: 32751, x: 4859829.7006, y: 8687081.9622 },\n { id: 12256, x: 4791941.8552, y: 8439614.6038 },\n { id: 4058, x: 4785129.4183, y: 8546492.7777 },\n { id: 12257, x: 4791135.2537, y: 8448825.1264 },\n { id: 12258, x: 4790422.3751, y: 8454168.7017 },\n { id: 16359, x: 4755145.6688, y: 8769149.4626 },\n { id: 12262, x: 4787251.9206, y: 8441684.2865 },\n { id: 16362, x: 4753005.7909, y: 8776248.0305 },\n { id: 16364, x: 4751874.9249, y: 8782814.6807 },\n { id: 16365, x: 4750185.2021, y: 8767339.299 },\n { id: 12266, x: 4783742.5442, y: 8449725.0194 },\n { id: 12267, x: 4782780.1114, y: 8439591.4123 },\n { id: 12270, x: 4781946.1129, y: 8445409.8931 },\n { id: 40973, x: 4845728.6031, y: 8859786.9432 },\n { id: 40977, x: 4842705.7258, y: 8850353.2106 },\n { id: 40978, x: 4842658.8493, y: 8856154.9764 },\n { id: 40984, x: 4838745.9974, y: 8852030.5924 },\n { id: 40985, x: 4838146.5315, y: 8843351.8153 },\n { id: 40989, x: 4836293.1855, y: 8860538.6722 },\n { id: 49188, x: 4887709.7199, y: 8728348.7824 }\n ];\n }", "function plotPoints(){\n if(steps % 100 == 0){\n t2 = performance.now();\n graphData.push([steps, t2 - t1]);\n }\n ++steps;\n}", "function getPoints() {\n return [\n new google.maps.LatLng(45.391982833,-93.367101333),new google.maps.LatLng(45.391982833,-93.367101333),new google.maps.LatLng(45.391982833,-93.367101333),new google.maps.LatLng(45.391982833,-93.367101333),\n \n ];\n }", "get points() {\n let { timepoints } = this.childStore\n\n let points = []\n timepoints\n .forEach((timepoint, timeIdx) => {\n var heatmap = timepoint.heatmap\n\n if (heatmap[0]) {\n heatmap[0].data.forEach((d, patientIdx) => {\n const { patient } = d\n let value = []\n heatmap.forEach((row, rowIdx) => {\n if (!this.currentNonPatientVariables.includes(row.variable)) return\n\n let v = row.data[patientIdx].value\n if (v === undefined ) {\n v = this.findNearestReplace(patient, timeIdx, rowIdx)\n }\n value.push(v)\n })\n var point = {\n idx: points.length,\n patient,\n value,\n timeIdx\n }\n points.push(point)\n })\n }\n })\n\n return points\n }", "pointAt(i, result) {\n if (i >= 0 && i < this._points.length) {\n if (result) {\n result.setFrom(this._points[i]);\n return result;\n }\n return this._points[i].clone();\n }\n return undefined;\n }", "function drawSeriesPoints(series) {\n\t\t\tfunction plotPoints(data, radius, fill) {\n\t\t\t\tfor(var i = 0; i < data.length; ++i){\n\t\t\t\t\tvar x = data[i][0], y = data[i][1];\n\t\t\t\t\tif(x < xaxis.min || x > xaxis.max || y < yaxis.min || y > yaxis.max)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tctx.beginPath();\n\t\t\t\t\tctx.arc(tHoz(x), tVert(y), radius, 0, 2 * Math.PI, true);\n\t\t\t\t\tif(fill) ctx.fill();\n\t\t\t\t\tctx.stroke();\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\tfunction plotPointShadows(data, offset, radius){\n\t\t\t\tfor(var i = 0; i < data.length; ++i){\n\t\t\t\t\tvar x = data[i][0], y = data[i][1];\n\t\t\t\t\tif (x < xaxis.min || x > xaxis.max || y < yaxis.min || y > yaxis.max)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tctx.beginPath();\n\t\t\t\t\tctx.arc(tHoz(x), tVert(y) + offset, radius, 0, Math.PI, false);\n\t\t\t\t\tctx.stroke();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tctx.save();\n\t\t\tctx.translate(plotOffset.left, plotOffset.top);\n\t\n\t\t\tvar lw = series.lines.lineWidth;\n\t\t\tvar sw = series.shadowSize;\n\t\t\tif(sw > 0){\n\t\t\t\t/**\n\t\t\t\t * Draw fake shadow in two steps.\n\t\t\t\t */\n\t\t\t\tctx.lineWidth = sw / 2;\n\t\t\t\tctx.strokeStyle = 'rgba(0,0,0,0.1)';\n\t\t\t\tplotPointShadows(series.data, sw/2 + ctx.lineWidth/2, series.points.radius);\n\t\n\t\t\t\tctx.lineWidth = sw / 2;\n\t\t\t\tctx.strokeStyle = 'rgba(0,0,0,0.2)';\n\t\t\t\tplotPointShadows(series.data, ctx.lineWidth/2, series.points.radius);\n\t\t\t}\n\t\n\t\t\tctx.lineWidth = series.points.lineWidth;\n\t\t\tctx.strokeStyle = series.color;\n\t\t\tctx.fillStyle = series.points.fillColor != null ? series.points.fillColor : series.color;\n\t\t\tplotPoints(series.data, series.points.radius, series.points.fill);\n\t\t\tctx.restore();\n\t\t}", "function setCoordinates()\n {\n var Coords = [];\n angular.forEach(map, function (relation) {\n var from = relation.source,\n to = relation.target;\n\n if(data[from] != undefined && data[to] != undefined) {\n var thisCord = getNearestPoints(from, to);\n if(thisCord !== null) {\n Coords.push(thisCord);\n }\n }\n });\n angular.extend(coordinates, Coords);\n }", "static addPoints(){\n Point.clearPoints();\n \n for(var i = 0; i < points.length; i++){\n pointMarkers[i] = two.makeCircle(points[i].x, points[i].y, 6);\n pointMarkers[i].noStroke();\n\n //Colors of points\n switch(points[i].name){\n case 'A':\n pointMarkers[i].fill = 'red'; //Red\n break;\n case 'B':\n pointMarkers[i].fill = '#0058ff'; //Blue\n break;\n case 'C':\n pointMarkers[i].fill = '#03ff0d'; //Green\n break;\n case 'D':\n pointMarkers[i].fill = '#ffab2f'; //Orange\n break;\n case 'E':\n pointMarkers[i].fill = '#f1c40f'; //Yellow\n break;\n case 'F':\n pointMarkers[i].fill = '#8e44ad'; //Purple\n break;\n case 'G':\n pointMarkers[i].fill = '#bdc3c7'; //Silver\n break;\n case 'H':\n pointMarkers[i].fill = '#000000'; //Black\n break;\n default:\n pointMarkers[i].fill = 'black';\n }\n }\n }", "function getPoints() {\n return [\n new google.maps.LatLng(37.782551, -122.445368),\n new google.maps.LatLng(37.782745, -122.444586),\n new google.maps.LatLng(37.782842, -122.443688),\n new google.maps.LatLng(37.782919, -122.442815),\n new google.maps.LatLng(37.782992, -122.442112),\n new google.maps.LatLng(37.7831, -122.441461),\n new google.maps.LatLng(37.783206, -122.440829),\n new google.maps.LatLng(37.783273, -122.440324),\n new google.maps.LatLng(37.783316, -122.440023),\n new google.maps.LatLng(37.783357, -122.439794),\n new google.maps.LatLng(37.783371, -122.439687),\n new google.maps.LatLng(37.783368, -122.439666),\n new google.maps.LatLng(37.783383, -122.439594),\n new google.maps.LatLng(37.783508, -122.439525),\n new google.maps.LatLng(37.783842, -122.439591),\n new google.maps.LatLng(37.784147, -122.439668),\n new google.maps.LatLng(37.784206, -122.439686),\n new google.maps.LatLng(37.784386, -122.43979),\n new google.maps.LatLng(37.784701, -122.439902),\n new google.maps.LatLng(37.784965, -122.439938),\n new google.maps.LatLng(37.78501, -122.439947),\n new google.maps.LatLng(37.78536, -122.439952),\n new google.maps.LatLng(37.785715, -122.44003),\n new google.maps.LatLng(37.786117, -122.440119),\n new google.maps.LatLng(37.786564, -122.440209),\n new google.maps.LatLng(37.786905, -122.44027),\n new google.maps.LatLng(37.786956, -122.440279),\n new google.maps.LatLng(37.800224, -122.43352),\n new google.maps.LatLng(37.800155, -122.434101),\n new google.maps.LatLng(37.80016, -122.43443),\n new google.maps.LatLng(37.800378, -122.434527),\n new google.maps.LatLng(37.800738, -122.434598),\n new google.maps.LatLng(37.800938, -122.43465),\n new google.maps.LatLng(37.801024, -122.434889),\n new google.maps.LatLng(37.800955, -122.435392),\n new google.maps.LatLng(37.800886, -122.435959),\n new google.maps.LatLng(37.800811, -122.436275),\n new google.maps.LatLng(37.800788, -122.436299),\n new google.maps.LatLng(37.800719, -122.436302),\n new google.maps.LatLng(37.800702, -122.436298),\n new google.maps.LatLng(37.800661, -122.436273),\n new google.maps.LatLng(37.800395, -122.436172),\n new google.maps.LatLng(37.800228, -122.436116),\n new google.maps.LatLng(37.800169, -122.43613),\n new google.maps.LatLng(37.800066, -122.436167),\n new google.maps.LatLng(37.784345, -122.422922),\n new google.maps.LatLng(37.784389, -122.422926),\n new google.maps.LatLng(37.784437, -122.422924),\n new google.maps.LatLng(37.784746, -122.422818),\n\n ];\n}", "getPoints() {\n let valueArray = this.getPointsRaw()\n let returningArray = []\n valueArray.forEach((coordinate) => {\n returningArray.push(new google.maps.LatLng(coordinate[0],coordinate[1]))\n })\n return returningArray\n }", "function find_points(data, points) {\n\tfor (j = 0; j < total_points.length; j++){\n\n\t\tvar trace_array = total_points[j];\n\t\tvar point = data.points[0];\n\n\t for (i = 0; i < trace_array.length; i++) {\n\t if (point.x == trace_array[i].x) {\n\t if (point.y == trace_array[i].y) {\n\t if (point.z == trace_array[i].z) {\n\t return trace_array[i]\n\t }\n\t }\n\t }\n\t }\n\t}\n}", "function precal_loc() {\n buffer_loc.forEach((obj)=>{obj.x = (obj.longitude + 180) * 10; obj.y = (90 - obj.latitude) * 10;});\n}", "function pointsLayout(seriesType, forceStoreInTypedArray) {\n return {\n seriesType: seriesType,\n plan: Object(createRenderPlanner[\"a\" /* default */])(),\n reset: function (seriesModel) {\n var data = seriesModel.getData();\n var coordSys = seriesModel.coordinateSystem;\n var pipelineContext = seriesModel.pipelineContext;\n var useTypedArray = forceStoreInTypedArray || pipelineContext.large;\n\n if (!coordSys) {\n return;\n }\n\n var dims = Object(util[\"H\" /* map */])(coordSys.dimensions, function (dim) {\n return data.mapDimension(dim);\n }).slice(0, 2);\n var dimLen = dims.length;\n var stackResultDim = data.getCalculationInfo('stackResultDimension');\n\n if (isDimensionStacked(data, dims[0]\n /*, dims[1]*/\n )) {\n dims[0] = stackResultDim;\n }\n\n if (isDimensionStacked(data, dims[1]\n /*, dims[0]*/\n )) {\n dims[1] = stackResultDim;\n }\n\n var dimInfo0 = data.getDimensionInfo(dims[0]);\n var dimInfo1 = data.getDimensionInfo(dims[1]);\n var dimIdx0 = dimInfo0 && dimInfo0.index;\n var dimIdx1 = dimInfo1 && dimInfo1.index;\n return dimLen && {\n progress: function (params, data) {\n var segCount = params.end - params.start;\n var points = useTypedArray && createFloat32Array(segCount * dimLen);\n var tmpIn = [];\n var tmpOut = [];\n\n for (var i = params.start, offset = 0; i < params.end; i++) {\n var point = void 0;\n\n if (dimLen === 1) {\n var x = data.getByDimIdx(dimIdx0, i); // NOTE: Make sure the second parameter is null to use default strategy.\n\n point = coordSys.dataToPoint(x, null, tmpOut);\n } else {\n tmpIn[0] = data.getByDimIdx(dimIdx0, i);\n tmpIn[1] = data.getByDimIdx(dimIdx1, i); // Let coordinate system to handle the NaN data.\n\n point = coordSys.dataToPoint(tmpIn, null, tmpOut);\n }\n\n if (useTypedArray) {\n points[offset++] = point[0];\n points[offset++] = point[1];\n } else {\n data.setItemLayout(i, point.slice());\n }\n }\n\n useTypedArray && data.setLayout('points', points);\n }\n };\n }\n };\n}", "get points() {\n\t\treturn this.__points;\n\t}", "calcProjectionCoords(points) {\n const projection = this.projection();\n return (points.map(point => {\n if ('geometry' in point) {\n return (projection(point.geometry.coordinates))\n }\n return (projection(point.coordinates))\n })\n )\n }", "function getPoints() {\n return [\n new google.maps.LatLng(-9.271064, -75.98777),\n ];\n}", "function getPoints() {\n return [\n new google.maps.LatLng(11.2991, -0.1992),\n new google.maps.LatLng(11.2875, -0.2039),\n new google.maps.LatLng(11.2841, -0.2065),\n new google.maps.LatLng(11.2795, -0.21),\n new google.maps.LatLng(11.2779, -0.2135),\n new google.maps.LatLng(11.2864, -0.2237),\n new google.maps.LatLng(11.2991, -0.1992),\n new google.maps.LatLng(11.2875, -0.2039),\n new google.maps.LatLng(11.2841, -0.2065),\n new google.maps.LatLng(11.2795, -0.21),\n new google.maps.LatLng(11.2779, -0.2135),\n new google.maps.LatLng(11.2864, -0.2237),\n new google.maps.LatLng(11.41513749, -0.101997368),\n new google.maps.LatLng(11.747215083, -0.26350013)\n ];\n}", "positionPoints() {\n const padding = this.getBoundsPadding();\n\n const centerX = (this.content.width / (this.edgePointsAmount) / 2); // center on the X axis\n const rightX = this.getBoundsRightX(); // get the right point position\n const centerY = (this.content.height / (this.edgePointsAmount) / 2); // center on the Y axis\n const bottomY = this.content.height; // the bottom point position\n\n this.topPoint.x = centerX;\n this.topPoint.y = -padding.top;\n this.bottomPoint.x = centerX;\n this.bottomPoint.y = bottomY + padding.bottom;\n this.rightPoint.x = rightX + padding.right;\n this.rightPoint.y = centerY;\n this.leftPoint.x = -padding.left;\n this.leftPoint.y = centerY;\n }", "function updatePoints() {\n var result = $.parseJSON(fetchPoints(limit));\n\n if (!error) {\n offset = offset + 1;\n\n var allPoints = result[\"values\"];\n var isSeated = result[\"result\"];\n\n // === Hack so you can see how the interface works ===\n // var newPoint = Math.floor(Math.random() * 500) + 50;\n // dummyPoints.push(newPoint);\n // allPoints = dummyPoints;\n // === End of hack ===\n\n // allPoints.unshift()\n points = pointsHeader;\n for (var i in allPoints) {\n addPoint(allPoints[i]);\n }\n\n return isSeated\n }\n}", "function incrementPoints() {\n currentPointValue++;\n }", "function compute(){\n var newLocations = locations;\n newLocations.forEach(function(currentValue,currentIndex){\n for(num in currentValue.loc){\n if (num == \"latitude\"){\n var c = currentValue.loc.latitude;\n lat.push(c);\n } else if (num == \"longitude\") {\n var d = currentValue.loc.longitude;\n lon.push(d);\n }\n }\n});\n}", "calculatePositions() {\n this.x1 = this.from.getCenterX()\n this.y1 = this.from.getCenterY()\n this.x2 = this.to.getCenterX()\n this.y2 = this.to.getCenterY()\n }", "function listPoints(s) {\n\t//returns an array of the coordinates of every point of a Shape\n\tvar coordList = [];\n\tfor (var c = 0; c < s.vertexNum; c++) {\n\t\tcoordList.push([s.x + s.circumRad * Math.sin(degToRad(s.theta + 360/s.vertexNum*c)),\n\t\t\t\t\t\ts.y + s.circumRad * Math.cos(degToRad(s.theta + 360/s.vertexNum*c))]);\n\t}\n\treturn coordList; //in the form [[x1, y1],[x2, y2],...]\n}", "function calElementPos(){\n\t\tcalSize();\n\t\tcalPie();\n\t\tcalGraph();\n\t}", "getCenterOfPalm (results) {\n results.multiHandLandmarks.forEach((hand, n) => {\n let x = 0\n let y = 0\n \n this.palmPoints.forEach(i => {\n x += hand[i].x\n y += hand[i].y\n })\n\n x /= this.palmPoints.length\n y /= this.palmPoints.length\n \n results.multiHandLandmarks[n][21] = {x, y}\n })\n \n return results\n }", "getMainAxisPoints() {\n\t\tconst size = this.getDataSize();\n\t\tconst points = [];\n\t\tconst fullDimension = this.isVertical() ? this.getHeight() : this.getWidth();\n\t\tfor (let i = 0; i <= size; i++) {\n\t\t\tpoints.push(roundPoint((fullDimension * i) / size));\n\t\t}\n\t\treturn points;\n\t}", "function addPoints() {\n var points = _$1w.toArray(arguments);\n\n var zipped = _$1w.zip(...points);\n\n return _$1w.map(zipped, sum$1);\n}", "function storeposition() {\n if (calc < points) {\n numx.push(x);\n numy.push(y);\n calc += 1;\n } else {\n numx.splice(0, 1);\n numy.splice(0, 1);\n calc -= 1;\n }\n}", "function findHoverPoints(customXVal, customYVal) {\n for (curvenum = 0; curvenum < searchData.length; curvenum++) {\n cd = searchData[curvenum];\n\n // filter out invisible or broken data\n if (!cd || !cd[0] || !cd[0].trace) continue;\n trace = cd[0].trace;\n if (trace.visible !== true || trace._length === 0) continue;\n\n // Explicitly bail out for these two. I don't know how to otherwise prevent\n // the rest of this function from running and failing\n if (['carpet', 'contourcarpet'].indexOf(trace._module.name) !== -1) continue;\n if (trace.type === 'splom') {\n // splom traces do not generate overlay subplots,\n // it is safe to assume here splom traces correspond to the 0th subplot\n subploti = 0;\n subplotId = subplots[subploti];\n } else {\n subplotId = helpers.getSubplot(trace);\n subploti = subplots.indexOf(subplotId);\n }\n\n // within one trace mode can sometimes be overridden\n _mode = hovermode;\n if (helpers.isUnifiedHover(_mode)) {\n _mode = _mode.charAt(0);\n }\n\n // container for new point, also used to pass info into module.hoverPoints\n pointData = {\n // trace properties\n cd: cd,\n trace: trace,\n xa: xaArray[subploti],\n ya: yaArray[subploti],\n // max distances for hover and spikes - for points that want to show but do not\n // want to override other points, set distance/spikeDistance equal to max*Distance\n // and it will not get filtered out but it will be guaranteed to have a greater\n // distance than any point that calculated a real distance.\n maxHoverDistance: hoverdistance,\n maxSpikeDistance: spikedistance,\n // point properties - override all of these\n index: false,\n // point index in trace - only used by plotly.js hoverdata consumers\n distance: Math.min(distance, hoverdistance),\n // pixel distance or pseudo-distance\n\n // distance/pseudo-distance for spikes. This distance should always be calculated\n // as if in \"closest\" mode, and should only be set if this point should\n // generate a spike.\n spikeDistance: Infinity,\n // in some cases the spikes have different positioning from the hover label\n // they don't need x0/x1, just one position\n xSpike: undefined,\n ySpike: undefined,\n // where and how to display the hover label\n color: Color.defaultLine,\n // trace color\n name: trace.name,\n x0: undefined,\n x1: undefined,\n y0: undefined,\n y1: undefined,\n xLabelVal: undefined,\n yLabelVal: undefined,\n zLabelVal: undefined,\n text: undefined\n };\n\n // add ref to subplot object (non-cartesian case)\n if (fullLayout[subplotId]) {\n pointData.subplot = fullLayout[subplotId]._subplot;\n }\n // add ref to splom scene\n if (fullLayout._splomScenes && fullLayout._splomScenes[trace.uid]) {\n pointData.scene = fullLayout._splomScenes[trace.uid];\n }\n closedataPreviousLength = hoverData.length;\n\n // for a highlighting array, figure out what\n // we're searching for with this element\n if (_mode === 'array') {\n var selection = evt[curvenum];\n if ('pointNumber' in selection) {\n pointData.index = selection.pointNumber;\n _mode = 'closest';\n } else {\n _mode = '';\n if ('xval' in selection) {\n xval = selection.xval;\n _mode = 'x';\n }\n if ('yval' in selection) {\n yval = selection.yval;\n _mode = _mode ? 'closest' : 'y';\n }\n }\n } else if (customXVal !== undefined && customYVal !== undefined) {\n xval = customXVal;\n yval = customYVal;\n } else {\n xval = xvalArray[subploti];\n yval = yvalArray[subploti];\n }\n\n // Now if there is range to look in, find the points to hover.\n if (hoverdistance !== 0) {\n if (trace._module && trace._module.hoverPoints) {\n var newPoints = trace._module.hoverPoints(pointData, xval, yval, _mode, {\n finiteRange: true,\n hoverLayer: fullLayout._hoverlayer\n });\n if (newPoints) {\n var newPoint;\n for (var newPointNum = 0; newPointNum < newPoints.length; newPointNum++) {\n newPoint = newPoints[newPointNum];\n if (isNumeric(newPoint.x0) && isNumeric(newPoint.y0)) {\n hoverData.push(cleanPoint(newPoint, hovermode));\n }\n }\n }\n } else {\n Lib.log('Unrecognized trace type in hover:', trace);\n }\n }\n\n // in closest mode, remove any existing (farther) points\n // and don't look any farther than this latest point (or points, some\n // traces like box & violin make multiple hover labels at once)\n if (hovermode === 'closest' && hoverData.length > closedataPreviousLength) {\n hoverData.splice(0, closedataPreviousLength);\n distance = hoverData[0].distance;\n }\n\n // Now if there is range to look in, find the points to draw the spikelines\n // Do it only if there is no hoverData\n if (hasCartesian && spikedistance !== 0) {\n if (hoverData.length === 0) {\n pointData.distance = spikedistance;\n pointData.index = false;\n var closestPoints = trace._module.hoverPoints(pointData, xval, yval, 'closest', {\n hoverLayer: fullLayout._hoverlayer\n });\n if (closestPoints) {\n closestPoints = closestPoints.filter(function (point) {\n // some hover points, like scatter fills, do not allow spikes,\n // so will generate a hover point but without a valid spikeDistance\n return point.spikeDistance <= spikedistance;\n });\n }\n if (closestPoints && closestPoints.length) {\n var tmpPoint;\n var closestVPoints = closestPoints.filter(function (point) {\n return point.xa.showspikes && point.xa.spikesnap !== 'hovered data';\n });\n if (closestVPoints.length) {\n var closestVPt = closestVPoints[0];\n if (isNumeric(closestVPt.x0) && isNumeric(closestVPt.y0)) {\n tmpPoint = fillSpikePoint(closestVPt);\n if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) {\n spikePoints.vLinePoint = tmpPoint;\n }\n }\n }\n var closestHPoints = closestPoints.filter(function (point) {\n return point.ya.showspikes && point.ya.spikesnap !== 'hovered data';\n });\n if (closestHPoints.length) {\n var closestHPt = closestHPoints[0];\n if (isNumeric(closestHPt.x0) && isNumeric(closestHPt.y0)) {\n tmpPoint = fillSpikePoint(closestHPt);\n if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) {\n spikePoints.hLinePoint = tmpPoint;\n }\n }\n }\n }\n }\n }\n }\n }", "function get_points(ax, points) {\n\n var a = [];\n for (i = 0; i < points.length; i++) {\n a.push((points[i])[ax]);\n }\n\n return a;\n}", "function get_point_x(step) {\n\treturn 73 + step * 50;\n}", "drawPoints() {\n var series = this, //state = series.state,\n points = series.points,\n options = series.options,\n chart = series.chart,\n renderer = chart.renderer,\n xPlot,\n yPlot,\n leftPlot,\n rightPlot,\n highPlot,\n lowPlot,\n xWhiskerLow,\n xWhiskerHigh,\n yWhiskerLeft,\n yWhiskerRight,\n whiskerLength = series.options.whiskerLength,\n format = series.options.format;\n\n\n each(points, function(point) {\n\n var graphic = point.graphic,\n verb = graphic ? 'animate' : 'attr';\n\n\n var stemAttr = {},\n whiskersAttr = {},\n color = point.color || series.color;\n\n if (point.plotY !== undefined) {\n\n xPlot = Math.floor(point.xPlot);\n yPlot = Math.floor(point.yPlot);\n leftPlot = Math.floor(point.leftPlot);\n rightPlot = Math.floor(point.rightPlot);\n\n highPlot = Math.floor(point.highPlot);\n lowPlot = Math.floor(point.lowPlot);\n\n xWhiskerLow = Math.floor(yPlot - whiskerLength);\n xWhiskerHigh = Math.floor(yPlot + whiskerLength);\n\n yWhiskerLeft = Math.floor(xPlot - whiskerLength);\n yWhiskerRight = Math.floor(xPlot + whiskerLength);\n\n if (!graphic) {\n point.graphic = graphic = renderer.g('point')\n .add(series.group);\n\n point.stem = renderer.path()\n .addClass('highcharts-boxplot-stem')\n .add(graphic);\n\n if (whiskerLength) {\n point.whiskers = renderer.path()\n .addClass('highcharts-boxplot-whisker')\n .add(graphic);\n }\n\n // Stem attributes\n stemAttr.stroke = point.stemColor || options.stemColor || color;\n stemAttr['stroke-width'] = pick(point.stemWidth, options.stemWidth, options.lineWidth);\n stemAttr.dashstyle = point.stemDashStyle || options.stemDashStyle;\n point.stem.attr(stemAttr);\n\n // Whiskers attributes\n if (whiskerLength) {\n whiskersAttr.stroke = point.whiskerColor || options.whiskerColor || color;\n whiskersAttr['stroke-width'] = pick(point.whiskerWidth, options.whiskerWidth, options.lineWidth);\n point.whiskers.attr(whiskersAttr);\n }\n }\n\n switch (format) {\n case 'x':\n point.stem[verb]({\n d: [\n 'M',\n leftPlot, yPlot,\n 'L',\n rightPlot, yPlot,\n 'z'\n ]});\n\n if (whiskerLength) {\n point.whiskers[verb]({\n d: [\n 'M',\n leftPlot, xWhiskerLow,\n 'L',\n leftPlot, xWhiskerHigh,\n\n 'M',\n rightPlot, xWhiskerLow,\n 'L',\n rightPlot, xWhiskerHigh,\n\n 'z'\n ]\n });\n }\n break;\n\n case 'y':\n point.stem[verb]({\n d: [\n 'M',\n xPlot, lowPlot,\n 'L',\n xPlot, highPlot,\n 'z'\n ]});\n\n if (whiskerLength) {\n point.whiskers[verb]({\n d: [\n 'M',\n yWhiskerLeft, lowPlot,\n 'L',\n yWhiskerRight, lowPlot,\n\n 'M',\n yWhiskerLeft, highPlot,\n 'L',\n yWhiskerRight, highPlot,\n\n 'z'\n ]\n });\n }\n break;\n\n case 'xy':\n default:\n point.stem[verb]({\n d: [\n 'M',\n leftPlot, yPlot,\n 'L',\n rightPlot, yPlot,\n 'M',\n xPlot, lowPlot,\n 'L',\n xPlot, highPlot,\n 'z'\n ]});\n\n if (whiskerLength) {\n point.whiskers[verb]({\n d: [\n 'M',\n leftPlot, xWhiskerLow,\n 'L',\n leftPlot, xWhiskerHigh,\n\n 'M',\n rightPlot, xWhiskerLow,\n 'L',\n rightPlot, xWhiskerHigh,\n\n 'M',\n yWhiskerLeft, lowPlot,\n 'L',\n yWhiskerRight, lowPlot,\n\n 'M',\n yWhiskerLeft, highPlot,\n 'L',\n yWhiskerRight, highPlot,\n\n 'z'\n ]\n });\n }\n break;\n }\n }\n });\n\n }", "function getCenterPoint(points) {\n return [0, 1].map(function (i) {\n return average(points.map(function (pos) {\n return pos[i];\n }));\n });\n }", "getPointsToMeasure(i, points) {\n const len = this.measureCurveAdjacent;\n let min = 0;\n let max = points.length;\n // if (this.wrapEnd) {\n // // Circular - resulting in poor curve values\n // const start = getArrayValuesFromStart(points, i, len);\n // const end = getArrayValuesFromEnd(points, i, len);\n // return start.concat(end);\n // }\n min = i < len ? 0 : i - len;\n max = i > points.length - len ? points.length : i + len;\n return points.slice(min, max);\n }", "function insertMarkers(series){\n _.each(series, function(s){\n var data = s.data;\n if(data && data.length && !data[0].marker){\n var marker = {symbol: 'url(./assets/' + data[0].name + '_48x48.png)'}\n data[0].marker = marker;\n data[data.length - 1].marker = marker;\n }\n });\n }", "function getPoints() {\n\n var points = [];\n for (var i = 0; i < entries.length; i++) {\n points.push(new google.maps.LatLng(entries[i][0], entries[i][1]));\n }\n\n return points;\n}", "function getSingleMarkerEndPoint(data, idx, dims, seriesModel, api) {\n var coordSys = seriesModel.coordinateSystem;\n var itemModel = data.getItemModel(idx);\n\n var point;\n var xPx = numberUtil.parsePercent(itemModel.get(dims[0]), api.getWidth());\n var yPx = numberUtil.parsePercent(itemModel.get(dims[1]), api.getHeight());\n if (!isNaN(xPx) && !isNaN(yPx)) {\n point = [xPx, yPx];\n }\n else {\n // Chart like bar may have there own marker positioning logic\n if (seriesModel.getMarkerPosition) {\n // Use the getMarkerPoisition\n point = seriesModel.getMarkerPosition(\n data.getValues(dims, idx)\n );\n }\n else {\n var x = data.get(dims[0], idx);\n var y = data.get(dims[1], idx);\n point = coordSys.dataToPoint([x, y], true);\n }\n if (coordSys.type === 'cartesian2d') {\n var xAxis = coordSys.getAxis('x');\n var yAxis = coordSys.getAxis('y');\n var x = data.get(dims[0], idx);\n var y = data.get(dims[1], idx);\n if (isInifinity(x)) {\n point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[dims[0] === 'x0' ? 0 : 1]);\n }\n else if (isInifinity(y)) {\n point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[dims[1] === 'y0' ? 0 : 1]);\n }\n }\n\n // Use x, y if has any\n if (!isNaN(xPx)) {\n point[0] = xPx;\n }\n if (!isNaN(yPx)) {\n point[1] = yPx;\n }\n }\n\n return point;\n }", "function calcPoint(currentPoint) {\n var distances = new Array(); // make array for the distances\n for(let point of points){\n\n // call distance function\n var distance = getDistance(point[2], point[3], Number(currentPoint[2]), Number(currentPoint[3]));\n\n // put the distance from the boat to the point in an array\n var location = new Array();\n location[0] = point[0];\n location[1] = Number(distance)*1000; // *1000 to get meters instead of km's \n location[2] = point[2];\n location[3] = point[3];\n distances.push(location); // add current position and distance to boat to distances array\n }\n\n distances.sort(compareSecondColumn); // sort the array by the distances\n\n var closestPoint = distances[0]; // take the lowest distance\n\n distances.shift(); // 2.2 remove the used point from the distances\n points = distances; // and replace the points array with the remaining items of the distances array\n\n return closestPoint; // return the closest point\n}", "calcPoints() {\n var _this = this,\n body = document.body,\n html = document.documentElement;\n\n this.points = [];\n this.winHeight = Math.round(Math.max(window.innerHeight, html.clientHeight));\n this.docHeight = Math.round(Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight));\n\n this.$targets.each(function(){\n var $tar = $(this),\n pt = Math.round($tar.offset().top - _this.options.threshold);\n $tar.targetPoint = pt;\n _this.points.push(pt);\n });\n }", "pointList() {\n let bottom = this.bottom.screen,\n top = this.top.screen;\n\n return [bottom.x - bottom.w, bottom.y,\n bottom.x + bottom.w, bottom.y,\n top.x + top.w, top.y,\n top.x - top.w, top.y];\n }", "function accumulatePointValues(markerIndex, indicator) {\n\tvar value = 0;\n\t\n\tfor(var i = 0; i <= markerIndex; i++) {\n\t\tswitch(indicator) {\n\t\t\tcase 'steps':\n\t\t\tvalue += pathPoints[i].steps || 0;\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'distance':\n\t\t\tvalue += pathPoints[i].distance || 0;\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'screen':\n\t\t\tvalue += pathPoints[i].screen || 0;\n\t\t\tbreak;\n\t\t}\n\t}\n\t\n\treturn value;\n}", "function getSingleMarkerEndPoint(data, idx, dims, seriesModel, api) {\n\t var coordSys = seriesModel.coordinateSystem;\n\t var itemModel = data.getItemModel(idx);\n\n\t var point;\n\t var xPx = numberUtil.parsePercent(itemModel.get(dims[0]), api.getWidth());\n\t var yPx = numberUtil.parsePercent(itemModel.get(dims[1]), api.getHeight());\n\t if (!isNaN(xPx) && !isNaN(yPx)) {\n\t point = [xPx, yPx];\n\t } else {\n\t // Chart like bar may have there own marker positioning logic\n\t if (seriesModel.getMarkerPosition) {\n\t // Use the getMarkerPoisition\n\t point = seriesModel.getMarkerPosition(data.getValues(dims, idx));\n\t } else {\n\t var x = data.get(dims[0], idx);\n\t var y = data.get(dims[1], idx);\n\t point = coordSys.dataToPoint([x, y], true);\n\t }\n\t if (coordSys.type === 'cartesian2d') {\n\t var xAxis = coordSys.getAxis('x');\n\t var yAxis = coordSys.getAxis('y');\n\t var x = data.get(dims[0], idx);\n\t var y = data.get(dims[1], idx);\n\t if (isInifinity(x)) {\n\t point[0] = xAxis.toGlobalCoord(xAxis.getExtent()[dims[0] === 'x0' ? 0 : 1]);\n\t } else if (isInifinity(y)) {\n\t point[1] = yAxis.toGlobalCoord(yAxis.getExtent()[dims[1] === 'y0' ? 0 : 1]);\n\t }\n\t }\n\n\t // Use x, y if has any\n\t if (!isNaN(xPx)) {\n\t point[0] = xPx;\n\t }\n\t if (!isNaN(yPx)) {\n\t point[1] = yPx;\n\t }\n\t }\n\n\t return point;\n\t}", "scaleUpdated() {\n\t\tthis.pointCoords = this.data.map(d=>[this.xaxis.scale(d[0]), this.yscale(d[1])]);\n\t}", "function drawPoints(){\n\tfor (var i=0; i<p.length; i+=1){\n\t\tp[i].pplot(1);\n\t}\n}", "function getFuncionPoints() {\n let x = x_from,\n step = 0.25;\n while (x <= x_to) {\n funcionPoints.push({ x: x, y: evaluate(x, funcion) });\n x += step;\n }\n }", "get point() {}", "function getPointPositions(formattedData) {\n let newFormattedData = formattedData\n let pagesTodrop = []\n Object.keys(formattedData).forEach(pageName => {\n Object.keys(formattedData[pageName]).forEach(pointName => {\n const points = formattedData[pageName][pointName]\n try {\n if (Object.keys(points).length < 3) { //we don't have enough points\n throw 'err'\n }\n\n const point1 = { label: Object.keys(points)[0], value: points[Object.keys(points)[0]] }\n const point2 = { label: Object.keys(points)[1], value: points[Object.keys(points)[1]] }\n const point3 = { label: Object.keys(points)[2], value: points[Object.keys(points)[2]] }\n\n newFormattedData[pageName][pointName] = calcPointPos(point1, point2, point3)\n } catch (err) {\n pagesTodrop.push(pageName)\n newFormattedData[pageName][pointName] = null\n }\n })\n })\n\n pagesTodrop.forEach(pageName => delete newFormattedData[pageName]) //remove problematic pages\n\n return newFormattedData\n}", "function populateDataset(sum, array) {\n xArray = [];\n for (i = 0; i < array.length; i++) {\n xVal = array[i] / sum;\n xArray.push(xVal);\n }\n coordinates = [{\n xCoordinates: xArray,\n yCoordinates: array\n }];\n //console.log(\"coordinates object (y coordinates array): \" + coordinates.yCoordinates);\n console.log(coordinates[0].xCoordinates);\n console.log(coordinates[0].yCoordinates);\n}", "get location() {\n return new Point(this.x, this.y);\n }", "function getArrPointMonster() {\n\t\tvar arrPoint = new Array();\n\t\tfor (let jY = 0; jY <= mainCanvas.height - seft.sizeMonster; jY += (mainCanvas.height - seft.sizeMonster) / 2) {\n\t\t\tfor (let iX = 0; iX <= mainCanvas.width - seft.sizeMonster; iX += (mainCanvas.width - seft.sizeMonster) / 2) {\n\t\t\t\tarrPoint.push({ x: iX, y: jY });\n\t\t\t}\n\t\t}\n\t\treturn arrPoint;\n\t}", "function updatePositionsfinal() {\n var positions = line2.geometry.attributes.position.array;\n\n var x = 6; \n var y = 2.7; \n var z = -2.5;\n var index = 0;\n\n for ( var i = 0, l = MAX_POINTS; i < l; i ++ ) {\n\n positions[ index ++ ] = x;\n positions[ index ++ ] = y;\n positions[ index ++ ] = z;\n\n x += (9/MAX_POINTS);\n y += (2.6/MAX_POINTS);\n }\n}", "location() {\n return __awaiter(this, void 0, void 0, function* () {\n const location = yield (yield this.element()).getLocation();\n const point = new point_1.Point(location.x, location.y);\n return point;\n });\n }", "getCoords(e){\n const {svgWidth,data} = this.props;\n const svgLocation = document.getElementsByClassName(\"graph\")[0].getBoundingClientRect();\n var relativeLoc = e.clientX - svgLocation.left;\n\n var pointx = Math.round(relativeLoc/30);\n this.props.onChartHover(relativeLoc,pointx);\n this.setState({pointx:relativeLoc});\n }", "function updatePoints() {\n var prev = {y: 0, num: 0};\n obj.points = [];\n for (var j = 0, jj = obj.visibleNodes.length; j < jj; j++) {\n var offset = obj.visibleNodes[j].$li.offset(),\n y = Math.round(offset.top);\n obj.visibleNodes[j].top = y;\n obj.visibleNodes[j].left = Math.round(offset.left);\n if (prev.y) {\n var q = (y - prev.y) / 4;\n for (var i = prev.y; i < y; i++) {\n var where = (i - prev.y < q)?\"above\":(i - prev.y < q * 3)?\"append\":\"below\";\n obj.points[i] = {num: prev.num, where: where, top: prev.y};\n }\n }\n if (j == jj - 1) {\n var q = (obj.visibleNodes[j].height) / 4;\n for (var i = y; i < y + obj.visibleNodes[j].height; i++) {\n var where = (i - y < q)?\"above\":(i - y < q * 3)?\"append\":\"below\";\n obj.points[i] = {num: j, where: where, top: y};\n }\n }\n prev.y = y;\n prev.num = j;\n }\n }", "function addmarkerforpeaks() {\n for (var i = 0; i < snowCaps.peaks.length; i++) {\n // Get the position from the location array.\n var position = snowCaps.peaks[i].position;\n var title = snowCaps.peaks[i].name;\n //console.log(title,position);\n // Create a marker per location, and put into markers array.\n var marker = new google.maps.Marker({\n position: position,\n title: title,\n map: map,\n icon: 'https://www.distancebetween.us/assets/img/apple-icon-60x60.png',\n animation: google.maps.Animation.DROP,\n });\n // Push the marker to our array of markers.\n markers.push(marker);\n }\n}", "get points() {\n return [\n new Point(this.x, this.y),\n new Point(this.x + this.w, this.y),\n new Point(this.x + this.w, this.y + this.h),\n new Point(this.x, this.y + this.h),\n ];\n }", "constructStaticResults(pointArray, color){\n if(pointArray.length < 2) throw console.error(\"Pontos insuficientes para construir\") \n \n for(let i = 0; i<(pointArray.length-1); i++){\n line(\n map(i, 0, pointArray.length, this.origin.x, this.limits.x), // x1\n map(pointArray[i], 0, max(pointArray), this.limits.y, this.origin.y), //y1\n map((i+1), 0, pointArray.length, this.origin.x, this.limits.x), //x2\n map(pointArray[i+1], 0, max(pointArray), this.limits.y, this.origin.y) // y2\n );\n }\n }", "function setSeriesInfo(dataSeries) {\n\t\t\tvar firstPointEl = dataSeries.points && dataSeries.points[0].graphic && dataSeries.points[0].graphic.element,\n\t\t\t\tseriesEl = firstPointEl && firstPointEl.parentNode; // Could be tracker series depending on series type\n\t\t\tif (seriesEl) {\n\t\t\t\tif (numSeries > 1) {\n\t\t\t\t\tseriesEl.setAttribute('role', 'region');\n\t\t\t\t\tseriesEl.setAttribute('tabindex', '-1');\n\t\t\t\t\tseriesEl.setAttribute('aria-label', buildSeriesInfoString(dataSeries));\n\t\t\t\t}\n\t\t\t\t// For some series types the order of elements do not match the order of points in series\n\t\t\t\tif (seriesEl.lastChild === firstPointEl) {\n\t\t\t\t\treverseChildNodes(seriesEl);\n\t\t\t\t}\n\t\t\t}\n\t\t\tH.each(dataSeries.points, function (point) {\n\t\t\t\t// Set aria label on point\n\t\t\t\tif (point.graphic) {\n\t\t\t\t\tpoint.graphic.element.setAttribute('role', 'img');\n\t\t\t\t\tpoint.graphic.element.setAttribute('tabindex', '-1');\n\t\t\t\t\tpoint.graphic.element.setAttribute('aria-label', acsOptions.pointInfoFormatter && acsOptions.pointInfoFormatter(point) ||\n\t\t\t\t\t\tbuildPointInfoString(point));\n\t\t\t\t}\n\t\t\t});\n\t\t}", "function convertToMapPoints( courts ){\n\n // Clear the locations holder\n var locations = [];\n \n // Loop through all of the JSON entries provided in the courts\n for(var i= 0; i < courts.length; i++) {\n var court = courts[i];\n const {courtname, address, tipology,_id} = court\n // Create popup windows for each record\n var contentString = getContentWindow(courtname, address, tipology,_id);\n \n // Converts each of the JSON records into Google Maps Location format (Note [Lat, Lng] format).\n locations.push({\n latlon: new google.maps.LatLng(+court.location[1], +court.location[0]),\n message: new google.maps.InfoWindow({\n content: contentString,\n maxWidth: 320\n })\n \n });\n }\n // location is now an array populated with records in Google Maps format\n return locations;\n \n }", "function getPoints() {\n return tableData;\n }", "function getRelativePoint(point){\n return [getRelativePosition(point, 0), getRelativePosition(point, 1)];\n }", "function success(position) {\n\t\t\tvar longitude = position.coords.longitude;\n\t\t\tvar latitude = position.coords.latitude;\n\t\t\t$scope.points.push([latitude, longitude]);\n\t\t}", "find_points(x, y)\n {\n var face1 = [\n this.points[y][x],\n this.points[y].prev_val(x),\n ( this.points.prev_val(y) || {} )[x]\n ];\n\n var variante = this.mesh_style==0\n ? ( this.points.prev_val(y) || new List() ).next_val(x)\n : ( this.points.prev_val(y) || new List() ).prev_val(x);\n\n var face2 = [\n this.points[y][x],\n ( this.points.prev_val(y) || {} )[x],\n variante\n ];\n \n return [\n this.filter_excessive_distance(face1, this.excessive_distance),\n this.filter_excessive_distance(face2, this.excessive_distance)\n ];\n }", "getResolvedPoints (coordinates) {\n let returningArray = []\n coordinates.results.forEach((data) => {\n returningArray.push(new google.maps.LatLng(data.lat,data.lang))\n })\n return returningArray\n }", "function dragUpdatePoints(){\n\tfor(i = dragVar.length-1 ; i > -1 ; i--){\n\t\ttmpx = 0;//\t\ttemporary value to be modified by other points' values and added to the current point's display position\n\t\ttmpy = 0;\n\t\t\n\t\tif(dragDependent0[i] != -1){//\tthis point's position is offset by the value of another point\n\t\t\tif(dragDirection[dragDependent0[i]] == 'x'){//\t\tX is inherited from the specified point\n\t\t\t\ttmpx = dragVar[dragDependent0[i]];\n\t\t\t}else{//\t\tY is inherited from the specified point\n\t\t\t\ttmpy = dragVar[dragDependent0[i]];\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(dragDependent1[i] != -1){//\tthis point's position is offset by the value of another point\n\t\t\tif(dragDirection[dragDependent1[i]] == 'x'){\n\t\t\t\ttmpx += dragVar[dragDependent1[i]];\n\t\t\t}else{\n\t\t\t\ttmpy += dragVar[dragDependent1[i]];\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(dragDependent2[i] != -1){//\tmultiply this point's default position by the value of another point and offset this point by the result\n\t\t\tif(dragDirection[dragDependent2[i]] == 'x'){\n\t\t\t\ttmpx += dragVar[dragDependent2[i]] * dragDefaultx[i] - dragDefaultx[i];//\tsubtract dragDefaultx[i] to negate it's addition below\n\t\t\t}else{\n\t\t\t\ttmpy += dragVar[dragDependent2[i]] * dragDefaulty[i] - dragDefaulty[i];//\tdragDefaultx[i] is used as a multiplier now, not an offset\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(dragDirection[i] == 'x'){//\t\tdrag along the X\n\t\t\tdragx[i] = dragDefaultx[i] + tmpx + dragVar[i];\n\t\t\tdragy[i] = dragDefaulty[i] + tmpy;\n\t\t}else{\n\t\t\tdragx[i] = dragDefaultx[i] + tmpx;\n\t\t\tdragy[i] = dragDefaulty[i] + tmpy + dragVar[i];\n\t\t}\n\t}\n}", "buildPointAnchors() {\r\n this.regionData.points.forEach((point, index) => {\r\n const anchor = this.createAnchor(this.paper, point.x, point.y);\r\n this.anchors.push(anchor);\r\n this.anchorsNode.add(anchor);\r\n this.subscribeAnchorToEvents(anchor, index);\r\n });\r\n }", "function displayPoints(){\n let counter=0;\n let collection=\"\";\n markerLayer.getSource().clear();\n\n for(let i=1;i<=tableLen;i++) {\n const ll=document.getElementById(`LatLong${i}`);\n const point=parseLatLong(ll.value);\n if (point) {\n displayPoint(point);\n collection=`${collection}${counter==0?\"\":\", \"}[${ll.value}]`;\n counter++;\n }\n }\n if (counter > 0)\n {\n let layerExtent = markerLayer.getSource().getExtent();\n if (layerExtent) {\n centreAndZoom(layerExtent)\n }\n\n let collectionPoint = document.getElementById(\"collectionPoint\");\n collectionPoint.innerText=collection;\n }\n}", "function getStartPoints() {\n\t$.ajax(queryInit).done(function(newPoints){\n\t\tvar length = newPoints.length || 0;\n\n\t\tvar distances = [];\n\t\tvar totalValid = 0;\n\t\tvar mintime = 9999999999999;\n\t\tvar maxtime = 0;\n\t\t\n\t\tfor(var i = 0; i < length; i++) {\n\t\t\tnewPoints[i] = createNewMarker(newPoints[i]);\n\t\t\t\n\t\t\tvar ll = newPoints[i].getPosition();\n\t\t\tif( ll.lat() == 0 && ll.lng() == 0 )\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\ttotalValid++;\n\t\t\t\n\t\t\t// min-max update\n\t\t\tif(newPoints[i].timestamp > maxtime)\n\t\t\t\tmaxtime = newPoints[i].timestamp;\n\t\t\t\n\t\t\tif(newPoints[i].timestamp < mintime)\n\t\t\t\tmintime = newPoints[i].timestamp;\n\t\t\t\t\n\t\t\tif(newPoints[i].added > updated)\n\t\t\t\tupdated = newPoints[i].added + 1;\n\t\t\t\n\t\t\tbounds.extend(newPoints[i].getPosition());\n\t\t\t//oms.addMarker(newPoints[i]);\n\t\t\t//clusterer.addMarker(newPoints[i]);\n\t\t\t\n\t\t\t// add support for marker outside the viewport\n\t\t\t/*var hiddenOtions = {\n\t\t\t\t\tmap: map,\n\t\t\t\t\tposition: {\n\t\t\t\t\t\tlatitude: newPoints[i].getPosition().lat(),\n\t\t\t\t\t\tlongitude: newPoints[i].getPosition().lng(),\n\t\t\t\t\t},\n\t\t\t\t\tmarker: newPoints[i],\n\t\t\t\t\ticon: 'assets/imgs/markers/default_inactive.png',\n\t\t\t\t\ticon_size: [15,27]\n\t\t\t};\n\t\t\tnewPoints[i].hiddenMarker = new my.ggmaps.DirectionMarker(hiddenOtions);*/\n\t\t\t\n\t\t\t// calculate point distance\n\t\t\tvar myId = newPoints[i].nodeId;\n\t\t\tif(myId in distances) {\n\t\t\t\tvar previousPoint = distances[myId];\n\t\t\t\tnewPoints[i].distance = google.maps.geometry.spherical.computeDistanceBetween(\n\t\t\t\t\tnewPoints[i].getPosition(), previousPoint.getPosition());\n\t\t\t}\n\t\t\tdistances[myId] = newPoints[i];\n\n\t\t\taddNewPoint(newPoints[i]);\n\t\t\tupdateMarkerIcon(newPoints[i]);\n\t\t}\n\t\t\n\t\tlost.debug.log('getStartPoints(): ' + totalValid + ' valid points to add');\n\t\t\n\t\tif( false && totalValid < 1) {\n\t\t\t$('#loadingStatus').html('No points yet, checking for new points...')\n\t\t\tsetTimeout('getStartPoints()', 10 * 1000); // 10 seconds\n\t\t\treturn;\n\t\t} else {\n\t\t\t// update scale on the slider\n\t\t\t$('#slider-range').slider( 'option', 'min', mintime - (10*60*1000) );\n\t\t\t$('#slider-range').slider( 'option', 'max', maxtime + (10*60*1000) );\n\t\t\t\n\t\t\t// generate adequate range on the slider (1 minutes step)\n\t\t\t$('#slider-range').slider( 'option', 'step', 1 * 60 * 1000 );\n\t\t\t\n\t\t\t// set point updates, change informative text\n\t\t\t$('#slider-range').on( 'slide', function( event, ui ) {\n\t\t\t\tif( typeof ui !== 'undefined' ){\n\t\t\t\t\t// typical update routines\n\t\t\t\t\tupdateMapPoints(ui);\n\t\t\t\t\tchangeScaleText(ui);\n\t\t\t\t\tif(markerPath !== false)\n\t\t\t\t\t\tshowPath(markerPath);\n\t\t\t\t\tupdateSliderTooltips(ui);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$('#slider-range').on( 'slidestop', function( event, ui ) {\n\t\t\t\t$('#slider-container .timeline-tooltip').hide();\n\t\t\t\n\t\t\t\t// magnetic edges\n\t\t\t\tvar magTrigger = 0.02; // 2% of interval\n\t\t\t\tvar values = ui.values;\n\t\t\t\tvar min = $('#slider-range').slider('option', 'min');\n\t\t\t\tvar max = $('#slider-range').slider('option', 'max');\n\t\t\t\tvar interval = max - min;\n\t\t\t\tvar refresh = false;\n\t\t\t\t\n\t\t\t\tif(values[0] <= (min + interval * magTrigger)) {\n\t\t\t\t\t$('#slider-range').slider('values', 0, min);\n\t\t\t\t\trefresh = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(values[1] >= (max - interval * magTrigger)) {\n\t\t\t\t\t$('#slider-range').slider('values', 1, max);\n\t\t\t\t\trefresh = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(refresh) {\n\t\t\t\t\tchangeScaleText(ui);\n\t\t\t\t\tupdateMapPoints(ui);\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\t// time range\n\t\t\t$('#slider-range').slider('option', 'values', [mintime, maxtime]);\n\t\t\tvar ui = $('#slider-range').slider('option');\n\t\t\tupdateMapPoints(ui);\n\t\t\tchangeScaleText(ui);\n\n\t\t\tmap.fitBounds(bounds);\n\t\t\t\n\t\t\trecalculateStats();\n\t\t\t\n\t\t\t// show only representative victims\n\t\t\tfor(var name in victimsPoints)\n\t\t\t\tvictimsPoints[name][0].setMap(map);\n\t\t\t\t\n\t\t\t// schedule future updates\n\t\t\twindow.setInterval(\n\t\t\t\tfunction(){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgetNewPoints()\n\t\t\t\t\t} catch(e) {\n\t\t\t\t\t\t// Reserved only for the most horrible and weird bugs\n\t\t\t\t\t\tlost.debug.log('getNewPoints(): Error, reloading. : ' + e)\n\t\t\t\t\t\twindow.location.reload();\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t15 * 1000 // every 15 seconds\n\t\t\t);\n\t\t\t\n\t\t\t// close loading feedback\n\t\t\t$('#tplLoading').dialog('close');\n\t\t}\n\t});\n}", "function displayPoints(){\n console.log(pointMap);\n console.log(payerPointLog);\n}", "_setMapPointStyles () {\n const mapPoints = this._mapPoints\n const { documentHeight } = DomVerticalMiniMap.getDocumentProperties()\n\n for (let i = 0, length = mapPoints.length; i < length; ++i) {\n const mapPoint = mapPoints[i]\n const marker = mapPoint['marker']\n\n const { bottom, top } = DomVerticalMiniMap.getElementCoordinates(mapPoint['element'])\n\n marker.style.bottom = `${100 / documentHeight * (documentHeight - bottom)}%`\n marker.style.top = `${100 / documentHeight * top}%`\n }\n }", "function getRelativePoint(xy) {\r\n\t\tsets = $['mapsettings'];\r\n\t\tvar percentxy = new Point( ((xy.x*100/sets.resolutions[sets.resolutions.length-1].width)/100) ,((xy.y*100/sets.resolutions[sets.resolutions.length-1].height)/100));\r\n\t\tvar offset = new Point(percentxy.x*sets.resolutions[sets.zoom-1].width,percentxy.y*sets.resolutions[sets.zoom-1].height);\r\n\t\toffset = new Point(Math.round(offset.x), Math.round(offset.y));\r\n\t\treturn offset;\r\n\t}", "at(pos) {\n // make sure a destination is defined\n if (!this.destination) return this; // generate morphed point string\n\n for (var i = 0, il = this.length, array = []; i < il; i++) {\n array.push([this[i][0] + (this.destination[i][0] - this[i][0]) * pos, this[i][1] + (this.destination[i][1] - this[i][1]) * pos]);\n }\n\n return new PointArray(array);\n }", "function requestData() {\n //var firtst = null;\n $.ajax({\n url: '../json2.php',\n success: function(point) { \n\n prRada = point[0];\n drRada = point[1];\n console.log(point[0]);\n console.log(point[1]);\n\n for (var i = 0; i < prRada.length; i++) {\n chart.series[0].addPoint(prRada[i],true);\n chart.series[1].addPoint(drRada[i],true); \n }; \n },\n cache: false\n });\n}", "function processDatapoints(plot, series, datapoints) {\n\t\t\t\tvar nrPoints = datapoints.points.length / datapoints.pointsize;\n\t\t\t\tvar EPSILON = 0.5; //pretty large epsilon but save\n\n\t\t\t\tif (series.curvedLines.apply == true && series.originSeries === undefined && nrPoints > (1 + EPSILON)) {\n\t\t\t\t\tif (series.lines.fill) {\n\n\t\t\t\t\t\tvar pointsTop = calculateCurvePoints(datapoints, series.curvedLines, 1)\n\t\t\t\t\t\t,pointsBottom = calculateCurvePoints(datapoints, series.curvedLines, 2); //flot makes sure for us that we've got a second y point if fill is true !\n\n\t\t\t\t\t\t//Merge top and bottom curve\n\t\t\t\t\t\tdatapoints.pointsize = 3;\n\t\t\t\t\t\tdatapoints.points = [];\n\t\t\t\t\t\tvar j = 0;\n\t\t\t\t\t\tvar k = 0;\n\t\t\t\t\t\tvar i = 0;\n\t\t\t\t\t\tvar ps = 2;\n\t\t\t\t\t\twhile (i < pointsTop.length || j < pointsBottom.length) {\n\t\t\t\t\t\t\tif (pointsTop[i] == pointsBottom[j]) {\n\t\t\t\t\t\t\t\tdatapoints.points[k] = pointsTop[i];\n\t\t\t\t\t\t\t\tdatapoints.points[k + 1] = pointsTop[i + 1];\n\t\t\t\t\t\t\t\tdatapoints.points[k + 2] = pointsBottom[j + 1];\n\t\t\t\t\t\t\t\tj += ps;\n\t\t\t\t\t\t\t\ti += ps;\n\n\t\t\t\t\t\t\t} else if (pointsTop[i] < pointsBottom[j]) {\n\t\t\t\t\t\t\t\tdatapoints.points[k] = pointsTop[i];\n\t\t\t\t\t\t\t\tdatapoints.points[k + 1] = pointsTop[i + 1];\n\t\t\t\t\t\t\t\tdatapoints.points[k + 2] = k > 0 ? datapoints.points[k-1] : null;\n\t\t\t\t\t\t\t\ti += ps;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdatapoints.points[k] = pointsBottom[j];\n\t\t\t\t\t\t\t\tdatapoints.points[k + 1] = k > 1 ? datapoints.points[k-2] : null;\n\t\t\t\t\t\t\t\tdatapoints.points[k + 2] = pointsBottom[j + 1];\n\t\t\t\t\t\t\t\tj += ps;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tk += 3;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (series.lines.lineWidth > 0) {\n\t\t\t\t\t\tdatapoints.points = calculateCurvePoints(datapoints, series.curvedLines, 1);\n\t\t\t\t\t\tdatapoints.pointsize = 2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "function processDatapoints(plot, series, datapoints) {\n\t\t\t\tvar nrPoints = datapoints.points.length / datapoints.pointsize;\n\t\t\t\tvar EPSILON = 0.5; //pretty large epsilon but save\n\n\t\t\t\tif (series.curvedLines.apply == true && series.originSeries === undefined && nrPoints > (1 + EPSILON)) {\n\t\t\t\t\tif (series.lines.fill) {\n\n\t\t\t\t\t\tvar pointsTop = calculateCurvePoints(datapoints, series.curvedLines, 1)\n\t\t\t\t\t\t,pointsBottom = calculateCurvePoints(datapoints, series.curvedLines, 2); //flot makes sure for us that we've got a second y point if fill is true !\n\n\t\t\t\t\t\t//Merge top and bottom curve\n\t\t\t\t\t\tdatapoints.pointsize = 3;\n\t\t\t\t\t\tdatapoints.points = [];\n\t\t\t\t\t\tvar j = 0;\n\t\t\t\t\t\tvar k = 0;\n\t\t\t\t\t\tvar i = 0;\n\t\t\t\t\t\tvar ps = 2;\n\t\t\t\t\t\twhile (i < pointsTop.length || j < pointsBottom.length) {\n\t\t\t\t\t\t\tif (pointsTop[i] == pointsBottom[j]) {\n\t\t\t\t\t\t\t\tdatapoints.points[k] = pointsTop[i];\n\t\t\t\t\t\t\t\tdatapoints.points[k + 1] = pointsTop[i + 1];\n\t\t\t\t\t\t\t\tdatapoints.points[k + 2] = pointsBottom[j + 1];\n\t\t\t\t\t\t\t\tj += ps;\n\t\t\t\t\t\t\t\ti += ps;\n\n\t\t\t\t\t\t\t} else if (pointsTop[i] < pointsBottom[j]) {\n\t\t\t\t\t\t\t\tdatapoints.points[k] = pointsTop[i];\n\t\t\t\t\t\t\t\tdatapoints.points[k + 1] = pointsTop[i + 1];\n\t\t\t\t\t\t\t\tdatapoints.points[k + 2] = k > 0 ? datapoints.points[k-1] : null;\n\t\t\t\t\t\t\t\ti += ps;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdatapoints.points[k] = pointsBottom[j];\n\t\t\t\t\t\t\t\tdatapoints.points[k + 1] = k > 1 ? datapoints.points[k-2] : null;\n\t\t\t\t\t\t\t\tdatapoints.points[k + 2] = pointsBottom[j + 1];\n\t\t\t\t\t\t\t\tj += ps;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tk += 3;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (series.lines.lineWidth > 0) {\n\t\t\t\t\t\tdatapoints.points = calculateCurvePoints(datapoints, series.curvedLines, 1);\n\t\t\t\t\t\tdatapoints.pointsize = 2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "function point(){\n console.log(position);\n console.log(\"lat:\"+ position.coordinate.lat + \"/lon:\" + position.coordinate.lon + \"/ip:\" + position.ip ) ;\n}", "function setSeriesInfo(dataSeries) {\n var firstPointEl = dataSeries.points && dataSeries.points[0].graphic && dataSeries.points[0].graphic.element,\n seriesEl = firstPointEl && firstPointEl.parentNode;\n if (seriesEl) {\n seriesEl.setAttribute('role', 'region');\n seriesEl.setAttribute('tabindex', '-1');\n seriesEl.setAttribute('aria-label', buildSeriesInfoString(dataSeries));\n // For some series types the order of elements do not match the order of points in series\n if (seriesEl.lastChild === firstPointEl) {\n reverseChildNodes(seriesEl);\n }\n }\n H.each(dataSeries.points, function (point) {\n // Set aria label on point\n if (point.graphic) {\n point.graphic.element.setAttribute('role', 'img');\n point.graphic.element.setAttribute('tabindex', '-1');\n point.graphic.element.setAttribute('aria-label', acsOptions.pointInfoFormatter && acsOptions.pointInfoFormatter(point) ||\n buildPointInfoString(point));\n }\n });\n }", "getPoints() {\n return [\n new Point(this.x, this.y),\n new Point(this.x + this.w, this.y),\n new Point(this.x + this.w, this.y + this.h),\n new Point(this.x, this.y + this.h),\n ];\n }", "function extractPoints (leg){\n return leg.steps.reduce(function (collection, step) {\n return collection.concat(step.path.map(function (path) {\n return [path.lng(), path.lat()];\n }));\n }, []);\n }", "function calcDistance(points) {\n\tlet sum = 0;\n\n\tfor (let i = 0; i < points.length - 1; i++) {\n\t\tlet d = dist(points[i].x, points[i].y, points[i + 1].x, points[i + 1].y);\n\t\tsum += d;\n\t}\n\n\treturn sum;\n}", "function getListOfPoints() {\n var coordinates = []\n\n GeoCities.forEach(function(city) {\n coordinates.push(city.location.reverse())\n })\n return coordinates;\n}", "function processDatapoints(plot, series, datapoints) {\r\n\t\t\t\tvar nrPoints = datapoints.points.length / datapoints.pointsize;\r\n\t\t\t\tvar EPSILON = 0.5; //pretty large epsilon but save\r\n\r\n\t\t\t\tif (series.curvedLines.apply == true && series.originSeries === undefined && nrPoints > (1 + EPSILON)) {\r\n\t\t\t\t\tif (series.lines.fill) {\r\n\r\n\t\t\t\t\t\tvar pointsTop = calculateCurvePoints(datapoints, series.curvedLines, 1)\r\n\t\t\t\t\t\t,pointsBottom = calculateCurvePoints(datapoints, series.curvedLines, 2); //flot makes sure for us that we've got a second y point if fill is true !\r\n\r\n\t\t\t\t\t\t//Merge top and bottom curve\r\n\t\t\t\t\t\tdatapoints.pointsize = 3;\r\n\t\t\t\t\t\tdatapoints.points = [];\r\n\t\t\t\t\t\tvar j = 0;\r\n\t\t\t\t\t\tvar k = 0;\r\n\t\t\t\t\t\tvar i = 0;\r\n\t\t\t\t\t\tvar ps = 2;\r\n\t\t\t\t\t\twhile (i < pointsTop.length || j < pointsBottom.length) {\r\n\t\t\t\t\t\t\tif (pointsTop[i] == pointsBottom[j]) {\r\n\t\t\t\t\t\t\t\tdatapoints.points[k] = pointsTop[i];\r\n\t\t\t\t\t\t\t\tdatapoints.points[k + 1] = pointsTop[i + 1];\r\n\t\t\t\t\t\t\t\tdatapoints.points[k + 2] = pointsBottom[j + 1];\r\n\t\t\t\t\t\t\t\tj += ps;\r\n\t\t\t\t\t\t\t\ti += ps;\r\n\r\n\t\t\t\t\t\t\t} else if (pointsTop[i] < pointsBottom[j]) {\r\n\t\t\t\t\t\t\t\tdatapoints.points[k] = pointsTop[i];\r\n\t\t\t\t\t\t\t\tdatapoints.points[k + 1] = pointsTop[i + 1];\r\n\t\t\t\t\t\t\t\tdatapoints.points[k + 2] = k > 0 ? datapoints.points[k-1] : null;\r\n\t\t\t\t\t\t\t\ti += ps;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tdatapoints.points[k] = pointsBottom[j];\r\n\t\t\t\t\t\t\t\tdatapoints.points[k + 1] = k > 1 ? datapoints.points[k-2] : null;\r\n\t\t\t\t\t\t\t\tdatapoints.points[k + 2] = pointsBottom[j + 1];\r\n\t\t\t\t\t\t\t\tj += ps;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tk += 3;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (series.lines.lineWidth > 0) {\r\n\t\t\t\t\t\tdatapoints.points = calculateCurvePoints(datapoints, series.curvedLines, 1);\r\n\t\t\t\t\t\tdatapoints.pointsize = 2;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "function getPointsInLayer(lyr) {\n var coords = [];\n forEachPoint(lyr.shapes, function(p) {\n coords.push(p);\n });\n return coords;\n }", "function calculatePoints(d) {\n // see label transform function for explanations of these three lines.\n var pos = outerArc.centroid(d);\n pos[0] = radius * 0.95 * (midAngle(d) < Math.PI ? 1 : -1);\n return [arc.centroid(d), outerArc.centroid(d), pos];\n }", "function stern () {\n\tvar xcoords = [];\n\tvar ycoords = [];\n\txcoords.push(0, 1);\n\tycoords.push(0, 1);\n\tfor (var i = 1; i < maxIter*3; i++) {\n\t\txcoords.push(i+1);\n\t\tycoords[i*2] = ycoords[i];\n\t\tycoords[i*2+1] = ycoords[i] + ycoords[i+1];\n\t}\n\tvar data = {\n\t\tx: xcoords,\n\t\ty: ycoords,\n\t\tmode: 'markers',\n\t\ttype: 'scatter'\n\t}\n\treturn data;\n}", "update() {\n // Move points -> `O(n)`\n this.points = this.points.map(point => {\n return {\n x: this.clipValue(point.x + point.speed.x, this.width),\n y: this.clipValue(point.y + point.speed.y, this.height),\n speed: point.speed,\n };\n });\n\n const localPoints = [ this.mousePoint, ...this.points ];\n\n // Find all the nearest points within a given radius -> `O(n log n)`\n this.renderPoints = localPoints.map((point, index) => {\n const otherPoints = this.renderPoints.slice();\n otherPoints.splice(index,1);\n\n return {\n x: point.x,\n y: point.y,\n nearestSet: otherPoints\n .map((sibling) => [sibling, this.calculateDistance(point,sibling)])\n .filter((sibling) => sibling[1] < this.maxDistance),\n };\n });\n }" ]
[ "0.6539702", "0.61264336", "0.61147594", "0.5986655", "0.5976617", "0.59176654", "0.58934206", "0.58934206", "0.5756893", "0.575432", "0.57149243", "0.57079583", "0.5660125", "0.5651129", "0.56494355", "0.56259024", "0.5609707", "0.55992824", "0.55733764", "0.5568796", "0.5558641", "0.5531275", "0.5527389", "0.5516078", "0.5515806", "0.55084467", "0.5503804", "0.5494144", "0.5467499", "0.5456755", "0.5446694", "0.543607", "0.542093", "0.5400292", "0.53873557", "0.5382231", "0.5353693", "0.5348291", "0.53468627", "0.53406525", "0.53350294", "0.53265136", "0.5307737", "0.53067154", "0.5297655", "0.5294513", "0.5277704", "0.52713704", "0.52567095", "0.5243019", "0.5240915", "0.5222942", "0.5205503", "0.520472", "0.51967084", "0.5193769", "0.51900613", "0.5186122", "0.5174665", "0.51737016", "0.5167698", "0.5167693", "0.5164774", "0.5157252", "0.51522064", "0.5140073", "0.5138474", "0.5125981", "0.51257735", "0.51233", "0.5121691", "0.51208013", "0.51188606", "0.51188", "0.5118608", "0.511494", "0.51136386", "0.5105858", "0.5102402", "0.5100853", "0.50988334", "0.5095975", "0.50918084", "0.50902075", "0.5075923", "0.50659776", "0.5056449", "0.50544995", "0.50392234", "0.50392234", "0.5035605", "0.5033895", "0.5027355", "0.5024482", "0.5023615", "0.50202453", "0.50124663", "0.5006253", "0.500384", "0.50034326", "0.49959916" ]
0.0
-1
globals __VUE_SSR_CONTEXT__ IMPORTANT: Do NOT use ES2015 features in this file (except for modules). This module is a runtime utility for cleaner component module output and will be included in the final webpack user bundle.
function normalizeComponent ( scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */ shadowMode /* vue-cli only */ ) { // Vue.extend constructor export interop var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports // render functions if (render) { options.render = render options.staticRenderFns = staticRenderFns options._compiled = true } // functional template if (functionalTemplate) { options.functional = true } // scopedId if (scopeId) { options._scopeId = 'data-v-' + scopeId } var hook if (moduleIdentifier) { // server build hook = function (context) { // 2.3 injection context = context || // cached call (this.$vnode && this.$vnode.ssrContext) || // stateful (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional // 2.2 with runInNewContext: true if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { context = __VUE_SSR_CONTEXT__ } // inject component styles if (injectStyles) { injectStyles.call(this, context) } // register component module identifier for async chunk inferrence if (context && context._registeredComponents) { context._registeredComponents.add(moduleIdentifier) } } // used by ssr in case component is cached and beforeCreate // never gets called options._ssrRegister = hook } else if (injectStyles) { hook = shadowMode ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } : injectStyles } if (hook) { if (options.functional) { // for template-only hot-reload because in that case the render fn doesn't // go through the normalizer options._injectStyles = hook // register for functioal component in vue file var originalRender = options.render options.render = function renderWithStyleInjection (h, context) { hook.call(context) return originalRender(h, context) } } else { // inject component registration as beforeCreate hook var existing = options.beforeCreate options.beforeCreate = existing ? [].concat(existing, hook) : [hook] } } return { exports: scriptExports, options: options } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Es(t,e,n,i,r,o,a,s){var u=(\"function\"===typeof n?n.options:n)||{};return u.__file=\"source.vue\",u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),u._scopeId=i,u}", "extend(config, ctx) {\n // if (process.server && process.browser) {\n if (ctx.isDev && ctx.isClient) {\n config.devtool = \"source-map\";\n // if (isDev && process.isClient) {\n config.plugins.push(\n new StylelintPlugin({\n files: [\"**/*.vue\", \"**/*.scss\"],\n })\n ),\n config.module.rules.push({\n enforce: \"pre\",\n test: /\\.(js|vue)$/,\n loader: \"eslint-loader\",\n exclude: /(node_modules)/,\n options: {\n formatter: require(\"eslint-friendly-formatter\"),\n },\n });\n if (ctx.isDev) {\n config.mode = \"development\";\n }\n }\n for (const rule of config.module.rules) {\n if (rule.use) {\n for (const use of rule.use) {\n if (use.loader === \"sass-loader\") {\n use.options = use.options || {};\n use.options.includePaths = [\n \"node_modules/foundation-sites/scss\",\n \"node_modules/motion-ui/src\",\n ];\n }\n }\n }\n }\n // vue-svg-inline-loader\n const vueRule = config.module.rules.find((rule) =>\n rule.test.test(\".vue\")\n );\n vueRule.use = [\n {\n loader: vueRule.loader,\n options: vueRule.options,\n },\n {\n loader: \"vue-svg-inline-loader\",\n },\n ];\n delete vueRule.loader;\n delete vueRule.options;\n }", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}", "function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode, /* vue-cli only */\n components, // fixed by xxxxxx auto components\n renderjs // fixed by xxxxxx renderjs\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // fixed by xxxxxx auto components\n if (components) {\n if (!options.components) {\n options.components = {}\n }\n var hasOwn = Object.prototype.hasOwnProperty\n for (var name in components) {\n if (hasOwn.call(components, name) && !hasOwn.call(options.components, name)) {\n options.components[name] = components[name]\n }\n }\n }\n // fixed by xxxxxx renderjs\n if (renderjs) {\n (renderjs.beforeCreate || (renderjs.beforeCreate = [])).unshift(function() {\n this[renderjs.__module] = this\n });\n (options.mixins || (options.mixins = [])).push(renderjs)\n }\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functioal component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}" ]
[ "0.58472276", "0.5728634", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396", "0.57257396" ]
0.0
-1
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
function retrieveTargetInfo(payload, validPayloadTypes, seriesModel) { if (payload && zrUtil.indexOf(validPayloadTypes, payload.type) >= 0) { var root = seriesModel.getData().tree.root; var targetNode = payload.targetNode; if (typeof targetNode === 'string') { targetNode = root.getNodeById(targetNode); } if (targetNode && root.contains(targetNode)) { return { node: targetNode }; } var targetNodeId = payload.targetNodeId; if (targetNodeId != null && (targetNode = root.getNodeById(targetNodeId))) { return { node: targetNode }; } } } // Not includes the given node at the last item.
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "get Android() {}", "function SBRecordsetPHP_analyzePlatformSpecific()\r\n{\r\n\r\n\r\n}", "onChildAppStart () {\n\n }", "private internal function m248() {}", "private public function m246() {}", "onMessageStart() { }", "createStream () {\n\n }", "_playbackCompatibility() {\n // Detect audio playback capabilities.\n\n // Detect HTML5 Audio playback.\n // http://caniuse.com/#feat=audio\n this.canUseAudio = Boolean(new Audio());\n console.log('Native HTML5 Audio playback capability: ' +\n this.canUseAudio);\n\n // Detect Cordova Media Playback\n // It allows playing audio using the native bridge inside WebView Apps.\n // https://github.com/apache/cordova-plugin-media/blob/master/doc/index.md\n this.canUseCordovaMedia = Boolean(window.Media);\n console.log('Cordova Media playback capability: ' +\n this.canUseCordovaMedia);\n\n if (!(this.canUseAudio || this.canUseCordovaMedia)) {\n throw new Error(\n 'Some form of audio playback capability is required');\n }\n\n var _audio = new Audio();\n if (_audio.canPlayType === 'function') {\n throw new Error(\n 'Unable to detect audio playback capabilities');\n }\n\n var canPlayOggVorbis = _audio.canPlayType(\n 'audio/ogg; codecs=\"vorbis\"') !== '';\n var canPlayOggOpus = _audio.canPlayType(\n 'audio/ogg; codecs=\"opus\"') !== '';\n var canPlayWave = _audio.canPlayType('audio/wav') !== '';\n var canPlayMP3 = _audio.canPlayType('audio/mpeg; codecs=\"mp3\"') !== '';\n var canPlayAAC = _audio.canPlayType(\n 'audio/mp4; codecs=\"mp4a.40.2\"') !== '';\n var canPlay3GPP = _audio.canPlayType(\n 'audio/3gpp; codecs=\"samr\"') !== '';\n\n console.log('Native Vorbis audio in Ogg container playback capability: ' +\n canPlayOggVorbis);\n console.log('Native Opus audio in Ogg container playback capability: ' +\n canPlayOggOpus);\n console.log('Native PCM audio in Waveform Audio File Format (WAVE) ' +\n 'playback capability: ' + canPlayWave);\n console.log('Native MPEG Audio Layer 3 (MP3) playback capability: ' +\n canPlayMP3);\n console.log('Native Low-Complexity AAC audio in MP4 container playback ' +\n 'capability: ' + canPlayAAC);\n console.log('Native AMR audio in 3GPP container playback capability: ' +\n canPlay3GPP);\n\n if (!(canPlayWave || canPlayMP3)) {\n throw new Error(\n 'Native Wave or MP3 playback is required');\n }\n }", "constructor() {\n\t}", "constructor() {\n\t}", "constructor() {\n\n\t}", "onComponentMount() {\n\n }", "constructor() {\n throw new Error('Not implemented');\n }", "supportsPlatform() {\n return true;\n }", "function _____SHARED_functions_____(){}", "constructor() {\n }", "constructor() {\n\t\t// ...\n\t}", "static get tag(){return\"hal-9000\"}", "static getDeviceModel() {\n return \"zhimi.fan.za4\";\n }", "requestContainerInfo() {}", "constructor () { super() }", "function BaseDeviceProfile() {\n \n this.audioNeedsTranscodingCodecs = []; // fill these with audio codecs that the implemented device can handle natively\n this.videoNeedsTranscodingCodecs = []; // fill these with video codecs that the implemented device can handle natively\n this.validFormats = []; // fill these with video formats that the implemented device can handle natively\n\n this.transcodeOptions = {\n rescaleVideo : false, // BaseDeviceProfile.prototype.rescale\n subtitle : false, // BaseDeviceProfile.prototype.hardCodeSubtitle\n audioShiftCorrect : false // BaseDeviceProfile.prototype.correctAudioOffset\n };\n\n /**\n * @todo: whutz this?\n * @param {[type]} probeData [description]\n * @return {[type]} [description]\n */\n this.canPlayContainer = function (probeData) {\n throw new Error(\"canPlayContainer : Not Implemented\");\n };\n\n /**\n * Implement this method to return device specific ffmpeg flags for a probed media\n * @param {object} probeData ffmpeg probe data\n * @param {[type]} forceTranscode force transcode even if native format?\n * @return {Promise} [description]\n */\n this.getFFmpegFlags = function (probeData, forceTranscode) {\n throw new Error(\"getFFmpegFlags : Not Implemented!\");\n };\n\n}", "static get STATUS() {\n return 0;\n }", "static create () {}", "get() {}", "didMount() {\n }", "_onMessage() {\n throw new Error(\"not implemented\");\n }", "onReady() {}", "native() {\n throw new Error('NOT_IMPLEMENTED_EXCEPTION: you must override this method in order to use it')\n }", "function sdk(){\n}", "constructor () {\r\n\t\t\r\n\t}", "transient private protected internal function m182() {}", "function version(){ return \"0.13.0\" }", "static getDeviceModel() {\n return \"zhimi.fan.za5\";\n }", "started () {}", "function getVersion(){return _VERSION}", "transient private internal function m185() {}", "constructor() {\r\n }", "started() { }", "InitVsaEngine() {\n\n }", "started() {\r\n\r\n\t}", "function SigV4Utils() { }", "static get NOT_READY () {return 0}", "started () {\n\n }", "started () {\n\n }", "started () {\n\n }", "initialize() {\n\n }", "onMessageReceive() {}", "initialize()\n {\n }", "_get () {\n throw new Error('_get not implemented')\n }", "get () {\n }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "constructor() { }", "function getImplementation( cb ){\n\n }", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "started() {}", "heartbeat () {\n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "constructor() {\n \n }", "initleancloud() {\n AV.init({\n appId: keys.appId,\n appKey: keys.appKey\n })\n this.globalData.AV = AV\n }", "static final private internal function m106() {}", "getStreamPosition() {\n return Native.getStreamPosition();\n }", "onMessage() {}", "onMessage() {}", "constructor() {\n super();\n this._logger = new pip_services3_components_node_3.CompositeLogger();\n this._connectionResolver = new connect_1.AwsConnectionResolver();\n this._connectTimeout = 30000;\n this._client = null; //AmazonCloudWatchClient\n this._opened = false;\n }", "get WSAPlayerX64() {}" ]
[ "0.5349978", "0.48933455", "0.48501366", "0.48083982", "0.4772584", "0.474481", "0.47349635", "0.47027457", "0.46929818", "0.46929818", "0.4673667", "0.4644517", "0.46389893", "0.46253318", "0.4618249", "0.4582536", "0.45813942", "0.45742747", "0.45687214", "0.45623618", "0.45563498", "0.45493752", "0.45489514", "0.45457798", "0.4538844", "0.45218396", "0.45187637", "0.4498104", "0.44946006", "0.44832855", "0.44729492", "0.44691566", "0.44642788", "0.44588575", "0.44554883", "0.4453296", "0.44531393", "0.4443642", "0.44374335", "0.44267404", "0.44238108", "0.44228086", "0.4407407", "0.44043022", "0.44043022", "0.44043022", "0.44035548", "0.4393825", "0.43761918", "0.43697277", "0.4364149", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43530616", "0.43517888", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43511248", "0.43502304", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43493763", "0.43440503", "0.43416435", "0.43375877", "0.43357816", "0.43357816", "0.43336093", "0.43330038" ]
0.0
-1
Extend shape with parameters
function extendShape(opts) { return Path.extend(opts); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function extendShape(opts) {\n\t return Path.extend(opts);\n\t }", "function extendShape(opts) {\n return zrender_lib_graphic_Path__WEBPACK_IMPORTED_MODULE_3__[/* default */ \"b\"].extend(opts);\n}", "function baseParams_2_extendedParams()\n {\n rg.b.value = 1- rg.a.value;\n setRgPoint( 'H', [ rg.A.pos[0] + rg.a.value, rg.O.pos[1] ] );\n }", "function ShapeParameter(obj) {\n scope.AbstractParameter.call(this, obj);\n if (obj) {\n if (obj.rejectDetectionSensitivity) {\n this.rejectDetectionSensitivity = obj.rejectDetectionSensitivity;\n }\n if (obj.doBeautification) {\n this.doBeautification = obj.doBeautification;\n }\n if (obj.userResources) {\n this.userResources = obj.userResources;\n }\n }\n }", "constructor(shape, material, size) {\n Object.assign(this, { shape, material, size });\n }", "function Shape2(){}", "function Shape4(){}", "function Shape() {}", "function Proxy(shape) {\n\n //The parent shape.\n this.shape = shape;\n\n //The axis-aligned bounding box.\n this.aabb = shape.aabb;\n}", "function Shape(){}", "function Shape(){}", "function Shape(h,w,type){\n this.h = h;\n this.w = w;\n this.type = type;\n}", "function SuperShape() {\n /** @type {Boolean} Indicates validity of the shape */\n this.valid = false;\n /** @type {Array} The array of points defining the shape */\n this.pts = [];\n /** @type {String} Indicates the type of the shape, e.g. \"rect\" */\n this.type = 'none';\n}", "function Shape3(){}", "function translateShape(shape, x, y) {\n 'use strict';\n\n shape.x += x;\n shape.y += y;\n}", "makeShape(){\n rect(this.x, this.y, this.w, this.w);\n }", "function shapeFactory(){\r\n}", "function Shape5(){}", "setMainPolygon (w,h) { this.polygons[0] = new Polygon( ...Utils.atoc([0,0, w,0, w,h, 0,h]) ); }", "function Shape () {\n}", "function PolarEquation(shape) {\n\n}", "function Shape() {\n\n}", "insertShape(shape) {\n shape.blocks.forEach(block => this.insertBlock(block));\n }", "function initArbitraryShape(phi1, phi2, sep_x, sep_y, x, y, innerArrow = true) {\r\n var Curve = []\r\n var xTemp = [], yTemp = [];\r\n //when combine the four parts, let innerArrow = false so the inner arrows can be hidden\r\n var innerColor = magenta;\r\n if(!innerArrow){\r\n innerColor = orange;\r\n }\r\n //add the side with straight lines\r\n var side ={\r\n type: \"scatter\",\r\n mode: \"lines\",\r\n x: [sep_x, sep_x, x+sep_x],\r\n y: [y+sep_y, sep_y, sep_y],\r\n line: {color: innerColor, width: 1},\r\n fill: 'toself',\r\n fillcolor: orange,\r\n opacity: 0.9\r\n };\r\n Curve.push(side)\r\n\r\n //add the curly side\r\n var Phi = numeric.linspace(phi1,phi2,20)\r\n for (var i=0; i<20; ++i){\r\n var radius = 1 - 0.7*(Math.cos(Phi[i]-Math.PI*0.25)*Math.sin(Phi[i]-Math.PI*0.25));\r\n xTemp.push(2*radius*Math.cos(Phi[i])+sep_x);\r\n yTemp.push(2*radius*Math.sin(Phi[i])+sep_y);\r\n var curve ={\r\n type: \"scatter\",\r\n mode: \"lines\",\r\n x: xTemp,\r\n y: yTemp,\r\n line: {color: black, width: 4},\r\n fill: 'toself',\r\n fillcolor: orange,\r\n opacity: 0.9\r\n }\r\n\r\n }\r\n Curve.push(curve)\r\n\r\n //add arrows on each side use if blocks to identify which 1/4 of the arbitrary shape is being drawn\r\n var half_x = (2*sep_x + x)*0.5\r\n var half_y = (2*sep_y + y)*0.5\r\n if (sep_x*sep_y>0){\r\n var grid1 = new Line2d([[sep_x,sep_y],[half_x, sep_y]])\r\n if (sep_x>0){\r\n var y1 = y + 1 + sep_y;\r\n }else if (sep_x<0){\r\n var y1 = y - 1 + sep_y;\r\n }\r\n var grid2 = new Line2d([[sep_x, y1],[sep_x, half_y]])\r\n var arr = new Line2d([[sep_x+x, sep_y],[xTemp[10],yTemp[10]]])\r\n }else if(sep_x*sep_y<0){\r\n var grid1 = new Line2d([[x+sep_x,sep_y],[half_x, sep_y]])\r\n if (sep_y>0){\r\n var y1 = y - 1 + sep_y;\r\n }else if (sep_y<0){\r\n var y1 = y + 1 + sep_y;\r\n }\r\n var grid2 = new Line2d([[sep_x, -y1],[sep_x, half_y]])\r\n var arr = new Line2d([[sep_x, sep_y+y],[xTemp[10],yTemp[10]]])\r\n }\r\n Curve.push(arr.arrowHead(black,3))\r\n if (innerArrow){\r\n Curve.push(grid1.arrowHead(magenta,2));\r\n Curve.push(grid2.arrowHead(magenta,2));\r\n } else {\r\n Curve.push(grid1.arrowHead(magenta,0));\r\n Curve.push(grid2.arrowHead(magenta,0));\r\n }\r\n\r\n\r\n return Curve\r\n}", "function Shape(type, x, y, w, h, fill_color, strk_color=null, strk_weight=null, blend=null) {\n\tthis.type = type;\n\tthis.x = Math.floor(x);\n\tthis.y = Math.floor(y);\n\tthis.w = Math.floor(w);\n\tthis.h = Math.floor(h);\n\tthis.fill_color = fill_color;\n\tthis.strk_color = strk_color;\n\tthis.strk_weight = Math.floor(strk_weight);\n\tthis.blend = blend;\n\tthis.vx = 0;\n\tthis.vy = 0\n}", "function SVGShape() {}", "function Pencil(position, color, size) {\n Shape.call(this, position, color, size);\n this.pathArray = [];\n this.color = color;\n this.width = size ;\n}", "updateShape(incRadius, incIntensity) {\n // decrease the intensity\n this.intensity -= incIntensity;\n\n // increase the radius\n this.radius += incRadius;\n }", "drawShape(...shapes) {\n shapes = shapes.map((s) => {\n if (s instanceof Shape) return s;\n return new Shape(this.POLYGON, undefined, s);\n });\n this.currentShape = shapes[0].copy();\n for (let i = 1; i < shapes.length; i++) {\n this.currentShape.merge(shapes[i]);\n }\n this.end();\n }", "function Shape() {\n // \n}", "function ShapeConfig() {\n\n // position of the shape in parent's coordinate system.\n this.relativePosition = new _Vec.Vec3();\n // rotation matrix of the shape in parent's coordinate system.\n this.relativeRotation = new _Mat.Mat33();\n // coefficient of friction of the shape.\n this.friction = 0.2; // 0.4\n // coefficient of restitution of the shape.\n this.restitution = 0.2;\n // density of the shape.\n this.density = 1;\n // bits of the collision groups to which the shape belongs.\n this.belongsTo = 1;\n // bits of the collision groups with which the shape collides.\n this.collidesWith = 0xffffffff;\n}", "grow(){\n this.size.x += 5;\n this.size.y += 5;\n }", "function init(x, y, width, height, data) {\n return COG.extend({\n x: x,\n y: y,\n width: width,\n height: height\n }, data);\n }", "set shape(val) {\n if (hasStringPropertyChangedAndNotNil(val, this._shape)) {\n const oldVal = this._shape;\n this._shape = val;\n this.requestUpdate('shape', oldVal);\n }\n }", "function ShapeFactory() {\n var _this = _super.call(this) || this;\n _this.DEFAULT_RADIUS = 40;\n _this.DEFAULT_WIDTH = 60;\n _this.DEFAULT_HEIGHT = 60;\n return _this;\n }", "set(size, angle) {\n this.gl.uniform1f(this.uniformLocations.uPointSize, size);\n this.gl.uniform1f(this.uniformLocations.uAngle, angle);\n \n return this;\n }", "function shape(){\n constructor(){\n this.height='13CM';\n this.length='12CM';\n this.area='256CM2';\n } \n shape.getteArea.function()={\n return area;\n }\n \n}", "editShape () {\n this.shapeStyle = EDIT_SHAPE_STYLE\n this.edit = true\n this.freeDraw._updateModel('edit', this.id)\n this.freeDraw._refreshShapesInCanvas()\n this._backupData()\n return this\n }", "setShape() {\n this.vectors = p5VectorsToVec2(this.pixelVectorPositions);\n this.fixDef.shape = new b2PolygonShape();\n this.fixDef.shape.SetAsArray(this.vectors, this.pixelVectorPositions.length);\n }", "function set_shape_attribute(name, event, regexp){\n var target = cross_target(event);\n var valid = validate(target, regexp);\n if (valid){\n g['shape'][name] = target.value;\n g['shape_generator'].default_values[name] = target.value;\n // The two inputs 'open_stroke' and 'closed_stroke' must hold\n // the same value, because they both refer to the same\n // variable, the stroke width\n if (name === 'stroke-width')\n getInput('open_stroke').value = getInput('closed_stroke').value = target.value;\n }\n}", "function Ellipse2D(settings){var _this=this;// Avoid checking every time if the object exists\nif(settings==null){settings={};}_this=_super.call(this,settings)||this;if(settings.size!=null){_this.size=settings.size;}else if(settings.width||settings.height){var size=new BABYLON.Size(settings.width,settings.height);_this.size=size;}var sub=settings.subdivisions==null?64:settings.subdivisions;_this.subdivisions=sub;return _this;}", "function Shape(config) {\n\n this.type = _constants.SHAPE_NULL;\n\n // global identification of the shape should be unique to the shape.\n this.id = ShapeIdCount();\n\n // previous shape in parent rigid body. Used for fast interations.\n this.prev = null;\n\n // next shape in parent rigid body. Used for fast interations.\n this.next = null;\n\n // proxy of the shape used for broad-phase collision detection.\n this.proxy = null;\n\n // parent rigid body of the shape.\n this.parent = null;\n\n // linked list of the contacts with the shape.\n this.contactLink = null;\n\n // number of the contacts with the shape.\n this.numContacts = 0;\n\n // center of gravity of the shape in world coordinate system.\n this.position = new _Vec.Vec3();\n\n // rotation matrix of the shape in world coordinate system.\n this.rotation = new _Mat.Mat33();\n\n // position of the shape in parent's coordinate system.\n this.relativePosition = new _Vec.Vec3().copy(config.relativePosition);\n\n // rotation matrix of the shape in parent's coordinate system.\n this.relativeRotation = new _Mat.Mat33().copy(config.relativeRotation);\n\n // axis-aligned bounding box of the shape.\n this.aabb = new _AABB.AABB();\n\n // density of the shape.\n this.density = config.density;\n\n // coefficient of friction of the shape.\n this.friction = config.friction;\n\n // coefficient of restitution of the shape.\n this.restitution = config.restitution;\n\n // bits of the collision groups to which the shape belongs.\n this.belongsTo = config.belongsTo;\n\n // bits of the collision groups with which the shape collides.\n this.collidesWith = config.collidesWith;\n}", "constructor(shape) {\n this.id = shape.id;\n this.type = shape.type;\n this.path = [];\n for (let i = 0; i < shape.path.length; i++) {\n this.path[i] = []\n for (let j = 0; j < 2; j++) {\n this.path[i][j] = shape.path[i][j];\n }\n }\n }", "function fnewShape(i,h,d){\r\n\tthis.shapes.push(new objeto(i,h,d));\r\n}", "function generate_rectangle(shape, center) {\n // console.log(shape)\n x_adjust = shape.dimensions['w']/2;\n y_adjust = shape.dimensions['h']/2;\n\n // Adjust nodes to be defined from center of shape\n for (i of shape.nodes) {\n i['x'] += center.x\n i['y'] += center.y\n }\n\n var vertices = [\n {x: (center.x - x_adjust), y: (center.y - y_adjust)},\n {x: (center.x + x_adjust), y: (center.y - y_adjust)},\n {x: (center.x + x_adjust), y: (center.y + y_adjust)},\n {x: (center.x - x_adjust), y: (center.y + y_adjust)}\n ]\n\n new_shape = {\n vertices: vertices,\n nodes: shape.nodes,\n pinned: shape.pinned,\n center: center\n };\n\n return new_shape;\n}", "function LineShape(x, y, length, isHorizontal)\r\n{\r\n this.X = x; this.Y = y; this.Length = length; this.IsHorizontal = isHorizontal; \r\n}", "function updateShape(point) {\n model.context.clearRect(0, 0, model.cnv.width, model.cnv.height);\n model.cnv.width = model.cnv.width;\n\n var width = model.width;\n var height = model.height;\n\n model.context.setTransform(1, 0, 0, 1, 0, 0);\n\n let dx = point.xAxis + 0.5 * width;\n let dy = point.yAxis + 0.5 * height;\n model.context.translate(dx, dy);\n\tmodel.context.rotate(0.7931);\n // model.context.fillStyle = model.bgColor;\n // model.context.fillRect(-0.5 * width, -0.5 * height, width, height);\n model.context.drawImage(this.csImage, -0.5 * width, -0.5 * height, width, height);\n}", "updateConnectorShapePath(connectorShape, x1, x2, y1, y2) {\n connectorShape.x1 = x1;\n connectorShape.x2 = x2;\n connectorShape.y1 = y1;\n connectorShape.y2 = y2;\n }", "setShape(t){\n this.shape = t;\n console.log(this.shape);\n }", "setExtent() {\n\n var tl = this.props.map.containerPointToLatLng(this.tl);\n var br = this.props.map.containerPointToLatLng(this.br);\n\n tl = this.projection([tl.lng, tl.lat]);\n br = this.projection([br.lng, br.lat]);\n\n this.extent.attr({\n x: tl[0],\n y: tl[1],\n height: br[1]-tl[1],\n width: br[0]-tl[0],\n });\n\n }", "function Shape(x, y, w, h, fill) {\n // This is a very simple and unsafe constructor. All we're doing is checking if the values exist.\n // \"x || 0\" just means \"if there is a value for x, use that. Otherwise use 0.\"\n // But we aren't checking anything else! We could put \"Lalala\" for the value of x\n this.x = x || 0;\n this.y = y || 0;\n this.w = w || 1;\n this.h = h || 1;\n this.fill = fill || '#AAAAAA';\n this.canEdit = true;\n }", "setAttributes(geometry, translations, values, originalValues) {\n geometry.addAttribute('translation', translations)\n geometry.addAttribute('size', values)\n geometry.addAttribute('originalsize', originalValues)\n }", "function NoteShape()\n\t{\n\t\tmxCylinder.call(this);\n\t}", "function BoxShape() {\n mxCylinder.call(this);\n}", "function xy_2_xy8shape( item, xName, x, yName, y )\n {\n item.x = x;\n item.y = y;\n item.dom.setAttributeNS( null, xName, x );\n item.dom.setAttributeNS( null, yName, y );\n }", "function InConstructionShape() {\n\tvar shape = this.shape;\n\tshape.addPoint(new Point2D(85, 0));\n\tshape.addPoint(new Point2D(101, 27));\n\tshape.addPoint(new Point2D(101, 37));\n\tshape.addPoint(new Point2D(139, 62));\n\tshape.addPoint(new Point2D(70, 107));\n\tshape.addPoint(new Point2D(0, 62));\n\tshape.addPoint(new Point2D(38, 37));\n\tshape.addPoint(new Point2D(38, 35));\n\tshape.addPoint(new Point2D(68, 15));\n\tshape.addPoint(new Point2D(68, 8));\n\n\tthis.image.src = \"canvas/images/Costruzione.png\";\n}", "function ModelShape(id,shape,shapeUV,posFunction,vtxFunction){this.shapeID=id;this._shape=shape;this._shapeUV=shapeUV;this._positionFunction=posFunction;this._vertexFunction=vtxFunction;}", "_initShape () {\n // Set default style for shaape\n if (!this.handlePointStyle) {\n this.handlePointStyle = HANDLE_POINT_STYLE\n }\n if (!this.shapeStyle) {\n this.shapeStyle = EDIT_SHAPE_STYLE\n }\n }", "function ExtendPolylineTo(wrapper, id, x, y) {\n var circle = document.getElementById(\"circ\" + id);\n if (circle != null)\n circle.parentNode.removeChild(circle);\n\n var polyline = document.getElementById(\"pl\" + id);\n if (polyline != null) {\n var pt = svgTarget.createSVGPoint();\n pt.x = x;\n pt.y = y;\n polyline.points.appendItem(pt);\n }\n }", "function Xb(a){this.radius=a}", "function addStroke(shape,strokeWidthValue){\n var stroke = shape.content.addProperty(\"ADBE Vector Graphic - Stroke\");\n var strokeWidth = stroke.property(\"ADBE Vector Stroke Width\");\n strokeWidth.setValue(strokeWidthValue);}", "clone(x) {\n const y = ENGINE.runKernel(_kernel_names__WEBPACK_IMPORTED_MODULE_3__[\"Identity\"], { x });\n const inputs = { x };\n const grad = (dy) => ({\n x: () => {\n const dtype = 'float32';\n const gradInputs = { x: dy };\n const attrs = { dtype };\n return ENGINE.runKernel(_kernel_names__WEBPACK_IMPORTED_MODULE_3__[\"Cast\"], gradInputs, \n // tslint:disable-next-line: no-unnecessary-type-assertion\n attrs);\n }\n });\n const saved = [];\n this.addTapeNode(this.state.activeScope.name, inputs, [y], grad, saved, {});\n return y;\n }", "function ScaleShape (pan_width_px, pan_height_px, pan_dy_px, base_width_px, base_width_top_px, base_height_px, savedObject){\n\t\tthis.initialize (pan_width_px, pan_height_px, pan_dy_px, base_width_px, base_width_top_px, base_height_px, savedObject);\n\t}", "function Shape() {\n this.x = 0;\n this.y = 0;\n}", "function Shape(color) { // Parent function\n this.color = color; // Initialize\n}", "function shapeSettings(){\n rectMode(CENTER);\n noStroke();\n waveWidth = width;\n increment = (TWO_PI / period) * xSpacing;\n periodYValues = new Array( floor(waveWidth / xSpacing) );\n}", "function extend(name, schema) {\n // makes sure new rules are properly formatted.\n guardExtend(name, schema);\n // Full schema object.\n if (typeof schema === 'object') {\n RuleContainer.extend(name, schema);\n return;\n }\n RuleContainer.extend(name, {\n validate: schema\n });\n }", "setShape(shape) {\n if (shape === 'X') { return 'O'; }\n return 'X';\n }", "constructor(x,y,w,h)\n {\n super();\n this.x=x;\n this.y=y;\n this.w=w;\n this.h=h;\n }", "function extend() {\n var args = Array.prototype.slice.call(arguments, 0);\n return _extend.apply(null, [{}].concat(args));\n }", "setSize() {\n this.size.D1 = this.shape.D1*this.unit.X;\n this.size.D2 = this.shape.D2*this.unit.Y;\n }", "function setUpEditPanel(shape) {\n //var propertiesPanel = canvas.edit; //access the edit div\n var propertiesPanel = document.getElementById(\"edit\");\n propertiesPanel.innerHTML = \"\";\n if (shape == null) {\n //do nothing\n }\n else {\n switch (shape.oType) {\n case 'Group':\n //do nothing. We do not want to offer this to groups\n break;\n case 'Container':\n Builder.constructPropertiesPanel(propertiesPanel, shape);\n break;\n case 'CanvasProps':\n Builder.constructCanvasPropertiesPanel(propertiesPanel, shape);\n break;\n default: //both Figure and Connector\n Builder.constructPropertiesPanel(propertiesPanel, shape);\n }\n }\n}", "initFromPolyline (polyline) {\n Object.assign(this, polyline)\n this.__type = 'polygon'\n }", "grow(factor) {\n this.radius = this.radius * factor\n }", "function extend(name, schema) {\n // makes sure new rules are properly formatted.\n guardExtend(name, schema);\n // Full schema object.\n if (typeof schema === 'object') {\n RuleContainer.extend(name, schema);\n return;\n }\n RuleContainer.extend(name, {\n validate: schema\n });\n}", "function extend(name, schema) {\n // makes sure new rules are properly formatted.\n guardExtend(name, schema);\n // Full schema object.\n if (typeof schema === 'object') {\n RuleContainer.extend(name, schema);\n return;\n }\n RuleContainer.extend(name, {\n validate: schema\n });\n}", "function squeezeInputInfo(inInfo, squeezedShape) {\n // Deep copy.\n var newInputInfo = JSON.parse(JSON.stringify(inInfo));\n newInputInfo.shapeInfo.logicalShape = squeezedShape;\n return newInputInfo;\n}", "constructor() {\n this.x = random(width);\n this.y = random(-2000, -10);\n this.dx = random(-10, 10);\n this.dy = random(5, 6);\n this.size = random(20, 40);\n this.color = color(random(200, 255));\n this.touchingGround = false;\n this.shape = \"*\";\n //Very similar to raindrop\n }", "drawVariables(x, y , w, h) {\n this.x = x;\n this.y = y;\n this.w = w;\n this.h = h;\n }", "function setBoundsDottedNE(width, height) {\n\t\tthis.width = eval(width);\n\t\tthis.height = eval(height);\n\t}", "extend(config) {\n }", "function extendBounds(position) {\n latlngBounds.extend(position);\n }", "function basicShape(x,y) \n {\n\t\n pulley_front_shape1=new Shape()\n .moveTo( x, y )\n .cubicCurveTo( -shift + x, y, -shift + x, height+y, x, height+y )\n .close();\n\n box_front_shape=new Shape()\n .moveTo( x-t, y-e -t )\n .lineTo( x+t, y+e - t)\n .lineTo( x+t, y+ height+e + t)\n .lineTo( x-t, y+ height-e + t)\n .close();\n\n }", "function set_brush_paddle_size(size) {\n self.paddleSize = size;\n return this\n }", "function increaseSize() {\n\tif (selectedShape) {\n\t\tselectedShape.resize(5);\n\t\tdrawShapes();\n\t}\n}", "function squeezeInputInfo(inInfo, squeezedShape) {\n // Deep copy.\n const newInputInfo = JSON.parse(JSON.stringify(inInfo));\n newInputInfo.shapeInfo.logicalShape = squeezedShape;\n return newInputInfo;\n}", "Blend() {}", "function init_model_parameters()\n {\n //:primary params\n var a = toreg( 'a' )( 'value', sconf.a )( 'value' );\n toreg( 'alpha' )( 'value', sconf.alpha );\n toreg( 'beta' )( 'value', sconf.beta );\n toreg( 'gamma' )( 'value', sconf.gamma );\n toreg( 'O' )( 'pos', [0,0] );\n toreg( 'H' )( 'pos', [0,0] );\n\n //dependent parameters\n toreg( 'nB' )( 'value', [ 1, 0 ] );\n toreg( 'nA' )( 'value', [ -1, 0 ] );\n\n //variable parameter\n toreg( 'g' )( 'value', sconf.initial_g );\n\n //decorations:\n toreg( 'gN' )( 'value', sconf.initial_gN );\n\n setRgPoint( 'A', [ -rg.a.value, 0 ] )\n setRgPoint( 'B', [ 1-rg.a.value, 0 ] )\n\n toreg( 'b' );\n baseParams_2_extendedParams();\n //dev tool:\n //ellipsePar_create8paint( 1.50 )\n }", "static regular_polygon(x, y, r, n, rot=0) {\n\t\tlet pos = createVector(x, y);\n\t\tlet vert = [];\n\t\tfor (let i = 0; i < n; i++) {\n\t\t\tlet ang = i * TWO_PI / n + rot;\n\t\t\tlet vec = p5.Vector.fromAngle(ang).mult(r);\n\t\t\tvert.push(p5.Vector.add(vec, pos));\n\t\t}\n\t\treturn new Shape(vert);\n\t}", "function Shape(shapeObj) {\n this.x = shapeObj.x || 0; // Rect setup\n this.y = shapeObj.y || 0;\n this.w = shapeObj.w || 1;\n this.h = shapeObj.h || 1;\n this.color = shapeObj.color || '#000';\n }", "function ShapeProto(color, shape, element) {\n\tthis.color = color;\n\tthis.shape = shape;\n}", "shapeFill(node) {\n const theShape = {\n tag: 'path',\n children: [],\n props: {\n 'data-type': node.type,\n 'data-key': node.key,\n d: node.toPathString(),\n transform: transform(node),\n fill: node.fill,\n },\n };\n\n return theShape;\n }" ]
[ "0.7005202", "0.6436609", "0.60699636", "0.56709445", "0.5648829", "0.55835265", "0.5462741", "0.5448022", "0.54328185", "0.5429609", "0.5429609", "0.52849346", "0.5266649", "0.5246164", "0.5209159", "0.5109845", "0.5107622", "0.5099576", "0.5089148", "0.5088283", "0.50840217", "0.5072727", "0.50254333", "0.4979807", "0.49642617", "0.49047452", "0.48817718", "0.48806122", "0.48782954", "0.48461467", "0.48439416", "0.48294574", "0.48291668", "0.48074546", "0.48009828", "0.4797563", "0.47970393", "0.47892186", "0.47787434", "0.4768716", "0.47446024", "0.47021207", "0.4683175", "0.46819296", "0.46800554", "0.46748254", "0.4666872", "0.46652797", "0.46593952", "0.4651859", "0.464672", "0.46403837", "0.46396494", "0.46282652", "0.46217263", "0.46194002", "0.46192467", "0.46154687", "0.4614972", "0.46148384", "0.46017393", "0.46004376", "0.4599042", "0.45962378", "0.45890275", "0.4576666", "0.45764667", "0.45756945", "0.4574093", "0.4571961", "0.4570804", "0.45707542", "0.45694607", "0.45617357", "0.45611328", "0.45611328", "0.45547536", "0.4553084", "0.45523417", "0.45499888", "0.4549072", "0.45461708", "0.45287803", "0.45121282", "0.45105717", "0.45069063", "0.45056987", "0.45051098", "0.45049474", "0.45027557", "0.4502149", "0.45001966" ]
0.6893373
7
Give some default value to the input `textStyle` object, based on the current settings in this `textStyle` object. The Scenario: when text position is `inside` and `textFill` is not specified, we show text border by default for better view. But it should be considered that text position might be changed when hovering or being emphasis, where the `insideRollback` is used to restore the style. Usage (& NOTICE): When a style object (eithor plain object or instance of `zrender/src/graphic/Style`) is about to be modified on its text related properties, `rollbackDefaultTextStyle` should be called before the modification and `applyDefaultTextStyle` should be called after that. (For the case that all of the text related properties is reset, like `setTextStyleCommon` does, `rollbackDefaultTextStyle` is not needed to be called).
function applyDefaultTextStyle(textStyle) { var textPosition = textStyle.textPosition; var opt = textStyle.insideRollbackOpt; var insideRollback; if (opt && textStyle.textFill == null) { var autoColor = opt.autoColor; var isRectText = opt.isRectText; var useInsideStyle = opt.useInsideStyle; var useInsideStyleCache = useInsideStyle !== false && (useInsideStyle === true || isRectText && textPosition // textPosition can be [10, 30] && typeof textPosition === 'string' && textPosition.indexOf('inside') >= 0); var useAutoColorCache = !useInsideStyleCache && autoColor != null; // All of the props declared in `CACHED_LABEL_STYLE_PROPERTIES` are to be cached. if (useInsideStyleCache || useAutoColorCache) { insideRollback = { textFill: textStyle.textFill, textStroke: textStyle.textStroke, textStrokeWidth: textStyle.textStrokeWidth }; } if (useInsideStyleCache) { textStyle.textFill = '#fff'; // Consider text with #fff overflow its container. if (textStyle.textStroke == null) { textStyle.textStroke = autoColor; textStyle.textStrokeWidth == null && (textStyle.textStrokeWidth = 2); } } if (useAutoColorCache) { textStyle.textFill = autoColor; } } // Always set `insideRollback`, so that the previous one can be cleared. textStyle.insideRollback = insideRollback; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function applyDefaultTextStyle(textStyle) {\n var opt = textStyle.insideRollbackOpt; // Only `insideRollbackOpt` created (in `setTextStyleCommon`),\n // applyDefaultTextStyle works.\n\n if (!opt || textStyle.textFill != null) {\n return;\n }\n\n var useInsideStyle = opt.useInsideStyle;\n var textPosition = textStyle.insideRawTextPosition;\n var insideRollback;\n var autoColor = opt.autoColor;\n\n if (useInsideStyle !== false && (useInsideStyle === true || opt.isRectText && textPosition // textPosition can be [10, 30]\n && typeof textPosition === 'string' && textPosition.indexOf('inside') >= 0)) {\n insideRollback = {\n textFill: null,\n textStroke: textStyle.textStroke,\n textStrokeWidth: textStyle.textStrokeWidth\n };\n textStyle.textFill = '#fff'; // Consider text with #fff overflow its container.\n\n if (textStyle.textStroke == null) {\n textStyle.textStroke = autoColor;\n textStyle.textStrokeWidth == null && (textStyle.textStrokeWidth = 2);\n }\n } else if (autoColor != null) {\n insideRollback = {\n textFill: null\n };\n textStyle.textFill = autoColor;\n } // Always set `insideRollback`, for clearing previous.\n\n\n if (insideRollback) {\n textStyle.insideRollback = insideRollback;\n }\n}", "function applyDefaultTextStyle(textStyle) {\n var opt = textStyle.insideRollbackOpt; // Only `insideRollbackOpt` created (in `setTextStyleCommon`),\n // applyDefaultTextStyle works.\n\n if (!opt || textStyle.textFill != null) {\n return;\n }\n\n var useInsideStyle = opt.useInsideStyle;\n var textPosition = textStyle.insideRawTextPosition;\n var insideRollback;\n var autoColor = opt.autoColor;\n\n if (useInsideStyle !== false && (useInsideStyle === true || opt.isRectText && textPosition // textPosition can be [10, 30]\n && typeof textPosition === 'string' && textPosition.indexOf('inside') >= 0)) {\n insideRollback = {\n textFill: null,\n textStroke: textStyle.textStroke,\n textStrokeWidth: textStyle.textStrokeWidth\n };\n textStyle.textFill = '#fff'; // Consider text with #fff overflow its container.\n\n if (textStyle.textStroke == null) {\n textStyle.textStroke = autoColor;\n textStyle.textStrokeWidth == null && (textStyle.textStrokeWidth = 2);\n }\n } else if (autoColor != null) {\n insideRollback = {\n textFill: null\n };\n textStyle.textFill = autoColor;\n } // Always set `insideRollback`, for clearing previous.\n\n\n if (insideRollback) {\n textStyle.insideRollback = insideRollback;\n }\n}", "function createTextStyle(textStyleModel, specifiedTextStyle, // Fixed style in the code. Can't be set by model.\nopt, isNotNormal, isAttached // If text is attached on an element. If so, auto color will handling in zrender.\n) {\n var textStyle = {};\n setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached);\n specifiedTextStyle && Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_1__[/* extend */ \"m\"])(textStyle, specifiedTextStyle); // textStyle.host && textStyle.host.dirty && textStyle.host.dirty(false);\n\n return textStyle;\n}", "function createTextStyle(textStyleModel, specifiedTextStyle, // Fixed style in the code. Can't be set by model.\n\t opt, isNotNormal, isAttached // If text is attached on an element. If so, auto color will handling in zrender.\n\t ) {\n\t var textStyle = {};\n\t setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached);\n\t specifiedTextStyle && extend(textStyle, specifiedTextStyle); // textStyle.host && textStyle.host.dirty && textStyle.host.dirty(false);\n\t\n\t return textStyle;\n\t }", "function setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached) {\n\t // Consider there will be abnormal when merge hover style to normal style if given default value.\n\t opt = opt || EMPTY_OBJ;\n\t var ecModel = textStyleModel.ecModel;\n\t var globalTextStyle = ecModel && ecModel.option.textStyle; // Consider case:\n\t // {\n\t // data: [{\n\t // value: 12,\n\t // label: {\n\t // rich: {\n\t // // no 'a' here but using parent 'a'.\n\t // }\n\t // }\n\t // }],\n\t // rich: {\n\t // a: { ... }\n\t // }\n\t // }\n\t\n\t var richItemNames = getRichItemNames(textStyleModel);\n\t var richResult;\n\t\n\t if (richItemNames) {\n\t richResult = {};\n\t\n\t for (var name_1 in richItemNames) {\n\t if (richItemNames.hasOwnProperty(name_1)) {\n\t // Cascade is supported in rich.\n\t var richTextStyle = textStyleModel.getModel(['rich', name_1]); // In rich, never `disableBox`.\n\t // FIXME: consider `label: {formatter: '{a|xx}', color: 'blue', rich: {a: {}}}`,\n\t // the default color `'blue'` will not be adopted if no color declared in `rich`.\n\t // That might confuses users. So probably we should put `textStyleModel` as the\n\t // root ancestor of the `richTextStyle`. But that would be a break change.\n\t\n\t setTokenTextStyle(richResult[name_1] = {}, richTextStyle, globalTextStyle, opt, isNotNormal, isAttached, false, true);\n\t }\n\t }\n\t }\n\t\n\t if (richResult) {\n\t textStyle.rich = richResult;\n\t }\n\t\n\t var overflow = textStyleModel.get('overflow');\n\t\n\t if (overflow) {\n\t textStyle.overflow = overflow;\n\t }\n\t\n\t var margin = textStyleModel.get('minMargin');\n\t\n\t if (margin != null) {\n\t textStyle.margin = margin;\n\t }\n\t\n\t setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isNotNormal, isAttached, true, false);\n\t } // Consider case:", "function setTextStyleCommon(textStyle, textStyleModel, opt, isNotNormal, isAttached) {\n // Consider there will be abnormal when merge hover style to normal style if given default value.\n opt = opt || EMPTY_OBJ;\n var ecModel = textStyleModel.ecModel;\n var globalTextStyle = ecModel && ecModel.option.textStyle; // Consider case:\n // {\n // data: [{\n // value: 12,\n // label: {\n // rich: {\n // // no 'a' here but using parent 'a'.\n // }\n // }\n // }],\n // rich: {\n // a: { ... }\n // }\n // }\n\n var richItemNames = getRichItemNames(textStyleModel);\n var richResult;\n\n if (richItemNames) {\n richResult = {};\n\n for (var name_1 in richItemNames) {\n if (richItemNames.hasOwnProperty(name_1)) {\n // Cascade is supported in rich.\n var richTextStyle = textStyleModel.getModel(['rich', name_1]); // In rich, never `disableBox`.\n // FIXME: consider `label: {formatter: '{a|xx}', color: 'blue', rich: {a: {}}}`,\n // the default color `'blue'` will not be adopted if no color declared in `rich`.\n // That might confuses users. So probably we should put `textStyleModel` as the\n // root ancestor of the `richTextStyle`. But that would be a break change.\n\n setTokenTextStyle(richResult[name_1] = {}, richTextStyle, globalTextStyle, opt, isNotNormal, isAttached, false, true);\n }\n }\n }\n\n if (richResult) {\n textStyle.rich = richResult;\n }\n\n var overflow = textStyleModel.get('overflow');\n\n if (overflow) {\n textStyle.overflow = overflow;\n }\n\n var margin = textStyleModel.get('minMargin');\n\n if (margin != null) {\n textStyle.margin = margin;\n }\n\n setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isNotNormal, isAttached, true, false);\n} // Consider case:", "set defaultStyle(style) {\n this._defaultStyle = style;\n }", "function textStyle() {\n return { font: \"9pt Segoe UI,sans-serif\", stroke: \"white\" };\n }", "function textStyle(text) {\n return new ol.style.Text({\n 'font': '12px Calibri,sans-serif',\n 'text': text,\n 'fill': new ol.style.Fill({\n 'color': '#000'\n }),\n 'stroke': new ol.style.Stroke({\n 'color': '#fff',\n 'width': 3\n })\n });\n }", "function textStyle() {\n return { font: \"9pt Segoe UI,sans-serif\", stroke: \"white\" };\n }", "function noopFormatter(style, defaults, palette) {\n return style;\n}", "getDefaultStyle(name) {\n return this.mDefaultStyle;\n }", "function getTooltipTextStyle(textStyle, renderMode) {\n\t var nameFontColor = textStyle.color || '#6e7079';\n\t var nameFontSize = textStyle.fontSize || 12;\n\t var nameFontWeight = textStyle.fontWeight || '400';\n\t var valueFontColor = textStyle.color || '#464646';\n\t var valueFontSize = textStyle.fontSize || 14;\n\t var valueFontWeight = textStyle.fontWeight || '900';\n\t\n\t if (renderMode === 'html') {\n\t // `textStyle` is probably from user input, should be encoded to reduce security risk.\n\t return {\n\t // eslint-disable-next-line max-len\n\t nameStyle: \"font-size:\" + encodeHTML(nameFontSize + '') + \"px;color:\" + encodeHTML(nameFontColor) + \";font-weight:\" + encodeHTML(nameFontWeight + ''),\n\t // eslint-disable-next-line max-len\n\t valueStyle: \"font-size:\" + encodeHTML(valueFontSize + '') + \"px;color:\" + encodeHTML(valueFontColor) + \";font-weight:\" + encodeHTML(valueFontWeight + '')\n\t };\n\t } else {\n\t return {\n\t nameStyle: {\n\t fontSize: nameFontSize,\n\t fill: nameFontColor,\n\t fontWeight: nameFontWeight\n\t },\n\t valueStyle: {\n\t fontSize: valueFontSize,\n\t fill: valueFontColor,\n\t fontWeight: valueFontWeight\n\t }\n\t };\n\t }\n\t } // See `TooltipMarkupLayoutIntent['innerGapLevel']`.", "get textStyle() {\n if (this.i.o == null) {\n return null;\n }\n return this.i.o.fontString;\n }", "set fontStyle(value) {}", "function style(style, text)\n\t{\n\t\tvar newText = addMeta('color', toCss(style.color), text);\n\t\tvar props = newText._0;\n\n\t\tif (style.typeface.ctor !== '[]')\n\t\t{\n\t\t\tprops['font-family'] = toTypefaces(style.typeface);\n\t\t}\n\t\tif (style.height.ctor !== \"Nothing\")\n\t\t{\n\t\t\tprops['font-size'] = style.height._0 + 'px';\n\t\t}\n\t\tif (style.bold)\n\t\t{\n\t\t\tprops['font-weight'] = 'bold';\n\t\t}\n\t\tif (style.italic)\n\t\t{\n\t\t\tprops['font-style'] = 'italic';\n\t\t}\n\t\tif (style.line.ctor !== 'Nothing')\n\t\t{\n\t\t\tprops['text-decoration'] = toLine(style.line._0);\n\t\t}\n\t\treturn newText;\n\t}", "function getTooltipTextStyle(textStyle, renderMode) {\n var nameFontColor = textStyle.color || '#6e7079';\n var nameFontSize = textStyle.fontSize || 12;\n var nameFontWeight = textStyle.fontWeight || '400';\n var valueFontColor = textStyle.color || '#464646';\n var valueFontSize = textStyle.fontSize || 14;\n var valueFontWeight = textStyle.fontWeight || '900';\n\n if (renderMode === 'html') {\n // `textStyle` is probably from user input, should be encoded to reduce security risk.\n return {\n // eslint-disable-next-line max-len\n nameStyle: \"font-size:\" + Object(_util_format__WEBPACK_IMPORTED_MODULE_0__[/* encodeHTML */ \"c\"])(nameFontSize + '') + \"px;color:\" + Object(_util_format__WEBPACK_IMPORTED_MODULE_0__[/* encodeHTML */ \"c\"])(nameFontColor) + \";font-weight:\" + Object(_util_format__WEBPACK_IMPORTED_MODULE_0__[/* encodeHTML */ \"c\"])(nameFontWeight + ''),\n // eslint-disable-next-line max-len\n valueStyle: \"font-size:\" + Object(_util_format__WEBPACK_IMPORTED_MODULE_0__[/* encodeHTML */ \"c\"])(valueFontSize + '') + \"px;color:\" + Object(_util_format__WEBPACK_IMPORTED_MODULE_0__[/* encodeHTML */ \"c\"])(valueFontColor) + \";font-weight:\" + Object(_util_format__WEBPACK_IMPORTED_MODULE_0__[/* encodeHTML */ \"c\"])(valueFontWeight + '')\n };\n } else {\n return {\n nameStyle: {\n fontSize: nameFontSize,\n fill: nameFontColor,\n fontWeight: nameFontWeight\n },\n valueStyle: {\n fontSize: valueFontSize,\n fill: valueFontColor,\n fontWeight: valueFontWeight\n }\n };\n }\n} // See `TooltipMarkupLayoutIntent['innerGapLevel']`.", "function style(style, text)\n\t{\n\t\tvar newText = addMeta('color', toCss(style.color), text);\n\t\tvar props = newText._0;\n\n\t\tif (style.typeface.ctor !== '[]')\n\t\t{\n\t\t\tprops['font-family'] = toTypefaces(style.typeface);\n\t\t}\n\t\tif (style.height.ctor !== 'Nothing')\n\t\t{\n\t\t\tprops['font-size'] = style.height._0 + 'px';\n\t\t}\n\t\tif (style.bold)\n\t\t{\n\t\t\tprops['font-weight'] = 'bold';\n\t\t}\n\t\tif (style.italic)\n\t\t{\n\t\t\tprops['font-style'] = 'italic';\n\t\t}\n\t\tif (style.line.ctor !== 'Nothing')\n\t\t{\n\t\t\tprops['text-decoration'] = toLine(style.line._0);\n\t\t}\n\t\treturn newText;\n\t}", "function makeTextStyleLayer(ref) {\n var style = ref.style;\n var styleIndex = ref.styleIndex;\n var draw = ref.draw;\n var xyz = ref.xyz;\n var xyzLayerIndex = ref.xyzLayerIndex;\n var tgOptions = ref.tgOptions;\n\n var tgTextDrawGroupName = (style.type) + \"_\" + styleIndex + \"_text\";\n draw[tgTextDrawGroupName] = {\n interactive: true,\n collide: true, // always collide text labels (no real downside)\n priority: getLabelPriority(xyz.layers, xyzLayerIndex, tgOptions),\n style: 'XYZ_text',\n text_source: (\"function() { var properties = feature; return \" + (style.textRef) + \"; }\"),\n font: {\n fill: style.fill,\n stroke: {\n color: style.stroke,\n width: ((style.strokeWidth) + \"px\")\n }\n },\n offset: getOffset(style),\n anchor: 'center',\n // repeat_distance: '1000px',\n blend_order: getBlendOrder(style, xyz.layers, xyzLayerIndex)\n };\n\n // parse XYZ font field\n var font = parser(style.font);\n if (font['font-family'].length > 0) {\n draw[tgTextDrawGroupName].font.family = font['font-family'][0]; // use first family in list\n }\n\n draw[tgTextDrawGroupName].font.size = font['font-size'] || '12px';\n\n if (font['font-style']) {\n draw[tgTextDrawGroupName].font.style = font['font-style'];\n }\n\n if (font['font-weight']) {\n draw[tgTextDrawGroupName].font.weight = font['font-weight'];\n }\n }", "function defaultStyles() {\n return {\n cellPadding: 5,\n fontSize: 10,\n font: \"helvetica\", // helvetica, times, courier\n lineColor: 200,\n lineWidth: 0.1,\n fontStyle: 'normal', // normal, bold, italic, bolditalic\n overflow: 'ellipsize', // visible, hidden, ellipsize or linebreak\n fillColor: 255,\n textColor: 20,\n halign: 'left', // left, center, right\n valign: 'top', // top, middle, bottom\n fillStyle: 'F', // 'S', 'F' or 'DF' (stroke, fill or fill then stroke)\n rowHeight: 20,\n columnWidth: 'auto'\n };\n }", "function defaultStyles() {\n return {\n font: \"helvetica\",\n fontStyle: 'normal',\n overflow: 'linebreak',\n fillColor: false,\n textColor: 20,\n halign: 'left',\n valign: 'top',\n fontSize: 10,\n cellPadding: 5 / state_1.default().scaleFactor(),\n lineColor: 200,\n lineWidth: 0 / state_1.default().scaleFactor(),\n cellWidth: 'auto',\n minCellHeight: 0\n };\n}", "function defaultStyles() {\n return {\n font: \"helvetica\",\n fontStyle: 'normal',\n overflow: 'linebreak',\n fillColor: false,\n textColor: 20,\n halign: 'left',\n valign: 'top',\n fontSize: 10,\n cellPadding: 5 / state_1.default().scaleFactor(),\n lineColor: 200,\n lineWidth: 0 / state_1.default().scaleFactor(),\n cellWidth: 'auto',\n minCellHeight: 0\n };\n}", "function defaultStyles() {\n return {\n font: 'helvetica',\n fontStyle: 'normal',\n overflow: 'linebreak',\n fillColor: false,\n textColor: 20,\n halign: 'left',\n valign: 'top',\n fontSize: 10,\n cellPadding: 5 / state_1.default().scaleFactor(),\n lineColor: 200,\n lineWidth: 0 / state_1.default().scaleFactor(),\n cellWidth: 'auto',\n minCellHeight: 0,\n };\n}", "function Style() {\n var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _classCallCheck(this, Style);\n\n if (!style.sketchObject) {\n // eslint-disable-next-line no-param-reassign\n style = Object.assign({}, DEFAULT_STYLE, style); // eslint-disable-next-line no-param-reassign\n\n style.sketchObject = MSDefaultStyle.defaultStyle();\n }\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Style).call(this, style));\n }", "function defaultStyles() {\n var scaleFactor = Config.scaleFactor();\n return {\n font: \"helvetica\",\n lineColor: 200,\n fontStyle: 'normal',\n overflow: 'ellipsize',\n fillColor: false,\n textColor: 20,\n halign: 'left',\n valign: 'top',\n fontSize: 10,\n cellPadding: 5 / scaleFactor,\n lineWidth: 0 / scaleFactor,\n columnWidth: 'auto'\n };\n}", "function textStyle(text) {\n text.attr(\"aria-hidden\", d.aH).attr(\"dir\", rtl ? \"rtl\" : \"ltr\").attr(\"fill\", d.fC).attr(\"stroke\", d.fStroke).attr(\"stroke-width\", d.fSW).attr(\"text-anchor\", d.tA).attr(\"font-family\", d.fF).style(\"font-family\", d.fF).attr(\"font-size\", \"\".concat(d.fS, \"px\")).style(\"font-size\", \"\".concat(d.fS, \"px\")).attr(\"font-weight\", d.fW).style(\"font-weight\", d.fW).attr(\"x\", \"\".concat(d.tA === \"middle\" ? d.w / 2 : rtl ? d.tA === \"start\" ? d.w : 0 : d.tA === \"end\" ? d.w : 2 * Math.sin(Math.PI * d.r / 180), \"px\")).attr(\"y\", function (t, i) {\n return d.r === 0 || d.vA === \"top\" ? \"\".concat((i + 1) * d.lH - (d.lH - d.fS), \"px\") : d.vA === \"middle\" ? \"\".concat((d.h + d.fS) / 2 - (d.lH - d.fS) + (i - d.lines.length / 2 + 0.5) * d.lH, \"px\") : \"\".concat(d.h - 2 * (d.lH - d.fS) - (d.lines.length - (i + 1)) * d.lH + 2 * Math.cos(Math.PI * d.r / 180), \"px\");\n });\n }", "function styleText(txtColour, txtFont, txtAlign, txtBaseline) {\n canvasContext.fillStyle = txtColour;\n canvasContext.font = txtFont;\n canvasContext.textAlign = txtAlign;\n canvasContext.textBaseline = txtBaseline;\n}", "reset() {\n UtilsSettings_1.UtilsSettings.deepCopyProperties(this, TextSettings_1.TextSettings.defaultStyle, TextSettings_1.TextSettings.defaultStyle);\n }", "function getTextBoxStyle({\n padY,\n padX,\n borderColor,\n borderWidth,\n bgColor,\n textColor,\n ...opts\n}) {\n const layer = getBaseVectorLayer();\n\n const backgroundStroke = new Stroke({\n color: borderColor,\n width: borderWidth\n });\n const backgroundFill = new Fill({ color: bgColor });\n const fill = new Fill({ color: textColor });\n\n const textStyle = new Text({\n padding: [padY, padX, padY, padX],\n backgroundFill,\n backgroundStroke,\n fill,\n ...opts\n });\n const style = new Style({\n text: textStyle\n });\n\n layer.setStyle(feature => {\n if (feature.get(\"text_content\")) {\n textStyle.setText(feature.get(\"text_content\"));\n } else {\n textStyle.setText(`?${feature.ol_uid}`);\n }\n\n return [style];\n });\n\n return layer;\n}", "function apply(context, styleId) {\n var style = styles[styleId] ? styles[styleId] : styles.basic,\n previousStyle;\n \n // if we have a context and context canvas, then update the previous style info\n if (context && context.canvas) {\n previousStyle = previousStyles[context.canvas.id];\n previousStyles[context.canvas.id] = styleId;\n } // if\n\n // apply the style\n style.applyToContext(context);\n\n // return the previously selected style\n return previousStyle;\n }", "applyStyle(style, clearDirectFormatting) {\n clearDirectFormatting = isNullOrUndefined(clearDirectFormatting) ? false : clearDirectFormatting;\n if (clearDirectFormatting) {\n this.initComplexHistory('ApplyStyle');\n this.clearFormatting();\n }\n let styleObj = this.viewer.styles.findByName(style);\n if (styleObj !== undefined) {\n this.onApplyParagraphFormat('styleName', styleObj, false, true);\n }\n else {\n // tslint:disable-next-line:max-line-length\n this.viewer.owner.parser.parseStyle(JSON.parse(this.getCompleteStyles()), JSON.parse(this.viewer.preDefinedStyles.get(style)), this.viewer.styles);\n this.applyStyle(style);\n }\n if (this.editorHistory && this.editorHistory.currentHistoryInfo && this.editorHistory.currentHistoryInfo.action === 'ApplyStyle') {\n this.editorHistory.updateComplexHistory();\n }\n }", "function default_1(text, x, y, styles, doc) {\n styles = styles || {};\n var FONT_ROW_RATIO = 1.15;\n if (typeof x !== 'number' || typeof y !== 'number') {\n console.error('The x and y parameters are required. Missing for text: ', text);\n }\n var k = doc.internal.scaleFactor;\n var fontSize = doc.internal.getFontSize() / k;\n var splitRegex = /\\r\\n|\\r|\\n/g;\n var splitText = '';\n var lineCount = 1;\n if (styles.valign === 'middle' ||\n styles.valign === 'bottom' ||\n styles.halign === 'center' ||\n styles.halign === 'right') {\n splitText = typeof text === 'string' ? text.split(splitRegex) : text;\n lineCount = splitText.length || 1;\n }\n // Align the top\n y += fontSize * (2 - FONT_ROW_RATIO);\n if (styles.valign === 'middle')\n y -= (lineCount / 2) * fontSize * FONT_ROW_RATIO;\n else if (styles.valign === 'bottom')\n y -= lineCount * fontSize * FONT_ROW_RATIO;\n if (styles.halign === 'center' || styles.halign === 'right') {\n var alignSize = fontSize;\n if (styles.halign === 'center')\n alignSize *= 0.5;\n if (splitText && lineCount >= 1) {\n for (var iLine = 0; iLine < splitText.length; iLine++) {\n doc.text(splitText[iLine], x - doc.getStringUnitWidth(splitText[iLine]) * alignSize, y);\n y += fontSize * FONT_ROW_RATIO;\n }\n return doc;\n }\n x -= doc.getStringUnitWidth(text) * alignSize;\n }\n if (styles.halign === 'justify') {\n doc.text(text, x, y, {\n maxWidth: styles.maxWidth || 100,\n align: 'justify',\n });\n }\n else {\n doc.text(text, x, y);\n }\n return doc;\n}", "function default_1(text, x, y, styles, doc) {\n styles = styles || {};\n var FONT_ROW_RATIO = 1.15;\n var k = doc.internal.scaleFactor;\n var fontSize = doc.internal.getFontSize() / k;\n var splitRegex = /\\r\\n|\\r|\\n/g;\n var splitText = '';\n var lineCount = 1;\n if (styles.valign === 'middle' ||\n styles.valign === 'bottom' ||\n styles.halign === 'center' ||\n styles.halign === 'right') {\n splitText = typeof text === 'string' ? text.split(splitRegex) : text;\n lineCount = splitText.length || 1;\n }\n // Align the top\n y += fontSize * (2 - FONT_ROW_RATIO);\n if (styles.valign === 'middle')\n y -= (lineCount / 2) * fontSize * FONT_ROW_RATIO;\n else if (styles.valign === 'bottom')\n y -= lineCount * fontSize * FONT_ROW_RATIO;\n if (styles.halign === 'center' || styles.halign === 'right') {\n var alignSize = fontSize;\n if (styles.halign === 'center')\n alignSize *= 0.5;\n if (splitText && lineCount >= 1) {\n for (var iLine = 0; iLine < splitText.length; iLine++) {\n doc.text(splitText[iLine], x - doc.getStringUnitWidth(splitText[iLine]) * alignSize, y);\n y += fontSize * FONT_ROW_RATIO;\n }\n return doc;\n }\n x -= doc.getStringUnitWidth(text) * alignSize;\n }\n if (styles.halign === 'justify') {\n doc.text(text, x, y, {\n maxWidth: styles.maxWidth || 100,\n align: 'justify',\n });\n }\n else {\n doc.text(text, x, y);\n }\n return doc;\n}", "function default_1(text, x, y, styles, doc) {\n styles = styles || {};\n var FONT_ROW_RATIO = 1.15;\n var k = doc.internal.scaleFactor;\n var fontSize = doc.internal.getFontSize() / k;\n var splitRegex = /\\r\\n|\\r|\\n/g;\n var splitText = '';\n var lineCount = 1;\n if (styles.valign === 'middle' ||\n styles.valign === 'bottom' ||\n styles.halign === 'center' ||\n styles.halign === 'right') {\n splitText = typeof text === 'string' ? text.split(splitRegex) : text;\n lineCount = splitText.length || 1;\n }\n // Align the top\n y += fontSize * (2 - FONT_ROW_RATIO);\n if (styles.valign === 'middle')\n y -= (lineCount / 2) * fontSize * FONT_ROW_RATIO;\n else if (styles.valign === 'bottom')\n y -= lineCount * fontSize * FONT_ROW_RATIO;\n if (styles.halign === 'center' || styles.halign === 'right') {\n var alignSize = fontSize;\n if (styles.halign === 'center')\n alignSize *= 0.5;\n if (splitText && lineCount >= 1) {\n for (var iLine = 0; iLine < splitText.length; iLine++) {\n doc.text(splitText[iLine], x - doc.getStringUnitWidth(splitText[iLine]) * alignSize, y);\n y += fontSize * FONT_ROW_RATIO;\n }\n return doc;\n }\n x -= doc.getStringUnitWidth(text) * alignSize;\n }\n if (styles.halign === 'justify') {\n doc.text(text, x, y, {\n maxWidth: styles.maxWidth || 100,\n align: 'justify',\n });\n }\n else {\n doc.text(text, x, y);\n }\n return doc;\n}", "function default_1(text, x, y, styles, doc) {\n styles = styles || {};\n var FONT_ROW_RATIO = 1.15;\n var k = doc.internal.scaleFactor;\n var fontSize = doc.internal.getFontSize() / k;\n var splitRegex = /\\r\\n|\\r|\\n/g;\n var splitText = '';\n var lineCount = 1;\n if (styles.valign === 'middle' ||\n styles.valign === 'bottom' ||\n styles.halign === 'center' ||\n styles.halign === 'right') {\n splitText = typeof text === 'string' ? text.split(splitRegex) : text;\n lineCount = splitText.length || 1;\n }\n // Align the top\n y += fontSize * (2 - FONT_ROW_RATIO);\n if (styles.valign === 'middle')\n y -= (lineCount / 2) * fontSize * FONT_ROW_RATIO;\n else if (styles.valign === 'bottom')\n y -= lineCount * fontSize * FONT_ROW_RATIO;\n if (styles.halign === 'center' || styles.halign === 'right') {\n var alignSize = fontSize;\n if (styles.halign === 'center')\n alignSize *= 0.5;\n if (splitText && lineCount >= 1) {\n for (var iLine = 0; iLine < splitText.length; iLine++) {\n doc.text(splitText[iLine], x - doc.getStringUnitWidth(splitText[iLine]) * alignSize, y);\n y += fontSize * FONT_ROW_RATIO;\n }\n return doc;\n }\n x -= doc.getStringUnitWidth(text) * alignSize;\n }\n if (styles.halign === 'justify') {\n doc.text(text, x, y, {\n maxWidth: styles.maxWidth || 100,\n align: 'justify',\n });\n }\n else {\n doc.text(text, x, y);\n }\n return doc;\n}", "function _setTextColors() {\n if (!styles.shepherdThemeTextPrimary) {\n styles.shepherdThemeTextPrimary = transparentize(0.25, readableColor(styles.shepherdThemePrimary));\n }\n\n if (!styles.shepherdThemeTextSecondary) {\n styles.shepherdThemeTextSecondary = transparentize(0.25, readableColor(styles.shepherdThemeSecondary));\n }\n\n if (!styles.shepherdThemeTextHeader) {\n styles.shepherdThemeTextHeader = transparentize(0.25, readableColor(styles.shepherdHeaderBackground));\n }\n\n if (!styles.shepherdThemeTextColor) {\n styles.shepherdThemeTextColor = transparentize(0.25, readableColor(styles.shepherdTextBackground));\n }\n}", "function createTTAddDefaultStyle() {\n cb.addCSS(`div.cb_createTT {\n font-family: Arial, Helvetica, sans-serif;\n font-size: 11px; /* 0.85em; */\n font-weight: bold;\n background-color: black;\n color: #fff;\n text-align: center;\n padding: 4px 8px; /* 0.2em 0.4em; */\n border-radius: 6px;\n /* always on top */\n z-index: 999999;\n }`);\n }", "function RenderStyle() {\n this.line_color = 'black';\n this.line_width = 0;\n this.fill_color = 'transparent';\n this.text_color = 'black';\n this.text_size = '12';\n}", "function setTextColors (cssRules, prop) {\n let cssStyleRule;\n let style;\n\n if ((prop != undefined) && (prop != null)) {\n\tsidebarTextColor = prop;\n\n\tcssStyleRule = getStyleRule(cssRules, \"html, body\");\n\tstyle = cssStyleRule.style; // A CSSStyleDeclaration object\n\tstyle.setProperty(\"color\", prop);\n\n\tcssStyleRule = getStyleRule(cssRules, \".favseparator\");\n\tstyle = cssStyleRule.style; // A CSSStyleDeclaration object\n\tstyle.setProperty(\"border-bottom-color\", prop);\n\n\t// Force a visible text color when highlighting a cell (= default FF value in nm/default theme mode)\n\tcssStyleRule = getStyleRule(cssRules, \".selbrow\");\n\tstyle = cssStyleRule.style; // A CSSStyleDeclaration object\n\tstyle.setProperty(\"color\", HighlightTextColor);\n\n\tcssStyleRule = getStyleRule(cssRules, \".brow:hover, .selbrow:hover, .rselbrow:hover\");\n\tstyle = cssStyleRule.style; // A CSSStyleDeclaration object\n\tstyle.setProperty(\"color\", HighlightTextColor);\n\n\tcssStyleRule = getStyleRule(cssRules, \".brow:focus, .selbrow:focus, .rselbrow:focus\");\n\tstyle = cssStyleRule.style; // A CSSStyleDeclaration object\n\tstyle.setProperty(\"color\", HighlightTextColor);\n }\n else {\n\tsidebarTextColor = undefined;\n\n\tcssStyleRule = getStyleRule(cssRules, \"html, body\");\n\tstyle = cssStyleRule.style; // A CSSStyleDeclaration object\n\tstyle.removeProperty(\"color\");\n\n\tcssStyleRule = getStyleRule(cssRules, \".favseparator\");\n\tstyle = cssStyleRule.style; // A CSSStyleDeclaration object\n\tstyle.setProperty(\"border-bottom-color\", HighlightTextColor);\n\n\t// Force a visible text color when highlighting a cell (= default FF value in nm/default theme mode)\n\tcssStyleRule = getStyleRule(cssRules, \".selbrow\");\n\tstyle = cssStyleRule.style; // A CSSStyleDeclaration object\n\tstyle.removeProperty(\"color\");\n\n\tcssStyleRule = getStyleRule(cssRules, \".brow:hover, .selbrow:hover, .rselbrow:hover\");\n\tstyle = cssStyleRule.style; // A CSSStyleDeclaration object\n\tstyle.removeProperty(\"color\");\n\n\tcssStyleRule = getStyleRule(cssRules, \".brow:focus, .selbrow:focus, .rselbrow:focus\");\n\tstyle = cssStyleRule.style; // A CSSStyleDeclaration object\n\tstyle.removeProperty(\"color\");\n }\n}", "function applyTextStyle(container, styler, from, to) {\n if (from === void 0) { from = new Position_1.default(container, 0 /* Begin */).normalize(); }\n if (to === void 0) { to = new Position_1.default(container, -1 /* End */).normalize(); }\n var formatNodes = [];\n while (from && to && to.isAfter(from)) {\n var formatNode = from.node;\n var parentTag = getTagOfNode_1.default(formatNode.parentNode);\n // The code below modifies DOM. Need to get the next sibling first otherwise you won't be able to reliably get a good next sibling node\n var nextNode = getLeafSibling_1.getNextLeafSibling(container, formatNode);\n if (formatNode.nodeType == 3 /* Text */ && ['TR', 'TABLE'].indexOf(parentTag) < 0) {\n if (formatNode == to.node && !to.isAtEnd) {\n formatNode = splitTextNode_1.default(formatNode, to.offset, true /*returnFirstPart*/);\n }\n if (from.offset > 0) {\n formatNode = splitTextNode_1.default(formatNode, from.offset, false /*returnFirstPart*/);\n }\n formatNodes.push(formatNode);\n }\n from = nextNode && new Position_1.default(nextNode, 0 /* Begin */);\n }\n if (formatNodes.length > 0) {\n if (formatNodes.every(function (node) { return node.parentNode == formatNodes[0].parentNode; })) {\n var newNode_1 = formatNodes.shift();\n formatNodes.forEach(function (node) {\n newNode_1.nodeValue += node.nodeValue;\n node.parentNode.removeChild(node);\n });\n formatNodes = [newNode_1];\n }\n formatNodes.forEach(function (node) {\n // When apply style within style tags like B/I/U/..., we split the tag and apply outside them\n // So that the inner style tag such as U, STRIKE can inherit the style we added\n while (getTagOfNode_1.default(node) != 'SPAN' &&\n STYLETAGS.indexOf(getTagOfNode_1.default(node.parentNode)) >= 0) {\n callStylerWithInnerNode(node, styler);\n node = splitParentNode_1.splitBalancedNodeRange(node);\n }\n if (getTagOfNode_1.default(node) != 'SPAN') {\n callStylerWithInnerNode(node, styler);\n node = wrap_1.default(node, 'SPAN');\n }\n styler(node);\n });\n }\n}", "_setSelectedMarkerStyleDefaultSettings() {\n let previouslySelectedMarkerStyle = this.get('_previouslySelectedMarkerStyle');\n let selectedMarkerStyle = this.get('styleSettings.type');\n if (Ember.isBlank(selectedMarkerStyle) || previouslySelectedMarkerStyle === selectedMarkerStyle) {\n return;\n }\n\n this.set('styleSettings', this.get('_markersStylesRenderer').getDefaultStyleSettings(selectedMarkerStyle));\n this.set('_previouslySelectedMarkerStyle', selectedMarkerStyle);\n\n this.send('onStyleSettingsChange');\n }", "function Text(x, y, text, fillStyle, strokeStyle) {\n if (x === void 0) { x = 0; }\n if (y === void 0) { y = 0; }\n if (text === void 0) { text = ''; }\n if (fillStyle === void 0) { fillStyle = color_9.default.black; }\n if (strokeStyle === void 0) { strokeStyle = color_9.default.white; }\n var _this = _super.call(this, x, y, fillStyle, strokeStyle) || this;\n /**\n * The actual string value that is rendered.\n */\n _this.text = '';\n /**\n * The font used to render the text.\n */\n _this.font = '16px Monospace';\n /**\n * Text align.\n */\n _this.textAlign = exports.TextAlign.Start;\n /**\n * Text base line.\n */\n _this.textBaseLine = exports.TextBaseLine.Alphabetic;\n /**\n * Text direction.\n */\n _this.textDirection = exports.TextDirection.Inherit;\n _this.text = text;\n return _this;\n }", "function addStylePropertyMarkup(styles, text) {\n if (styles && (styles.COLOR || styles.BGCOLOR || styles.FONTSIZE || styles.FONTFAMILY)) {\n var styleString = 'style=\"';\n if (styles.COLOR) {\n styleString += 'color: ' + styles.COLOR + ';';\n }\n if (styles.BGCOLOR) {\n styleString += 'background-color: ' + styles.BGCOLOR + ';';\n }\n if (styles.FONTSIZE) {\n styleString += 'font-size: ' + styles.FONTSIZE + (/^\\d+$/.test(styles.FONTSIZE) ? 'px' : '') + ';';\n }\n if (styles.FONTFAMILY) {\n styleString += 'font-family: ' + styles.FONTFAMILY + ';';\n }\n styleString += '\"';\n return '<span ' + styleString + '>' + text + '</span>';\n }\n return text;\n}", "function defaultStyles(scaleFactor) {\n return {\n font: 'helvetica',\n fontStyle: 'normal',\n overflow: 'linebreak',\n fillColor: false,\n textColor: 20,\n halign: 'left',\n valign: 'top',\n fontSize: 10,\n cellPadding: 5 / scaleFactor,\n lineColor: 200,\n lineWidth: 0,\n cellWidth: 'auto',\n minCellHeight: 0,\n minCellWidth: 0,\n };\n}", "function defaultStyles(scaleFactor) {\n return {\n font: 'helvetica',\n fontStyle: 'normal',\n overflow: 'linebreak',\n fillColor: false,\n textColor: 20,\n halign: 'left',\n valign: 'top',\n fontSize: 10,\n cellPadding: 5 / scaleFactor,\n lineColor: 200,\n lineWidth: 0,\n cellWidth: 'auto',\n minCellHeight: 0,\n minCellWidth: 0,\n };\n}", "function defaultStyles(scaleFactor) {\n return {\n font: 'helvetica',\n fontStyle: 'normal',\n overflow: 'linebreak',\n fillColor: false,\n textColor: 20,\n halign: 'left',\n valign: 'top',\n fontSize: 10,\n cellPadding: 5 / scaleFactor,\n lineColor: 200,\n lineWidth: 0,\n cellWidth: 'auto',\n minCellHeight: 0,\n minCellWidth: 0,\n };\n}", "noTextStroke() {\n this.textStroke = false;\n this.strokeWeight = false;\n }", "function getDefaultStyle() {\n return \"\" +\n \".material-background-nav-bar { \" +\n \" background-color : \" + appPrimaryColor + \" !important; \" +\n \" border-style : none;\" +\n \"}\" +\n \".md-primary-color {\" +\n \" color : \" + appPrimaryColor + \" !important;\" +\n \"}\";\n }// End create custom defaultStyle", "function formatReset() {\n DocumentApp.getActiveDocument().getBody().editAsText().setBold(false).setUnderline(false);\n}", "get styleStaticText() { return Object.assign({}, this.style.common); }", "function defaultFormatter(text){\n return text;\n}", "function getInitialStyleStringValue(context) {\n var initialStyleValues = context[3 /* InitialStyleValuesPosition */];\n var styleString = initialStyleValues[1 /* CachedStringValuePosition */];\n if (styleString === null) {\n styleString = '';\n for (var i = 2 /* KeyValueStartPosition */; i < initialStyleValues.length; i += 3 /* Size */) {\n var value = initialStyleValues[i + 1];\n if (value !== null) {\n styleString += (styleString.length ? ';' : '') + (initialStyleValues[i] + \":\" + value);\n }\n }\n initialStyleValues[1 /* CachedStringValuePosition */] = styleString;\n }\n return styleString;\n}", "static setDefaultThemeStyle(style) {\n defaultTheme = new Theme(style);\n }", "function text(text, fontStyle) {\n $._text(text, fontStyle);\n}", "function copyArrays(textStyle) {\n // These color fields were arrays, but will set to WASM pointers before we pass this\n // object over the WASM interface.\n textStyle['_colorPtr'] = copyColorToWasm(textStyle['color']);\n textStyle['_foregroundColorPtr'] = nullptr; // nullptr is 0, from helper.js\n textStyle['_backgroundColorPtr'] = nullptr;\n textStyle['_decorationColorPtr'] = nullptr;\n if (textStyle['foregroundColor']) {\n textStyle['_foregroundColorPtr'] = copyColorToWasm(textStyle['foregroundColor'], scratchForegroundColorPtr);\n }\n if (textStyle['backgroundColor']) {\n textStyle['_backgroundColorPtr'] = copyColorToWasm(textStyle['backgroundColor'], scratchBackgroundColorPtr);\n }\n if (textStyle['decorationColor']) {\n textStyle['_decorationColorPtr'] = copyColorToWasm(textStyle['decorationColor'], scratchDecorationColorPtr);\n }\n\n if (Array.isArray(textStyle['fontFamilies']) && textStyle['fontFamilies'].length) {\n textStyle['_fontFamiliesPtr'] = naiveCopyStrArray(textStyle['fontFamilies']);\n textStyle['_fontFamiliesLen'] = textStyle['fontFamilies'].length;\n } else {\n textStyle['_fontFamiliesPtr'] = nullptr;\n textStyle['_fontFamiliesLen'] = 0;\n Debug('no font families provided, text may draw wrong or not at all');\n }\n\n if (textStyle['locale']) {\n var str = textStyle['locale'];\n textStyle['_localePtr'] = cacheOrCopyString(str);\n textStyle['_localeLen'] = lengthBytesUTF8(str) + 1; // add 1 for the null terminator.\n } else {\n textStyle['_localePtr'] = nullptr;\n textStyle['_localeLen'] = 0;\n }\n\n if (Array.isArray(textStyle['shadows']) && textStyle['shadows'].length) {\n var shadows = textStyle['shadows'];\n var shadowColors = shadows.map(function (s) { return s['color'] || CanvasKit.BLACK; });\n var shadowBlurRadii = shadows.map(function (s) { return s['blurRadius'] || 0.0; });\n textStyle['_shadowLen'] = shadows.length;\n // 2 floats per point, 4 bytes per float\n var ptr = CanvasKit._malloc(shadows.length * 2 * 4);\n var adjustedPtr = ptr / 4; // 4 bytes per float\n for (var i = 0; i < shadows.length; i++) {\n var offset = shadows[i]['offset'] || [0, 0];\n CanvasKit.HEAPF32[adjustedPtr] = offset[0];\n CanvasKit.HEAPF32[adjustedPtr + 1] = offset[1];\n adjustedPtr += 2;\n }\n textStyle['_shadowColorsPtr'] = copyFlexibleColorArray(shadowColors).colorPtr;\n textStyle['_shadowOffsetsPtr'] = ptr;\n textStyle['_shadowBlurRadiiPtr'] = copy1dArray(shadowBlurRadii, 'HEAPF32');\n } else {\n textStyle['_shadowLen'] = 0;\n textStyle['_shadowColorsPtr'] = nullptr;\n textStyle['_shadowOffsetsPtr'] = nullptr;\n textStyle['_shadowBlurRadiiPtr'] = nullptr;\n }\n\n if (Array.isArray(textStyle['fontFeatures']) && textStyle['fontFeatures'].length) {\n var fontFeatures = textStyle['fontFeatures'];\n var fontFeatureNames = fontFeatures.map(function (s) { return s['name']; });\n var fontFeatureValues = fontFeatures.map(function (s) { return s['value']; });\n textStyle['_fontFeatureLen'] = fontFeatures.length;\n textStyle['_fontFeatureNamesPtr'] = naiveCopyStrArray(fontFeatureNames);\n textStyle['_fontFeatureValuesPtr'] = copy1dArray(fontFeatureValues, 'HEAPU32');\n } else {\n textStyle['_fontFeatureLen'] = 0;\n textStyle['_fontFeatureNamesPtr'] = nullptr;\n textStyle['_fontFeatureValuesPtr'] = nullptr;\n }\n\n if (Array.isArray(textStyle['fontVariations']) && textStyle['fontVariations'].length) {\n var fontVariations = textStyle['fontVariations'];\n var fontVariationAxes = fontVariations.map(function (s) { return s['axis']; });\n var fontVariationValues = fontVariations.map(function (s) { return s['value']; });\n textStyle['_fontVariationLen'] = fontVariations.length;\n textStyle['_fontVariationAxesPtr'] = naiveCopyStrArray(fontVariationAxes);\n textStyle['_fontVariationValuesPtr'] = copy1dArray(fontVariationValues, 'HEAPF32');\n } else {\n textStyle['_fontVariationLen'] = 0;\n textStyle['_fontVariationAxesPtr'] = nullptr;\n textStyle['_fontVariationValuesPtr'] = nullptr;\n }\n }", "get fontStyle() {}", "function fontColorOverride(cell) {\n\n var cellObj = $(cell);\n var hex = cellObj.attr(\"fill\");\n\n var colorIsLight = function (r, g, b) {\n // Counting the perceptive luminance\n // human eye favors green color...\n var a = 1 - (0.299 * r + 0.587 * g + 0.114 * b) / 255;\n return (a < 0.5);\n }\n\n\n function hexToRgb(hex) {\n // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\n var shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n hex = hex.replace(shorthandRegex, function (m, r, g, b) {\n return r + r + g + g + b + b;\n });\n\n var result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n return result ? {\n r: parseInt(result[1], 16),\n g: parseInt(result[2], 16),\n b: parseInt(result[3], 16)\n } : null;\n }\n\n if (hexToRgb(hex)) {\n var textColor = colorIsLight(hexToRgb(hex).r, hexToRgb(hex).g, hexToRgb(hex).b) ? '#000000' : '#ffffff';\n cellObj.next('text').attr('fill', textColor);\n }\n\n }", "function setDefaultStyle(opts) {\r\n if (cssStyles&&cssStyles[opts.cssClass]&&cssStyles[opts.cssClass][opts.style_name]) {\r\n opts.style_value = cssStyles[opts.cssClass][opts.style_name];\r\n $.each(opts.target, function(index, value) {\r\n setTargetStyle(opts.style_name, opts.style_value, value, opts.cssClass);\r\n });\r\n }\r\n}", "static restore(data) {\n let fontStyle = new FontStyle(data.fontDescription);\n\n fontStyle.setSpread(data.spread);\n fontStyle.setFontSize(data.fontSize);\n fontStyle.setLetterSpacing(data.letterSpacing);\n\n return fontStyle;\n }", "function renderPlainText(hostEl, ctx, text, style, rect, prevEl) {\n 'use strict';\n\n var needDrawBg = needDrawBackground(style);\n var prevStyle;\n var checkCache = false;\n var cachedByMe = ctx.__attrCachedBy === ContextCachedBy.PLAIN_TEXT; // Only take and check cache for `Text` el, but not RectText.\n\n if (prevEl !== WILL_BE_RESTORED) {\n if (prevEl) {\n prevStyle = prevEl.style;\n checkCache = !needDrawBg && cachedByMe && prevStyle;\n } // Prevent from using cache in `Style::bind`, because of the case:\n // ctx property is modified by other properties than `Style::bind`\n // used, and Style::bind is called next.\n\n\n ctx.__attrCachedBy = needDrawBg ? ContextCachedBy.NONE : ContextCachedBy.PLAIN_TEXT;\n } // Since this will be restored, prevent from using these props to check cache in the next\n // entering of this method. But do not need to clear other cache like `Style::bind`.\n else if (cachedByMe) {\n ctx.__attrCachedBy = ContextCachedBy.NONE;\n }\n\n var styleFont = style.font || DEFAULT_FONT; // PENDING\n // Only `Text` el set `font` and keep it (`RectText` will restore). So theoretically\n // we can make font cache on ctx, which can cache for text el that are discontinuous.\n // But layer save/restore needed to be considered.\n // if (styleFont !== ctx.__fontCache) {\n // ctx.font = styleFont;\n // if (prevEl !== WILL_BE_RESTORED) {\n // ctx.__fontCache = styleFont;\n // }\n // }\n\n if (!checkCache || styleFont !== (prevStyle.font || DEFAULT_FONT)) {\n ctx.font = styleFont;\n } // Use the final font from context-2d, because the final\n // font might not be the style.font when it is illegal.\n // But get `ctx.font` might be time consuming.\n\n\n var computedFont = hostEl.__computedFont;\n\n if (hostEl.__styleFont !== styleFont) {\n hostEl.__styleFont = styleFont;\n computedFont = hostEl.__computedFont = ctx.font;\n }\n\n var textPadding = style.textPadding;\n var textLineHeight = style.textLineHeight;\n var contentBlock = hostEl.__textCotentBlock;\n\n if (!contentBlock || hostEl.__dirtyText) {\n contentBlock = hostEl.__textCotentBlock = textContain.parsePlainText(text, computedFont, textPadding, textLineHeight, style.truncate);\n }\n\n var outerHeight = contentBlock.outerHeight;\n var textLines = contentBlock.lines;\n var lineHeight = contentBlock.lineHeight;\n var boxPos = getBoxPosition(_tmpBoxPositionResult, hostEl, style, rect);\n var baseX = boxPos.baseX;\n var baseY = boxPos.baseY;\n var textAlign = boxPos.textAlign || 'left';\n var textVerticalAlign = boxPos.textVerticalAlign; // Origin of textRotation should be the base point of text drawing.\n\n applyTextRotation(ctx, style, rect, baseX, baseY);\n var boxY = textContain.adjustTextY(baseY, outerHeight, textVerticalAlign);\n var textX = baseX;\n var textY = boxY;\n\n if (needDrawBg || textPadding) {\n // Consider performance, do not call getTextWidth util necessary.\n var textWidth = textContain.getWidth(text, computedFont);\n var outerWidth = textWidth;\n textPadding && (outerWidth += textPadding[1] + textPadding[3]);\n var boxX = textContain.adjustTextX(baseX, outerWidth, textAlign);\n needDrawBg && drawBackground(hostEl, ctx, style, boxX, boxY, outerWidth, outerHeight);\n\n if (textPadding) {\n textX = getTextXForPadding(baseX, textAlign, textPadding);\n textY += textPadding[0];\n }\n } // Always set textAlign and textBase line, because it is difficute to calculate\n // textAlign from prevEl, and we dont sure whether textAlign will be reset if\n // font set happened.\n\n\n ctx.textAlign = textAlign; // Force baseline to be \"middle\". Otherwise, if using \"top\", the\n // text will offset downward a little bit in font \"Microsoft YaHei\".\n\n ctx.textBaseline = 'middle'; // Set text opacity\n\n ctx.globalAlpha = style.opacity || 1; // Always set shadowBlur and shadowOffset to avoid leak from displayable.\n\n for (var i = 0; i < SHADOW_STYLE_COMMON_PROPS.length; i++) {\n var propItem = SHADOW_STYLE_COMMON_PROPS[i];\n var styleProp = propItem[0];\n var ctxProp = propItem[1];\n var val = style[styleProp];\n\n if (!checkCache || val !== prevStyle[styleProp]) {\n ctx[ctxProp] = fixShadow(ctx, ctxProp, val || propItem[2]);\n }\n } // `textBaseline` is set as 'middle'.\n\n\n textY += lineHeight / 2;\n var textStrokeWidth = style.textStrokeWidth;\n var textStrokeWidthPrev = checkCache ? prevStyle.textStrokeWidth : null;\n var strokeWidthChanged = !checkCache || textStrokeWidth !== textStrokeWidthPrev;\n var strokeChanged = !checkCache || strokeWidthChanged || style.textStroke !== prevStyle.textStroke;\n var textStroke = getStroke(style.textStroke, textStrokeWidth);\n var textFill = getFill(style.textFill);\n\n if (textStroke) {\n if (strokeWidthChanged) {\n ctx.lineWidth = textStrokeWidth;\n }\n\n if (strokeChanged) {\n ctx.strokeStyle = textStroke;\n }\n }\n\n if (textFill) {\n if (!checkCache || style.textFill !== prevStyle.textFill) {\n ctx.fillStyle = textFill;\n }\n } // Optimize simply, in most cases only one line exists.\n\n\n if (textLines.length === 1) {\n // Fill after stroke so the outline will not cover the main part.\n textStroke && ctx.strokeText(textLines[0], textX, textY);\n textFill && ctx.fillText(textLines[0], textX, textY);\n } else {\n for (var i = 0; i < textLines.length; i++) {\n // Fill after stroke so the outline will not cover the main part.\n textStroke && ctx.strokeText(textLines[i], textX, textY);\n textFill && ctx.fillText(textLines[i], textX, textY);\n textY += lineHeight;\n }\n }\n}", "function renderPlainText(hostEl, ctx, text, style, rect, prevEl) {\n 'use strict';\n\n var needDrawBg = needDrawBackground(style);\n var prevStyle;\n var checkCache = false;\n var cachedByMe = ctx.__attrCachedBy === ContextCachedBy.PLAIN_TEXT; // Only take and check cache for `Text` el, but not RectText.\n\n if (prevEl !== WILL_BE_RESTORED) {\n if (prevEl) {\n prevStyle = prevEl.style;\n checkCache = !needDrawBg && cachedByMe && prevStyle;\n } // Prevent from using cache in `Style::bind`, because of the case:\n // ctx property is modified by other properties than `Style::bind`\n // used, and Style::bind is called next.\n\n\n ctx.__attrCachedBy = needDrawBg ? ContextCachedBy.NONE : ContextCachedBy.PLAIN_TEXT;\n } // Since this will be restored, prevent from using these props to check cache in the next\n // entering of this method. But do not need to clear other cache like `Style::bind`.\n else if (cachedByMe) {\n ctx.__attrCachedBy = ContextCachedBy.NONE;\n }\n\n var styleFont = style.font || DEFAULT_FONT; // PENDING\n // Only `Text` el set `font` and keep it (`RectText` will restore). So theoretically\n // we can make font cache on ctx, which can cache for text el that are discontinuous.\n // But layer save/restore needed to be considered.\n // if (styleFont !== ctx.__fontCache) {\n // ctx.font = styleFont;\n // if (prevEl !== WILL_BE_RESTORED) {\n // ctx.__fontCache = styleFont;\n // }\n // }\n\n if (!checkCache || styleFont !== (prevStyle.font || DEFAULT_FONT)) {\n ctx.font = styleFont;\n } // Use the final font from context-2d, because the final\n // font might not be the style.font when it is illegal.\n // But get `ctx.font` might be time consuming.\n\n\n var computedFont = hostEl.__computedFont;\n\n if (hostEl.__styleFont !== styleFont) {\n hostEl.__styleFont = styleFont;\n computedFont = hostEl.__computedFont = ctx.font;\n }\n\n var textPadding = style.textPadding;\n var textLineHeight = style.textLineHeight;\n var contentBlock = hostEl.__textCotentBlock;\n\n if (!contentBlock || hostEl.__dirtyText) {\n contentBlock = hostEl.__textCotentBlock = textContain.parsePlainText(text, computedFont, textPadding, textLineHeight, style.truncate);\n }\n\n var outerHeight = contentBlock.outerHeight;\n var textLines = contentBlock.lines;\n var lineHeight = contentBlock.lineHeight;\n var boxPos = getBoxPosition(outerHeight, style, rect);\n var baseX = boxPos.baseX;\n var baseY = boxPos.baseY;\n var textAlign = boxPos.textAlign || 'left';\n var textVerticalAlign = boxPos.textVerticalAlign; // Origin of textRotation should be the base point of text drawing.\n\n applyTextRotation(ctx, style, rect, baseX, baseY);\n var boxY = textContain.adjustTextY(baseY, outerHeight, textVerticalAlign);\n var textX = baseX;\n var textY = boxY;\n\n if (needDrawBg || textPadding) {\n // Consider performance, do not call getTextWidth util necessary.\n var textWidth = textContain.getWidth(text, computedFont);\n var outerWidth = textWidth;\n textPadding && (outerWidth += textPadding[1] + textPadding[3]);\n var boxX = textContain.adjustTextX(baseX, outerWidth, textAlign);\n needDrawBg && drawBackground(hostEl, ctx, style, boxX, boxY, outerWidth, outerHeight);\n\n if (textPadding) {\n textX = getTextXForPadding(baseX, textAlign, textPadding);\n textY += textPadding[0];\n }\n } // Always set textAlign and textBase line, because it is difficute to calculate\n // textAlign from prevEl, and we dont sure whether textAlign will be reset if\n // font set happened.\n\n\n ctx.textAlign = textAlign; // Force baseline to be \"middle\". Otherwise, if using \"top\", the\n // text will offset downward a little bit in font \"Microsoft YaHei\".\n\n ctx.textBaseline = 'middle'; // Set text opacity\n\n ctx.globalAlpha = style.opacity || 1; // Always set shadowBlur and shadowOffset to avoid leak from displayable.\n\n for (var i = 0; i < SHADOW_STYLE_COMMON_PROPS.length; i++) {\n var propItem = SHADOW_STYLE_COMMON_PROPS[i];\n var styleProp = propItem[0];\n var ctxProp = propItem[1];\n var val = style[styleProp];\n\n if (!checkCache || val !== prevStyle[styleProp]) {\n ctx[ctxProp] = fixShadow(ctx, ctxProp, val || propItem[2]);\n }\n } // `textBaseline` is set as 'middle'.\n\n\n textY += lineHeight / 2;\n var textStrokeWidth = style.textStrokeWidth;\n var textStrokeWidthPrev = checkCache ? prevStyle.textStrokeWidth : null;\n var strokeWidthChanged = !checkCache || textStrokeWidth !== textStrokeWidthPrev;\n var strokeChanged = !checkCache || strokeWidthChanged || style.textStroke !== prevStyle.textStroke;\n var textStroke = getStroke(style.textStroke, textStrokeWidth);\n var textFill = getFill(style.textFill);\n\n if (textStroke) {\n if (strokeWidthChanged) {\n ctx.lineWidth = textStrokeWidth;\n }\n\n if (strokeChanged) {\n ctx.strokeStyle = textStroke;\n }\n }\n\n if (textFill) {\n if (!checkCache || style.textFill !== prevStyle.textFill) {\n ctx.fillStyle = textFill;\n }\n } // Optimize simply, in most cases only one line exists.\n\n\n if (textLines.length === 1) {\n // Fill after stroke so the outline will not cover the main part.\n textStroke && ctx.strokeText(textLines[0], textX, textY);\n textFill && ctx.fillText(textLines[0], textX, textY);\n } else {\n for (var i = 0; i < textLines.length; i++) {\n // Fill after stroke so the outline will not cover the main part.\n textStroke && ctx.strokeText(textLines[i], textX, textY);\n textFill && ctx.fillText(textLines[i], textX, textY);\n textY += lineHeight;\n }\n }\n}", "function renderPlainText(hostEl, ctx, text, style, rect, prevEl) {\n 'use strict';\n\n var needDrawBg = needDrawBackground(style);\n var prevStyle;\n var checkCache = false;\n var cachedByMe = ctx.__attrCachedBy === ContextCachedBy.PLAIN_TEXT; // Only take and check cache for `Text` el, but not RectText.\n\n if (prevEl !== WILL_BE_RESTORED) {\n if (prevEl) {\n prevStyle = prevEl.style;\n checkCache = !needDrawBg && cachedByMe && prevStyle;\n } // Prevent from using cache in `Style::bind`, because of the case:\n // ctx property is modified by other properties than `Style::bind`\n // used, and Style::bind is called next.\n\n\n ctx.__attrCachedBy = needDrawBg ? ContextCachedBy.NONE : ContextCachedBy.PLAIN_TEXT;\n } // Since this will be restored, prevent from using these props to check cache in the next\n // entering of this method. But do not need to clear other cache like `Style::bind`.\n else if (cachedByMe) {\n ctx.__attrCachedBy = ContextCachedBy.NONE;\n }\n\n var styleFont = style.font || DEFAULT_FONT; // PENDING\n // Only `Text` el set `font` and keep it (`RectText` will restore). So theoretically\n // we can make font cache on ctx, which can cache for text el that are discontinuous.\n // But layer save/restore needed to be considered.\n // if (styleFont !== ctx.__fontCache) {\n // ctx.font = styleFont;\n // if (prevEl !== WILL_BE_RESTORED) {\n // ctx.__fontCache = styleFont;\n // }\n // }\n\n if (!checkCache || styleFont !== (prevStyle.font || DEFAULT_FONT)) {\n ctx.font = styleFont;\n } // Use the final font from context-2d, because the final\n // font might not be the style.font when it is illegal.\n // But get `ctx.font` might be time consuming.\n\n\n var computedFont = hostEl.__computedFont;\n\n if (hostEl.__styleFont !== styleFont) {\n hostEl.__styleFont = styleFont;\n computedFont = hostEl.__computedFont = ctx.font;\n }\n\n var textPadding = style.textPadding;\n var textLineHeight = style.textLineHeight;\n var contentBlock = hostEl.__textCotentBlock;\n\n if (!contentBlock || hostEl.__dirtyText) {\n contentBlock = hostEl.__textCotentBlock = textContain.parsePlainText(text, computedFont, textPadding, textLineHeight, style.truncate);\n }\n\n var outerHeight = contentBlock.outerHeight;\n var textLines = contentBlock.lines;\n var lineHeight = contentBlock.lineHeight;\n var boxPos = getBoxPosition(outerHeight, style, rect);\n var baseX = boxPos.baseX;\n var baseY = boxPos.baseY;\n var textAlign = boxPos.textAlign || 'left';\n var textVerticalAlign = boxPos.textVerticalAlign; // Origin of textRotation should be the base point of text drawing.\n\n applyTextRotation(ctx, style, rect, baseX, baseY);\n var boxY = textContain.adjustTextY(baseY, outerHeight, textVerticalAlign);\n var textX = baseX;\n var textY = boxY;\n\n if (needDrawBg || textPadding) {\n // Consider performance, do not call getTextWidth util necessary.\n var textWidth = textContain.getWidth(text, computedFont);\n var outerWidth = textWidth;\n textPadding && (outerWidth += textPadding[1] + textPadding[3]);\n var boxX = textContain.adjustTextX(baseX, outerWidth, textAlign);\n needDrawBg && drawBackground(hostEl, ctx, style, boxX, boxY, outerWidth, outerHeight);\n\n if (textPadding) {\n textX = getTextXForPadding(baseX, textAlign, textPadding);\n textY += textPadding[0];\n }\n } // Always set textAlign and textBase line, because it is difficute to calculate\n // textAlign from prevEl, and we dont sure whether textAlign will be reset if\n // font set happened.\n\n\n ctx.textAlign = textAlign; // Force baseline to be \"middle\". Otherwise, if using \"top\", the\n // text will offset downward a little bit in font \"Microsoft YaHei\".\n\n ctx.textBaseline = 'middle'; // Set text opacity\n\n ctx.globalAlpha = style.opacity || 1; // Always set shadowBlur and shadowOffset to avoid leak from displayable.\n\n for (var i = 0; i < SHADOW_STYLE_COMMON_PROPS.length; i++) {\n var propItem = SHADOW_STYLE_COMMON_PROPS[i];\n var styleProp = propItem[0];\n var ctxProp = propItem[1];\n var val = style[styleProp];\n\n if (!checkCache || val !== prevStyle[styleProp]) {\n ctx[ctxProp] = fixShadow(ctx, ctxProp, val || propItem[2]);\n }\n } // `textBaseline` is set as 'middle'.\n\n\n textY += lineHeight / 2;\n var textStrokeWidth = style.textStrokeWidth;\n var textStrokeWidthPrev = checkCache ? prevStyle.textStrokeWidth : null;\n var strokeWidthChanged = !checkCache || textStrokeWidth !== textStrokeWidthPrev;\n var strokeChanged = !checkCache || strokeWidthChanged || style.textStroke !== prevStyle.textStroke;\n var textStroke = getStroke(style.textStroke, textStrokeWidth);\n var textFill = getFill(style.textFill);\n\n if (textStroke) {\n if (strokeWidthChanged) {\n ctx.lineWidth = textStrokeWidth;\n }\n\n if (strokeChanged) {\n ctx.strokeStyle = textStroke;\n }\n }\n\n if (textFill) {\n if (!checkCache || style.textFill !== prevStyle.textFill) {\n ctx.fillStyle = textFill;\n }\n } // Optimize simply, in most cases only one line exists.\n\n\n if (textLines.length === 1) {\n // Fill after stroke so the outline will not cover the main part.\n textStroke && ctx.strokeText(textLines[0], textX, textY);\n textFill && ctx.fillText(textLines[0], textX, textY);\n } else {\n for (var i = 0; i < textLines.length; i++) {\n // Fill after stroke so the outline will not cover the main part.\n textStroke && ctx.strokeText(textLines[i], textX, textY);\n textFill && ctx.fillText(textLines[i], textX, textY);\n textY += lineHeight;\n }\n }\n}", "function renderPlainText(hostEl, ctx, text, style, rect, prevEl) {\n 'use strict';\n\n var needDrawBg = needDrawBackground(style);\n var prevStyle;\n var checkCache = false;\n var cachedByMe = ctx.__attrCachedBy === ContextCachedBy.PLAIN_TEXT; // Only take and check cache for `Text` el, but not RectText.\n\n if (prevEl !== WILL_BE_RESTORED) {\n if (prevEl) {\n prevStyle = prevEl.style;\n checkCache = !needDrawBg && cachedByMe && prevStyle;\n } // Prevent from using cache in `Style::bind`, because of the case:\n // ctx property is modified by other properties than `Style::bind`\n // used, and Style::bind is called next.\n\n\n ctx.__attrCachedBy = needDrawBg ? ContextCachedBy.NONE : ContextCachedBy.PLAIN_TEXT;\n } // Since this will be restored, prevent from using these props to check cache in the next\n // entering of this method. But do not need to clear other cache like `Style::bind`.\n else if (cachedByMe) {\n ctx.__attrCachedBy = ContextCachedBy.NONE;\n }\n\n var styleFont = style.font || DEFAULT_FONT; // PENDING\n // Only `Text` el set `font` and keep it (`RectText` will restore). So theoretically\n // we can make font cache on ctx, which can cache for text el that are discontinuous.\n // But layer save/restore needed to be considered.\n // if (styleFont !== ctx.__fontCache) {\n // ctx.font = styleFont;\n // if (prevEl !== WILL_BE_RESTORED) {\n // ctx.__fontCache = styleFont;\n // }\n // }\n\n if (!checkCache || styleFont !== (prevStyle.font || DEFAULT_FONT)) {\n ctx.font = styleFont;\n } // Use the final font from context-2d, because the final\n // font might not be the style.font when it is illegal.\n // But get `ctx.font` might be time consuming.\n\n\n var computedFont = hostEl.__computedFont;\n\n if (hostEl.__styleFont !== styleFont) {\n hostEl.__styleFont = styleFont;\n computedFont = hostEl.__computedFont = ctx.font;\n }\n\n var textPadding = style.textPadding;\n var textLineHeight = style.textLineHeight;\n var contentBlock = hostEl.__textCotentBlock;\n\n if (!contentBlock || hostEl.__dirtyText) {\n contentBlock = hostEl.__textCotentBlock = textContain.parsePlainText(text, computedFont, textPadding, textLineHeight, style.truncate);\n }\n\n var outerHeight = contentBlock.outerHeight;\n var textLines = contentBlock.lines;\n var lineHeight = contentBlock.lineHeight;\n var boxPos = getBoxPosition(_tmpBoxPositionResult, hostEl, style, rect);\n var baseX = boxPos.baseX;\n var baseY = boxPos.baseY;\n var textAlign = boxPos.textAlign || 'left';\n var textVerticalAlign = boxPos.textVerticalAlign; // Origin of textRotation should be the base point of text drawing.\n\n applyTextRotation(ctx, style, rect, baseX, baseY);\n var boxY = textContain.adjustTextY(baseY, outerHeight, textVerticalAlign);\n var textX = baseX;\n var textY = boxY;\n\n if (needDrawBg || textPadding) {\n // Consider performance, do not call getTextWidth util necessary.\n var textWidth = textContain.getWidth(text, computedFont);\n var outerWidth = textWidth;\n textPadding && (outerWidth += textPadding[1] + textPadding[3]);\n var boxX = textContain.adjustTextX(baseX, outerWidth, textAlign);\n needDrawBg && drawBackground(hostEl, ctx, style, boxX, boxY, outerWidth, outerHeight);\n\n if (textPadding) {\n textX = getTextXForPadding(baseX, textAlign, textPadding);\n textY += textPadding[0];\n }\n } // Always set textAlign and textBase line, because it is difficute to calculate\n // textAlign from prevEl, and we dont sure whether textAlign will be reset if\n // font set happened.\n\n\n ctx.textAlign = textAlign; // Force baseline to be \"middle\". Otherwise, if using \"top\", the\n // text will offset downward a little bit in font \"Microsoft YaHei\".\n\n ctx.textBaseline = 'middle'; // Set text opacity\n\n ctx.globalAlpha = style.opacity || 1; // Always set shadowBlur and shadowOffset to avoid leak from displayable.\n\n for (var i = 0; i < SHADOW_STYLE_COMMON_PROPS.length; i++) {\n var propItem = SHADOW_STYLE_COMMON_PROPS[i];\n var styleProp = propItem[0];\n var ctxProp = propItem[1];\n var val = style[styleProp];\n\n if (!checkCache || val !== prevStyle[styleProp]) {\n ctx[ctxProp] = fixShadow(ctx, ctxProp, val || propItem[2]);\n }\n } // `textBaseline` is set as 'middle'.\n\n\n textY += lineHeight / 2;\n var textStrokeWidth = style.textStrokeWidth;\n var textStrokeWidthPrev = checkCache ? prevStyle.textStrokeWidth : null;\n var strokeWidthChanged = !checkCache || textStrokeWidth !== textStrokeWidthPrev;\n var strokeChanged = !checkCache || strokeWidthChanged || style.textStroke !== prevStyle.textStroke;\n var textStroke = getStroke(style.textStroke, textStrokeWidth);\n var textFill = getFill(style.textFill);\n\n if (textStroke) {\n if (strokeWidthChanged) {\n ctx.lineWidth = textStrokeWidth;\n }\n\n if (strokeChanged) {\n ctx.strokeStyle = textStroke;\n }\n }\n\n if (textFill) {\n if (!checkCache || style.textFill !== prevStyle.textFill) {\n ctx.fillStyle = textFill;\n }\n } // Optimize simply, in most cases only one line exists.\n\n\n if (textLines.length === 1) {\n // Fill after stroke so the outline will not cover the main part.\n textStroke && ctx.strokeText(textLines[0], textX, textY);\n textFill && ctx.fillText(textLines[0], textX, textY);\n } else {\n for (var i = 0; i < textLines.length; i++) {\n // Fill after stroke so the outline will not cover the main part.\n textStroke && ctx.strokeText(textLines[i], textX, textY);\n textFill && ctx.fillText(textLines[i], textX, textY);\n textY += lineHeight;\n }\n }\n}", "function setNormalText() {\n // Set color\n interBtn.style.background = '#6A1B9A';\n interBtn.style.color = 'white';\n\n // Reset others color\n beginBtn.style.background = 'white';\n beginBtn.style.color = '#6A1B9A';\n masterBtn.style.background = 'white';\n masterBtn.style.color = '#6A1B9A';\n\n normalText = getNormalText();\n txt.textContent = normalText;\n return normalText;\n}", "static updateStyleFromProperties(oldStyle, properties) {\n const {\n font,\n color,\n icon,\n iconSize,\n text,\n textColor,\n textSize,\n textRotation,\n } = properties;\n\n // Update Fill style if it existed.\n const fillStyle = oldStyle.getFill();\n if (fillStyle && color) {\n fillStyle.setColor(color.fill.concat(fillStyle.getColor()[3]));\n }\n\n // Update Stroke style if it existed\n const strokeStyle = oldStyle.getStroke();\n if (strokeStyle && color) {\n strokeStyle.setColor(color.fill.concat(strokeStyle.getColor()[3]));\n }\n\n // Update Text style if it existed;\n const textStyle = oldStyle.getText() ? oldStyle.getText().clone() : null;\n if (textStyle) {\n textStyle.setText(text);\n\n if (textSize) {\n textStyle.setScale(textSize.scale);\n }\n\n if (font) {\n textStyle.setFont(font);\n }\n\n if (textColor) {\n const olColor = textColor.fill.concat([1]);\n const textFill = textStyle.getFill();\n textFill.setColor(olColor);\n textStyle.setFill(textFill);\n }\n\n textStyle.setRotation(textRotation);\n }\n\n // Update Icon style if it existed.\n let iconStyle = oldStyle.getImage();\n if (iconStyle instanceof Icon && icon) {\n iconStyle = new Icon({\n src: icon.url,\n scale: iconSize.scale,\n anchor: icon.anchor,\n });\n\n // We load the icon manually to be sure the size of the image's size is set asap.\n // Useful when you use a layer's styleFunction that makes some canvas operations.\n iconStyle.load();\n }\n\n return new Style({\n fill: fillStyle,\n stroke: strokeStyle,\n text: textStyle,\n image: iconStyle,\n zIndex: oldStyle.getZIndex(),\n });\n }", "function applyThematicStyle() {\n //console.log(\"applyThematicStyle: initiated\");\n \n mapLoadMask.hide();\n \n // Create StyleMap-Object for the thematic layer\n thematicStyleMap = new OpenLayers.StyleMap({\n 'default': getThematicStyle(\"Staaten thematisch\")\n });\n staaten.addOptions({\n styleMap: thematicStyleMap\n });\n // Redraw staaten layer\n staaten.redraw();\n //console.log(\"applyThematicStyle: Layer wurde neu gezeichnet\");\n\n // Update vectorLegend\n vectorLegend.legendTitle = getActiveLegendTitle();\n vectorLegend.setRules();\n vectorLegend.update();\n \n }", "setTextTrackStyle(textTrackStyle) {\n return Native.setTextTrackStyle(textTrackStyle);\n }", "function UpdateText(ref, newText){\n // Default vals\n noStroke(0); fill(255); textSize(20); textAlign(LEFT);\n \n switch(ref){\n case (0): { text(newText, 500, 25); break;}\n case (2): { text(newText, 200, 25); break;}\n case (3): {textAlign(CENTER); text(newText, width/2, 640); break;}\n }\n\n }", "setTextStroke(color, weight) {\n this.textStroke = color;\n this.strokeWeight = weight;\n }", "function selected2style(styleCommand) {\n if (!toolbar.data(\"sourceOpened\")) {\n\n // if selected to changing the font-size value\n if (styleCommand == \"fSize\")\n styleField = fsizebar;\n\n // if selected to changing the text-color value\n else if (styleCommand == \"colors\")\n styleField = cpalette;\n\n // display the style-field\n styleFieldSwitch(styleField, true);\n\n // the event of click to style button\n styleField.find(\"a\").unbind(\"click\").click(function () {\n var styleValue = $(this).attr(vars.css + \"-styleval\"); // the property of style value to be added\n\n // if selected to changing the font-size value\n if (styleCommand == \"fSize\") {\n styleType = \"font-size\";\n styleValue = styleValue + vars.funit; // combine the value with size unit\n }\n // if selected to changing the text-color value\n else if (styleCommand == \"colors\") {\n styleType = \"color\";\n styleValue = \"rgb(\" + styleValue + \")\"; // combine color value with rgb\n }\n\n var prevStyles = refuseStyle(styleType); // affect styles to child tags (and extract to the new style attributes)\n\n // change to selected text\n replaceSelection(\"span\", \"style\", styleType + \":\" + styleValue + \";\" + prevStyles);\n\n // hide all style-fields\n styleFieldSwitch(\"\", false);\n\n // remove title bubbles\n $('.' + vars.css + '_title').remove();\n\n // export contents of the text to the sources\n editor.trigger(\"change\");\n });\n\n }\n else\n // hide the style-field\n styleFieldSwitch(styleField, false);\n\n // hide the link-form-field\n linkAreaSwitch(false);\n }", "getStyle() {\n const DEFAULTS = RectObject.defaultProps.style;\n return Object.assign({}, DEFAULTS, this.props.style || {});\n }", "function LK_applyNormalStyle(elem) {\n elem.style.fontWeight = 'normal';\n elem.style.backgroundColor = 'white';\n}", "function Styles() {\n\n var defaultTraits = {\n\n 'no-fill': {\n fill: 'none'\n },\n 'no-border': {\n strokeOpacity: 0.0\n },\n 'no-events': {\n pointerEvents: 'none'\n }\n };\n\n var self = this;\n\n /**\n * Builds a style definition from a className, a list of traits and an object of additional attributes.\n *\n * @param {string} className\n * @param {Array<string>} traits\n * @param {Object} additionalAttrs\n *\n * @return {Object} the style defintion\n */\n this.cls = function(className, traits, additionalAttrs) {\n var attrs = this.style(traits, additionalAttrs);\n\n return assign$1(attrs, { 'class': className });\n };\n\n /**\n * Builds a style definition from a list of traits and an object of additional attributes.\n *\n * @param {Array<string>} traits\n * @param {Object} additionalAttrs\n *\n * @return {Object} the style defintion\n */\n this.style = function(traits, additionalAttrs) {\n\n if (!isArray$2(traits) && !additionalAttrs) {\n additionalAttrs = traits;\n traits = [];\n }\n\n var attrs = reduce(traits, function(attrs, t) {\n return assign$1(attrs, defaultTraits[t] || {});\n }, {});\n\n return additionalAttrs ? assign$1(attrs, additionalAttrs) : attrs;\n };\n\n this.computeStyle = function(custom, traits, defaultStyles) {\n if (!isArray$2(traits)) {\n defaultStyles = traits;\n traits = [];\n }\n\n return self.style(traits || [], assign$1({}, defaultStyles, custom || {}));\n };\n}", "getStyle() {\n const style = {};\n if (this.blockDef.bold) {\n style.fontWeight = \"bold\";\n }\n if (this.blockDef.italic) {\n style.fontStyle = \"italic\";\n }\n if (this.blockDef.underline) {\n style.textDecoration = \"underline\";\n }\n if (this.blockDef.align) {\n style.textAlign = this.blockDef.align;\n }\n // Multiline is only when not markdown\n if (this.blockDef.multiline && !this.blockDef.markdown) {\n style.whiteSpace = \"pre-line\";\n }\n return style;\n }", "function getDefaultValue(style, direction) {\r\n if (style === 'width') {\r\n return direction === 'horizontal' ? DEFAULT_WIDTH : '100%';\r\n }\r\n else {\r\n return direction === 'vertical' ? DEFAULT_HEIGHT : '100%';\r\n }\r\n}", "function Styles() {\n\n var defaultTraits = {\n\n 'no-fill': {\n fill: 'none'\n },\n 'no-border': {\n strokeOpacity: 0.0\n },\n 'no-events': {\n pointerEvents: 'none'\n }\n };\n\n var self = this;\n\n /**\n * Builds a style definition from a className, a list of traits and an object of additional attributes.\n *\n * @param {String} className\n * @param {Array<String>} traits\n * @param {Object} additionalAttrs\n *\n * @return {Object} the style defintion\n */\n this.cls = function(className, traits, additionalAttrs) {\n var attrs = this.style(traits, additionalAttrs);\n\n return assign(attrs, { 'class': className });\n };\n\n /**\n * Builds a style definition from a list of traits and an object of additional attributes.\n *\n * @param {Array<String>} traits\n * @param {Object} additionalAttrs\n *\n * @return {Object} the style defintion\n */\n this.style = function(traits, additionalAttrs) {\n\n if (!isArray(traits) && !additionalAttrs) {\n additionalAttrs = traits;\n traits = [];\n }\n\n var attrs = reduce(traits, function(attrs, t) {\n return assign(attrs, defaultTraits[t] || {});\n }, {});\n\n return additionalAttrs ? assign(attrs, additionalAttrs) : attrs;\n };\n\n this.computeStyle = function(custom, traits, defaultStyles) {\n if (!isArray(traits)) {\n defaultStyles = traits;\n traits = [];\n }\n\n return self.style(traits || [], assign(defaultStyles, custom || {}));\n };\n}", "function applyTextPlacement(textCanvas, placement) {\n // Setup TextCanvas layout settings of the new placement as it is required for further\n // TextBufferObject creation and measurements in addText().\n textCanvas.textLayoutStyle.horizontalAlignment = harp_text_canvas_1.hAlignFromPlacement(placement.h);\n textCanvas.textLayoutStyle.verticalAlignment = harp_text_canvas_1.vAlignFromPlacement(placement.v);\n}", "createStyle(styleString) {\n this.createStyleIn(styleString);\n }", "function setTextStyle(feature, resolution)\n {\n return new ol.style.Text({\n text:feature.get('name'),\n font: CONF_label_font,\n fill: new ol.style.Fill({color: CONF_label_color}),\n offsetX: CONF_label_offsetX,\n offsetY: CONF_label_offsetY\n });\n }", "function refuseStyle(refStyle) {\n var selectedTag = getSelectedNode(); // the selected node\n\n // if the selected node have attribute of \"style\" and it have unwanted style\n if (selectedTag && selectedTag.is(\"[style]\") && selectedTag.css(refStyle) != \"\") {\n var refValue = selectedTag.css(refStyle); // first get key of unwanted style\n\n selectedTag.css(refStyle, \"\"); // clear unwanted style\n\n var cleanStyle = selectedTag.attr(\"style\"); // cleaned style\n\n selectedTag.css(refStyle, refValue); // add unwanted style to the selected node again\n\n return cleanStyle; // print cleaned style\n }\n else\n return \"\";\n }", "function initialTractStyle(data) {\n\t\tvar id, _tid, _rid, d, estOrMar;\n\t\t_tid = cleanTID(data.properties.TID);\n\t\t_rid = data.properties.RID;\n\t\t//if (MAP_DEBUG) console.log(\" -> initialTractStyle() -> _tid = \", _tid, \" // _rid = \", _rid, \" // data = \", data);\n\n\t\t/*\n\t\t\t\tif (tractOrRegion == \"t\")\n\t\t\t\t\tid = _tid;\n\t\t\t\telse if (tractOrRegion == \"r\")\n\t\t\t\t\tid = _rid;\n\t\t*/\n\n\t\t// set default style\n\t\tvar defaultStyle = {\n\t\t\tfillColor: \"#000000\",\n\t\t\tweight: 1,\n\t\t\topacity: 0.5,\n\t\t\tcolor: 'white',\n\t\t\tfillOpacity: 0.7\n\t\t};\n\t\t// if we are showing estimate updateScale\n\t\tif (estimateOrMargin == \"e\") {\n\t\t\t// set color scale\n\t\t\tColor.updateScale();\n\t\t}\n\n\t\t// make sure _tid exists\n\t\tif (prop(currentScenario) && currentScenario[_tid]) {\n\t\t\t//if (MAP_DEBUG) console.log(\" -> initialTractStyle() -> setting style based on data\");\n\n\t\t\tlet val = 0;\n\n\t\t\t// determine whether to store tract / region AND estimate / margin\n\t\t\tif (estimateOrMargin == \"e\") {\n\t\t\t\tval = currentScenario[_tid][tractOrRegion + \"Est\"];\n\t\t\t\t//if (MAP_DEBUG) console.log(\" -> Mns.initialTractStyle() -> E\", \", val = \" + val, \", fillColor = \" + Color.getScale(val));\n\t\t\t\tdefaultStyle.fillColor = Color.getScale(val);\n\t\t\t} else if (estimateOrMargin == \"m\") {\n\t\t\t\tval = currentScenario[_tid][tractOrRegion + \"CV\"];\n\t\t\t\t//if (MAP_DEBUG) console.log(\" -> Mns.initialTractStyle() -> M\");\n\t\t\t\t// color by CV, but display MOE\n\t\t\t\tdefaultStyle.fillColor = Color.cvColorScale(val);\n\t\t\t}\n\n\t\t\t/*\n\t\t\t\t\t\t// use TID (without \"g\") or RID as a reference with currentScenario to get estimate\n\t\t\t\t\t\tif (tractOrRegion == \"t\")\n\t\t\t\t\t\t\td = currentScenario[_tid].tEst;\n\t\t\t\t\t\telse if (tractOrRegion == \"r\")\n\t\t\t\t\t\t\td = currentScenario[_tid].rEst;\n\n\t\t\t\t\t\t// update style color\n\t\t\t\t\t\tdefaultStyle.fillColor = blues(d);\n\t\t\t*/\n\t\t} // if no TID, currentScenario, or data found\n\t\telse {\n\t\t\tif (MAP_DEBUG) console.log(\" -> Mns.initialTractStyle() -> NO DATA, RETURNING DEFAULT STYLE\");\n\t\t\t// else just make default style transparent\n\t\t\tdefaultStyle.fillColor = \"#00000000\";\n\t\t}\n\t\t// return style object\n\t\treturn defaultStyle;\n\t}", "componentWillMount() {\n Text.defaultProps.style = {\n fontFamily: 'Roboto',\n color: '#444',\n };\n }", "getDefaultStyles() {\n const styles = [\n {\n key: 'mainTitle',\n style: { progress: 0 },\n },\n {\n key: 'subTitle',\n style: { progress: 0 },\n data: { precededBy: 'mainTitle' },\n },\n {\n key: 'divider',\n style: { progress: 0 },\n data: { precededBy: 'subTitle' },\n },\n {\n key: 'summary',\n style: { progress: 0 },\n data: { precededBy: 'divider', triggeredAt: 0.55 },\n },\n ];\n\n // Setup the icon styles using a loop, since they're all super similar.\n for (var i = 1; i <= 7; i++) {\n styles.push({\n key: 'icon' + i,\n style: { progress: 0 },\n data: { precededBy: 'divider', triggeredAt: (0.14 * i - 0.05) },\n });\n }\n\n return styles;\n }", "function configureStyles(){\n\t var _ = nvd3Utils.deepExtend(defaultStyles(), scope.options['styles'] || {});\n\n\t if (scope._config.extended) scope.options['styles'] = _;\n\n\t angular.forEach(_.classes, function(value, key){\n\t value ? element.addClass(key) : element.removeClass(key);\n\t });\n\n\t element.removeAttr('style').css(_.css);\n\t }", "function getDefaultValue(style, direction) {\n if (style === 'width') {\n return direction === 'horizontal' ? DEFAULT_WIDTH : '100%';\n }\n else {\n return direction === 'vertical' ? DEFAULT_HEIGHT : '100%';\n }\n}", "function getDefaultValue(style, direction) {\n if (style === 'width') {\n return direction === 'horizontal' ? DEFAULT_WIDTH : '100%';\n }\n else {\n return direction === 'vertical' ? DEFAULT_HEIGHT : '100%';\n }\n}", "function getDefaultValue(style, direction) {\n if (style === 'width') {\n return direction === 'horizontal' ? DEFAULT_WIDTH : '100%';\n }\n else {\n return direction === 'vertical' ? DEFAULT_HEIGHT : '100%';\n }\n}", "isCustomStyleApplied(editorState: EditorState) {\n const { selection, doc } = editorState;\n const { from, to } = selection;\n let customStyleName = RESERVED_STYLE_NONE;\n doc.nodesBetween(from, to, (node, pos) => {\n if (node.attrs.styleName) {\n customStyleName = node.attrs.styleName;\n }\n });\n return customStyleName;\n }", "reset() {\n Utils.deepCopyProperties(this, defaultStyle, defaultStyle);\n }", "function default_txt_c( col )\n\n // Set or return default text colour\n //\n // col: Default colour\n{\n if ( typeof col === \"undefined\" ) {\t// No new value provided?\n return dflt_txt_col;\t\t// Return value\n } else {\n dflt_txt_col = col;\t\t\t// Set value\n }\n}\t\t\t\t\t// End function default_txt_c", "function configureStyles(){\n var _ = nvd3Utils.deepExtend(defaultStyles(), scope.options['styles'] || {});\n\n if (scope._config.extended) scope.options['styles'] = _;\n\n angular.forEach(_.classes, function(value, key){\n value ? element.addClass(key) : element.removeClass(key);\n });\n\n element.removeAttr('style').css(_.css);\n }", "function configureStyles(){\n var _ = nvd3Utils.deepExtend(defaultStyles(), scope.options['styles'] || {});\n\n if (scope._config.extended) scope.options['styles'] = _;\n\n angular.forEach(_.classes, function(value, key){\n value ? element.addClass(key) : element.removeClass(key);\n });\n\n element.removeAttr('style').css(_.css);\n }", "function getDefaultFontSettings() {\n return {font: \"verdana\", size: 1};\n}", "function changeText_Back() {\n var sen = document.getElementById(\"changeMe\");\n sen.style.fontStyle = \"\";\n sen.style.fontWeight = \"\";\n sen.style.color = \"\";\n var sen2 = document.getElementById(\"changeMe2\");\n sen2.style.fontStyle = \"\";\n sen2.style.fontWeight = \"\";\n sen2.style.color = \"\";\n}", "function _updateDefaultFromTheme(componentContext) {\n var themeDefault = ThemeUtils.parseJSONFromFontFamily('oj-form-layout-option-defaults') || {}; // componentContext.props.labelEdge = themeDefault;\n\n if (componentContext) {\n if (!componentContext.props.labelEdge) {\n element.labelEdge = themeDefault.labelEdge;\n }\n\n if (!componentContext.props.colspanWrap) {\n element.colspanWrap = themeDefault.colspanWrap;\n }\n\n if (!componentContext.props.direction) {\n element.direction = themeDefault.direction;\n }\n } else {\n if (!element.labelEdge) {\n element.labelEdge = themeDefault.labelEdge;\n }\n\n if (!element.colspanWrap) {\n element.colspanWrap = themeDefault.colspanWrap;\n }\n\n if (!element.direction) {\n element.direction = themeDefault.direction;\n }\n }\n }", "getMessageStyle() {\n\t\treturn {\n\t\t\tfontSize: 20,\n\t\t\tcolor: this.state.color,\n\t\t\talignSelf: 'center'\n\t\t};\n\t}", "function setLabelLineStyle(targetEl, statesModels, defaultStyle) {\n var labelLine = targetEl.getTextGuideLine();\n var label = targetEl.getTextContent();\n\n if (!label) {\n // Not show label line if there is no label.\n if (labelLine) {\n targetEl.removeTextGuideLine();\n }\n\n return;\n }\n\n var normalModel = statesModels.normal;\n var showNormal = normalModel.get('show');\n var labelIgnoreNormal = label.ignore;\n\n for (var i = 0; i < _util_states__WEBPACK_IMPORTED_MODULE_9__[/* DISPLAY_STATES */ \"a\"].length; i++) {\n var stateName = _util_states__WEBPACK_IMPORTED_MODULE_9__[/* DISPLAY_STATES */ \"a\"][i];\n var stateModel = statesModels[stateName];\n var isNormal = stateName === 'normal';\n\n if (stateModel) {\n var stateShow = stateModel.get('show');\n var isLabelIgnored = isNormal ? labelIgnoreNormal : Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_6__[/* retrieve2 */ \"P\"])(label.states[stateName] && label.states[stateName].ignore, labelIgnoreNormal);\n\n if (isLabelIgnored // Not show when label is not shown in this state.\n || !Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_6__[/* retrieve2 */ \"P\"])(stateShow, showNormal) // Use normal state by default if not set.\n ) {\n var stateObj = isNormal ? labelLine : labelLine && labelLine.states.normal;\n\n if (stateObj) {\n stateObj.ignore = true;\n }\n\n continue;\n } // Create labelLine if not exists\n\n\n if (!labelLine) {\n labelLine = new _util_graphic__WEBPACK_IMPORTED_MODULE_2__[/* default */ \"a\"]();\n targetEl.setTextGuideLine(labelLine); // Reset state of normal because it's new created.\n // NOTE: NORMAL should always been the first!\n\n if (!isNormal && (labelIgnoreNormal || !showNormal)) {\n setLabelLineState(labelLine, true, 'normal', statesModels.normal);\n } // Use same state proxy.\n\n\n if (targetEl.stateProxy) {\n labelLine.stateProxy = targetEl.stateProxy;\n }\n }\n\n setLabelLineState(labelLine, false, stateName, stateModel);\n }\n }\n\n if (labelLine) {\n Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_6__[/* defaults */ \"j\"])(labelLine.style, defaultStyle); // Not fill.\n\n labelLine.style.fill = null;\n var showAbove = normalModel.get('showAbove');\n var labelLineConfig = targetEl.textGuideLineConfig = targetEl.textGuideLineConfig || {};\n labelLineConfig.showAbove = showAbove || false; // Custom the buildPath.\n\n labelLine.buildPath = buildLabelLinePath;\n }\n}", "function styleNull() {\n this.style.removeProperty(name);\n }", "function updateTextPadding() {\n var styles = wrapper.styles,\n textAlign = styles && styles.textAlign,\n x = paddingLeft + padding * (1 - alignFactor),\n y;\n \n // determin y based on the baseline\n y = baseline ? 0 : baselineOffset;\n \n // compensate for alignment\n if (defined(width) && bBox && (textAlign === 'center' || textAlign === 'right')) {\n x += { center: 0.5, right: 1 }[textAlign] * (width - bBox.width);\n }\n \n // update if anything changed\n if (x !== text.x || y !== text.y) {\n text.attr('x', x);\n if (y !== UNDEFINED) {\n text.attr('y', y);\n }\n }\n \n // record current values\n text.x = x;\n text.y = y;\n }" ]
[ "0.8612479", "0.8612479", "0.69574237", "0.68188125", "0.6409353", "0.6377287", "0.6057339", "0.59188133", "0.5891148", "0.58824503", "0.5709304", "0.5670272", "0.5625694", "0.5582218", "0.55812746", "0.55652595", "0.556286", "0.55606073", "0.5515488", "0.55114144", "0.550188", "0.550188", "0.54902065", "0.5469506", "0.5419971", "0.5310167", "0.5296438", "0.52909225", "0.525485", "0.5245296", "0.51488817", "0.51344734", "0.5112975", "0.5112975", "0.5112975", "0.51077014", "0.5088457", "0.5087857", "0.50627136", "0.5029419", "0.49896303", "0.4976359", "0.49645075", "0.49301162", "0.49301162", "0.49301162", "0.49239036", "0.49101385", "0.4888237", "0.48815924", "0.48437807", "0.47978213", "0.4796696", "0.4759014", "0.47545904", "0.4710171", "0.4707639", "0.4704194", "0.46788868", "0.46770763", "0.46770763", "0.46770763", "0.46770763", "0.46721417", "0.46480808", "0.46159297", "0.4613209", "0.46036965", "0.45914745", "0.4563408", "0.45495757", "0.4546211", "0.45446745", "0.45299733", "0.45244354", "0.45202434", "0.4517261", "0.4512556", "0.45119205", "0.44976723", "0.44894204", "0.4486712", "0.44815746", "0.44756582", "0.44737017", "0.44737017", "0.44737017", "0.44706854", "0.44699022", "0.44687226", "0.44576278", "0.44576278", "0.44558823", "0.44542894", "0.44499302", "0.44418812", "0.4434541", "0.44308624", "0.44281408" ]
0.84855735
3
Apply group transition animation from g1 to g2. If no animatableModel, no animation.
function groupTransition(g1, g2, animatableModel, cb) { if (!g1 || !g2) { return; } function getElMap(g) { var elMap = {}; g.traverse(function (el) { if (!el.isGroup && el.anid) { elMap[el.anid] = el; } }); return elMap; } function getAnimatableProps(el) { var obj = { position: vector.clone(el.position), rotation: el.rotation }; if (el.shape) { obj.shape = zrUtil.extend({}, el.shape); } return obj; } var elMap1 = getElMap(g1); g2.traverse(function (el) { if (!el.isGroup && el.anid) { var oldEl = elMap1[el.anid]; if (oldEl) { var newProp = getAnimatableProps(el); el.attr(getAnimatableProps(oldEl)); updateProps(el, newProp, animatableModel, el.dataIndex); } // else { // if (el.previousProps) { // graphic.updateProps // } // } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function groupTransition(g1, g2, animatableModel) {\n\t if (!g1 || !g2) {\n\t return;\n\t }\n\t\n\t function getElMap(g) {\n\t var elMap = {};\n\t g.traverse(function (el) {\n\t if (isNotGroup(el) && el.anid) {\n\t elMap[el.anid] = el;\n\t }\n\t });\n\t return elMap;\n\t }\n\t\n\t function getAnimatableProps(el) {\n\t var obj = {\n\t x: el.x,\n\t y: el.y,\n\t rotation: el.rotation\n\t };\n\t\n\t if (isPath(el)) {\n\t obj.shape = extend({}, el.shape);\n\t }\n\t\n\t return obj;\n\t }\n\t\n\t var elMap1 = getElMap(g1);\n\t g2.traverse(function (el) {\n\t if (isNotGroup(el) && el.anid) {\n\t var oldEl = elMap1[el.anid];\n\t\n\t if (oldEl) {\n\t var newProp = getAnimatableProps(el);\n\t el.attr(getAnimatableProps(oldEl));\n\t updateProps(el, newProp, animatableModel, getECData(el).dataIndex);\n\t }\n\t }\n\t });\n\t }", "function groupTransition(g1, g2, animatableModel) {\n if (!g1 || !g2) {\n return;\n }\n\n function getElMap(g) {\n var elMap = {};\n g.traverse(function (el) {\n if (isNotGroup(el) && el.anid) {\n elMap[el.anid] = el;\n }\n });\n return elMap;\n }\n\n function getAnimatableProps(el) {\n var obj = {\n x: el.x,\n y: el.y,\n rotation: el.rotation\n };\n\n if (isPath(el)) {\n obj.shape = Object(zrender_lib_core_util__WEBPACK_IMPORTED_MODULE_26__[/* extend */ \"m\"])({}, el.shape);\n }\n\n return obj;\n }\n\n var elMap1 = getElMap(g1);\n g2.traverse(function (el) {\n if (isNotGroup(el) && el.anid) {\n var oldEl = elMap1[el.anid];\n\n if (oldEl) {\n var newProp = getAnimatableProps(el);\n el.attr(getAnimatableProps(oldEl));\n updateProps(el, newProp, animatableModel, Object(_innerStore__WEBPACK_IMPORTED_MODULE_27__[/* getECData */ \"a\"])(el).dataIndex);\n }\n }\n });\n}", "function transitionGroup() {\n vis.selectAll(\"g.layer rect\")\n .transition()\n .duration(500)\n .delay(function(d, i) { return (i % m) * 10; })\n .attr(\"x\", function(d, i) { return x({x: .9 * ~~(i / m) / n}); })\n .attr(\"width\", x({x: .9 / n}))\n .each(\"end\", transitionEnd);\n\n function transitionEnd() {\n d3.select(this)\n .transition()\n .duration(500)\n .attr(\"y\", function(d) { return height - y2(d); })\n .attr(\"height\", y2);\n }\n }", "function animateUngrouping(group) {\n var GAP = 10; //we want a 10 pixel gap between objects to show that they're no longer grouped together.\n //Figure out which is the left most and which is the right most object. The left most object will move left and the right most object will move right. TODO: What implications does this have for the rest of the scene? For example, when the left most object is also one connected to an object to its right. Do we want to put in additional rules to deal with this, or are we going to calculate the \"left-most\" and \"right-most\" objects as whatever groups of objects we'll need to move. Should we instead move the smaller of the two objects away from the larger of the two. What about generalizability? What happens when we've got 2 groups of objects that need to ungroup, or alternately what if the object is connected to multiple things at once, how do we move it away from the object that it was just ungrouped from, while keeping it connected to the objects it's still grouped with. Do we animate both sets of objects or just one set of objects?\n \n //Lets start with the simplest case and go from there. 2 objects are grouped together and we just want to move them apart.\n //There are 2 possibilities. Either they are partially overlapping (or connected on the edges), or one object is contained within the other.\n //Figure out which one is the correct one. Then figure out which direction to move them and which object we're moving if we're not moving both.\n //If object 1 is contained within object 2.\n if(objectContainedInObject(group.obj1, group.obj2)) {\n //alert(\"check 1\" + group.obj1.id + \" contained in \" + group.obj2.id);\n //For now just move the object that's contained within the other object toward the left until it's no longer overlapping.\n //Also make sure you're not moving it off screen.\n while((group.obj1.offsetLeft + group.obj1.offsetWidth + GAP > group.obj2.offsetLeft) &&\n (group.obj1.offsetLeft - STEP > 0)) {\n move(group.obj1, group.obj1.offsetLeft - STEP, group.obj1.offsetTop, false);\n }\n }\n //If object 2 is contained within object 1.\n else if(objectContainedInObject(group.obj2, group.obj1)) {\n //alert(\"check 2\" + group.obj2.id + \" contained in \" + group.obj1.id);\n //For now just move the object that's contained within the other object toward the left until it's no longer overlapping.\n //Also make sure you're not moving it off screen.\n \n while((group.obj2.offsetLeft + group.obj2.offsetWidth + GAP > group.obj1.offsetLeft) &&\n (group.obj2.offsetLeft - STEP > 0)) {\n move(group.obj2, group.obj2.offsetLeft - STEP, group.obj2.offsetTop, false);\n }\n }\n //Otherwise, partially overlapping or connected on the edges.\n else {\n //Figure out which is the leftmost object.\n if(group.obj1.offsetLeft < group.obj2.offsetLeft) {\n //Move obj1 left by STEP and obj2 right by STEP until there's a distance of 10 pixels between them.\n //Also make sure you're not moving either object offscreen.\n while(group.obj1.offsetLeft + group.obj1.offsetWidth + GAP > group.obj2.offsetLeft) {\n if(group.obj1.offsetLeft - STEP > 0)\n move(group.obj1, group.obj1.offsetLeft - STEP, group.obj1.offsetTop, false);\n \n if(group.obj2.offsetLeft + group.obj2.offsetWidth + STEP < window.innerWidth)\n move(group.obj2, group.obj2.offsetLeft + STEP, group.obj1.offsetTop, false);\n }\n }\n else {\n //Move obj2 left by STEP and obj1 right by STEP until there's a distance of 10 pixels between them.\n //Change the location of the object.\n while(group.obj2.offsetLeft + group.obj2.offsetWidth + GAP > group.obj1.offsetLeft) {\n if(group.obj1.offsetLeft + group.obj1.offsetWidth + STEP < window.innerWidth)\n move(group.obj1, group.obj1.offsetLeft + STEP, group.obj1.offsetTop, false);\n \n if(group.obj2.offsetLeft - STEP > 0)\n move(group.obj2, group.obj2.offsetLeft - STEP, group.obj2.offsetTop, false);\n }\n }\n }\n}", "function transition(d) {\n if (transitioning || !d) return;\n transitioning = true;\n var g2 = display(d),\n t1 = g1.transition().duration(650),\n t2 = g2.transition().duration(650);\n // Update the domain only after entering new elements.\n x.domain([d.x0, d.x1]);\n y.domain([d.y0, d.y1]);\n // Enable anti-aliasing during the transition.\n svg.style(\"shape-rendering\", null);\n // Draw child nodes on top of parent nodes.\n svg.selectAll(\".depth\").sort(function(a, b) {\n return a.depth - b.depth;\n });\n // Fade-in entering text.\n g2.selectAll(\"text\").style(\"fill-opacity\", 0);\n g2.selectAll(\"foreignObject div\").style(\"display\", \"none\");\n /*added*/\n // Transition to the new view.\n t1.selectAll(\"text\")\n .call(text)\n .style(\"fill-opacity\", 0);\n t2.selectAll(\"text\")\n .call(text)\n .style(\"fill-opacity\", 1);\n t1.selectAll(\"rect\").call(rect);\n t2.selectAll(\"rect\").call(rect);\n\n /* Foreign object */\n t1.selectAll(\".textdiv\").style(\"display\", \"none\");\n /* added */\n t1.selectAll(\".foreignobj\").call(foreign);\n /* added */\n t2.selectAll(\".textdiv\").style(\"display\", \"block\");\n /* added */\n t2.selectAll(\".foreignobj\").call(foreign);\n /* added */\n // Remove the old node when the transition is finished.\n t1.on(\"end.remove\", function() {\n this.remove();\n transitioning = false;\n });\n }", "updateAnimation() {\n this.animator.animate();\n }", "function switchAnimation(group) {\n [$main_animation, $jackpot_odometers, $win_odometers].forEach(function (item) {\n item.each(function () {\n var data_group = $(this).attr('data-group');\n $(this).toggle(data_group == group);\n });\n });\n stretchVideo();\n}", "attachAnimations( group ) {\n this.log(\"Animation group:\"+group.name, group);\n var animationGroup = new BABYLON.AnimationGroup(group.name, this.scene);\n group.animations.forEach( a => {\n // CHECKME: fps\n var animation = new BABYLON.Animation( a.animationName, a.propertyName, a.fps, a.dataType, BABYLON.Animation.ANIMATIONLOOPMODE_CYCLE);\n animation.enableBlending = true;\n animation.blendingSpeed = 0.1;\n var bone = this.skeleton.getBoneIndexByName(a.targetName);\n if ( bone >= 0 ) {\n var target = this.skeleton.bones[bone].getTransformNode();\n } else {\n console.log(\"Missing target \"+a.targetName);\n return;\n }\n var keys = [];\n if ( a.dataType == BABYLON.Animation.ANIMATIONTYPE_VECTOR3 ) {\n a.keys.forEach( key => {\n var k = {frame: key.frame, value:new BABYLON.Vector3(key.value.x, key.value.y, key.value.z)};\n if ( key.interpolation ) {\n k.interpolation = key.interpolation;\n }\n keys.push( k );\n });\n } else if ( a.dataType == BABYLON.Animation.ANIMATIONTYPE_QUATERNION ) {\n a.keys.forEach( key => {\n keys.push( {frame: key.frame, value:new BABYLON.Quaternion(key.value.x, key.value.y, key.value.z, key.value.w)} );\n });\n } else {\n // ERROR\n console.log(\"Unsupported datatype \"+a.dataType);\n }\n animation.setKeys(keys);\n animationGroup.addTargetedAnimation(animation, target);\n });\n \n animationGroup.loopAnimation = true; // CHECKME\n \n var groups = this.getAnimationGroups();\n for ( var i = 0; i < groups.length; i++ ) {\n if ( groups[i].name == animationGroup.name ) {\n var old = groups[i];\n console.log(\"old\",old);\n groups[i] = animationGroup;\n if ( old.isPlaying ) {\n old.stop();\n }\n old.dispose();\n return;\n }\n }\n groups.push(animationGroup);\n }", "mainD3GroupTransition() {\n const config = this.props.config;\n const transStr = 'translate(' + config.bounds.left + ', ' + config.bounds.top + ')';\n const mainGroup = D3.select('.chart-main-group');\n mainGroup.transition().duration(config.duration).attr('transform', transStr);\n }", "updateAnimation() {\n for (let geom of this.geometries) {\n geom.updateAnimation();\n }\n \n for (let geom of this.texGeometries) {\n geom.updateAnimation();\n }\n }", "function transition(d) {\n if (transitioning || !d) return;\n transitioning = true;\n\n var g2 = display(d),\n t1 = g1.transition().duration(750),\n t2 = g2.transition().duration(750);\n\n // Update the domain only after entering new elements.\n x.domain([d.x, d.x + d.dx]);\n y.domain([d.y, d.y + d.dy]);\n\n // Enable anti-aliasing during the transition.\n svg.style(\"shape-rendering\", null);\n\n // Draw child nodes on top of parent nodes.\n svg.selectAll(\".depth\").sort(function(a, b) { return a.depth - b.depth; });\n // Fade-in entering text.\n g2.selectAll(\"text\").style(\"fill-opacity\", 0);\n g2.selectAll(\"foreignObject div\").style(\"display\", \"none\");\n\n // Transition to the new view.\n t1.selectAll(\"text\").call(text).style(\"fill-opacity\", 0);\n t2.selectAll(\"text\").call(text).style(\"fill-opacity\", 1);\n t1.selectAll(\"rect\").call(rect);\n t2.selectAll(\"rect\").call(rect);\n\n /* Foreign object */\n \t\t t1.selectAll(\".textdiv\").style(\"display\", \"none\"); /* added */\n \t\t t1.selectAll(\".foreignobj\").call(foreign); /* added */\n \t\t t2.selectAll(\".textdiv\").style(\"display\", \"block\"); /* added */\n \t\t t2.selectAll(\".foreignobj\").call(foreign); /* added */\n\n // Remove the old node when the transition is finished.\n t1.remove().each(\"end\", function() {\n svg.style(\"shape-rendering\", \"crispEdges\");\n transitioning = false;\n });\n\n }", "function transition(d) {\n if (transitioning || !d) return;\n transitioning = true;\n\n var g2 = display(d),\n t1 = g1.transition().duration(750),\n t2 = g2.transition().duration(750);\n\n // Update the domain only after entering new elements.\n x.domain([d.x, d.x + d.dx]);\n y.domain([d.y, d.y + d.dy]);\n\n // Enable anti-aliasing during the transition.\n svg.style(\"shape-rendering\", null);\n\n // Draw child nodes on top of parent nodes.\n svg.selectAll(\".depth\").sort(function(a, b) { return a.depth - b.depth; });\n\n // Fade-in entering text.\n g2.selectAll(\"text\").style(\"fill-opacity\", 0);\n g2.selectAll(\"foreignObject div\").style(\"display\", \"none\");\n\n // Transition to the new view.\n t1.selectAll(\"text\").call(text).style(\"fill-opacity\", 0);\n t2.selectAll(\"text\").call(text).style(\"fill-opacity\", 1);\n t1.selectAll(\"rect\").call(rect);\n t2.selectAll(\"rect\").call(rect);\n\n /* Foreign object */\n t1.selectAll(\".textdiv\").style(\"display\", \"none\"); /* added */\n t1.selectAll(\".foreignobj\").call(foreign); /* added */\n t2.selectAll(\".textdiv\").style(\"display\", \"block\"); /* added */\n t2.selectAll(\".foreignobj\").call(foreign); /* added */\n\n // Remove the old node when the transition is finished.\n t1.remove().each(\"end\", function() {\n svg.style(\"shape-rendering\", \"crispEdges\");\n transitioning = false;\n });\n\n }", "function transition(d) {\n if (transitioning || !d) return;\n transitioning = true;\n var g2 = display(d),\n t1 = g1.transition().duration(650),\n t2 = g2.transition().duration(650);\n // Update the domain only after entering new elements.\n x.domain([d.x0, d.x1]);\n y.domain([d.y0, d.y1]);\n // Enable anti-aliasing during the transition.\n tree_svg.style(\"shape-rendering\", null);\n // Draw child nodes on top of parent nodes.\n tree_svg.selectAll(\".depth\").sort(function (a, b) {\n return a.depth - b.depth;\n });\n // Fade-in entering text.\n g2.selectAll(\"text\").style(\"fill-opacity\", 0);\n g2.selectAll(\"foreignObject div\").style(\"display\", \"none\");\n /*added*/\n // Transition to the new view.\n t1.selectAll(\"text\").call(text).style(\"fill-opacity\", 0);\n t2.selectAll(\"text\").call(text).style(\"fill-opacity\", 1);\n t1.selectAll(\"rect\").call(rect);\n t2.selectAll(\"rect\").call(rect);\n /* Foreign object */\n t1.selectAll(\".textdiv\").style(\"display\", \"none\");\n /* added */\n t1.selectAll(\".foreignobj\").call(foreign);\n /* added */\n t2.selectAll(\".textdiv\").style(\"display\", \"block\");\n /* added */\n t2.selectAll(\".foreignobj\").call(foreign);\n /* added */\n // Remove the old node when the transition is finished.\n t1.on(\"end.remove\", function () {\n this.remove();\n transitioning = false;\n });\n }", "function animate() {\n renderer.render(scene, camera);\n\n // Rotate out group \n svgGroup.rotation.y += 0.01;\n\n requestAnimationFrame(animate);\n}", "function anim() {\n $(\"#lightsaber2\").addClass(\"animation2\");\n setTimeout(function() {\n $(\"#lightsaber2\").removeClass(\"animation2\");\n }, 300);\n $(\"#lightsaber1\").addClass(\"animation\");\n\n setTimeout(function() {\n $(\"#lightsaber1\").removeClass(\"animation\");\n }, 300);\n }", "function animateGrouping(group) {\n //Calculate the total change that needs to occur, even though we'll only move a small step size towards the hotspot every time.\n var deltaX = group.obj2x - group.obj1x;\n var deltaY = group.obj2y - group.obj1y;\n \n //Check to see whether there is more animation to be done (assume that deltaX and deltaY will both be 0 if no more animation needs to occur.\n if((deltaX != 0) || (deltaY != 0)) {\n //used for the specific change that occurs on this animation turn.\n var changeX = 0;\n var changeY = 0;\n \n //Check to see if delta change is greater than the step size (currently 5 pixels), and whether it's positive or negative.\n //Use this information to determine how much to move on this turn.\n if(deltaX < -STEP)\n changeX = -STEP;\n else if(deltaX < 0)\n changeX = deltaX;\n else if(deltaX > STEP)\n changeX = STEP;\n else if(deltaX > 0)\n changeX = deltaX;\n \n if(deltaY < -STEP)\n changeY = -STEP;\n else if(deltaY < 0)\n changeY = deltaY;\n else if(deltaY > STEP)\n changeY = STEP;\n else if(deltaY > 0)\n changeY = deltaY;\n \n //Update the x,y coordinates of the connection point for obj1 based on the new location.\n //Why is it that if these two lines of code get commented out with the added nested for loop in the move function\n //the code freezes?\n group.obj1x = group.obj1x + changeX;\n group.obj1y = group.obj1y + changeY;\n \n //Move the object using the move function so that all other objects it's already connected to are moved with it.\n move(group.obj1, group.obj1.offsetLeft + changeX, group.obj1.offsetTop + changeY, false);\n \n //Call the function again after a 200 ms delay. TODO: Figure out why the delay isn't working.\n setTimeout(animateGrouping(group), 5000);\n }\n}", "function swapArrayGs(ind1, ind2) {\n \n var g1 = d3.select('#artextg' + ind1)\n var gx1 = g1.attr('x')\n var g2 = d3.select('#artextg' + ind2)\n var gx2 = g2.attr('x')\n var g1Start = g1.select('text').text();\n var g2Start = g2.select('text').text()\n \n // console.log('startiing val ', g1Start)\n var xdis = gx2 - gx1\n \n g1.select('text').transition()\n .duration(duration)\n .attr(\"transform\", \"translate(\" + xdis + ', 0)')\n .on('end', function(d,i){\n // console.log('d = ', d, 'this = ???', this)\n g1.select('text').attr('transform','translate(0, 0)').text(g2Start);\n })\n \n g2.select('text').transition()\n .duration(duration)\n .attr(\"transform\", \"translate(\" + (-xdis) + ', 0)')\n .on('end', function(d,i){\n // console.log('d = ', d, 'this = ???', this)\n g2.select('text').attr('transform','translate(0, 0)').text(g1Start);\n updateRectSizes();\n })\n }", "function update_groups(x,y){\n d3.selectAll(\".group\").remove();\n create_groups();\n // This code is tested and works to update. It's here if needed.\n // var area = d3.area()\n // .curve(d3.curveBasisOpen)\n // .x(function(d) { return x(d.x); })\n // .y0(function(d) { return y(d.y); })\n // .y1(function(d) { return y(d.height); });\n //\n // d3.selectAll(\".group\")\n // .transition()\n // .attr(\"d\", area);\n}", "function animate() { \n console.log('animate')\n \n gsap.registerEffect({\n name: \"fadeIn\",\n effect: (targets, config) => {\n var tlEffect = gsap.timeline();\n tlEffect.from(targets, {duration: config.duration, y:config.y, force3D:true, rotation: 0.01, stagger:config.stagger, ease:\"power2\"})\n .from(targets, {duration: config.duration, stagger:config.stagger, alpha:0, ease:\"none\"}, \"<\")\n return tlEffect;\n },\n defaults: {duration: 1.5, y:\"-=7\", stagger:4.5},\n extendTimeline: true,\n });\n \n gsap.to(plantWraps, {duration:25, rotation:\"+=20\", ease:\"none\"})\n gsap.to(flowerWraps, {duration:25, rotation:\"+=100\", ease:\"none\"})\n \n var imageDivs = selectAll('.imageDiv');\n // logoIntro = false;\n\n\t\t\ttl\n .to(bannerCover, {duration:0.7, alpha:0, ease:\"none\"})\n \n .from(plants, {duration:3, drawSVG:\"50% 50%\", ease:\"sine.inOut\"}, \"<\")\n .from(flowers, {duration:2, alpha:0, ease:\"none\"}, \"<\")\n \n if(logoIntro) {\n tl\n .from(letter_w, {duration:0.5, drawSVG: 0, ease:\"sine.in\"}, \"<\")\n .from(letter_y, {duration:0.3, drawSVG: 0, ease:\"sine.in\"}, \">\")\n .from(letter_nn, {duration:0.8, drawSVG: 0, ease:\"sine.inOut\"}, \">\")\n .from(lasvegas, {duration:0.7, y:\"-=10\", alpha: 0, ease:\"sine\"}, \">\")\n .from(sign_r, {duration:0.5, alpha: 0, ease:\"none\"}, \"<\")\n\n .to(logo, {duration:0.7, alpha:0, ease:\"none\"}, \">1\")\n .set(logo, {scale: 0.37, y:99, x:-60}, \">\")\n } else {\n tl\n .set(logo, {scale: 0.37, alpha:0,y:99, x:-60}, \"<\")\n }\n \n tl\n .from(imageDivs, {duration:1.3, stagger:4, alpha:0, blur:10, force3D:true, rotation: 0.01, ease:\"none\"}, \"<\")\n \n .fadeIn(text_head, \"<0.4\")\n .fadeIn(text_subHead,{y:\"0\", duration: 1,},\"<0.6\")\n .to(logo, {duration:1, alpha:1, ease:\"none\"}, \"<0.4\")\n .from(cta, {duration:0.8, alpha: 0, ease:\"none\"}, \"<\")\n .from(cta, {duration:1.6, rotateX:90, ease:\"power2\"}, \"<\") \n\t\t}", "processAnimations(animationGroup) {\n var group = {\n name: animationGroup.name,\n animations: []\n };\n animationGroup.targetedAnimations.forEach( ta => {\n //console.log(\"animation: \"+ta.animation.name+\" target: \"+ta.target.getClassName()+\" \"+ta.target.name+\" type \"+ta.animation.dataType+\" property \"+ta.animation.targetProperty);\n var animation = {\n animationName:ta.animation.name,\n fps: ta.animation.framePerSecond,\n targetName:ta.target.name,\n propertyName: ta.animation.targetProperty,\n dataType: ta.animation.dataType,\n keys: []\n };\n var keys = ta.animation.getKeys();\n // position, rotation, scaling\n if ( ta.animation.dataType == BABYLON.Animation.ANIMATIONTYPE_VECTOR3 ) {\n keys.forEach( key => {\n var k = {frame:key.frame, value:{x:key.value.x, y:key.value.y, z:key.value.z}};\n if ( key.interpolation ) {\n k.interpolation = key.interpolation;\n }\n animation.keys.push(k);\n });\n } else if ( ta.animation.dataType == BABYLON.Animation.ANIMATIONTYPE_QUATERNION ) {\n keys.forEach( key => {\n animation.keys.push({frame:key.frame, value:{x:key.value.x, y:key.value.y, z:key.value.z, w:key.value.w}});\n });\n } else {\n // ERROR\n console.log(\"Error processing \"+group.name+\" = can't hanle type \"+ta.animation.dataType)\n }\n group.animations.push(animation);\n });\n return group;\n }", "function update2(data) {\n\n // Update the X axis\n x2.domain(data.map(function(d) { return d.group; }))\n xAxis2.call(d3.axisBottom(x2))\n\n // Update the Y axis\n y2.domain([0, d3.max(data, function(d) { return d.value }) ]);\n yAxis2.transition().duration(1000).call(d3.axisLeft(y2));\n\n // Create the u variable\n var u2 = svg2.selectAll(\"rect\")\n .data(data)\n\n u2\n .enter()\n .append(\"rect\") // Add a new rect for each new elements\n .merge(u2) // get the already existing elements as well\n .transition() // and apply changes to all of them\n .duration(1000)\n .attr(\"x\", function(d) { return x2(d.group); })\n .attr(\"y\", function(d) { return y2(d.value); })\n .attr(\"width\", x2.bandwidth())\n .attr(\"height\", function(d) { return height - y2(d.value); })\n .attr(\"fill\", \"#5F9EA0\")\n\n // If less group in the new dataset, I delete the ones not in use anymore\n u2\n .exit()\n .remove()\n}", "function animate(){\n svg.transition()\n .duration(30000)\n .ease(d3.easeLinear)\n .tween(\"year\", tweenYear);\n }", "function transition() {\n if(animFlag){\n d3.selectAll(\".line\").transition().duration(1000).ease(\"linear\")\n .style(\"stroke-dashoffset\", \"12\")\n .each(\"end\", function() {\n d3.selectAll(\".line\").style(\"stroke-dashoffset\", \"0\");\n transition();\n });\n }\n }", "function update(selectedGroup) {\n\n // Create new data with the selection?\n var dataFilter = data.map(function(d){return {x: d.x, y: d[selectedGroup]} })\n\n console.log(dataFilter);\n\n line2\n .transition()\n .duration(0)\n .attr(\"y1\", 0)\n .attr(\"y2\", 0)\n .attr(\"x1\", 70)\n .attr(\"x2\", 70)\n .attr(\"stroke\", \"white\")\n\n line3\n .transition()\n .duration(0)\n .attr(\"y1\", 0)\n .attr(\"y2\", 0)\n .attr(\"x1\", 70)\n .attr(\"x2\", 70)\n .attr(\"stroke\", \"white\")\n\n line4\n .transition()\n .duration(0)\n .attr(\"y1\", 0)\n .attr(\"y2\", 0)\n .attr(\"x1\", 70)\n .attr(\"x2\", 70)\n .attr(\"stroke\", \"white\")\n\n line2_2\n .transition()\n .duration(0)\n .attr(\"y1\", 310)\n .attr(\"y2\", 310)\n .attr(\"x1\", 70)\n .attr(\"x2\", 70)\n .attr(\"stroke\", \"white\")\n\n line3_2\n .transition()\n .duration(0)\n .attr(\"y1\", 310)\n .attr(\"y2\", 310)\n .attr(\"x1\", 70)\n .attr(\"x2\", 70)\n .attr(\"stroke\", \"white\")\n\n line4_2\n .transition()\n .duration(0)\n .attr(\"y1\", 310)\n .attr(\"y2\", 310)\n .attr(\"x1\", 70)\n .attr(\"x2\", 70)\n .attr(\"stroke\", \"white\")\n\n rtlabt90\n .transition()\n .duration(0)\n .attr(\"y\", 100)\n .attr(\"x\", -150)\n .attr(\"dy\", \"0em\")\n .text(\"\");\n\n rtlabt50\n .transition()\n .duration(0)\n .attr(\"y\", 100)\n .attr(\"x\", -150)\n .attr(\"dy\", \"0em\")\n .text(\"\");\n\n rtlabt10\n .transition()\n .duration(0)\n .attr(\"y\", 100)\n .attr(\"x\", -150)\n .attr(\"dy\", \"0em\")\n .text(\"\");\n\n\n // Give these new data to update line\n line\n .datum(dataFilter)\n .transition()\n .duration(500)\n .attr(\"d\", d3.line().curve(d3.curveStepAfter)\n .x(function(d) { return x(d.x) + 70 })\n .y(function(d) { return y(d.y) + 10 })\n )\n .attr(\"stroke\", \"steelblue\")\n }", "apply() {\n this.scene.multMatrix(this.animTransform);\n }", "getAnimationGroups(animationGroups = this.character.animationGroups) {\n if (!this.animationGroups) {\n var loopAnimations = true;\n if ( this.fixes && typeof this.fixes.loopAnimations !== 'undefined' ) {\n loopAnimations = this.fixes.loopAnimations;\n }\n if ( this.fixes && this.fixes.animationGroups ) {\n this.animationGroups = [];\n // animation groups overriden; process animation groups and generate new ones\n for ( var j = 0; j < this.fixes.animationGroups.length; j++ ) {\n var override = this.fixes.animationGroups[j];\n // find source group\n for ( var i = 0; i < animationGroups.length; i++ ) {\n var group = animationGroups[i];\n if ( group.name == override.source ) {\n var newGroup = group;\n if ( override.start || override.end ) {\n // now slice it and generate new group\n newGroup = this.sliceGroup( group, override.start, override.end );\n }\n if ( override.name ) {\n newGroup.name = override.name;\n }\n if ( typeof override.loop !== 'undefined' ) {\n newGroup.loopAnimation = override.loop;\n } else {\n newGroup.loopAnimation = loopAnimations;\n }\n this.animationGroups.push( newGroup );\n break;\n }\n }\n }\n } else {\n this.animationGroups = animationGroups;\n for ( var i=0; i<this.animationGroups.length; i++ ) {\n this.animationGroups[i].loopAnimation = loopAnimations;\n }\n }\n }\n return this.animationGroups;\n }", "set animated(value){\n this._animated = value;\n \n if(this._animated){\n this.gshape.animate = this._gshapeAnimationMethod;\n }else{\n this.gshape.animate = noop;\n }\n }", "startAnimation(animationName, loop) {\n var started = false; // to ensure we start only one animation\n for ( var i = 0; i < this.getAnimationGroups().length; i++ ) {\n var group = this.getAnimationGroups()[i];\n if ( group.name == animationName && !started ) {\n started = true;\n //this.log(\"Animation group: \"+animationName);\n if ( group.isPlaying ) {\n group.pause();\n this.log(\"paused \"+animationName);\n } else {\n if ( this.fixes ) {\n if (typeof this.fixes.beforeAnimation !== 'undefined' ) {\n this.log( \"Applying fixes for: \"+this.folder.name+\" beforeAnimation: \"+this.fixes.beforeAnimation);\n this.groundLevel( this.fixes.beforeAnimation );\n }\n this.disableNodes();\n if (typeof this.fixes.before !== 'undefined' ) {\n this.fixes.before.forEach( obj => {\n if ( animationName == obj.animation && obj.enableNodes ) {\n console.log(obj);\n this.enableNodes(obj.enableNodes, true);\n }\n });\n }\n }\n this.jump(0);\n if ( typeof loop != 'undefined') {\n group.play(loop);\n } else {\n group.play(group.loopAnimation);\n }\n this.log(\"playing \"+animationName);\n this.log(group);\n this.activeAnimation = animationName;\n }\n } else if ( group.isPlaying ) {\n // stop all other animations\n group.pause();\n //group.reset(); // this disables blending\n }\n }\n }", "function prev_step1(){\r\n addAnimation(document.getElementById(\"second\"), 'bounceIn'); //calling this again actually removes the first instance\r\n document.getElementById(\"first\").style.display=\"block\";\r\n document.getElementById(\"second\").style.display=\"none\";\r\n}", "function getAnimation2() {\n var element = $('.bulp2');\n //bezier magic provided by GSAP BezierPlugin (included with TweenMax)\n //https://api.greensock.com/js/com/greensock/plugins/BezierPlugin.html\n \n //create a semi-random tween \n var bezTween = new TweenMax(element, 6, {\n bezier:{\n type:\"soft\", \n //values:[{x:-200, y:300}, {x:300, y:30}, {x:500 + Math.random() *100, y:320*Math.random() + 50}, {x:650, y:320*Math.random() + 50}, {x:900, y:50}, {x:1100, y:50}, {x:1200, y:50}, {x:1400, y:50}, {x:1600, y:50}, {x:1900, y:50}],\n values:[{x:-430, y:0}, {x:0, y:50}, {x:100, y:70}, {x:500, y:70}, {x:650, y: 80}, {x:900, y:80}, {x:1100, y:90}, {x:1200, y:90}, {x:1400, y:90}, {x:1600, y:90}, {x:1900, y:90}],\n autoRotate:false\n },\n ease:Linear.easeNone});\n return bezTween;\n}", "function updateTimeline(selection) {\n\n\t\t\t\t\tvar timelineGroups = buildTimelineGroups(groups);\n\t\t\t\t\tvar gr = selection.select(\"svg\").select(\"g\");\n\n\t\t\t\t\t// Reset the y1 domain based on the current biggest group.\n\t\t\t\t\tvar groupMax = d3.max(groups.map(function (d) {\n\t\t\t\t\t\treturn d.value.data.countByGroup.values().map(function (c) { return c.agg; })\n\t\t\t\t\t\t\t.reduce(function (a, b) { return a + b; }, 0);\n\t\t\t\t\t}));\n\n\t\t\t\t\t// If we exceed the current domain, expand. Otherwise remain static.\n\t\t\t\t\tif(groupMax > y1.domain()[1]) {\n\t\t\t\t\t\ty1.domain([0, groupMax]);\n\t\t\t\t\t}\n\n\t\t\t\t\tyAxis.scale(y1);\n\n\t\t\t\t\tstack(timelineGroups);\n\n\t\t\t\t\tvar group = groupContainer.selectAll(\".group\")\n\t\t\t\t\t\t\t.data(timelineGroups);\n\n\t\t\t\t\tif(mode === 'stack') {\n\t\t\t\t\t\tif(!gr.select('.y-axis').empty()) {\n\t\t\t\t\t\t\tgr.select('.y-axis').call(yAxis);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tgr.append(\"g\")\n\t\t\t\t\t\t\t\t.attr(\"class\", \"axis y-axis\")\n\t\t\t\t\t\t\t\t.attr(\"transform\", \"translate(\" + mainWidth + \", 0)\")\n\t\t\t\t\t\t\t\t.call(yAxis);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(!gr.select('.y-axis').empty()) {\n\t\t\t\t\t\t\tgr.select('.y-axis').remove();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tgroup.exit().remove();\n\n\t\t\t\t\tgroup.transition()\n\t\t\t\t\t\t.attr(\"transform\", function(d, i) {\n\t\t\t\t\t\t\tif(mode === 'stack') {\n\t\t\t\t\t\t\t\treturn \"translate(0, 0)\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn \"translate(0,\" + y0(stackGroups[i]) + \")\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\tvar paths = group.select(\"path\");\n\n\t\t\t\t\tpaths.attr(\"d\", function(d) { return area(d); });\n\t\t\t\t}", "requestUpdateAnimations () {\n this.animationsUpdateNeeded = true;\n }", "function animate() {\n\n\t\t\tbubbleChartGroup.transition()\n\t\t\t\t.duration(30000)\n\t\t\t\t.ease(d3.easeLinear) /*use linear transition*/\n\t\t\t\t.tween(\"year\",tweenYear); /*use customized tween method to create transitions frame by frame*/\n\n\t\t\t/*show observations text only after the animation is completed*/\n\t\t\tsetTimeout(showObservation, 30500);\n\n\t\t\tfunction showObservation() {\n\t\t\t\t/*change the color of text so that they become visible*/\n\t\t\t\td3.selectAll(\"#observationSection\")\n\t\t\t\t\t.style(\"color\",\"black\");\n\t\t\t\td3.selectAll(\"#observations\")\n\t\t\t\t\t.style(\"color\",\"red\");\n\t\t\t}\n\t }", "initAnimations() {\n this.animations = [];\n let interpolant = new TransformationInterpolant();\n\n for (var key in this.graph.animations) {\n if (this.graph.animations.hasOwnProperty(key)) {\n let animation = this.graph.animations[key];\n let keyframes = animation.keyframes;\n let keyframeTrack = new TransformationTrack(keyframes, interpolant);\n this.animations[key] = new KeyframeAnimation(keyframeTrack);\n }\n }\n\n this.interface.addAnimations();\n }", "createAnimations() {\r\n //#region Idle animation\r\n // Idle front\r\n this.anims.create({\r\n key: 'idle_front',\r\n frames: [\r\n {\r\n key: 'idle_front_0'\r\n },\r\n {\r\n key: 'idle_front_1'\r\n },\r\n {\r\n key: 'idle_front_2'\r\n },\r\n {\r\n key: 'idle_front_3'\r\n }\r\n ],\r\n frameRate: 2,\r\n repeat: -1,\r\n });\r\n\r\n // Idle back\r\n this.anims.create({\r\n key: 'idle_back',\r\n frames: [\r\n {\r\n key: 'idle_back_0'\r\n },\r\n {\r\n key: 'idle_back_1'\r\n },\r\n {\r\n key: 'idle_back_2'\r\n },\r\n {\r\n key: 'idle_back_3'\r\n }\r\n ],\r\n frameRate: 2,\r\n repeat: -1,\r\n });\r\n\r\n // Idle side\r\n this.anims.create({\r\n key: 'idle_side',\r\n frames: [\r\n {\r\n key: 'idle_side_0'\r\n },\r\n {\r\n key: 'idle_side_1'\r\n },\r\n {\r\n key: 'idle_side_2'\r\n },\r\n {\r\n key: 'idle_side_3'\r\n }\r\n ],\r\n frameRate: 2,\r\n repeat: -1,\r\n });\r\n\r\n //#endregion\r\n\r\n //#region Run animations\r\n\r\n // Run front\r\n this.anims.create({\r\n key: 'run_front',\r\n frames: [\r\n {\r\n key: 'run_front_0'\r\n },\r\n {\r\n key: 'run_front_1'\r\n },\r\n {\r\n key: 'run_front_2'\r\n },\r\n {\r\n key: 'run_front_3'\r\n }\r\n ],\r\n frameRate: 6,\r\n repeat: -1,\r\n });\r\n\r\n // Run back\r\n this.anims.create({\r\n key: 'run_back',\r\n frames: [\r\n {\r\n key: 'run_back_0'\r\n },\r\n {\r\n key: 'run_back_1'\r\n },\r\n {\r\n key: 'run_back_2'\r\n },\r\n {\r\n key: 'run_back_3'\r\n }\r\n ],\r\n frameRate: 6,\r\n repeat: -1,\r\n });\r\n\r\n // Run side\r\n this.anims.create({\r\n key: 'run_side',\r\n frames: [\r\n {\r\n key: 'run_side_0'\r\n },\r\n {\r\n key: 'run_side_1'\r\n },\r\n {\r\n key: 'run_side_2'\r\n },\r\n {\r\n key: 'run_side_3'\r\n }\r\n ],\r\n frameRate: 6,\r\n repeat: -1,\r\n });\r\n\r\n //#endregion\r\n }", "function goGrouped() {\n yscale.domain([0, yGroupedMax]);\n rects.transition()\n .duration(1000)\n .delay(function (d, i) { return i * 20; })\n .attr(\"x\", function (d, i, j) { return xscale(i) + xscale.rangeBand() / stackedData.length * j; })\n .attr(\"width\", xscale.rangeBand() / stackedData.length)\n .transition()\n .attr(\"y\", function (d) { return yscale(d.y); })\n .attr(\"height\", function (d) { return chartHeight - yscale(d.y); });\n gridLines.data(yscale.ticks(10)).transition()\n .duration(1000)\n .delay(function (d, i) { return i * 20; })\n .attr(\"y1\", yscale)\n .attr(\"y2\", yscale);\n gridLabels.data(yscale.ticks(10)).transition()\n .duration(1000)\n .delay(function (d, i) { return i * 20; })\n .attr(\"y\", yscale)\n .text(String);\n}", "function addAnimation() {\n const Burst1 = new mojs.Burst({\n parent: animationDiv,\n top: '50%',\n left: '50%',\n radius: {0: 80},\n count: 8,\n children: {\n shape: 'circle',\n fill: {'red': 'blue'},\n strokeWidth: 1,\n duration: 600,\n stroke: {'red': 'blue'}\n }\n });\n\n\n const Burst2 = new mojs.Burst({\n parent: animationDiv,\n top: '50%',\n left: '50%',\n radius: {0: 100},\n count: 4,\n children: {\n shape: 'rect',\n fill: 'white',\n strokeWidth: 1,\n duration: 300,\n stroke: 'white'\n }\n });\n\n\n const circle1 = new mojs.Shape({\n radius: {0: 40},\n parent: animationDiv,\n fill: 'none',\n stroke: 'white',\n strokeWidth: 15,\n duration: 300,\n opacity: {1: 0}\n });\n\n const circle2 = new mojs.Shape({\n radius: {0: 50},\n parent: animationDiv,\n fill: 'none',\n stroke: 'red',\n strokeWidth: 5,\n duration: 400,\n opacity: {1: 0}\n });\n\n\n const circle3 = new mojs.Shape({\n radius: {0: 60},\n parent: animationDiv,\n fill: 'none',\n stroke: 'blue',\n strokeWidth: 5,\n duration: 500,\n opacity: {1: 0}\n });\n\n const circle4 = new mojs.Shape({\n radius: {0: 70},\n parent: animationDiv,\n fill: 'white',\n\n stroke: 'white',\n strokeWidth: 5,\n duration: 600,\n opacity: {1: 0}\n });\n\n const timeline = new mojs.Timeline({\n\n repeat: 0\n }).add(circle4, circle1, circle2, circle3, Burst1, Burst2);\n\n timeline.play();\n }", "function transition(d) {\n\t\t\t\t\tconsole.log(\"--- transition firing with d.name at \" + d .name + \" and d.depth at \" + d.depth);\n\t\t\t\t\t\n\t\t\t\t\tcurrentDepth = d.depth;// gm state test\n\t\t\t\t\tmyData.currentNode = d;//\n\t\t\t\t\tmyData.currentDepth = d.depth;\n\t\t\t\t\t\n\t\t\t\t\tdefaultDuration = 750;\n\t\t\t\t\tnoDuration = 0;\n\t\t\t\t\t\n\t\t\t\t\tif(myData.reset == true){\n\t\t\t\t\t\tcurrentDuration = noDuration;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcurrentDuration = defaultDuration;\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\t\n\t\t\t\t\tif (transitioning || !d) return;\n\t\t\t\t\t\t\ttransitioning = true;\n\n\t\t\t\t\t\t\tvar g2 = display(d),\n\t\t\t\t\t\t\tt1 = g1.transition().duration(currentDuration),\n\t\t\t\t\t\t\tt2 = g2.transition().duration(currentDuration);\n\n\t\t\t\t\t\t\t// Update the domain only after entering new elements.\n\t\t\t\t\t\t\tx.domain([d.x, d.x + d.dx]);\n\t\t\t\t\t\t\ty.domain([d.y, d.y + d.dy]);\n\n\t\t\t\t\t\t\t// Enable anti-aliasing during the transition.\n\t\t\t\t\t\t\tsvg.style(\"shape-rendering\", null);\n\n\t\t\t\t\t\t\t// Draw child nodes on top of parent nodes.\n\t\t\t\t\t\t\tsvg.selectAll(\".depth\").sort(function(a, b) { return a.depth - b.depth; });\n\n\t\t\t\t\t\t\t// Fade-in entering text.\n\t\t\t\t\t\t\tg2.selectAll(\"text\").style(\"fill-opacity\", 0);\n\t\t\t\t\t\t\tg2.selectAll(\"foreignObject div\").style(\"display\", \"none\"); /*added*/\n\n\t\t\t\t\t\t\t// Transition to the new view.\n\t\t\t\t\t\t\tt1.selectAll(\"text\").call(text).style(\"fill-opacity\", 0);\n\t\t\t\t\t\t\tt2.selectAll(\"text\").call(text).style(\"fill-opacity\", 1);\n\t\t\t\t\t\t\tt1.selectAll(\"rect\").call(rect);\n\t\t\t\t\t\t\tt2.selectAll(\"rect\").call(rect);\n\n\t\t\t\t\t\t\tt1.selectAll(\".textdiv\").style(\"display\", \"none\"); /* added */\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//t1.selectAll(\".smalltext\").call(smalltext); /* GM EXPERIMENT */\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tt1.selectAll(\".foreignobj\").call(foreign); /* added */\n\t\t\t\t\t\t\tt2.selectAll(\".textdiv\").style(\"display\", \"block\"); /* added */\n\t\t\t\t\t\t\tt2.selectAll(\".amtDisplay\").style(\"display\", \"block\"); /* added */\n\t\t\t\t\t\t\tt2.selectAll(\".foreignobj\").call(foreign); /* added */ \n\n\t\t\t\t\t\t\t// Remove the old node when the transition is finished.\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/**/t1.remove().each(\"end\", function() {\n\t\t\t\t\t\t\t\tsvg.style(\"shape-rendering\", \"crispEdges\");\n\t\t\t\t\t\t\t\ttransitioning = false;\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// G ADD TO RESTORE CLICK FUNCTION?\n\t\t\t\t\t\t\td3.selectAll(\".foreignobj\").style(\"pointer-events\",\"none\")\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\td3.selectAll(\".child\")\n\t\t\t\t\t\t\t\t//d3.selectAll(\".child\").attr(\"width\",\"30px\"); //works\n\t\t\t\t\t\t\t\t\t.on(\"click\", function(d) { \n\t\t\t\t\t\t\t\t\tconsole.log(\"clicked with num children at \" + d.parent.children.length)\n\t\t\t\t\t\t\t\t})*/\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\n\t\t\t\t}", "attract(ball_1, ball_2) {\n ball_1.state.spe.add(this.gravity_pull(ball_1, ball_2));\n ball_2.state.spe.add(this.gravity_pull(ball_2, ball_1));\n }", "animate (data) {\n let interval\n let set = []\n data.src.getLayers().forEach((layer) => {\n set.push(layer)\n })\n let iterant = 0\n for (var s = 1; s < set.length; s++) {\n set[s].setVisible(false)\n }\n if (!data.interval) {\n interval = defaults.interval\n } else {\n interval = data.interval\n }\n setInterval(() => {\n set[iterant].setVisible(!set[iterant].getVisible())\n iterant++\n if (iterant === set.length) {\n iterant = 0\n }\n set[iterant].setVisible(!set[iterant].getVisible())\n }, interval)\n }", "function prev_step2(){\r\n addAnimation(document.getElementById(\"third\"), 'bounceIn'); //calling this again actually removes the first instance\r\n document.getElementById(\"third\").style.display=\"none\";\r\n document.getElementById(\"second\").style.display=\"block\";\r\n}", "function addAnimation(){\n const Burst1 = new mojs.Burst ({\n parent: animationDiv,\n top: '50%',\n left: '50%', \n radius: {0: 80},\n count: 8,\n children: {\n shape: 'circle',\n fill: {'red':'blue'},\n strokeWidth: 1,\n duration: 600,\n stroke: {'red':'blue'}\n }\n });\n\n\n const Burst2 = new mojs.Burst ({\n parent: animationDiv,\n top: '50%',\n left: '50%', \n radius: {0: 100},\n count: 4,\n children: {\n shape: 'rect',\n fill: 'white',\n strokeWidth: 1,\n duration: 300,\n stroke: 'white'\n }\n });\n\n\n\n const circle1= new mojs.Shape ({\n radius: {0:40},\n parent: animationDiv,\n fill: 'none',\n stroke: 'white',\n strokeWidth:15,\n duration: 300,\n opacity: {1: 0}\n });\n\n const circle2= new mojs.Shape ({\n radius: {0:50},\n parent: animationDiv,\n fill: 'none',\n stroke: 'red',\n strokeWidth:5,\n duration: 400,\n opacity: {1: 0}\n });\n\n\n const circle3= new mojs.Shape ({\n radius: {0:60},\n parent: animationDiv,\n fill: 'none',\n stroke: 'blue',\n strokeWidth:5,\n duration: 500,\n opacity: {1: 0}\n });\n\n const circle4= new mojs.Shape ({\n radius: {0:70},\n parent: animationDiv,\n fill: 'white',\n \n stroke: 'white',\n strokeWidth:5,\n duration: 600,\n opacity: {1: 0}\n });\n\n const timeline = new mojs.Timeline ({\n \n repeat: 0\n }).add(circle4,circle1,circle2,circle3,Burst1,Burst2);\n\n timeline.play();\n}", "set importAnimation(value) {}", "function transition(){\n d3.selectAll(\"path\")\n .data(function() {\n var d = layers1;\n layers1 = layers0;\n return layers0 = d;\n })\n .transition()\n .duration(2500)\n .attr(\"d\", area);\n\n }", "function AnimateGroup( props ) {\n\n const {\n // Convenience property for setting animationIn and animationOut\n // at once; e.g. setting animation=\"slide\" is equivalent to\n // animationIn=\"slideIn\" animationOut=\"slideOut\"\n animation,\n // Name of animation used when adding a new component.\n // See theme/index.js for animation names.\n animationIn = animation+'In',\n // Name of animation used when removing an existing component.\n animationOut = animation+'Out',\n // The CSS class name to apply to the group container.\n className,\n // Transition out duration.\n durationOut,\n // The group children.\n children\n } = props\n\n const transition = `transition: opacity ${durationOut}ms ease-out`\n const animationInCSS = animations[animationIn] || animationIn\n const animationOutCSS = animations[animationOut] || animationOut\n\n const childState = {\n entering: node => node.style = 'display: none',\n entered: node => node.style = `${transition}; opacity: 1; ${css('animation',animationInCSS)}`,\n exiting: node => node.style = `${transition}; opacity: 0; ${css('animation',animationOutCSS)}`,\n exited: node => node.style = `${transition}; opacity: 0; ${css('animation',animationOutCSS)}`\n }\n\n const groupChildren = React.Children.toArray(children).map(child => {\n const { key } = child\n return (<Transition\n key={key}\n timeout={500}\n onEntering={childState.entering}\n onEntered={childState.entered}\n onExiting={childState.exiting}\n onExited={childState.exited}\n >\n {child}\n </Transition>)\n })\n\n return (<TransitionGroup className={className}>\n {groupChildren}\n </TransitionGroup>)\n}", "function animationStep() {\n var _stableMarriageProces = stableMarriageProcessQueue.shift(),\n process = _stableMarriageProces.process,\n content = _stableMarriageProces.content;\n\n var male = content.male,\n female = content.female,\n dumped = content.dumped;\n var groundMaleDOM;\n var groundFemaleDOM; // If the process is not called done,\n\n if (process !== 'done') {\n groundMaleDOM = male.element.cloneNode(true);\n groundFemaleDOM = female.element.cloneNode(true);\n groundMaleDOM.style.opacity = '0';\n groundFemaleDOM.style.opacity = '0'; // then the ground elements are prepared,\n\n groundMaleDOM.classList.add('prepare');\n groundFemaleDOM.classList.add('prepare');\n groundMaleDOM.classList.add('disabled');\n groundFemaleDOM.classList.add('disabled'); // and if the process is also not prepared,\n\n if (process !== 'prepare') {\n // then the ground male element can be added \n // to the ground container.\n groundDOM.appendChild(groundMaleDOM);\n openAndSelectGroundDOM(groundMaleDOM, male._preferences.indexOf(female.name));\n }\n }\n\n if (process == 'prepare') {\n // The first step is prepare which is to highlight the\n // male element.\n highlightEntityDOM(male.element);\n } else if (process == 'engage') {\n // This is the animation\n // for engage.\n highlightEntityDOM(female.element);\n groundDOM.appendChild(groundFemaleDOM);\n openAndSelectGroundDOM(groundFemaleDOM);\n closeGroundDOM(groundMaleDOM);\n closeGroundDOM(groundFemaleDOM);\n animationQueue.add(function () {\n groundMaleDOM.classList.remove('reject');\n groundFemaleDOM.classList.remove('prepare');\n groundMaleDOM.classList.add('engage');\n groundFemaleDOM.classList.add('engage');\n }, 500);\n animationQueue.add(function () {\n male.element.classList.remove('reject');\n male.element.classList.add('engage');\n female.element.classList.add('engage');\n notifier.queueMessage('warning', \"\".concat(male.name, \" is engaged with \").concat(female.name, \".\"), 1000);\n }, 500);\n } else if (process == 'break') {\n // This is the animation for break.\n // Break means the female dumps a male\n // and gets a new partner.\n groundFemaleDOM.classList.add('engage');\n\n var oldPartnerIndex = female._preferences.indexOf(dumped.name);\n\n groundFemaleDOM.querySelector('.preference').children[oldPartnerIndex].classList.add('partner-highlight');\n groundDOM.appendChild(groundFemaleDOM);\n openAndSelectGroundDOM(groundFemaleDOM);\n animationQueue.add(function () {\n var preferenceDOM = groundFemaleDOM.querySelector('.preference');\n\n var maleIndex = female._preferences.indexOf(male.name);\n\n var oldPartnerIndex = female._preferences.indexOf(dumped.name);\n\n preferenceDOM.children[maleIndex].classList.add('select-highlight');\n notifier.queueMessage('warning', \"\".concat(female.name, \" breaks up with current partner \").concat(dumped.name, \" and engages with \").concat(male.name, \".\"), 2000);\n }, 500);\n closeGroundDOM(groundMaleDOM);\n closeGroundDOM(groundFemaleDOM);\n animationQueue.add(function () {\n groundMaleDOM.classList.remove('reject');\n groundMaleDOM.classList.add('engage');\n male.element.classList.remove('reject');\n male.element.classList.add('engage');\n dumped.element.classList.remove('engage');\n dumped.element.classList.add('reject');\n }, 500);\n } else if (process == 'reject') {\n // This is the animation for reject. \n // Reject means the female stays with\n // their current partner, opposite of \n // break.\n groundFemaleDOM.classList.add('engage');\n var preferenceDOM = groundFemaleDOM.querySelector('.preference');\n\n var partnerIndex = female._preferences.indexOf(female.partner.name);\n\n preferenceDOM.children[partnerIndex].classList.add('partner-highlight');\n groundDOM.appendChild(groundFemaleDOM);\n openAndSelectGroundDOM(groundFemaleDOM);\n animationQueue.add(function () {\n var maleIndex = female._preferences.indexOf(male.name);\n\n preferenceDOM.children[maleIndex].classList.add('select-highlight');\n }, 250);\n closeGroundDOM(groundMaleDOM);\n closeGroundDOM(groundFemaleDOM);\n animationQueue.add(function () {\n groundMaleDOM.classList.remove('prepare');\n groundFemaleDOM.classList.remove('engage');\n groundMaleDOM.classList.add('reject');\n groundFemaleDOM.classList.add('reject');\n notifier.queueMessage('warning', \"\".concat(female.name, \" stays with current partner \").concat(female.partner.name, \" and rejects \").concat(male.name, \".\"), 2000);\n }, 250);\n animationQueue.add(function () {\n male.element.classList.add('reject');\n female.element.classList.add('reject');\n }, 250);\n animationQueue.add(function () {\n female.element.classList.remove('reject');\n female.element.classList.add('engage');\n }, 250);\n } else if (process == 'done') {\n // Animation for when the process is done.\n // Basically removes the elements.\n var _iterator14 = _createForOfIteratorHelper(groundDOM.children),\n _step14;\n\n try {\n for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {\n var child = _step14.value;\n child.style.opacity = '0';\n }\n } catch (err) {\n _iterator14.e(err);\n } finally {\n _iterator14.f();\n }\n\n animationQueue.add(function () {\n groundDOM.innerHTML = '';\n }, 250);\n } // This first conditional is called when\n // the visualization is finished.\n\n\n if (stableMarriageProcessQueue.length == 0) {\n skipVisualizationDOM.classList.add('disabled');\n makeResultInteractable();\n notifier.queueMessage('valid', 'Tap an entity to show its partner.');\n } else {\n // This conditional is called whenever there is still\n // anything to visualize.\n animationQueue.add(function () {\n animationStep();\n }, 250);\n }\n}", "function functionalAnimator(o_) {\n\t\tfunction animObject(opt_) {\n\t\t\tvar values = {\n\t\t\t\tobj: null, // object that controls the rendering to be animated.\n\t\t\t\tgetFn: null, // returns orderedArray of current parameter values\n\t\t\t\tupdateFn: null, // updates the rendering according to an array of values ordered as per getFn\n\t\t\t\ttargets: null, // array of target values - same order as getFn returns\n\t\t\t\tincrements: null // array of increments - numeric values needed - assumed floats\n\t\t\t}\n\t\t\tvar options = $.extend({}, values, opt_);\n\t\t\tvar animDone = false; // flag for clearing out finished animations\n\t\t\t\n\t\t\treturn({\n\t\t\t\tgetObj : function() {\n\t\t\t\t\treturn(options.obj);\n\t\t\t\t},\n\t\t\t\tgetGetFn : function() {\n\t\t\t\t\treturn(options.getFn);\n\t\t\t\t},\n\t\t\t\tgetTargets : function() {\n\t\t\t\t\treturn(options.targets);\n\t\t\t\t},\n\t\t\t\tgetUpdateFn : function() {\n\t\t\t\t\treturn(options.updateFn);\n\t\t\t\t},\n\t\t\t\tgetIncrements : function() {\n\t\t\t\t\treturn(options.increments);\n\t\t\t\t},\n\t\t\t\tdone : function() {\n\t\t\t\t\tanimDone = true;\n\t\t\t\t},\n\t\t\t\tisDone : function() {\n\t\t\t\t\treturn(animDone);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\t\n\t\tvar defaults = {\n\t\t\tperiod : 40, // increment period for attribute animation - milliseconds\n\t\t\tpostIterHook: null // function to call after animation iteration\n\t\t};\n\t\tvar options = $.extend({}, defaults, o_);\n\t\t\n\t\tvar objectsToAnimate = {};\n\t\t\n\t\tfunction add(key, obj, getFn, updateFn, targets, time) {\t\t\n\t\t\tvar steps = time / options.period;\n\t\t\tif (steps < 1) {\n\t\t\t\tsteps = 1;\n\t\t\t}\n\t\t\t\n\t\t\tvar currVals = getFn(obj);\n\t\t\tvar increments = [];\n\t\t\tfor (var i=0; i<currVals.length; i++) {\n\t\t\t\tvar inc = (targets[i] - currVals[i]) / steps;\n\t\t\t\tincrements.push(inc);\n\t\t\t}\n\t\t\t\n\t\t\tobjectsToAnimate[key] = animObject({\n\t\t\t\tobj: obj,\n\t\t\t\tgetFn: getFn,\n\t\t\t\tupdateFn: updateFn,\n\t\t\t\ttargets: targets,\n\t\t\t\tincrements: increments\n\t\t\t});\n\t\t}\n\t\t\n\t\tfunction iterateSingleAnimObject(key, animInfo) {\n\t\t\tvar obj = animInfo.getObj();\n\t\t\tvar g = animInfo.getGetFn();\n\t\t\tvar currVals = g(obj);\n\n\t\t\tvar increments = animInfo.getIncrements();\n\t\t\tvar targets = animInfo.getTargets();\n\t\t\tvar atTargets = 0;\n\t\t\tfor (var i=0; i<currVals.length; i++) {\n\t\t\t\tcurrVals[i] += increments[i];\n\t\t\t\tif ((increments[i] >= 0 && currVals[i] >= targets[i]) || // catches the case of == 0 for multi-value target lists\n\t\t\t\t\t(increments[i] < 0 && currVals[i] <= targets[i])) {\n\t\t\t\t\tcurrVals[i] = targets[i];\n\t\t\t\t\tatTargets++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (atTargets == currVals.length) {\n\t\t\t\tanimInfo.done();\n\t\t\t}\n\t\t\t\n\t\t\tvar u = animInfo.getUpdateFn();\n\t\t\tu(obj, currVals);\n\t\n\t\t\tvar animFinished = false;\n\t\t\tif (animInfo.isDone()) {\n\t\t\t\t// recheck the stored flag here - if a new animation has\n\t\t\t\t// been started (which shouldn't happen because of the\n\t\t\t\t// single-threading of javascript), the flag cleared may\n\t\t\t\t// no longer be there because a new animation object (with\n\t\t\t\t// a new target definition may have been placed in the list).\n\t\t\t\tdelete objectsToAnimate[key];\n\t\t\t\tanimFinished = true;\n\t\t\t}\n\t\t\treturn(animFinished);\n\t\t}\n\t\t\n\t\tfunction animate() {\n\t\t\tvar animFinished = true;\n\t\t\tfor (var key in objectsToAnimate) {\n\t\t\t\tif (objectsToAnimate.hasOwnProperty(key)) {\n\t\t\t\t\tif (false == iterateSingleAnimObject(key, objectsToAnimate[key])) {\n\t\t\t\t\t\t// at least one not yet finished - schedule again\n\t\t\t\t\t\tanimFinished = false;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (null != options.postIterHook) {\n\t\t\t\toptions.postIterHook();\n\t\t\t}\n\n\t\t\treturn(! animFinished);\n\t\t}\n\t\t\n\t\tvar isAnimRunnig = false;\n\t\tfunction go() {\n\t\t\tvar reschedule = animate();\n\t\t\tif (reschedule) {\n\t\t\t\tsetTimeout(function() { go(); }, options.period);\n\t\t\t} else {\n\t\t\t\tisAnimRunnig = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfunction startAnimation() {\n\t\t\tif (! isAnimRunnig) {\n\t\t\t\tsetTimeout(function(){ go(); }, 0); // run now on background task\n\t\t\t\tisAnimRunnig = true;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\treturn({\n\t\t\tadd: add,\n\t\t\tstartAnimation: startAnimation\n\t\t});\n\t}", "updateXaxis() {\n const axisGroup = Dthree.select('.d3-xaxis-group');\n const duration = this.props.config.duration;\n const transform = this.getAxisGroupTransformString();\n // I'm trying to chain the transitions if the axis moves\n // from bottom to top, as well as changing scale. This\n // is only partly successful, because I also need to address\n // the orientation (top/bottom), which flips the ticks and strings...\n axisGroup\n //\n //\n .transition().duration(duration)\n .call(this.props.axis)\n // I did have delay(duration)...\n .transition().duration(duration)\n .attr('transform', transform)\n ;\n // Failed attempt at separating re-orientation from move...\n // this.props.axis.orient(this.props.config.orient);\n // axisGroup\n // .transition().delay(duration*3).duration(duration)\n // .call(this.props.axis)\n // ;\n }", "function Start () {\n\n\tanimator = GetComponent(Animator); // assign the Animator component\n\tlayers = animator.layerCount;\n\t\n\tif (layers >= 2) {\n\t for (var i : int = 1; i < layers; i++ ) { \n\t animator.SetLayerWeight(i, 1);\n\t }\n\t}\n}", "function bouger() {\n console.log(\"Animation logo activée\");\n $('.image')\n .transition({\n debug: true,\n animation: 'jiggle',\n duration: 500,\n interval: 200\n })\n ;\n}", "_serviceAnimation(animateRequest, current) {\n if (animateRequest === undefined) {\n return;\n }\n let weight = animateRequest.runCount ? animateRequest.animation.weight : 0;\n if (current && weight < 1) {\n weight += ANIM_MERGE_RATE;\n weight = Math.min(1, weight);\n }\n else if (!current && weight > 0) {\n weight -= ANIM_MERGE_RATE;\n weight = Math.max(0, weight);\n }\n if (animateRequest.animation) {\n animateRequest.animation.weight = weight;\n }\n if (weight <= 0) {\n // This old AnimateRequest has been faded out and needs stopped and removed.\n animateRequest.cleanup = true;\n return;\n }\n if (animateRequest.dirty === false) {\n // Nothing more to do.\n // Animations which end set animateRequest.dirty to true when they need\n // this method to continue past this point.\n return;\n }\n // console.log(animateRequest.name, weight, current);\n if (animateRequest.runCount && !animateRequest.loop && animateRequest.reversed) {\n // Freeze frame at first frame in sequence.\n animateRequest.animation.stop();\n animateRequest.animation = this._scene.beginWeightedAnimation(this._skeleton, this._animations[animateRequest.name].from + 2, this._animations[animateRequest.name].from + 2, weight, false, 0.01, function () {\n animateRequest.dirty = true;\n }.bind(this));\n }\n else if (animateRequest.runCount && !animateRequest.loop) {\n // Freeze frame at last frame in sequence.\n animateRequest.animation.stop();\n animateRequest.animation = this._scene.beginWeightedAnimation(this._skeleton, this._animations[animateRequest.name].to, this._animations[animateRequest.name].to, weight, false, 0.01, function () {\n animateRequest.dirty = true;\n }.bind(this));\n }\n else if (animateRequest.reversed) {\n // Play an animation in reverse.\n animateRequest.animation = this._scene.beginWeightedAnimation(this._skeleton, this._animations[animateRequest.name].to, this._animations[animateRequest.name].from + 2, weight, false, 1, function () {\n animateRequest.dirty = true;\n }.bind(this));\n }\n else {\n // Play an animation.\n animateRequest.animation = this._scene.beginWeightedAnimation(this._skeleton, this._animations[animateRequest.name].from + 2, this._animations[animateRequest.name].to, weight, false, 1, function () {\n animateRequest.dirty = true;\n }.bind(this));\n }\n animateRequest.dirty = false;\n animateRequest.runCount++;\n }", "function rotateGroup(group, fromPos, toPos){\n //console.log('from-to: ', fromPos, toPos)\n if (fromPos==0) fromAng = 35\n else if (fromPos==1) fromAng = 30\n else if (fromPos==2) fromAng = 18\n else if (fromPos==3) fromAng = 6\n else if (fromPos==4) fromAng = -6\n else if (fromPos==5) fromAng = -18\n else if (fromPos==6) fromAng = -30\n else if (fromPos==7) fromAng = -38\n\n if (toPos==0) toAng = 35\n else if (toPos==1) toAng = 30\n else if (toPos==2) toAng = 18\n else if (toPos==3) toAng = 6\n else if (toPos==4) toAng = -6\n else if (toPos==5) toAng = -18\n else if (toPos==6) toAng = -30\n else if (toPos==7) toAng = -38\n\n Snap.animate(fromAng, toAng, function(step){\n group = group.attr({\n transform: new Snap.Matrix().rotate(step, cp[0], cp[1])\n })\n if(retrieveMode || storeMode) pc = pc.attr({transform: new Snap.Matrix().rotate(step-fromAng, cp[0], cp[1])})\n }, Math.abs(fromPos-toPos)*550, mina.linear, function() {\n fromPos2 = toPos\n storeMode = false; retrieveMode = false;\n if (pc) {pc = pc.animate({opacity: 0}, 2000, mina.linear, () =>{})}\n })\n}", "function step () {\n\n\t\t// Kick off animation\n\t\tif (!global_animator.started) {\n\t\t\tglobal_animator.animate();\n\t\t}\n\n\t\t// Animate the Es to Scale\n\t\tif (global_animator.value >= (a_e_s.ratio * a_e_s.order) && !a_e_s.started) {\n\t\t\t// a_e_s.msec = global_animator.msec * a_e_s.ratio;\n\t\t\ta_e_s.animate();\n\t\t}\n\n\t\t// // Animate the Dots to Scale\n\t\tif (global_animator.value >= (a_d_s.ratio * a_d_s.order) && !a_d_s.started) {\n\t\t\t// a_d_s.msec = global_animator.msec * a_d_s.ratio;\n\t\t\t// console.log(\"Dots scale\");\n\t\t\ta_d_s.animate();\n\t\t}\n\t\t\n\t\t// // Animate the Dots to Rotate\n\t\tif (global_animator.value >= (a_d_r.ratio * a_d_r.order) && !a_d_r.started) {\n\t\t\t// a_d_r.msec = global_animator.msec * a_d_r.ratio;\n\t\t\t// console.log(\"Dots rotate\");\n\t\t\ta_d_r.animate();\n\t\t}\n\n\t\t// // Animate the Dots to Change Diameter\n\t\tif (global_animator.value >= (a_d_d.ratio * a_d_d.order) && !a_d_d.started) {\n\t\t\t// a_d_d.msec = global_animator.msec * a_d_d.ratio;\n\t\t\t// console.log(\"Dots diamter\");\n\t\t\ta_d_d.animate();\n\t\t}\n\n\t\t// // Animate both the Dots & Es to Rotate\n\t\tif (global_animator.value >= (a_ed_r.ratio * a_ed_r.order) && !a_ed_r.started) {\n\t\t\t// a_ed_r.msec = global_animator.msec * a_ed_r.ratio;\n\t\t\t// console.log(\"Both rotate\");\n\t\t\ta_ed_r.animate();\n\t\t}\n\n\t\t// // Animate both the Line start positons\n\t\tif (global_animator.value >= (a_l_ds.ratio * a_l_ds.order) && !a_l_ds.started) {\n\t\t\t// a_l_ds.msec = global_animator.msec * a_l_ds.ratio;\n\t\t\t// console.log(\"Line Start\");\n\t\t\ta_l_ds.animate();\n\t\t}\n\n\t\t// // Animate both the Line end positons\n\t\tif (global_animator.value >= (a_l_de.ratio * a_l_de.order) && !a_l_de.started) {\n\t\t\t// a_l_de.msec = global_animator.msec * a_l_de.ratio;\n\t\t\t// console.log(\"Line End\");\n\t\t\ta_l_de.animate();\n\t\t}\n\n\t}", "updateAnimation() {\n var translateToOrigin = new Matrix4 ();\n var rotateInPlace = new Matrix4 ();\n var translateBack = new Matrix4 ();\n\n translateToOrigin.setTranslate(-this.x[0], -this.y[0], 0);\n rotateInPlace.setRotate(4, 0, 0, 1);\n translateBack.setTranslate(this.x[0], this.y[0], 0);\n\n this.modelMatrix = translateToOrigin.multiply(this.modelMatrix);\n this.modelMatrix = rotateInPlace.multiply(this.modelMatrix);\n this.modelMatrix = translateBack.multiply(this.modelMatrix);\n \n //this.modelMatrix.setLookAt(0, -1, 1, 0, 0, 0, 0, 0, 1.903);\n }", "sliceGroup( group, start, end ) {\n var newGroup = new BABYLON.AnimationGroup(group.name+\":\"+start+\"-\"+end);\n for ( var i = 0; i < group.targetedAnimations.length; i++ ) {\n var slice = this.sliceAnimation( group.targetedAnimations[i].animation, start, end );\n if ( slice.getKeys().length > 0 ) {\n newGroup.addTargetedAnimation( slice, group.targetedAnimations[i].target );\n }\n }\n return newGroup;\n }", "function animateGifs() {\n var state = $(this).attr(\"data-state\");\n var animated = $(this).attr(\"data-animate\");\n var still = $(this).attr(\"data-still\");\n if (state === \"still\") {\n $(this).attr(\"src\", animated);\n $(this).attr(\"data-state\", \"animate\");\n } else if (state === \"animate\") {\n $(this).attr(\"src\", still);\n $(this).attr(\"data-state\", \"still\");\n }\n }", "applyTweenTransforms() {\n var tween = this.getActiveTween();\n\n if (tween) {\n this.clips.forEach(clip => {\n tween.applyTransformsToClip(clip);\n });\n }\n }", "saveAnimations(groupName) {\n for ( var i = 0; i < this.character.animationGroups.length; i++ ) {\n var animationGroup = this.character.animationGroups[i];\n if ( animationGroup.name === groupName ) {\n var group = this.processAnimations(animationGroup);\n var json = JSON.stringify(group);\n this.attachAnimations(group);\n VRSPACEUI.saveFile(animationGroup.name+'.json', json);\n return;\n }\n }\n console.log(\"No such animation group:\"+groupName);\n }", "updateTransform() {\n this.transform = Object(transformation_matrix__WEBPACK_IMPORTED_MODULE_9__[\"toSVG\"])(Object(transformation_matrix__WEBPACK_IMPORTED_MODULE_9__[\"smoothMatrix\"])(this.transformationMatrix, 100));\n }", "function test_animate() {\n //Do the preview (IS THIS NEEDED?)\n if (AUTO_ANIM) {\n for (var i = 0; i < NODES.length; i++) {\n if (NODES[i].parent) {\n var r = Math.min(Math.max(parseFloat(atob(NODES[i].id)), 0.3), 0.7);\n NODES[i].th = NODES[i].th0 + Math.sin((new Date()).getTime() * 0.003 / r + r * Math.PI * 2) * r * 0.5;\n } else {\n NODES[i].th = NODES[i].th0\n }\n }\n }\n doodleMeta.forwardKinematicsNodes(NODES);\n doodleMeta.calculateSkin(SKIN);\n\n //Do the transfered drawings\n if (AUTO_ANIM) {\n for (let i = 0; i < drawings.length; i++) {\n drawings[i].animate();\n }\n }\n //anim_render();\n master_render();\n}", "update() {\n this.animation.update()\n }", "function attachGroupPlots(selection, parentTransition, groups, defaultPlotter) {\n var groupers = groups.filter(function(group) {\n if (group.plot && group.plot.plotter && group.plot.plotter.groupPlotter) {\n return group;\n }\n });\n\n var update = selection.selectAll(\".grouped\").data(groupers),\n enter = update.enter(),\n exit = update.exit();\n\n enter\n .append(\"g\")\n .classed(\"grouped\", true);\n \n var transition = toTransition(update, parentTransition);\n transition.each(function(group) { \n var selection = d3.select(this);\n group.plot.plotter(selection);\n });\n\n\n exit\n .remove();\n }", "toggleAnimation(){if(this.__stopped){this.__stopped=!1;this.shadowRoot.querySelector(\"#svg\").style.visibility=\"hidden\";if(null!=this.src){this.shadowRoot.querySelector(\"#gif\").src=this.src}this.shadowRoot.querySelector(\"#gif\").alt=this.alt+\" (Stop animation.)\"}else{this.__stopped=!0;this.shadowRoot.querySelector(\"#svg\").style.visibility=\"visible\";if(null!=this.srcWithoutAnimation){this.shadowRoot.querySelector(\"#gif\").src=this.srcWithoutAnimation}this.shadowRoot.querySelector(\"#gif\").alt=this.alt+\" (Play animation.)\"}}", "function update() {\n //Update all projectile views\n group.projViews.forEach(function(projView){\n projView.update();\n });\n group.components.forEach(function (view, i) {\n if (i !== 0) {\n view.update();\n }\n else {\n view.set({ left: 0, top: 0 })\n }\n });\n }", "updateAnimation() {\n return;\n }", "componentDidUpdate() {\n this.mainD3GroupTransition();\n }", "function createAnimations(that){\n \n that.anims.create({\n key: \"left\",\n frames: that.anims.generateFrameNumbers(\"personaje\", { start: 2, end: 0 }),\n repeat: 0\n });\n\n that.anims.create({\n key: \"finish-left\",\n frames: that.anims.generateFrameNumbers(\"personaje\", { start: 0, end: 2 }),\n repeat: 0\n });\n \n that.anims.create({\n key: \"right\",\n frames: that.anims.generateFrameNumbers(\"personaje\", { start: 2, end: 4 })\n });\n\n that.anims.create({\n key: \"finish-right\",\n frames: that.anims.generateFrameNumbers(\"personaje\", { start: 4, end: 2 })\n });\n\n that.anims.create({\n key: \"down\",\n frames: that.anims.generateFrameNumbers(\"personaje\", { start: 7, end: 2 }),\n });\n\n that.anims.create({\n key: \"up\",\n frames: that.anims.generateFrameNumbers(\"personaje\", { start: 2, end: 7 })\n });\n\n}", "function createAnimations(that){\n \n that.anims.create({\n key: \"left\",\n frames: that.anims.generateFrameNumbers(\"personaje\", { start: 2, end: 0 }),\n repeat: 0\n });\n\n that.anims.create({\n key: \"finish-left\",\n frames: that.anims.generateFrameNumbers(\"personaje\", { start: 0, end: 2 }),\n repeat: 0\n });\n \n that.anims.create({\n key: \"right\",\n frames: that.anims.generateFrameNumbers(\"personaje\", { start: 2, end: 4 })\n });\n\n that.anims.create({\n key: \"finish-right\",\n frames: that.anims.generateFrameNumbers(\"personaje\", { start: 4, end: 2 })\n });\n\n that.anims.create({\n key: \"down\",\n frames: that.anims.generateFrameNumbers(\"personaje\", { start: 7, end: 2 }),\n });\n\n that.anims.create({\n key: \"up\",\n frames: that.anims.generateFrameNumbers(\"personaje\", { start: 2, end: 7 })\n });\n\n}", "function animateGif(gif){\n $(gif).attr(\"src\", $(gif).attr(\"data-motion\"))\n $(gif).attr(\"data-state\",\"inMotion\")\n}", "function updateTransitions(transitions,arcs1,arcs2) {\r\n for (let i = 0; i < transitions.length; i++) {\r\n if (isFirable(transitions[i],arcs1,arcs2)) {\r\n transitions[i].attr('.root/fill', '#228b22');\r\n transitions[i].attr('.root/stroke', '#228b22');\r\n transitions[i].attr('.label/fill', '#228b22');\r\n } else {\r\n transitions[i].attr('.root/fill', '#dc143c');\r\n transitions[i].attr('.root/stroke', '#dc143c');\r\n transitions[i].attr('.label/fill', '#dc143c'); \r\n }\r\n };\r\n //console.info(\"who go first??\");\r\n //checkIfNoFirableTransitions(transitions,arcs1,arcs2);\r\n }", "function syncTransitions(transition1, transition2){\n\t\tvar places = transition1.outgoingPlaces;\n\t\tfor(var i = 0; i < places.length; i++){\n\t\t\ttransition2.addOutgoingPlace(places[i]);\n\t\t\tplaces[i].addIncomingTransition(transition2.id);\n\t\t}\n\t\tplaces = transition2.outgoingPlaces;\n\t\tfor(var i = 0; i < places.length; i++){\n\t\t\ttransition1.addOutgoingPlace(places[i]);\n\t\t\tplaces[i].addIncomingTransition(transition1.id);\n\t\t}\n\n\t\tplaces = transition1.incomingPlaces;\n\t\tfor(var i = 0; i < places.length; i++){\n\t\t\ttransition2.addIncomingPlace(places[i]);\n\t\t\tplaces[i].addOutgoingTransition(transition2.id);\n\t\t}\n\t\tplaces = transition2.incomingPlaces;\n\t\tfor(var i = 0; i < places.length; i++){\n\t\t\ttransition1.addIncomingPlace(places[i]);\n\t\t\tplaces[i].addOutgoingTransition(transition1.id);\n\t\t}\n\t}", "updateAnimation() {\n if (this.isMoving()) {\n if (this.dirX == -1)\n this.animator.changeFrameSet(this.frameSets[\"swim-left\"],\n \"loop\", 5);\n else\n this.animator.changeFrameSet(this.frameSets[\"swim-right\"],\n \"loop\", 5);\n } else {\n if (this.dirX == -1)\n this.animator.changeFrameSet(this.frameSets[\"idle-left\"],\n \"pause\");\n else\n this.animator.changeFrameSet(this.frameSets[\"idle-right\"],\n \"pause\");\n }\n \n this.animator.animate();\n }", "_animationFrame() {\n // get the d3 selected handles\n // since the group elems both exist, we dont have to do anything on isRange change\n var startHandle = Px.d3.select(this.$$('#handleStart'));\n var endHandle = Px.d3.select(this.$$('#handleEnd'));\n\n // save the d3 selected handles\n this.set('_startHandle', startHandle);\n this.set('_endHandle', endHandle);\n\n // initial config for our handle paths\n this._buildHandles();\n\n // set up our listeners\n this._setupListeners();\n }", "function fadeUnConnected(g){\n\t\t\t\tvar thisLink = links2.selectAll(\".link\");\n\t\t\t\tthisLink.filter(function(d){ return d.source !==g && d.target !== g; })\n\t\t\t\t\t.transition()\n\t\t\t\t\t\t.duration(500)\n\t\t\t\t\t\t.style(\"opacity\", 0.05);\n\t\t\t}", "function update2() {\n if (!(year in data)) return;\n title.text(year);\n tempYears.transition()\n .duration(750)\n .attr(\"transform\", \"translate(\" + (tGraphx(year1) - tGraphx(year)) + \",0)\");\n\n tempYear.selectAll(\"rect\")\n .data(function(tempYear) { return data[year][tempYear] || [-800, -800]; })\n .transition()\n .duration(750)\n .attr(\"y\", tGraphy)\n \n .attr(\"year\",function(d){return glob2=year;})\n\n .attr(\"sum\", function(value) {value3.push(value);})//new\n\n .attr(\"height\", function(value) { return height1 - tGraphy(value); });\n var tem= 2014-glob2;\n var tempor=value3.length;\n var newtem= 2014-glob2;\n if(tem >12){newtem=tem*2-tem;}\n \n if(tem<=12){\n while(value3.length!=12)\n {\n while(value3.length>tempor-newtem)\n {\n value3.pop();\n }\n value3.shift();\n }\n }\n\n if(tem>12){\n while(value3.length!=12)\n {\n while(value3.length>tempor-newtem+(12-tem))\n {\n value3.pop();\n }\n value3.shift();\n }\n }\n\n }", "function addMoveByTween(start_time, end_time, instance, sbomIdPath, moveby, moveto, callback ) {\n var start = start_time * SPEED;\n var duration = end_time * SPEED - start;\n var object = getAnimationAdapter().getSelectedObject(instance);\n if ( object === null ) {\n object = getAnimationAdapter().getSelectedObject(sbomIdPath);\n }\n if ( object === null ) {\n console.log(\"Not processing geometry \" + instance + \" nor \" + sbomIdPath + \" to change location\" );\n return false;\n }\n\n var scalar = getAnimationAdapter().getFlyScalar(object);\n moveby.position.multiplyScalar(scalar);\n\n if ( ! moveby.global) {\n moveby.position.applyQuaternion(getAnimationAdapter().getQuaternion(object));\n }\n\n var from_data = {\n data: {\n object: object,\n startPosition : object.position.clone(),\n startQuaternion : object.quaternion.clone(),\n position: new THREE.Vector3(0,0,0),\n quaternion : new THREE.Quaternion(),\n center : new THREE.Vector3(0,0,0),\n scale : 1,\n mc: false\n }\n };\n var to_data = {\n data: {\n object: object,\n startPosition : object.position.clone(),\n startQuaternion : object.quaternion.clone(),\n position: new THREE.Vector3().copy(moveby.position),\n quaternion : new THREE.Quaternion(),\n center : new THREE.Vector3(0,0,0),\n scale : 1,\n mc: false\n }\n };\n\n var tw = new TWEEN.Tween( from_data );\n tw.to( to_data, duration );\n tw.delay(start_time * SPEED);\n tw.onStart( function (object, result) {\n } );\n tw.interpolation(getAnimationAdapter().locationMoveByInterpolation);\n if ( callback !== null ) {\n tw.onComplete(callback);\n }\n end_time = start_time * SPEED + duration;\n if ( end_time > RUNNING_TIME ) RUNNING_TIME = end_time;\n ANIMATION_TWEENS.push(tw);\n\n var utw = new TWEEN.Tween( to_data );\n utw.to( from_data, UNDO_DURATION );\n utw.easing(TWEEN.Easing.Linear.None);\n utw.interpolation(getAnimationAdapter().locationMoveByInterpolation);\n utw.delay(0);\n UNDO_TWEENS.push(utw);\n\n return true;\n }", "animationChangeHandler () {\n this.store.dispatch(setAnimation(!fgmState.animation));\n }", "function updateTransitions() {\r\n\r\n if (motion.currentTransition !== nullTransition) {\r\n // is this a new transition?\r\n if (motion.currentTransition.progress === 0) {\r\n // do we have overlapping transitions?\r\n if (motion.currentTransition.lastTransition !== nullTransition) {\r\n // is the last animation for the nested transition the same as the new animation?\r\n if (motion.currentTransition.lastTransition.lastAnimation === avatar.currentAnimation) {\r\n // then sync the nested transition's frequency time wheel for a smooth animation blend\r\n motion.frequencyTimeWheelPos = motion.currentTransition.lastTransition.lastFrequencyTimeWheelPos;\r\n }\r\n }\r\n }\r\n if (motion.currentTransition.updateProgress() === TRANSITION_COMPLETE) {\r\n motion.currentTransition = nullTransition;\r\n }\r\n }\r\n}", "function toggleGroup($ele) {\r\n\tvar $parent = $ele.closest(\"[data-transition='parent']\");\r\n\tvar transClass = $ele.attr(\"data-transition\");\r\n\tvar removeClass = $ele.attr(\"data-remove\").split(\"|\");\r\n\tfor(index in removeClass) {\r\n\t\t$parent.removeClass(removeClass[index]);\r\n\t}\r\n\tsetTimeout(function(){ $parent.addClass(transClass); },0);\r\n}", "function selectAnimation() {\r\n var playTransitionReachPoses = true;\r\n\r\n // select appropriate animation. create transitions where appropriate\r\n switch (motion.nextState) {\r\n case STATIC: {\r\n if (avatar.distanceFromSurface < ON_SURFACE_THRESHOLD &&\r\n avatar.currentAnimation !== avatar.selectedIdle) {\r\n setTransition(avatar.selectedIdle, playTransitionReachPoses);\r\n } else if (!(avatar.distanceFromSurface < ON_SURFACE_THRESHOLD) &&\r\n avatar.currentAnimation !== avatar.selectedHover) {\r\n setTransition(avatar.selectedHover, playTransitionReachPoses);\r\n }\r\n motion.state = STATIC;\r\n avatar.selectedWalkBlend.lastDirection = NONE;\r\n break;\r\n }\r\n\r\n case SURFACE_MOTION: {\r\n // walk transition reach poses are currently only specified for starting to walk forwards\r\n playTransitionReachPoses = (motion.direction === FORWARDS);\r\n var isAlreadyWalking = (avatar.currentAnimation === avatar.selectedWalkBlend);\r\n\r\n switch (motion.direction) {\r\n case FORWARDS:\r\n if (avatar.selectedWalkBlend.lastDirection !== FORWARDS) {\r\n animationOperations.deepCopy(avatar.selectedWalk, avatar.selectedWalkBlend);\r\n avatar.calibration.strideLength = avatar.selectedWalk.calibration.strideLength;\r\n }\r\n avatar.selectedWalkBlend.lastDirection = FORWARDS;\r\n break;\r\n\r\n case BACKWARDS:\r\n if (avatar.selectedWalkBlend.lastDirection !== BACKWARDS) {\r\n animationOperations.deepCopy(avatar.selectedWalkBackwards, avatar.selectedWalkBlend);\r\n avatar.calibration.strideLength = avatar.selectedWalkBackwards.calibration.strideLength;\r\n }\r\n avatar.selectedWalkBlend.lastDirection = BACKWARDS;\r\n break;\r\n\r\n case LEFT:\r\n animationOperations.deepCopy(avatar.selectedSideStepLeft, avatar.selectedWalkBlend);\r\n avatar.selectedWalkBlend.lastDirection = LEFT;\r\n avatar.calibration.strideLength = avatar.selectedSideStepLeft.calibration.strideLength;\r\n break\r\n\r\n case RIGHT:\r\n animationOperations.deepCopy(avatar.selectedSideStepRight, avatar.selectedWalkBlend);\r\n avatar.selectedWalkBlend.lastDirection = RIGHT;\r\n avatar.calibration.strideLength = avatar.selectedSideStepRight.calibration.strideLength;\r\n break;\r\n\r\n default:\r\n // condition occurs when the avi goes through the floor due to collision hull errors\r\n animationOperations.deepCopy(avatar.selectedWalk, avatar.selectedWalkBlend);\r\n avatar.selectedWalkBlend.lastDirection = FORWARDS;\r\n avatar.calibration.strideLength = avatar.selectedWalk.calibration.strideLength;\r\n break;\r\n }\r\n\r\n if (!isAlreadyWalking && !motion.isComingToHalt) {\r\n setTransition(avatar.selectedWalkBlend, playTransitionReachPoses);\r\n }\r\n motion.state = SURFACE_MOTION;\r\n break;\r\n }\r\n\r\n case AIR_MOTION: {\r\n // blend the up, down, forward and backward flying animations relative to motion speed and direction\r\n animationOperations.zeroAnimation(avatar.selectedFlyBlend);\r\n\r\n // calculate influences based on velocity and direction\r\n var velocityMagnitude = Vec3.length(motion.velocity);\r\n var verticalProportion = motion.velocity.y / velocityMagnitude;\r\n var thrustProportion = motion.velocity.z / velocityMagnitude / 2;\r\n\r\n // directional components\r\n var upComponent = motion.velocity.y > 0 ? verticalProportion : 0;\r\n var downComponent = motion.velocity.y < 0 ? -verticalProportion : 0;\r\n var forwardComponent = motion.velocity.z < 0 ? -thrustProportion : 0;\r\n var backwardComponent = motion.velocity.z > 0 ? thrustProportion : 0;\r\n\r\n // smooth / damp directional components to add visual 'weight'\r\n upComponent = flyUpFilter.process(upComponent);\r\n downComponent = flyDownFilter.process(downComponent);\r\n forwardComponent = flyForwardFilter.process(forwardComponent);\r\n backwardComponent = flyBackwardFilter.process(backwardComponent);\r\n\r\n // normalise directional components\r\n var normaliser = upComponent + downComponent + forwardComponent + backwardComponent;\r\n upComponent = upComponent / normaliser;\r\n downComponent = downComponent / normaliser;\r\n forwardComponent = forwardComponent / normaliser;\r\n backwardComponent = backwardComponent / normaliser;\r\n\r\n // blend animations proportionally\r\n if (upComponent > 0) {\r\n animationOperations.blendAnimation(avatar.selectedFlyUp,\r\n avatar.selectedFlyBlend,\r\n upComponent);\r\n }\r\n if (downComponent > 0) {\r\n animationOperations.blendAnimation(avatar.selectedFlyDown,\r\n avatar.selectedFlyBlend,\r\n downComponent);\r\n }\r\n if (forwardComponent > 0) {\r\n animationOperations.blendAnimation(avatar.selectedFly,\r\n avatar.selectedFlyBlend,\r\n Math.abs(forwardComponent));\r\n }\r\n if (backwardComponent > 0) {\r\n animationOperations.blendAnimation(avatar.selectedFlyBackwards,\r\n avatar.selectedFlyBlend,\r\n Math.abs(backwardComponent));\r\n }\r\n\r\n if (avatar.currentAnimation !== avatar.selectedFlyBlend) {\r\n setTransition(avatar.selectedFlyBlend, playTransitionReachPoses);\r\n }\r\n motion.state = AIR_MOTION;\r\n avatar.selectedWalkBlend.lastDirection = NONE;\r\n break;\r\n }\r\n } // end switch next state of motion\r\n}", "updateAnimation() {\n\n this.modelMatrix.rotate(1,0,1,0)\n }", "updateAnimations() {\n this.animations.forEach((animation, index) => {\n if (animation.finished) {\n this.animations.splice(index, 1);\n }\n });\n }", "function transition() {\n\n linePath.transition()\n .duration(7500)\n .attrTween(\"stroke-dasharray\", tweenDash)\n .on(\"end\", function() {\n d3.select(this).call(transition);// infinite loop\n }); \n }", "display_by_group() {\n this.force.gravity(this.layout_gravity)\n .charge(this.charge)\n .friction(0.9)\n .on(\"tick\", e => {\n return this.circles.each(this.move_towards_group(e.alpha))\n .attr(\"cx\", d => d.x)\n .attr(\"cy\", d => d.y);\n });\n this.force.start();\n\n return this.display_years();\n }", "animate(animation) {\r\n if (!this.bmp.currentAnimation || this.bmp.currentAnimation.indexOf(animation) === -1) {\r\n this.bmp.gotoAndPlay(animation);\r\n }\r\n }", "function transitionSplit(d, i) {\n d3.select(this)\n .transition().duration(1000)\n .attrTween(\"d\", tweenArc({\n innerRadius: i & 1 ? innerRadius : (innerRadius + outerRadius) / 2,\n outerRadius: i & 1 ? (innerRadius + outerRadius) / 2 : outerRadius\n }))\n .each(\"end\", transitionRotate);\n }", "animate(animation) {\n if (!this.bmp.currentAnimation || this.bmp.currentAnimation.indexOf(animation) === -1) {\n this.bmp.gotoAndPlay(animation);\n }\n }", "update() {\n this.timeline();\n if (this.paused) return;\n const snippetCache = this.timeScale * this.snippet;\n const length = this.groups.length;\n for (let i = 0; i < length; i++) {\n const animationGroup = this.groups[i];\n animationGroup.update(snippetCache);\n }\n this.emit('update', this.snippet);\n }", "function animateGraph() {\n var pathArray = document.querySelectorAll(elem + \" \" + 'svg path')\n for (var i = 0; i < pathArray.length; i++) {\n var path = pathArray[i];\n var length = path.getTotalLength();\n // Clear any previous transition\n path.style.transition = path.style.WebkitTransition =\n 'none';\n // Set up the starting positions\n path.style.strokeDasharray = length + ' ' + length;\n path.style.strokeDashoffset = length;\n // Trigger a layout so styles are calculated & the browser\n // picks up the starting position before animating\n path.getBoundingClientRect();\n // Define our transition\n path.style.transition = path.style.WebkitTransition =\n 'stroke-dashoffset 0.344s cubic-bezier(0.23, 0.6, 0.09, 0.96)';\n // Go!\n path.style.strokeDashoffset = '0';\n }\n\n\n }", "updateAnimation() {\n\t\t// console.log(this.centerX, this.centerY);\n\t\tlet translateMatrix1 = new Matrix4();\n\t\tlet rotateMatrix = new Matrix4();\n\t\tlet translateMatrix2 = new Matrix4();\n\n\t\t//T\n\t\ttranslateMatrix1.setTranslate(-this.centerX, -this.centerY, 0);\n\n\t\t\tthis.modelMatrix = translateMatrix1.multiply(this.modelMatrix);\n\t\t\t\n\t\t//R\n\t\trotateMatrix.setRotate(this.currentAngle, 0, 0, 1);\n\n\t\t\tthis.modelMatrix = rotateMatrix.multiply(this.modelMatrix);\n\n\t\t//T\n\t\ttranslateMatrix2.setTranslate(this.centerX, this.centerY, 0);\n\n\t\t\tthis.modelMatrix = translateMatrix2.multiply(this.modelMatrix);\n\n\t\t// Pass the rotation matrix to the vertex shader\n\t\tgl.uniformMatrix4fv(u_ModelMatrix, false, this.modelMatrix.elements);\n\t\tthis.render();\n\t}", "function updateBlend(seriesModel, chartView) {\n var blendMode = seriesModel.get('blendMode') || null;\n\n if (false) {}\n\n chartView.group.traverse(function (el) {\n // FIXME marker and other components\n if (!el.isGroup) {\n // DONT mark the element dirty. In case element is incremental and don't wan't to rerender.\n el.style.blend = blendMode;\n }\n\n if (el.eachPendingDisplayable) {\n el.eachPendingDisplayable(function (displayable) {\n displayable.style.blend = blendMode;\n });\n }\n });\n }", "function calculateAnimations(pos1, pos2) {\n // make copies of both\n pos1 = deepCopy(pos1);\n pos2 = deepCopy(pos2);\n\n var animations = [];\n var squaresMovedTo = {};\n\n // remove pieces that are the same in both positions\n for (var i in pos2) {\n if (pos2.hasOwnProperty(i) !== true) continue;\n\n if (pos1.hasOwnProperty(i) === true && pos1[i] === pos2[i]) {\n delete pos1[i];\n delete pos2[i];\n }\n }\n\n // find all the \"move\" animations\n for (var i in pos2) {\n if (pos2.hasOwnProperty(i) !== true) continue;\n\n var closestPiece = findClosestPiece(pos1, pos2[i], i);\n if (closestPiece !== false) {\n animations.push({\n type: 'move',\n source: closestPiece,\n destination: i,\n piece: pos2[i]\n });\n\n delete pos1[closestPiece];\n delete pos2[i];\n squaresMovedTo[i] = true;\n }\n }\n\n // add pieces to pos2\n for (var i in pos2) {\n if (pos2.hasOwnProperty(i) !== true) continue;\n\n animations.push({\n type: 'add',\n square: i,\n piece: pos2[i]\n })\n\n delete pos2[i];\n }\n\n // clear pieces from pos1\n for (var i in pos1) {\n if (pos1.hasOwnProperty(i) !== true) continue;\n\n // do not clear a piece if it is on a square that is the result\n // of a \"move\", ie: a piece capture\n if (squaresMovedTo.hasOwnProperty(i) === true) continue;\n\n animations.push({\n type: 'clear',\n square: i,\n piece: pos1[i]\n });\n\n delete pos1[i];\n }\n\n return animations;\n}" ]
[ "0.820132", "0.8088333", "0.6136704", "0.6013339", "0.55981725", "0.55143064", "0.55142707", "0.5408207", "0.53423864", "0.5327602", "0.529113", "0.5283208", "0.5273691", "0.5247298", "0.51998985", "0.5177673", "0.5168194", "0.5150979", "0.51409525", "0.508437", "0.50793487", "0.5077152", "0.5056871", "0.5037687", "0.49989885", "0.49849322", "0.49745736", "0.49331924", "0.4932601", "0.4901025", "0.48855808", "0.4879922", "0.48739058", "0.48538688", "0.48216042", "0.480418", "0.48041627", "0.48013446", "0.47976252", "0.4786743", "0.47743523", "0.47624698", "0.47570148", "0.47482523", "0.47443464", "0.47411892", "0.472701", "0.47244504", "0.47217265", "0.47181144", "0.4708539", "0.4705077", "0.47034734", "0.46958455", "0.46924895", "0.46875936", "0.4678494", "0.46757576", "0.4664194", "0.46543792", "0.46522138", "0.46497285", "0.46465403", "0.463901", "0.46388844", "0.46363625", "0.46333253", "0.46333253", "0.46273273", "0.46241328", "0.46233028", "0.46214345", "0.46209517", "0.46163017", "0.4612039", "0.4599789", "0.45984888", "0.45936832", "0.45919308", "0.4582205", "0.45763877", "0.45720014", "0.45697626", "0.45632398", "0.45626444", "0.45604596", "0.45589674", "0.45518863", "0.45477748", "0.4542515", "0.4541572", "0.4537434" ]
0.8376651
6